/* ========== PRODUCT.CSS - COMPLETE FILE ========== */
/* Version: 15.1.0 - Last Updated: 2026-03-15 */
/* FIXED: 1440px container, 0 padding, image aspect ratio fixed */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    line-height: 1.5;
}

/* ===== 1440px CONTAINER WITH 0 PADDING ===== */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0;
    width: 100%;
}

/* Breadcrumb - with slight padding for readability */
.breadcrumb {
    display: flex;
    gap: 8px;
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    padding: 15px 20px 0;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

/* Product Layout */
.product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 20px;
    align-items: flex-start;
    padding: 0 20px 20px;
}

/* ===== Left Column - Images - STICKY (Desktop) ===== */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: sticky;
    top: 100px;
    align-self: flex-start;
    height: auto;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.product-gallery::-webkit-scrollbar {
    display: none;
}

/* Main Image Container - Fixed aspect ratio */
.main-image {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 1px solid #f0f0f0;
    cursor: pointer;
    position: relative;
    margin: 0 auto;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Gallery Icons (Wishlist + Share) */
.gallery-icons {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    pointer-events: none;
}

.gallery-icon-left,
.gallery-icon-right {
    pointer-events: auto;
}

.gallery-icon-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 24px;
    color: #1a3b5d;
}

.gallery-icon-btn:hover {
    transform: scale(1.1);
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.gallery-icon-btn i {
    font-size: 24px;
}

/* Thumbnail List */
.thumbnail-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
}

.thumbnail {
    width: 90px;
    height: 90px;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s;
    flex-shrink: 0;
    position: relative;
}

.thumbnail:hover {
    border-color: #1a3b5d;
}

.thumbnail.active {
    border-color: #1a3b5d;
    box-shadow: 0 0 0 2px rgba(26,59,93,0.1);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* More Images Badge (+N) */
.thumbnail-more {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
}

/* Fullscreen Gallery Modal */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(15px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.gallery-modal.active {
    display: flex;
}

.gallery-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2002;
    transition: all 0.4s;
    border-radius: 10px;
    backdrop-filter: blur(8px);
}

.gallery-close:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    transform: rotate(90deg) scale(1.15);
}

.gallery-close::before,
.gallery-close::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 2px;
    background: white;
}

.gallery-close::before {
    transform: rotate(45deg);
}

.gallery-close::after {
    transform: rotate(-45deg);
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2002;
    transition: all 0.4s;
    border-radius: 10px;
    backdrop-filter: blur(8px);
}

.gallery-arrow:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-50%) scale(1.15);
}

.gallery-arrow.prev {
    left: 30px;
}

.gallery-arrow.next {
    right: 30px;
}

.gallery-arrow::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-left: 3px solid white;
    border-bottom: 3px solid white;
}

.gallery-arrow.prev::before {
    transform: rotate(45deg);
    left: 24px;
}

.gallery-arrow.next::before {
    transform: rotate(225deg);
    right: 24px;
}

.gallery-image-container {
    max-width: 85vw;
    max-height: 85vh;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    border: 2px solid rgba(255,255,255,0.1);
    background: #111;
}

.gallery-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 85vh;
}

.gallery-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 2002;
    background: rgba(0,0,0,0.3);
    padding: 10px 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 10px;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
}

.gallery-dot:hover {
    background: rgba(255,255,255,0.8);
    transform: scale(1.3);
}

.gallery-dot.active {
    background: white;
    transform: scale(1.4);
    box-shadow: 0 0 15px white;
    border-color: white;
}

/* ===== Right Column ===== */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.product-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    color: #000;
    margin-bottom: 15px;
}

/* Rating Section */
.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.stars {
    display: flex;
    gap: 5px;
    color: #f5b342;
    font-size: 20px;
}

.stars i {
    font-size: 20px;
}

.review-count {
    color: #666;
    font-size: 16px;
    font-weight: 500;
}

/* Price Section */
.product-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 32px;
    font-weight: 700;
    color: #e44d2e;
}

.current-price::before {
    content: '₹';
    margin-right: 2px;
}

.old-price {
    font-size: 20px;
    color: #999;
    text-decoration: line-through;
}

.old-price::before {
    content: '₹';
    margin-right: 2px;
    font-size: 18px;
}

.discount-badge {
    background: #e44d2e;
    color: white;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    display: inline-block;
    white-space: nowrap;
}

/* Short Description */
.short-description {
    color: #444;
    font-size: 15px;
    line-height: 1.7;
    padding: 20px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

/* ===== OFFER SECTION ===== */
.offer-section {
    display: flex;
    flex-direction: column;
    gap: 0px;
    padding: 2px 0;
    margin: 0;
    width: 100%;
}

.offer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #333;
    flex-wrap: wrap;
    width: 100%;
    background: #f8f9fa;
    padding: 0px 0px;
    border-radius: 10px;
    border: none;
}

.offer-emoji {
    font-size: 18px;
    min-width: 28px;
    text-align: center;
}

.offer-text {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
    font-size: 14px;
}

.offer-tnc {
    color: #0066cc;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    background: none;
    border: none;
    padding: 4px 10px;
    border-radius: 20px;
    background: #e8f0fe;
}

.offer-tnc:hover {
    text-decoration: underline;
    background: #d4e4fd;
}

/* Variation Selector */
.variation-selector {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 20px 0;
    margin: 0;
    border-top: 1px solid #f0f0f0;
    width: 100%;
}

.variation-selector + .variation-selector {
    margin-top: 5px;
    padding-top: 15px;
}

.variation-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
    display: block;
}

.variation-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 0;
}

.variation-chip {
    padding: 10px 22px;
    border: 1.5px solid #e8e8e8;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    display: inline-block;
    transition: all 0.3s;
    background: white;
}

.variation-chip:hover {
    border-color: #1a3b5d;
    background: #f8f8f8;
    transform: translateY(-2px);
}

.variation-chip.selected {
    background: #1a3b5d;
    color: #fff;
    border-color: #1a3b5d;
}

/* Quantity Section */
.quantity-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    display: block;
}

.quantity-section {
    margin: 20px 0 25px;
    width: 100%;
}

.quantity-wrapper {
    width: 100%;
    margin-bottom: 15px;
}

.quantity-actions-group {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    flex-wrap: nowrap;
}

.quantity {
    display: flex;
    align-items: center;
    border: 1.5px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    height: 60px;
    background: white;
    width: 200px;
    min-width: 200px;
    max-width: 200px;
    flex: 0 0 auto;
}

.quantity button {
    width: 55px;
    height: 60px;
    border: none;
    background: white;
    font-size: 28px;
    font-weight: 600;
    cursor: pointer;
    color: #1a3b5d;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.quantity button:hover {
    background: #f5f5f5;
    color: #e44d2e;
}

.quantity input {
    width: 90px;
    height: 60px;
    border: none;
    border-left: 1.5px solid #e8e8e8;
    border-right: 1.5px solid #e8e8e8;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    outline: none;
    color: #1a3b5d;
    background: white;
    flex-shrink: 0;
}

.action-icons {
    display: none;
}

.action-buttons {
    display: flex;
    gap: 15px;
    width: 100%;
    margin-top: 15px;
}

.add-to-cart {
    flex: 1;
    height: 60px;
    background: #e44d2e;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(228,77,46,0.15);
}

.add-to-cart:hover {
    background: #c43d1e;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(228,77,46,0.2);
}

.buy-now {
    flex: 1;
    height: 60px;
    background: #1a3b5d;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(26,59,93,0.15);
}

.buy-now:hover {
    background: #0f2a40;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(26,59,93,0.2);
}

/* ===== PROMO BOXES ===== */
.promo-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 25px 0;
    width: 100%;
}

.promo-box {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 18px 12px;
    text-align: center;
    flex: 1 1 calc(33.333% - 10px);
    min-width: 140px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.promo-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.05);
    border-color: #1a3b5d;
}

.promo-title {
    font-weight: 700;
    font-size: 18px;
    color: #e44d2e;
    margin-bottom: 6px;
    white-space: nowrap;
}

.promo-box:nth-child(2) .promo-title {
    color: #2d5a2d;
}

.promo-box:nth-child(3) .promo-title {
    color: #c43d1e;
}

.promo-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    white-space: nowrap;
}

.promo-code {
    background: #f0f0f0;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    display: inline-block;
    border: 1px solid #ddd;
    white-space: nowrap;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 25px 0 30px;
}

.feature-box {
    background: #f8f8f8;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 20px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.feature-box:hover {
    background: #f0f0f0;
    border-color: #1a3b5d;
    transform: translateY(-3px);
}

.feature-icon {
    width: auto;
    height: auto;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #1a3b5d;
    margin: 0 auto 12px;
    line-height: 1;
}

.feature-title {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Product Tabs */
.product-tabs {
    margin: 40px 0 0;
    border-top: 2px solid #f0f0f0;
    padding-top: 30px;
}

.tab-headers {
    display: flex;
    gap: 30px;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 25px;
}

.tab-header {
    font-size: 20px;
    font-weight: 600;
    color: #666;
    padding: 0 5px 15px 5px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.tab-header:hover {
    color: #1a3b5d;
}

.tab-header.active {
    color: #1a3b5d;
}

.tab-header.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #1a3b5d;
    border-radius: 10px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Description Content */
.description-content {
    padding: 10px 0;
}

.description-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a3b5d;
    margin-bottom: 15px;
}

.full-description {
    color: #444;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 25px;
}

/* ===== SINGLE COLUMN LISTS ===== */
.features-list-single {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
}

.package-list-single {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
    list-style: none;
}

.feature-item-desc {
    padding: 12px 15px;
    background: #f8f8f8;
    border-radius: 10px;
    border-left: 4px solid #e44d2e;
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.package-list-single li {
    padding: 12px 15px;
    background: #f8f8f8;
    border-radius: 10px;
    border-left: 4px solid #e44d2e;
    font-size: 15px;
    color: #333;
    font-weight: 500;
    list-style: none;
}

/* Dropdown Styles (Mobile) */
.dropdown-section {
    margin: 15px 0;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    background: white;
}

.dropdown-header {
    padding: 16px 20px;
    background: #f8f8f8;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 16px;
    color: #1a3b5d;
    transition: all 0.2s;
}

.dropdown-header:hover {
    background: #f0f0f0;
}

.dropdown-header i {
    transition: transform 0.3s ease;
    font-size: 18px;
    color: #666;
}

.dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    background: white;
}

.dropdown-content.show {
    max-height: 1000px;
}

/* Desktop/Mobile visibility */
.desktop-only {
    display: block;
}
.mobile-dropdowns {
    display: none;
}

/* Specifications Table */
.specs-table {
    background: #f8f8f8;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.spec-row {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    width: 40%;
    padding: 15px 20px;
    background: #f0f0f0;
    font-weight: 600;
    color: #1a3b5d;
    font-size: 16px;
}

.spec-value {
    width: 60%;
    padding: 15px 20px;
    color: #333;
    font-size: 16px;
}

/* Reviews Section */
.reviews-section {
    margin: 40px 0;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.reviews-summary {
    display: flex;
    align-items: center;
    gap: 20px;
}

.average-rating {
    font-size: 48px;
    font-weight: 700;
    color: #1a3b5d;
}

.total-reviews {
    color: #666;
    font-size: 16px;
}

.write-review-btn {
    background: #1a3b5d;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.write-review-btn:hover {
    background: #0f2a40;
    transform: translateY(-2px);
}

/* Review Form */
.review-form-container {
    background: #f8f8f8;
    border-radius: 10px;
    padding: 30px;
    margin: 30px 0;
    border: 1px solid #f0f0f0;
}

.form-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a3b5d;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    font-size: 15px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s;
    background: white;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #1a3b5d;
    box-shadow: 0 0 0 3px rgba(26,59,93,0.05);
}

.form-textarea {
    height: 120px;
    resize: vertical;
}

.rating-selector {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.rating-stars {
    display: flex;
    gap: 8px;
}

.rating-star {
    font-size: 28px;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s;
}

.rating-star:hover,
.rating-star.selected {
    color: #f5b342;
    transform: scale(1.1);
}

.rating-text {
    color: #666;
    font-size: 14px;
}

.form-submit {
    background: #e44d2e;
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
}

.form-submit:hover {
    background: #c43d1e;
    transform: translateY(-2px);
}

/* Existing Reviews */
.reviews-list {
    margin-top: 30px;
}

.review-card {
    background: #f8f8f8;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #f0f0f0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviewer-avatar {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: #1a3b5d;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
}

.reviewer-name {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.review-date {
    color: #999;
    font-size: 14px;
}

.review-rating {
    display: flex;
    gap: 4px;
    color: #f5b342;
    margin-bottom: 10px;
}

.review-title {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.review-content {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

.review-helpful {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.helpful-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.helpful-btn:hover {
    color: #1a3b5d;
}

/* POPUP MODAL */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 3000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 450px;
    width: 90%;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 1px solid #f0f0f0;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: #666;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: background 0.2s;
}

.modal-close:hover {
    background: #f5f5f5;
}

.modal-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1a3b5d;
    padding-right: 30px;
}

.modal-body {
    color: #444;
    font-size: 16px;
    line-height: 1.7;
}

/* ===== RECENTLY VIEWED SECTION ===== */
.recently-viewed-section {
    max-width: 1440px;
    margin: 20px auto 0;
    padding: 0 20px;
    position: relative;
}

/* ===== RELATED PRODUCTS SECTION ===== */
.related-products-section {
    max-width: 1440px;
    margin: 20px auto 0;
    padding: 0 20px;
    position: relative;
}

/* COMMON STYLES FOR BOTH SECTIONS */
.recently-viewed-section .section-header,
.related-products-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.recently-viewed-section .section-title,
.related-products-section .section-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a3b5d;
    margin: 0;
}

.related-products-section .view-all {
    color: #1a3b5d;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    white-space: nowrap;
    margin: 0;
}

.related-products-section .view-all:hover {
    color: #e44d2e;
    gap: 12px;
}

.recently-viewed-slider,
.related-products-slider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
}

.slider-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #1a3b5d #f0f0f0;
    padding: 5px 0 0;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    scroll-snap-type: x mandatory;
}

.slider-container::-webkit-scrollbar {
    height: 4px;
}

.slider-container::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.slider-container::-webkit-scrollbar-thumb {
    background: #1a3b5d;
    border-radius: 10px;
}

/* Product Card */
.recently-viewed-section .product-card,
.related-products-section .product-card {
    flex: 0 0 calc((100% - (5 * 20px)) / 6);
    min-width: 180px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
    scroll-snap-align: start;
    cursor: pointer;
}

.recently-viewed-section .product-card:hover,
.related-products-section .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    border-color: #1a3b5d;
}

.product-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-details {
    padding: 12px 10px;
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 42px;
}

.product-card .product-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.product-price .current {
    font-size: 18px;
    font-weight: 700;
    color: #e44d2e;
    line-height: 1.2;
}

.product-price .current::before {
    content: '₹';
    margin-right: 1px;
}

.product-price .old {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
    line-height: 1.2;
}

.product-price .old::before {
    content: '₹';
    margin-right: 1px;
}

/* Slider Arrows */
.recently-viewed-section .slider-arrow,
.related-products-section .slider-arrow {
    width: 40px;
    height: 80px;
    background: white;
    border: 1px solid #f0f0f0;
    color: #1a3b5d;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    border-radius: 10px;
    padding: 0;
}

.recently-viewed-section .slider-arrow:hover,
.related-products-section .slider-arrow:hover {
    background: #f8f8f8;
    border-color: #1a3b5d;
}

.recently-viewed-section .slider-arrow.prev,
.related-products-section .slider-arrow.prev {
    margin-right: 5px;
}

.recently-viewed-section .slider-arrow.next,
.related-products-section .slider-arrow.next {
    margin-left: 5px;
}

/* ===== POPULAR SEARCH SECTION ===== */
.popular-search-section {
    max-width: 1440px;
    margin: 20px auto 0;
    padding: 0 20px;
}

.popular-search-section .section-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a3b5d;
    margin: 0 0 20px 0;
}

.search-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.search-tag {
    display: inline-block;
    padding: 8px 18px;
    background: #f8f8f8;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.search-tag:hover {
    background: #1a3b5d;
    color: white;
    border-color: #1a3b5d;
    transform: translateY(-2px);
}

/* ===== UTILITY CLASSES ===== */
.write-review-link {
    color: #ff6b6b;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}

.write-review-link i {
    margin-right: 5px;
}

/* ===== PROFESSIONAL MOBILE RESPONSIVE ===== */
@media screen and (max-width: 768px) {
    .container {
        padding: 0 !important;
    }
    
    .product {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
        padding: 0 15px 15px !important;
    }
    
    .breadcrumb {
        padding: 15px 15px 0 !important;
    }
    
    .product-gallery {
        position: relative !important;
        top: auto !important;
        max-height: none !important;
        overflow-y: visible !important;
    }
    
    .product-title {
        font-size: 24px !important;
    }
    
    .thumbnail-list {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        overflow-x: auto !important;
        padding: 5px 0 10px !important;
        justify-content: flex-start !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .thumbnail {
        flex: 0 0 auto !important;
        width: 70px !important;
        height: 70px !important;
    }
    
    .thumbnail-more {
        font-size: 18px !important;
    }
    
    .gallery-arrow {
        display: none !important;
    }
    
    .offer-section {
        padding: 5px 0 !important;
    }
    
    .offer-item {
        padding: 0px 0px !important;
        font-size: 14px !important;
    }
    
    .variation-selector {
        padding: 15px 0 !important;
    }
    
    .variation-chip {
        padding: 8px 16px !important;
        font-size: 14px !important;
    }
    
    .quantity-actions-group {
        flex-wrap: nowrap !important;
        gap: 10px !important;
    }
    
    .quantity {
        width: 140px !important;
        min-width: 140px !important;
        height: 50px !important;
    }
    
    .quantity button {
        width: 40px !important;
        height: 50px !important;
        font-size: 22px !important;
    }
    
    .quantity input {
        width: 60px !important;
        height: 50px !important;
        font-size: 18px !important;
    }
    
    .action-buttons {
        gap: 10px !important;
    }
    
    .add-to-cart, 
    .buy-now {
        height: 50px !important;
        font-size: 15px !important;
    }
    
    /* Promo boxes mobile - full width 3 cards */
    .promo-boxes {
        gap: 10px !important;
        margin: 20px 0 !important;
    }
    
    .promo-box {
        flex: 1 1 calc(33.333% - 7px) !important;
        min-width: 100px !important;
        padding: 12px 6px !important;
    }
    
    .promo-title {
        font-size: 14px !important;
    }
    
    .promo-subtitle {
        font-size: 12px !important;
    }
    
    .promo-code {
        font-size: 11px !important;
        padding: 4px 6px !important;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    
    .feature-box {
        padding: 12px 5px !important;
    }
    
    .feature-icon {
        font-size: 22px !important;
    }
    
    .feature-title {
        font-size: 12px !important;
        white-space: normal !important;
        word-break: break-word !important;
    }
    
    .tab-headers {
        gap: 15px !important;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        padding-bottom: 5px !important;
    }
    
    .tab-header {
        font-size: 16px !important;
        white-space: nowrap !important;
    }
    
    .desktop-only {
        display: none !important;
    }
    
    .mobile-dropdowns {
        display: block !important;
    }
    
    .recently-viewed-section,
    .related-products-section {
        padding: 0 15px !important;
    }
    
    .slider-container {
        gap: 8px !important;
    }
    
    .recently-viewed-section .product-card,
    .related-products-section .product-card {
        flex: 0 0 calc((100% - 16px) / 3) !important;
        min-width: 0 !important;
    }
    
    .slider-arrow {
        display: none !important;
    }
    
    .product-name {
        font-size: 12px !important;
        height: 34px !important;
    }
    
    .popular-search-section {
        padding: 0 15px !important;
    }
    
    .popular-search-section .section-title {
        font-size: 20px !important;
    }
    
    .search-tag {
        padding: 6px 14px !important;
        font-size: 12px !important;
    }
    
    .gallery-icon-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
    }
}

@media screen and (max-width: 480px) {
    .product {
        padding: 0 12px 12px !important;
    }
    
    .breadcrumb {
        padding: 12px 12px 0 !important;
    }
    
    .product-title {
        font-size: 22px !important;
    }
    
    .current-price {
        font-size: 26px !important;
    }
    
    .thumbnail {
        width: 60px !important;
        height: 60px !important;
    }
    
    .quantity {
        width: 130px !important;
        min-width: 130px !important;
        height: 48px !important;
    }
    
    .quantity button {
        width: 38px !important;
        height: 48px !important;
        font-size: 20px !important;
    }
    
    .quantity input {
        width: 54px !important;
        height: 48px !important;
        font-size: 16px !important;
    }
    
    .add-to-cart, 
    .buy-now {
        height: 48px !important;
        font-size: 14px !important;
    }
    
    .promo-box {
        min-width: 90px !important;
        padding: 10px 4px !important;
    }
    
    .promo-title {
        font-size: 13px !important;
    }
    
    .promo-subtitle {
        font-size: 11px !important;
    }
    
    .feature-title {
        font-size: 11px !important;
    }
    
    .recently-viewed-section .product-card,
    .related-products-section .product-card {
        flex: 0 0 calc((100% - 16px) / 3) !important;
    }
    
    .product-name {
        font-size: 11px !important;
        height: 30px !important;
    }
}

@media screen and (max-width: 360px) {
    .product {
        padding: 0 8px 8px !important;
    }
    
    .breadcrumb {
        padding: 10px 8px 0 !important;
    }
    
    .product-title {
        font-size: 20px !important;
    }
    
    .current-price {
        font-size: 22px !important;
    }
    
    .thumbnail {
        width: 50px !important;
        height: 50px !important;
    }
    
    .thumbnail-more {
        font-size: 14px !important;
    }
    
    .variation-chip {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }
    
    .quantity-actions-group {
        flex-wrap: wrap !important;
    }
    
    .quantity {
        width: 100% !important;
        min-width: 100% !important;
        height: 45px !important;
    }
    
    .quantity button {
        width: 40px !important;
        height: 45px !important;
    }
    
    .quantity input {
        width: calc(100% - 80px) !important;
        height: 45px !important;
    }
    
    .action-buttons {
        flex-direction: row !important;
        gap: 5px !important;
    }
    
    .add-to-cart, 
    .buy-now {
        height: 42px !important;
        font-size: 12px !important;
        padding: 0 2px !important;
        white-space: nowrap !important;
    }
    
    .promo-boxes {
        gap: 5px !important;
    }
    
    .promo-box {
        min-width: 85px !important;
        padding: 8px 2px !important;
    }
    
    .promo-title {
        font-size: 12px !important;
        margin-bottom: 3px !important;
    }
    
    .promo-subtitle {
        font-size: 10px !important;
        margin-bottom: 4px !important;
    }
    
    .promo-code {
        font-size: 9px !important;
        padding: 3px 4px !important;
    }
    
    .features-grid {
        gap: 4px !important;
    }
    
    .feature-box {
        padding: 8px 2px !important;
    }
    
    .feature-icon {
        font-size: 18px !important;
    }
    
    .feature-title {
        font-size: 9px !important;
    }
    
    .offer-item {
        font-size: 13px !important;
        padding: 8px 10px !important;
    }
    
    .offer-tnc {
        font-size: 12px !important;
        padding: 2px 6px !important;
    }
    
    .recently-viewed-section .product-card,
    .related-products-section .product-card {
        flex: 0 0 calc((100% - 8px) / 3) !important;
    }
    
    .product-name {
        font-size: 9px !important;
        height: 26px !important;
    }
    
    .search-tag {
        padding: 4px 8px !important;
        font-size: 10px !important;
    }
    
    .gallery-icon-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .recently-viewed-section .product-card,
    .related-products-section .product-card {
        flex: 0 0 calc((100% - (3 * 20px)) / 4);
    }
}