
        :root {
            --background: #f5f7fa;
            --surface: #ffffff;
            --text: #17202b;
            --muted: #64748b;
            --border: #e5e7eb;
            --primary: #111827;
            --radius: 16px;

            font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
            color: var(--text);
            background: var(--background);
        }

        * {
            box-sizing: border-box;
        }

        body {
            margin: 0;
        }

        button,
        input {
            font: inherit;
        }

        button {
            cursor: pointer;
        }

        button:disabled {
            cursor: not-allowed;
            opacity: .5;
        }

        button:focus-visible,
        input:focus-visible {
            outline: 3px solid #818cf8;
            outline-offset: 3px;
        }

        [hidden] {
            display: none !important;
        }

        .container {
            width: min(1180px, 100%);
            margin-inline: auto;
            padding-inline: 24px;
        }

        /* Header */

        .site-header {
            background: var(--primary);
            color: white;
        }

        .header-inner {
            min-height: 76px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 16px;
        }

        .brand {
            font-size: 21px;
            font-weight: 800;
            letter-spacing: 1px;
        }

        .header-label {
            padding: 8px 14px;
            border: 1px solid #475569;
            border-radius: 999px;
            font-size: 13px;
        }

        /* Store */

        .store {
            margin-block: 28px;
            overflow: hidden;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
        }

        .store-banner {
            height: 210px;
            background: linear-gradient(110deg, #1f2937, #64748b);
        }

        .store-banner img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .store-info {
            display: flex;
            align-items: center;
            gap: 20px;
            padding: 26px;
        }

        .store-logo {
            flex: 0 0 80px;
            width: 80px;
            height: 80px;
            border-radius: 18px;
            object-fit: cover;
            background: #eef2ff;
        }

        .store-logo-fallback {
            display: grid;
            place-items: center;
            color: #4338ca;
            font-size: 32px;
            font-weight: 800;
        }

        .store-name {
            margin: 0 0 8px;
            font-size: 28px;
            overflow-wrap: anywhere;
        }

        .store-bio {
            margin: 0;
            color: var(--muted);
            line-height: 1.6;
            white-space: pre-line;
            overflow-wrap: anywhere;
        }

        /* Main layout */

        .shop-layout {
            display: grid;
            grid-template-columns: minmax(0, 1fr) 320px;
            align-items: start;
            gap: 24px;
            padding-bottom: 40px;
        }

        .section-heading {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            margin-bottom: 20px;
        }

        .section-heading h2 {
            margin: 0;
            font-size: 22px;
        }

        .product-count {
            margin: 6px 0 0;
            color: var(--muted);
            font-size: 13px;
        }

        .search {
            width: 230px;
            max-width: 50%;
            padding: 12px 14px;
            border: 1px solid var(--border);
            border-radius: 10px;
            background: var(--surface);
        }

        /* Products */

        .product-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 18px;
        }

        .product-card {
            display: flex;
            flex-direction: column;
            overflow: hidden;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
        }

        .product-image,
        .product-placeholder {
            display: block;
            width: 100%;
            aspect-ratio: 1;
            object-fit: cover;
            background: #eef2f7;
        }

        .product-placeholder {
            display: grid;
            place-items: center;
            font-size: 44px;
        }

        .product-details {
            display: flex;
            flex: 1;
            flex-direction: column;
            padding: 16px;
        }

        .product-name {
            margin: 0 0 8px;
            font-size: 16px;
            overflow-wrap: anywhere;
        }

        .product-description {
            margin: 0 0 16px;
            color: var(--muted);
            font-size: 13px;
            line-height: 1.6;
            white-space: pre-line;
            overflow-wrap: anywhere;
        }

        .product-bottom {
            margin-top: auto;
        }

        .product-price {
            margin-bottom: 6px;
            font-size: 21px;
            font-weight: 800;
        }

        .product-stock {
            color: var(--muted);
            font-size: 12px;
        }

        .button {
            width: 100%;
            margin-top: 14px;
            padding: 12px;
            border: 0;
            border-radius: 10px;
            background: var(--primary);
            color: white;
            font-weight: 700;
        }

        .empty-state {
            padding: 30px 20px;
            border: 1px dashed #cbd5e1;
            border-radius: var(--radius);
            color: var(--muted);
            text-align: center;
        }

        /* Cart */

        .cart {
            position: sticky;
            top: 24px;
            padding: 22px;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
        }

        .cart-heading {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            margin-bottom: 18px;
        }

        .cart-heading h2 {
            margin: 0;
            font-size: 20px;
        }

        .cart-count {
            color: var(--muted);
            font-size: 13px;
        }

        .cart-empty {
            padding-block: 18px;
            color: var(--muted);
            font-size: 14px;
        }

        .cart-item {
            padding-block: 14px;
            border-bottom: 1px solid var(--border);
        }

        .cart-item-name {
            margin-bottom: 10px;
            font-size: 14px;
            font-weight: 600;
            overflow-wrap: anywhere;
        }

        .cart-item-bottom,
        .cart-total {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }

        .quantity {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .quantity button {
            width: 30px;
            height: 30px;
            border: 1px solid var(--border);
            border-radius: 7px;
            background: white;
        }

        .cart-item-price {
            font-size: 14px;
            font-weight: 700;
        }

        .cart-total {
            margin-top: 20px;
            font-weight: 700;
        }

        .cart-total strong {
            font-size: 24px;
        }

        .cart-note {
            margin: 16px 0 0;
            color: var(--muted);
            font-size: 12px;
            line-height: 1.6;
        }

        @media (max-width: 1050px) {
            .product-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }

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

            .cart {
                position: static;
            }
        }

        @media (max-width: 480px) {
            .container {
                padding-inline: 16px;
            }

            .store-banner {
                height: 150px;
            }

            .store-info {
                align-items: flex-start;
                gap: 14px;
                padding: 18px;
            }

            .store-logo {
                flex-basis: 60px;
                width: 60px;
                height: 60px;
                border-radius: 14px;
            }

            .store-name {
                font-size: 22px;
            }

            .section-heading {
                align-items: stretch;
                flex-direction: column;
            }

            .search {
                width: 100%;
                max-width: none;
            }

            .product-grid {
                gap: 12px;
            }

            .product-details {
                padding: 12px;
            }

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

            .product-price {
                font-size: 18px;
            }
        }
    