    :root {
        --brand-primary: #f7b731;
        --brand-primary-dark: #e5a520;
        --brand-dark: #1a1a1a;
        --brand-gray: #6b7280;
        --brand-light: #f8f9fa;
        --brand-radius: 12px;
        --brand-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    }

    body {
        background-color: #fcfcfc;
        font-family: 'Inter', sans-serif;
        color: var(--brand-dark);
    }

    /* Disable user selection and blinking text cursor on selector cards/elements */
    .color-option-wrapper,
    .color-swatch-image-card,
    .color-swatch-selectable,
    .color-swatch-dot,
    .size-box,
    .size-box-wrapper,
    .variant-input,
    .rating-stars-inline,
    .badge-tag,
    .quick-add-btn {
        user-select: none !important;
        -webkit-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
        cursor: pointer !important;
        caret-color: transparent !important;
    }

    .product-details-wrapper {
        padding: 40px 15px;
        /* Changed from 40px 0 to 40px 15px to prevent horizontal overflow on mobile */
    }

    /* --- Gallery Section --- */
    @media (min-width: 992px) {
        .sticky-gallery-column {
            position: -webkit-sticky !important;
            position: sticky !important;
            top: 110px !important;
            align-self: flex-start !important;
            z-index: 10;
        }

        .gallery-container {
            display: flex;
            gap: 20px;
        }
    }

    .thumb-column {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 80px;
        flex-shrink: 0;
    }

    .thumb-btn {
        width: 80px;
        height: 100px;
        padding: 4px;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.2s;
    }

    .thumb-btn img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .thumb-btn:hover,
    .thumb-btn.active {
        border-color: var(--brand-primary);
        transform: translateX(4px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

    .main-stage-card {
        flex-grow: 1;
        background: #ffffff;
        border-radius: var(--brand-radius);
        box-shadow: var(--brand-shadow);
        position: relative;
        overflow: hidden;
        aspect-ratio: 4/5;
        border: 1px solid #f1f5f9;
    }

    #mainDisplayImg {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: opacity 0.18s ease-in-out;
    }

    /* Wishlist Heart in Corner */
    .wish-corner-btn {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        background: #fff;
        border: none;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        color: var(--brand-gray);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        z-index: 10;
        transition: all 0.2s;
        cursor: pointer;
    }

    .wish-corner-btn:hover {
        transform: scale(1.1);
        color: #ef4444;
    }

    .wish-corner-btn.active {
        color: #ef4444;
    }

    .wish-corner-btn.active i::before {
        content: "\f415";
    }

    /* Carousel Indicator Pill for Mobile */
    .carousel-indicator-pill {
        display: none;
        position: absolute;
        bottom: 16px;
        right: 16px;
        background: rgba(0, 0, 0, 0.65);
        color: #ffffff;
        padding: 4px 10px;
        border-radius: 20px;
        font-size: 11px;
        font-weight: 700;
        z-index: 10;
        letter-spacing: 0.5px;
        pointer-events: none;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    }

    @media (max-width: 992px) {
        .carousel-indicator-pill {
            display: block;
        }
    }

    /* Share Button in Corner */
    .share-corner-btn {
        position: absolute;
        top: 74px;
        right: 20px;
        width: 44px;
        height: 44px;
        background: #fff;
        border: none;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        color: var(--brand-gray);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        z-index: 10;
        transition: all 0.2s;
        cursor: pointer;
    }

    .share-corner-btn:hover {
        transform: scale(1.1);
        color: var(--brand-primary-dark);
    }

    /* Share Popup */
    .share-popup-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 9998;
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        animation: fadeIn 0.2s ease;
    }

    .share-popup {
        display: none;
        position: fixed;
        z-index: 9999;
        background: #fff;
        border-radius: 20px;
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
        padding: 28px 24px 20px;
        width: 340px;
        max-width: 92vw;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0;
        transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.25s ease;
    }

    .share-popup.active {
        display: block;
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    .share-popup-overlay.active {
        display: block;
    }

    .share-popup-title {
        font-size: 0.7rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        color: var(--brand-gray);
        margin-bottom: 18px;
    }

    .share-options-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        margin-bottom: 18px;
    }

    .share-option {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        padding: 12px 6px;
        border-radius: 14px;
        border: none;
        background: #f8f9fa;
        cursor: pointer;
        transition: all 0.2s;
        text-decoration: none;
    }

    .share-option:hover {
        background: #f0f0f0;
        transform: translateY(-2px);
    }

    .share-option .share-icon {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        color: #fff;
    }

    .share-option .share-label {
        font-size: 0.68rem;
        font-weight: 700;
        color: var(--brand-dark);
        letter-spacing: 0.3px;
    }

    .share-icon-whatsapp { background: #25D366; }
    .share-icon-facebook { background: #1877F2; }
    .share-icon-twitter  { background: #000; }
    .share-icon-copy     { background: var(--brand-primary); }

    .share-copy-bar {
        display: flex;
        align-items: center;
        gap: 8px;
        background: #f4f4f5;
        border-radius: 10px;
        padding: 8px 12px;
    }

    .share-copy-bar input {
        flex: 1;
        border: none;
        background: transparent;
        font-size: 0.78rem;
        color: var(--brand-dark);
        outline: none;
        font-weight: 600;
        min-width: 0;
    }

    .share-copy-bar button {
        border: none;
        background: var(--brand-primary);
        color: #fff;
        font-size: 0.7rem;
        font-weight: 800;
        padding: 6px 14px;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.2s;
        white-space: nowrap;
        letter-spacing: 0.5px;
    }

    .share-copy-bar button:hover {
        background: var(--brand-primary-dark);
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    /* --- Lightbox Modal Styles --- */
    .lightbox-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(10, 10, 10, 0.94);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 9999;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
    }

    .lightbox-modal.active {
        opacity: 1;
        visibility: visible;
    }

    .lightbox-close {
        position: absolute;
        top: 30px;
        right: 30px;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(5px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: #fff;
        font-size: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 10002;
        transition: all 0.3s ease;
    }

    .lightbox-close:hover {
        background: #ef4444;
        border-color: #ef4444;
        transform: rotate(90deg) scale(1.1);
    }

    .lightbox-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(5px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: #fff;
        font-size: 22px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 10001;
        transition: all 0.3s ease;
    }

    .lightbox-prev {
        left: 40px;
    }

    .lightbox-next {
        right: 40px;
    }

    .lightbox-arrow:hover {
        background: var(--brand-primary, #f7b731);
        border-color: var(--brand-primary, #f7b731);
        color: #000;
        box-shadow: 0 10px 25px rgba(247, 183, 49, 0.4);
        transform: translateY(-50%) scale(1.1);
    }

    .lightbox-content {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        position: relative;
    }

    .lightbox-img-wrapper {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: grab;
    }

    .lightbox-img-wrapper:active {
        cursor: grabbing;
    }

    #lightboxImg {
        max-width: 85%;
        max-height: 80%;
        object-fit: contain;
        user-select: none;
        -webkit-user-drag: none;
        transform: scale(0.9) translate(0, 0);
        transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
        opacity: 0;
    }

    .lightbox-modal.active #lightboxImg {
        transform: scale(1) translate(0, 0);
        opacity: 1;
    }

    .lightbox-dots {
        position: absolute;
        bottom: 40px;
        display: flex;
        gap: 12px;
        z-index: 10001;
        background: rgba(255, 255, 255, 0.08);
        padding: 10px 20px;
        border-radius: 30px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
    }

    .lightbox-dot-btn {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        border: none;
        padding: 0;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .lightbox-dot-btn.active {
        background: var(--brand-primary, #f7b731);
        transform: scale(1.3);
        box-shadow: 0 0 10px var(--brand-primary, #f7b731);
    }

    @media (max-width: 768px) {
        .lightbox-arrow {
            width: 44px;
            height: 44px;
            font-size: 16px;
        }

        .lightbox-prev {
            left: 15px;
        }

        .lightbox-next {
            right: 15px;
        }

        .lightbox-close {
            top: 20px;
            right: 20px;
            width: 44px;
            height: 44px;
            font-size: 20px;
        }

        #lightboxImg {
            max-width: 95%;
            max-height: 75%;
        }

        .lightbox-dots {
            bottom: 25px;
        }
    }

    /* Zoom Engine */
    .zoom-lens {
        position: absolute;
        border: 1px solid #d4d4d4;
        width: 150px;
        height: 150px;
        background: rgba(255, 255, 255, 0.4);
        display: none;
        pointer-events: none;
    }

    .zoom-result {
        position: absolute;
        left: 105%;
        top: 0;
        width: 500px;
        height: 600px;
        border-radius: var(--brand-radius);
        border: 1px solid #f0f0f0;
        background-repeat: no-repeat;
        display: none;
        z-index: 100;
        box-shadow: var(--brand-shadow);
        background-color: #fff;
    }

    /* --- Info Pane --- */
    .brand-pill {
        display: inline-block;
        padding: 4px 12px;
        background: rgba(247, 183, 49, 0.1);
        color: var(--brand-primary-dark);
        font-weight: 800;
        font-size: 11px;
        border-radius: 20px;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 12px;
    }

    .product-main-title {
        font-size: 28px;
        font-weight: 700; /* Editorial bold */
        color: #0f172a;    /* Premium slate */
        margin-bottom: 12px;
        line-height: 1.25;
        letter-spacing: -0.01em;
    }

    .rating-pill {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 6px 14px;
        background: #f8f9fa;
        border-radius: 30px;
        border: 1px solid #eee;
        font-weight: 700;
        font-size: 14px;
        color: var(--brand-dark);
        transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.01);
    }

    .rating-pill:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        border-color: var(--brand-primary);
    }

    .rating-star {
        color: var(--brand-primary);
    }

    /* Premium Stock Badge Redesign */
    #dynamic-stock-status {
        display: inline-flex;
        align-items: center;
    }

    #dynamic-stock-status span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 14px;
        border-radius: 30px;
        font-size: 12px;
        font-weight: 700 !important;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        border: 1px solid transparent;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.01);
        transition: all 0.2s ease;
    }

    #dynamic-stock-status .text-success {
        background: rgba(25, 135, 84, 0.08) !important;
        color: #198754 !important;
        border: 1px solid rgba(25, 135, 84, 0.15) !important;
    }

    #dynamic-stock-status .text-warning,
    #dynamic-stock-status span[style*="color:#d97706"],
    #dynamic-stock-status span[style*="color: #d97706"] {
        background: rgba(247, 183, 49, 0.08) !important;
        color: #d97706 !important;
        border: 1px solid rgba(247, 183, 49, 0.18) !important;
    }

    #dynamic-stock-status .text-danger {
        background: rgba(220, 53, 69, 0.08) !important;
        color: #dc3545 !important;
        border: 1px solid rgba(220, 53, 69, 0.15) !important;
    }

    .price-section {
        margin: 24px 0;
        display: flex;
        flex-direction: column;
    }

    .current-price {
        font-size: 32px;
        font-weight: 800;
        color: var(--brand-dark);
    }

    .old-price {
        font-size: 18px;
        color: var(--brand-gray);
        text-decoration: line-through;
        margin-left: 12px;
    }

    .discount-pill {
        font-size: 14px;
        color: #10b981;
        font-weight: 800;
        background: rgba(16, 185, 129, 0.1);
        padding: 4px 12px;
        border-radius: 6px;
        margin-left: 16px;
    }

    /* --- Action Buttons --- */
    .btn-brand-primary {
        background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
        color: var(--brand-dark);
        font-weight: 800;
        border: none;
        border-radius: 12px;
        padding: 18px;
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: 1px;
        transition: transform 0.2s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.2s;
        box-shadow: 0 4px 15px rgba(247, 183, 49, 0.2);
    }

    .btn-brand-primary:hover {
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 8px 25px rgba(247, 183, 49, 0.35);
    }

    .btn-brand-primary:active {
        transform: translateY(0) scale(0.98);
    }

    .btn-brand-outline {
        background: #fff;
        color: var(--brand-dark);
        font-weight: 800;
        border: 2px solid var(--brand-dark);
        border-radius: 12px;
        padding: 16px;
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: 1px;
        transition: transform 0.2s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.2s, background 0.2s, color 0.2s;
    }

    .btn-brand-outline:hover {
        background: var(--brand-dark);
        color: #fff;
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 8px 25px rgba(26, 26, 26, 0.15);
    }

    .btn-brand-outline:active {
        transform: translateY(0) scale(0.98);
    }

    /* --- Review Modal Styles --- */
    .review-modal .modal-content {
        border-radius: 24px;
        border: none;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    }

    .review-modal .modal-header {
        border-bottom: 1px solid #f3f4f6;
        padding: 24px 32px;
    }

    .review-modal .modal-body {
        padding: 32px;
    }

    .star-rating {
        display: flex;
        flex-direction: row-reverse;
        justify-content: center;
        gap: 12px;
        margin: 20px 0;
    }

    .star-rating input {
        display: none;
    }

    .star-rating label {
        font-size: 42px;
        color: #e5e7eb;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .star-rating label:hover,
    .star-rating label:hover~label,
    .star-rating input:checked~label {
        color: var(--brand-primary);
        transform: scale(1.1);
    }

    .rating-label-text {
        text-align: center;
        font-weight: 700;
        color: var(--brand-gray);
        font-size: 14px;
        margin-top: 8px;
        min-height: 20px;
    }

    /* --- Variant Selectors (Myntra-Style) --- */
    .variant-input:checked+.color-swatch-selectable {
        transform: scale(1.1);
        box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--brand-primary);
    }

    .color-swatch-selectable {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        border: 2px solid #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
        box-shadow: 0 0 0 1px #eaeaec;
        position: relative;
    }

    .color-swatch-selectable i {
        font-size: 16px;
        display: none;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }

    .variant-input:checked+.color-swatch-selectable i {
        display: block;
    }

    .color-option-wrapper:hover .color-swatch-selectable {
        transform: scale(1.08);
    }

    .color-option-wrapper {
        position: relative;
    }

    .size-box {
        min-width: 48px;
        height: 42px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1.5px solid #d4d5d9;
        font-size: 13.5px;
        font-weight: 600;
        color: #282c3f;
        cursor: pointer;
        transition: all 0.2s ease-in-out;
        background: #fff;
        padding: 0 16px;
        position: relative;
    }

    .size-box:hover {
        border-color: var(--brand-primary);
        color: var(--brand-primary);
        transform: scale(1.05);
    }

    .variant-input:checked+.size-box {
        border: 1.5px solid var(--brand-primary) !important;
        color: var(--brand-primary) !important;
        background-color: rgba(247, 183, 49, 0.05) !important;
        font-weight: 700;
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(247, 183, 49, 0.12);
    }

    .material-box {
        min-width: 48px;
        height: 48px;
        border-radius: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1.5px solid #d4d5d9;
        font-size: 14px;
        font-weight: 600;
        color: #282c3f;
        cursor: pointer;
        transition: all 0.2s ease-in-out;
        background: #fff;
        padding: 0 16px;
        position: relative;
    }

    .material-box:hover {
        border-color: var(--brand-primary);
        color: var(--brand-primary);
        transform: scale(1.05);
    }

    .variant-input:checked+.material-box {
        border: 1.5px solid var(--brand-primary) !important;
        color: var(--brand-primary) !important;
        background-color: rgba(247, 183, 49, 0.05) !important;
        font-weight: 700;
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(247, 183, 49, 0.12);
    }

    /* Out of stock (Myntra-style) */
    .variant-input.out-of-stock+.size-box {
        background-color: #f5f5f6 !important;
        color: #bfc0c6 !important;
        border: 1.5px dashed #eaeaec !important;
        text-decoration: line-through;
        opacity: 0.65;
        cursor: not-allowed;
        pointer-events: none;
        overflow: hidden;
        transform: none !important;
        box-shadow: none !important;
    }

    .variant-input.out-of-stock+.size-box::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to top right, transparent 48%, #d4d5d9 49%, #d4d5d9 51%, transparent 52%);
        z-index: 2;
        pointer-events: none;
    }

    .variant-input.out-of-stock+.material-box {
        background-color: #f5f5f6 !important;
        color: #bfc0c6 !important;
        border: 1.5px dashed #eaeaec !important;
        opacity: 0.65;
        cursor: not-allowed;
        pointer-events: none;
        overflow: hidden;
        transform: none !important;
        box-shadow: none !important;
    }

    .variant-input.out-of-stock+.material-box::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to top right, transparent 48%, #d4d5d9 49%, #d4d5d9 51%, transparent 52%);
        z-index: 2;
        pointer-events: none;
    }

    .variant-input.out-of-stock+.color-swatch-selectable {
        opacity: 0.45;
        cursor: not-allowed;
        pointer-events: none;
        transform: none !important;
        box-shadow: 0 0 0 1px #eaeaec !important;
    }

    .variant-input.out-of-stock+.color-swatch-selectable::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to top right, transparent 48%, #d4d5d9 49%, #d4d5d9 51%, transparent 52%);
        z-index: 3;
        pointer-events: none;
        border-radius: 50%;
    }

    /* Size Chart Modal Styles */
    .size-chart-modal .nav-link {
        color: var(--brand-dark);
        background: transparent;
    }

    .size-chart-modal .nav-link.active {
        color: #fff !important;
        background-color: var(--brand-primary) !important;
    }

    .size-chart-modal table tbody tr {
        transition: transform 0.2s;
    }

    .size-chart-modal table tbody tr:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.02);
    }

    .size-chart-btn:hover {
        color: var(--brand-primary-dark) !important;
        text-decoration: underline !important;
    }

    /* Myntra-Style Color Swatches */
    .color-link-card {
        width: 50px;
        height: 65px;
        border: 2px solid #eee;
        border-radius: 8px;
        overflow: hidden;
        transition: all 0.2s;
        display: block;
        position: relative;
        text-decoration: none;
    }

    .color-link-card:hover,
    .color-link-card.active {
        border-color: var(--brand-primary);
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .color-link-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .color-name-tooltip {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.7);
        color: #fff;
        font-size: 8px;
        text-align: center;
        padding: 2px 0;
        opacity: 0;
        transition: opacity 0.2s;
    }

    .color-link-card:hover .color-name-tooltip {
        opacity: 1;
    }

    .active-tick {
        position: absolute;
        top: 2px;
        right: 2px;
        background: var(--brand-primary);
        color: var(--brand-dark);
        border-radius: 50%;
        width: 14px;
        height: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 9px;
        font-weight: 900;
        z-index: 2;
    }

    /* Myntra-Style Color Swatch Image Cards */
    .color-swatch-image-card {
        width: 50px;
        height: 65px;
        border: 2px solid #eee;
        border-radius: 8px;
        overflow: hidden;
        transition: all 0.2s;
        display: block;
        position: relative;
        cursor: pointer;
    }

    .variant-input:checked+.color-swatch-image-card,
    .color-option-wrapper.active .color-swatch-image-card {
        border-color: var(--brand-primary);
        transform: scale(1.08);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    }

    .color-swatch-image-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .color-swatch-image-card:hover {
        border-color: var(--brand-primary);
        transform: translateY(-2px);
    }

    .color-option-wrapper.active {
        position: relative;
    }

    .color-option-wrapper.active::after {
        content: '';
        position: absolute;
        inset: -3px;
        border: 2px solid var(--brand-primary);
        border-radius: 10px;
        pointer-events: none;
    }



    /* --- Tabs & Content --- */
    .details-card {
        background: #fff;
        border-radius: var(--brand-radius);
        box-shadow: var(--brand-shadow);
        padding: 32px;
        margin-top: 40px;
    }

    .section-label {
        font-size: 11px;
        font-weight: 800;
        color: #282c3f; /* Premium high-contrast dark charcoal */
        text-transform: uppercase;
        letter-spacing: 1.5px;
        margin-bottom: 16px;
        display: block;
        border-left: 3px solid var(--brand-primary);
        padding-left: 8px;
    }

    #productInfoTabs .nav-link {
        border: none !important;
        background: transparent !important;
        border-bottom: 3px solid transparent !important;
        color: var(--brand-gray) !important;
        transition: all 0.2s;
    }
    #productInfoTabs .nav-link.active {
        border-bottom: 3px solid var(--brand-primary) !important;
        color: var(--brand-dark) !important;
    }
    #productInfoTabs .nav-link:hover {
        color: var(--brand-primary-dark) !important;
    }

    .spec-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 24px;
    }

    .spec-item {
        border-left: 3px solid var(--brand-primary);
        padding-left: 12px;
    }

    .spec-key {
        font-size: 11px;
        font-weight: 700;
        color: var(--brand-gray);
        text-transform: uppercase;
    }

    .spec-val {
        font-size: 14px;
        font-weight: 600;
        color: var(--brand-dark);
    }

    /* --- Enterprise Review System --- */
    .review-summary-card {
        background: #fff;
        border-radius: var(--brand-radius);
        box-shadow: var(--brand-shadow);
        padding: 40px;
        display: flex;
        gap: 60px;
        margin-top: 60px;
        align-items: center;
    }

    .shipping-info-card {
        padding: 1rem !important;
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
    }

    .rating-big-box {
        text-align: center;
        padding-right: 60px;
        border-right: 1px solid #eee;
    }

    .rating-big-num {
        font-size: 64px;
        font-weight: 900;
        color: var(--brand-dark);
        line-height: 1;
    }

    .rating-big-stars {
        font-size: 20px;
        color: var(--brand-primary);
        margin: 15px 0;
    }

    .breakdown-list {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .breakdown-item {
        display: flex;
        align-items: center;
        gap: 15px;
        font-size: 13px;
        font-weight: 700;
        color: var(--brand-gray);
    }

    .breakdown-bar-bg {
        flex: 1;
        height: 8px;
        background: #f0f0f0;
        border-radius: 10px;
        overflow: hidden;
    }

    .breakdown-bar-fill {
        height: 100%;
        background: var(--brand-primary);
        border-radius: 10px;
    }

    .review-item {
        background: #fff;
        border-radius: 12px;
        padding: 12px 18px;
        margin-bottom: 12px;
        border: 1px solid rgba(0, 0, 0, 0.04);
        transition: all 0.3s;
    }

    .review-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

    .btn-see-all-reviews {
        font-size: 0.82rem;
        letter-spacing: 0.3px;
        transition: all 0.3s ease;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    @media (max-width: 576px) {
        .btn-see-all-reviews {
            font-size: 0.72rem;
            letter-spacing: 0.1px;
            padding-top: 8px;
            padding-bottom: 8px;
        }
    }

    .reviews-scroll-container {
        max-height: 500px;
        overflow-y: auto;
        padding-right: 15px;
        scrollbar-width: thin;
        scrollbar-color: #f7b731 #f8f9fa;
    }

    .reviews-scroll-container::-webkit-scrollbar {
        width: 6px;
    }

    .reviews-scroll-container::-webkit-scrollbar-track {
        background: #f8f9fa;
        border-radius: 10px;
    }

    .reviews-scroll-container::-webkit-scrollbar-thumb {
        background: #f7b731;
        border-radius: 10px;
    }

    .reviewer-avatar {
        width: 36px;
        height: 36px;
        background: var(--brand-light);
        color: var(--brand-primary-dark);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 800;
        font-size: 14px;
        border: 2px solid #fff;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
        flex-shrink: 0;
    }

    .verified-badge {
        font-size: 10px;
        font-weight: 800;
        color: #10b981;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .review-stars {
        font-size: 12px;
        color: var(--brand-primary);
    }

    /* --- Description Expandable --- */
    .description-wrapper {
        position: relative;
        max-height: 120px;
        /* Initial collapsed height */
        overflow: hidden;
        transition: max-height 0.5s ease;
    }

    .description-wrapper.expanded {
        max-height: 2000px;
        /* Larger than any expected description */
    }

    .description-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: linear-gradient(transparent, rgba(255, 255, 255, 1));
        pointer-events: none;
        transition: opacity 0.3s;
    }

    .description-wrapper.expanded .description-overlay {
        opacity: 0;
    }

    /* Premium Centered Toggle Pill Button */
    .btn-desc-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        color: #475569; /* Slate-600 */
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.8px;
        padding: 8px 18px;
        border-radius: 100px;
        cursor: pointer;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
        margin-top: 14px;
        text-transform: uppercase;
        outline: none;
    }

    .btn-desc-toggle:hover {
        background: #f8fafc;
        border-color: #cbd5e1;
        color: #0f172a;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

    .btn-desc-toggle i {
        font-size: 12px;
        transition: transform 0.2s ease;
    }

    /* Premium Golden Theme Pincode Input Focus */
    .pincode-input-custom:focus {
        border-color: var(--brand-primary) !important;
        box-shadow: 0 0 0 3px rgba(247, 183, 49, 0.15) !important;
        background-color: #fff !important;
    }
    #pincode-edit-wrapper:focus-within .input-group-text {
        border-color: var(--brand-primary) !important;
    }
    .pincode-success-card {
        background: linear-gradient(135deg, rgba(16, 185, 129, 0.03) 0%, rgba(16, 185, 129, 0.06) 100%) !important;
        border: 1px solid rgba(16, 185, 129, 0.12) !important;
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.02);
        animation: pinFadeIn 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    }
    @keyframes pinFadeIn {
        from { opacity: 0; transform: translateY(4px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* Q&A Styles */
    .qa-card {
        background: #fff;
        border-radius: var(--brand-radius);
        padding: 15px;
        border: 1px solid rgba(0, 0, 0, 0.03);
        position: relative; /* Setup boundary for floating elements */
    }

    .qa-floating-msg-btn {
        position: absolute;
        bottom: 12px;
        right: 12px;
        background-color: #000000;
        color: #ffffff;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        border: none;
        z-index: 10;
    }

    .qa-floating-msg-btn:hover {
        transform: scale(1.06);
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
        background-color: #222222;
        color: #ffffff;
    }

    .qa-floating-msg-btn i {
        font-size: 16px;
    }

    .qa-floating-form-box {
        position: absolute;
        bottom: 60px;
        right: 12px;
        width: 300px;
        max-width: calc(100% - 24px);
        z-index: 100;
        border: 1px solid rgba(0, 0, 0, 0.06) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    }

    .qa-item {
        border-bottom: 1px solid #f5f5f5;
        padding-bottom: 20px;
        margin-bottom: 10px;
    }

    .qa-item:last-child {
        border-bottom: none;
    }

    .qa-q {
        font-weight: 800;
        color: var(--brand-dark);
        font-size: 15px;
        margin-bottom: 8px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
        word-break: break-word;
    }

    .qa-a {
        font-size: 14px;
        color: var(--brand-gray);
        padding-left: 32px;
    }

    /* Offcanvas glassmorphism backdrop & responsiveness */
    .offcanvas-backdrop {
        transition: opacity 0.25s linear !important;
        z-index: 1040 !important;
    }

    .offcanvas-backdrop.show {
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        background-color: rgba(255, 255, 255, 0.5) !important; /* White tinted overlay */
        z-index: 1040 !important;
    }

    #faqOffcanvas {
        background-color: #ffffff !important;
        height: 65vh !important;
        max-height: 80vh !important;
        border: none;
        border-top: 1px solid rgba(0, 0, 0, 0.04);
        border-top-left-radius: 24px;
        border-top-right-radius: 24px;
        box-shadow: 0 -15px 45px rgba(0, 0, 0, 0.12) !important; /* Upward shadow highlight */
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s !important;
        z-index: 1060 !important; /* Render strictly above the backdrop */
        filter: none !important; /* Prevent any filter leakage from backdrop */
        backdrop-filter: none !important;
    }

    #faqOffcanvas.showing,
    #faqOffcanvas.show {
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s !important;
        transition-delay: 0.15s !important; /* Choreographed: slide in after blur fades in */
    }

    @media (max-width: 991px) {
        .mobile-bottom-nav {
            display: none !important; /* Hide mobile bottom navigation bar on product details page to maximize real estate */
        }

        #faqOffcanvas {
            height: 65vh !important;
            bottom: 0 !important; /* Sit exactly at the bottom of the screen */
            border-top-left-radius: 20px !important;
            border-top-right-radius: 20px !important;
        }
    }

    /* Related Products Section */
    .related-product-card {
        background: #fff;
        border-radius: 20px;
        border: 1px solid #f0f0f0;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }

    .related-product-card:hover {
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
        border-color: var(--brand-primary);
    }

    .related-img-container {
        height: 220px;
        padding: 20px;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .related-img-container img {
        max-height: 100%;
        max-width: 100%;
        object-fit: contain;
        transition: transform 0.5s ease;
    }

    .related-info {
        padding: 20px;
        text-align: center;
    }

    .related-title {
        font-size: 14px;
        font-weight: 700;
        color: var(--brand-dark);
        margin-bottom: 8px;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .related-price {
        font-weight: 800;
        color: var(--brand-dark);
        font-size: 16px;
    }

    .related-discount {
        position: absolute;
        top: 15px;
        left: 15px;
        background: #10b981;
        color: #fff;
        font-size: 10px;
        font-weight: 900;
        padding: 4px 10px;
        border-radius: 6px;
        z-index: 2;
    }

    .view-btn-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--brand-dark);
        color: #fff;
        font-size: 11px;
        font-weight: 800;
        padding: 10px;
        text-transform: uppercase;
        letter-spacing: 1px;
        transform: translateY(100%);
        transition: transform 0.3s ease;
        text-decoration: none;
    }

    .related-product-card:hover .view-btn-overlay {
        transform: translateY(0);
    }

    @media (max-width: 992px) {
        .gallery-container {
            display: flex !important;
            flex-direction: column-reverse !important;
            position: static;
            gap: 15px;
        }

        .thumb-column {
            flex-direction: row;
            width: 100%;
            overflow-x: auto;
            padding: 10px 0;
            scroll-behavior: smooth;
            -ms-overflow-style: none;
            scrollbar-width: none;
            justify-content: flex-start;
            gap: 8px;
        }

        .thumb-column::-webkit-scrollbar {
            display: none;
        }

        .thumb-btn {
            width: 60px;
            height: 75px;
            flex-shrink: 0;
        }

        .main-stage-card {
            height: auto;
            max-height: 500px;
            aspect-ratio: 4/5;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #ffffff;
            margin: 0 auto;
            width: 100%;
        }

        #mainDisplayImg {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .zoom-result {
            display: none !important;
        }

        .review-summary-card {
            padding: 24px;
            gap: 24px;
            flex-direction: row;
            align-items: center;
        }

        .rating-big-box {
            padding-right: 24px;
            border-right: 1px solid #eee;
            border-bottom: none;
            padding-bottom: 0;
            width: auto;
        }

        .rating-big-num {
            font-size: 40px;
        }
    }

    @media (max-width: 768px) {
        .product-info-scroller {
            padding: 0 16px;
        }

        .product-details-wrapper {
            padding: 10px 15px 85px; /* Optimized padding to prevent fixed bar overlap without excess blank space */
        }

        .main-stage-card {
            height: auto;
            max-height: 420px;
            aspect-ratio: 4/5;
            margin-left: -15px;
            margin-right: -15px;
            border-radius: 0;
            border: none;
            box-shadow: none;
            width: calc(100% + 30px);
        }

        .product-main-title {
            font-size: 20px;
            margin-top: 10px;
            font-weight: 700;
        }

        .current-price {
            font-size: 26px;
        }

        .details-card {
            padding: 20px;
            border-radius: 12px;
            margin-left: 0;
            margin-right: 0;
            box-shadow: none;
            border-top: 1px solid #eee;
            margin-top: 20px;
            background: #fff;
        }

        .description-content {
            word-break: break-word;
            overflow-wrap: break-word;
        }

        .breadcrumb {
            display: none !important;
        }

        .sp-mobile-nav {
            display: none !important;
        }

        .breadcrumb-item {
            flex-shrink: 0;
        }

        .mobile-sticky-actions {
            position: relative !important;
            bottom: auto !important;
            left: auto !important;
            right: auto !important;
            width: 100% !important;
            background: transparent !important;
            backdrop-filter: none !important;
            padding: 0 !important;
            box-shadow: none !important;
            border-top: none !important;
            margin: 16px 0 0 0 !important; /* Tightened inline gap */
            z-index: 1 !important;
            display: block !important;
            transition: background-color 0.2s ease, box-shadow 0.2s ease !important;
        }

        /* Active Sticky State: Floating at the absolute bottom of viewport */
        .mobile-sticky-actions.is-stuck {
            position: fixed !important;
            bottom: 0 !important;
            left: 0 !important;
            right: 0 !important;
            width: 100% !important;
            margin: 0 !important;
            background: rgba(255, 255, 255, 0.98) !important;
            backdrop-filter: blur(10px) !important;
            padding: 12px 16px !important;
            padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
            box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.06) !important;
            border-top: 1px solid rgba(226, 232, 240, 0.8) !important;
            z-index: 999 !important;
        }

        #low-stock-alert-container:empty {
            display: none !important;
            margin: 0 !important;
            padding: 0 !important;
            height: 0 !important;
        }


        /* Large Premium buttons in fixed bar */
        .mobile-sticky-actions .btn-brand-primary,
        .mobile-sticky-actions .btn-brand-outline {
            height: 52px !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            font-size: 14px !important;
            font-weight: 750 !important;
            letter-spacing: 0.5px !important;
            text-transform: uppercase !important;
            border-radius: 12px !important;
            box-shadow: 0 4px 12px rgba(247, 183, 49, 0.15) !important;
        }

        .mobile-sticky-actions .row {
            margin: 0 -4px;
            width: 100%;
        }

        .mobile-sticky-actions .col-6 {
            padding: 0 4px;
        }

        /* Premium Tabs Redesign for Mobile/Tablet */
        #productInfoTabs {
            display: flex !important;
            flex-wrap: nowrap !important;
            overflow-x: auto !important;
            scrollbar-width: none !important;
            -webkit-overflow-scrolling: touch;
            gap: 20px !important;
            border-bottom: 1px solid #f1f5f9 !important;
            padding-bottom: 2px !important;
            margin-bottom: 20px !important;
        }
        #productInfoTabs::-webkit-scrollbar {
            display: none !important;
        }
        #productInfoTabs .nav-item {
            white-space: nowrap !important;
        }
        #productInfoTabs .nav-link {
            border: none !important;
            background: none !important;
            color: #64748b !important;
            padding: 8px 2px 12px 2px !important;
            font-size: 13px !important;
            font-weight: 700 !important;
            letter-spacing: 0.5px !important;
            position: relative;
        }
        #productInfoTabs .nav-link.active {
            color: var(--brand-primary) !important;
            border-bottom: 3px solid var(--brand-primary) !important;
        }

        /* Description Styling */
        .description-content {
            font-size: 13.5px !important;
            line-height: 1.7 !important;
            color: #475569 !important;
        }

        /* Specifications Grid Premium Table Redesign */
        .spec-grid {
            display: grid !important;
            grid-template-columns: 1fr !important;
            gap: 0 !important;
            border-radius: 12px !important;
            overflow: hidden !important;
            border: 1px solid #f1f5f9 !important;
        }
        .spec-item {
            display: flex !important;
            justify-content: space-between !important;
            align-items: center !important;
            padding: 12px 16px !important;
            border-bottom: 1px solid #f1f5f9 !important;
            border-left: none !important;
            background: #fff !important;
        }
        .spec-item:nth-child(even) {
            background: #f8fafc !important;
        }
        .spec-item:last-child {
            border-bottom: none !important;
        }
        .spec-key {
            font-size: 13px !important;
            font-weight: 500 !important;
            color: #64748b !important;
            text-transform: none !important;
        }
        .spec-val {
            font-size: 13px !important;
            font-weight: 600 !important;
            color: #0f172a !important;
            text-align: right !important;
        }

        /* Policy & Warranty Cards Redesign */
        #content-policy .bg-light {
            background: #ffffff !important;
            border: 1px solid #f1f5f9 !important;
            box-shadow: 0 2px 8px rgba(0,0,0,0.02) !important;
            border-radius: 12px !important;
            padding: 16px !important;
        }
        #content-policy .bg-white {
            background: #f8fafc !important;
            border: 1px solid #e2e8f0 !important;
            color: var(--brand-primary) !important;
        }

        .variant-section {
            padding: 20px 0;
            display: block !important;
            visibility: visible !important;
        }

        .offer-section {
            padding: 20px;
            border-radius: 12px;
            margin-left: 0;
            margin-right: 0;
            background: #fff;
            border: 1px solid #eee;
            margin-top: 20px;
            display: block !important;
            visibility: visible !important;
        }

        .review-summary-card {
            padding: 20px;
            flex-direction: column;
            gap: 15px;
            align-items: flex-start;
            margin-left: 0;
            margin-right: 0;
            border-radius: 12px;
            box-shadow: none;
            border-top: 1px solid #eee;
            margin-top: 20px;
            background: #fff;
        }

        .rating-big-box {
            padding: 0;
            border: none;
            text-align: left;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .rating-big-num {
            font-size: 36px;
            margin-bottom: 0;
        }

        .rating-big-stars {
            margin: 0;
            font-size: 14px;
        }

        .review-item {
            padding: 15px;
            border-radius: 0;
            margin-left: 0;
            margin-right: 0;
            border: none;
            border-bottom: 1px solid #f0f0f0;
            margin-bottom: 0;
        }

        .shipping-info-card {
            padding: 12px 15px !important;
            margin-top: 15px !important;
            margin-bottom: 15px !important;
            border-radius: 12px !important;
            border-left-width: 3px !important;
        }

        .shipping-info-card .bg-white.rounded-circle {
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            padding: 0 !important;
        }

        .shipping-info-card i {
            font-size: 1.1rem !important;
        }

        .shipping-info-card .fw-bold {
            font-size: 13px;
        }

        .shipping-info-card .extra-small {
            font-size: 10px;
            margin-top: 2px !important;
        }

        .reviews-scroll-container {
            max-height: 400px;
            padding-right: 0;
        }

        .feedback-header-container {
            display: block !important;
            visibility: visible !important;
            opacity: 1 !important;
            position: relative;
            z-index: 5;
            clear: both;
        }

        .feedback-title {
            font-size: 18px !important;
            letter-spacing: 0.5px;
            margin-top: 5px;
        }

        .feedback-header-container .section-label {
            font-size: 10px !important;
            margin-bottom: 8px !important;
        }
    }

    @media (max-width: 576px) {
        .main-stage-card {
            height: auto;
            max-height: 360px;
            aspect-ratio: 4/5;
        }

        .product-main-title {
            font-size: 18px;
            line-height: 1.4;
            padding: 0;
        }

        .current-price {
            font-size: 22px;
        }

        .feedback-title {
            font-size: 16px !important;
            letter-spacing: 0px;
        }

        .feedback-header-container .section-label {
            font-size: 9px !important;
        }

        .price-section {
            padding: 0;
            margin: 10px 0;
        }

        /* Compact rating and stock styling for mobile */
        .rating-pill {
            padding: 4px 10px;
            font-size: 12px;
        }

        #dynamic-stock-status span {
            padding: 4px 10px;
            font-size: 11px;
        }

        .btn-brand-primary,
        .btn-brand-outline {
            padding: 12px;
            font-size: 12px;
            font-weight: 700;
        }

        .gallery-container {
            gap: 0;
        }

        .variant-section {
            padding: 20px 0;
        }
    }

    /* Accessibility outlines & focus visibility */
    .color-option-wrapper:focus-within .color-swatch-image-card,
    .size-option-wrapper:focus-within .size-box,
    .btn-brand-primary:focus-visible,
    .btn-brand-outline:focus-visible,
    .wish-corner-btn:focus-visible,
    .share-corner-btn:focus-visible,
    .thumb-btn:focus-visible {
        outline: 3px solid var(--brand-primary) !important;
        outline-offset: 2px !important;
        box-shadow: 0 0 0 4px rgba(247, 183, 49, 0.2) !important;
    }

    /* Primary CTA entrance bounce animation */
    @keyframes entranceBounce {
        0% { transform: scale(0.96); opacity: 0.8; }
        50% { transform: scale(1.03); }
        100% { transform: scale(1); opacity: 1; }
    }
    .btn-entrance-bounce {
        animation: entranceBounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
    }

    /* Mobile Swipe Snap Carousel for Recommendations */
    @media (max-width: 768px) {
        .carousel-responsive-grid {
            display: flex !important;
            flex-wrap: nowrap !important;
            overflow-x: auto !important;
            scroll-snap-type: x mandatory !important;
            gap: 16px !important;
            padding-bottom: 16px !important;
            scrollbar-width: none !important; /* Hide scrollbar Firefox */
            margin-left: -15px !important;
            margin-right: -15px !important;
            padding-left: 15px !important;
            padding-right: 15px !important;
        }
        .carousel-responsive-grid::-webkit-scrollbar {
            display: none !important; /* Hide scrollbar Chrome/Safari */
        }
        .carousel-responsive-grid .col {
            flex: 0 0 180px !important; /* Fixed card width on mobile */
            max-width: 180px !important;
            scroll-snap-align: start !important;
            padding: 0 !important;
        }

        /* Enforce complete hidden display for zoom lens/results on mobile */
        .zoom-lens, .zoom-result {
            display: none !important;
        }
    }

    /* Mobile Native Swipe Carousel Styles (Myntra-Style) */
    .mobile-swipe-carousel-wrapper {
        position: relative;
        width: 100%;
        border-radius: 16px;
        overflow: hidden;
        background: #f8fafc;
    }
    .mobile-swipe-carousel {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .mobile-swipe-carousel::-webkit-scrollbar {
        display: none;
    }
    .mobile-swipe-slide {
        flex: 0 0 100%;
        width: 100%;
        scroll-snap-align: start;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }
    .mobile-swipe-slide img {
        width: 100%;
        height: auto;
        object-fit: cover;
        aspect-ratio: 3/4;
        display: block;
    }
    #product-code {
       padding: 0;
    }


    /* Local Styles for Recommendations Grid */
    .product-card-modern-custom {
        background: #fff;
        overflow: hidden;
        border: 1px solid #eef2f7;
        border-radius: 12px;
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .product-card-modern-custom:hover {
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
        border-color: var(--brand-primary);
    }

    .product-card-modern-custom .image-wrapper {
        position: relative;
        aspect-ratio: 4/5;
        overflow: hidden;
        padding: 15px;
        background: #fff;
    }

    .product-card-modern-custom .product-img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

    .product-card-modern-custom:hover .product-img {
        transform: scale(1.08);
    }

    .product-card-modern-custom .badge-tag {
        position: absolute;
        top: 8px;
        left: 8px;
        z-index: 5;
        padding: 3px 8px;
        border-radius: 4px;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.5px;
        color: #fff;
        text-transform: uppercase;
    }

    .product-card-modern-custom .badge-tag.discount-standard {
        background: #cc0c39;
    }

    .product-card-modern-custom .badge-tag.new-standard {
        background: #388e3c;
        bottom: 8px;
        right: 8px;
        top: auto;
        left: auto;
    }

    .product-card-modern-custom .product-title a {
        color: var(--brand-dark);
        text-decoration: none;
        font-weight: 600;
        transition: color 0.2s;
    }

    .product-card-modern-custom .product-title a:hover {
        color: var(--brand-primary-dark);
    }

    .product-card-modern-custom .rating-stars-inline i {
        font-size: 10px;
        color: #fca311;
    }

    /* Dynamically handle spacing/borders for Recently Viewed */
    .recommendation-section~#recently-viewed-container {
        border-top: 1px solid #eef2f7;
        margin-top: 3.5rem !important;
        padding-top: 3.5rem !important;
    }

    /* Low Stock Micro-Animations */
    @keyframes pulse-dot-anim {
        0% { transform: scale(0.85); opacity: 0.5; }
        50% { transform: scale(1.2); opacity: 1; }
        100% { transform: scale(0.85); opacity: 0.5; }
    }
    .pulse-dot {
        display: inline-block;
        width: 8px;
        height: 8px;
        background-color: #dc3545;
        border-radius: 50%;
        animation: pulse-dot-anim 1.5s infinite ease-in-out;
    }
    .low-stock-badge-pulse {
        animation: slide-up-fade 0.3s ease-out;
    }
    @keyframes slide-up-fade {
        from { transform: translateY(5px); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }
