/* ========================================
   PRODUCT DETAIL PAGE - ZEBRONICS INSPIRED
   Clean, professional design
   ======================================== */

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Roboto', sans-serif;
    background: #ffffff;
    color: #2c2c2c;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   BREADCRUMB
   ======================================== */

.breadcrumb-section {
    background: #f8f9fa;
    padding: 16px 0;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb {
    margin: 0;
    padding: 0;
    background: transparent;
    font-size: 14px;
}

.breadcrumb-item {
    color: #666666;
}

.breadcrumb-item a {
    color: #30385f;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #1a1f3a;
}

.breadcrumb-item.active {
    color: #2c2c2c;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    padding: 0 8px;
    color: #999999;
}

/* ========================================
   PRODUCT DETAIL SECTION
   ======================================== */

.product-detail-section {
    padding: 50px 0;
    background: #ffffff;
}

/* ========================================
   PRODUCT DETAIL LAYOUT
   ======================================== */

.product-detail-layout {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 60px;
    margin-bottom: 60px;
}

/* ========================================
   PRODUCT GALLERY
   ======================================== */

.product-gallery {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.main-image {
    position: relative;
    width: 100%;
    height: 500px;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e8e8e8;
}

.main-image img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    display: block;
}

/* Made in India Badge */
.badge-india {
    position: absolute;
    top: 10px;
    left: 20px;
    background: #ffffff;
    color: #30385f;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.badge-india i {
    color: #ff9933;
}

/* Thumbnail Wrapper with nav arrows */
.thumbnail-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.thumb-nav {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    background: #30385f;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.thumb-nav:hover {
    background: #1a1f3a;
}

.thumb-nav:disabled {
    background: #cccccc;
    cursor: default;
}

/* Thumbnail Images */
.thumbnail-images {
    display: flex;
    flex-wrap: nowrap;
    flex: 1;
    min-width: 0;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: #30385f #e0e0e0;
}

.thumbnail-images::-webkit-scrollbar {
    height: 5px;
}

.thumbnail-images::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 2px;
}

.thumbnail-images::-webkit-scrollbar-thumb {
    background: #30385f;
    border-radius: 2px;
}

.thumbnail-images img {
    flex: 0 0 90px;
    width: 90px;
    height: 90px;
    object-fit: contain;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
}

.thumbnail-images img:hover {
    border-color: #30385f;
}

.thumbnail-images img.active {
    border-color: #30385f;
    border-width: 2px;
}

/* ========================================
   PRODUCT INFORMATION
   ======================================== */

.product-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Product Title Row */
.product-title-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.product-title {
    font-size: 32px;
    font-weight: 700;
    color: #2c2c2c;
    margin: 0;
    line-height: 1.3;
    flex: 1;
}

/* New/Sale Badge (next to title) */
.badge-new,
.badge-sale {
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    margin-top: 4px;
}

.badge-new {
    background: #30385f;
    color: #ffffff;
}

.badge-sale {
    background: #ff4444;
    color: #ffffff;
}

/* Price Section */
.product-price-section {
    padding-bottom: 20px;
    border-bottom: 1px solid #e8e8e8;
}

.price-container {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 6px;
}

.current-price {
    font-size: 32px;
    font-weight: 700;
    color: #2c2c2c;
}

.original-price {
    font-size: 22px;
    font-weight: 400;
    color: #999999;
    text-decoration: line-through;
}

.tax-info {
    font-size: 13px;
    color: #666666;
    margin: 0;
}

/* Features List */
.features-list {
    padding-bottom: 20px;
    border-bottom: 1px solid #e8e8e8;
}

.features-list h3 {
    font-size: 16px;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 14px;
}

.features-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list ul li {
    font-size: 15px;
    color: #4a4a4a;
    padding: 10px 0;
    padding-left: 28px;
    position: relative;
    line-height: 1.6;
}

.features-list ul li::before {
    content: "•";
    position: absolute;
    left: 8px;
    color: #30385f;
    font-weight: 700;
    font-size: 20px;
}

/* Description */
.product-description {
    font-size: 15px;
    line-height: 1.7;
    color: #4a4a4a;
}

.product-description p {
    margin: 0;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 12px;
    padding-top: 10px;
}

.action-buttons button {
    flex: 1;
    padding: 16px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-enquire {
    background: #30385f;
    color: #ffffff;
}

.btn-enquire:hover {
    background: #1a1f3a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(48, 56, 95, 0.3);
}

.btn-share {
    background: #ffffff;
    color: #30385f;
    border: 2px solid #30385f;
}

.btn-share:hover {
    background: #30385f;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(48, 56, 95, 0.2);
}

/* ========================================
   SPECIFICATIONS SECTION
   ======================================== */

.specifications-section {
    margin-bottom: 60px;
}

.specifications-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #30385f;
}

.spec-table {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.spec-table table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.spec-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.spec-table tr:hover {
    background: #f8f9fa;
}

.spec-table tr:last-child {
    border-bottom: none;
}

.spec-table td {
    padding: 16px 24px;
    font-size: 15px;
}

.spec-label {
    font-weight: 600;
    color: #2c2c2c;
    width: 35%;
    word-break: break-word;
}

.spec-value {
    color: #4a4a4a;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* ========================================
   PACKAGE CONTENTS
   ======================================== */

.package-contents {
    margin-bottom: 60px;
}

.package-contents h2 {
    font-size: 28px;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #30385f;
}

.package-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.package-contents ul li {
    padding: 16px 20px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 15px;
    color: #4a4a4a;
    padding-left: 50px;
    position: relative;
    border: 1px solid #e8e8e8;
}

.package-contents ul li::before {
    content: "📦";
    position: absolute;
    left: 18px;
    font-size: 20px;
}

/* ========================================
   RELATED PRODUCTS - STANDARDIZED
   ======================================== */

.related-products-section {
    margin-bottom: 60px;
}

.related-products-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 30px;
    text-align: center;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.related-product-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.related-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #30385f;
}

.related-product-image {
    width: 100%;
    height: 220px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.3s ease;
}

.related-product-card:hover .related-product-image img {
    transform: scale(1.05);
}

.related-product-info {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.related-product-title {
    font-size: 15px;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    min-height: 42px;
}

.related-product-price {
    font-size: 20px;
    font-weight: 700;
    color: #30385f;
    margin-top: auto;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Prevent horizontal overflow on lower sections only
   (.product-detail-section excluded — contains scrollable thumbnail gallery) */
.specifications-section,
.package-contents,
.related-products-section {
    overflow-x: hidden;
}

/* Tablets (1024px) */
@media (max-width: 1024px) {
    .product-detail-layout {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .product-title {
        font-size: 28px;
    }

    .current-price {
        font-size: 28px;
    }

    .related-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .related-product-image {
        height: 200px;
    }
}

/* Tablets (768px) */
@media (max-width: 768px) {
    .product-detail-section {
        padding: 30px 0;
    }

    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 40px;
    }

    .product-gallery {
        position: static;
    }

    .main-image {
        height: 360px;
    }

    .product-title {
        font-size: 22px;
    }

    .current-price {
        font-size: 24px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons button {
        width: 100%;
    }

    .specifications-section,
    .package-contents,
    .related-products-section {
        margin-bottom: 40px;
    }

    .specifications-section h2,
    .package-contents h2,
    .related-products-section h2 {
        font-size: 22px;
    }

    .package-contents ul {
        grid-template-columns: 1fr;
    }

    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .related-product-image {
        height: 180px;
    }

    .related-product-info {
        padding: 14px;
    }

    .related-product-title {
        font-size: 14px;
        min-height: 40px;
    }

    .related-product-price {
        font-size: 18px;
    }
}

/* Mobile (576px) */
@media (max-width: 576px) {
    .breadcrumb-section {
        padding: 10px 0;
    }

    .breadcrumb {
        font-size: 12px;
    }

    .product-detail-section {
        padding: 20px 0;
    }

    .main-image {
        height: 280px;
    }

    .thumbnail-images img {
        flex: 0 0 68px;
        width: 68px;
        height: 68px;
    }

    .product-title {
        font-size: 18px;
    }

    .current-price {
        font-size: 20px;
    }

    .original-price {
        font-size: 16px;
    }

    .features-list ul li {
        font-size: 14px;
    }

    .product-description {
        font-size: 14px;
    }

    .specifications-section h2,
    .package-contents h2,
    .related-products-section h2 {
        font-size: 18px;
        margin-bottom: 14px;
    }

    /* Spec table — force full block stacking on mobile */
    .spec-table table,
    .spec-table tbody,
    .spec-table tr,
    .spec-table td {
        display: block;
        width: 100%;
    }

    .spec-table tr {
        padding: 10px 14px;
        border-bottom: 1px solid #f0f0f0;
    }

    .spec-table tr:last-child {
        border-bottom: none;
    }

    .spec-table td {
        padding: 0;
        border: none;
    }

    .spec-label {
        font-size: 11px;
        color: #888888;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 3px;
    }

    .spec-value {
        font-size: 14px;
        color: #2c2c2c;
        font-weight: 500;
        word-break: break-word;
    }

    .package-contents ul li {
        padding: 12px 14px 12px 44px;
        font-size: 14px;
    }

    /* 2-column related products on mobile */
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .related-product-image {
        height: 120px;
    }

    .related-product-image img {
        padding: 6px;
    }

    .related-product-info {
        padding: 8px 10px;
    }

    .related-product-title {
        font-size: 12px;
        min-height: 32px;
        -webkit-line-clamp: 2;
    }

    .related-product-price {
        font-size: 14px;
    }
}

/* Extra small phones (400px) */
@media (max-width: 400px) {
    .main-image {
        height: 240px;
    }

    .thumbnail-images img {
        flex: 0 0 58px;
        width: 58px;
        height: 58px;
    }

    .product-title {
        font-size: 16px;
    }

    .related-products-grid {
        gap: 8px;
    }

    .related-product-image {
        height: 120px;
    }

    .related-product-info {
        padding: 8px 10px;
    }

    .related-product-title {
        font-size: 11px;
        min-height: 30px;
    }

    .related-product-price {
        font-size: 14px;
    }
}
