/* ---------------------------------------------------------------
   Design tokens
   --------------------------------------------------------------- */
:root {
    --font-sans: 'Public Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;

    --color-bg: #fdfdfc;
    --color-surface: #ffffff;
    --color-surface-alt: #f6f6f5;
    --color-border: #e5e4e1;
    --color-text: #262624;
    --color-text-muted: #6b6862;
    --color-accent: #33322f;
    --color-accent-hover: #171716;
    --color-accent-soft: #eeeeec;
    --color-accent-contrast: #ffffff;
    --color-accent-2: #262624;
    --color-accent-2-soft: #f6f6f5;
    --color-danger: #b3261e;
    --color-danger-soft: #f9e4e2;
    --color-success: #1e6b45;
    --color-success-soft: #e4f0ea;

    --radius-sm: 5px;
    --radius-md: 8px;
    --radius-lg: 12px;

    --shadow-sm: 0 1px 3px rgba(17, 17, 16, 0.06);
    --shadow-md: 0 6px 20px rgba(17, 17, 16, 0.08);
    --shadow-lg: 0 18px 44px rgba(17, 17, 16, 0.14);

    --container-width: 1200px;
}

/* ---------------------------------------------------------------
   Reset & base
   --------------------------------------------------------------- */
* { box-sizing: border-box; }

html { color-scheme: light; }

body {
    margin: 0;
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    background-image: radial-gradient(var(--color-border) 1px, transparent 1px);
    background-size: 28px 28px;
    background-position: -14px -14px;
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    line-height: 1.55;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    font-optical-sizing: auto;
    letter-spacing: -0.01em;
    line-height: 1.15;
    margin: 0 0 0.5rem;
}

h1 { font-weight: 500; }

a { color: inherit; }

img { max-width: 100%; display: block; }

/* ---------------------------------------------------------------
   Layout
   --------------------------------------------------------------- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

main > .container {
    padding-top: 2.5rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    padding: 1rem 1.5rem;
    max-width: var(--container-width);
    margin: 0 auto;
}

.brand {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--color-text);
    letter-spacing: -0.01em;
}

.site-nav {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.site-nav > a {
    text-decoration: none;
    color: var(--color-text-muted);
    font-size: 0.92rem;
    font-weight: 500;
    white-space: nowrap;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: color 0.15s ease, background 0.15s ease;
}

.site-nav > a:hover,
.site-nav > a.is-active {
    color: var(--color-accent);
    background: var(--color-accent-soft);
}

/* Shop mega-menu */
.nav-shop { position: relative; }

.nav-shop__trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: none;
    font-family: var(--font-sans);
    color: var(--color-text-muted);
    font-size: 0.92rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.nav-shop__trigger:hover,
.nav-shop.is-open .nav-shop__trigger {
    color: var(--color-accent);
    background: var(--color-accent-soft);
}

.nav-shop__trigger svg { transition: transform 0.15s ease; }
.nav-shop.is-open .nav-shop__trigger svg { transform: rotate(180deg); }

.nav-shop__panel {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 1.25rem;
    min-width: 620px;
    max-width: 720px;
}

.nav-shop.is-open .nav-shop__panel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem 2rem; }

.nav-shop__group h3 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.nav-shop__group a {
    display: block;
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.9rem;
    padding: 0.3rem 0;
}

.nav-shop__group a:hover { color: var(--color-accent); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-left: auto;
}

.cart-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.92rem;
    background: var(--color-surface-alt);
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    transition: background 0.15s ease;
}

.cart-link:hover { background: var(--color-border); }

.cart-badge {
    background: var(--color-accent);
    color: var(--color-accent-contrast);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    min-width: 1.2rem;
    text-align: center;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 500;
}

.user-chip img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
}

.avatar-fallback {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-accent-soft);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.78rem;
}

/* User account dropdown */
.nav-user { position: relative; }

.user-chip--trigger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.3rem 0.5rem;
    border-radius: 999px;
    font-family: var(--font-sans);
    transition: background 0.15s ease;
}

.user-chip--trigger:hover,
.nav-user.is-open .user-chip--trigger { background: var(--color-surface-alt); }

.user-chip--trigger svg { color: var(--color-text-muted); transition: transform 0.15s ease; }
.nav-user.is-open .user-chip--trigger svg { transform: rotate(180deg); }

.nav-user__panel {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    min-width: 200px;
}

.nav-user.is-open .nav-user__panel { display: block; }

.nav-user__panel a,
.nav-user__panel button {
    display: block;
    width: 100%;
    text-align: left;
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-sm);
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
}

.nav-user__panel a:hover,
.nav-user__panel button:hover { background: var(--color-surface-alt); }

.nav-user__panel form { margin: 0; }

.btn-google {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.btn-google:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--color-text-muted);
}

main { padding: 0 0 4rem; }

/* ---------------------------------------------------------------
   Hero
   --------------------------------------------------------------- */
.hero {
    background-color: var(--color-surface-alt);
    background-image:
        radial-gradient(circle at 88% 12%, var(--color-border) 0%, transparent 42%),
        radial-gradient(circle at 6% 92%, var(--color-border) 0%, transparent 38%),
        linear-gradient(180deg, var(--color-surface-alt) 0%, var(--color-bg) 100%);
    border-bottom: 1px solid var(--color-border);
    padding: 4.5rem 0;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--color-border) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.6;
    mask-image: radial-gradient(ellipse 70% 60% at 80% 20%, #000 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 80% 20%, #000 0%, transparent 70%);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    max-width: 640px;
}

.hero .eyebrow { color: var(--color-accent); }

.hero h1 {
    font-size: clamp(2.25rem, 4.5vw, 3.4rem);
    color: var(--color-text);
    max-width: 16ch;
}

.hero .lede {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 46ch;
    margin-bottom: 1.75rem;
}

.hero__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ---------------------------------------------------------------
   Value props strip
   --------------------------------------------------------------- */
.value-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.value-prop { display: flex; gap: 0.9rem; align-items: flex-start; }

.value-prop__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-accent-soft);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.value-prop h3 { font-family: var(--font-sans); font-size: 0.95rem; font-weight: 700; margin-bottom: 0.15rem; }
.value-prop p { color: var(--color-text-muted); font-size: 0.86rem; margin: 0; }

/* ---------------------------------------------------------------
   Section headers (landing page)
   --------------------------------------------------------------- */
.section {
    margin: 3.5rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.section-header h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin: 0; }
.section-header .lede { margin: 0.35rem 0 0; font-size: 0.95rem; }
.section-header a { color: var(--color-accent); text-decoration: none; font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
.section-header a:hover { text-decoration: underline; }

/* Category showcase cards on the landing page */
.category-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
}

.category-card {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    display: flex;
    align-items: flex-end;
    background: var(--color-surface-alt);
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover img { transform: scale(1.05); }

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20,16,12,0.75), rgba(20,16,12,0) 60%);
}

.category-card__label {
    position: relative;
    color: #fff;
    padding: 1rem;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
}

/* About / trust section */
.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-split img {
    border-radius: var(--radius-lg);
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.about-split h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

/* Newsletter / contact CTA band */
.cta-band {
    background: #111110;
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 3rem;
    text-align: center;
}

.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.75); max-width: 50ch; margin: 0 auto 1.5rem; }

.cta-band form {
    display: flex;
    gap: 0.6rem;
    max-width: 420px;
    margin: 0 auto;
}

.cta-band input[type=email] {
    flex: 1;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
}

.cta-band input[type=email]::placeholder { color: rgba(255,255,255,0.5); }

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.testimonial {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.testimonial p { font-family: var(--font-display); font-size: 1.05rem; font-style: italic; margin: 0 0 1rem; }
.testimonial cite { font-style: normal; font-size: 0.85rem; color: var(--color-text-muted); font-weight: 600; }

.page-header {
    margin: 2.5rem 0 2rem;
}

.page-header h1 {
    font-size: clamp(1.9rem, 3vw, 2.6rem);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.lede {
    color: var(--color-text-muted);
    font-size: 1.02rem;
    max-width: 60ch;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.breadcrumbs a { color: var(--color-text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--color-accent); }
.breadcrumbs .sep { opacity: 0.5; }

/* ---------------------------------------------------------------
   Flash messages
   --------------------------------------------------------------- */
.flash {
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-size: 0.92rem;
    font-weight: 500;
}

.flash-message { background: var(--color-success-soft); color: var(--color-success); }
.flash-error { background: var(--color-danger-soft); color: var(--color-danger); }

/* ---------------------------------------------------------------
   Category pills
   --------------------------------------------------------------- */
.category-pills {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.category-pill {
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 0.45rem 1rem;
    border-radius: 999px;
    transition: all 0.15s ease;
}

.category-pill:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.category-pill.is-active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-accent-contrast);
}

/* ---------------------------------------------------------------
   Product grid & cards
   --------------------------------------------------------------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.5rem;
}

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

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-text-muted);
}

.product-card__media {
    aspect-ratio: 1 / 1;
    background: var(--color-surface-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card__media .placeholder {
    color: var(--color-text-muted);
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 600;
    opacity: 0.5;
}

.product-card__body {
    padding: 1.1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}

.product-card__category {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
}

.product-card__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.08rem;
    text-decoration: none;
    color: var(--color-text);
}

.product-card__desc {
    color: var(--color-text-muted);
    font-size: 0.88rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    flex: 1;
}

.product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.price {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.15rem;
}

.price-currency {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-left: 0.15rem;
}

/* ---------------------------------------------------------------
   Status badges (orders)
   --------------------------------------------------------------- */
.status-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
}

.status-badge--muted { background: var(--color-surface-alt); color: var(--color-text-muted); }
.status-badge--accent { background: var(--color-accent-soft); color: var(--color-accent); }
.status-badge--success { background: var(--color-success-soft); color: var(--color-success); }
.status-badge--danger { background: var(--color-danger-soft); color: var(--color-danger); }

/* ---------------------------------------------------------------
   Order list / detail
   --------------------------------------------------------------- */
.order-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.4rem;
    text-decoration: none;
    color: var(--color-text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.order-card:hover { border-color: var(--color-text-muted); box-shadow: var(--shadow-sm); }

.order-card__id { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; }
.order-card__meta { color: var(--color-text-muted); font-size: 0.85rem; margin-top: 0.2rem; }
.order-card__amount { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; text-align: right; }

.order-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.order-detail-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.order-detail-card h3 { font-size: 0.95rem; margin-bottom: 1rem; }

.order-item-row {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.92rem;
}

.order-item-row:last-child { border-bottom: none; }

.order-timeline {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ---------------------------------------------------------------
   Pagination
   --------------------------------------------------------------- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 3rem;
}

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.6rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.pagination a:hover { background: var(--color-surface-alt); color: var(--color-text); }
.pagination .is-active { background: var(--color-accent); color: var(--color-accent-contrast); }

/* ---------------------------------------------------------------
   Buttons & forms
   --------------------------------------------------------------- */
button, .btn {
    font-family: var(--font-sans);
    background: var(--color-accent);
    color: var(--color-accent-contrast);
    border: none;
    padding: 0.65rem 1.2rem;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: background 0.15s ease, transform 0.1s ease;
}

button:hover, .btn:hover { background: var(--color-accent-hover); }
button:active, .btn:active { transform: scale(0.98); }
button:disabled, .btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-outline:hover {
    background: var(--color-surface-alt);
    border-color: var(--color-text-muted);
}

.btn-light {
    background: #fff;
    color: #111110;
}

.btn-light:hover { background: #ececec; }

.btn-block { width: 100%; }
.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.82rem; }

.btn-icon {
    background: transparent;
    color: var(--color-text-muted);
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-sm);
}

.btn-icon:hover { background: var(--color-danger-soft); color: var(--color-danger); }

input[type=number], input[type=text], input[type=email] {
    font-family: var(--font-sans);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.45rem 0.65rem;
    font-size: 0.9rem;
    background: var(--color-surface);
    color: var(--color-text);
}

input[type=number] { width: 64px; }

textarea {
    font-family: var(--font-sans);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.7rem;
    font-size: 0.92rem;
    background: var(--color-surface);
    color: var(--color-text);
    width: 100%;
    resize: vertical;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    max-width: 480px;
}

.admin-form label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.admin-form input, .admin-form textarea, .admin-form select {
    width: 100%;
}

/* ---------------------------------------------------------------
   Cart table
   --------------------------------------------------------------- */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.cart-table th, .cart-table td {
    text-align: left;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.92rem;
}

.cart-table th {
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--color-surface-alt);
}

.cart-table tr:last-child td { border-bottom: none; }

.cart-product {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.cart-product__thumb {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: var(--color-surface-alt);
    overflow: hidden;
    flex-shrink: 0;
}

.cart-product__thumb img { width: 100%; height: 100%; object-fit: cover; }

.qty-form {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
}

.cart-summary {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    font-size: 1.2rem;
}

.cart-summary strong {
    font-family: var(--font-display);
    font-size: 1.5rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--color-text-muted);
}

.empty-state h2 {
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

/* ---------------------------------------------------------------
   Product detail page
   --------------------------------------------------------------- */
.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
}

.product-gallery__main {
    aspect-ratio: 1 / 1;
    background: var(--color-surface-alt);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-gallery__main img { width: 100%; height: 100%; object-fit: cover; }

.product-gallery__thumbs {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.product-gallery__thumbs img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    cursor: pointer;
}

.variant-select {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1.25rem 0;
}

.variant-select label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.variant-select select {
    font-family: var(--font-sans);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.75rem;
    font-size: 0.92rem;
    background: var(--color-surface);
    color: var(--color-text);
}

/* ---------------------------------------------------------------
   Pickup point picker
   --------------------------------------------------------------- */
.pickup-point-picker {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.pickup-point-picker__header {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.1rem;
}

.pickup-point-picker__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-accent-soft);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pickup-point-picker__header h2 {
    font-size: 1.05rem;
    margin: 0;
}

.pickup-point-picker__header p {
    margin: 0.15rem 0 0;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.pickup-point-search {
    position: relative;
    display: flex;
    align-items: center;
}

.pickup-point-search__icon {
    position: absolute;
    left: 0.85rem;
    color: var(--color-text-muted);
    pointer-events: none;
}

.pickup-point-search input {
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.7rem 0.9rem 0.7rem 2.5rem;
    font-size: 0.94rem;
    font-family: var(--font-sans);
    background: var(--color-surface-alt);
    color: var(--color-text);
    transition: border-color 0.15s ease, background 0.15s ease;
}

.pickup-point-search input:focus {
    outline: none;
    border-color: var(--color-accent);
    background: var(--color-surface);
}

.pickup-point-results {
    margin-top: 0.6rem;
    max-height: 320px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.pickup-point-result {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.85rem;
    cursor: pointer;
    font-family: var(--font-sans);
    color: var(--color-text);
    width: 100%;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.pickup-point-result:hover { border-color: var(--color-accent); background: var(--color-surface); }

.pickup-point-result__icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-surface);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pickup-point-result__text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.pickup-point-result__text strong {
    font-size: 0.9rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pickup-point-result__text span {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pickup-point-result mark {
    background: var(--color-accent-soft);
    color: var(--color-accent);
    border-radius: 2px;
    padding: 0 1px;
}

.pickup-point-result--empty,
.pickup-point-result--loading {
    cursor: default;
    color: var(--color-text-muted);
    text-align: center;
    justify-content: center;
    font-size: 0.85rem;
}

.pickup-point-result--empty:hover,
.pickup-point-result--loading:hover { border-color: var(--color-border); background: var(--color-surface-alt); }

.pickup-point-selected {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: var(--color-success-soft);
    border-radius: var(--radius-sm);
    padding: 0.9rem 1.1rem;
}

.pickup-point-selected__check {
    color: var(--color-success);
    flex-shrink: 0;
}

.pickup-point-selected__body { flex: 1; min-width: 0; }

.pickup-point-selected__label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-success);
    font-weight: 700;
}

.pickup-point-selected__name { font-weight: 600; }

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */
.site-footer {
    border-top: 1px solid var(--color-border);
    padding: 3rem 0 2rem;
    margin-top: 3rem;
    color: var(--color-text-muted);
    font-size: 0.88rem;
    background: var(--color-surface-alt);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer-grid .brand { display: inline-block; margin-bottom: 0.6rem; }
.footer-grid p { max-width: 32ch; }

.footer-grid h4 {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.footer-grid a {
    display: block;
    text-decoration: none;
    color: var(--color-text-muted);
    padding: 0.2rem 0;
}

.footer-grid a:hover { color: var(--color-accent); }

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.82rem;
}

/* ---------------------------------------------------------------
   Static content pages (about / contact)
   --------------------------------------------------------------- */
.prose { max-width: 70ch; }
.prose p { margin: 0 0 1.1rem; color: var(--color-text-muted); }
.prose h2 { margin-top: 2rem; }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-card {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--color-accent-soft);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-card h3 { font-family: var(--font-sans); font-size: 0.95rem; margin-bottom: 0.2rem; }
.contact-card p { margin: 0; color: var(--color-text-muted); font-size: 0.92rem; }

/* ---------------------------------------------------------------
   Responsive
   --------------------------------------------------------------- */
@media (max-width: 900px) {
    .about-split { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .site-header__inner { flex-wrap: wrap; }
    .site-nav { display: none; }
    .nav-shop__panel { min-width: 280px; grid-template-columns: 1fr !important; }
    .product-detail { grid-template-columns: 1fr; gap: 1.5rem; }
    .cart-table thead { display: none; }
    .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
    .cart-table tr { padding: 0.75rem 0; }
    .cart-table td { border: none; padding: 0.35rem 1.25rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .value-strip { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------
   Add-to-cart animation & toasts
   --------------------------------------------------------------- */
.fly-to-cart {
    position: fixed;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-accent);
    z-index: 999;
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.55, 0, 1, 0.45), opacity 0.5s ease-in;
    opacity: 1;
}

.cart-link { transition: transform 0.15s ease; }
.cart-link--bump { transform: scale(1.15); }

.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: flex-end;
}

.toast {
    background: var(--color-text);
    color: var(--color-bg);
    padding: 0.75rem 1.1rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    max-width: 320px;
}

.toast--visible { opacity: 1; transform: translateY(0); }

.toast--error { background: #b3261e; color: #fff; }

@media (max-width: 480px) {
    .toast-container { left: 1rem; right: 1rem; align-items: stretch; }
    .toast { max-width: none; }
}
