:root {
    --cream: #f6efe4;
    --paper: #fffaf1;
    --caramel: #a9652f;
    --brown: #3d271c;
    --muted: #806f62;
    --border: #e3d3c0;
    --shop-bg: var(--cream);
    --shop-surface: var(--paper);
    --shop-surface-strong: #f8ead8;
    --shop-milk: #fffdf8;
    --shop-text: var(--brown);
    --shop-muted: var(--muted);
    --shop-line: var(--border);
    --shop-caramel: var(--caramel);
    --shop-caramel-dark: #7a451f;
    --shop-chocolate: var(--brown);
    --shop-honey: #d8a052;
    --shop-success: #59764a;
    --shop-danger: #a94135;
    --shop-shadow: 0 18px 45px rgba(75, 44, 31, 0.11);
    --shop-shadow-soft: 0 10px 28px rgba(75, 44, 31, 0.08);
    --shop-radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at top left, rgba(216, 160, 82, 0.22), transparent 30rem),
        radial-gradient(circle at right 18rem, rgba(168, 95, 42, 0.10), transparent 26rem),
        linear-gradient(180deg, #fffaf4 0, var(--shop-bg) 30rem);
    color: var(--shop-text);
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
}

a {
    color: var(--shop-caramel-dark);
    text-decoration: none;
}

a:hover {
    color: var(--shop-caramel);
}

.site-header {
    background: rgba(255, 250, 244, 0.88);
    border-bottom: 1px solid rgba(234, 216, 198, 0.85);
    backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 1020;
}

.page-shell {
    padding-bottom: 56px;
    padding-top: 32px;
}

.brand-mark {
    align-items: center;
    color: var(--shop-chocolate);
    display: inline-flex;
    font-weight: 850;
    gap: 10px;
    letter-spacing: 0;
}

.brand-symbol {
    align-items: center;
    background: linear-gradient(145deg, var(--shop-chocolate), var(--shop-caramel-dark));
    border-radius: 50%;
    color: #fffaf4;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 850;
    height: 38px;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(75, 44, 31, 0.20);
    width: 38px;
}

.nav-main {
    gap: 4px;
}

.navbar .nav-link {
    border-radius: 999px;
    color: var(--shop-muted);
    font-weight: 600;
    padding: 8px 14px;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    background: rgba(168, 95, 42, 0.12);
    color: var(--shop-chocolate);
}

.auth-panel {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.auth-email {
    color: var(--shop-muted);
    font-size: 0.88rem;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn {
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0;
    padding-left: 16px;
    padding-right: 16px;
}

.btn-primary {
    --bs-btn-bg: var(--shop-caramel);
    --bs-btn-border-color: var(--shop-caramel);
    --bs-btn-hover-bg: var(--shop-caramel-dark);
    --bs-btn-hover-border-color: var(--shop-caramel-dark);
    --bs-btn-active-bg: var(--shop-caramel-dark);
    --bs-btn-active-border-color: var(--shop-caramel-dark);
    box-shadow: 0 10px 24px rgba(168, 95, 42, 0.24);
}

.btn-outline-primary {
    --bs-btn-color: var(--shop-caramel-dark);
    --bs-btn-border-color: rgba(168, 95, 42, 0.45);
    --bs-btn-hover-bg: var(--shop-caramel);
    --bs-btn-hover-border-color: var(--shop-caramel);
}

.btn-success {
    --bs-btn-bg: var(--shop-success);
    --bs-btn-border-color: var(--shop-success);
}

.btn-danger {
    --bs-btn-bg: var(--shop-danger);
    --bs-btn-border-color: var(--shop-danger);
}

.btn-outline-secondary,
.btn-outline-danger {
    background: rgba(255, 255, 255, 0.5);
}

.shop-hero {
    align-items: center;
    background:
        linear-gradient(135deg, rgba(255, 250, 244, 0.96), rgba(255, 244, 230, 0.92)),
        url("https://images.unsplash.com/photo-1606313564200-e75d5e30476c?auto=format&fit=crop&w=1400&q=80");
    background-position: center;
    background-size: cover;
    border: 1px solid var(--shop-line);
    border-radius: 26px;
    box-shadow: var(--shop-shadow);
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    margin-bottom: 34px;
    min-height: 430px;
    overflow: hidden;
    padding: clamp(28px, 6vw, 64px);
}

.hero-content {
    max-width: 660px;
}

.eyebrow {
    color: var(--shop-caramel-dark);
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.shop-hero h1 {
    color: var(--shop-chocolate);
    font-size: clamp(2.25rem, 6vw, 4.7rem);
    font-weight: 850;
    line-height: 1.02;
    margin-bottom: 18px;
}

.shop-hero p {
    color: var(--shop-muted);
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.7;
    max-width: 580px;
}

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

.hero-visual {
    align-items: center;
    display: flex;
    justify-content: center;
}

.hero-jar {
    filter: drop-shadow(0 24px 34px rgba(75, 44, 31, 0.20));
    width: min(260px, 70vw);
}

.jar-lid {
    background: linear-gradient(180deg, #5d3927, #2f1d15);
    border-radius: 12px 12px 5px 5px;
    height: 38px;
    margin: 0 auto;
    width: 66%;
}

.jar-body {
    align-items: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(216, 160, 82, 0.45));
    border: 2px solid rgba(75, 44, 31, 0.16);
    border-radius: 36px 36px 54px 54px;
    display: flex;
    height: 260px;
    justify-content: center;
}

.jar-body span {
    background: rgba(255, 250, 244, 0.82);
    border: 1px solid rgba(168, 95, 42, 0.20);
    border-radius: 999px;
    color: var(--shop-chocolate);
    font-size: 0.95rem;
    font-weight: 800;
    padding: 12px 22px;
    text-align: center;
}

.section-head,
.page-title-row {
    align-items: end;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 22px;
}

.section-head h2,
.page-title-row h1 {
    color: var(--shop-chocolate);
    font-weight: 850;
    margin: 0;
}

.page-title-row p,
.section-head p {
    color: var(--shop-muted);
    margin: 0;
    max-width: 470px;
}

.product-grid {
    display: grid;
    gap: 22px;
    align-items: stretch;
    grid-auto-rows: 1fr;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.product-card {
    background: rgba(255, 250, 244, 0.96);
    border: 1px solid var(--shop-line);
    border-radius: var(--shop-radius);
    box-shadow: var(--shop-shadow-soft);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.product-card:hover {
    box-shadow: var(--shop-shadow);
    transform: translateY(-3px);
}

.product-image {
    aspect-ratio: 4 / 3;
    background:
        linear-gradient(135deg, rgba(255, 250, 244, 0.22), rgba(168, 95, 42, 0.20)),
        linear-gradient(135deg, #f2d7b5, #c9823d);
    overflow: hidden;
}

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

.product-placeholder {
    align-items: center;
    color: var(--shop-chocolate);
    display: flex;
    font-weight: 800;
    height: 100%;
    justify-content: center;
}

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

.product-body h3 {
    color: var(--shop-chocolate);
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.product-body p {
    color: var(--shop-muted);
    line-height: 1.6;
    margin: 0;
}

.product-description {
    min-height: 4.8em;
}

.product-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-facts span,
.status-pill {
    background: var(--shop-surface-strong);
    border: 1px solid rgba(168, 95, 42, 0.16);
    border-radius: 999px;
    color: var(--shop-chocolate);
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 7px 11px;
}

.status-pill.warning {
    background: #fff1ca;
}

.status-pill.muted {
    background: #eee7df;
    color: var(--shop-muted);
}

.product-bottom {
    align-items: stretch;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

.product-bottom strong {
    color: var(--shop-chocolate);
    font-size: 1.25rem;
}

.product-actions {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1fr;
}

.product-actions .btn,
.product-actions form {
    width: 100%;
}

.product-actions .btn {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    min-height: 42px;
}

.product-details {
    align-items: center;
    background: rgba(255, 250, 244, 0.96);
    border: 1px solid var(--shop-line);
    border-radius: 26px;
    box-shadow: var(--shop-shadow);
    display: grid;
    gap: clamp(24px, 5vw, 52px);
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    overflow: hidden;
    padding: clamp(18px, 4vw, 38px);
}

.product-details-image {
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #f2d7b5, #c9823d);
    border-radius: 20px;
    overflow: hidden;
}

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

.product-details-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-details-info h1 {
    color: var(--shop-chocolate);
    font-size: clamp(2rem, 5vw, 3.7rem);
    font-weight: 850;
    line-height: 1.05;
    margin: 0;
}

.product-details-info p {
    color: var(--shop-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0;
}

.product-details-meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.product-details-meta strong {
    color: var(--shop-chocolate);
    font-size: 1.7rem;
}

.product-details-meta span,
.back-link {
    background: var(--shop-surface-strong);
    border: 1px solid rgba(168, 95, 42, 0.16);
    border-radius: 999px;
    color: var(--shop-chocolate);
    display: inline-flex;
    font-weight: 800;
    padding: 8px 12px;
}

.back-link {
    align-self: flex-start;
    font-size: 0.9rem;
}

.product-details-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.soft-card,
.table-card,
.empty-state,
.summary-panel,
.payment-card,
.card {
    background: rgba(255, 250, 244, 0.96);
    border: 1px solid var(--shop-line);
    border-radius: var(--shop-radius);
    box-shadow: var(--shop-shadow-soft);
}

.card {
    color: var(--shop-text);
}

.card-body {
    padding: 26px;
}

.auth-card {
    max-width: 540px;
}

.soft-card {
    padding: 26px;
}

.soft-card p {
    color: var(--shop-muted);
    line-height: 1.7;
}

.soft-card h2 {
    color: var(--shop-chocolate);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 18px;
}

.form-control,
.form-select {
    background-color: var(--shop-milk);
    border-color: #dfc8b5;
    border-radius: 12px;
    padding: 11px 13px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--shop-caramel);
    box-shadow: 0 0 0 0.2rem rgba(168, 95, 42, 0.14);
}

.table-card {
    overflow: hidden;
}

.shop-table {
    --bs-table-bg: transparent;
    color: var(--shop-text);
}

.shop-table thead th {
    background: var(--shop-surface-strong);
    color: var(--shop-chocolate);
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.shop-table th,
.shop-table td {
    border-color: rgba(234, 216, 198, 0.85);
    padding: 16px;
}

.shop-table tbody tr:hover {
    background: rgba(255, 244, 230, 0.45);
}

.admin-table td,
.admin-table th {
    white-space: nowrap;
}

.orders-admin-table th,
.orders-admin-table td {
    padding-left: 10px;
    padding-right: 10px;
}

.admin-product-image {
    border-radius: 12px;
    height: 64px;
    object-fit: cover;
    width: 84px;
}

.product-form-image {
    border-radius: 14px;
    height: 150px;
    object-fit: cover;
    width: 200px;
}

.quantity-control {
    align-items: center;
    display: inline-flex;
    gap: 9px;
}

.quantity-control span {
    background: #fffdf9;
    border: 1px solid var(--shop-line);
    border-radius: 999px;
    display: inline-block;
    font-weight: 800;
    min-width: 38px;
    padding: 6px 10px;
    text-align: center;
}

.summary-panel {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-top: 22px;
    padding: 22px;
}

.summary-panel span,
.summary-total span {
    color: var(--shop-muted);
    display: block;
    font-size: 0.9rem;
}

.summary-panel strong,
.summary-total strong {
    color: var(--shop-chocolate);
    font-size: 1.45rem;
}

.checkout-summary {
    top: 108px;
}

.order-lines {
    display: grid;
    gap: 14px;
}

.order-line {
    align-items: start;
    border-bottom: 1px solid var(--shop-line);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding-bottom: 14px;
}

.order-line span {
    color: var(--shop-muted);
    display: block;
    font-size: 0.9rem;
    margin-top: 4px;
}

.summary-total {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.empty-state {
    color: var(--shop-muted);
    padding: 26px;
}

.payment-card {
    margin: 0 auto;
    max-width: 760px;
    padding: clamp(24px, 4vw, 34px);
}

.payment-card h1 {
    color: var(--shop-chocolate);
    font-weight: 850;
}

.payment-card p {
    color: var(--shop-muted);
    line-height: 1.7;
}

.premium-alert {
    border-color: rgba(216, 160, 82, 0.36);
    border-radius: 14px;
}

.payment-details {
    display: grid;
    gap: 10px;
    margin: 24px 0;
}

.payment-details div {
    background: var(--shop-milk);
    border: 1px solid var(--shop-line);
    border-radius: 14px;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1.2fr);
    padding: 15px;
}

.payment-details dt {
    color: var(--shop-muted);
    font-weight: 700;
}

.payment-details dd {
    color: var(--shop-text);
    font-weight: 700;
    margin: 0;
}

.payment-sum {
    color: var(--shop-caramel-dark) !important;
    font-size: 1.45rem;
}

.payment-comment {
    background: #f8efe4;
    border-radius: 8px;
    color: var(--shop-chocolate);
    display: inline-block;
    padding: 7px 9px;
    white-space: normal;
    word-break: break-word;
}

.info-page {
    margin: 0 auto;
    max-width: 920px;
}

.info-hero,
.info-block {
    background: rgba(255, 250, 244, 0.96);
    border: 1px solid var(--shop-line);
    border-radius: var(--shop-radius);
    box-shadow: var(--shop-shadow-soft);
}

.info-hero {
    margin-bottom: 18px;
    padding: clamp(26px, 5vw, 42px);
}

.info-block {
    margin-bottom: 14px;
    padding: clamp(22px, 4vw, 28px);
}

.info-hero h1,
.info-block h2 {
    color: var(--shop-chocolate);
    font-weight: 850;
}

.info-hero p,
.info-block p,
.info-block dd {
    color: var(--shop-muted);
    line-height: 1.7;
}

.info-hero p {
    font-size: 1.05rem;
    max-width: 760px;
}

.contact-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.contact-list div {
    background: var(--shop-milk);
    border: 1px solid rgba(168, 95, 42, 0.14);
    border-radius: 14px;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(170px, 0.8fr) minmax(0, 1.2fr);
    padding: 14px 16px;
}

.contact-list dt {
    color: var(--shop-muted);
    font-weight: 700;
}

.contact-list dd {
    color: var(--shop-text);
    font-weight: 750;
    margin: 0;
}

.site-footer {
    background:
        linear-gradient(135deg, rgba(75, 44, 31, 0.98), rgba(127, 63, 24, 0.96));
    color: rgba(255, 250, 244, 0.82);
    padding: 34px 0;
}

.footer-top {
    align-items: start;
    display: flex;
    gap: 28px;
    justify-content: space-between;
}

.footer-brand {
    color: #fffaf4;
    font-size: 1.25rem;
    font-weight: 850;
}

.footer-copy {
    color: rgba(255, 250, 244, 0.68);
    margin-top: 5px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    justify-content: flex-end;
    max-width: 680px;
}

.footer-links a {
    color: rgba(255, 250, 244, 0.82);
    font-size: 0.92rem;
}

.footer-links a:hover {
    color: #fff;
}

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

    .hero-visual {
        display: none;
    }

    .section-head,
    .page-title-row,
    .summary-panel,
    .footer-top {
        align-items: stretch;
        flex-direction: column;
    }

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

    .product-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .page-shell {
        padding-top: 22px;
    }

    .shop-hero,
    .info-hero,
    .soft-card,
    .payment-card {
        border-radius: 16px;
        padding: 22px;
    }

    .summary-total,
    .payment-details div,
    .contact-list div {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .product-bottom .btn,
    .product-actions,
    .product-details-actions .btn,
    .product-details-actions form,
    .summary-panel .btn {
        width: 100%;
    }

    .product-actions {
        grid-template-columns: 1fr;
    }

    .auth-panel {
        align-items: stretch;
        flex-direction: column;
        margin-top: 10px;
    }
}

/* Postcard-led home page pass */
:root {
    --cream: #f6dfc6;
    --paper: #fff6eb;
    --peach: #f2b07f;
    --soft-peach: #f7c7a5;
    --caramel: #d17643;
    --brown: #4b2a18;
    --muted: #8a6048;
    --border: #e7b98f;
    --rose: #d97991;
}

.shop-hero {
    align-items: center;
    background:
        linear-gradient(135deg, rgba(255, 246, 235, 0.94), rgba(246, 223, 198, 0.92));
    border: 1px solid rgba(209, 118, 67, 0.24);
    border-radius: 22px;
    box-shadow: 0 18px 38px rgba(75, 42, 24, 0.10);
    display: grid;
    gap: clamp(24px, 5vw, 54px);
    grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.78fr);
    margin-bottom: 18px;
    overflow: hidden;
    padding: clamp(28px, 5vw, 58px);
    position: relative;
}

.shop-hero::before,
.shop-hero::after {
    background: rgba(242, 176, 127, 0.32);
    content: "";
    position: absolute;
    z-index: 0;
}

.shop-hero::before {
    clip-path: polygon(10% 0, 100% 13%, 72% 100%, 0 82%);
    height: 108px;
    left: 22%;
    top: -34px;
    transform: rotate(4deg);
    width: 310px;
}

.shop-hero::after {
    clip-path: polygon(20% 0, 100% 12%, 70% 100%, 0 76%);
    height: 170px;
    left: -74px;
    top: 112px;
    transform: rotate(-14deg);
    width: 150px;
}

.hero-content,
.hero-postcard-art {
    position: relative;
    z-index: 1;
}

.shop-hero .eyebrow {
    color: var(--caramel);
    letter-spacing: 0.08em;
}

.shop-hero h1 {
    color: var(--caramel);
    font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
    font-size: clamp(2rem, 4.1vw, 3.15rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.04;
    margin-bottom: 18px;
    max-width: 660px;
    text-transform: uppercase;
}

.shop-hero p {
    color: var(--muted);
    font-size: clamp(1rem, 1.7vw, 1.13rem);
    line-height: 1.65;
    max-width: 620px;
}

.hero-postcard-art {
    align-self: end;
    min-height: 420px;
}

.hero-peach-shape {
    background: var(--soft-peach);
    clip-path: polygon(14% 8%, 88% 0, 100% 66%, 76% 100%, 10% 88%, 0 30%);
    height: min(370px, 42vw);
    min-height: 280px;
    position: absolute;
    right: -8px;
    top: 26px;
    transform: rotate(-3deg);
    width: min(390px, 46vw);
    z-index: 0;
}

.hero-postcard-art img {
    bottom: 0;
    display: block;
    filter: drop-shadow(0 18px 18px rgba(75, 42, 24, 0.12));
    clip-path: polygon(5% 7%, 100% 0, 95% 96%, 0 100%);
    max-height: 410px;
    max-width: min(430px, 100%);
    position: absolute;
    right: 0;
    width: 100%;
    z-index: 1;
}

.navbar,
.navbar-collapse,
.navbar-nav {
    align-items: center;
    display: flex;
}

.navbar {
    gap: 24px;
    justify-content: space-between;
}

.navbar-collapse {
    gap: 18px;
}

.navbar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding-left: 0;
}

.navbar-toggler {
    display: none;
}

.auth-panel {
    margin-left: auto;
}

.shop-notes {
    background: rgba(255, 246, 235, 0.64);
    border-color: rgba(209, 118, 67, 0.24);
    color: var(--brown);
    margin-bottom: 20px;
}

.shop-notes div {
    padding: 13px 16px;
}

.storage-note {
    align-items: start;
    background: rgba(255, 246, 235, 0.72);
    border: 1px solid rgba(209, 118, 67, 0.24);
    border-radius: 18px;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.75fr);
    margin-bottom: 34px;
    padding: 22px 24px;
}

.storage-note h2 {
    color: var(--brown);
    font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
    font-size: clamp(1.16rem, 2vw, 1.45rem);
    font-weight: 800;
    line-height: 1.25;
    margin: 0;
}

.storage-note details {
    background: var(--paper);
    border: 1px solid rgba(209, 118, 67, 0.22);
    border-radius: 14px;
    padding: 14px 16px;
}

.storage-note summary {
    color: var(--caramel);
    cursor: pointer;
    font-weight: 800;
}

.storage-note ul {
    color: var(--muted);
    line-height: 1.55;
    margin: 12px 0 0;
    padding-left: 20px;
}

.section-head h2 {
    color: var(--brown);
}

.product-card {
    background: rgba(255, 246, 235, 0.86);
    border-color: rgba(209, 118, 67, 0.22);
}

.product-body h3 {
    color: var(--brown);
    font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
    font-size: 1.08rem;
    font-weight: 850;
}

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

.btn-primary {
    --bs-btn-bg: var(--caramel);
    --bs-btn-border-color: var(--caramel);
    --bs-btn-hover-bg: #b96031;
    --bs-btn-hover-border-color: #b96031;
}

.btn-outline-primary {
    --bs-btn-color: var(--brown);
    --bs-btn-border-color: rgba(209, 118, 67, 0.34);
    --bs-btn-hover-bg: #f5c6a5;
    --bs-btn-hover-border-color: #f5c6a5;
    --bs-btn-hover-color: var(--brown);
}

@media (max-width: 992px) {
    .shop-hero {
        grid-template-columns: 1fr;
        padding-bottom: 0;
    }

    .navbar,
    .navbar-collapse {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .navbar-nav {
        gap: 2px 10px;
    }

    .auth-panel {
        margin-left: 0;
    }

    .hero-postcard-art {
        min-height: 330px;
    }

    .hero-peach-shape {
        height: 300px;
        left: 50%;
        right: auto;
        transform: translateX(-50%) rotate(-3deg);
        width: min(420px, 90vw);
    }

    .hero-postcard-art img {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: min(390px, 92vw);
    }

    .storage-note {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .shop-hero {
        border-radius: 18px;
        gap: 18px;
        padding: 22px 18px 0;
    }

    .shop-hero h1 {
        font-size: clamp(1.72rem, 9.2vw, 2.32rem);
    }

    .hero-postcard-art {
        min-height: 285px;
    }

    .hero-peach-shape {
        height: 238px;
        top: 26px;
    }

    .hero-postcard-art img {
        bottom: 0;
        width: min(330px, 96vw);
    }

    .shop-notes {
        margin-bottom: 18px;
    }

    .storage-note {
        border-radius: 16px;
        padding: 18px;
    }
}

/* Quiet craft storefront redesign */
body {
    background:
        linear-gradient(90deg, rgba(61, 39, 28, 0.025) 1px, transparent 1px),
        linear-gradient(180deg, #fbf4e9 0, var(--cream) 100%);
    background-size: 28px 28px, auto;
    color: var(--brown);
    font-family: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
}

.site-header {
    background: rgba(255, 250, 241, 0.94);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.navbar {
    min-height: 72px;
}

.brand-mark {
    color: var(--brown);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.3rem;
    gap: 9px;
}

.brand-mark > span:last-child {
    font-weight: 800;
    text-shadow:
        0 1px 0 #f6d7b8,
        0 2px 0 #d99a63,
        0 4px 8px rgba(82, 43, 24, 0.18);
}

.brand-symbol {
    background: var(--brown);
    border-radius: 50%;
    box-shadow: none;
    font-family: "Manrope", system-ui, sans-serif;
    font-size: 0.72rem;
    height: 34px;
    width: 34px;
}

.nav-main {
    gap: 2px;
}

.navbar .nav-link {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
    padding: 7px 11px;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    background: #f4e5d3;
    color: var(--brown);
}

.page-shell {
    padding-top: 28px;
}

.btn {
    border-radius: 999px;
    box-shadow: none !important;
    font-size: 0.95rem;
    padding: 9px 16px;
}

.btn-lg {
    font-size: 1rem;
    padding: 10px 18px;
}

.btn-primary {
    --bs-btn-bg: var(--brown);
    --bs-btn-border-color: var(--brown);
    --bs-btn-hover-bg: var(--caramel);
    --bs-btn-hover-border-color: var(--caramel);
    --bs-btn-active-bg: var(--caramel);
    --bs-btn-active-border-color: var(--caramel);
}

.btn-outline-primary,
.btn-outline-secondary {
    --bs-btn-color: var(--brown);
    --bs-btn-border-color: var(--border);
    --bs-btn-hover-bg: #f1dfc9;
    --bs-btn-hover-border-color: #d8c3ad;
    --bs-btn-hover-color: var(--brown);
    background: rgba(255, 250, 241, 0.55);
}

.shop-hero {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(61, 39, 28, 0.07);
    display: block;
    margin-bottom: 16px;
    min-height: 0;
    padding: clamp(26px, 5vw, 46px);
}

.hero-content {
    max-width: 760px;
}

.eyebrow {
    color: var(--caramel);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 9px;
}

.shop-hero h1,
.product-details-info h1,
.info-hero h1,
.page-title-row h1,
.section-head h2,
.payment-card h1 {
    color: var(--brown);
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 700;
    letter-spacing: 0;
}

.shop-hero h1 {
    font-size: clamp(2rem, 5vw, 3.35rem);
    line-height: 1.08;
    margin-bottom: 14px;
    max-width: 760px;
}

.shop-hero p {
    color: var(--muted);
    font-size: 1.03rem;
    line-height: 1.65;
    max-width: 680px;
}

.hero-actions {
    gap: 10px;
    margin-top: 22px;
}

.hero-visual,
.hero-jar {
    display: none;
}

.shop-notes {
    border-bottom: 1px solid var(--border);
    border-top: 1px solid var(--border);
    color: var(--brown);
    display: grid;
    font-size: 0.93rem;
    font-weight: 700;
    gap: 0;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 34px;
}

.shop-notes div {
    padding: 14px 18px;
    text-align: center;
}

.shop-notes div + div {
    border-left: 1px solid var(--border);
}

.section-head,
.page-title-row {
    align-items: flex-end;
    margin-bottom: 18px;
}

.section-head h2,
.page-title-row h1 {
    font-size: clamp(1.8rem, 3vw, 2.45rem);
}

.product-grid {
    gap: 18px;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.product-card {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(61, 39, 28, 0.055);
}

.product-card:hover {
    box-shadow: 0 13px 26px rgba(61, 39, 28, 0.08);
    transform: translateY(-2px);
}

.product-image {
    aspect-ratio: 1 / 1;
    background: #f0dfcc;
}

.product-body {
    gap: 12px;
    padding: 16px;
}

.product-body h3 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.24rem;
    line-height: 1.2;
    margin-bottom: 6px;
}

.product-description {
    display: -webkit-box;
    font-size: 0.92rem;
    line-height: 1.5 !important;
    min-height: 2.76em;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-meta-line {
    align-items: baseline;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding-top: 12px;
}

.product-meta-line span {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.product-meta-line strong {
    color: var(--brown);
    font-size: 1.08rem;
}

.product-bottom {
    gap: 11px;
}

.product-actions {
    gap: 8px;
}

.product-actions .btn {
    min-height: 39px;
    padding-left: 10px;
    padding-right: 10px;
}

.product-details {
    align-items: start;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(61, 39, 28, 0.07);
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
    padding: clamp(18px, 3vw, 28px);
}

.product-details-image {
    aspect-ratio: 1 / 1;
    border-radius: 14px;
}

.product-details-info {
    gap: 16px;
    padding: 4px 0;
}

.product-details-info h1 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.product-details-info p {
    font-size: 1rem;
    line-height: 1.75;
}

.product-details-meta strong {
    font-size: 1.42rem;
}

.product-details-meta span,
.back-link {
    background: #f6eadb;
    border-color: var(--border);
    font-size: 0.9rem;
}

.soft-card,
.table-card,
.empty-state,
.summary-panel,
.payment-card,
.card,
.info-hero,
.info-block {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(61, 39, 28, 0.055);
}

.soft-card {
    max-width: 780px;
}

.checkout-summary {
    max-width: none;
}

.form-control,
.form-select {
    background-color: #fffdf7;
    border-color: var(--border);
    border-radius: 10px;
}

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

.table-card {
    border-radius: 12px;
}

.shop-table thead th {
    background: #f3e4d1;
    color: var(--brown);
}

.shop-table th,
.shop-table td {
    border-color: var(--border);
}

.status-pill,
.product-facts span {
    background: #f6eadb;
    border-color: var(--border);
}

.summary-panel {
    margin-left: auto;
    max-width: 440px;
}

.summary-panel strong,
.summary-total strong {
    font-size: 1.25rem;
}

.payment-page {
    margin: 0 auto;
    max-width: 760px;
}

.payment-card {
    max-width: none;
}

.payment-details div {
    background: #fffdf7;
    border-color: var(--border);
    border-radius: 10px;
}

.payment-comment-row {
    background: #f7ead6 !important;
}

.payment-comment {
    background: rgba(255, 250, 241, 0.85);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--brown);
    font-weight: 800;
}

.payment-actions {
    display: grid;
    gap: 10px;
}

.promo-checkout {
    background: #fffdf7;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
}

.promo-input-row {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.city-combobox {
    position: relative;
}

.city-combobox-menu {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 16px 34px rgba(82, 43, 24, 0.13);
    left: 0;
    margin-top: 6px;
    max-height: 260px;
    overflow-y: auto;
    padding: 6px;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 20;
}

.city-combobox-option,
.city-combobox-empty {
    border-radius: 9px;
    color: var(--brown);
    display: block;
    font: inherit;
    line-height: 1.35;
    padding: 9px 10px;
    text-align: left;
    width: 100%;
}

.city-combobox-option {
    background: transparent;
    border: 0;
    cursor: pointer;
}

.city-combobox-option:hover,
.city-combobox-option.is-active {
    background: #f7ead6;
}

.city-combobox-empty {
    color: var(--muted);
}

.profile-shell {
    display: grid;
    gap: 22px;
}

.profile-hero,
.profile-card {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 14px 32px rgba(82, 43, 24, 0.08);
}

.profile-hero {
    align-items: center;
    display: flex;
    gap: 18px;
    padding: 24px;
}

.profile-avatar {
    align-items: center;
    background: #f7ead6;
    border: 1px solid #ead3be;
    border-radius: 50%;
    color: var(--brown);
    display: inline-flex;
    flex: 0 0 auto;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    height: 72px;
    justify-content: center;
    width: 72px;
}

.profile-identity {
    min-width: 0;
}

.profile-name-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 4px;
}

.profile-name-row h1 {
    color: var(--brown);
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.05;
    margin: 0;
}

.profile-identity p,
.profile-note,
.profile-empty {
    color: var(--muted);
    margin: 0;
}

.profile-role-badge {
    background: #fff8ec;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--brown);
    font-size: 0.82rem;
    font-weight: 800;
    padding: 6px 10px;
    white-space: nowrap;
}

.profile-message {
    background: #fff8ec;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--brown);
    font-weight: 700;
    padding: 12px 14px;
}

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

.profile-card {
    padding: 22px;
}

.profile-card h2 {
    color: var(--brown);
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 18px;
}

.profile-data-list {
    display: grid;
    gap: 14px;
    margin: 0;
}

.profile-data-list div {
    border-bottom: 1px solid rgba(121, 83, 61, 0.16);
    display: grid;
    gap: 4px;
    padding-bottom: 12px;
}

.profile-data-list div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.profile-data-list dt {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.profile-data-list dd {
    color: var(--brown);
    font-weight: 700;
    margin: 0;
    overflow-wrap: anywhere;
}

.profile-note {
    border-top: 1px solid rgba(121, 83, 61, 0.16);
    font-size: 0.92rem;
    margin-top: 16px;
    padding-top: 12px;
}

.profile-actions-card {
    max-width: none;
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.profile-actions form {
    margin: 0;
}

.profile-password-card {
    max-width: 620px;
}

@media (max-width: 576px) {
    .profile-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 20px;
    }

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

    .profile-card {
        padding: 18px;
    }

    .profile-actions,
    .profile-actions form,
    .profile-actions .btn {
        width: 100%;
    }
}

.discount-summary {
    align-items: center;
    background: #f7ead6;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--brown);
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: 12px;
    padding: 12px 14px;
}

.discount-summary span {
    color: var(--muted);
    font-weight: 700;
}

.discount-summary strong {
    color: var(--caramel);
}

.total-to-pay {
    border-top: 1px solid var(--border);
    margin-top: 14px;
    padding-top: 14px;
}

.promo-table th,
.promo-table td {
    padding-left: 10px;
    padding-right: 10px;
}

.promo-meta {
    display: grid;
    gap: 4px;
    white-space: normal;
}

.promo-meta span {
    color: var(--muted);
    font-size: 0.86rem;
}

.promo-actions {
    align-items: center;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    max-width: 300px;
}

.promo-form-card {
    max-width: 860px;
}

.info-page {
    max-width: 780px;
}

.info-hero {
    padding: clamp(24px, 4vw, 34px);
}

.info-block {
    margin-bottom: 12px;
    padding: clamp(20px, 3vw, 24px);
}

.info-hero h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
}

.info-block h2 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.35rem;
}

.contact-list div {
    background: #fffdf7;
    border-color: var(--border);
    border-radius: 10px;
}

.site-footer {
    background: #ead9c5;
    border-top: 1px solid var(--border);
    color: var(--brown);
    margin-top: 24px;
}

.footer-brand {
    color: var(--brown);
    font-family: "Playfair Display", Georgia, serif;
}

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

.footer-socials {
    align-items: center;
    display: flex;
    gap: 18px;
    margin-top: 16px;
}

.footer-socials a {
    align-items: center;
    color: var(--brown);
    display: inline-flex;
    height: 24px;
    justify-content: center;
    line-height: 1;
    text-decoration: none;
    transition: color 0.22s ease, transform 0.22s ease;
    width: 24px;
}

.footer-socials svg {
    display: block;
    height: 24px;
    width: 24px;
}

.footer-socials a:hover {
    color: var(--shop-chocolate);
    transform: translateY(-2px);
}

.footer-links {
    gap: 10px 16px;
}

.footer-links a {
    color: var(--brown);
}

.footer-links a:hover {
    color: var(--caramel);
}

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

    .shop-notes div + div {
        border-left: 0;
        border-top: 1px solid var(--border);
    }

    .soft-card {
        max-width: none;
    }
}

@media (max-width: 576px) {
    .page-shell {
        padding-top: 18px;
    }

    .navbar {
        min-height: 64px;
    }

    .brand-mark {
        font-size: 1.12rem;
    }

    .shop-hero,
    .product-details,
    .info-hero,
    .soft-card,
    .payment-card {
        border-radius: 14px;
        padding: 18px;
    }

    .shop-hero h1 {
        font-size: 2rem;
    }

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

    .product-actions {
        grid-template-columns: 1fr 1fr;
    }

    .summary-panel {
        max-width: none;
    }

    .promo-input-row {
        grid-template-columns: 1fr;
    }

    .promo-actions {
        justify-content: flex-start;
        max-width: none;
    }
}

/* Final postcard priority layer for the home page */
.shop-hero {
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 246, 235, 0.94), rgba(246, 223, 198, 0.92));
    border-color: rgba(209, 118, 67, 0.24);
    display: grid;
    gap: clamp(24px, 5vw, 54px);
    grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.78fr);
    overflow: hidden;
    padding: clamp(28px, 5vw, 58px);
    position: relative;
}

.shop-hero h1 {
    color: var(--caramel);
    font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
    font-size: clamp(2rem, 4.1vw, 3.15rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.04;
    max-width: 660px;
    text-transform: uppercase;
}

.hero-postcard-art {
    align-self: end;
    display: block;
    min-height: 420px;
    position: relative;
    z-index: 1;
}

.hero-peach-shape {
    z-index: 0;
}

.hero-postcard-art img {
    bottom: 0;
    clip-path: polygon(5% 7%, 100% 0, 95% 96%, 0 100%);
    display: block;
    max-height: 410px;
    max-width: min(430px, 100%);
    position: absolute;
    right: 0;
    width: 100%;
    z-index: 1;
}

@media (max-width: 992px) {
    .shop-hero {
        grid-template-columns: 1fr;
        padding-bottom: 0;
    }

    .hero-postcard-art {
        min-height: 330px;
    }

    .hero-postcard-art img {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: min(390px, 92vw);
    }
}

@media (max-width: 576px) {
    .shop-hero {
        padding: 22px 18px 0;
    }

    .shop-hero h1 {
        font-size: clamp(1.72rem, 9.2vw, 2.32rem);
    }

    .hero-postcard-art {
        min-height: 285px;
    }

    .hero-postcard-art img {
        bottom: 0;
        width: min(330px, 96vw);
    }
}

/* Header logo illustration */
.brand-symbol {
    background: #fbecd9;
    border: 1px solid rgba(209, 118, 67, 0.24);
    border-radius: 50%;
    box-shadow: none;
    color: transparent;
    flex: 0 0 34px;
    height: 34px;
    overflow: hidden;
    padding: 4px;
    width: 34px;
}

.brand-symbol img {
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}
