:root {
    --paper: #f7f1ea;
    --paper-deep: #efe4d8;
    --ink: #241c19;
    --ink-soft: #5c514c;
    --rose: #c4647a;
    --rose-deep: #9a445c;
    --sage: #5f7d6e;
    --line: #e4d5c8;
    --card: #fffdfb;
    --shadow: 0 12px 30px rgba(36, 28, 25, .06);
    --radius: 18px;
    --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
    --sans: "Outfit", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.announce {
    background: var(--ink);
    color: #f6efe8;
    text-align: center;
    font-size: .92rem;
    padding: 8px 16px;
}
.header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(247, 241, 234, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-row, .nav-row {
    display: flex;
    align-items: center;
    gap: 16px;
}
.header-row { min-height: 72px; }
.logo {
    font-family: var(--serif);
    font-weight: 560;
    font-size: 1.7rem;
    letter-spacing: .08em;
    text-decoration: none;
}
.logo span { color: var(--rose-deep); }
.search { flex: 1; display: flex; }
.search input, .field input, .field select, .field textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: white;
    border-radius: 999px;
    padding: 11px 16px;
}
.field textarea, .field select { border-radius: 14px; }
.search button, .btn {
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    background: var(--rose-deep);
    color: white;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn.secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.sage { background: var(--sage); }
.icon-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 560;
}
.badge {
    background: var(--rose);
    color: white;
    border-radius: 999px;
    min-width: 1.3rem;
    text-align: center;
    font-size: .75rem;
    padding: 1px 6px;
}
.nav-toggle { display: none; }
.nav-row { min-height: 46px; gap: 22px; font-size: .95rem; }
.nav-row a { text-decoration: none; }
.nav-row a:hover { color: var(--rose-deep); }

.hero {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 28px;
    align-items: center;
    padding: 42px 0 18px;
}
.eyebrow { letter-spacing: .16em; text-transform: uppercase; font-size: .75rem; color: var(--rose-deep); margin: 0 0 8px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 520; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1.02; margin: 0 0 12px; }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 38rem; }
.hero-card {
    background: linear-gradient(160deg, #f8d7df, #efe4d8 55%, #d7e4dc);
    border-radius: 28px;
    min-height: 280px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.section { padding: 28px 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cat, .card {
    background: var(--card);
    border-radius: var(--radius);
    text-decoration: none;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.cat { padding: 18px; min-height: 110px; display: flex; flex-direction: column; justify-content: space-between; }
.cat strong { font-family: var(--serif); font-size: 1.3rem; }
.card .photo {
    aspect-ratio: 4/5;
    width: 100%;
    object-fit: contain;
    object-position: center;
    background: var(--paper-deep);
    border-radius: 18px 18px 0 0;
}
.gallery-main {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    padding: 12px;
    background: var(--paper-deep);
    border-radius: 24px;
}
.gallery-main img {
    width: auto;
    max-width: 100%;
    max-height: min(78vh, 720px);
    height: auto;
    object-fit: contain;
    border-radius: 18px;
    cursor: zoom-in;
}
.zoom-btn {
    position: absolute;
    right: 14px;
    bottom: 14px;
    border: 0;
    border-radius: 999px;
    padding: 8px 14px;
    background: var(--ink);
    color: white;
    cursor: pointer;
}
.photo-zoom {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    background: rgba(36, 28, 25, .92);
}
.photo-zoom[hidden] { display: none; }
.zoom-bar {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px;
}
.zoom-bar button, .zoom-close {
    border: 0;
    border-radius: 999px;
    padding: 8px 14px;
    background: white;
    color: var(--ink);
    cursor: pointer;
}
.zoom-stage {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: none;
    cursor: grab;
}
.zoom-stage img {
    max-width: min(92vw, 1100px);
    max-height: 78vh;
    transform-origin: center;
    user-select: none;
    -webkit-user-drag: none;
}
.card .body, .pad { padding: 14px; }
.price { font-weight: 650; }
.price s { color: var(--ink-soft); font-weight: 450; margin-right: 6px; }
.muted { color: var(--ink-soft); }
.pill { display: inline-block; background: #f3e3df; color: var(--rose-deep); border-radius: 999px; padding: 2px 8px; font-size: .78rem; }

.shop-layout { display: grid; grid-template-columns: 220px 1fr; gap: 28px; padding: 28px 0 48px; }
.filters a { display: block; text-decoration: none; padding: 6px 0; }
.filters a.active { color: var(--rose-deep); font-weight: 650; }
.toolbar { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.pager { display: flex; gap: 8px; margin-top: 18px; }
.pager a, .pager span { text-decoration: none; padding: 6px 10px; border-radius: 999px; background: white; }

.product { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; padding: 28px 0 48px; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; }
.thumbs button { width: 72px; height: 72px; border: 1px solid var(--line); padding: 0; border-radius: 10px; background: var(--paper-deep) center/contain no-repeat; cursor: pointer; }
.choice { display: block; border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 8px; background: white; }
.choice:has(input:checked) { border-color: var(--rose-deep); }
.qty { width: 80px; border-radius: 12px; border: 1px solid var(--line); padding: 10px; }

.cart-line, .summary, .panel {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.cart-line { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; padding: 14px; margin-bottom: 12px; }
.cart-line .photo { width: 84px; height: 84px; object-fit: contain; border-radius: 12px; background: var(--paper-deep) center/contain no-repeat; }
.summary, .panel { padding: 18px; }
.row { display: flex; justify-content: space-between; gap: 12px; margin: 8px 0; }
.total { font-size: 1.3rem; font-family: var(--serif); }
.split { display: grid; grid-template-columns: 1.3fr .7fr; gap: 24px; align-items: start; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: .86rem; margin-bottom: 4px; }
.alert { background: #fde8ea; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.ok { background: #e5f2ea; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.account-nav { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.account-nav a { text-decoration: none; }

.wa-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 40;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(36, 28, 25, .2);
    text-decoration: none;
}
.wa-float:hover { background: #1ebe5b; }
.wa-float svg { width: 32px; height: 32px; fill: currentColor; }

.footer { background: var(--ink); color: #f6efe8; margin-top: 40px; padding: 36px 0 20px; }
.footer a { color: inherit; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 18px; }
.footer h3 { margin-top: 0; }
.prose { white-space: pre-wrap; }

@media (max-width: 900px) {
    .hero, .product, .shop-layout, .split, .footer-grid { grid-template-columns: 1fr; }
    .grid, .cats { grid-template-columns: repeat(2, 1fr); }
    .nav-toggle { display: inline-flex; background: transparent; border: 0; font-weight: 650; }
    .nav-row { display: none; padding-bottom: 12px; }
    .nav-row.open { display: flex; flex-direction: column; align-items: flex-start; }
    .search { order: 3; flex-basis: 100%; }
    .header-row { flex-wrap: wrap; padding: 10px 0; }
}
@media (max-width: 560px) {
    .grid { grid-template-columns: 1fr 1fr; }
    .cart-line { grid-template-columns: 72px 1fr; }
}
