/* ========================================
   PRODUCT PAGE STYLES
   Flipkart-inspired mobile-first design
   Using existing Sajora color palette
   ======================================== */

/* ========== PRODUCT PAGE LAYOUT ========== */
.product-page {
    min-height: 100vh;
    background: var(--bg-main);
    /* Reserve space for mobile sticky bar to avoid content overlap */
    padding-bottom: var(--mobile-sticky-height, 72px);
}

/* Back Button */
.back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    font-size: 20px;
    color: var(--primary-hover);
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(192, 224, 141, 0.2);
    color: var(--primary-hover);
}

/* Header spacer for layout balance */
.header-spacer {
    width: 40px;
}

/* ========== LOADING STATE ========== */
.product-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bg-main);
    z-index: 9999;
}

.petal-loader {
    width: 240px;
    height: 240px;
}

.petal-loader svg {
    width: 100%;
    height: 100%;
    animation: petal-float 4s ease-in-out infinite;
}

@keyframes petal-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.petal {
    fill: #e5e7eb;
    transition: fill 0.3s ease;
}

#bottom-petal {
    animation: bottom-flow 3s infinite;
}

#middle-petal {
    animation: middle-flow 3s infinite;
}

#top-petal {
    animation: top-flow 3s infinite;
}

@keyframes bottom-flow {

    0%,
    20% {
        fill: #e5e7eb;
    }

    25%,
    80% {
        fill: #ff005f;
    }

    85%,
    100% {
        fill: #e5e7eb;
    }
}

@keyframes middle-flow {

    0%,
    40% {
        fill: #e5e7eb;
    }

    45%,
    80% {
        fill: #ff005f;
    }

    85%,
    100% {
        fill: #e5e7eb;
    }
}

@keyframes top-flow {

    0%,
    60% {
        fill: #e5e7eb;
    }

    65%,
    80% {
        fill: #111827;
    }

    85%,
    100% {
        fill: #e5e7eb;
    }
}

/* ========== ERROR STATE ========== */
.product-error {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    text-align: center;
}

.product-error.active {
    display: flex;
}

.product-error i {
    font-size: 60px;
    color: var(--status-error);
    margin-bottom: 20px;
}

.product-error h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    color: var(--text-heading);
    margin-bottom: 10px;
}

.product-error p {
    color: var(--text-body);
    margin-bottom: 30px;
}

.back-home-btn {
    display: inline-block;
    padding: 14px 30px;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

/* ========== PRODUCT CONTAINER ========== */
.product-container {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
}

.product-container.active {
    display: block;
}

/* ========== IMAGE CAROUSEL ========== */
.product-gallery {
    background: var(--bg-card);
    position: relative;
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
}

.carousel-track {
    display: flex;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    min-width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #ffffff;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-slide picture {
    width: 100%;
    height: 100%;
    display: block;
    flex: 0 0 100%;
}

.carousel-slide picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Discount Badge on Carousel */
.product-discount-badge {
    display: none;
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #FF3366, #FF6B9D);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(255, 51, 102, 0.3);
}

.product-discount-badge.active {
    display: block;
}

.product-stock-badge {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(28, 28, 28, 0.9);
    color: #fff;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    z-index: 11;
}

.product-stock-badge.active {
    display: inline-flex;
    align-items: center;
}

/* Wishlist Button */
.wishlist-btn {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    background: #fff;
    color: #111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.16);
    transition: color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.wishlist-btn i {
    font-size: 25px;
    line-height: 1;
}

.wishlist-btn:hover {
    transform: translateY(-1px);
}

.wishlist-btn.is-active {
    border-color: rgba(255, 51, 102, 0.3);
    /* Removed box-shadow to prevent background glow */
}

.wishlist-btn.wishlist-pulse img {
    animation: heart-pop-glow 400ms cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.wishlist-btn.is-active img {
    /* Apply glow only to the heart image */
    filter: drop-shadow(0 0 8px rgba(255, 51, 102, 0.6)) drop-shadow(0 0 15px rgba(255, 51, 102, 0.4));
}


@keyframes heart-pop-glow {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(255, 51, 102, 0));
    }
    50% {
        transform: scale(1.35);
        filter: drop-shadow(0 0 12px rgba(255, 51, 102, 0.8)) drop-shadow(0 0 20px rgba(255, 51, 102, 0.6));
    }
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(255, 51, 102, 0.6)) drop-shadow(0 0 15px rgba(255, 51, 102, 0.4));
    }
}

.wishlist-btn-mobile {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 12;
}

.wishlist-btn-desktop {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
}

.wishlist-btn-desktop,
.wishlist-btn-mobile {
    display: none;
}

/* Carousel Thumbnails */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 12px 15px 18px;
    background: var(--bg-card);
    overflow-x: auto;
}

.carousel-thumb {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    border: 2px solid transparent;
    background: var(--bg-card);
    cursor: pointer;
    padding: 0;
    flex: 0 0 auto;
    transition: all 0.2s ease;
}

.carousel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.carousel-thumb.active {
    border-color: var(--primary);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

@media (max-width: 600px) {
    .carousel-thumb {
        width: 46px;
        height: 46px;
        border-radius: 8px;
    }

    .carousel-thumb img {
        border-radius: 6px;
    }
}

/* ========== PRODUCT INFO SECTION ========== */
.product-info-section {
    background: var(--bg-card);
    padding: 20px;
    margin-top: 8px;
}

.product-title {
    font-family: 'Inter', sans-serif;
    color: var(--text-heading);
    line-height: 1.4;
    margin-bottom: 12px;
}

.brand-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    /* semibold */
}

.product-name-text {
    font-size: 14px;
    font-weight: 300;
    /* light */
}

/* Rating */
.desktop-product-view .product-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.desktop-rating-pill {
    background: #FF2E63;
    color: #fff;
    padding: 0 8px;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    padding-top: 2px; /* Optical centering adjustment */
}

.desktop-product-view .rating-stars .star {
    font-size: 18px;
}

.rating-stars {
    display: flex;
    gap: 2px;
}

.rating-stars .star {
    color: #D3D3D3;
    font-size: 16px;
}

.rating-stars .star.filled {
    color: #FFD700;
}

.rating-count {
    font-size: 14px;
    color: var(--text-muted);
}

/* Price Section */
.product-price-section {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-main);
}

.current-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #769c39;
}

.product-price-section .original-price {
    font-size: 1.1rem;
    color: #999;
    text-decoration: line-through;
}

.discount-tag {
    display: none;
    padding: 4px 10px;
    background: var(--status-success-bg);
    color: var(--status-success);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 4px;
}

.discount-tag.active {
    display: inline-block;
}

/* Stock Status */
.stock-status {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.stock-status.in-stock {
    background: var(--status-success-bg);
    color: var(--status-success);
}

.stock-status.out-of-stock {
    background: var(--status-error-bg);
    color: var(--status-error);
}

/* Product Variant */
.product-variant {
    font-size: 1rem;
    color: var(--text-body);
    margin-bottom: 20px;
    padding: 12px 16px;
    background: var(--bg-main);
    border-radius: 8px;
    display: inline-block;
}

.variant-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border: 1px solid var(--border-main);
    border-radius: 20px;
    background: var(--bg-card);
    color: var(--text-heading);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
}

.variant-btn:hover {
    border-color: var(--primary);
}

.variant-btn.active {
    border-color: var(--primary);
    background: rgba(192, 224, 141, 0.1);
    color: var(--primary-hover);
}

.variant-price {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
    font-weight: 400;
    white-space: nowrap;
    display: block;
}

.variant-label {
    display: block;
    white-space: nowrap;
}

.variant-btn.active .variant-price {
    color: var(--primary-hover);
}

/* Description */
.product-description-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-main);
}

.product-description-section h2,
.product-description-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 10px;
}

.product-description-list {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: inherit;
    /* inherit the wrap's 1.8 so the button and text match line heights exactly */
    display: inline;
    margin: 0;
    padding: 0;
    list-style: none;
    /* Temporarily unset default disc so it flows inline cleaner */
}

/* Re-inject the bullets manually so they can float properly */
.product-description-list li {
    display: inline;
}

.product-description-list li::before {
    content: "•\00A0";
    /* Bullet and non-breaking space */
    color: var(--text-body);
    font-weight: bold;
    margin-left: 2px;
}

.product-description-list li::after {
    content: "\A";
    white-space: pre;
}

.product-description-list.expanded {
    display: block;
}

.product-description-list.expanded li {
    display: list-item;
    list-style: disc;
    margin-left: 18px;
}

.product-description-list.expanded li::before,
.product-description-list.expanded li::after {
    content: none;
}

/* Read more fade + button: mobile-first defaults */
.product-description-wrap {
    position: relative;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-height: 1.8;
}

.product-description-wrap.expanded {
    -webkit-line-clamp: unset;
    display: block;
}

.product-description-wrap::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    height: 1.8em;
    width: 60px;
    /* Reduced since button isn't absolute positioned behind it anymore */
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.75), var(--bg-card));
    pointer-events: none;
}

.product-description-wrap.expanded::after,
.product-description-wrap.no-fade::after {
    display: none;
}

/* Float the button inline at the end of the text block */
.read-more-btn {
    background: transparent;
    border: none;
    color: var(--primary-hover);
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    z-index: 2;
    line-height: inherit;
    display: inline;
    padding: 0 0 0 10px;
    /* the 10px spacing you requested */
}


@media (min-width: 768px) {

    /* Desktop/tablet overrides */
    .product-description-wrap::after {
        width: 110px;
    }

    .read-more-btn {
        font-size: 0.95rem;
    }
}

.read-more-btn.hidden {
    display: none;
}

/* Product ID Display */
.product-id {
    margin-top: 20px;
    padding: 10px 16px;
    background: var(--bg-main);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-heading);
    border: 1px solid var(--border-main);
    display: block;
}

/* ========== ACTION BUTTONS ========== */
/* Common button styles */
.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    font-family: 'Outfit', sans-serif;
}

.action-btn i {
    font-size: 18px;
}

/* Add to Cart Button */
.action-btn.cart-btn {
    flex: 1;
    background: linear-gradient(135deg, #FF2E63, #ff6b9d) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(255, 46, 99, 0.14) !important;
}

.action-btn.cart-btn:hover {
    background: linear-gradient(135deg, #e8264f, #ff4f8b) !important;
    box-shadow: 0 6px 16px rgba(255, 46, 99, 0.20) !important;
}

.action-btn.cart-btn:active {
    transform: scale(0.975);
    filter: brightness(0.96);
}

.action-btn.cart-btn.is-disabled,
.action-btn.cart-btn.is-disabled:hover,
.action-btn.buy-btn-desktop.is-disabled,
.action-btn.buy-btn-desktop.is-disabled:hover {
    background: #F8FAFC !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #94A3B8 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.action-btn.notify-btn {
    flex: 1;
    background: #1f1f1f;
    color: #fff;
    border: 2px solid #1f1f1f;
    display: none;
}

.action-btn.notify-btn.active {
    display: inline-flex;
}

.action-btn.notify-btn:hover {
    background: #111;
    border-color: #111;
}

/* Sticky Action Bar (Mobile) */
.sticky-action-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    /* Hidden by default, enabled on mobile */
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-card);
    border-top: 1px solid var(--border-main);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 100;
    min-height: var(--mobile-sticky-height, 72px);
}

.desktop-actions {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: 16px;
    margin-bottom: 12px;
    flex-wrap: nowrap;
}

.desktop-actions .action-btn {
    flex: 1 1 auto;
    min-width: 0;
}

.desktop-actions #cartBtnDesktop {
    flex: 1 1 auto;
    min-width: 220px;
}

/* Quantity Selector */
.quantity-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-main);
    border-radius: 10px;
    background: var(--bg-card);
    overflow: hidden;
}

.qty-btn {
    width: 34px;
    height: 100%;
    border: none;
    background: #f6f7f4;
    color: var(--text-heading);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease, transform 120ms ease-out;
}

.qty-btn:hover {
    background: #ecefe7;
}

.qty-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.qty-btn:active:not(:disabled) {
    transform: scale(0.96);
}

.qty-input {
    width: 52px;
    height: 100%;
    border: none;
    border-left: 1px solid var(--border-main);
    border-right: 1px solid var(--border-main);
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-heading);
    background: var(--bg-card);
    font-family: 'Outfit', sans-serif;
}

.qty-input:focus {
    outline: none;
    background: #fbfcf9;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-input[type=number] {
    -moz-appearance: textfield;
}

.quantity-selector-desktop {
    flex: 0 0 auto;
    height: 40px;
    display: none !important; /* hidden on desktop as per figma */
}

.desktop-actions .action-btn,
.desktop-actions .wishlist-btn-desktop {
    height: 52px;
}

.desktop-actions .action-btn.cart-btn {
    background: linear-gradient(135deg, #FF2E63, #ff6b9d) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(255, 46, 99, 0.14) !important;
}

.desktop-actions .action-btn.cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 46, 99, 0.20);
}

@media (max-width: 767px) {
    .desktop-actions {
        width: 100%;
        gap: 0;
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid var(--border-main);
        background: var(--bg-card);
    }

    .desktop-actions .action-btn {
        border-radius: 0;
        flex: 1 1 50%;
        padding: 16px 10px;
        font-size: 0.9rem;
        letter-spacing: 0.2px;
    }

    .quantity-selector-mobile {
        flex: 0 0 auto;
        height: 48px;
    }

    .quantity-selector-mobile .qty-btn {
        width: 30px;
    }

    .quantity-selector-mobile .qty-input {
        width: 44px;
        font-size: 0.9rem;
    }
}

/* ========== ACTION NOTIFICATION ========== */
.action-notification {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--status-success);
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    font-weight: 600;
    font-size: 14px;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ========== RESPONSIVE - TABLET & DESKTOP ========== */
@media (min-width: 768px) {
    main.product-page {
        padding: 0;
        margin: 0;
        max-width: 100%;
        width: 100%;
    }

    /* Hide mobile back button */
    .back-btn {
        display: none;
    }

    .header-spacer {
        display: none;
    }

    /* product-container is just a wrapper — full width */
    .product-container {
        display: none;
        padding: 0;
        max-width: none; /* override the 1200px global max-width */
    }

    .product-container.active {
        display: block;
    }

    /* Two-column: image LEFT, info RIGHT */
    .desktop-product-view {
        /* 140/1440 = 9.72vw — gives exactly 140px at 1440px, scales down proportionally */
        padding: 40px clamp(16px, 9.72vw, 140px);
        margin: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        display: grid;
        grid-template-columns: 530px 1fr;
        gap: 55px;
        align-items: start;
        justify-content: space-between;
    }

    /* Gallery */
    .product-gallery {
        position: sticky;
        top: 120px;
        height: fit-content;
    }

    .desktop-product-view .product-discount-badge {
        display: none !important;
    }


    .desktop-product-view .product-gallery {
        background: transparent;
        padding: 0;
        width: 530px;
        flex-shrink: 0;
    }

    .desktop-product-view .carousel-container {
        border-radius: 15px;
        overflow: hidden;
        background: #f9f9f8;
        width: 530px;
        height: 530px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.10);
        flex-shrink: 0;
        position: relative; /* For share button positioning */
    }

    .desktop-product-view .carousel-container .carousel-track {
        height: 100%; /* Track must be full height */
    }

    .desktop-product-view .carousel-container .carousel-slide {
        height: 530px; /* Match the container exactly */
        min-width: 530px;
        padding: 0;
        flex-shrink: 0;
    }

    .desktop-product-view .carousel-container .carousel-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* Share button top-right inside main image */
    .desktop-product-view .share-btn-desktop {
        position: absolute;
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        background: rgba(255,255,255,0.85);
        border: none;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0,0,0,0.12);
        z-index: 10;
        backdrop-filter: blur(4px);
    }

    .desktop-product-view .share-btn-desktop img,
    .desktop-product-view .share-btn-desktop svg {
        width: 18px;
        height: 18px;
    }

    /* Expand button bottom-right inside main image */
    .desktop-product-view .expand-btn-desktop {
        position: absolute;
        bottom: 16px;
        right: 16px;
        width: 36px;
        height: 36px;
        background: rgba(255,255,255,0.7);
        border: none;
        border-radius: 8px; /* soft rectangle style */
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        z-index: 10;
        backdrop-filter: blur(4px);
        transition: background 0.2s;
    }

    .desktop-product-view .expand-btn-desktop:hover {
        background: rgba(255,255,255,0.9);
    }
    
    .desktop-product-view .expand-btn-desktop svg {
        width: 16px;
        height: 16px;
        stroke: #222;
    }

    .desktop-product-view .carousel-dots {
        display: flex;
        justify-content: flex-start;
        gap: 30px;
        margin-top: 24px;
        width: 100%;
        padding: 0;
        background: transparent;
    }

    .desktop-product-view .carousel-thumb {
        width: 80px;
        height: 80px;
        border-radius: 10px;
        background: transparent; /* No white bg */
        border: 2px solid transparent;
        padding: 0;
        display: block;
        flex-shrink: 0;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    .desktop-product-view .carousel-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px;
        display: block;
    }

    .desktop-product-view .carousel-thumb.active {
        border-color: #FF2E63;
        box-shadow: 0 4px 12px rgba(255, 46, 99, 0.15);
    }

    .carousel-slide {
        aspect-ratio: 1;
        padding: 0;
    }

    /* Product Info */
    .product-info-section {
        padding: 0;
        background: transparent;
        margin-top: 0;
    }

    .product-title {
        font-size: 24px;
        margin-bottom: 20px;
        line-height: 1.4;
    }

    .desktop-product-view .brand-name {
        font-size: 25px;
        font-weight: 700;
        color: #FF2E63;
    }

    .desktop-product-view .product-name-text {
        font-size: 20px;
        font-weight: 500; /* medium */
        color: #111;
    }

    .desktop-product-view .product-variant-text {
        font-size: 1.2rem !important;
    }

    .discount-tag {
        background: #22C55E;
        color: #fff;
        padding: 0 10px;
        border-radius: 4px;
        font-family: 'Inter', sans-serif;
        font-size: 15px;
        font-weight: 600;
        height: 20px;
        line-height: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        vertical-align: middle;
        padding-top: 2px; /* Optical centering adjustment - push text down */
        margin-left: 12px;
        position: relative;
        top: -4px;
    }
    
    .current-price {
        font-size: 25px;
        color: #111;
        font-weight: 700;
        font-family: 'Inter', sans-serif;
    }
    
    .original-price {
        font-family: 'Inter', sans-serif;
        font-size: 20px;
        color: #999;
        text-decoration: line-through;
        margin-left: 12px;
        font-weight: 600;
    }

    .desktop-product-view #stockStatus {
        display: none !important;
    }

    /* Desktop Variant Styles Override */
    .product-variant {
        display: block;
        padding: 0;
        background: transparent;
    }

    .size-box-wrap {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        flex-shrink: 0;
    }

    .size-box-wrap .size-per {
        font-family: 'Inter', sans-serif;
        font-size: 12px;
        font-weight: 400;
        color: var(--text-muted);
        text-align: center;
    }

    .size-box {
        border: 1.5px solid #ccc;
        border-radius: 20px;
        padding: 0 16px;
        height: 40px;
        text-align: center;
        min-width: 90px;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: #fff;
        color: var(--text-heading);
        transition: all 0.2s;
    }

    .size-box:hover {
        border-color: #1a1a1a;
    }

    .size-box.active {
        background: #1a1a1a;
        color: #fff;
        border-color: #1a1a1a;
    }

    .size-ml {
        font-family: 'Inter', sans-serif;
        font-weight: 700;
        font-size: 14px;
        line-height: 1.2;
    }

    .size-price {
        font-family: 'Inter', sans-serif;
        font-size: 11px;
        font-weight: 400;
        margin-top: 1px;
        opacity: 0.8;
        line-height: 1.2;
    }

    .size-box.out-of-stock {
        border-color: #e0e0e0;
        color: #bbb;
        position: relative;
        cursor: not-allowed;
    }

    .size-box.out-of-stock::after {
        content: '';
        position: absolute;
        inset: 0;
        background: repeating-linear-gradient(135deg, transparent, transparent 4px, rgba(0, 0, 0, 0.06) 4px, rgba(0, 0, 0, 0.06) 5px);
        border-radius: 18px;
    }

    /* Hide sticky bar on desktop */
    .sticky-action-bar {
        display: none;
    }

    /* Display Desktop Actions matching Figma */
    .desktop-actions {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 15px;
        margin-top: 24px;
        margin-bottom: 24px;
    }

    .desktop-actions .action-btn,
    .desktop-actions .wishlist-btn-desktop {
        height: 44px !important;
        border-radius: 6px;
        font-size: 15px;
        font-weight: 600;
        padding: 0 24px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Make both CTAs equal size and fill available width */
    .desktop-actions .action-btn {
        flex: 1;
        max-width: 320px; /* Prevent them from getting comically large on ultra-wide screens */
    }

    .desktop-actions .wishlist-btn-desktop {
        width: 44px !important;
        flex: 0 0 44px !important;
        padding: 0;
        border: 1px solid #E5E7EB;
        background: #fff;
        border-radius: 6px;
    }
    
    .desktop-actions .wishlist-btn-desktop img {
        width: 18px;
        height: 18px;
    }

    /* Desktop Highlights */
    .desktop-product-view .mobile-highlights-wrap {
        padding: 4px 0 16px;
        background: transparent;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .desktop-product-view .mobile-highlight-row {
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .desktop-product-view .mobile-highlight-icon {
        width: 30px;
        height: 30px;
        object-fit: contain;
        flex-shrink: 0;
    }

    .desktop-product-view .mobile-highlight-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .desktop-product-view .mobile-highlight-label {
        font-family: 'Inter', sans-serif;
        font-size: 13px;
        color: #999;
        font-weight: 600;
        line-height: 1.2;
    }

    .desktop-product-view .mobile-highlight-value {
        font-family: 'Inter', sans-serif;
        font-size: 14px;
        color: #111;
        font-weight: 700;
        line-height: 1.2;
        margin-top: 2px;
    }

    /* Buy Now button — outline pink */
    .action-btn.buy-btn-desktop {
        background: #fff !important;
        color: #FF2E63 !important;
        border: 1.5px solid #FF2E63 !important;
        flex: 1;
        box-shadow: none !important;
    }

    .action-btn.buy-btn-desktop:hover {
        background: #FFF2F5 !important;
        transform: none;
    }

    /* Add to Cart button — solid pink */
    .action-btn.cart-btn {
        background: #FF2E63 !important;
        color: #fff !important;
        border: none !important;
        flex: 1;
        box-shadow: none !important;
    }

    .action-btn.cart-btn:hover {
        background: #E81A4F !important;
        transform: none;
    }
    
    .action-btn i {
        display: none !important; /* Hide FontAwesome icons inside buttons */
    }

    /* Desktop tabs/highlights */
    .desktop-highlights-wrap {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin: 20px 0;
        padding: 16px;
        background: var(--bg-main);
        border-radius: 12px;
    }
    .desktop-tabs-wrap {
        margin-top: 30px;
        border: 1px solid #FF819A; /* Pink outer border matching Figma */
        border-radius: 10px;
        padding: 20px 24px;
        background: #fff; /* White background for the outer box */
        position: relative;
    }

    .desktop-tabs-wrap .tabs {
        display: flex;
        gap: 15px;
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 15px; /* Gap to text box */
    }

    .desktop-tabs-wrap .tab {
        font-family: 'Inter', sans-serif;
        font-size: 14px;
        font-weight: 700;
        color: #111;
        cursor: pointer;
        padding: 8px 18px;
        border-radius: 99px; /* Very rounded pill shape */
        border: none;
        background: transparent;
        transition: all 0.2s;
    }

    .desktop-tabs-wrap .tab.active {
        background: #FF2E63;
        color: #fff;
    }

    .desktop-tabs-wrap .tab.active::after {
        display: none;
    }

    .desktop-tabs-wrap .tab-content {
        border: 1px solid #FFCDD2; /* Inner box border */
        border-radius: 8px;
        padding: 24px;
        background: #fff; /* White inside */
        font-size: 14px;
        color: #666; /* Softer text color for 'No content yet.' */
        font-style: italic; /* Match Figma text style */
        line-height: 1.6;
        min-height: 250px; /* Give some height to match empty Figma box */
    }

    .wishlist-btn-desktop {
        display: inline-flex;
        flex: 0 0 52px;
        width: 52px;
        height: 52px;
        padding: 0;
    }

    .action-notification {
        bottom: 40px;
    }
}

@media (max-width: 767px) {

    /* Prevent footer from being hidden behind sticky action bar */
    .product-body .footer {
        margin-bottom: 73px;
    }

    /* Hide inline actions on mobile to avoid duplicate buttons with sticky bar */
    .desktop-actions {
        display: none;
    }

    .wishlist-btn-mobile {
        display: inline-flex;
    }

    /* Mobile-only sticky bar */
    .sticky-action-bar {
        display: flex;
    }

    .sticky-action-bar .action-btn {
        min-height: 48px;
        height: 48px;
    }

    .sticky-action-bar #cartBtn {
        flex: 1 1 66%;
        min-width: 0;
    }

    .sticky-action-bar .action-btn.cart-btn {
        border: none !important;
        background: linear-gradient(135deg, #FF2E63, #ff6b9d) !important;
        color: #fff !important;
        box-shadow: 0 3px 10px rgba(255, 46, 99, 0.14) !important;
    }
}




/* ========== RELATED PRODUCTS SECTION ========== */
.related-products-section {
    background: var(--bg-main);
    padding: 32px 0 40px;
    margin-top: 0;
}

.related-products-section .container {
    max-width: 100%;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    padding: 0 clamp(16px, 9.72vw, 140px);
}

.related-products-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 20px;
    padding-left: 4px;
}

/* Mobile: Horizontal scroll */
.related-products-grid {
    display: flex;
    overflow-x: auto;
    gap: 14px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: none;
    /* Firefox */
}

.related-products-grid::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.related-products-sentinel {
    width: 100%;
    height: 1px;
}

.related-products-grid .product-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
    min-width: 260px;
    max-width: 260px;
}

/* Desktop: Horizontal scroll (matches homepage Hot Deals/Trending) */
@media (min-width: 768px) {
    .related-products-section {
        padding: 48px 0 56px;
        margin-top: 8px;
    }

    .related-products-title {
        font-size: 1.8rem;
        margin-bottom: 28px;
    }

    /* Keep horizontal scroll on desktop — same as homepage scroll sections */
    .related-products-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 1.25rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 15px;
        /* Keep left inset from container, but let cards reach page edge on the right */
        margin-right: calc(-1 * clamp(16px, 9.72vw, 140px));
        padding-right: clamp(16px, 9.72vw, 140px);
        scrollbar-width: none;
    }

    .related-products-grid::-webkit-scrollbar {
        display: none;
    }

    /* Match homepage horizontal-scroll-grid card size (256px) */
    .related-products-grid .product-card {
        flex: 0 0 auto;
        width: 256px;
        min-width: 256px;
        max-width: 256px;
        scroll-snap-align: start;
        border: 1px solid #EBEBEB;
        border-radius: 10px;
    }
}

@media (max-width: 767px) {
    .related-products-section {
        margin-bottom: 73px;
        /* Space for sticky action bar */
    }

    /* You May Also Like: same horizontal scroll card design as Recently Viewed */
    #relatedProductsSection .related-products-grid {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 14px;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        overscroll-behavior-x: contain;
        touch-action: pan-x;
        padding-bottom: 8px;
        /* Negate .container 20px padding on mobile */
        margin-right: -20px;
        padding-right: 20px;
    }

    #relatedProductsSection .related-products-grid .product-card {
        flex: 0 0 220px;
        min-width: 220px;
        max-width: 220px;
        scroll-snap-align: start;
    }

    #relatedProductsSection .related-products-grid .product-card .product-image-container {
        height: 195px;
        padding: 13px;
    }

    #relatedProductsSection .related-products-grid .product-card .product-info {
        padding: 10px;
    }

    #relatedProductsSection .related-products-grid .product-card .product-name {
        font-size: 1.04rem;
        min-height: 36px;
    }

    #relatedProductsSection .related-products-grid .product-card .product-info>* {
        margin-bottom: 6px;
    }

    #relatedProductsSection .related-products-grid .product-card .product-info>*:last-child {
        margin-bottom: 0;
    }


    /* Recently Viewed only: mirror homepage discovery card layout on mobile */
    #recentlyViewedSection .related-products-grid {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 14px;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        overscroll-behavior-x: contain;
        touch-action: pan-x;
        padding-bottom: 8px;
        /* Negate .container 20px padding on mobile */
        margin-right: -20px;
        padding-right: 20px;
    }

    #recentlyViewedSection .related-products-grid .product-card {
        flex: 0 0 220px;
        min-width: 220px;
        max-width: 220px;
        scroll-snap-align: start;
    }

    #recentlyViewedSection .related-products-grid .product-card .product-image-container {
        height: 195px;
        padding: 13px;
    }

    #recentlyViewedSection .related-products-grid .product-card .product-info {
        padding: 10px;
    }

    #recentlyViewedSection .related-products-grid .product-card .product-name {
        font-size: 1.04rem;
        min-height: 36px;
    }

    #recentlyViewedSection .related-products-grid .product-card .product-info>* {
        margin-bottom: 6px;
    }

    #recentlyViewedSection .related-products-grid .product-card .product-info>*:last-child {
        margin-bottom: 0;
    }

    .product-body .footer {
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    #recentlyViewedSection .related-products-grid .product-card .product-image-container {
        height: 169px;
        padding: 10px;
    }
}

/* ========================================
   MOBILE PRODUCT VIEW (MYNTRA STYLE)
   ======================================== */
.mobile-product-view {
    display: none;
    width: 100%;
    background: #fff;
}

@media (max-width: 767px) {
    main.product-page {
        padding: 0;
        background: var(--bg-card);
    }

    .desktop-product-view {
        display: none !important;
    }

    .sticky-action-bar {
        display: none !important;
        /* Replaced by mobile view buttons */
    }

    .mobile-product-view {
        display: block;
    }

    /* IMAGE */
    .mobile-image-section {
        padding: 10px;
    }

    .mobile-image-box {
        width: 100%;
        aspect-ratio: 1 / 1;
        height: auto;
        background: #ffffff;
        border-radius: 10px;
        box-shadow: 0 1px 10px rgba(0, 0, 0, 0.15);
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
    }

    .mobile-carousel-track {
        display: flex;
        width: 100%;
        height: 100%;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-carousel-slide {
        min-width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

.mobile-image-box img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-carousel-slide picture {
    width: 100%;
    height: 100%;
    display: block;
    flex: 0 0 100%;
}

.mobile-carousel-slide picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

    .mobile-expand {
        position: absolute;
        bottom: 20px;
        right: 20px;
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
        /* Removed background and shadow since it's just the icon directly on the image */
    }

    .mobile-expand img {
        width: 20px;
        height: 20px;
    }

    .mobile-dots {
        display: flex;
        justify-content: center;
        gap: 6px;
        margin: 6px 0 4px;
    }

    .mobile-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #ccc;
        transition: all 0.3s ease;
    }

    .mobile-dot.active {
        width: 18px;
        border-radius: 10px;
        background: var(--primary-hover);
    }

    /* INFO */
    .mobile-info {
        padding: 0 20px 20px;
    }

    .mobile-info .title-row {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 10px;
    }

    .mobile-title {
        font-family: 'Inter', sans-serif;
        line-height: 1.4;
        color: var(--text-heading);
        margin-top: 5px;
        max-width: calc(100% - 85px);
        /* Maximizes width without hitting icons */
    }

    .mobile-product-variant-text {
        white-space: nowrap;
        /* Prevents - 50ml from breaking in half */
    }

    .mobile-brand-name {
        font-size: 16px;
        color: #FF2E63;
        font-weight: 600;
    }

    .mobile-product-name {
        font-size: 14px;
        font-weight: 300;
    }

    .mobile-info .title-icons {
        display: flex;
        gap: 10px;
        color: var(--text-heading);
        margin-right: 0;
    }


    .mobile-info .title-icons .icon {
        cursor: pointer;
        width: 30px;
        height: 30px;
        border: 0.5px solid #e0e0e0;
        border-radius: 5px;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
        overflow: hidden;
    }

    .mobile-info .title-icons .icon img {
        width: 20px;
        height: 20px;
        display: block;
        transition: transform 0.2s ease;
    }

    /* Pop + red glow when added to wishlist */
    @keyframes wishlist-pop {
        0% {
            transform: scale(1);
        }

        40% {
            transform: scale(1.2);
        }

        70% {
            transform: scale(0.95);
        }

        100% {
            transform: scale(1);
        }
    }

    .mobile-info .title-icons .wishlist-btn-mobile-myntra.is-active img {
        animation: wishlist-pop 0.35s cubic-bezier(0.36, 0.07, 0.19, 0.97);
        filter: drop-shadow(0 0 2px rgba(254, 43, 82, 0.6));
    }

    .mobile-info .price-row {
        display: flex;
        align-items: baseline;
        gap: 8px;
        margin: 10px 0;
    }

    .mobile-price {
        font-family: 'Inter', sans-serif;
        font-size: 14px;
        font-weight: 600;
        color: var(--text-heading);
    }

    .mobile-old {
        text-decoration: line-through;
        color: #888;
        font-family: 'Inter', sans-serif;
        font-size: 12px;
    }

    .mobile-discount {
        font-family: 'Inter', sans-serif;
        color: #FAC524;
        font-size: 14px;
        font-weight: 600;
    }

    .mobile-per-unit {
        font-family: 'Inter', sans-serif;
        font-size: 11px;
        font-weight: 400;
        color: #888;
        margin-left: 4px;
        display: inline;
    }

    .mobile-info .badges {
        display: flex;
        align-items: center;
        gap: 13px;
        margin-bottom: 20px;
    }

    .mobile-rating {
        font-family: 'Inter', sans-serif;
        background: var(--status-success);
        color: #fff;
        font-size: 12px;
        height: 20px;
        padding: 0 8px;
        border-radius: 6px;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }

    .mobile-stock {
        font-family: 'Inter', sans-serif;
        background: var(--status-success);
        color: #fff;
        font-size: 12px;
        height: 20px;
        padding: 0 8px;
        border-radius: 6px;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
    }

    .mobile-stock.out {
        background: var(--status-error);
    }

    /* SIZE */
    .mobile-info .size-title {
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 12px;
        color: var(--text-heading);
    }

    .mobile-info .size-options {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        padding-bottom: 8px;
        /* Hide scrollbar */
        scrollbar-width: none;
    }

    .mobile-info .size-options::-webkit-scrollbar {
        display: none;
    }

    .size-box-wrap {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        flex-shrink: 0;
    }

    .size-box-wrap .size-per {
        font-family: 'Inter', sans-serif;
        font-size: 11px;
        font-weight: 400;
        color: var(--text-body);
        text-align: center;
    }

    .mobile-info .size-box {
        border: 1.5px solid #ccc;
        border-radius: 14px;
        padding: 0 14px;
        height: 33px;
        text-align: center;
        min-width: 85px;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: #fff;
        color: var(--text-heading);
        transition: all 0.2s;
    }

    .mobile-info .size-box.active {
        background: #1a1a1a;
        color: #fff;
        border-color: #1a1a1a;
    }

    .mobile-info .size-ml {
        font-family: 'Inter', sans-serif;
        font-weight: 700;
        font-size: 12px;
        line-height: 1.2;
    }

    .mobile-info .size-price {
        font-family: 'Inter', sans-serif;
        font-size: 10px;
        font-weight: 400;
        margin-top: 1px;
        opacity: 0.75;
        line-height: 1.2;
    }

    .mobile-info .size-divider {
        display: none;
    }

    .mobile-info .size-per {
        font-family: 'Inter', sans-serif;
        font-size: 11px;
        font-weight: 300;
        opacity: 0.8;
        margin-top: 2px;
    }

    /* Shade swatch inside size-box */
    .mobile-info .size-box .shade-swatch {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid #e0e0e0;
        margin-bottom: 2px;
    }

    .mobile-info .size-box.active .shade-swatch {
        border-color: #fff;
    }

    .mobile-info .shade-placeholder {
        background: #ddd;
    }

    /* Shade box — same pill shape as size boxes, image fills it */
    .mobile-info .shade-box {
        min-width: 85px;
        height: 33px;
        padding: 0;
        border-radius: 14px;
        overflow: hidden;
        border: 2px solid #ccc;
    }

    .mobile-info .shade-box img,
    .mobile-info .shade-box .shade-placeholder {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        background: #ddd;
    }

    .mobile-info .shade-box.active {
        border: 2px solid #1a1a1a;
        box-shadow: inset 0 0 0 1.5px #fff;
    }

    .mobile-info .shade-box.out-of-stock {
        opacity: 0.45;
        border-color: #ddd;
    }

    /* Out-of-stock size boxes */
    .mobile-info .size-box.out-of-stock {
        border-color: #e0e0e0;
        color: #bbb;
        position: relative;
    }

    .mobile-info .size-box.out-of-stock::after {
        content: '';
        position: absolute;
        inset: 0;
        background: repeating-linear-gradient(135deg, transparent, transparent 4px, rgba(0, 0, 0, 0.06) 4px, rgba(0, 0, 0, 0.06) 5px);
        border-radius: 13px;
    }

    .size-oos-badge {
        font-size: 9px;
        font-weight: 600;
        color: #e53e3e;
        letter-spacing: 0.5px;
        margin-top: 1px;
    }

    /* BUTTONS */
    .mobile-info .buttons {
        display: flex;
        gap: 15px;
        margin-top: 24px;
        margin-bottom: 24px;
    }

    .mobile-info .buy {
        flex: 1;
        border: 1.5px solid #FF2E63;
        color: #FF2E63;
        background: #fff;
        border-radius: 10px;
        height: 44px;
        padding: 0 14px;
        font-weight: 700;
        text-align: center;
        font-size: 15px;
        transition: background 0.2s;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-info .buy:active {
        background: #f4f4f4;
    }

    .mobile-info .add {
        flex: 1;
        background: linear-gradient(135deg, #FF2E63, #ff6b9d);
        color: #fff;
        border: none;
        border-radius: 10px;
        height: 44px;
        padding: 0 14px;
        font-weight: 700;
        text-align: center;
        font-size: 15px;
        transition: opacity 0.2s, box-shadow 0.2s;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 3px 10px rgba(255, 46, 99, 0.14);
    }

    .mobile-info .add:active {
        opacity: 0.8;
    }

    /* Disabled states for mobile buttons */
    .mobile-info .buy.is-disabled,
    .mobile-info .add.is-disabled {
        background: var(--disabled-bg, #f2f2f2) !important;
        color: var(--disabled-text, #999999) !important;
        border: 1.5px solid #cbd5e1 !important;
        cursor: not-allowed;
        pointer-events: none;
        box-shadow: none !important;
    }

    /* Highlights */
    .mobile-product-view .mobile-highlights-wrap {
        padding: 4px 20px 16px;
        background: #fff;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .mobile-product-view .mobile-highlight-row {
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .mobile-product-view .mobile-highlight-icon {
        width: 30px;
        height: 30px;
        object-fit: contain;
        flex-shrink: 0;
    }

    .mobile-product-view .mobile-highlight-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .mobile-product-view .mobile-highlight-label {
        font-family: 'Inter', sans-serif;
        font-size: 13px;
        color: #999;
        font-weight: 600;
        line-height: 1.2;
    }

    .mobile-product-view .mobile-highlight-value {
        font-family: 'Inter', sans-serif;
        font-size: 14.5px;
        color: #111;
        font-weight: 700;
        line-height: 1.3;
        margin-top: 2px;
    }

    .mobile-product-view .tabs-wrap {
        margin: 0 16px 30px; /* Reduced outer horizontal margin */
        border: 1px solid #FF819A; /* Pink outer border matching Figma */
        border-radius: 10px;
        padding: 10px; /* 10px padding for mobile as requested */
        background: #fff; /* White background for the outer box */
    }

    .mobile-product-view .tabs {
        display: flex;
        gap: 15px;
        margin-bottom: 15px;
        overflow-x: auto;
        padding-bottom: 5px;
        scrollbar-width: none;
    }

    .mobile-product-view .tabs::-webkit-scrollbar {
        display: none;
    }

    .mobile-product-view .tab {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: none;
        border-radius: 99px; /* Very rounded pill shape */
        padding: 8px 18px;
        height: auto;
        min-width: 0;
        background: transparent;
        color: var(--text-heading);
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        white-space: nowrap;
        transition: all 0.2s;
    }


    .mobile-product-view .tab.active {
        background: #FF2E63; /* Pink active pill */
        color: #fff;
    }

    .mobile-product-view .tab-content {
        border: 1px solid #FFCDD2; /* Inner box border */
        border-radius: 8px;
        padding: 10px; /* 10px padding for mobile as requested */
        background: #fff; /* White inside */
        font-size: 14px;
        color: #666;
        font-style: italic;
        line-height: 1.6;
        position: relative;
    }

    .mobile-product-view .tab-body {
        transition: max-height 0.35s ease;
        overflow: hidden;
    }

    .mobile-product-view .tab-body p {
        margin: 0 0 6px;
    }

    .mobile-product-view .tab-content ul,
    .mobile-product-view .tab-content ol {
        padding-left: 20px;
        margin: 6px 0;
    }

    .tab-fade {
        position: absolute;
        bottom: 28px;
        left: 0;
        right: 0;
        height: 48px;
        background: linear-gradient(to bottom, transparent, #fff);
        pointer-events: none;
    }

    .tab-read-more {
        display: block;
        width: 100%;
        margin-top: 6px;
        background: none;
        border: none;
        color: var(--primary-hover);
        font-family: 'Inter', sans-serif;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        text-align: left;
        padding: 2px 0;
    }

    .tab-read-more:hover {
        opacity: 0.75;
    }
}

/* ============================
   IMAGE LIGHTBOX (fullscreen)
   ============================ */

/* Outer shell: pins to all 4 viewport edges */
.img-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: #fff;
    overflow: hidden;
}

/* Close button: always top-left, never scrolls */
.img-lightbox-close {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 10001;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #1a1a1a;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
    transition: background 0.15s;
}

.img-lightbox-close:hover {
    background: #f5f5f5;
}

/* Big image: fills full lightbox, strip overlays on top */
.img-lightbox-main {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 52px 12px 260px;
    /* bottom padding reserves space for strip */
    background: #f7f7f7;
    box-sizing: border-box;
}

.img-lightbox-main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.15);
    display: block;
    user-select: none;
}

/* Thumbnail strip: pinned to the bottom */
.img-lightbox-thumbs {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 140px;
    height: 104px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    overflow-x: auto;
    overflow-y: hidden;
    background: transparent;
    border-top: none;
    box-sizing: border-box;
    scrollbar-width: none;
}

.img-lightbox-thumbs::-webkit-scrollbar {
    display: none;
}

/* Square thumb tiles */
.img-lightbox-thumbs img {
    width: 76px;
    height: 76px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #ddd;
    cursor: pointer;
    opacity: 0.55;
    transition: opacity 0.15s, border-color 0.15s;
}

.img-lightbox-thumbs img.active {
    border: 2.5px solid #1a1a1a;
    opacity: 1;
}

.img-lightbox-thumbs img:hover:not(.active) {
    opacity: 0.8;
    border-color: #999;
}
