:root {
    --bg: #edf7f8;
    --bg-deep: #d8f3e6;
    --panel: rgba(255, 255, 255, 0.88);
    --panel-strong: #ffffff;
    --ink: #102098;
    --muted: #56627d;
    --accent: #1020a0;
    --accent-strong: #0b1b82;
    --accent-soft: #dff7ec;
    --sky-soft: #dbe9ff;
    --line: rgba(16, 32, 152, 0.12);
    --danger: #a13b3b;
    --shadow: 0 18px 48px rgba(16, 32, 152, 0.09);
    --shadow-soft: 0 10px 28px rgba(16, 32, 152, 0.06);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background:
        linear-gradient(115deg, rgba(200, 248, 224, 0.58), rgba(152, 192, 255, 0.42) 48%, rgba(255, 255, 255, 0.86)),
        linear-gradient(180deg, #fbfefd 0%, var(--bg) 52%, var(--bg-deep) 100%);
}

a {
    color: var(--accent-strong);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

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

.shell {
    width: min(1160px, calc(100% - 2rem));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: rgba(251, 254, 253, 0.84);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.nav-row,
.split,
.stats,
.grid,
.form-grid,
.toolbar,
.hero-grid,
.quick-links,
.mfa-setup-grid {
    display: grid;
    gap: 1rem;
}

.nav-row {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 1rem 0;
}

.nav-links {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links a {
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    color: var(--muted);
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.55);
    color: var(--ink);
}

.brand {
    display: inline-flex;
    align-items: center;
    width: fit-content;
}

.brand img {
    display: block;
    width: 182px;
    max-width: 46vw;
    height: auto;
    border-radius: 4px;
}

.cart-pill,
button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #fff;
    padding: 0.9rem 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.nav-links a.cart-pill {
    color: #fff;
}

.cart-pill:hover {
    background: #fff;
    color: var(--ink);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(16, 32, 152, 0.18);
}

.nav-links a.cart-pill:hover {
    color: var(--ink);
}

button:hover,
.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(16, 32, 152, 0.18);
}

.button.secondary,
button.secondary {
    background: var(--sky-soft);
    color: var(--ink);
}

.page {
    padding: 2rem 0 4rem;
}

.hero,
.card,
.table-card,
.flash {
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero,
.card,
.table-card {
    padding: 1.6rem;
}

.hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(223, 247, 236, 0.78), rgba(219, 233, 255, 0.72)),
        var(--panel);
}

.hero h1,
.hero h2,
.card h2,
.card h3 {
    margin-top: 0;
    line-height: 1.05;
}

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    margin-bottom: 1rem;
    max-width: 12ch;
    letter-spacing: 0;
}

.hero p {
    max-width: 58ch;
    color: var(--muted);
    font-size: 1.02rem;
}

.hero-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.eyebrow,
.badge {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 0.83rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.4rem;
}

.mini-panel {
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.2rem;
    box-shadow: var(--shadow-soft);
}

.mini-panel ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.mini-panel li + li {
    margin-top: 0.7rem;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin: 2rem 0 1rem;
}

.section-head h2,
.section-head h1 {
    margin: 0;
}

.section-head p {
    margin: 0.35rem 0 0;
    color: var(--muted);
}

.split {
    grid-template-columns: 2fr 1fr;
    align-items: start;
}

.stats {
    grid-template-columns: repeat(4, 1fr);
    margin: 1.5rem 0;
}

.stat {
    padding: 1.25rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 248, 245, 0.9));
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-soft);
}

.stat strong {
    display: block;
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.35rem;
}

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

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

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

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

.card {
    backdrop-filter: blur(10px);
}

.card-link {
    display: block;
    color: inherit;
}

.card-link:hover {
    transform: translateY(-2px);
}

.product-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 100%;
}

.product-card .meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.price {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: 0;
}

form {
    margin: 0;
}

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

.full {
    grid-column: 1 / -1;
}

label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.45rem;
    color: #18332b;
}

input,
textarea,
select {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    border: 1px solid #cbdad4;
    background: rgba(252, 254, 253, 0.92);
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: rgba(16, 32, 152, 0.5);
    box-shadow: 0 0 0 4px rgba(152, 192, 255, 0.28);
    background: #fff;
}

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

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 1rem 0.9rem;
    text-align: left;
    border-bottom: 1px solid #e4ece8;
}

th {
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.table-card {
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.82);
}

.flash {
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.flash-success {
    border-color: rgba(34, 197, 94, 0.25);
}

.flash-error {
    border-color: rgba(220, 38, 38, 0.2);
    color: var(--danger);
}

.muted {
    color: var(--muted);
}

.toolbar {
    grid-template-columns: 1fr auto;
    margin-bottom: 1rem;
    align-items: center;
}

.quick-links {
    grid-template-columns: repeat(3, 1fr);
}

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

.pill-list a {
    padding: 0.75rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--line);
    color: var(--ink);
}

.pill-list a:hover,
.pill-list a.active {
    background: var(--accent-soft);
    border-color: rgba(16, 32, 152, 0.16);
}

@media (max-width: 900px) {
    .hero-grid,
    .split,
    .stats,
    .form-grid,
    .toolbar,
    .quick-links,
    .mfa-setup-grid {
        grid-template-columns: 1fr;
    }
}

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

    .nav-links {
        justify-content: flex-start;
    }

    .hero h1 {
        max-width: none;
    }
}

.badge-danger {
    background: #fde7e7;
    color: #9f2d2d;
}

.out-of-stock-card {
    opacity: 0.82;
}

.stock-note {
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: #fff1f1;
    color: #9f2d2d;
    border: 1px solid rgba(159, 45, 45, 0.16);
    font-weight: 600;
}

.delivery-reminder {
    margin: 0.9rem 0;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 247, 228, 0.96), rgba(255, 252, 242, 0.9));
    border: 1px solid rgba(191, 138, 43, 0.2);
    color: #7a4b00;
    font-weight: 700;
}

.delivery-reminder strong {
    color: #b45309;
}

.delivery-success {
    margin: 0.9rem 0;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(227, 250, 236, 0.96), rgba(244, 255, 248, 0.92));
    border: 1px solid rgba(41, 122, 74, 0.2);
    color: #1f6a3a;
    font-weight: 700;
}

.delivery-success strong {
    color: #14532d;
}

.admin-out-of-stock-row {
    background: rgba(253, 231, 231, 0.45);
}

.admin-out-of-stock-row td {
    border-bottom-color: rgba(159, 45, 45, 0.14);
}

.stock-cell-danger {
    color: #9f2d2d;
    font-weight: 800;
}

.product-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 18px;
    background: #e9f1ed;
}

.product-image-placeholder,
.admin-product-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-weight: 700;
}

.admin-product-thumb {
    width: 72px;
    height: 56px;
    object-fit: cover;
    border-radius: 12px;
    background: #e9f1ed;
}

.admin-product-image-preview {
    width: min(240px, 100%);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 18px;
    margin-top: 0.75rem;
    background: #e9f1ed;
}

.mfa-setup-grid {
    grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
    align-items: stretch;
}

.mfa-qr-card {
    text-align: center;
}

.mfa-qr-image {
    width: min(260px, 100%);
    aspect-ratio: 1;
    object-fit: contain;
    margin: 1rem auto;
    padding: 0.9rem;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #d8e5df;
    box-shadow: var(--shadow-soft);
}

.code-break {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.mfa-qr-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    margin: 1rem auto;
    padding: 1.25rem;
    border-radius: 8px;
    background: #fff;
    border: 1px dashed #b9cbc4;
    color: var(--muted);
    text-align: center;
}


.order-details {
    margin-top: 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    overflow: hidden;
}

.order-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
    cursor: pointer;
    font-weight: 700;
    color: var(--ink);
    list-style: none;
}

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

.order-details summary::after {
    content: 'Show details';
    color: var(--accent-strong);
    font-size: 0.92rem;
}

.order-details[open] summary::after {
    content: 'Hide details';
}

.order-details-body {
    padding: 0 1.2rem 1.2rem;
}

.badge-special {
    background: linear-gradient(135deg, #ffe7a8, #ffd166);
    color: #7a4b00;
}

.product-card-special {
    border-color: rgba(255, 209, 102, 0.55);
    box-shadow: 0 18px 40px rgba(255, 209, 102, 0.16), var(--shadow);
    background: linear-gradient(180deg, rgba(255, 252, 241, 0.96), rgba(255, 255, 255, 0.9));
}

.badge-special {
    background: linear-gradient(135deg, #ffb4b4, #d62828);
    color: #fff7f7;
    box-shadow: 0 10px 20px rgba(214, 40, 40, 0.22);
}

.product-card-special {
    border-color: rgba(214, 40, 40, 0.3);
    box-shadow: 0 18px 40px rgba(214, 40, 40, 0.12), var(--shadow);
    background:
        linear-gradient(180deg, rgba(255, 245, 245, 0.96), rgba(255, 255, 255, 0.92));
}

.product-card-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    min-height: 2.5rem;
}

.product-card-copy {
    min-height: 7.25rem;
}

.product-card-copy h3 {
    margin-bottom: 0.55rem;
}

.product-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.9rem;
}

.product-card-body {
    margin-top: auto;
}

.product-order-form {
    align-items: end;
}

.price-stack {
    display: grid;
    gap: 0.2rem;
}

.price-was {
    color: var(--muted);
    text-decoration: line-through;
    font-weight: 700;
}

.price-special {
    color: #c1121f;
}

.badge-savings {
    background: rgba(255, 255, 255, 0.92);
    color: #b02a37;
    border: 1px solid rgba(176, 42, 55, 0.16);
}

.price-saving-note {
    color: #b02a37;
    font-weight: 700;
    font-size: 0.94rem;
}

.specials-strip {
    margin: 1.6rem 0 2rem;
    padding: 1.3rem 1.4rem 1.45rem;
    border-radius: 30px;
    border: 1px solid rgba(214, 40, 40, 0.16);
    background:
        linear-gradient(135deg, rgba(255, 247, 247, 0.96), rgba(255, 255, 255, 0.9));
    box-shadow: 0 24px 48px rgba(176, 42, 55, 0.08);
}

.specials-strip-head {
    align-items: end;
    margin-bottom: 1rem;
}

.specials-strip-head p {
    max-width: 44ch;
}

.specials-strip-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.specials-strip-card {
    padding: 1rem 1.05rem;
    border-radius: 8px;
    border: 1px solid rgba(176, 42, 55, 0.14);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 28px rgba(16, 37, 31, 0.06);
}

.specials-strip-card h3 {
    margin-bottom: 0.55rem;
}

.specials-strip-card .muted {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.specials-strip-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
}

.specials-strip-price {
    display: flex;
    align-items: baseline;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin-top: 0.85rem;
    margin-bottom: 0.35rem;
}

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

@media (max-width: 700px) {
    .specials-strip {
        padding: 1.1rem;
    }

    .specials-strip-head {
        gap: 0.9rem;
    }

    .specials-strip-grid {
        grid-template-columns: 1fr;
    }

    .specials-strip-top {
        flex-wrap: wrap;
    }
}


