/* =====================================================================
   FOZZY THEME — style.css
   Soft, cozy, handmade aesthetic. Mobile-first.
   ===================================================================== */

:root {
    --bg:           #fcf9f2;
    --bg-soft:      #f7efe8;
    --surface:      #ffffff;
    --border:       #efe3d5;
    --text:         #2e2b27;
    --text-muted:   #8c7f70;
    --brand:        #a97760;
    --brand-dark:   #7a5c44;
    --brand-soft:   #e7d9cb;
    --success:      #3f8a63;
    --success-bg:   #e5f4ec;
    --warning:      #b98900;
    --warning-bg:   #fff5d6;
    --danger:       #c04a4a;
    --danger-bg:    #fdeaea;
    --info:         #4b6ea8;
    --info-bg:      #e7eefb;

    --radius:       14px;
    --radius-sm:    8px;
    --radius-lg:    22px;
    --shadow-sm:    0 2px 6px rgba(0,0,0,.04);
    --shadow:       0 8px 20px rgba(0,0,0,.06);
    --shadow-lg:    0 20px 40px rgba(0,0,0,.08);

    --font: 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand-dark); text-decoration: none; }
a:hover { color: var(--brand); }

/* ---------- LAYOUT ---------- */
.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.25rem;
}
.container.narrow { max-width: 640px; }
.text-center { text-align: center; }

.site-main { min-height: 60vh; padding-bottom: 3rem; }

/* ---------- HEADER ---------- */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-weight: 700;
    color: var(--brand-dark);
    font-size: 1.15rem;
}
.brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--brand-soft);
}

.main-nav {
    display: flex;
    gap: 1.5rem;
    font-size: .95rem;
    font-weight: 500;
}
.main-nav a {
    color: var(--text);
    padding: .25rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color .15s;
}
.main-nav a:hover { border-bottom-color: var(--brand); color: var(--brand-dark); }

.header-actions {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.icon-link {
    position: relative;
    font-size: 1.35rem;
    padding: .25rem .4rem;
    color: var(--brand-dark);
}
.cart-count {
    position: absolute;
    top: -2px;
    right: -6px;
    background: var(--brand);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    border-radius: 9px;
    padding: 0 5px;
    text-align: center;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .9rem;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .7rem 1.15rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 600;
    font-size: .95rem;
    line-height: 1;
    transition: transform .1s, background .15s, box-shadow .15s;
    text-decoration: none;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
    background: var(--brand);
    color: #fff;
}
.btn-primary:hover { background: var(--brand-dark); color: #fff; }

.btn-ghost {
    background: transparent;
    color: var(--brand-dark);
    border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg-soft); color: var(--brand-dark); }

.btn-disabled, .btn:disabled {
    background: #e6e0d8;
    color: #a89b8a;
    cursor: not-allowed;
}

.btn-block { width: 100%; }
.btn-sm { padding: .45rem .85rem; font-size: .85rem; }

.link-more {
    font-size: .9rem;
    color: var(--brand-dark);
    font-weight: 600;
}
.link-more:hover { color: var(--brand); }

.link-danger {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: .9rem;
    font-weight: 600;
    padding: 0;
}
.link-danger:hover { text-decoration: underline; }

/* ---------- ALERTS ---------- */
.alert {
    padding: .85rem 1.1rem;
    border-radius: var(--radius-sm);
    margin: 1rem 0;
    font-size: .93rem;
    border: 1px solid transparent;
}
.alert-success { background: var(--success-bg); color: var(--success); border-color: #c5e5d4; }
.alert-error   { background: var(--danger-bg);  color: var(--danger);  border-color: #f2c7c7; }

/* ---------- CARDS ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.card h2 { font-size: 1.15rem; margin-bottom: 1rem; }
.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

/* ---------- HERO ---------- */
.hero {
    background: linear-gradient(135deg, #fbeadf 0%, #f5e2d0 100%);
    padding: 3rem 0 3.5rem;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 2rem;
}
.hero-badge {
    display: inline-block;
    background: var(--brand-soft);
    color: var(--brand-dark);
    padding: .3rem .9rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 1rem;
}
.hero h1 {
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    line-height: 1.15;
    margin-bottom: .85rem;
    color: var(--brand-dark);
}
.hero p { color: #6a5c4f; font-size: 1.05rem; margin-bottom: 1.5rem; }
.hero-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}
.hero-actions.center { justify-content: center; }
.hero-art {
    font-size: 8rem;
    text-align: center;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,.1));
}

/* ---------- SECTION ---------- */
.section { padding: 2.5rem 0; }
.section-soft { background: var(--bg-soft); }
.section-title { font-size: 1.5rem; margin-bottom: 1.5rem; color: var(--brand-dark); }
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.section-head .section-title { margin-bottom: 0; }

.page-head { margin-bottom: 2rem; }
.page-head h1 { font-size: 1.75rem; color: var(--brand-dark); }
.muted { color: var(--text-muted); }
.small { font-size: .85rem; }

/* ---------- CATEGORY GRID ---------- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}
.category-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    padding: 2rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-weight: 600;
    color: var(--brand-dark);
    transition: transform .15s, box-shadow .15s;
}
.category-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    color: var(--brand);
}
.tile-emoji { font-size: 2.4rem; }
.tile-name { font-size: 1rem; }

/* ---------- PRODUCT GRID ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}
.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .15s, box-shadow .15s;
}
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.product-thumb {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-soft);
    display: block;
}
.product-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.product-card:hover .product-thumb img { transform: scale(1.05); }

.product-body {
    padding: .9rem 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    flex: 1;
}
.product-cat {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--brand);
    font-weight: 700;
}
.product-name {
    font-size: .98rem;
    font-weight: 600;
    line-height: 1.3;
}
.product-name a { color: var(--text); }
.product-name a:hover { color: var(--brand-dark); }

.product-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: .5rem;
}
.price { font-weight: 700; color: var(--brand-dark); }
.stock { font-size: .78rem; }
.stock.ok { color: var(--success); }
.stock.out { color: var(--danger); }

.product-actions { margin-top: .6rem; }

/* ---------- FILTER TABS ---------- */
.filter-tabs {
    display: flex;
    gap: .4rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}
.tab {
    padding: .5rem 1.1rem;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--brand-dark);
    font-weight: 600;
    font-size: .9rem;
}
.tab:hover { background: var(--bg-soft); }
.tab.active {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

/* ---------- PAGINATION ---------- */
.pagination {
    display: flex;
    justify-content: center;
    gap: .35rem;
    margin-top: 2rem;
}
.page-link {
    padding: .5rem .85rem;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--brand-dark);
    font-weight: 600;
    font-size: .9rem;
}
.page-link:hover { background: var(--bg-soft); }
.page-link.active {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

/* ---------- BREADCRUMB ---------- */
.breadcrumb {
    font-size: .87rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb strong { color: var(--text); }

/* ---------- PRODUCT DETAIL ---------- */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
}
.product-detail-image {
    background: var(--bg-soft);
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1;
}
.product-detail-image img {
    width: 100%; height: 100%; object-fit: cover;
}
.product-detail-info {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.product-detail-info h1 { font-size: 1.75rem; color: var(--brand-dark); }
.price-lg { font-size: 1.75rem; font-weight: 700; color: var(--brand-dark); }
.product-description { color: var(--text); line-height: 1.7; margin-top: .5rem; }

.add-to-cart-form {
    display: flex;
    align-items: end;
    gap: .75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}
.qty-label {
    display: flex;
    flex-direction: column;
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-muted);
    gap: .25rem;
}
.qty-label input {
    width: 80px;
    padding: .55rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
}

/* ---------- CART ---------- */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.5rem;
    align-items: start;
}
.cart-items { display: flex; flex-direction: column; gap: .85rem; }

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto auto;
    gap: .9rem;
    align-items: center;
    padding: .9rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.cart-item-thumb {
    width: 80px; height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-soft);
}
.cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info h3 { font-size: .98rem; }
.cart-item-info .muted { font-size: .8rem; display: block; }
.cart-item-info .price { font-size: .88rem; }
.cart-item-qty input {
    width: 60px;
    padding: .45rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    text-align: center;
}
.cart-item-line { font-weight: 700; color: var(--brand-dark); }
.cart-item-remove button {
    font-size: 1.4rem;
    line-height: 1;
    padding: 0 .3rem;
}

.cart-summary {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 100px;
}
.cart-summary h2 { font-size: 1.1rem; margin-bottom: 1rem; }

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: .5rem 0;
    font-size: .93rem;
}
.summary-row.total {
    border-top: 2px solid var(--border);
    margin-top: .5rem;
    padding-top: .75rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--brand-dark);
}
.cart-summary .btn-block { margin-top: 1rem; }
.cart-summary .link-more { display: block; text-align: center; margin-top: .75rem; }

/* ---------- EMPTY STATE ---------- */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}
.empty-emoji { font-size: 3.5rem; margin-bottom: .5rem; }
.empty-state h2 { margin-bottom: .5rem; color: var(--brand-dark); }
.empty-state .btn { margin-top: 1.25rem; }

/* ---------- CHECKOUT ---------- */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 1.5rem;
    align-items: start;
}
.checkout-main { display: flex; flex-direction: column; gap: 1.25rem; }
.checkout-summary { position: sticky; top: 100px; }

.field {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    margin-bottom: .9rem;
}
.field label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-muted);
}
.field input,
.field select,
.field textarea {
    padding: .7rem .85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-family: inherit;
    font-size: .95rem;
    color: var(--text);
    transition: border-color .15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--brand);
}
.field textarea { resize: vertical; }

.coupon-row {
    display: flex;
    gap: .5rem;
}
.coupon-row input {
    flex: 1;
    padding: .65rem .85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
}
.coupon-applied {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .75rem 1rem;
    background: var(--success-bg);
    border-radius: var(--radius-sm);
    color: var(--success);
    border: 1px solid #c5e5d4;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.payment-option {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .8rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    background: var(--surface);
    font-weight: 500;
}
.payment-option input { accent-color: var(--brand); }
.payment-option:hover { background: var(--bg-soft); }

.error-text { color: var(--danger); font-size: .87rem; margin-bottom: .5rem; }

.summary-items {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    border-bottom: 1px dashed var(--border);
    padding-bottom: .75rem;
}
.summary-items li {
    display: flex;
    justify-content: space-between;
    font-size: .9rem;
    padding: .2rem 0;
}

/* ---------- ORDER SUCCESS ---------- */
.order-success-head {
    text-align: center;
    padding: 2rem 1rem 2.5rem;
}
.success-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--success-bg);
    color: var(--success);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.order-success-head h1 { color: var(--brand-dark); margin-bottom: .35rem; }

.order-success-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 1.5rem;
    margin: 1rem 0 1.5rem;
}
.detail-grid.one { grid-template-columns: 1fr; }
.detail-grid > div { display: flex; flex-direction: column; gap: .15rem; }
.detail-grid .label {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
    font-weight: 700;
}
.detail-grid .value { font-weight: 600; }

.order-items {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    border-top: 1px dashed var(--border);
    border-bottom: 1px dashed var(--border);
    padding: .75rem 0;
}
.order-items li {
    display: flex;
    justify-content: space-between;
    padding: .3rem 0;
    font-size: .93rem;
}

.totals { margin-top: 1rem; }

/* ---------- BADGES ---------- */
.badge {
    display: inline-block;
    padding: .25rem .65rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .02em;
    background: var(--bg-soft);
    color: var(--text-muted);
}
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger  { background: var(--danger-bg);  color: var(--danger); }
.badge-info    { background: var(--info-bg);    color: var(--info); }

.badge-line {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
    align-items: center;
}

/* ---------- AUTH ---------- */
.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}
.auth-card h1 { font-size: 1.6rem; color: var(--brand-dark); margin-bottom: .3rem; }
.auth-form { margin-top: 1.25rem; }
.auth-alt { text-align: center; margin-top: 1rem; font-size: .9rem; }

/* ---------- ACCOUNT ---------- */
.account-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 1.5rem;
    align-items: start;
}
.account-main { display: flex; flex-direction: column; gap: 1.25rem; }

.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
}
.quick-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    padding: 1.25rem .75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--brand-dark);
    font-weight: 600;
    font-size: .9rem;
    text-align: center;
}
.quick-card .emoji { font-size: 1.6rem; }
.quick-card:hover { background: var(--bg-soft); color: var(--brand); }

.mini-orders { list-style: none; padding: 0; margin: 0; }
.mini-orders li { border-top: 1px solid var(--border); }
.mini-orders li:first-child { border-top: none; }
.mini-orders a {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: .75rem;
    align-items: center;
    padding: .85rem 0;
    color: var(--text);
}
.mini-orders a:hover { color: var(--brand-dark); }
.order-num { font-weight: 700; }
.order-date { font-size: .82rem; color: var(--text-muted); }
.order-total { font-weight: 700; color: var(--brand-dark); }

/* ---------- ORDERS LIST ---------- */
.orders-list { display: flex; flex-direction: column; gap: 1rem; }
.order-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}
.order-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: .75rem;
    border-bottom: 1px dashed var(--border);
    margin-bottom: .75rem;
}
.order-card-total { font-weight: 700; color: var(--brand-dark); font-size: 1.05rem; }
.order-card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ---------- ORDER DETAIL ---------- */
.order-detail-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.5rem;
    align-items: start;
}
.order-side { position: sticky; top: 100px; }

/* ---------- QR ---------- */
.qr-wrap {
    display: flex;
    justify-content: center;
    padding: 1rem;
    background: var(--bg-soft);
    border-radius: var(--radius-sm);
    margin-bottom: .5rem;
}
.qr-wrap img { width: 220px; height: 220px; }
.qr-code-text {
    text-align: center;
    font-size: 1.15rem;
    letter-spacing: .1em;
    font-weight: 700;
    color: var(--brand-dark);
}
.qr-code-text code {
    background: var(--brand-soft);
    padding: .35rem .75rem;
    border-radius: var(--radius-sm);
}

/* ---------- TIMELINE ---------- */
.timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}
.timeline li {
    position: relative;
    padding-left: 1.5rem;
    padding-bottom: 1rem;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline .dot {
    position: absolute;
    left: 0;
    top: .35rem;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}
.timeline li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 1.1rem;
    bottom: -0.5rem;
    width: 2px;
    background: var(--border);
}
.timeline li:last-child::before { display: none; }
.timeline strong { display: block; font-size: .9rem; }
.timeline .muted { font-size: .82rem; }

.proof-thumb {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    max-width: 100%;
}

/* ---------- PAYMENT UPLOAD FORM ---------- */
.payment-upload-form {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-bottom: 1rem;
}
.payment-upload-form label {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-muted);
}
.payment-upload-form input[type="text"],
.payment-upload-form input[type="file"] {
    padding: .55rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: .9rem;
    background: var(--surface);
}

/* ---------- QRPH ---------- */
.qrph-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    max-width: 520px;
    margin: 2rem auto;
    box-shadow: var(--shadow-sm);
}
.qrph-wrap h1 { color: var(--brand-dark); margin-bottom: .5rem; }
.qrph-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin: 1rem 0 1.5rem;
}
.qrph-image {
    display: flex;
    justify-content: center;
    padding: 1rem;
    background: var(--bg-soft);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}
.qrph-image img { width: 260px; height: 260px; }
.qrph-placeholder {
    padding: 3rem 1rem;
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    margin: 1rem 0;
}

/* ---------- STATIC PAGE ---------- */
.static-page h1 { color: var(--brand-dark); margin-bottom: 1rem; }
.static-content { line-height: 1.75; }
.static-content p { margin-bottom: 1rem; }
.static-content a { text-decoration: underline; }

/* ---------- 404 ---------- */
.big-404 {
    font-size: 6rem;
    color: var(--brand-soft);
    line-height: 1;
    margin-bottom: .5rem;
}

/* ---------- SCHOOL PILLS ---------- */
.school-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.pill {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--brand-dark);
    padding: .4rem 1rem;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
}

/* ---------- FOOTER ---------- */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    margin-top: 3rem;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2rem;
    padding: 2.5rem 1.25rem;
}
.footer-col h4 {
    font-size: 1rem;
    color: var(--brand-dark);
    margin-bottom: .6rem;
}
.footer-col p { color: var(--text-muted); font-size: .9rem; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: .4rem; }
.footer-col a { color: var(--text-muted); font-size: .9rem; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 1rem 0;
    text-align: center;
    font-size: .82rem;
    color: var(--text-muted);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-art { font-size: 5rem; }
    .product-detail { grid-template-columns: 1fr; gap: 1.5rem; }
    .cart-layout,
    .checkout-layout,
    .account-layout,
    .order-success-layout,
    .order-detail-layout { grid-template-columns: 1fr; }
    .cart-summary,
    .checkout-summary,
    .order-side { position: static; }
    .main-nav { display: none; }
    .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .header-inner { flex-wrap: wrap; }
    .quick-actions { grid-template-columns: 1fr; }
    .cart-item {
        grid-template-columns: 60px 1fr;
        grid-template-areas:
            "thumb info"
            "qty   line"
            "rm    rm";
        row-gap: .5rem;
    }
    .cart-item-thumb { grid-area: thumb; width: 60px; height: 60px; }
    .cart-item-info  { grid-area: info; }
    .cart-item-qty   { grid-area: qty; }
    .cart-item-line  { grid-area: line; text-align: right; }
    .cart-item-remove { grid-area: rm; text-align: right; }
    .mini-orders a { grid-template-columns: 1fr auto; row-gap: .3rem; }
    .order-card-head { flex-wrap: wrap; gap: .4rem; }
}