:root {
  --wine: #6E2A3A; --wine-dark: #4A1B27; --blush: #F3D8D9;
  --gold: #B98B37; --cream: #FDF1F1; --ivory: #FFFFFF;
  --charcoal: #2B211F; --line: rgba(110,42,58,0.13);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background:
    radial-gradient(ellipse 900px 500px at 15% -5%, rgba(243,216,217,0.55), transparent),
    radial-gradient(ellipse 700px 600px at 100% 15%, rgba(110,42,58,0.06), transparent),
    var(--cream);
  color: var(--charcoal); font-family: 'Jost', sans-serif; font-weight: 300; line-height: 1.5;
}
h1,h2,h3 { font-family: 'Cormorant Garamond', serif; font-weight: 500; color: var(--wine-dark); }
.eyebrow { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.eyebrow-rule { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.eyebrow-rule::before { content: ""; width: 34px; height: 1.5px; background: var(--gold); }
button { font-family: inherit; cursor: pointer; border: none; }
img { max-width: 100%; display: block; }

header { position: sticky; top: 0; z-index: 40; background: rgba(253,241,241,0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); padding: 16px 6vw; display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-style: italic; color: var(--wine-dark); cursor: pointer; }
.nav-links { display: flex; gap: 10px; align-items: center; }
.nav-btn { background: transparent; color: var(--wine-dark); padding: 8px 16px; font-size: 0.8rem; letter-spacing: 0.04em; border: 1px solid var(--line); }
.cart-btn { background: var(--wine); color: #fff; padding: 8px 18px; border-radius: 999px; font-size: 0.82rem; display: flex; align-items: center; gap: 8px; }
.cart-count { background: var(--gold); color: var(--wine-dark); border-radius: 50%; width: 19px; height: 19px; font-size: 0.68rem; display: flex; align-items: center; justify-content: center; font-weight: 600; }

.view { max-width: 1300px; margin: 0 auto; padding: 6vh 6vw; }
.hidden { display: none !important; }

.collection-head { text-align: center; margin-bottom: 30px; }
.site-footer { margin-top: 60px; border-top: 1px solid var(--line); padding: 50px 6vw 26px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; max-width: 1300px; margin: 0 auto; }
.footer-brand p { font-size: 0.85rem; color: rgba(43,33,31,0.65); margin-top: 12px; max-width: 34ch; }
.footer-col h5 { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wine-dark); font-weight: 500; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 0.85rem; color: rgba(43,33,31,0.7); margin-bottom: 10px; cursor: pointer; text-decoration: none; }
.footer-col a:hover { color: var(--wine); }
.footer-bottom { max-width: 1300px; margin: 40px auto 0; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; color: rgba(43,33,31,0.5); }
.footer-bottom a { color: rgba(43,33,31,0.35); text-decoration: none; }
@media (max-width: 700px) {
  .footer-top { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .footer-brand p { margin-left: auto; margin-right: auto; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}
.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; padding: 30px 0 10px; border-top: 1px solid var(--line); }
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item h4 { font-family: 'Jost'; font-size: 0.88rem; font-weight: 500; color: var(--wine-dark); }
.trust-item p { font-size: 0.76rem; color: rgba(43,33,31,0.6); margin-top: 2px; }
.cat-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 50px 0 20px; }
.cat-preview-card { position: relative; aspect-ratio: 3/4; border-radius: 4px; background-size: cover; background-position: center; cursor: pointer; overflow: hidden; box-shadow: 0 14px 34px rgba(74,27,39,0.14); transition: transform 0.25s ease; }
.cat-preview-card:hover { transform: translateY(-4px); }
.cat-preview-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(43,20,25,0.65), transparent 55%); }
.cat-preview-card span { position: absolute; bottom: 18px; left: 20px; color: #fff; font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; z-index: 2; font-style: italic; }
@media (max-width: 760px) {
  .trust-strip { grid-template-columns: 1fr 1fr; }
  .cat-preview { grid-template-columns: 1fr; }
}
.back-btn { background: none; color: var(--wine-dark); font-size: 0.85rem; letter-spacing: 0.02em; padding: 8px 0; margin-bottom: 20px; display: inline-flex; align-items: center; gap: 6px; }
.back-btn:hover { text-decoration: underline; }
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 30px; padding: 5vh 0 7vh; }
.hero-text h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); line-height: 1.08; margin-top: 8px; }
.hero-text h1 em { font-style: italic; color: var(--wine); }
.hero-sub { margin-top: 16px; max-width: 42ch; font-size: 1rem; color: rgba(43,33,31,0.7); }
.hero-cta { display: inline-block; margin-top: 26px; text-decoration: none; }
.hero-art { position: relative; height: 420px; width: 100%; }
.hero-photo { position: absolute; background-size: cover; background-position: center; border: 7px solid var(--ivory); box-shadow: 0 22px 50px rgba(74,27,39,0.22); border-radius: 3px; }
.hero-photo-main { width: 230px; height: 310px; top: 10px; left: 60px; z-index: 2; transform: rotate(-3deg); }
.hero-photo-2 { width: 165px; height: 200px; top: 0; right: 10px; z-index: 1; transform: rotate(5deg); }
.hero-photo-3 { width: 155px; height: 155px; bottom: 0; right: 60px; z-index: 3; transform: rotate(-4deg); }
.hero-badge { position: absolute; background: var(--wine); color: #fff; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; z-index: 4; box-shadow: 0 6px 16px rgba(74,27,39,0.3); }
.badge-1 { bottom: 30px; left: 30px; }
.badge-2 { top: 165px; right: 20px; }
.badge-3 { bottom: 130px; right: 30px; background: var(--gold); color: var(--wine-dark); }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 2vh; }
  .hero-text { order: 2; }
  .hero-art { order: 1; height: 340px; margin-bottom: 10px; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .eyebrow-rule { justify-content: center; }
  .hero-photo-main { width: 175px; height: 235px; left: 30px; }
  .hero-photo-2 { width: 125px; height: 150px; }
  .hero-photo-3 { width: 115px; height: 115px; right: 30px; }
}
.cat-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 40px; flex-wrap: wrap; }
.cat-tab { background: var(--ivory); border: 1px solid var(--line); color: var(--charcoal); padding: 9px 22px; font-size: 0.82rem; letter-spacing: 0.04em; }
.cat-tab.active { background: var(--wine); color: #fff; border-color: var(--wine); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 30px; }
.card { background: var(--ivory); border: 1px solid var(--line); display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; overflow: hidden; }
.card:hover { box-shadow: 0 18px 40px rgba(74,27,39,0.12); transform: translateY(-3px); }
.card-art { aspect-ratio: 3/4; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; transition: transform 0.4s ease; }
.card:hover .card-art { transform: scale(1.05); }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-size: 1.25rem; }
.desc { font-size: 0.84rem; color: rgba(43,33,31,0.65); flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.price { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; color: var(--wine); font-weight: 600; }
.add-btn { background: transparent; border: 1px solid var(--wine); color: var(--wine); padding: 8px 16px; font-size: 0.76rem; letter-spacing: 0.05em; text-transform: uppercase; }
.add-btn:hover { background: var(--wine); color: #fff; }
.size-row { display: flex; gap: 6px; margin: 4px 0 2px; }
.size-btn { background: var(--ivory); border: 1px solid var(--line); color: var(--charcoal); padding: 5px 10px; font-size: 0.72rem; letter-spacing: 0.03em; }
.size-btn.active { background: var(--wine); color: #fff; border-color: var(--wine); }
.empty-state { text-align: center; padding: 80px 20px; color: rgba(43,33,31,0.55); }
.empty-state a { color: var(--wine); text-decoration: underline; cursor: pointer; }

/* Admin */
.admin-gate { max-width: 380px; margin: 10vh auto; text-align: center; }
.admin-gate input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); background: var(--ivory); margin: 16px 0; font-size: 1rem; text-align: center; }
.admin-panel { max-width: 720px; margin: 0 auto; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--wine-dark); margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); background: var(--ivory); padding: 11px 13px; font-family: 'Jost'; font-size: 0.92rem; }
.field textarea { resize: vertical; min-height: 60px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.btn-primary { background: var(--wine); color: #fff; padding: 13px 28px; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; transition: transform 0.15s ease, box-shadow 0.15s ease; box-shadow: 0 10px 24px rgba(74,27,39,0.18); }
.btn-primary:hover { background: var(--wine-dark); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(74,27,39,0.26); }
.admin-list { margin-top: 40px; }
.admin-row { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.admin-row .thumb { width: 50px; height: 64px; background-size: cover; background-position: center; background-color: var(--blush); flex-shrink: 0; }
.admin-row .info { flex: 1; }
.admin-row .info h4 { font-family: 'Jost'; font-weight: 500; font-size: 0.95rem; }
.admin-row .info .p { color: var(--wine); font-size: 0.85rem; }
.del-btn { background: none; color: #a33; font-size: 0.78rem; text-decoration: underline; }
.note { font-size: 0.78rem; color: rgba(43,33,31,0.55); margin-top: -6px; margin-bottom: 18px; }
.status-msg { font-size: 0.85rem; padding: 10px 14px; margin-bottom: 16px; border-radius: 2px; }
.status-msg.ok { background: #E3F2E1; color: #2B5C2B; }
.status-msg.err { background: #FBE3E3; color: #8C2B2B; }

/* Cart drawer + checkout modal */
.overlay { position: fixed; inset: 0; background: rgba(43,33,31,0.45); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 50; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 92vw); background: var(--cream); z-index: 51; box-shadow: -10px 0 40px rgba(0,0,0,0.15); transform: translateX(100%); transition: transform .3s; display: flex; flex-direction: column; }
.drawer.open { transform: translateX(0); }
.drawer-head { padding: 22px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.close-x { background: none; font-size: 1.3rem; color: var(--wine-dark); }
.drawer-items { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer-item { display: flex; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); align-items: center; }
.drawer-item .swatch { width: 50px; height: 64px; background-size: cover; background-position: center; background-color: var(--blush); flex-shrink: 0; }
.qty-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.qty-row button { background: var(--blush); width: 22px; height: 22px; border-radius: 50%; font-size: 0.85rem; }
.remove-link { font-size: 0.72rem; color: rgba(43,33,31,0.5); text-decoration: underline; background: none; }
.drawer-empty { padding: 60px 20px; text-align: center; color: rgba(43,33,31,0.5); font-size: 0.9rem; }
.drawer-foot { padding: 20px 24px 26px; border-top: 1px solid var(--line); }
.total-row { display: flex; justify-content: space-between; font-size: 1.05rem; margin-bottom: 14px; }
.total-row .amt { font-family: 'Cormorant Garamond', serif; font-weight: 600; color: var(--wine); font-size: 1.35rem; }
.checkout-btn { width: 100%; background: var(--wine); color: #fff; padding: 14px; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
.checkout-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.modal-wrap { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; background: rgba(43,33,31,0.55); opacity: 0; pointer-events: none; transition: opacity .25s; padding: 20px; }
.modal-wrap.open { opacity: 1; pointer-events: auto; }
.modal { background: var(--ivory); max-width: 440px; width: 100%; max-height: 88vh; overflow-y: auto; padding: 30px 28px; position: relative; }
.modal-close { position: absolute; top: 16px; right: 18px; background: none; font-size: 1.3rem; color: var(--wine-dark); }
.order-summary { background: var(--blush); padding: 14px 16px; font-size: 0.85rem; margin: 16px 0; }
.order-summary .line { display: flex; justify-content: space-between; margin-bottom: 4px; }
.pay-buttons { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.btn-gpay { background: var(--wine); color: #fff; padding: 14px; font-size: 0.85rem; }
.qr-box { text-align: center; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
.qr-box p { font-size: 0.78rem; color: rgba(43,33,31,0.6); margin-top: 8px; }
#qrcode { display: flex; justify-content: center; margin-top: 10px; }

.track-card { background: var(--ivory); border: 1px solid var(--line); border-radius: 6px; padding: 16px 18px; margin-bottom: 14px; box-shadow: 0 6px 18px rgba(74,27,39,0.08); }
.track-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.track-date { font-size: 0.76rem; color: rgba(43,33,31,0.5); letter-spacing: 0.02em; }
.track-badge { background: var(--blush); color: var(--wine-dark); font-size: 0.68rem; letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; font-weight: 500; }
.track-items { font-size: 0.92rem; color: var(--charcoal); margin-bottom: 12px; line-height: 1.4; }
.track-footer { display: flex; justify-content: space-between; align-items: flex-end; padding-top: 10px; border-top: 1px dashed var(--line); }
.track-addr { font-size: 0.76rem; color: rgba(43,33,31,0.55); max-width: 70%; line-height: 1.4; }
.track-price { font-family: 'Cormorant Garamond', serif; font-weight: 600; color: var(--wine); font-size: 1.15rem; white-space: nowrap; }

.track-detail { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.track-detail.hidden { display: none; }
.track-detail-row { display: flex; justify-content: space-between; font-size: 0.82rem; margin-bottom: 8px; color: rgba(43,33,31,0.75); }
.track-contact-btn { width: 100%; background: var(--blush); color: var(--wine-dark); border: none; padding: 10px; font-size: 0.78rem; margin-top: 6px; border-radius: 4px; }
.track-expand-btn { background: none; border: none; color: var(--wine); font-size: 0.76rem; margin-top: 10px; padding: 0; text-decoration: underline; }
.status-placed { background: var(--blush); color: var(--wine-dark); }
.status-processing { background: #FDEBC8; color: #8A5A00; }
.status-dispatched { background: #D6E8FA; color: #1B5A8C; }
.status-delivered { background: #D9EFD9; color: #1F6B1F; }
.status-cancelled { background: #F5D6D6; color: #8C2B2B; }
.btn-cod { background: transparent; border: 1px solid var(--wine); color: var(--wine); padding: 14px; font-size: 0.85rem; }
.btn-cod:hover { background: var(--blush); }
