/*
 * Gopinu public website and customer account.
 * Same brand tokens as the admin theme (admin-theme.css): forest green from
 * the logo, leaf green from the app, gold from the logo ring.
 * Breakpoints: phone < 768px, tablet 768-1023px, desktop >= 1024px.
 */

:root {
    --brand: #1b431e;
    --brand-2: #12321a;
    --leaf: #81c530;
    --gold: #c9a23a;
    --primary: #2e7d32;
    --primary-hover: #1b5e20;
    --primary-soft: #e8f5e9;
    --on-primary: #ffffff;
    --bg: #fbfaf5;
    --cream: #f5f1e4;
    --surface: #ffffff;
    --surface-2: #f6f8f4;
    --border: #e3e8de;
    --border-strong: #cdd8c9;
    --text: #17261a;
    --text-2: #3a4b3d;
    --muted: #5b6b5d;
    --danger: #c62828;
    --danger-bg: #fdecea;
    --warning: #9a5b00;
    --warning-bg: #fff4e0;
    --success: #2e7d32;
    --success-bg: #e8f5e9;
    --info: #1565c0;
    --info-bg: #e3f2fd;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-1: 0 1px 2px rgba(23, 38, 26, 0.06), 0 2px 8px rgba(23, 38, 26, 0.04);
    --shadow-2: 0 12px 32px rgba(23, 38, 26, 0.12);
    --focus: 0 0 0 3px rgba(129, 197, 48, 0.5);
    --wrap: 1180px;
    --head: "Fraunces", Georgia, "Times New Roman", serif;
    --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color-scheme: light;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100dvh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary);
}

a:hover {
    color: var(--primary-hover);
}

:focus-visible {
    outline: none;
    box-shadow: var(--focus);
    border-radius: 6px;
}

h1,
h2,
h3 {
    margin: 0 0 12px;
    font-family: var(--head);
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.5vw, 2.4rem); }
h3 { font-size: 1.2rem; }

p {
    margin: 0 0 12px;
}

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

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 20px;
}

.skip {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 100;
    padding: 8px 14px;
    background: var(--surface);
    border-radius: 8px;
}

.skip:focus {
    left: 8px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ---------- Buttons and forms ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    font: 600 15px/1 var(--body);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
    touch-action: manipulation;
}

.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.btn-outline { border-color: var(--border-strong); background: var(--surface); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: var(--cream); color: var(--brand); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--primary-soft); color: var(--primary); }
.btn-danger { border-color: #f1c4c0; background: var(--surface); color: var(--danger); }
.btn-danger:hover { background: var(--danger-bg); color: var(--danger); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.field {
    display: grid;
    gap: 6px;
    margin-bottom: 16px;
}

.field label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-2);
}

.field .req {
    color: var(--danger);
}

.input,
.select,
.textarea {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font: 16px/1.4 var(--body);
}

.textarea {
    min-height: 110px;
    resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
    border-color: var(--primary);
    box-shadow: var(--focus);
    outline: none;
}

.input.is-invalid,
.textarea.is-invalid {
    border-color: var(--danger);
}

.field-error {
    color: var(--danger);
    font-size: 14px;
}

.hint {
    color: var(--muted);
    font-size: 13.5px;
}

.check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14.5px;
}

.check input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--primary);
}

.password-wrap {
    position: relative;
}

.password-wrap .input {
    padding-right: 52px;
}

.password-wrap button {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.hp {
    position: absolute;
    left: -9999px;
}

.alert {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 15px;
}

.alert-success { background: var(--success-bg); color: var(--success); }
.alert-error { background: var(--danger-bg); color: var(--danger); }
.alert-info { background: var(--info-bg); color: var(--info); }
.alert-warning { background: var(--warning-bg); color: var(--warning); }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--text-2);
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
}

.pill-success { background: var(--success-bg); color: var(--success); }
.pill-warning { background: var(--warning-bg); color: var(--warning); }
.pill-danger { background: var(--danger-bg); color: var(--danger); }
.pill-info { background: var(--info-bg); color: var(--info); }

/* ---------- Header ---------- */
.site-head {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    backdrop-filter: saturate(1.4) blur(10px);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--border);
}

.site-head .wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 68px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--brand);
    font-family: var(--head);
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
}

.logo img {
    width: 40px;
    height: 40px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--text-2);
    font-weight: 500;
    text-decoration: none;
}

.nav a:hover,
.nav a.active {
    background: var(--primary-soft);
    color: var(--primary);
}

.head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--brand);
    font-size: 20px;
    cursor: pointer;
}

.drawer {
    display: none;
}

@media (max-width: 1023.98px) {
    .nav,
    .head-actions .hide-tablet {
        display: none;
    }

    .head-actions {
        margin-left: auto;
    }

    .menu-btn {
        display: inline-grid;
        place-items: center;
    }

    .drawer {
        position: fixed;
        inset: 68px 0 auto 0;
        z-index: 49;
        display: grid;
        gap: 4px;
        padding: 12px 20px 20px;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-2);
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.18s ease, transform 0.18s ease;
    }

    .drawer.open {
        transform: none;
        opacity: 1;
        pointer-events: auto;
    }

    .drawer a {
        display: flex;
        align-items: center;
        gap: 12px;
        min-height: 48px;
        padding: 0 12px;
        border-radius: 12px;
        color: var(--text);
        font-weight: 500;
        text-decoration: none;
    }

    .drawer a:hover {
        background: var(--primary-soft);
    }

    .drawer i {
        width: 20px;
        color: var(--primary);
        text-align: center;
    }
}

/* ---------- Sections ---------- */
.section {
    padding: 72px 0;
}

.section-tight {
    padding: 48px 0;
}

.section-cream {
    background: var(--cream);
}

.section-head {
    max-width: 680px;
    margin: 0 auto 40px;
    text-align: center;
}

.section-head p {
    color: var(--muted);
    font-size: 17px;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 56px 0 72px;
    background:
        radial-gradient(800px 420px at 85% 10%, rgba(129, 197, 48, 0.18), transparent 60%),
        radial-gradient(600px 380px at 0% 100%, rgba(201, 162, 58, 0.12), transparent 60%),
        var(--bg);
}

.hero .wrap {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero p.lead {
    max-width: 560px;
    color: var(--text-2);
    font-size: 18.5px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0 28px;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--text-2);
    font-size: 15px;
    font-weight: 500;
}

.hero-points i {
    margin-right: 6px;
    color: var(--primary);
}

.hero-art {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    max-width: 440px;
    margin: 0 auto;
}

.hero-art::before {
    content: "";
    position: absolute;
    inset: 6%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff, var(--cream) 70%);
    box-shadow: inset 0 0 0 10px rgba(201, 162, 58, 0.25), var(--shadow-2);
}

.hero-art img {
    position: relative;
    width: 66%;
    filter: drop-shadow(0 18px 30px rgba(27, 67, 30, 0.28));
}

.hero-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-2);
    font-size: 14px;
    font-weight: 600;
}

.hero-badge i {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--primary-soft);
    color: var(--primary);
}

.hero-badge.one { left: -12%; top: 4%; }
.hero-badge.two { right: -8%; bottom: 2%; }

.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    counter-reset: step;
}

.step {
    position: relative;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-1);
}

.step::before {
    counter-increment: step;
    content: counter(step);
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
}

.step p {
    color: var(--muted);
    font-size: 15px;
}

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

.feature {
    padding: 24px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
}

.feature i {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    border-radius: 14px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 20px;
}

.feature p {
    color: var(--muted);
    font-size: 15px;
}

.cta-band {
    display: grid;
    grid-template-columns: 1.4fr auto;
    gap: 24px;
    align-items: center;
    padding: 40px;
    border-radius: 24px;
    background:
        radial-gradient(500px 260px at 100% 0%, rgba(129, 197, 48, 0.35), transparent 60%),
        var(--brand);
    color: #fff;
}

.cta-band h2 {
    color: #fff;
}

.cta-band p {
    color: #d7e6d9;
}

.cta-band .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-2);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
}

.chip:hover,
.chip.active {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary);
}

.faq {
    max-width: 780px;
    margin: 0 auto;
}

.faq details {
    border-bottom: 1px solid var(--border);
}

.faq summary {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 4px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "\f067";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--primary);
    transition: transform 0.18s ease;
}

.faq details[open] summary::after {
    transform: rotate(45deg);
}

.faq details p {
    padding: 0 4px 18px;
    color: var(--text-2);
}

/* ---------- Products ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-1);
    color: var(--text);
    text-decoration: none;
    transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.product-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-2);
    color: var(--text);
}

.product-img {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    background: #f7f5ee;
}

.product-img img {
    width: 78%;
    height: 78%;
    object-fit: contain;
}

.product-img .placeholder {
    color: #b9c4b5;
    font-size: 48px;
}

.product-img .tag {
    position: absolute;
    top: 10px;
    left: 10px;
}

.product-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    padding: 14px 16px 16px;
}

.product-name {
    font-weight: 650;
    line-height: 1.35;
}

.product-unit {
    color: var(--muted);
    font-size: 14px;
}

.price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
    font-variant-numeric: tabular-nums;
}

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

.price s {
    color: var(--muted);
    font-size: 14px;
}

.out-of-stock {
    color: var(--danger);
    font-size: 13.5px;
    font-weight: 600;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
}

.toolbar form {
    display: flex;
    flex: 1 1 280px;
    gap: 8px;
}

.scroll-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.scroll-chips::-webkit-scrollbar {
    display: none;
}

.detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.detail-img {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    border-radius: 24px;
    background: #f7f5ee;
}

.detail-img img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.thumbs img {
    width: 64px;
    height: 64px;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f7f5ee;
    object-fit: contain;
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: 14px;
}

.crumbs li + li::before {
    content: "/";
    margin-right: 6px;
    opacity: 0.6;
}

.crumbs a {
    color: var(--muted);
    text-decoration: none;
}

/* ---------- Cards, pages ---------- */
.card {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-1);
}

.card + .card {
    margin-top: 16px;
}

.card h2,
.card h3 {
    font-size: 1.25rem;
}

.page-hero {
    padding: 48px 0 24px;
}

.page-hero p {
    max-width: 680px;
    color: var(--text-2);
    font-size: 17.5px;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.prose {
    max-width: 760px;
}

.prose h2 {
    margin-top: 36px;
    font-size: 1.5rem;
}

.prose h3 {
    margin-top: 20px;
}

.prose li {
    margin-bottom: 6px;
}

.contact-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.contact-list i {
    display: inline-grid;
    flex-shrink: 0;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
}

.auth {
    display: grid;
    place-items: start center;
    padding: 48px 20px 72px;
}

.auth .card {
    width: 100%;
    max-width: 460px;
    padding: 32px 28px;
}

.auth-logo {
    display: block;
    width: 72px;
    height: 72px;
    margin: 0 auto 12px;
}

/* ---------- Footer ---------- */
.site-foot {
    margin-top: 0;
    padding: 56px 0 28px;
    background: var(--brand-2);
    color: #c9d9cc;
}

.site-foot a {
    color: #e5efe6;
    text-decoration: none;
}

.site-foot a:hover {
    color: var(--leaf);
}

.foot-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 32px;
}

.foot-grid h3 {
    margin-bottom: 14px;
    color: #fff;
    font-family: var(--body);
    font-size: 15px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.foot-grid ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.foot-brand .logo {
    color: #fff;
}

.foot-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

.social {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.social a {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

/* ---------- Account ---------- */
.account {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    padding: 32px 0 72px;
}

.account-nav {
    position: sticky;
    top: 88px;
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.account-nav a,
.account-nav button {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--text-2);
    font: 500 15px var(--body);
    text-decoration: none;
    cursor: pointer;
    text-align: left;
    width: 100%;
}

.account-nav a:hover,
.account-nav button:hover {
    background: var(--surface-2);
}

.account-nav a.active {
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 650;
}

.account-nav i {
    width: 20px;
    text-align: center;
}

.account h1 {
    font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem);
}

.week {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 20px;
}

.week a {
    display: grid;
    gap: 2px;
    justify-items: center;
    padding: 10px 4px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
}

.week a:hover {
    border-color: var(--border-strong);
}

.week a.active {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--on-primary);
}

.week .dow {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.8;
}

.week .dom {
    font-size: 20px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.week .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--leaf);
}

.week .dot.none {
    background: transparent;
}

.week .dot.paused {
    background: var(--warning);
}

.lines {
    margin: 0;
    padding: 0;
    list-style: none;
}

.lines li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.lines li:last-child {
    border-bottom: 0;
}

.line-img {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 56px;
    height: 56px;
    overflow: hidden;
    border-radius: 12px;
    background: #f7f5ee;
    color: #b9c4b5;
}

.line-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.line-body {
    flex: 1;
    min-width: 0;
}

.line-body strong {
    display: block;
    line-height: 1.3;
}

.line-body small {
    color: var(--muted);
}

.stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: var(--surface);
    overflow: hidden;
}

.stepper button {
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: var(--primary);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}

.stepper button:hover {
    background: var(--primary-soft);
}

.stepper button[disabled] {
    color: var(--border-strong);
    cursor: not-allowed;
}

.stepper input,
.stepper output {
    width: 36px;
    border: 0;
    background: transparent;
    text-align: center;
    font: 700 16px var(--body);
    font-variant-numeric: tabular-nums;
    -moz-appearance: textfield;
}

.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.add-btn {
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid var(--primary);
    border-radius: 999px;
    background: var(--surface);
    color: var(--primary);
    font: 700 14px var(--body);
    cursor: pointer;
}

.add-btn:hover {
    background: var(--primary-soft);
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding-top: 14px;
    margin-top: 6px;
    border-top: 1px dashed var(--border-strong);
    font-size: 18px;
    font-weight: 700;
}

.summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.summary div {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
}

.summary span {
    display: block;
    color: var(--muted);
    font-size: 13.5px;
}

.summary strong {
    font-size: 22px;
    font-variant-numeric: tabular-nums;
}

.list-rows {
    margin: 0;
    padding: 0;
    list-style: none;
}

.list-rows li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.list-rows li:last-child {
    border-bottom: 0;
}

.sticky-save {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-2);
}

.account-tabbar {
    display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1023.98px) {
    .hero .wrap,
    .detail,
    .two-col {
        grid-template-columns: 1fr;
    }

    .hero-art {
        max-width: 320px;
    }

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

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

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

    .account {
        grid-template-columns: 1fr;
        padding-top: 20px;
        padding-bottom: calc(96px + env(safe-area-inset-bottom));
    }

    .account-nav {
        display: none;
    }

    .account-tabbar {
        position: fixed;
        inset: auto 0 0 0;
        z-index: 40;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        height: calc(64px + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
        background: var(--surface);
        border-top: 1px solid var(--border);
        box-shadow: 0 -4px 16px rgba(23, 38, 26, 0.06);
    }

    .account-tabbar a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        color: var(--muted);
        font-size: 11.5px;
        font-weight: 500;
        text-decoration: none;
    }

    .account-tabbar i {
        display: grid;
        place-items: center;
        width: 52px;
        height: 28px;
        border-radius: 999px;
        font-size: 17px;
    }

    .account-tabbar a.active {
        color: var(--primary);
        font-weight: 650;
    }

    .account-tabbar a.active i {
        background: var(--primary-soft);
    }

    .sticky-save {
        bottom: calc(72px + env(safe-area-inset-bottom));
    }

    /* Keep the footer clear of the account tab bar. */
    .has-tabbar .site-foot {
        padding-bottom: calc(88px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 767.98px) {
    .section {
        padding: 52px 0;
    }

    .hero {
        padding: 32px 0 48px;
    }

    .hero-art {
        max-width: 240px;
        order: -1;
    }

    .hero-badge {
        display: none;
    }

    .hero-actions .btn {
        flex: 1 1 100%;
    }

    .steps,
    .features {
        grid-template-columns: 1fr;
    }

    .summary {
        gap: 8px;
    }

    .summary div {
        padding: 10px 12px;
    }

    .summary strong {
        font-size: 17px;
    }

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

    .product-body {
        padding: 10px 12px 12px;
    }

    .cta-band {
        grid-template-columns: 1fr;
        padding: 28px 22px;
    }

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

    .week {
        gap: 4px;
    }

    .week a {
        padding: 8px 2px;
        border-radius: 12px;
    }

    .week .dom {
        font-size: 17px;
    }

    .card {
        padding: 18px;
    }

    .auth .card {
        padding: 24px 18px;
    }
}
