body {
    background: #f5f8fc;
    color: #172033;
    font-family: var(--brand-font);
    padding-bottom: 68px;
}

.brand-word { color: var(--brand-primary); letter-spacing: 0; }
.btn-brand { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; box-shadow: 0 10px 22px rgba(11, 78, 162, .18); }
.btn-brand:hover { background: #083f84; border-color: #083f84; color: #fff; }
.btn-gold { background: var(--brand-secondary); border-color: var(--brand-secondary); color: #fff; font-weight: 800; box-shadow: 0 12px 24px rgba(215, 25, 32, .18); }
.btn-gold:hover { background: #b9151b; border-color: #b9151b; color: #fff; }
.btn-outline-brand { border-color: var(--brand-primary); color: var(--brand-primary); }
.btn-outline-brand:hover { background: var(--brand-primary); color: #fff; }
.eyebrow { color: var(--brand-secondary); font-size: .76rem; font-weight: 900; text-transform: uppercase; }

.hero-band {
    background: linear-gradient(135deg, #ffffff 0%, #eef5ff 100%);
    border-bottom: 1px solid #dfe7f1;
}

.featured-image, .product-image {
    width: 100%;
    object-fit: cover;
    background: #e9eef5;
}

.featured-image { height: min(56vh, 520px); border-radius: 8px; box-shadow: 0 22px 50px rgba(11, 78, 162, .14); }
.product-image { height: 210px; border-radius: 8px 8px 0 0; }

.price-now { color: var(--brand-primary); font-weight: 800; font-size: clamp(1.4rem, 3vw, 2.4rem); }
.price-was { color: #7a8496; text-decoration: line-through; }

.countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(58px, 1fr));
    gap: .5rem;
}

.countdown span {
    background: #ffffff;
    border: 1px solid #d7e4f5;
    border-radius: 8px;
    padding: .7rem .45rem;
    text-align: center;
    min-width: 0;
}

.countdown strong { display: block; color: var(--brand-secondary); font-size: 1.15rem; }
.countdown small { color: #68758a; font-weight: 600; }

.product-card {
    border: 1px solid #dfe7f1;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
}

.product-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(8, 35, 74, .1); }
.stock-meter { height: 8px; background: #e7edf5; border-radius: 999px; overflow: hidden; }
.stock-meter > span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-secondary), var(--brand-primary)); }

.checkout-panel, .auth-card, .metric-card {
    background: #fff;
    border: 1px solid #dce6f3;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(21, 46, 86, .06);
}

.form-control, .form-select { border-radius: 8px; min-height: 46px; }
.input-group .btn { border-radius: 0 8px 8px 0; }

.product-type-badge {
    background: rgba(11, 78, 162, .09);
    color: var(--brand-primary);
    border: 1px solid rgba(11, 78, 162, .16);
}

.availability-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: #0f5f33;
    background: #eaf8ef;
    border: 1px solid #cfeedd;
    border-radius: 999px;
    padding: .48rem .75rem;
    font-weight: 800;
    font-size: .85rem;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: .82rem 0;
    border-top: 1px solid #e6edf7;
}

.order-form {
    position: relative;
    overflow: hidden;
}

.order-form::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
}

.form-heading {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin-bottom: .7rem;
}

.form-heading > span {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #eef5ff;
    color: var(--brand-primary);
    font-size: 1.3rem;
}

.field-tile {
    display: grid;
    gap: .4rem;
    background: #f8fbff;
    border: 1px solid #dce7f6;
    border-radius: 8px;
    padding: .78rem .9rem;
    height: 100%;
}

.field-tile:focus-within {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 .2rem rgba(11, 78, 162, .1);
    background: #fff;
}

.field-tile span {
    color: #5d6a7d;
    font-size: .78rem;
    font-weight: 800;
}

.field-tile span strong {
    color: var(--brand-secondary);
    font-weight: 900;
}

.field-tile input {
    border: 0;
    outline: 0;
    background: transparent;
    color: #172033;
    font-weight: 700;
    width: 100%;
}

.powered-note {
    text-align: center;
    color: #69788e;
    font-size: .82rem;
    font-weight: 800;
}

.segmented {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .4rem;
    background: #eef4fb;
    padding: .35rem;
    border-radius: 8px;
}

.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span {
    display: block;
    text-align: center;
    padding: .6rem .45rem;
    border-radius: 7px;
    font-size: .85rem;
    font-weight: 800;
    color: #617087;
}
.segmented input:checked + span {
    color: #fff;
    background: var(--brand-primary);
    box-shadow: 0 8px 18px rgba(11, 78, 162, .18);
}

.mobile-footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: none;
    grid-template-columns: repeat(2, 1fr);
    background: #fff;
    border-top: 1px solid #dfe7f1;
    z-index: 1030;
}

.mobile-footer-nav a {
    color: #5c687b;
    text-decoration: none;
    text-align: center;
    padding: .55rem .25rem;
    font-size: .72rem;
    font-weight: 700;
}

.mobile-footer-nav i { display: block; font-size: 1.15rem; color: var(--brand-primary); }

.admin-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.admin-sidebar {
    background: #082653;
    color: #fff;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.admin-brand { color: #fff; text-decoration: none; font-size: 1.25rem; font-weight: 800; }
.admin-sidebar nav { display: grid; gap: .35rem; }
.admin-sidebar nav a {
    color: #d9e4f2;
    text-decoration: none;
    padding: .72rem .8rem;
    border-radius: 8px;
    font-weight: 700;
}
.admin-sidebar nav a.active, .admin-sidebar nav a:hover { background: rgba(215,25,32,.2); color: #fff; }
.admin-user { margin-top: auto; display: grid; gap: .2rem; font-size: .85rem; color: #c8d4e6; }
.admin-user a { color: #ff777c; }
.admin-main { padding: 1.5rem; overflow-x: hidden; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.admin-topbar h1 { font-size: clamp(1.55rem, 3vw, 2.25rem); margin: 0; color: var(--brand-primary); }

.table-tools { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between; align-items: center; margin-bottom: .8rem; }
.table-condensed { font-size: .9rem; white-space: nowrap; }
.sortable { cursor: pointer; }
.mobile-card-list { display: none; }

@media (max-width: 768px) {
    body { padding-bottom: 72px; }
    .mobile-footer-nav { display: grid; }
    .featured-media { order: -1; }
    .featured-copy { order: 1; }
    .featured-image { height: 330px; border-radius: 0 0 8px 8px; }
    .hero-band { padding-top: 0 !important; }
    .hero-band .container { padding-left: 0; padding-right: 0; }
    .featured-copy { padding: 0 1rem 1rem; }
    .featured-copy .btn { width: 100%; margin: .35rem 0 0 !important; }
    .countdown { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .countdown span { padding: .55rem .25rem; }
    .countdown strong { font-size: 1rem; }
    .product-image { height: 185px; }
    .product-card { box-shadow: 0 10px 26px rgba(21,46,86,.07); }
    .checkout-panel { border-radius: 0; border-left: 0; border-right: 0; }
    .order-summary-card { margin-left: -12px; margin-right: -12px; }
    .order-form { margin-left: -12px; margin-right: -12px; }
    .field-tile { padding: .9rem; }
    .admin-shell { display: block; }
    .admin-sidebar { position: static; border-radius: 0; }
    .admin-sidebar nav { grid-template-columns: repeat(2, 1fr); }
    .admin-main { padding: 1rem; }
    .admin-topbar { align-items: flex-start; flex-direction: column; }
    .desktop-table { display: none; }
    .mobile-card-list { display: grid; gap: .75rem; }
}
