
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-box-sizing: border-box;
        }

        /* Brave browser specific fixes */
        @supports (-webkit-appearance: none) and (not (-moz-appearance: none)) {
            .placement-chip {
                display: -webkit-inline-box !important;
                display: inline-block !important;
                vertical-align: middle;
            }

            .color-chip-inline {
                display: -webkit-inline-flex !important;
                display: inline-flex !important;
                -webkit-flex-direction: row !important;
                flex-direction: row !important;
                -webkit-align-items: center !important;
                align-items: center !important;
                vertical-align: middle;
            }

            .quantity-selector {
                display: -webkit-box !important;
                -webkit-box-align: center !important;
                -webkit-box-pack: center !important;
            }
        }

        body {
            font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: #F8F6F0;
            color: #3F3E2C;
            line-height: 1.6;
        }

        /* Announcements Carousel */
        #announcements-container {
            position: relative;
            overflow: hidden;
            width: 100%;
            height: 45px;
        }

        .instagram-announcement {
            position: absolute;
            left: 20px;
            top: 50%;
            transform: translateY(-50%);
            z-index: 10;
        }

        .announcement-slide {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            padding: 12px 20px;
            text-align: center;
            font-size: 14px;
            line-height: 1.5;
            opacity: 0;
            transition: opacity 1s ease-in-out, background-color 1s ease-in-out;
            pointer-events: none;
        }

        .announcement-slide.active {
            opacity: 1;
            pointer-events: auto;
        }

        /* Header */
        .header {
            padding: 15px 0;
            text-align: center;
            position: relative;
        }

        .header-content {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
        }

        .back-arrow {
            position: absolute;
            right: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            color: #556B2F;
            text-decoration: none;
            font-size: 24px;
            transition: all 0.3s;
            cursor: pointer;
        }

        .back-arrow:hover {
            color: #3A6B4E;
            transform: translateX(3px);
        }

        .instagram-link {
            width: 22px;
            height: 22px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            transition: all 0.3s;
        }

        .instagram-link svg {
            width: 100%;
            height: 100%;
            fill: #E4405F;
        }

        .instagram-announcement.has-announcements .instagram-link svg {
            fill: white;
        }

        .instagram-link:hover svg {
            fill: #E4405F;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 28px;
            font-weight: 500;
            color: #556B2F;
            text-decoration: none;
            font-family: 'Noto Nastaliq Urdu', serif;
        }

        .logo-icon {
            font-size: 24px;
            font-family: 'Tajawal', sans-serif;
        }

        /* Cart Icon */
        .cart-icon-wrapper {
            position: absolute;
            left: 20px;
            cursor: pointer;
            transition: transform 0.3s;
        }

        .cart-icon-wrapper:hover {
            transform: scale(1.1);
        }

        .cart-icon {
            width: 28px;
            height: 28px;
            fill: #556B2F;
        }

        .cart-badge {
            position: absolute;
            top: -8px;
            right: -8px;
            background: #DC3545;
            color: white;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            font-weight: bold;
        }

        .cart-badge.hidden {
            display: none;
        }

        /* Cart Sidebar */
        .cart-sidebar {
            position: fixed;
            top: 0;
            right: -400px;
            width: 400px;
            height: 100vh;
            background: white;
            box-shadow: -2px 0 10px rgba(0,0,0,0.1);
            transition: right 0.3s ease;
            z-index: 1000;
            display: flex;
            flex-direction: column;
        }

        .cart-sidebar.open {
            right: 0;
        }

        .cart-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.5);
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s, visibility 0.3s;
            z-index: 999;
        }

        .cart-overlay.visible {
            opacity: 1;
            visibility: visible;
        }

        .cart-header {
            padding: 20px;
            border-bottom: 1px solid #e0e0e0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: relative;
        }

        .cart-title {
            font-size: 20px;
            font-weight: 600;
            color: #3F3E2C;
        }

        .cart-close {
            cursor: pointer;
            font-size: 32px;
            color: #333;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: #f5f5f5;
            transition: all 0.2s;
            font-weight: 300;
            line-height: 1;
        }

        .cart-close:hover {
            background: #e0e0e0;
            color: #000;
        }

        /* Mobile cart sidebar - 80% width */
        @media (max-width: 768px) {
            .cart-sidebar { width: 80%; right: -80%; }
            .cart-sidebar.open { right: 0; }
            .cart-close { font-size: 36px; width: 44px; height: 44px; }
            .cart-header { padding: 16px 20px; }
        }

        .cart-items {
            flex: 1;
            overflow-y: auto;
            padding: 20px;
        }

        .cart-item {
            display: flex;
            gap: 15px;
            padding: 15px 0;
            border-bottom: 1px solid #f0f0f0;
        }

        .cart-item:last-child {
            border-bottom: none;
        }

        .cart-item-image {
            width: 80px;
            height: 80px;
            object-fit: cover;
            border-radius: 8px;
            background: #f8f6f0;
            opacity: 0;
            transition: opacity 0.4s ease-in-out;
        }

        .cart-item-image.loaded {
            opacity: 1;
        }

        .cart-item-details {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .cart-item-name {
            font-size: 14px;
            font-weight: 600;
            color: #3F3E2C;
        }

        .cart-item-size {
            font-size: 12px;
            color: #666;
        }

        .cart-item-price {
            font-size: 14px;
            font-weight: 600;
            color: #556B2F;
        }

        .cart-item-actions {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-top: 5px;
        }

        .qty-btn {
            width: 24px;
            height: 24px;
            border: 1px solid #e0e0e0;
            background: white;
            border-radius: 4px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            color: #333;
            transition: all 0.3s;
        }

        .qty-btn:hover {
            background: #f8f6f0;
            border-color: #8B7355;
        }

        .qty-btn:active {
            background: #f5f5f5;
        }

        .qty-value {
            font-size: 14px;
            font-weight: 600;
            min-width: 20px;
            text-align: center;
        }

        .remove-btn {
            margin-right: auto;
            color: #DC3545;
            font-size: 12px;
            cursor: pointer;
            padding: 4px 8px;
            border-radius: 4px;
            transition: background 0.3s;
            font-family: inherit;
            text-decoration: underline;
        }

        .remove-btn:hover {
            background: #fee;
        }

        .cart-empty {
            text-align: center;
            padding: 60px 20px;
            color: #666;
        }

        .cart-empty-icon {
            font-size: 64px;
            margin-bottom: 15px;
            opacity: 0.3;
        }

        .cart-footer {
            padding: 20px;
            border-top: 1px solid #e0e0e0;
            background: #f8f6f0;
        }

        .cart-subtotal {
            display: flex;
            justify-content: space-between;
            margin-bottom: 15px;
            font-size: 16px;
        }

        .cart-subtotal-label {
            font-weight: 500;
            color: #666;
        }

        .cart-subtotal-value {
            font-weight: 700;
            color: #556B2F;
            font-size: 18px;
        }

        .checkout-btn {
            width: 100%;
            padding: 15px;
            background: #8B7355;
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            font-family: inherit;
        }

        .checkout-btn:hover {
            background: #6d5942;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(139, 115, 85, 0.3);
        }

        /* Add to Cart Button */
        .add-to-cart-section {
            padding: 8px 0 0 0;
            display: flex;
            flex-direction: row;
            gap: 12px;
            align-items: center;
        }

        .quantity-selector {
            display: -webkit-flex;
            display: flex;
            -webkit-align-items: center;
            align-items: center;
            -webkit-justify-content: center;
            justify-content: center;
            background: white;
            background-color: white;
            border: 2px solid #d0c4b0;
            border-radius: 50px;
            padding: 4px;
            gap: 0;
            width: 180px;
            min-width: 180px;
            height: 48px;
            min-height: 48px;
            margin: 0 auto;
            -webkit-align-self: center;
            align-self: center;
            -webkit-box-sizing: border-box;
            box-sizing: border-box;
            -webkit-flex-shrink: 0;
            flex-shrink: 0;
        }

        .quantity-btn {
            width: 40px;
            height: 40px;
            border: none;
            background: transparent;
            color: #3F3E2C;
            font-size: 24px;
            font-weight: 500;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.2s;
            flex-shrink: 0;
        }

        .quantity-btn:hover {
            background: #F8F6F0;
        }

        .quantity-btn:active {
            transform: scale(0.95);
        }

        .quantity-display {
            flex: 1;
            text-align: center;
            font-size: 18px;
            font-weight: 600;
            color: #3F3E2C;
            min-width: 40px;
        }

        .add-to-cart-btn {
            flex: 1;
            width: 100%;
            padding: 18px;
            background: #8B7355;
            color: white;
            border: none;
            border-radius: 12px;
            font-size: 18px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            font-family: inherit;
        }

        .add-to-cart-btn span {
            font-size: 18px;
        }

        .add-to-cart-btn span:first-child {
            filter: grayscale(100%) brightness(10);
        }

        .add-to-cart-btn:hover:not(:disabled) {
            background: #6d5942;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(139, 115, 85, 0.4);
        }

        .add-to-cart-btn:disabled {
            background: #ccc;
            cursor: not-allowed;
        }

        .store-mode-message {
            width: 100%;
            padding: 18px;
            background: #f8f6f0;
            color: #556B2F;
            border: 2px solid #8B7355;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 600;
            text-align: center;
        }

        .back-button {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 20px;
            background: rgba(76, 175, 80, 0.2);
            color: white;
            text-decoration: none;
            border-radius: 8px;
            transition: background 0.3s;
        }

        .back-button:hover {
            background: rgba(76, 175, 80, 0.3);
        }

        /* Loading */
        .loading {
            text-align: center;
            padding: 100px 20px;
        }

        .loading-spinner {
            border: 4px solid #f3f3f3;
            border-top: 4px solid #8B7355;
            border-radius: 50%;
            width: 60px;
            height: 60px;
            animation: spin 1s linear infinite;
            margin: 20px auto;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Product Detail */
        .product-detail {
            max-width: 1400px;
            margin: 20px auto 40px;
            padding: 0 20px;
        }

        .product-layout {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            background: white;
            border-radius: 12px;
            padding: 40px;
            box-shadow: 0 2px 12px rgba(0,0,0,0.08);
        }

        /* Image Gallery */
        .image-gallery {
            position: sticky;
            top: 100px;
            height: fit-content;
            display: flex;
            gap: 15px;
            flex-direction: row-reverse;
        }

        .main-image {
            position: relative;
            flex: 1;
            height: 500px;
            border-radius: 12px;
            overflow: hidden;
            background: #F8F6F0;
            display: flex;
            align-items: center;
            justify-content: center;
            touch-action: pan-x pan-y pinch-zoom;
        }

        .main-image img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            opacity: 0;
            transition: opacity 0.3s ease-in-out, transform 0.2s ease;
            transform-origin: center;
            user-select: none;
            -webkit-user-drag: none;
        }

        .main-image img.loaded {
            opacity: 1;
        }

        /* Prevent layout shift during image load */
        .main-image::before {
            content: '';
            position: absolute;
            width: 40px;
            height: 40px;
            border: 3px solid #e0e0e0;
            border-top-color: #8B7355;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            opacity: 0;
            transition: opacity 0.2s;
        }

        .main-image.loading::before {
            opacity: 1;
        }

        .thumbnail-grid-wrapper {
            position: relative;
            width: 100px;
            display: flex;
            flex-direction: column;
        }

        .thumbnail-scroll-indicator {
            display: none !important;
        }

        .thumbnail-scroll-indicator.visible {
            display: none !important;
        }

        .thumbnail-scroll-indicator:hover {
            display: none !important;
        }

        .thumbnail-scroll-indicator.top {
            display: none !important;
        }

        .thumbnail-scroll-indicator.bottom {
            display: none !important;
        }

        .thumbnail-grid {
            display: flex;
            flex-direction: column;
            gap: 10px;
            max-height: 500px;
            overflow-y: auto;
            overflow-x: hidden;
            padding: 5px;
            scrollbar-width: none;
        }

        /* Hide scrollbar for webkit browsers */
        .thumbnail-grid::-webkit-scrollbar {
            display: none;
        }

        .thumbnail {
            width: 90px;
            height: 90px;
            flex-shrink: 0;
            object-fit: cover;
            border-radius: 8px;
            cursor: pointer;
            border: 2px solid transparent;
            transition: border-color 0.3s, opacity 0.3s ease-in-out;
            opacity: 0;
            background: #F8F6F0;
        }

        .thumbnail.loaded,
        .thumbnail.lazy-loaded {
            opacity: 1;
        }

        .thumbnail.active,
        .thumbnail:hover {
            border-color: #8B7355;
        }

        /* Product Info */
        .product-info {
            display: flex;
            flex-direction: column;
            gap: 24px;
        }

        .product-header {
            padding-bottom: 20px;
            border-bottom: 1px solid #e0e0e0;
        }

        .product-type-badge {
            display: inline-block;
            background: #8B7355;
            color: white;
            padding: 6px 16px;
            border-radius: 20px;
            font-size: 12.6px;
            font-weight: 600;
            margin-bottom: 12px;
        }

        .product-type-badge.makramiyat {
            background: #FF9800;
        }

        .discount-badge {
            position: absolute;
            top: 10px;
            left: -28px;
            background: #dc3545;
            color: white;
            padding: 6px 0;
            font-size: 12px;
            font-weight: 700;
            text-align: center;
            width: 100px;
            transform: rotate(-45deg);
            transform-origin: center;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
            z-index: 3;
        }

        .product-name {
            font-size: 28.8px;
            font-weight: bold;
            color: #3F3E2C;
            margin-bottom: 12px;
            line-height: 1.3;
        }

        .product-description {
            color: #666;
            font-size: 14.4px;
            line-height: 1.8;
            word-wrap: break-word;
            overflow-wrap: break-word;
            text-align: right;
            direction: rtl;
        }

        /* Typography hierarchy */
        .product-description h1,
        .product-description h2,
        .product-description h3 {
            color: #3F3E2C;
            font-weight: 600;
            margin-top: 1em;
            margin-bottom: 0.5em;
            line-height: 1.4;
        }

        .product-description h1 {
            font-size: 20px;
        }

        .product-description h2 {
            font-size: 18px;
        }

        .product-description h3 {
            font-size: 16px;
        }

        /* Paragraph and line break handling */
        .product-description p {
            margin: 0 0 1em 0;
            padding: 0;
        }

        .product-description p:last-child {
            margin-bottom: 0;
        }

        .product-description br {
            display: block;
            content: "";
            margin-top: 0.5em;
        }

        /* Text formatting */
        .product-description b,
        .product-description strong {
            font-weight: 700;
            color: #3F3E2C;
        }

        .product-description em,
        .product-description i {
            font-style: italic;
        }

        /* Links */
        .product-description a {
            color: #8B7355;
            text-decoration: underline;
        }

        .product-description a:hover {
            color: #6d5942;
        }

        /* Lists */
        .product-description ul,
        .product-description ol {
            margin: 0.5em 0 0.5em 10px;
            padding-right: 20px;
            padding-left: 0;
            list-style-position: outside;
        }

        .product-description li {
            margin: 0.25em 0 0.25em 5px;
            line-height: 1.6;
            padding-right: 0;
            padding-left: 0;
        }

        /* Ensure proper RTL bullet positioning */
        @supports (-webkit-appearance: none) {
            .product-description ul,
            .product-description ol {
                -webkit-padding-end: 20px;
                -webkit-margin-start: 10px;
            }

            .product-description li {
                -webkit-margin-start: 5px;
            }
        }

        /* Blockquotes */
        .product-description blockquote {
            margin: 1em 0;
            padding: 0.5em 1em;
            border-right: 3px solid #8B7355;
            border-left: none;
            background: #F8F6F0;
            font-style: italic;
        }

        /* Color spans (custom and from iOS) */
        .product-description span[style*="color"] {
            /* Preserve inline color styles */
        }

        /* iOS-specific fixes */
        .product-description span[style*="font-weight: bold"],
        .product-description span[style*="font-weight:bold"] {
            font-weight: 700 !important;
            color: #3F3E2C;
        }

        /* Preserve rich text formatting */
        .product-description * {
            line-height: inherit;
        }

        /* Size Selection */
        .size-selection {
            padding: 8px 0;
            border-bottom: 1px solid #e0e0e0;
        }

        .section-title {
            font-size: 16.2px;
            font-weight: 600;
            color: #3F3E2C;
            margin-bottom: 6px;
        }

        .size-options {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
        }

        .size-option {
            padding: 16px 20px;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s;
            background: white;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 8px;
            position: relative;
        }

        @media (max-width: 768px) {
            .size-options {
                grid-template-columns: 1fr;
            }

            .size-option {
                width: 100%;
                display: flex;
                flex-direction: row;
                flex-wrap: wrap;
                align-items: flex-start;
                gap: 12px;
            }

            /* Size name takes full width on first row */
            .size-name {
                width: 100%;
                font-size: 18px;
                font-weight: 700;
                order: 1;
            }

            /* Dimensions on left (in RTL, order 3 appears on left) */
            .size-dimensions {
                flex: 1;
                order: 3;
                align-self: center;
                text-align: right;
            }

            /* Price on right (in RTL, order 2 appears on right) */
            .size-price {
                flex-shrink: 0;
                order: 2;
                display: flex;
                flex-direction: column;
                gap: 4px;
                align-items: flex-start;
                align-self: center;
            }
        }

        .size-option:hover:not(.active) {
            border-color: #8B7355;
            background: #fefefe;
        }

        .size-option.active {
            border: 2px solid #8B7355 !important;
            border-color: #8B7355 !important;
            background-color: #F8F6F0 !important;
            background: #F8F6F0 !important;
            box-shadow: 0 0 0 1px #8B7355 inset !important;
        }

        .size-option.active:hover {
            border: 2px solid #8B7355 !important;
            border-color: #8B7355 !important;
            background-color: #F8F6F0 !important;
            background: #F8F6F0 !important;
            box-shadow: 0 0 0 1px #8B7355 inset !important;
        }

        .size-name {
            font-weight: 600;
        }

        .size-price {
            color: #8B7355;
            font-weight: bold;
        }

        .size-dimensions {
            color: #666;
            font-size: 12.6px;
        }

        /* Dimensions */
        .dimensions-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 16px;
            padding: 16px 0;
            border-bottom: 1px solid #e0e0e0;
        }

        .dimension-item {
            text-align: center;
            padding: 16px;
            background: #F8F6F0;
            border-radius: 12px;
        }

        .dimension-icon {
            font-size: 28.8px;
            margin-bottom: 8px;
        }

        .dimension-label {
            font-size: 12.6px;
            color: #666;
            margin-bottom: 4px;
        }

        .dimension-value {
            font-size: 14.4px;
            font-weight: bold;
            color: #3F3E2C;
        }

        /* Placement Options - Inline */
        .placement-section-inline {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 12px;
            margin-bottom: 8px;
            flex-wrap: wrap;
        }

        .placement-label {
            font-size: 13px;
            font-weight: 600;
            color: #666;
        }

        .placement-grid-inline {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }

        .placement-chip {
            display: -webkit-inline-flex;
            display: inline-flex;
            -webkit-align-items: center;
            align-items: center;
            -webkit-justify-content: center;
            justify-content: center;
            padding: 4px 12px;
            background: #F8F6F0;
            background-color: #F8F6F0;
            border: 1px solid #d0c4b0;
            border-radius: 15px;
            font-size: 15.6px;
            font-weight: 500;
            color: #3F3E2C;
            white-space: nowrap;
            -webkit-box-sizing: border-box;
            box-sizing: border-box;
            -webkit-appearance: none;
            appearance: none;
            text-decoration: none;
            line-height: 1.4;
            min-height: 24px;
        }

        /* Colors - Inline */
        .colors-section-inline {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 8px;
            margin-bottom: 8px;
            flex-wrap: wrap;
        }

        .colors-label {
            font-size: 13px;
            font-weight: 600;
            color: #666;
        }

        .colors-grid-inline {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }

        .color-chip-inline {
            display: -webkit-inline-flex;
            display: inline-flex;
            -webkit-flex-direction: row;
            flex-direction: row;
            -webkit-align-items: center;
            align-items: center;
            -webkit-justify-content: flex-start;
            justify-content: flex-start;
            gap: 8px;
            padding: 6px 12px;
            background: #F8F6F0;
            background-color: #F8F6F0;
            border: 1px solid #d0c4b0;
            border-radius: 15px;
            font-size: 15.6px;
            font-weight: 500;
            color: #3F3E2C;
            white-space: nowrap;
            -webkit-box-sizing: border-box;
            box-sizing: border-box;
            -webkit-appearance: none;
            appearance: none;
            text-decoration: none;
            line-height: 1.4;
            min-height: 28px;
            vertical-align: middle;
        }

        .color-dot-inline {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: #8B7355;
            border: 1px solid rgba(0,0,0,0.1);
            flex-shrink: 0;
            display: inline-block;
            vertical-align: middle;
        }

        /* Price Section */
        .price-section {
            padding: 24px;
            background: #F8F6F0;
            border-radius: 12px;
        }

        .price-label {
            font-size: 11.2px;
            color: #666;
            margin-bottom: 8px;
        }

        .price-value {
            font-size: 33.6px;
            font-weight: bold;
            color: #8B7355;
        }

        .price-currency {
            font-size: 19.2px;
            margin-right: 8px;
        }

        /* Footer */
        .footer {
            background: #3F3E2C;
            color: white;
            text-align: center;
            padding: 24px 20px;
            margin-top: 60px;
        }

        .footer-text {
            color: rgba(255, 255, 255, 0.7);
            font-size: 12.6px;
        }

        /* Responsive */
        @media (max-width: 968px) {
            .product-layout {
                grid-template-columns: 1fr;
                gap: 24px;
                padding: 24px 20px;
                max-width: 100%;
                overflow-x: hidden;
            }

            .image-gallery {
                position: relative;
                top: 0;
                flex-direction: column-reverse;
                width: 100%;
                max-width: 100%;
                overflow: hidden;
            }

            .thumbnail-grid-wrapper {
                width: 100%;
                max-width: 100%;
                overflow: hidden;
            }

            .thumbnail-grid {
                flex-direction: row;
                max-height: none;
                overflow-x: auto;
                overflow-y: hidden;
                max-width: 100%;
                width: 100%;
                scrollbar-width: none;
                -webkit-overflow-scrolling: touch;
                padding: 0;
                margin: 0;
            }

            .thumbnail-grid::-webkit-scrollbar {
                display: none;
            }

            .thumbnail {
                width: 80px;
                height: 80px;
                flex-shrink: 0;
            }

            /* Force hide scroll indicators in mobile - multiple approaches */
            .thumbnail-scroll-indicator,
            .thumbnail-scroll-indicator.top,
            .thumbnail-scroll-indicator.bottom,
            .thumbnail-scroll-indicator.visible {
                display: none !important;
                visibility: hidden !important;
                opacity: 0 !important;
                pointer-events: none !important;
                width: 0 !important;
                height: 0 !important;
                overflow: hidden !important;
            }

            .main-image {
                height: 400px;
            }

            .product-name {
                font-size: 24px;
            }

            .placement-label,
            .colors-label {
                font-size: 12px;
            }

            .placement-chip,
            .color-chip-inline {
                font-size: 11px;
                padding: 3px 10px;
            }

            .color-dot-inline {
                width: 10px;
                height: 10px;
            }

            .dimensions-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            /* Fix quantity selector sizing in mobile */
            .quantity-selector {
                display: -webkit-flex !important;
                display: flex !important;
                width: 180px !important;
                min-width: 180px !important;
                height: 48px !important;
                -webkit-box-sizing: border-box !important;
                box-sizing: border-box !important;
            }

            .add-to-cart-section {
                display: -webkit-flex !important;
                display: flex !important;
                -webkit-flex-direction: column !important;
                flex-direction: column !important;
                gap: 8px !important;
            }

            .add-to-cart-btn {
                width: 100% !important;
            }
        }

        @media (max-width: 480px) {
            .product-layout {
                padding: 16px 15px;
                max-width: 100%;
                overflow-x: hidden;
            }

            .main-image {
                height: 300px;
            }

            .thumbnail {
                width: 70px;
                height: 70px;
                flex-shrink: 0;
            }

            .product-name {
                font-size: 20px;
            }

            .placement-label,
            .colors-label {
                font-size: 11px;
            }

            .placement-chip,
            .color-chip-inline {
                font-size: 10px;
                padding: 2px 8px;
                min-height: 20px;
            }

            .color-dot-inline {
                width: 8px;
                height: 8px;
            }

            .price-value {
                font-size: 25.6px;
            }

            .dimensions-grid {
                grid-template-columns: 1fr;
            }

            /* Ensure quantity selector is properly sized on small screens */
            .quantity-selector {
                width: 160px !important;
                min-width: 160px !important;
                height: 44px !important;
                min-height: 44px !important;
            }

            .quantity-btn {
                width: 36px !important;
                height: 36px !important;
            }

            /* Force hide scroll indicators */
            .thumbnail-scroll-indicator {
                display: none !important;
                visibility: hidden !important;
                width: 0 !important;
                height: 0 !important;
            }
        }
    

