:root {
    --cream: #f7f0e6;
    --buttermilk: #fffaf3;
    --wheat: #e7d1b0;
    --caramel: #b97743;
    --cocoa: #4c3424;
    --olive: #6c7750;
    --olive-deep: #4f5938;
    --ink: #2f241c;
    --card-shadow: 0 24px 60px rgba(76, 52, 36, 0.12);
    --soft-shadow: 0 14px 40px rgba(76, 52, 36, 0.08);
    --border: rgba(76, 52, 36, 0.12);
    --page-max: 1180px;
    --page-gutter: 16px;
}

@media (min-width: 1800px) {
    :root {
        --page-max: 1760px;
        --page-gutter: 32px;
    }
}

@media (min-width: 3000px) {
    :root {
        --page-max: 2200px;
        --page-gutter: 48px;
    }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: "Manrope", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(233, 209, 176, 0.55), transparent 34%),
        linear-gradient(180deg, #fbf4ea 0%, #f5ebde 52%, #f9f4ee 100%);
}

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

a {
    color: inherit;
    text-decoration: none;
}

.page-shell {
    width: calc(100% - (var(--page-gutter) * 2));
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 24px 0 48px;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    background: inherit;
}

.page-wrapper header {
    width: 100%;
    background: transparent;
}

.page-wrapper main {
    flex: 1;
    width: 100%;
    background: inherit;
}

.page-wrapper footer {
    width: 100%;
    background: inherit;
    border-top: 1px solid rgba(76, 52, 36, 0.1);
    display: flex;
    justify-content: center;
    padding: 24px 0;
    color: rgba(47, 36, 28, 0.62);
    font-size: 0.92rem;
}

.page-wrapper footer p {
    max-width: var(--page-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
    width: calc(100% - (var(--page-gutter) * 2));
    text-align: center;
}

.checkout-section,
.checkout-content {
    max-width: var(--page-max) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: var(--page-gutter) !important;
    padding-right: var(--page-gutter) !important;
    width: calc(100% - (var(--page-gutter) * 2)) !important;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(76, 52, 36, 0.1);
    margin-bottom: 28px;
}

.page-wrapper > .site-header {
    width: calc(100% - (var(--page-gutter) * 2));
    max-width: var(--page-max);
    margin: 0 auto 28px;
}

.brand-mark,
.logo-link {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.brand-mark img,
.logo-link img {
    width: clamp(168px, 18vw, 220px);
    height: auto;
}

.header-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
    font-size: 0.95rem;
    color: rgba(47, 36, 28, 0.8);
}

.header-links a,
.text-link {
    position: relative;
}

.header-links a::after,
.text-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.header-links a:hover::after,
.text-link:hover::after {
    transform: scaleX(1);
}

.hero-banner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 24px;
    align-items: stretch;
    margin-bottom: 32px;
}

.hero-banner.hero-banner-single {
    grid-template-columns: 1fr;
}

.hero-copy,
.hero-card,
.cookie-card,
.story-panel,
.product-image-frame,
.product-copy {
    border: 1px solid var(--border);
    box-shadow: var(--soft-shadow);
}

.hero-copy {
    padding: clamp(28px, 5vw, 56px);
    border-radius: 36px;
    background:
        linear-gradient(135deg, rgba(255, 250, 243, 0.94), rgba(247, 240, 230, 0.98)),
        #fff;
}

.hero-card {
    border-radius: 36px;
    background:
        linear-gradient(180deg, rgba(108, 119, 80, 0.92), rgba(79, 89, 56, 0.98)),
        var(--olive);
    color: var(--buttermilk);
    overflow: hidden;
    position: relative;
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 20px;
    border: 1px solid rgba(255, 250, 243, 0.22);
    border-radius: 28px;
}

.hero-card-inner {
    position: relative;
    height: 100%;
    padding: clamp(28px, 5vw, 40px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 18px;
    background:
        radial-gradient(circle at top right, rgba(255, 250, 243, 0.2), transparent 32%),
        linear-gradient(180deg, transparent 0%, rgba(47, 36, 28, 0.12) 100%);
}

.eyebrow,
.card-kicker,
.metric-label,
.cookie-price {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    font-weight: 700;
}

.eyebrow,
.cookie-price,
.card-kicker {
    color: var(--caramel);
}

.hero-card .card-kicker,
.hero-card .metric-label {
    color: rgba(255, 250, 243, 0.76);
}

h1,
h2,
h3 {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-weight: 600;
    line-height: 0.95;
    color: var(--cocoa);
}

.hero-banner h1 {
    margin: 14px 0 18px;
    font-size: clamp(2.9rem, 5.6vw, 4.8rem);
    max-width: 10ch;
}

.hero-text,
.section-heading p,
.cookie-card p,
.story-panel p,
.product-description,
.hero-card p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(47, 36, 28, 0.82);
}

.hero-copy .hero-text {
    max-width: 54ch;
}

.hero-card p,
.hero-card h2,
.hero-metrics strong {
    color: var(--buttermilk);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 28px 0 24px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(44px, 8vw, 64px);
    padding: clamp(0.5rem, 2vw, 1rem) clamp(1.2rem, 4vw, 2rem);
    border-radius: 999px;
    font-weight: 700;
    font-size: clamp(0.9rem, 2.2vw, 1.3rem);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

@media (min-width: 2560px) {
    .button {
        min-height: 72px;
        padding: 1.2rem 2.5rem;
        font-size: 1.5rem;
    }

    .story-image-container {
        margin: 36px 0;
        border-radius: 32px;
        box-shadow: 0 20px 48px rgba(76, 52, 36, 0.2);
    }
}

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

.button:active {
    transform: translateY(0);
}

.button-primary {
    background: var(--olive);
    color: var(--buttermilk);
    box-shadow: 0 clamp(8px, 2vw, 16px) clamp(15px, 3vw, 30px) rgba(79, 89, 56, 0.22);
}

.button-primary:hover {
    background: var(--olive-deep);
    box-shadow: 0 clamp(10px, 2.5vw, 20px) clamp(18px, 3.5vw, 36px) rgba(79, 89, 56, 0.3);
}

.button-secondary {
    background: rgba(255, 250, 243, 0.7);
    color: var(--cocoa);
    border: 1px solid rgba(76, 52, 36, 0.12);
}

.button-secondary:hover {
    background: rgba(255, 250, 243, 1);
    border-color: rgba(76, 52, 36, 0.2);
}

.hero-notes {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.hero-notes li {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(183, 119, 67, 0.12);
    color: var(--cocoa);
    font-size: 0.92rem;
}

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

.hero-metrics div {
    padding-top: 14px;
    border-top: 1px solid rgba(255, 250, 243, 0.24);
}

.hero-metrics strong {
    display: block;
    margin-top: 8px;
    font-size: 1.1rem;
}

.cookie-section {
    margin-bottom: 32px;
}

.section-heading {
    display: grid;
    gap: 10px;
    max-width: 700px;
    margin-bottom: 20px;
}

.section-heading h2,
.story-panel h2,
.product-copy h1,
.hero-card h2 {
    font-size: clamp(2.3rem, 5vw, 4rem);
}

.cookie-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.cookie-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 22px;
    min-height: 260px;
    padding: 24px;
    border-radius: 28px;
    background: rgba(255, 250, 243, 0.86);
}

.cookie-card-link {
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: inherit;
    text-decoration: none;
}

.cookie-card-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(76, 52, 36, 0.06);
}

.cookie-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cookie-card-top {
    display: grid;
    gap: 12px;
}

.cookie-card h3 {
    font-size: 2rem;
}

.cookie-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.story-section {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 20px;
    align-items: start;
    margin-bottom: 32px;
}

.story-panel {
    padding: clamp(24px, 4vw, 34px);
    border-radius: 30px;
    background: rgba(255, 250, 243, 0.88);
}

.story-copy {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.story-list,
.alert-list {
    margin: 18px 0 0;
    padding-left: 20px;
    display: grid;
    gap: 12px;
}

.story-list li,
.alert-list li {
    line-height: 1.7;
}

.story-panel-accent {
    background: linear-gradient(135deg, rgba(231, 209, 176, 0.7), rgba(255, 250, 243, 0.92));
}

.story-panel-accent .story-list {
    margin: 18px 0 0;
}

.story-panel-accent .button {
    margin-top: 32px;
    align-self: flex-start;
}

.story-image-container {
    margin: clamp(12px, 3vw, 28px) 0;
    border-radius: clamp(12px, 5vw, 24px);
    overflow: hidden;
    box-shadow: 0 clamp(4px, 1.5vw, 24px) clamp(12px, 4vw, 32px) rgba(76, 52, 36, 0.12);
    max-width: 100%;
}

.story-photo {
    width: 100%;
    height: auto;
    display: block;
}

.story-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    margin-top: 20px;
    box-shadow: 0 12px 30px rgba(76, 52, 36, 0.15);
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 28px;
    align-items: start;
}

.payment-feedback[hidden] {
    display: none;
}

.payment-gateways {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.gateway-card {
    display: grid;
    gap: 12px;
    padding: 20px;
    border-radius: 22px;
    border: 1px solid rgba(76, 52, 36, 0.1);
    background: rgba(255, 255, 255, 0.46);
}

.gateway-card h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.gateway-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.gateway-card-header .eyebrow {
    margin: 0;
    flex: 1;
}

.payment-logo {
    width: clamp(40px, 8vw, 56px);
    height: auto;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(76, 52, 36, 0.1));
    object-fit: contain;
}

.gateway-card button[disabled] {
    cursor: not-allowed;
    opacity: 0.55;
}

.hero-actions-checkout {
    margin-top: 18px;
}

.checkout-note-setup {
    margin-top: 18px;
}

.setup-list {
    margin: 12px 0 0;
    padding-left: 20px;
    display: grid;
    gap: 8px;
}

#paypal-button-container {
    min-height: 48px;
}

.admin-layout {
    display: grid;
    gap: 24px;
}

.admin-filters {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.7fr) auto;
    gap: 18px;
    align-items: end;
    margin-bottom: 24px;
}

.admin-filter-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.checkout-panel {
    border: 1px solid var(--border);
    border-radius: 36px;
    background: rgba(255, 250, 243, 0.88);
    box-shadow: var(--soft-shadow);
    padding: clamp(28px, 5vw, 48px);
}

.checkout-form-panel h1,
.checkout-summary-panel h2 {
    font-size: clamp(2.6rem, 5vw, 4.2rem);
}

.checkout-form-panel h1 {
    line-height: 1.08;
    margin-bottom: 30px;
    padding-bottom: 2px;
}

.checkout-form-panel .checkout-intro {
    margin-top: 0;
}

.admin-summary-panel h1,
.empty-state h2 {
    font-size: clamp(2.6rem, 5vw, 4.2rem);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.stat-card {
    display: grid;
    gap: 10px;
    padding: 22px;
    border-radius: 24px;
    background: rgba(231, 209, 176, 0.26);
}

.stat-card span {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(47, 36, 28, 0.68);
}

.stat-card strong {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--cocoa);
}

.orders-table-wrap {
    overflow-x: auto;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1180px;
}

.orders-table th,
.orders-table td {
    text-align: left;
    vertical-align: top;
    padding: 18px 16px;
    border-bottom: 1px solid rgba(76, 52, 36, 0.1);
}

.orders-table th {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(47, 36, 28, 0.7);
}

.orders-table td strong,
.orders-table td span {
    display: block;
}

.orders-table td span {
    margin-top: 6px;
    line-height: 1.55;
    color: rgba(47, 36, 28, 0.8);
}

.payment-meta {
    font-weight: 700;
    color: var(--olive-deep);
}

.status-form {
    display: grid;
    gap: 10px;
    min-width: 180px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status-new {
    background: rgba(185, 119, 67, 0.14);
    color: var(--caramel);
}

.status-packed {
    background: rgba(108, 119, 80, 0.16);
    color: var(--olive-deep);
}

.status-shipped {
    background: rgba(76, 52, 36, 0.12);
    color: var(--cocoa);
}

.status-completed {
    background: rgba(79, 89, 56, 0.18);
    color: var(--olive-deep);
}

.button-inline {
    min-height: 40px;
    padding: 0 16px;
}

.empty-state {
    padding: 12px 0;
}

.order-form {
    margin-top: 24px;
}

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

.form-field {
    display: grid;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--cocoa);
}

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

.form-field input,
.form-field textarea,
.form-field select,
.status-form select {
    width: 100%;
    border: 1px solid rgba(76, 52, 36, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink);
    padding: 14px 16px;
    font: inherit;
}

.form-field textarea {
    resize: vertical;
    min-height: 132px;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus,
.status-form select:focus {
    outline: 2px solid rgba(108, 119, 80, 0.25);
    border-color: rgba(108, 119, 80, 0.5);
}

.button-submit {
    border: 0;
    cursor: pointer;
    font: inherit;
}

.alert-list {
    border: 1px solid rgba(185, 119, 67, 0.24);
    border-radius: 18px;
    background: rgba(185, 119, 67, 0.08);
    padding: 18px 20px 18px 36px;
    color: var(--cocoa);
}

.summary-list {
    display: grid;
    gap: 14px;
    margin: 28px 0 0;
}

.summary-list div,
.confirmation-card p {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(76, 52, 36, 0.1);
}

.summary-list dt,
.summary-list dd {
    margin: 0;
}

.summary-list dd {
    font-weight: 700;
    color: var(--olive-deep);
}

.checkout-note,
.confirmation-card {
    margin-top: 28px;
    padding: 20px 22px;
    border-radius: 24px;
    background: rgba(231, 209, 176, 0.26);
}

.confirmation-card {
    display: grid;
    gap: 14px;
}

.confirmation-card p {
    margin: 0;
}

@media (min-width: 1800px) {
    .page-shell {
        width: calc(100% - (var(--page-gutter) * 2));
        max-width: var(--page-max);
        padding-top: 32px;
        padding-bottom: 64px;
    }

    .site-header {
        margin-bottom: 36px;
    }

    .brand-mark img {
        width: 280px;
    }

    .header-links {
        gap: 36px;
        font-size: 1.05rem;
    }

    .hero-banner {
        grid-template-columns: minmax(0, 1.08fr) minmax(560px, 0.92fr);
        gap: 40px;
        margin-bottom: 40px;
    }

    .hero-copy {
        padding: 72px;
    }

    .hero-card-inner {
        padding: 56px;
    }

    .hero-banner h1 {
        font-size: clamp(4.5rem, 3.8vw, 6rem);
        max-width: 10ch;
    }

    .hero-copy .hero-text,
    .section-heading,
    .story-panel:first-child {
        max-width: 68ch;
    }

    .hero-copy .hero-text,
    .hero-card p,
    .section-heading p,
    .cookie-card p,
    .story-panel p {
        font-size: 1.08rem;
    }

    .checkout-form-panel h1 {
        line-height: 1.08;
        margin-bottom: 18px;
        padding-bottom: 0;
    }

    .checkout-form-panel .checkout-intro {
        margin-top: 0;
        max-width: 58ch;
    }

    .cookie-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 28px;
    }

    .cookie-card {
        min-height: 320px;
        padding: 34px;
    }
}

@media (min-width: 3000px) {
    .brand-mark img,
    .logo-link img {
        width: 320px;
    }

    .header-links {
        gap: 42px;
        font-size: 1.16rem;
    }
}

.page-shell-product {
    min-height: 100vh;
}

.product-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 28px;
    align-items: start;
}

.product-image-frame,
.product-copy {
    border-radius: 36px;
    background: rgba(255, 250, 243, 0.88);
}

.product-image-frame {
    padding: 24px;
}

.product-img {
    width: 100%;
    border-radius: 24px;
    object-fit: cover;
    aspect-ratio: 4 / 5;
    box-shadow: var(--card-shadow);
}

.product-copy {
    padding: clamp(28px, 5vw, 48px);
}

.product-price {
    margin: 22px 0 0;
    font-size: 2rem;
    font-weight: 700;
    color: var(--olive-deep);
}

@media (max-width: 980px) {
    .hero-banner,
    .story-section,
    .product-layout,
    .cookie-grid,
    .checkout-layout,
    .payment-gateways,
    .form-grid,
    .admin-stats,
    .admin-filters {
        grid-template-columns: 1fr;
    }

    .cookie-grid {
        gap: 16px;
    }

    .payment-gateways {
        margin-top: 20px;
    }

    .gateway-card {
        padding: 18px;
    }
}

@media (max-width: 720px) {
    :root {
        --page-gutter: 10px;
    }

    .page-shell {
        width: calc(100% - (var(--page-gutter) * 2));
        padding-top: 18px;
        padding-bottom: 32px;
    }

    .site-header,
    .cookie-card-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-header {
        gap: 16px;
        margin-bottom: 22px;
        padding: 14px 0;
    }

    .brand-mark img,
    .logo-link img {
        width: clamp(146px, 52vw, 188px);
    }

    .header-links {
        width: 100%;
        justify-content: flex-start;
        gap: 10px 16px;
        flex-wrap: wrap;
        font-size: 0.9rem;
    }

    .hero-copy,
    .hero-card,
    .cookie-card,
    .story-panel,
    .product-copy,
    .product-image-frame,
    .checkout-panel,
    .gateway-card {
        border-radius: 24px;
    }

    .hero-copy,
    .hero-card-inner,
    .product-copy,
    .checkout-panel {
        padding: 20px;
    }

    .gateway-card {
        padding: 16px;
        gap: 10px;
    }

    .hero-banner h1 {
        max-width: 100%;
        font-size: clamp(2.3rem, 10.5vw, 3.45rem);
        line-height: 1;
    }

    .hero-banner,
    .cookie-section {
        margin-bottom: 22px;
    }

    .section-heading {
        margin-bottom: 16px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin: 22px 0 20px;
    }

    .button {
        width: 100%;
    }

    .payment-gateways {
        gap: 12px;
        margin-top: 18px;
    }

    .checkout-note,
    .confirmation-card {
        margin-top: 20px;
        padding: 18px 20px;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .header-links {
        gap: 8px 14px;
        font-size: 0.86rem;
    }

    .hero-copy,
    .hero-card-inner,
    .product-copy,
    .checkout-panel {
        padding: 18px;
    }

    .section-heading h2,
    .story-panel h2,
    .product-copy h1,
    .hero-card h2,
    .checkout-form-panel h1,
    .checkout-summary-panel h2,
    .admin-summary-panel h1,
    .empty-state h2 {
        font-size: clamp(2rem, 12vw, 2.85rem);
        line-height: 1;
    }
}


