@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

        :root {
            --bg-1: #ffffff;
            --bg-2: #ffffff;
            --bg-3: #ffffff;
            --text: #1d1b1a;
            --muted: #6f655c;
            --card: #ffffff;
            --card-soft: #ffffff;
            --line: #dddddd;
            --accent: #f06b1b;
            --accent-strong: #ca4f08;
            --success: #0b8f55;
            --danger: #b5261e;
            --shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
        }

        * {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            color: var(--text);
            background:
                radial-gradient(circle at 58% 58%, rgba(247, 231, 197, 0.46), transparent 54%),
                linear-gradient(135deg, #e8e4d9 0%, #efe4cc 42%, #f4dcb8 76%, #f2d6ae 100%);
            min-height: 100vh;
            padding: 24px 16px 90px;
        }



        .hero-logo {
            width: auto;
            height: clamp(36px, 5.5vw, 52px);
            max-width: min(280px, 55vw);
            object-fit: contain;
            object-position: left center;
            flex-shrink: 0;
            filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.06));
        }

        .container {
            width: min(1220px, 100%);
            margin: 0 auto;
        }

        .landing-downloads {
            margin-bottom: 8px;
        }

        .landing-logo-wrap {
            display: flex;
            justify-content: center;
            margin-bottom: 18px;
        }

        .landing-logo {
            width: min(520px, 100%);
            height: auto;
            object-fit: contain;
            display: block;
            filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.08));
        }

        .store-badges-panel {
            background: #ffffff;
            border: 1px solid #dddddd;
            border-radius: 24px;
            box-shadow: var(--shadow);
            padding: 22px 18px;
            background-image: url('img/banner.jpg');
            background-size: cover;
            height: 250px;
            display: flex;
            flex-direction: column;
            justify-content: end;
        }

        .store-badges-row {
            display: flex;
            gap: 10px;
            justify-content: center;
            align-items: bottom;
         
        }

        .store-badge-link {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            line-height: 0;
            transition: transform 0.15s ease, opacity 0.15s ease;
            border-radius: 12px;
   
        }

        .store-badge-link:hover {
            transform: translateY(-2px);
            opacity: 0.94;
        }

        .store-badge-img {
            height: 54px;
            width: 100px;
            display: block;
            filter: invert(1) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
        }

        .store-badge-img--apple {
            height: 54px;
        }

        .store-badge-img--appgallery {
            width: auto;
            max-height: 54px;
        }

        .store-badge-link-appgallery:hover {
            opacity: 0.92;
        }

        .landing-or {
            margin: 22px 0;
            text-align: center;
            font-weight: 800;
            font-size: 1.05rem;
            letter-spacing: 0.35em;
            color: var(--muted);
            text-transform: uppercase;
        }

        .hero {
            background: #ffffff;
            border: 1px solid #dddddd;
            border-radius: 24px;
            box-shadow: var(--shadow);
            padding: 26px;
            margin-bottom: 20px;
        }

        .title {
            margin: 0;
            font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            font-weight: 700;
            font-size: clamp(1rem, 2.4vw, 1.5rem);
            letter-spacing: -0.02em;
            text-align: center;
            width: 100%;
        }

        .subtitle {
            margin: 10px 0 0;
            color: var(--muted);
            text-align: center;
            width: 100%;
            font-size: clamp(0.8rem, 2.4vw, 1rem);
        }

        .branch-form {
            margin-top: 22px;
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 12px;
        }

        .field {
            width: 100%;
            border: 1.5px solid var(--line);
            border-radius: 14px;
            padding: 12px 14px;
            font-family: inherit;
            font-size: 1rem;
            background: #fff;
        }

        .field:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 4px rgba(240, 107, 27, 0.14);
        }

        .btn {
            border: 0;
            border-radius: 14px;
            padding: 12px 18px;
            font-family: inherit;
            font-weight: 700;
            cursor: pointer;
            transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
        }

        .btn-primary {
            background: #c59d62;
            color: #fff;
            box-shadow: 0 10px 24px rgba(122, 90, 47, 0.28);
        }

        .btn-primary:hover {
            background: #a3773d;
            box-shadow: 0 12px 26px rgba(112, 82, 46, 0.32);
            transform: translateY(-1px);
        }

        .btn-secondary {
            background: #f5e7d2;
            color: #7a4a1f;
            border: 1px solid #efcc9f;
        }

        .welcome {
            margin-top: 16px;
            padding: 12px 14px;
            border-radius: 12px;
            background: rgba(11, 143, 85, 0.08);
            color: var(--success);
            font-weight: 600;
            display: none;
        }

        .error {
            margin-top: 12px;
            color: var(--danger);
            display: none;
        }

        .order-layout {
            display: none;
            grid-template-columns: minmax(0, 1fr) 320px;
            gap: 20px;
            align-items: start;
        }

        .products-panel,
        .details-panel,
        .cart-panel {
            background: var(--card);
            border-radius: 22px;
            border: 1px solid #dddddd;
            box-shadow: var(--shadow);
        }

        .products-panel,
        .details-panel {
            padding: 18px;
        }

        .panel-heading {
            margin: 4px 0 14px;
            font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            font-size: 1.25rem;
            font-weight: 600;
        }

        .products-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 12px;
        }

        .category-toolbar {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin: 0 0 12px;
        }

        .category-chip {
            border: 1px solid rgba(231, 172, 107, 0.45);
            background: #fff7ea;
            color: #885221;
            border-radius: 999px;
            padding: 7px 12px;
            font-size: 0.78rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .category-chip:hover {
            background: #fff0da;
        }

        .category-chip.active {
            background: linear-gradient(135deg, #f2953e, #e26a1b);
            color: #fff;
            border-color: transparent;
            box-shadow: 0 8px 20px rgba(221, 116, 33, 0.28);
        }

        .category-banner {
            margin: 4px 0 14px;
            border-radius: 14px;
            overflow: hidden;
            border: 1px solid rgba(231, 172, 107, 0.45);
            min-height: 70px;
            background: #fff7ea;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .category-banner img {
            width: 100%;
            max-height: 120px;
            object-fit: cover;
            display: block;
        }

        .product-card {
            background: #ffffff;
            border: 1px solid #e2e2e2;
            border-radius: 18px;
            padding: 10px;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
            transform: translateY(8px);
            opacity: 0;
            animation: floatIn 0.45s ease forwards;
        }

        @keyframes floatIn {
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .product-image {
            width: 100%;
            aspect-ratio: 1 / 1;
            border-radius: 12px;
            object-fit: cover;
            background: #f4ece3;
        }

        .product-name {
            margin: 10px 0 6px;
            font-size: 0.95rem;
            font-weight: 700;
            min-height: 2.5em;
        }

        .product-price {
            color: var(--accent-strong);
            font-weight: 700;
            font-size: 0.95rem;
        }

        .product-category {
            display: inline-block;
            margin-top: 6px;
            padding: 4px 8px;
            border-radius: 999px;
            background: #fff0dc;
            color: #915728;
            font-size: 0.68rem;
            font-weight: 700;
        }

        .product-desc {
            color: var(--muted);
            font-size: 0.78rem;
            min-height: 2.2em;
            margin: 6px 0 8px;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }

        .select,
        .small-field {
            width: 100%;
            border: 1px solid var(--line);
            border-radius: 10px;
            padding: 8px;
            font-family: inherit;
            font-size: 0.8rem;
            background: #fff;
        }

        .card-actions {
            display: grid;
            grid-template-columns: 84px 1fr;
            gap: 8px;
            margin-top: 8px;
        }

        .btn-add {
            background: var(--text);
            color: #fff;
            border-radius: 10px;
            padding: 8px;
            font-size: 0.8rem;
            font-weight: 600;
        }

        .btn-add:hover {
            background: #2b2b2b;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
            transform: translateY(-1px);
        }

        .open-item-modal-btn {
            width: 100%;
            margin-top: 10px;
        }

        .extras-wrap {
            margin-top: 8px;
            border: 1px dashed rgba(240, 107, 27, 0.35);
            border-radius: 10px;
            padding: 8px;
            background: var(--card-soft);
            max-height: 110px;
            overflow-y: auto;
        }

        .extras-title {
            margin: 0 0 6px;
            font-size: 0.75rem;
            font-weight: 700;
            color: var(--accent-strong);
        }

        .extra-row {
            display: flex;
            align-items: center;
            gap: 6px;
            margin-bottom: 5px;
            font-size: 0.73rem;
        }

        .extra-row:last-child {
            margin-bottom: 0;
        }

        .details-panel {
            margin-top: 16px;
        }

        .details-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }

        .full {
            grid-column: 1 / -1;
        }

        .payment-list {
            display: grid;
            gap: 8px;
        }

        .payment-option {
            border: 1px solid var(--line);
            border-radius: 12px;
            padding: 10px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .payment-option img {
            width: 30px;
            height: 30px;
            object-fit: contain;
            border-radius: 50%;
        }

        .payment-option input {
            accent-color: var(--accent);
        }

        .cart-panel {
            position: sticky;
            top: 16px;
            padding: 16px;
        }

        .cart-title {
            margin: 0 0 12px;
            font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .cart-icon {
            width: 20px;
            height: 20px;
            flex-shrink: 0;
            fill: var(--accent);
        }

        .cart-list {
            max-height: 360px;
            overflow-y: auto;
            display: grid;
            gap: 10px;
            padding-right: 2px;
        }

        .cart-item {
            background: #ffffff;
            border: 1px solid #e3e3e3;
            border-radius: 12px;
            padding: 10px;
        }

        .cart-item h4 {
            margin: 0;
            font-size: 0.9rem;
        }

        .cart-item small {
            color: var(--muted);
            font-size: 0.72rem;
        }

        .cart-controls {
            margin-top: 8px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 8px;
        }

        .qty-wrap {
            display: inline-flex;
            align-items: center;
            border: 1px solid var(--line);
            border-radius: 10px;
            overflow: hidden;
        }

        .qty-btn {
            border: 0;
            width: 28px;
            height: 28px;
            background: #fff;
            cursor: pointer;
            font-weight: 700;
        }

        .qty-value {
            width: 36px;
            text-align: center;
            font-size: 0.85rem;
            font-weight: 700;
        }

        .remove-btn {
            border: 0;
            background: transparent;
            color: var(--danger);
            font-size: 0.73rem;
            cursor: pointer;
            padding: 0;
        }

        .cart-total {
            border-top: 1px dashed var(--line);
            margin-top: 12px;
            padding-top: 12px;
            font-weight: 700;
        }

        .slide-wrap {
            margin-top: 14px;
            background: #fff3df;
            border: 1px solid rgba(235, 163, 79, 0.5);
            border-radius: 999px;
            padding: 4px;
            user-select: none;
            position: relative;
            height: 52px;
            overflow: hidden;
        }

        .slide-label {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #8b5324;
            font-size: 0.86rem;
            font-weight: 700;
            pointer-events: none;
            transition: opacity 0.2s ease;
        }

        .slide-thumb {
            position: absolute;
            top: 4px;
            left: 4px;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--accent), var(--accent-strong));
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
            font-weight: 900;
            cursor: grab;
            box-shadow: 0 8px 18px rgba(202, 79, 8, 0.35);
        }

        .slide-wrap.ready {
            background: rgba(11, 143, 85, 0.14);
            border-color: rgba(11, 143, 85, 0.45);
        }

        .slide-wrap.ready .slide-label {
            color: #0a7044;
        }

        .status {
            margin-top: 10px;
            font-size: 0.82rem;
            color: var(--muted);
            min-height: 1.2em;
        }

        .modal {
            position: fixed;
            inset: 0;
            background: rgba(31, 19, 7, 0.58);
            display: none;
            align-items: center;
            justify-content: center;
            padding: 14px;
            z-index: 20;
        }

        .modal-card {
            width: min(460px, 100%);
            background: #fff;
            border-radius: 18px;
            padding: 24px;
            text-align: center;
        }

        .modal-card h3 {
            margin: 0;
            font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            font-weight: 700;
            font-size: 1.45rem;
        }

        .item-modal-card {
            width: min(680px, 100%);
            text-align: left;
            position: relative;
            padding: 20px;
        }

        .item-modal-header {
            display: grid;
            grid-template-columns: 110px minmax(0, 1fr);
            gap: 12px;
            margin-bottom: 12px;
            align-items: center;
        }

        .modal-base-price {
            font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            color: #000;
            font-weight: 700;
        }

        .item-modal-image {
            width: 110px;
            height: 110px;
            object-fit: cover;
            border-radius: 12px;
            border: 1px solid #efddc8;
            background: #f8efe4;
        }

        .item-modal-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }

        .modal-field {
            display: grid;
            gap: 5px;
            font-size: 0.78rem;
            font-weight: 700;
            color: #8f6336;
        }

        .modal-field-block {
            margin-top: 10px;
            display: grid;
            gap: 6px;
        }

        .modal-textarea {
            min-height: 72px;
            font-size: 0.86rem;
        }

        .modal-section-title {
            margin: 12px 0 8px;
            font-size: 0.92rem;
            color: #7a4a1f;
        }

        .modal-extra-list {
            border: 1px dashed rgba(240, 107, 27, 0.35);
            border-radius: 12px;
            padding: 10px;
            background: #fff8ee;
            max-height: 190px;
            overflow-y: auto;
            display: grid;
            gap: 8px;
        }

        .modal-extra-group {
            border: 1px solid #f1ddc5;
            border-radius: 10px;
            padding: 10px;
            background: #fffdf8;
        }

        .modal-extra-group-title {
            margin: 0 0 8px;
            font-size: 0.84rem;
            color: #7a4a1f;
        }

        .modal-radio-list {
            display: grid;
            gap: 6px;
        }

        .modal-radio-item {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.82rem;
            color: #000;
        }

        .modal-radio-item input[type="radio"] {
            accent-color: var(--accent);
        }

        .modal-radio-label {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            gap: 12px;
            width: 100%;
        }

        .modal-radio-name {
            font-weight: 700;
            color: #000;
        }

        .modal-radio-plus {
            font-weight: 800;
            color: #000;
            min-width: 42px;
            text-align: right;
            letter-spacing: 0.02em;
        }

        .modal-extra-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
            border-bottom: 1px dashed #f0dcc3;
            padding-bottom: 8px;
        }

        .modal-extra-row:last-child {
            border-bottom: 0;
            padding-bottom: 0;
        }

        .modal-extra-row .select {
            width: 88px;
            font-size: 0.78rem;
            padding: 7px;
        }

        .modal-summary {
            margin-top: 12px;
            padding: 10px;
            border-radius: 12px;
            background: #fff4e3;
            border: 1px solid #f0d4ae;
        }

        .modal-total-line {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            gap: 10px;
            font-size: 0.95rem;
            color: #70411a;
            font-weight: 700;
        }

        .modal-total-amount {
            font-size: 1.6rem;
            line-height: 1;
            font-weight: 900;
            color: #1d1b1a;
        }

        .modal-actions {
            margin-top: 12px;
            display: flex;
            gap: 10px;
            justify-content: flex-end;
        }

        .modal-actions .btn {
            min-width: 130px;
        }

        .order-number {
            margin: 10px 0 4px;
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--accent-strong);
            letter-spacing: 0.04em;
        }

        .muted {
            color: var(--muted);
        }

        .hidden {
            display: none !important;
        }

        @media (max-width: 1180px) {
            .order-layout {
                grid-template-columns: 1fr;
            }

            .cart-panel {
                position: static;
            }
        }

        @media (max-width: 920px) {
            .products-grid {
                grid-template-columns: repeat(3, minmax(0, 1fr));
            }
        }

        @media (max-width: 760px) {
            .hero-header {
                flex-wrap: wrap;
            }

            .hero-logo {
                max-width: min(320px, 100%);
                height: auto;
                max-height: 48px;
            }

            .branch-form {
                grid-template-columns: 1fr;
            }

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

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

            .item-modal-header {
                grid-template-columns: 1fr;
            }

            .item-modal-image {
                width: 100%;
                height: 180px;
            }

            .item-modal-grid {
                grid-template-columns: 1fr;
            }

            .modal-actions {
                flex-direction: column;
            }

            .modal-actions .btn {
                width: 100%;
            }
        }
