        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
        /* Safety net: kill any horizontal page scroll (the crop-drag must never pan the page sideways).
           Using `clip` not `hidden` so it does NOT create a scroll container — keeps the sticky header
           (and fixed overlays) working. */
        html, body { overflow-x: clip; }
        body { font-family: 'Inter', system-ui, sans-serif; background: #fff; color: #111; -webkit-font-smoothing: antialiased; }
        a { color: inherit; }
        .container { max-width: 720px; margin: 0 auto; padding: 0 20px; }

        /* Header */
        header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.95); backdrop-filter: blur(16px); border-bottom: 1px solid #eee; padding: 14px 32px; display: flex; justify-content: space-between; align-items: center; }
        .logo { font-size: 1.2rem; font-weight: 600; letter-spacing: 0.06em; color: #111; text-decoration: none; display: flex; align-items: center; gap: 8px; }
        .logo img { height: 32px; width: auto; }
        #cartIcon { color: #888; font-size: 0.82rem; cursor: pointer; text-decoration: none; }
        .cart-count { background: #111; color: #fff; font-size: 0.65rem; font-weight: 700; padding: 1px 5px; border-radius: 8px; margin-left: 3px; }

        /* Hero — New Premium Design */
        .hero {
            position: relative;
            min-height: calc(100vh - 52px);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            background: #fafafa;
        }
        
        /* Hero Content Wrapper */
        .hero-content {
            position: relative;
            width: 100%;
            max-width: 1400px;
            padding: 0 40px;
            display: grid;
            grid-template-columns: 1fr 1.2fr;
            gap: 80px;
            align-items: center;
        }
        
        /* Hero Text */
        .hero-text {
            z-index: 10;
        }
        
        .hero h1 {
            font-size: clamp(2.5rem, 5vw, 4.2rem);
            font-weight: 300;
            line-height: 1.1;
            letter-spacing: -0.02em;
            margin-bottom: 24px;
        }
        
        .hero h1 strong {
            font-weight: 600;
        }
        
        .hero-headline-emphasis {
            font-weight: 600;
        }
        
        .hero-eyebrow {
            display: block;
            font-size: 0.8rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: #666;
            margin-bottom: 8px;
        }
        
        .hero-main {
            display: block;
            font-size: inherit;
            font-weight: inherit;
            line-height: inherit;
        }
        
        .hero-sub {
            color: #666;
            font-size: clamp(1rem, 2vw, 1.25rem);
            line-height: 1.6;
            margin-bottom: 32px;
            max-width: 480px;
        }
        
        /* Hero CTA Section */
        .hero-cta-section {
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 32px;
            margin-bottom: 24px;
        }
        
        @media (max-width: 768px) {
            .hero-cta-section {
                flex-direction: column;
                align-items: flex-start;
                gap: 16px;
            }
        }
        
        .hero-primary-cta {
            display: inline-flex;
            align-items: center;
            gap: 12px;
            background: #111;
            color: #fff;
            padding: 16px 32px;
            border-radius: 8px;
            text-decoration: none;
            font-weight: 600;
            font-size: 1rem;
            transition: all 0.2s;
            width: fit-content;
        }
        
        .hero-primary-cta:hover {
            background: #333;
            transform: translateY(-1px);
        }
        
        .hero-benefit {
            display: block;
        }
        
        .hero-benefit-primary {
            color: #111;
            font-size: 1rem;
            font-weight: 500;
            margin-bottom: 4px;
        }
        
        .hero-benefit-secondary {
            color: #666;
            font-size: 0.9rem;
        }
        
        /* Sticky CTA Bar */
        .sticky-cta-bar {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: #111;
            color: white;
            z-index: 1000;
            box-shadow: 0 -2px 20px rgba(0,0,0,0.15);
            transition: transform 0.3s ease;
        }
        
        .sticky-cta-bar.hidden {
            transform: translateY(100%);
        }
        
        .sticky-cta-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px 20px;
            max-width: 1200px;
            margin: 0 auto;
        }
        
        .sticky-cta-text {
            font-size: 0.9rem;
            font-weight: 500;
        }
        
        .sticky-cta-button {
            background: white;
            color: #111;
            border: none;
            padding: 8px 16px;
            border-radius: 6px;
            font-weight: 600;
            font-size: 0.85rem;
            cursor: pointer;
            transition: all 0.15s;
        }
        
        .sticky-cta-button:hover {
            background: #f0f0f0;
            transform: translateY(-1px);
        }
        
        @media (max-width: 768px) {
            .sticky-cta-content {
                padding: 12px 16px;
            }
            
            .sticky-cta-text {
                font-size: 0.85rem;
            }
            
            .sticky-cta-button {
                padding: 6px 12px;
                font-size: 0.8rem;
            }
        }
        
        /* Respect reduced motion preference */
        @media (prefers-reduced-motion: reduce) {
            .sticky-cta-bar {
                transition: none;
            }
        }
        
        .hero-secondary-cta {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: #666;
            text-decoration: none;
            font-size: 0.9rem;
            transition: color 0.2s;
            white-space: nowrap;
        }
        
        .hero-secondary-cta:hover {
            color: #111;
        }
        
        /* Proof Points */
        .hero-proof-points {
            display: flex;
            gap: 24px;
            flex-wrap: wrap;
        }
        
        .proof-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(0, 0, 0, 0.04);
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 0.8rem;
            color: #444;
            border: 1px solid rgba(0, 0, 0, 0.06);
        }
        
        .proof-badge svg {
            width: 16px;
            height: 16px;
            flex-shrink: 0;
            opacity: 0.7;
        }
        
        .proof-point-emphasis {
            font-weight: 600;
            color: #111;
        }
        
        /* Hero Mosaic Container */
        .hero-mosaic-container {
            position: relative;
            width: 100%;
            height: 600px;
            background-color: #f5f5f5;
        }
        
        /* Loading indicator for high-res */
        .hero-mosaic-container::before {
            content: '';
            position: absolute;
            top: 10px;
            right: 10px;
            width: 20px;
            height: 20px;
            border: 2px solid rgba(0,0,0,0.1);
            border-top-color: #111;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            opacity: 0;
            transition: opacity 0.3s;
            z-index: 10;
        }
        
        .hero-mosaic-container.loading-hires::before {
            opacity: 1;
        }
        
        @media (max-width: 968px) {
            .hero-mosaic-container {
                cursor: pointer;
            }
        }
        
        /* Corner Peel Variables */
        .hero-mosaic-container {
            --peel-origin-x: 85%;
            --peel-origin-y: 85%;
            --peel-size: 20%;
        }
        
        /* Main Mosaic Image */
        .hero-mosaic {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center 10%;
            border-radius: 16px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
        }
        
        /* Corner Peel Effect */
        .corner-peel {
            position: absolute;
            bottom: 0;
            right: 0;
            width: var(--peel-size);
            height: var(--peel-size);
            overflow: hidden;
            pointer-events: none;
        }
        
        .corner-peel::before {
            content: '';
            position: absolute;
            top: -100%;
            left: -100%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.1) 50%);
            transform: rotate(45deg);
        }
        
        /* Hover Inspector */
        .mosaic-inspector {
            position: absolute;
            width: 180px;
            height: 180px;
            border-radius: 50%;
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.3s;
            overflow: hidden;
            border: 2px solid rgba(255, 255, 255, 0.2);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        }
        
        .hero-mosaic-container:hover .mosaic-inspector {
            opacity: 1;
        }
        
        /* Mobile Styles */
        @media (max-width: 968px) {
            .hero-content {
                grid-template-columns: 1fr;
                text-align: center;
                gap: 40px;
                padding: 40px 20px;
            }
            
            .hero-text {
                order: 2;
            }
            
            .hero-mosaic-container {
                order: 1;
                height: 400px;
                --peel-size: 25%;
            }
            
            .hero-sub {
                margin-left: auto;
                margin-right: auto;
            }
            
            .hero-cta-section {
                align-items: center;
            }
            
            .hero-proof-points {
                justify-content: center;
            }
            
            .mosaic-inspector {
                display: none;
            }
        }
        
        /* Mosaic Gallery */
        .gallery-container {
            position: relative;
            display: flex;
            align-items: center;
            gap: 16px;
        }
        
        .gallery-scroll {
            display: flex;
            gap: 16px;
            overflow-x: auto;
            overflow-y: visible;
            scroll-behavior: smooth;
            scroll-snap-type: x mandatory;
            -webkit-overflow-scrolling: touch;
            flex: 1;
            padding: 8px;
            margin: -8px;
        }
        
        .gallery-scroll::-webkit-scrollbar {
            display: none;
        }
        
        .gallery-card {
            flex: 0 0 220px;
            scroll-snap-align: center;
            border-radius: 12px;
            overflow: hidden;
            position: relative;
            transition: transform 0.2s ease;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        }
        
        .gallery-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        }
        
        .gallery-card img {
            width: 220px;
            height: 220px;
            object-fit: cover;
            display: block;
        }
        
        /* Option 1: Labels overlaid on image */
        .gallery-label {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 16px;
            background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.4), transparent);
            color: white;
            font-size: 0.9rem;
            font-weight: 500;
            text-align: center;
        }
        
        /* Option 2: Labels beneath image */
        .gallery-container.labels-beneath .gallery-card {
            display: flex;
            flex-direction: column;
            background: white;
            border: 1px solid #e0e0e0;
        }
        
        .gallery-container.labels-beneath .gallery-label {
            position: static;
            padding: 12px 16px;
            background: none;
            color: #333;
            border-radius: 0;
            margin: 0;
        }
        
        .gallery-nav {
            background: #f8f8f8;
            border: 1px solid #e0e0e0;
            border-radius: 50%;
            width: 48px;
            height: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
            color: #666;
            z-index: 10;
        }
        
        .gallery-nav:hover {
            background: #111;
            border-color: #111;
            color: white;
            transform: scale(1.05);
        }
        
        .gallery-nav:disabled {
            opacity: 0.3;
            cursor: not-allowed;
            transform: none;
        }
        
        .gallery-nav:disabled:hover {
            background: #f8f8f8;
            border-color: #e0e0e0;
            color: #666;
        }
        
        @media (max-width: 768px) {
            .gallery-container {
                gap: 0;
                flex-direction: column;
                align-items: center;
            }
            
            .gallery-scroll {
                gap: 8px;
                margin: 0;
                width: 100%;            /* stay within the padded container — never exceeds the viewport */
                padding: 0 7.5vw;       /* peek on both sides (no full-bleed breakout) */
                scroll-padding: 0 7.5vw;
            }
            
            .gallery-card {
                flex: 0 0 85vw;
                border-radius: 8px;
            }
            
            .gallery-card img {
                width: 85vw;
                height: 85vw;
                border-radius: 8px;
            }
            
            .gallery-nav {
                display: none;
            }
            
            /* Dot indicators */
            .gallery-dots {
                display: flex;
                justify-content: center;
                gap: 6px;
                margin-top: 20px;
            }
            
            .gallery-dot {
                width: 6px;
                height: 6px;
                border-radius: 50%;
                background: #ddd;
                opacity: 0.5;
                cursor: pointer;
                transition: all 0.2s ease;
            }
            
            .gallery-dot.active {
                background: #111;
                opacity: 1;
            }
        }
        
        @media (min-width: 769px) {
            .gallery-dots {
                display: none;
            }
        }

        /* Mobile-only swipe carousels (home/showcase + reviews).
           Desktop keeps its inline grid — these rules apply ONLY ≤768px, and use
           !important to override the inline `display:grid`. Contained: width:100%
           (never exceeds the viewport, no 100vw/negative-margin breakout). */
        @media (max-width: 768px) {
            .m-carousel {
                display: flex !important;
                flex-wrap: nowrap !important;
                grid-template-columns: none !important;
                gap: 14px !important;
                width: 100%;
                margin: 0;
                padding: 0 7.5vw;            /* peek of the next card on both sides */
                scroll-padding: 0 7.5vw;
                overflow-x: auto;
                overflow-y: hidden;
                scroll-snap-type: x mandatory;
                -webkit-overflow-scrolling: touch;
                overscroll-behavior-x: contain;
                scrollbar-width: none;
            }
            .m-carousel::-webkit-scrollbar { display: none; }
            .m-carousel > * {
                flex: 0 0 85vw !important;   /* 85vw card => peek of neighbour */
                scroll-snap-align: center;
            }
            /* media cards (lifestyle photos) get a uniform aspect so object-fit:cover fills */
            .m-carousel--media > * { aspect-ratio: 4 / 3; }
        }

        /* Creator */
        .creator-wrap { background: #fafafa; color: #111; max-width: 800px; margin: 0 auto; border-radius: 16px; padding: 40px 32px 48px; border: 1px solid #eee; }
        @media (max-width: 600px) { .creator-wrap { border-radius: 0; margin: 0 -20px; padding: 32px 16px; border-left: none; border-right: none; } }
        .creator-section { padding: 0; }
        .steps-progress { display: flex; justify-content: center; gap: 6px; margin-bottom: 28px; position: sticky; top: 56px; z-index: 40; background: #fafafa; padding: 12px 0; flex-wrap: wrap; }
        .step-indicator { display: flex; align-items: center; gap: 5px; padding: 7px 14px; border-radius: 20px; font-size: 0.8rem; color: #aaa; border: 1px solid #e0e0e0; background: #fff; }
        .step-indicator.active { color: #111; border-color: #111; font-weight: 500; }
        .step-indicator.completed { color: #111; border-color: #999; }
        .step-num { font-weight: 600; font-size: 0.75rem; }
        .card-section { display: none; }
        .card-section.active { display: block; animation: fadeUp 0.25s ease; }
        @keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
        .upload-section h3 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
        .upload-section > p { color: #777; font-size: 0.88rem; margin-bottom: 14px; }
        .upload-area { border: 2px dashed #d0d0d0; border-radius: 12px; padding: 44px 20px; text-align: center; cursor: pointer; transition: border-color 0.2s; position: relative; background: #fafafa; }
        .upload-area:hover { border-color: #111; }
        .upload-area input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 10; }
        .upload-icon { font-size: 1.8rem; margin-bottom: 6px; }
        .upload-text { color: #333; font-size: 0.9rem; }
        .upload-hint { color: #999; font-size: 0.78rem; margin-top: 4px; }
        .btn { display: inline-block; padding: 11px 26px; border-radius: 8px; font-size: 0.9rem; font-weight: 500; cursor: pointer; border: none; text-decoration: none; transition: all 0.15s; font-family: inherit; text-align: center; vertical-align: middle; line-height: 1; }
        .btn-primary { background: #111; color: #fff; }
        .btn-primary:hover { background: #333; }
        .btn-outline { background: transparent; color: #555; border: 1px solid #ddd; }
        .btn-outline:hover { border-color: #888; }
        .btn-success { background: #111; color: #fff; }
        .btn:disabled { opacity: 0.35; cursor: not-allowed; }
        .btn-group { display: flex; gap: 10px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }

        /* Crop */
        .crop-tool { display: none; margin-top: 20px; }
        .crop-tool.visible { display: block; }
        .crop-tool-header h4 { font-size: 0.95rem; font-weight: 500; }
        .crop-tool-header p { color: #888; font-size: 0.82rem; }
        .crop-container { position: relative; width: 100%; max-width: 360px; margin: 12px auto 0; aspect-ratio: 1/1; overflow: hidden; border-radius: 10px; cursor: grab; background: #000;
            touch-action: none;                 /* we own all pan/zoom gestures — stops page pan */
            overscroll-behavior: contain;
            -webkit-user-select: none; user-select: none;
            -webkit-touch-callout: none; }
        .crop-container.grabbing { cursor: grabbing; }
        .crop-container.portrait { aspect-ratio: 3/4; }
        .crop-container.landscape { aspect-ratio: 4/3; }
        .crop-container.square { aspect-ratio: 1/1; }
        .crop-container img { position: absolute; top: 0; left: 0; transform-origin: 0 0; will-change: transform;
            pointer-events: none;               /* image never intercepts the pointer */
            -webkit-user-drag: none; user-drag: none;
            -webkit-user-select: none; user-select: none; }
        .crop-guide { position: absolute; inset: 0; pointer-events: none; }
        .crop-corner { position: absolute; width: 14px; height: 14px; border-color: rgba(255,255,255,0.4); border-style: solid; pointer-events: none; }
        .crop-corner.tl { top: 0; left: 0; border-width: 2px 0 0 2px; }
        .crop-corner.tr { top: 0; right: 0; border-width: 2px 2px 0 0; }
        .crop-corner.bl { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
        .crop-corner.br { bottom: 0; right: 0; border-width: 0 2px 2px 0; }
        .crop-controls { display: flex; align-items: center; gap: 14px; margin-top: 10px; justify-content: center; }
        .zoom-control { display: flex; align-items: center; gap: 6px; }
        .zoom-control label { font-size: 0.82rem; color: #888; }
        .zoom-control input[type="range"] { width: 100px; accent-color: #c9a227; }
        .zoom-value { font-size: 0.82rem; color: #888; min-width: 36px; }
        .crop-hint { font-size: 0.78rem; color: #aaa; }

        /* Counter & thumbs */
        .image-counter { margin: 14px 0; font-size: 0.85rem; color: #666; }
        .counter-bar { height: 3px; background: #e0e0e0; border-radius: 2px; margin: 6px 0; overflow: hidden; }
        .counter-fill { height: 100%; background: #111; border-radius: 2px; transition: width 0.3s; width: 0; }
        
        .thumbnails { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 10px; max-height: 180px; overflow-y: auto; }
        .thumbnails img, .thumb-item { width: 52px; height: 52px; object-fit: cover; border-radius: 4px; }

        /* Preview & loading */
        .loading { text-align: center; padding: 36px; }
        .loading p { color: #666; }
        .spinner { width: 36px; height: 36px; border: 3px solid #e0e0e0; border-top-color: #111; border-radius: 50%; animation: spin 0.7s linear infinite; margin: 0 auto 14px; }
        @keyframes spin { to { transform: rotate(360deg); } }
        .progress-bar { height: 3px; background: #e0e0e0; border-radius: 2px; margin: 10px auto; max-width: 260px; overflow: hidden; }
        .progress-fill { height: 100%; background: #111; border-radius: 2px; transition: width 0.3s; width: 0; }
        .result-container { text-align: center; }
        .result-image-wrapper { position: relative; display: inline-block; }
        .result-image { max-width: 100%; border-radius: 10px; cursor: pointer; box-shadow: 0 4px 24px rgba(0,0,0,0.08); }
        .print-material-label { position: absolute; bottom: 10px; left: 10px; background: rgba(0,0,0,0.6); color: #fff; padding: 3px 10px; border-radius: 4px; font-size: 0.72rem; }
        .print-info { text-align: left; background: #f5f5f5; padding: 14px; border-radius: 8px; margin-top: 14px; }
        .print-info h4 { font-size: 0.88rem; margin-bottom: 6px; font-weight: 600; }
        .print-info p { font-size: 0.82rem; color: #666; margin-bottom: 2px; }

        /* Pricing */
        #pricing { display: none; padding: 60px 0; }
        .pricing-head { text-align: center; margin-bottom: 36px; }
        .pricing-head h2 { font-size: 2rem; font-weight: 300; }
        .pricing-head h2 strong { font-weight: 600; }
        .pricing-head p { color: #888; font-size: 0.9rem; margin-top: 8px; }
        .pricing-grid { max-width: 600px; margin: 0 auto; }
        .pr { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 10px; margin-bottom: 10px; align-items: center; }
        .pr-label h4 { font-size: 0.9rem; font-weight: 600; }
        .pr-label p { font-size: 0.72rem; color: #777; margin-top: 1px; }
        .pr-label .tag { font-size: 0.68rem; color: #c9a227; margin-top: 3px; }
        .pr-card { background: #fff; border: 2px solid #e5e5e5; border-radius: 10px; padding: 18px 10px; text-align: center; cursor: pointer; transition: all 0.15s; }
        .pr-card:hover { border-color: #bbb; }
        .pr-card.selected { border-color: #111; }
        .pr-card .amt { font-size: 1.6rem; font-weight: 700; color: #111; }
        .pr-card .det { font-size: 0.68rem; color: #666; margin-top: 3px; }
        .pr-divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; }
        .pr-divider::before, .pr-divider::after { content: ''; flex: 1; height: 1px; background: #e5e5e5; }
        .pr-divider span { font-size: 0.72rem; color: #555; text-transform: uppercase; letter-spacing: 1px; }
        .pr-note { text-align: center; font-size: 0.7rem; color: #444; margin-top: 20px; }
        .col-h { text-align: center; font-size: 0.68rem; font-weight: 600; color: #555; text-transform: uppercase; letter-spacing: 1px; }
        @media (max-width: 520px) { .pr { grid-template-columns: 1fr; } .col-h { display: none; } }

        /* Cart sidebar */
        .cart-section { position: fixed; top: 0; right: -100%; width: 100%; max-width: 380px; height: 100vh; background: #fff; border-left: 1px solid #eee; z-index: 200; transition: right 0.25s; padding: 20px; overflow-y: auto; }
        .resolution-option:hover { border-color: #111 !important; background: #fafafa; }
        .cart-section.visible { right: 0; }
        .cart-summary { margin-top: 16px; padding-top: 14px; border-top: 1px solid #eee; }
        .cart-summary-row { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 0.88rem; }
        .cart-summary-row.total { font-weight: 600; font-size: 1.05rem; color: #111; }
        .cart-checkout-btn { width: 100%; margin-top: 14px; text-align: center; }
        .cart-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid #eee; }
        .cart-item-image { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; }
        .cart-item-info { flex: 1; }
        .cart-item-name { font-weight: 500; font-size: 0.85rem; }
        .cart-item-details { font-size: 0.75rem; color: #888; }
        .cart-item-price { font-weight: 600; font-size: 0.85rem; color: #c9a227; }
        .cart-item-actions { display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center; min-width: 40px; }
        .cart-item-edit, .cart-item-remove { 
            background: #f5f5f5; border: 1px solid #ddd; color: #555; cursor: pointer; font-size: 0.85rem; 
            padding: 6px 10px; border-radius: 6px; transition: all 0.2s; min-width: 32px; text-align: center;
        }
        .cart-item-edit:hover { background: #e3f2fd; color: #1976d2; border-color: #1976d2; }
        .cart-item-remove:hover { background: #ffebee; color: #d32f2f; border-color: #d32f2f; }

        /* Modals */
        .modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.75); z-index: 300; align-items: center; justify-content: center; }
        .modal-overlay.visible { display: flex; }
        .modal-content { background: #fff; border-radius: 14px; max-width: 440px; width: 92%; max-height: 90vh; overflow-y: auto; }
        .modal-header { padding: 22px 22px 0; }
        .modal-header h3 { font-size: 1.05rem; font-weight: 600; }
        .modal-header p { color: #888; font-size: 0.82rem; margin-top: 3px; }
        .modal-body { padding: 18px 22px; }
        .modal-footer { padding: 0 22px 22px; display: flex; gap: 10px; justify-content: flex-end; align-items: center; }
        .form-group { margin-bottom: 14px; }
        .form-group label { display: block; font-size: 0.82rem; font-weight: 500; margin-bottom: 5px; }
        .form-group input, .form-group textarea { width: 100%; padding: 10px 12px; background: #fff; border: 1px solid #ddd; border-radius: 8px; color: #111; font-family: inherit; font-size: 0.88rem; }
        .form-group input:focus, .form-group textarea:focus { outline: none; border-color: #111; }
        .checkbox-group { display: flex; align-items: center; gap: 7px; font-size: 0.82rem; margin-bottom: 14px; }
        .checkbox-group a { color: #111; text-decoration: underline; }
        .order-processing, .order-confirmation { text-align: center; padding: 32px; }
        .order-confirmation-icon { font-size: 2.5rem; margin-bottom: 12px; }
        .terms-modal { max-width: 560px; }
        .terms-content { padding: 18px 22px; max-height: 55vh; overflow-y: auto; font-size: 0.82rem; line-height: 1.7; color: #555; }
        .terms-content h4 { margin: 16px 0 6px; font-size: 0.9rem; color: #111; }
        .terms-footer { padding: 14px 22px; border-top: 1px solid #eee; text-align: right; }

        /* Lightbox */
        .lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.96); z-index: 400; align-items: center; justify-content: center; cursor: pointer; }
        .lightbox.visible { display: flex; }
        .lightbox img { max-width: 92%; max-height: 92%; object-fit: contain; }
        .lightbox-close { position: absolute; top: 16px; right: 20px; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }
        .lightbox-hint { display: none; }

        /* Error */
        .error { color: #ef4444; text-align: center; padding: 10px; font-size: 0.88rem; }

        /* Footer */
        footer { border-top: 1px solid #eee; padding: 36px 24px; font-size: 0.78rem; color: #555; }
        .footer-inner { max-width: 600px; margin: 0 auto; display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
        .footer-inner h4 { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: #444; margin-bottom: 6px; }
        .footer-inner a { color: #666; text-decoration: none; }
        .footer-inner a:hover { color: #fff; }
        .footer-inner ul { list-style: none; }
        .footer-inner li { margin-bottom: 3px; }
        .footer-bottom { max-width: 600px; margin: 18px auto 0; padding-top: 14px; border-top: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }

        /* Misc */
        .ios-hint { display: none; }
        html.is-ios .ios-hint { display: block; }
        .mosaic-view { display: block; }
        .mosaic-size-card { cursor: pointer; }
        .mosaic-size-card.selected { border-color: #111 !important; }
        #productSelector, #mosaicFormatSelector, #mosaicMaterialSelector, .mobile-menu-btn, .mobile-nav { display: none !important; }
        
        /* Payment Method Selection */
        .payment-method-options { display: flex; gap: 12px; flex-direction: column; }
        .payment-option { 
            padding: 16px; 
            border: 2px solid #ddd; 
            border-radius: 8px; 
            cursor: pointer; 
            display: flex; 
            align-items: flex-start; 
            gap: 12px; 
            transition: all 0.2s;
            background: #fff;
        }
        .payment-option:hover { border-color: #ccc; }
        .payment-option input[type="radio"] { margin-top: 2px; accent-color: #007bff; }
        .payment-option:has(input:checked) { border-color: #007bff; background-color: #f8f9ff; }
        .payment-option-content { flex: 1; }
        .payment-option-title { font-weight: 500; margin-bottom: 4px; color: #111; }
        .payment-option-logos { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
        .payment-option-subtitle { font-size: 0.8rem; color: #666; }
        
        /* Cookie Consent Banner */
        .cookie-banner {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(0, 0, 0, 0.95);
            color: white;
            padding: 16px 20px;
            z-index: 10000;
            backdrop-filter: blur(10px);
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            transform: translateY(100%);
            transition: transform 0.3s ease;
        }
        .cookie-banner.show { transform: translateY(0); }
        .cookie-banner-content {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
            flex-wrap: wrap;
        }
        .cookie-banner-text {
            flex: 1;
            min-width: 300px;
            font-size: 14px;
            line-height: 1.5;
        }
        .cookie-banner-text a {
            color: #4FC3F7;
            text-decoration: none;
        }
        .cookie-banner-text a:hover {
            text-decoration: underline;
        }
        .cookie-banner-actions {
            display: flex;
            gap: 12px;
            align-items: center;
        }
        .cookie-btn {
            padding: 8px 16px;
            border: none;
            border-radius: 4px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s;
            font-weight: 500;
        }
        .cookie-btn-accept {
            background: #4CAF50;
            color: white;
        }
        .cookie-btn-accept:hover {
            background: #45a049;
        }
        .cookie-btn-decline {
            background: transparent;
            color: #ccc;
            border: 1px solid #666;
        }
        .cookie-btn-decline:hover {
            background: rgba(255, 255, 255, 0.1);
            color: white;
        }
        .cookie-btn-close {
            background: transparent;
            border: none;
            color: #999;
            font-size: 18px;
            padding: 4px 8px;
            cursor: pointer;
            margin-left: 8px;
        }
        .cookie-btn-close:hover {
            color: white;
        }
        
        @media (max-width: 768px) {
            .cookie-banner-content {
                flex-direction: column;
                align-items: stretch;
                text-align: center;
            }
            
            /* Payment method mobile styles */
            .payment-method-options {
                flex-direction: column !important;
                gap: 8px !important;
            }
            
            .payment-option {
                width: 100% !important;
                min-width: unset !important;
            }
        }
            .cookie-banner-actions {
                justify-content: center;
                flex-wrap: wrap;
            }
        }
        
        /* OpenSeadragon Viewer Styles - Simplified to match working test server */
        .openseadragon-viewer { 
            width: 100%; 
            height: 600px;
            min-height: 600px;
            border: 1px solid #ddd; 
            margin: 20px 0; 
            background: #000;
            position: relative;
            overflow: hidden;
        }
        
        /* Fix OpenSeadragon fullscreen z-index and positioning issues */
        .openseadragon-container.fullscreen,
        .openseadragon-container:-webkit-full-screen,
        .openseadragon-container:-moz-full-screen,
        .openseadragon-container:-ms-fullscreen,
        .openseadragon-container:fullscreen {
            width: 100vw !important;
            height: 100vh !important;
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            z-index: 999999 !important;
            background: #000 !important;
        }
        
        /* Ensure the canvas/image is properly positioned in fullscreen */
        .openseadragon-container.fullscreen .openseadragon-canvas,
        .openseadragon-container:-webkit-full-screen .openseadragon-canvas,
        .openseadragon-container:-moz-full-screen .openseadragon-canvas,
        .openseadragon-container:-ms-fullscreen .openseadragon-canvas,
        .openseadragon-container:fullscreen .openseadragon-canvas {
            position: absolute !important;
            top: 0 !important;
            left: 0 !important;
            width: 100% !important;
            height: 100% !important;
            z-index: 1 !important;
        }
        /* Ensure the OpenSeadragon container is visible */
        #mosaicViewer {
            display: block !important;
            width: 100% !important;
            height: 600px !important;
        }
        /* Ensure preview result container doesn't hide content */
        #previewResult {
            min-height: 700px;
        }
        /* Fix for card-section constraints */
        #step3Content.card-section {
            overflow: visible !important;
            min-height: 800px;
        }
        .viewer-controls {
            text-align: center;
            margin: 15px 0;
            display: flex;
            justify-content: center;
            gap: 10px;
            flex-wrap: wrap;
        }
        .viewer-controls button {
            padding: 8px 16px;
            margin: 0 5px;
            font-size: 14px;
            border: 1px solid #ddd;
            border-radius: 4px;
            background: #fff;
            cursor: pointer;
            transition: background 0.2s;
        }
        .viewer-controls button:hover {
            background: #f5f5f5;
        }

        .uppy-Dashboard { 
            border-radius: 12px;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
        }
        .uppy-Dashboard-inner {
            background: #fafafa;
            border: 2px dashed #d0d0d0;
            cursor: pointer;
        }
        .uppy-Dashboard--modal .uppy-Dashboard-inner {
            background: white;
        }
        .uppy-Dashboard-AddFiles {
            color: #333;
        }
        .uppy-Dashboard-AddFiles-title {
            font-size: 0.9rem;
            font-weight: 500;
        }
        .uppy-Dashboard-note {
            font-size: 0.78rem;
            color: #999;
        }
        .uppy-Dashboard-browse {
            color: #111;
            font-weight: 500;
            pointer-events: auto; /* Re-enable for the browse link */
        }
        .uppy-size--md .uppy-Dashboard-AddFiles {
            margin: 2rem;
        }
        /* Ensure click area is properly sized */
        .uppy-Dashboard-AddFiles-list {
            min-height: 200px;
        }
        /* Add upload icon for main image dashboard */
        #mainUppyDashboard .uppy-Dashboard-AddFiles::before {
            content: '☁';
            display: block;
            font-size: 3rem;
            margin-bottom: 8px;
            opacity: 0.5;
            line-height: 1;
        }
        /* Add subtle arrow */
        #mainUppyDashboard .uppy-Dashboard-AddFiles::after {
            content: '↑';
            display: block;
            font-size: 1.8rem;
            margin-top: -32px;
            margin-bottom: 16px;
            opacity: 0.7;
            font-weight: bold;
        }
        /* Alternative: Use SVG icon instead of emoji */
        #mainUppyDashboard .uppy-Dashboard-browse {
            display: block;
            margin: 0 auto;
            text-align: center;
            font-size: 0.95rem;
        }
        /* Hide only compression and size details */
        .uppy-StatusBar-statusPrimary,
        .uppy-StatusBar-statusSecondary,
        .uppy-DashboardItem-statusSize,
        .uppy-Informer {
            display: none !important;
        }
        /* Keep file status visible for errors */
        .uppy-DashboardItem-status {
            font-size: 0.75rem;
        }
        /* Match your existing button styles */
        .uppy-Button--primary {
            background: #111 !important;
            font-weight: 500;
        }
        .uppy-Button--primary:hover {
            background: #333 !important;
        }
        /* Tile upload specific styles */
        .tile-uppy-dashboard .uppy-Dashboard-AddFiles-info {
            margin-top: 1rem;
        }
        .uppy-StatusBar-actionBtn--upload {
            background: #111 !important;
            font-weight: 500;
        }
        .uppy-StatusBar-actionBtn--upload:hover {
            background: #333 !important;
        }
        /* Fix click detection */
        .uppy-Dashboard-input {
            cursor: pointer !important;
        }
        .uppy-Dashboard-AddFiles {
            cursor: pointer;
        }
        .uppy-Dashboard-browse {
            text-decoration: underline;
            cursor: pointer;
        }
        .uppy-Dashboard-browse:hover {
            color: #333;
        }
        /* Loading spinner animation */
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        /* Add a visible select button for better click target */
        #mainUploadArea .uppy-Dashboard-browse {
            display: inline-block;
            padding: 8px 16px;
            background: #111;
            color: white !important;
            border-radius: 6px;
            text-decoration: none;
            margin-top: 10px;
        }
        #mainUploadArea .uppy-Dashboard-browse:hover {
            background: #333;
        }
