:root {
            --primary: #EE3E69;
            --primary-hover: #d42b55;
            --bg-color: #f8fafc;
            --text-dark: #0f172a;
            --text-light: #64748b;
            --white: #ffffff;
            --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
            --birthday-bg: linear-gradient(135deg, #fff0f3 0%, #fce7eb 100%);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            -webkit-tap-highlight-color: transparent;
        }

        html { scroll-behavior: smooth; }

        body {
            background-color: #e2e8f0;
            display: flex;
            justify-content: center;
            min-height: 100vh;
            overscroll-behavior-y: none;
        }

        button, a, .product-card, .birthday-card, .featured-card {
            touch-action: manipulation;
        }

        /* App Container */
        #app {
            background-color: var(--white);
            width: 100%;
            max-width: 420px;
            min-height: 100vh;
            position: relative;
            box-shadow: 0 0 40px rgba(0,0,0,0.1);
            padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px));
            overflow-x: hidden;
            margin: 0 auto;
        }

        /* Sidebar Menu & Overlay (Mobile) */
        .overlay {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.4);
            backdrop-filter: blur(2px);
            z-index: 998;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }
        .overlay.active { opacity: 1; visibility: visible; }

        .side-menu {
            position: fixed; top: 0; left: -300px; width: 280px; height: 100%;
            background-color: var(--white); z-index: 999;
            transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 4px 0 20px rgba(0,0,0,0.05); display: flex; flex-direction: column; padding: 24px;
        }
        .side-menu.open { left: 0; }
        .side-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; border-bottom: 1px solid #f1f5f9; padding-bottom: 15px; }
        .side-menu-header h2 { color: var(--primary); font-size: 22px; font-weight: 800; }
        .close-menu-btn { background: #f1f5f9; border: none; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; cursor: pointer; color: var(--text-dark); transition: 0.2s; }
        .close-menu-btn:active { transform: scale(0.9); }
        .menu-links { display: flex; flex-direction: column; gap: 15px; }
        .menu-links a { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text-dark); font-weight: 600; font-size: 15px; padding: 10px; border-radius: 10px; transition: 0.2s; cursor: pointer; }
        .menu-links a i { font-size: 20px; color: var(--text-light); }
        .menu-links a:hover, .menu-links a:active { background: #f8fafc; color: var(--primary); }
        .menu-links a:hover i { color: var(--primary); }

        /* Search Popup with Soft Animation */
        .search-popup {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(255,255,255,0.95); backdrop-filter: blur(8px);
            z-index: 1001; opacity: 0; visibility: hidden;
            display: flex; flex-direction: column; justify-content: flex-start; align-items: center;
            padding-top: 80px; transition: all 0.3s ease;
        }
        .search-popup.active { opacity: 1; visibility: visible; }
        .search-container {
            width: 90%; max-width: 500px; background: var(--white);
            padding: 13px 20px; border-radius: 20px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.1);
            display: flex; align-items: center; gap: 10px;
            transform: translateY(-20px) scale(0.95); transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.2s, box-shadow 0.2s;
            border: 1.5px solid #f1f5f9;
        }
        .search-container:focus-within { border-color: rgba(238,62,105,0.45); box-shadow: 0 10px 40px rgba(238,62,105,0.18); }
        .search-popup.active .search-container { transform: translateY(0) scale(1); }
        .search-input { flex: 1; border: none; outline: none; font-size: 16px; color: var(--text-dark); background: transparent; }
        .search-close-btn { background: #f1f5f9; border: none; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--text-dark); cursor: pointer; transition: 0.2s; }
        .search-close-btn:active { transform: scale(0.9); }

        .search-results { width: 90%; max-width: 500px; margin-top: 10px; background: var(--white); border-radius: 18px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); overflow: hidden; opacity: 0; max-height: 0; transition: 0.25s ease; }
        .search-results.active { opacity: 1; max-height: 420px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
        .search-result-item { display: flex; align-items: center; gap: 12px; padding: 10px 16px; cursor: pointer; border-bottom: 1px solid #f8fafc; transition: 0.15s; }
        .search-result-item:active { background: #f8fafc; }
        .search-result-item img { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
        .sr-info { display: flex; flex-direction: column; gap: 2px; }
        .sr-name { font-size: 13px; font-weight: 700; color: var(--text-dark); }
        .sr-code { font-size: 10px; font-weight: 700; color: var(--text-light); background: #f1f5f9; padding: 2px 6px; border-radius: 8px; margin-left: 4px; }
        .sr-price { font-size: 11.5px; color: var(--text-light); font-weight: 600; }
        .search-empty { padding: 18px 16px; text-align: center; font-size: 12.5px; color: var(--text-light); }
        .search-view-all { width: 100%; padding: 13px; text-align: center; background: #f8fafc; border: none; color: var(--primary); font-weight: 700; font-size: 12.5px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }

        /* Header */
        header {
            background-color: var(--white); padding: 16px 20px; display: flex; justify-content: space-between; align-items: center;
            position: sticky; top: 0; z-index: 100;
            border-bottom: 1px solid #e2e8f0;
        }
        .header-left { display: flex; align-items: center; gap: 16px; }
        .header-left h1 { color: var(--primary); font-size: 24px; font-weight: 800; letter-spacing: -0.5px; }

        .desktop-nav { display: none; }

        .menu-btn, .icon-btn { background: none; border: none; font-size: 24px; color: var(--text-dark); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.2s; }
        .menu-btn { background-color: #f1f5f9; padding: 8px; border-radius: 50%; }
        .menu-btn:active, .icon-btn:active { transform: scale(0.85); }

        .header-right { display: flex; gap: 12px; align-items: center; }
        .header-right .icon-btn { background-color: #f8fafc; width: 40px; height: 40px; border-radius: 50%; }
        .desktop-only { display: none; }

        .cart-icon-wrapper { position: relative; }
        .cart-badge {
            position: absolute; top: -2px; right: -2px; background-color: var(--primary); color: var(--white);
            font-size: 10px; font-weight: 800; min-width: 18px; height: 18px; padding: 0 3px; align-items: center; justify-content: center; border-radius: 50%; border: 2px solid var(--white);
        }

        /* Location Bar */
        .location-bar {
            display: flex; align-items: center; gap: 12px; padding: 8px 20px;
            background-color: #f1f5f9;
            cursor: pointer; position: relative; z-index: 99;
        }
        .loc-icon {
            width: 32px; height: 32px; background: rgba(238, 62, 105, 0.1); border-radius: 50%;
            display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 18px;
        }
        .loc-text { display: flex; flex-direction: column; justify-content: center; }
        .loc-label { font-size: 10px; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
        .loc-value { font-size: 13px; font-weight: 800; color: var(--text-dark); display: flex; align-items: center; gap: 4px; }
        .open-status { display: flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 800; padding: 5px 11px; border-radius: 20px; margin-left: auto; }
        .open-status i { font-size: 7px; }
        .open-status.open { background: #dcfce7; color: #15803d; }
        .open-status.closed { background: #fee2e2; color: #b91c1c; }

        /* Custom Quote Form Popup */
        .quote-popup { align-items: center; padding: 70px 16px 40px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
        .quote-form-card {
            width: 100%; max-width: 440px; background: var(--white); border-radius: 24px; padding: 24px 22px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.15); transform: translateY(-20px) scale(0.96);
            transition: 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275); margin: 0 auto;
        }
        .quote-popup.active .quote-form-card { transform: translateY(0) scale(1); }
        .quote-form-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
        .quote-form-head strong { font-size: 17px; font-weight: 800; color: var(--text-dark); }
        .quote-form-sub { font-size: 12.5px; color: var(--text-light); margin-bottom: 18px; line-height: 1.5; }
        .quote-field { margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
        .quote-field label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-light); }
        .quote-field input, .quote-field textarea, .quote-field select {
            border: 1.5px solid #e2e8f0; border-radius: 12px; padding: 11px 14px; font-size: 13.5px;
            color: var(--text-dark); outline: none; font-family: inherit; resize: vertical; transition: 0.2s;
            width: 100%; min-width: 0; background: var(--white); -webkit-appearance: none; appearance: none;
        }
        .quote-field input:focus, .quote-field textarea:focus, .quote-field select:focus { border-color: var(--primary); }
        .quote-field input[type="date"] { color: var(--text-dark); min-height: 42px; }
        .date-display-wrapper { position: relative; }
        .date-display-text { display: block; border: 1.5px solid #e2e8f0; border-radius: 12px; padding: 11px 14px; font-size: 13.5px; color: var(--text-dark); background: var(--white); min-height: 20px; }
        .date-input-hidden { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; border: none; padding: 0; }
        .quote-field select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2364748b'><path d='M5 8l5 5 5-5z'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 34px; }
        .quote-field-row { display: flex; gap: 12px; }
        .quote-field-row .quote-field { flex: 1; min-width: 0; margin-bottom: 14px; }
        .qa-preview { width: 100%; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; margin: 14px 0 18px; background: #f8fafc; }
        .qa-preview img { width: 100%; height: 100%; object-fit: cover; }

        /* Main Body sections */
        main { background-color: var(--bg-color); }
        .section-wrapper { padding: 20px 0; }
        .section-wrapper.white-bg { background-color: var(--white); }

        /* Views (SPA-style pages within the single file) */
        .view { display: none; }
        .view.active { display: block; animation: viewFade 0.25s ease; }
        @keyframes viewFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

        /* Hero Slider */
        .slider-section { padding: 20px; }
        .slider-container { width: 100%; height: 190px; border-radius: 24px; overflow: hidden; position: relative; box-shadow: 0 8px 25px rgba(0,0,0,0.08); }
        .slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.8s, transform 3s ease-out; transform: scale(1.05); z-index: 1; }
        .slide.active { opacity: 1; transform: scale(1); z-index: 2; }
        .slide img { width: 100%; height: 100%; object-fit: cover; }
        .slide-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0) 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; }
        .slide-overlay h2 { color: var(--white); font-size: 19px; font-weight: 700; margin-bottom: 6px; line-height: 1.2; }
        .slide-overlay p { color: rgba(255,255,255,0.85); font-size: 13px; font-weight: 500; }
        .slider-dots { position: absolute; bottom: 12px; right: 20px; display: flex; gap: 6px; z-index: 10; }
        .dot { width: 6px; height: 6px; background-color: rgba(255,255,255,0.4); border-radius: 6px; transition: 0.3s; cursor: pointer; }
        .dot.active { width: 18px; background-color: var(--white); }

        /* Tabs Section */
        .tabs-section { padding: 0 20px; margin-bottom: 24px; }
        .tabs-container { background-color: #f1f5f9; border-radius: 14px; display: flex; position: relative; padding: 5px; }
        .tab-btn { flex: 1; padding: 12px 0; text-align: center; border: none; background: transparent; font-weight: 700; font-size: 14px; color: var(--text-light); cursor: pointer; z-index: 2; transition: 0.3s; border-radius: 10px; }
        .tab-btn.active { color: var(--text-dark); }
        .tab-indicator { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); background-color: var(--white); border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); z-index: 1; }

        /* Categories */
        .categories-section { margin-bottom: 30px; padding-left: 20px; }
        .categories-scroll { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-right: 20px; padding-bottom: 10px; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
        .categories-scroll::-webkit-scrollbar { display: none; }
        .categories-scroll { -ms-overflow-style: none; scrollbar-width: none; }
        .category-card { min-width: calc(28% - 12px); scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 10px; cursor: pointer; }
        .category-card:active { transform: scale(0.95); }
        .category-img-wrapper { width: 78px; height: 78px; border-radius: 50%; padding: 4px; background-color: var(--white); box-shadow: var(--card-shadow); }
        .category-img-wrapper img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
        .category-card span { font-size: 13px; font-weight: 700; color: var(--text-dark); text-align: center; }

        /* Section Title */
        .section-header { display: flex; justify-content: space-between; align-items: center; padding: 0 20px; margin-bottom: 16px; }
        .section-header h2 { font-size: 19px; font-weight: 800; color: var(--text-dark); letter-spacing: -0.3px; }
        .view-all { color: var(--primary); font-size: 13px; font-weight: 700; text-decoration: none; display: flex; align-items: center; gap: 4px; background: rgba(238, 62, 105, 0.1); padding: 6px 12px; border-radius: 20px; transition: 0.2s; border: none; cursor: pointer; }
        .view-all:active { transform: scale(0.95); }

        /* Featured Grid */
        .featured-section { margin-bottom: 35px; }
        .featured-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; padding: 0 20px; height: 280px; }
        .featured-card { border-radius: 20px; overflow: hidden; position: relative; box-shadow: var(--card-shadow); cursor: pointer; }
        .featured-card:active img { transform: scale(1.05); }
        .featured-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
        .featured-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0) 100%); display: flex; flex-direction: column; justify-content: space-between; padding: 14px; }
        .left-long { grid-column: 1 / 2; grid-row: 1 / 3; }
        .right-top { grid-column: 2 / 3; grid-row: 1 / 2; }
        .right-bottom { grid-column: 2 / 3; grid-row: 2 / 3; }
        .tag { align-self: flex-start; font-size: 10px; font-weight: 800; padding: 5px 10px; border-radius: 10px; background: rgba(255,255,255,0.95); backdrop-filter: blur(4px); text-transform: uppercase; letter-spacing: 0.5px; }
        .tag.primary { color: var(--primary); }
        .tag.yellow { background-color: #f59e0b; color: #fff; }
        .card-content { display: flex; justify-content: space-between; align-items: flex-end; }
        .card-info h3 { color: var(--white); font-size: 15px; font-weight: 700; margin-bottom: 4px; }
        .left-long .card-info h3 { font-size: 19px; }
        .card-info span { color: rgba(255,255,255,0.95); font-size: 13px; font-weight: 700; }
        .add-btn-small { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.25); border: 1px solid rgba(255,255,255,0.1); color: var(--white); display: flex; align-items: center; justify-content: center; backdrop-filter: blur(5px); cursor: pointer; transition: 0.2s; }
        .add-btn-small:active { transform: scale(0.85); background: var(--primary); border-color: var(--primary); }
        .left-long .add-btn-small { background: var(--white); color: var(--primary); width: 36px; height: 36px; }

        /* Custom Cake Quote Section */
        .custom-cake-section { padding: 6px 20px 32px; }
        .custom-cake-card {
            background: linear-gradient(150deg, #3b0a1a 0%, #6b1530 55%, #8a1f3d 100%);
            border-radius: 28px; padding: 30px 24px; position: relative; overflow: hidden; color: #fff;
        }
        .custom-cake-card::before {
            content: ''; position: absolute; top: -50px; right: -50px; width: 180px; height: 180px;
            background: radial-gradient(circle, rgba(255,255,255,0.09) 0%, transparent 70%); border-radius: 50%;
        }
        .custom-cake-card::after {
            content: ''; position: absolute; bottom: -60px; left: -30px; width: 140px; height: 140px;
            background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%); border-radius: 50%;
        }
        .cc-icon { width: 50px; height: 50px; border-radius: 16px; background: rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 16px; position: relative; z-index: 1; }
        .cc-badge { display: inline-block; background: rgba(255,255,255,0.14); color: #f9d9c9; font-size: 10.5px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; padding: 6px 12px; border-radius: 20px; margin-bottom: 14px; position: relative; z-index: 1; }
        .custom-cake-card h2 { font-size: 21px; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.3px; line-height: 1.3; position: relative; z-index: 1; }
        .custom-cake-card > p { font-size: 12.5px; line-height: 1.65; color: rgba(255,255,255,0.75); margin-bottom: 22px; max-width: 340px; position: relative; z-index: 1; }
        .cc-steps { list-style: none; display: flex; flex-direction: column; gap: 4px; margin-bottom: 26px; position: relative; z-index: 1; }
        .cc-steps li { display: flex; align-items: center; gap: 12px; font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,0.92); padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
        .cc-steps li:last-child { border-bottom: none; }
        .cc-steps li i { font-size: 16px; color: #6b1530; flex-shrink: 0; width: 26px; height: 26px; background: #f9d9c9; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
        .cc-cta-btn { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--white); color: var(--primary); border: none; width: 100%; padding: 16px; border-radius: 16px; font-weight: 800; font-size: 14.5px; cursor: pointer; box-shadow: 0 10px 25px rgba(0,0,0,0.25); transition: 0.2s; position: relative; z-index: 1; }
        .cc-cta-btn i { font-size: 19px; }
        .cc-cta-btn:active { transform: scale(0.97); }

        /* Birthday Special Section */
        .birthday-section {
            background-image:
                radial-gradient(circle at 15% 25%, rgba(255,255,255,0.55) 3px, transparent 3px),
                radial-gradient(circle at 45% 75%, rgba(255,255,255,0.5) 2.5px, transparent 2.5px),
                radial-gradient(circle at 75% 20%, rgba(255,255,255,0.5) 3px, transparent 3px),
                radial-gradient(circle at 90% 65%, rgba(255,255,255,0.45) 2px, transparent 2px),
                radial-gradient(circle at 30% 50%, rgba(255,255,255,0.4) 2px, transparent 2px),
                var(--birthday-bg);
            background-size: 90px 90px, 70px 70px, 110px 110px, 80px 80px, 60px 60px, 100% 100%;
            padding: 35px 0 45px 0;
            border-radius: 35px 35px 0 0; margin-bottom: -25px;
            position: relative; z-index: 2;
        }
        .birthday-section .section-header h2 { color: #9f1239; font-size: 22px; display: flex; align-items: center; gap: 8px; }
        .birthday-section .section-header p { font-size: 12px; color: #be5169; font-weight: 600; margin-top: 2px; }
        .birthday-scroll { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 20px 25px 20px; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
        .birthday-scroll::-webkit-scrollbar { display: none; }
        .birthday-card {
            min-width: 200px; background: var(--white); border-radius: 24px; padding: 12px;
            box-shadow: 0 10px 30px rgba(159,18,57,0.12); scroll-snap-align: start;
            display: flex; flex-direction: column; position: relative; border: none;
            transition: transform 0.3s ease; cursor: pointer;
        }
        .birthday-card:active { transform: scale(0.96); }
        .bd-badge {
            position: absolute; top: 14px; left: -6px; z-index: 2;
            color: #fff; font-size: 9.5px; font-weight: 800; letter-spacing: 0.4px;
            padding: 5px 12px 5px 14px; text-transform: uppercase;
            clip-path: polygon(0 0, 100% 0, 88% 50%, 100% 100%, 0 100%);
            box-shadow: 0 4px 10px rgba(0,0,0,0.18);
        }
        .bd-fav { position: absolute; top: 12px; right: 12px; z-index: 2; }
        .bd-img { width: 100%; aspect-ratio: 1/1; border-radius: 16px; overflow: hidden; margin-bottom: 15px; position: relative; background: #f8fafc; }
        .bd-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
        .birthday-card:active .bd-img img { transform: scale(1.06); }
        .bd-info { text-align: center; }
        .bd-info h3 { font-size: 16px; font-weight: 800; color: var(--text-dark); margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .bd-info p { font-size: 12px; color: var(--text-light); margin-bottom: 12px; line-height: 1.4; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
        .bd-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; border-top: 1px dashed #f1f5f9; }
        .bd-bottom span { font-size: 17px; font-weight: 900; color: var(--primary); }

        /* All Products Grid */
        .all-products-wrapper { background: var(--white); padding-top: 40px; border-radius: 30px 30px 0 0; position: relative; z-index: 3; box-shadow: 0 -10px 20px rgba(0,0,0,0.03); }
        .products-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 0 20px; }
        .product-card { background-color: var(--white); border-radius: 20px; padding: 12px; box-shadow: 0 6px 20px rgba(159,18,57,0.07); border: 1px solid #f8eef1; position: relative; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; cursor: pointer; }
        .product-card:active { transform: scale(0.97); box-shadow: 0 6px 16px rgba(0,0,0,0.07); border-color: #f8dde3; }
        .fav-btn { position: absolute; top: 20px; right: 20px; background: rgba(255,255,255,0.9); backdrop-filter: blur(4px); border: none; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #cbd5e1; cursor: pointer; z-index: 2; transition: 0.2s; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
        .fav-btn.active { color: var(--primary); }
        .fav-btn:active { transform: scale(0.8); }
        .product-img { width: 100%; aspect-ratio: 1/1; border-radius: 14px; overflow: hidden; margin-bottom: 12px; background: #f8fafc; }
        .product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
        .product-card:active .product-img img { transform: scale(1.07); }
        .product-title { font-size: 14px; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; line-height: 1.35; letter-spacing: -0.1px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
        .product-code { display: inline-flex; align-items: center; font-size: 10.5px; color: var(--text-light); margin-bottom: 10px; font-weight: 700; background: #f1f5f9; padding: 3px 9px; border-radius: 20px; width: fit-content; letter-spacing: 0.3px; }
        .product-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
        .product-unit { font-size: 10px; font-weight: 600; color: var(--text-light); margin-left: 2px; }
        .product-price { font-weight: 800; color: var(--text-dark); font-size: 16px; }
        .add-btn { background-color: var(--bg-color); color: var(--text-dark); border: none; width: 36px; height: 36px; border-radius: 12px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s; font-size: 18px; box-shadow: 0 2px 6px rgba(15,23,42,0.05); }
        .add-btn:active { transform: scale(0.82) rotate(-6deg); background-color: var(--primary); color: var(--white); box-shadow: 0 8px 16px rgba(238,62,105,0.35); }

        /* Generic sub-page header (Shop / Cart / Wishlist) */
        .shop-header { display: flex; align-items: center; gap: 14px; padding: 18px 20px 6px; }
        .shop-header h2 { font-size: 19px; font-weight: 800; color: var(--text-dark); }
        .btn-back { width: 36px; height: 36px; border-radius: 50%; background: #f1f5f9; border: none; display: flex; align-items: center; justify-content: center; color: var(--text-dark); cursor: pointer; flex-shrink: 0; font-size: 16px; }
        .btn-back:active { transform: scale(0.9); }

        /* Shop view */
        .shop-search-wrap { display: flex; align-items: center; gap: 10px; margin: 14px 20px; background: #f1f5f9; border-radius: 14px; padding: 12px 16px; border: 1.5px solid transparent; transition: 0.2s; }
        .shop-search-wrap:focus-within { border-color: var(--primary); background: var(--white); box-shadow: 0 4px 16px rgba(238,62,105,0.12); }
        .shop-search-wrap i { color: var(--text-light); font-size: 18px; }
        .shop-search-input { border: none; background: transparent; outline: none; flex: 1; font-size: 14px; color: var(--text-dark); }
        .chip-filters { display: flex; gap: 8px; overflow-x: auto; padding: 0 20px 14px; }
        .chip-filters::-webkit-scrollbar { display: none; }
        .chip-filters { -ms-overflow-style: none; scrollbar-width: none; }
        .chip { flex-shrink: 0; padding: 8px 16px; border-radius: 20px; border: 1px solid #e2e8f0; background: #fff; font-size: 12px; font-weight: 700; color: var(--text-light); cursor: pointer; transition: 0.2s; white-space: nowrap; }
        .chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
        .shop-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 0 20px 14px; font-size: 12px; color: var(--text-light); font-weight: 700; }
        .sort-select { border: 1px solid #e2e8f0; border-radius: 10px; padding: 7px 10px; font-size: 12px; font-weight: 600; color: var(--text-dark); background: #fff; }

        /* Empty states */
        .empty-state { text-align: center; padding: 70px 24px 40px; color: var(--text-light); }
        .empty-state i { font-size: 56px; color: #e2e8f0; margin-bottom: 16px; display: block; }
        .empty-state h3 { color: var(--text-dark); font-size: 17px; margin-bottom: 8px; font-weight: 800; }
        .empty-state p { font-size: 13px; line-height: 1.5; max-width: 280px; margin: 0 auto 20px; }
        .empty-cta { background: var(--primary); color: #fff; border: none; padding: 12px 26px; border-radius: 14px; font-weight: 700; font-size: 14px; cursor: pointer; }
        .empty-cta:active { transform: scale(0.96); }

        /* Product detail view */
        .pd-hero { position: relative; width: 100%; aspect-ratio: 1/1; max-height: 380px; overflow: hidden; background: #f1f5f9; }
        .pd-hero img { width: 100%; height: 100%; object-fit: cover; }
        .pd-back, .pd-fav { position: absolute; top: 16px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.92); backdrop-filter: blur(4px); border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 2; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
        .pd-back { left: 16px; color: var(--text-dark); }
        .pd-fav { right: 16px; color: #cbd5e1; }
        .pd-fav.active { color: var(--primary); }
        .pd-back:active, .pd-fav:active { transform: scale(0.88); }
        .pd-info { padding: 22px 20px 30px; }
        .pd-title { font-size: 22px; font-weight: 800; color: var(--text-dark); margin-bottom: 8px; letter-spacing: -0.3px; }
        .pd-code { display: inline-flex; align-items: center; font-size: 11.5px; color: var(--text-light); font-weight: 700; margin-bottom: 14px; background: #f1f5f9; padding: 4px 11px; border-radius: 20px; letter-spacing: 0.3px; }
        .pd-desc { font-size: 13.5px; line-height: 1.6; color: var(--text-light); margin-bottom: 24px; }
        .pd-block { margin-bottom: 22px; }
        .pd-label { display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-light); margin-bottom: 10px; }
        .size-options { display: flex; gap: 10px; flex-wrap: wrap; }
        .size-chip { flex: 1; min-width: 96px; border: 1.5px solid #e2e8f0; border-radius: 14px; padding: 10px 10px; background: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; transition: 0.2s; }
        .size-chip span:first-child { font-size: 12.5px; font-weight: 700; color: var(--text-dark); }
        .size-chip .size-price { font-size: 11.5px; color: var(--text-light); font-weight: 600; }
        .size-chip.active { border-color: var(--primary); background: rgba(238,62,105,0.06); }
        .size-chip.active span { color: var(--primary); }
        .pd-qty-row { display: flex; justify-content: space-between; align-items: center; }
        .qty-stepper { display: flex; align-items: center; gap: 14px; background: #f1f5f9; border-radius: 14px; padding: 6px 8px; }
        .qty-stepper button { width: 30px; height: 30px; border-radius: 10px; border: none; background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-dark); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
        .qty-stepper button:active { transform: scale(0.9); }
        .qty-stepper span { font-weight: 800; font-size: 14px; min-width: 16px; text-align: center; }
        .qty-stepper.small { padding: 4px 6px; gap: 10px; }
        .qty-stepper.small button { width: 24px; height: 24px; }
        .pd-delivery { display: flex; align-items: center; gap: 10px; background: #f0fdf4; color: #15803d; padding: 12px 14px; border-radius: 14px; font-size: 12.5px; font-weight: 600; margin-bottom: 24px; }
        .pd-delivery i { font-size: 18px; flex-shrink: 0; }
        .pd-add-btn { width: 100%; background: var(--primary); color: #fff; border: none; padding: 16px; border-radius: 16px; font-size: 15px; font-weight: 800; cursor: pointer; box-shadow: 0 10px 25px rgba(238,62,105,0.3); transition: 0.2s; }
        .whatsapp-send-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; background: var(--primary); color: #fff; border: none; padding: 16px; border-radius: 16px; font-weight: 800; font-size: 15px; cursor: pointer; box-shadow: 0 10px 25px rgba(238,62,105,0.3); transition: 0.2s; }
        .whatsapp-send-btn i { font-size: 19px; }
        .whatsapp-send-btn:active { transform: scale(0.98); }
        .pd-add-btn:active { transform: scale(0.98); }

        /* Cart view */
        .cart-list { padding: 6px 20px 4px; display: flex; flex-direction: column; gap: 14px; }
        .cart-item { display: flex; gap: 12px; background: #fff; border: 1px solid #f1f5f9; border-radius: 16px; padding: 12px; box-shadow: var(--card-shadow); align-items: center; }
        .cart-item img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
        .cart-item-info { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
        .cart-item-info h4 { font-size: 13.5px; font-weight: 700; color: var(--text-dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .cart-item-size { font-size: 11.5px; color: var(--text-light); font-weight: 600; }
        .cart-item-right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; height: 64px; }
        .cart-item-price { font-size: 13.5px; font-weight: 800; color: var(--text-dark); }
        .cart-remove-btn { background: none; border: none; color: #cbd5e1; cursor: pointer; padding: 4px; font-size: 16px; }
        .cart-remove-btn:active { color: #ef4444; transform: scale(0.9); }
        .cart-summary { margin: 18px 20px 30px; background: #f8fafc; border-radius: 20px; padding: 20px; }
        .cs-row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--text-light); font-weight: 600; margin-bottom: 10px; }
        .cs-row.cs-total { color: var(--text-dark); font-size: 16px; font-weight: 800; border-top: 1px dashed #e2e8f0; padding-top: 12px; margin-top: 4px; margin-bottom: 18px; }
        .cs-note { font-size: 11.5px; color: var(--primary); font-weight: 700; margin: -4px 0 12px; }

        /* Cart delivery-details fields */
        .checkout-section-label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-light); margin: 14px 20px 10px; }
        .checkout-fields-wrap { padding: 0 20px; margin-bottom: 8px; }
        .checkout-date-confirm { font-size: 12px; font-weight: 700; color: var(--primary); margin: -6px 0 14px; }
        .location-share-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; background: #f1f5f9; color: var(--text-dark); border: 1.5px dashed #cbd5e1; padding: 12px; border-radius: 14px; font-weight: 700; font-size: 13px; cursor: pointer; margin-bottom: 14px; }
        .location-share-btn i { color: var(--primary); font-size: 16px; }
        .location-share-btn:active { transform: scale(0.98); }
        .location-chip { display: flex; justify-content: space-between; align-items: center; background: #f0fdf4; color: #15803d; padding: 12px 14px; border-radius: 14px; font-size: 12.5px; font-weight: 700; margin-bottom: 14px; }
        .location-chip span { display: flex; align-items: center; gap: 8px; }
        .location-chip-remove { background: none; border: none; color: #15803d; cursor: pointer; font-size: 15px; }

        /* Toast */
        .toast-container { position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%); z-index: 1300; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; width: 100%; padding: 0 20px; }
        .toast { background: #0f172a; color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 13px; font-weight: 600; box-shadow: 0 10px 25px rgba(0,0,0,0.18); opacity: 0; transform: translateY(10px); transition: all 0.3s ease; max-width: 320px; text-align: center; }
        .toast.show { opacity: 1; transform: translateY(0); }

        /* Bottom Navigation */
        .bottom-nav {
            position: fixed; bottom: 0; left: 0; width: 100%;
            background-color: var(--white); display: flex; justify-content: space-around;
            padding: 12px 10px calc(20px + env(safe-area-inset-bottom, 0px)) 10px; border-radius: 30px 30px 0 0;
            box-shadow: 0 -8px 20px rgba(0,0,0,0.05); z-index: 100;
        }
        .bottom-nav-inner { width: 100%; max-width: 420px; margin: 0 auto; display: flex; justify-content: space-between; padding: 0 20px; }
        .nav-item { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #94a3b8; text-decoration: none; cursor: pointer; transition: all 0.2s ease; width: 60px; background: none; border: none; }
        .nav-item:active { transform: scale(0.9); }
        .nav-item.active { color: var(--primary); }
        .nav-item i { font-size: 24px; transition: 0.3s; }
        .nav-item.active i { transform: translateY(-2px); }
        .nav-item span { font-size: 11px; font-weight: 600; }
        .wishlist-nav-badge { position: absolute; top: -2px; right: 10px; background: var(--primary); color: #fff; font-size: 9px; font-weight: 800; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 50%; align-items: center; justify-content: center; border: 2px solid #fff; }
        .nav-fab-wrapper { position: relative; top: -18px; }
        .nav-fab { position: relative; width: 58px; height: 58px; background: linear-gradient(135deg, var(--primary) 0%, #d42b55 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 26px; box-shadow: 0 6px 14px rgba(238, 62, 105, 0.35); border: 4px solid var(--white); cursor: pointer; transition: 0.2s; }
        .nav-fab:active { transform: scale(0.9); box-shadow: 0 4px 10px rgba(238, 62, 105, 0.35); }
        .nav-fab.bump { animation: fabBump 0.35s ease; }
        .fab-badge { position: absolute; top: -2px; right: -2px; background: #fff; color: var(--primary); font-size: 11px; font-weight: 800; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 50%; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,0.18); }
        @keyframes fabBump { 0% { transform: scale(1); } 40% { transform: scale(1.15); } 100% { transform: scale(1); } }

        /* Accessibility: visible focus states */
        button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
            outline: 2px solid var(--primary);
            outline-offset: 2px;
        }
        /* Our custom-styled fields already show focus via a colored border/glow on their wrapper —
           the default rectangular outline clashes with their rounded pill shape, so we drop it here. */
        .search-input:focus-visible,
        .shop-search-input:focus-visible,
        .coupon-input:focus-visible,
        .quote-field input:focus-visible,
        .quote-field textarea:focus-visible,
        .quote-field select:focus-visible {
            outline: none;
        }
        .coupon-input:focus { border-color: var(--primary); }

        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: 0.001ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.001ms !important;
                scroll-behavior: auto !important;
            }
        }

        /* ==========================================================
           DESKTOP RESPONSIVE DESIGN (PRO LAYOUT)
           ========================================================== */
        @media (min-width: 768px) {
            body { background-color: #f1f5f9; padding: 20px; }
            #app {
                max-width: 1200px;
                border-radius: 24px;
                box-shadow: 0 10px 50px rgba(0,0,0,0.08);
                padding-bottom: 40px;
                overflow: hidden;
            }

            header { padding: 20px 40px; }
            .menu-btn { display: none; }
            .desktop-nav { display: flex; gap: 30px; align-items: center; margin-left: 30px; }
            .desktop-nav a { text-decoration: none; color: var(--text-dark); font-weight: 700; font-size: 15px; transition: 0.2s; cursor: pointer; }
            .desktop-nav a:hover { color: var(--primary); }
            .desktop-only { display: flex; }

            .location-bar { padding: 12px 40px; }

            .bottom-nav { display: none; }

            main { padding: 0 20px; background: var(--white); }

            .slider-section { padding: 30px 20px; }
            .slider-container { height: 400px; border-radius: 30px; }
            .slide-overlay { padding: 40px; }
            .slide-overlay h2 { font-size: 32px; max-width: 50%; margin-bottom: 15px; }
            .slide-overlay p { font-size: 16px; }

            .tabs-section, .categories-section, .featured-section, .all-products-wrapper, .birthday-section {
                padding-left: 20px; padding-right: 20px; max-width: 1100px; margin-left: auto; margin-right: auto;
            }

            .tabs-container { max-width: 400px; margin: 0 auto; }

            .categories-scroll { flex-wrap: wrap; justify-content: center; gap: 30px; overflow: visible; }
            .category-card { min-width: 100px; }
            .category-card:hover { transform: translateY(-5px); }
            .category-img-wrapper { width: 100px; height: 100px; padding: 6px; }
            .category-card span { font-size: 15px; margin-top: 5px; }

            .featured-grid { grid-template-columns: 2fr 1fr 1fr; height: 350px; gap: 20px; }
            .featured-card:hover img { transform: scale(1.05); }

            .birthday-section { border-radius: 40px; margin: 40px 20px; padding: 40px; }
            .birthday-scroll { flex-wrap: wrap; justify-content: center; gap: 20px; overflow: visible; }
            .birthday-card { width: calc(25% - 15px); min-width: 220px; }
            .birthday-card:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(238,62,105,0.15); }

            .products-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 0; }
            .product-card:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(0,0,0,0.08); }
            .product-card:hover .add-btn { background-color: var(--primary); color: var(--white); }
        }

        @media (min-width: 768px) {
            #view-shop, #view-cart, #view-wishlist, #view-product {
                max-width: 900px; margin: 0 auto;
            }
            .pd-hero { border-radius: 24px; margin-top: 16px; max-height: 420px; }
            .shop-header, .shop-search-wrap, .chip-filters, .shop-toolbar { padding-left: 0; padding-right: 0; margin-left: 0; margin-right: 0; }
            .cart-summary { margin-left: 0; margin-right: 0; }
        }
