:root {
    --ink: #26313d;
    --muted: #687480;
    --paper: #fbfaf8;
    --surface: #ffffff;
    --gold: #b89470;
    --gold-dark: #8e6d4e;
    --line: #e9e3dc;
    --shadow: 0 22px 60px rgba(38, 49, 61, 0.11);
    --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}

a { color: inherit; }

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

.skip-link {
    position: fixed;
    left: 1rem;
    top: -5rem;
    z-index: 100;
    padding: .7rem 1rem;
    background: var(--ink);
    color: #fff;
}

.skip-link:focus { top: 1rem; }

.site-header,
.site-footer,
.hero,
.benefits,
.catalog,
.product-detail,
.cart-page,
.checkout-page,
.order-status-page,
.error-page {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 96px;
    gap: 2rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: .8rem;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid var(--gold);
    border-radius: 50%;
    color: var(--gold-dark);
    font-family: Georgia, serif;
    font-size: .86rem;
    letter-spacing: .08em;
}

.brand strong,
.brand small { display: block; }
.brand strong { font-family: Georgia, serif; font-size: 1.15rem; }
.brand small { color: var(--muted); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }

.site-header nav,
.site-footer nav { display: flex; align-items: center; gap: 1.4rem; }
.site-header nav a,
.site-footer nav a { text-decoration: none; }
.footer-link { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.site-header nav a:hover,
.site-footer nav a:hover,
.footer-link:hover { color: var(--gold-dark); }

.cart-link {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: .55rem .75rem .55rem 1rem;
}

.cart-link span {
    display: inline-grid;
    width: 26px;
    height: 26px;
    margin-left: .35rem;
    place-items: center;
    border-radius: 50%;
    background: var(--gold);
    color: #fff;
}

.hero {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    min-height: 570px;
    gap: clamp(3rem, 8vw, 8rem);
    padding-block: 60px 90px;
}

.eyebrow {
    margin: 0 0 .8rem;
    color: var(--gold-dark);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

h1, h2, h3, h4 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; line-height: 1.08; }
.hero h1 { max-width: 720px; margin: 0; font-size: clamp(3rem, 6vw, 5.4rem); letter-spacing: -.035em; }
.hero-copy > p:not(.eyebrow) { max-width: 630px; margin: 1.6rem 0 2rem; color: var(--muted); font-size: 1.1rem; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: .8rem 1.4rem;
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
}

.button:hover { background: var(--gold-dark); }
.button:disabled { cursor: not-allowed; opacity: .5; }
.button-secondary { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.button-secondary:hover { background: var(--line); color: var(--ink); }

.hero-card {
    position: relative;
    display: flex;
    min-height: 320px;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 5vw, 4.5rem);
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(135deg, #caa987, #9d7755);
    box-shadow: var(--shadow);
    color: #fff;
    transform: rotate(2deg);
}

.hero-visual {
    position: relative;
    isolation: isolate;
}

.hero-visual::before {
    position: absolute;
    z-index: -1;
    inset: 12% -4% -8% 8%;
    border-radius: 32px;
    background: #eee7df;
    content: "";
    transform: rotate(-3deg);
}

.hero-visual > img,
.hero-voucher-preview {
    width: 100%;
    aspect-ratio: 1191 / 567;
    border-radius: 22px;
    box-shadow: var(--shadow);
    object-fit: cover;
    transform: rotate(2deg);
}

.hero-voucher-preview > img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.hero-voucher-preview .voucher-preview-heading { font-size: clamp(.9rem, 1.7vw, 1.45rem); }
.hero-voucher-preview .voucher-preview-name { font-size: clamp(.72rem, 1.2vw, 1rem); }

.hero-card::before {
    position: absolute;
    width: 250px;
    height: 250px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 50%;
    content: "";
    right: -70px;
    top: -80px;
}

.hero-card span { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.hero-card strong { margin: 1rem 0 .2rem; font-family: Georgia, serif; font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 500; }
.hero-card small { opacity: .78; }

.benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-bottom: 100px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--line);
}

.benefits p { margin: 0; padding: 1.5rem 1.7rem; background: var(--surface); }
.benefits strong, .benefits span { display: block; }
.benefits span { margin-top: .2rem; color: var(--muted); font-size: .9rem; }

.catalog { padding-bottom: 120px; }
.section-heading { max-width: 680px; margin-bottom: 2rem; }
.section-heading h2 { margin: 0; font-size: clamp(2.4rem, 4vw, 4rem); }
.section-heading > p:last-child:not(.eyebrow) { margin: 1rem 0 0; color: var(--muted); }
.category-nav { display: flex; gap: .65rem; margin-bottom: 4.5rem; overflow-x: auto; padding-bottom: .35rem; scrollbar-width: thin; }
.category-nav a { flex: none; padding: .62rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: .9rem; font-weight: 700; text-decoration: none; }
.category-nav a:hover { border-color: var(--gold); color: var(--gold-dark); }
.category + .category { margin-top: 5rem; }
.category-heading { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.3rem; }
.category-heading h3 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.category-heading span { color: var(--muted); font-size: .86rem; }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.product-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 15px 40px rgba(38,49,61,.09); }
.product-image { position: relative; display: grid; aspect-ratio: 1191 / 567; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); background: linear-gradient(145deg, #eee7df, #d7c2ac); text-decoration: none; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-placeholder { color: rgba(38,49,61,.4); font-family: Georgia, serif; font-size: 3rem; }
.voucher-preview { position: relative; }
.voucher-overlay { position: absolute; inset: 0; pointer-events: none; text-align: center; }
.voucher-preview-heading,
.voucher-preview-name { position: absolute; left: 27%; display: grid; width: 46%; place-items: center; overflow: hidden; }
.voucher-preview-heading { top: 32%; height: 15%; color: #b28e69; font-family: Georgia, serif; font-size: clamp(.58rem, .85vw, .78rem); font-weight: 700; line-height: 1; }
.voucher-preview-name { top: 74%; height: 22%; color: #a57d55; font-family: Georgia, serif; font-size: clamp(.48rem, .72vw, .68rem); line-height: 1.08; }
.voucher-preview-meta { position: absolute; top: 43%; left: 31%; display: grid; width: 38%; height: 18%; place-items: center; color: #26313d; font-size: clamp(.38rem, .55vw, .52rem); font-weight: 700; line-height: 1.1; }
.product-content { display: flex; flex: 1; flex-direction: column; padding: 1.35rem; }
.product-content h4 { margin: 0 0 1.5rem; font-size: 1.35rem; }
.product-content h4 a { text-decoration: none; }
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; }
.product-meta strong { font-size: .98rem; }
.text-link { color: var(--gold-dark); font-weight: 700; text-underline-offset: .25em; }

.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 8vw, 7rem); padding-block: 70px 120px; }
.detail-media { align-self: center; aspect-ratio: 1191 / 567; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, #eee7df, #d7c2ac); box-shadow: 0 18px 50px rgba(38,49,61,.08); }
.detail-voucher-preview { width: 100%; height: 100%; }
.detail-media img { width: 100%; height: 100%; object-fit: cover; }
.detail-voucher-preview .voucher-preview-heading { font-size: clamp(.8rem, 1.7vw, 1.35rem); }
.detail-voucher-preview .voucher-preview-name { font-size: clamp(.68rem, 1.25vw, 1rem); }
.detail-voucher-preview .voucher-preview-meta { font-size: clamp(.58rem, 1vw, .82rem); }
.detail-placeholder { display: grid; min-height: 560px; place-items: center; color: rgba(38,49,61,.4); font-family: Georgia, serif; font-size: 5rem; }
.detail-copy { align-self: center; }
.back-link { display: inline-block; margin-bottom: 2.5rem; color: var(--muted); text-decoration: none; }
.detail-copy h1 { margin: 0; font-size: clamp(2.8rem, 5vw, 4.8rem); }
.detail-price { margin: 1.2rem 0; font-size: 1.25rem; font-weight: 700; }
.rich-text { margin: 1.5rem 0 2rem; color: var(--muted); }
.form-note { max-width: 460px; color: var(--muted); font-size: .82rem; }

.product-form { display: grid; max-width: 500px; gap: 1rem; }
.product-form label,
.checkout-fields > label,
.field-grid label,
.cart-actions label { display: grid; gap: .4rem; font-size: .9rem; font-weight: 700; }
.product-form label span small,
.checkout-fields label span small { color: var(--muted); font-weight: 400; }
input,
select,
textarea {
    width: 100%;
    min-height: 46px;
    padding: .7rem .85rem;
    border: 1px solid #d9d1c8;
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}
textarea { resize: vertical; }
input:focus,
select:focus,
textarea:focus { border-color: var(--gold-dark); outline: 3px solid rgba(184,148,112,.2); }
.quantity-field { max-width: 110px; }

.cart-page,
.checkout-page { min-height: 65vh; padding-block: 60px 120px; }
.cart-page .section-heading,
.checkout-page .section-heading { margin-bottom: 2.5rem; }
.cart-page .section-heading h1,
.checkout-page .section-heading h1,
.order-status-page h1 { margin: 0; font-size: clamp(2.8rem, 5vw, 4.8rem); }
.empty-state { padding: 4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-align: center; }
.empty-state h2 { margin-top: 0; font-size: 2rem; }
.empty-state p { margin-bottom: 2rem; color: var(--muted); }
.notice { margin-bottom: 1.5rem; padding: 1rem 1.2rem; border-radius: 12px; }
.notice p { margin: 0; }
.notice-error { border: 1px solid #e2bcbc; background: #fff1f1; color: #7a2828; }
.notice-success { border: 1px solid #b9d8c3; background: #effaf2; color: #285f3a; }
.cart-layout,
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: 2.2rem; }
.cart-items { display: grid; gap: 1rem; }
.cart-item { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 1.2rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.cart-thumb { display: grid; aspect-ratio: 1191 / 567; align-self: start; place-items: center; overflow: hidden; border-radius: 12px; background: linear-gradient(145deg, #eee7df, #d7c2ac); color: rgba(38,49,61,.45); font-family: Georgia,serif; font-size: 1.5rem; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-copy h2 { margin: 0 0 .5rem; font-size: 1.45rem; }
.cart-item-copy p { margin: .2rem 0; color: var(--muted); font-size: .9rem; }
.cart-item-copy strong { display: block; margin-top: .7rem; }
.cart-actions { display: grid; align-content: start; justify-items: end; gap: .45rem; }
.cart-actions input { width: 82px; min-height: 40px; }
.text-button { padding: .2rem 0; border: 0; background: transparent; color: var(--gold-dark); font: inherit; font-size: .85rem; font-weight: 700; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.text-button.danger { color: #9a3d3d; }
.cart-summary { position: sticky; top: 1rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 12px 35px rgba(38,49,61,.06); }
.cart-summary p { display: flex; justify-content: space-between; gap: 1rem; margin: 0; }
.cart-summary > small { display: block; margin: .8rem 0 1.2rem; color: var(--muted); }
.cart-summary .button { width: 100%; }

.checkout-fields { display: grid; gap: 1.4rem; }
.checkout-fields fieldset,
.company-fields { margin: 0; padding: 1.4rem; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.checkout-fields legend { padding: 0 .4rem; font-family: Georgia,serif; font-size: 1.45rem; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.choice { display: flex !important; align-items: flex-start; gap: .7rem; margin: .7rem 0; font-weight: 500 !important; }
.choice input { width: 18px; min-height: 18px; margin-top: .15rem; }
.field-error { display: block; color: #9a3d3d; font-weight: 600; }
.discount-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: .8rem; }
.discount-entry label { display: grid; gap: .4rem; font-size: .9rem; font-weight: 700; }
.discount-entry .button { min-height: 46px; white-space: nowrap; }
.discount-confirmation { margin: .8rem 0 0; color: #285f3a; font-size: .9rem; font-weight: 700; }
.company-fields summary { cursor: pointer; font-weight: 700; }
.company-fields[open] summary { margin-bottom: 1.2rem; }
.terms-choice { padding: .5rem; }
.checkout-summary h2 { margin-top: 0; }
.checkout-summary > p { padding: .65rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.checkout-summary .summary-discount { color: #285f3a; }
.checkout-summary .summary-total { margin: .6rem 0 1.2rem; border: 0; font-size: 1.05rem; }

.order-status-page { min-height: 65vh; padding-block: 12vh; text-align: center; }
.order-status-page > p:not(.eyebrow) { color: var(--muted); }
.order-status-card { max-width: 460px; margin: 2rem auto; padding: 1.3rem; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); text-align: left; }
.order-status-card p { display: flex; justify-content: space-between; gap: 1rem; margin: .5rem 0; }

.error-page { min-height: 60vh; padding-block: 12vh; text-align: center; }
.error-page h1 { margin: 0; font-size: clamp(3rem, 6vw, 5rem); }
.error-page p:not(.eyebrow) { margin: 1rem 0 2rem; color: var(--muted); }
.legal-page { width: min(860px, calc(100% - 40px)); min-height: 60vh; margin: 0 auto; padding-block: 80px 120px; }
.legal-page h1 { margin: 0; font-size: clamp(2.8rem, 5vw, 4.8rem); }
.legal-copy { margin: 2.5rem 0; padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.legal-copy p { line-height: 1.75; }
.legal-copy h2 { margin: 2.7rem 0 1rem; font-family: Georgia, serif; font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 500; }
.legal-copy h2:first-child { margin-top: 0; }
.legal-copy h3 { margin: 2rem 0 .8rem; }
.legal-copy ul { margin: .8rem 0 1.4rem; padding-left: 1.4rem; }
.legal-copy li { margin: .55rem 0; line-height: 1.65; }
.legal-copy p:first-child { margin-top: 0; }
.legal-copy p:last-child { margin-bottom: 0; }

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding-block: 45px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .9rem;
}
.site-footer p { margin: .25rem 0 0; }

.cookie-consent {
    position: fixed;
    z-index: 90;
    right: 1.25rem;
    bottom: 1.25rem;
    left: 1.25rem;
    display: flex;
    width: min(920px, calc(100% - 2.5rem));
    margin-inline: auto;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.25rem 1.4rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 20px 70px rgba(38,49,61,.2);
}
.cookie-consent[hidden] { display: none; }
.cookie-consent strong { font-family: Georgia, serif; font-size: 1.2rem; }
.cookie-consent p { max-width: 590px; margin: .25rem 0 0; color: var(--muted); font-size: .86rem; }
.cookie-actions { display: flex; flex: none; gap: .6rem; }

@media (max-width: 820px) {
    .site-header { min-height: 78px; }
    .site-header nav > a:not(.cart-link) { display: none; }
    .hero { grid-template-columns: 1fr; min-height: 0; gap: 3rem; padding-block: 45px 70px; }
    .hero-card { min-height: 250px; transform: none; }
    .hero-visual > img,
    .hero-voucher-preview { transform: none; }
    .benefits { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-detail { grid-template-columns: 1fr; padding-top: 30px; }
    .cart-layout,
    .checkout-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
    .detail-placeholder { min-height: 360px; }
}

@media (max-width: 560px) {
    .discount-entry { grid-template-columns: 1fr; }
    .site-header,
    .site-footer,
    .hero,
    .benefits,
    .catalog,
    .product-detail,
    .cart-page,
    .checkout-page,
    .order-status-page,
    .legal-page,
    .error-page { width: min(100% - 28px, 1180px); }
    .brand small { display: none; }
    .hero h1 { font-size: 2.85rem; }
    .hero-card { min-height: 210px; padding: 2rem; }
    .benefits { margin-bottom: 75px; }
    .product-grid { grid-template-columns: 1fr; }
    .product-image { min-height: 0; }
    .cart-item { grid-template-columns: 100px 1fr; }
    .cart-actions { grid-column: 1 / -1; grid-template-columns: auto auto auto; align-items: end; justify-items: start; }
    .field-grid { grid-template-columns: 1fr; }
    .site-footer { flex-direction: column; }
    .site-footer nav { align-items: flex-start; flex-direction: column; gap: .6rem; }
    .cookie-consent { align-items: stretch; flex-direction: column; gap: 1rem; }
    .cookie-actions { display: grid; grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
