@import url('https://fonts.googleapis.com/css2?family=Bitter:wght@500;600;700&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  --mint: #faf6f2;
  --mint-dark: #ebe3da;
  --charcoal: #1e3a5f;
  --charcoal-soft: #3d5a80;
  --gold: #c65d3b;
  --gold-light: #e8956f;
  --rose: #b84343;
  --white: #fff;
  --text: #1a2840;
  --muted: #5c6578;
  --font: 'DM Sans', system-ui, sans-serif;
  --serif: 'Bitter', Georgia, serif;
  --max: 1200px;
  --drawer-w: 380px;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); background: var(--white); color: var(--text); line-height: 1.6; }
body.drawer-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

.announce-bar {
  background: var(--charcoal); color: var(--white); text-align: center;
  padding: 10px 40px 10px 16px; font-size: 13px; font-weight: 600; position: relative;
}
.announce-bar button {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--white); cursor: pointer; font-size: 18px; opacity: 0.7;
}
.announce-bar.hidden { display: none; }
.announce-bar em { color: var(--gold-light); font-style: normal; }

.site-header { background: var(--white); border-bottom: 3px solid var(--gold); position: sticky; top: 0; z-index: 150; box-shadow: 0 4px 20px rgba(13,79,79,0.06); }
.header-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 20px; }
.logo { font-family: var(--serif); font-size: 1.65rem; font-weight: 700; color: var(--charcoal); }
.logo span { color: var(--gold); }
.main-nav { display: flex; gap: 24px; }
.main-nav a { font-size: 14px; font-weight: 600; color: var(--muted); transition: color 0.2s; }
.main-nav a:hover, .main-nav a.active { color: var(--charcoal); }
.header-icons { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  width: 42px; height: 42px; border: 1px solid var(--mint-dark); background: var(--mint);
  border-radius: 50%; cursor: pointer; font-size: 16px; position: relative; display: flex; align-items: center; justify-content: center;
}
.icon-btn .badge {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; background: var(--rose);
  color: var(--white); font-size: 10px; font-weight: 800; border-radius: 999px; display: none; align-items: center; justify-content: center;
}
.icon-btn .badge.show { display: flex; }
.nav-toggle { display: none; padding: 10px 16px; border: 1px solid var(--mint-dark); background: var(--mint); border-radius: 8px; cursor: pointer; font-weight: 700; font-size: 13px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; font-size: 14px; font-weight: 700; border-radius: 999px; border: none;
  cursor: pointer; font-family: var(--font); transition: all 0.2s;
}
.btn-dark { background: var(--charcoal); color: var(--white); }
.btn-dark:hover { background: #1a1f21; }
.btn-gold { background: var(--gold); color: var(--charcoal); }
.btn-gold:hover { background: var(--gold-light); }
.btn-outline { background: transparent; border: 2px solid var(--charcoal); color: var(--charcoal); }
.btn-sm { padding: 9px 18px; font-size: 12px; }

/* Hero slider */
.hero-slider { position: relative; background: var(--mint); overflow: hidden; }
.hero-slide {
  display: none; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  padding: 56px 0; min-height: 420px;
}
.hero-slide.active { display: grid; animation: fadeIn 0.6s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.hero-slide h1 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 16px; line-height: 1.15; }
.hero-slide p { font-size: 16px; color: var(--muted); margin: 0 0 24px; max-width: 420px; line-height: 1.65; }
.hero-slide img { border-radius: 16px; height: 360px; object-fit: cover; box-shadow: 0 24px 48px rgba(45,52,54,0.12); }
.hero-dots { display: flex; justify-content: center; gap: 8px; padding-bottom: 24px; }
.hero-dots button { width: 10px; height: 10px; border-radius: 999px; border: none; background: var(--mint-dark); cursor: pointer; }
.hero-dots button.active { background: var(--gold); width: 28px; }

.kicker { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.section-title { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 24px; }

/* Product cards — shop feel */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card {
  background: var(--white); border: 1px solid var(--mint-dark); border-radius: 16px; overflow: hidden;
  position: relative; transition: box-shadow 0.25s, transform 0.25s;
}
.product-card:hover { box-shadow: 0 16px 40px rgba(45,52,54,0.1); transform: translateY(-4px); }
.product-card .badge-sale {
  position: absolute; top: 12px; left: 12px; background: var(--rose); color: var(--white);
  font-size: 10px; font-weight: 800; padding: 4px 10px; border-radius: 999px; z-index: 2; text-transform: uppercase;
}
.product-card .wish-btn {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%;
  border: none; background: var(--white); cursor: pointer; font-size: 18px; z-index: 2; box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.product-card .wish-btn.active { color: var(--rose); }
.product-card .img-wrap { position: relative; overflow: hidden; }
.product-card img { width: 100%; height: 220px; object-fit: cover; transition: transform 0.4s; }
.product-card:hover img { transform: scale(1.05); }
.product-card .quick-overlay {
  position: absolute; inset: 0; background: rgba(45,52,54,0.45); display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.25s;
}
.product-card:hover .quick-overlay { opacity: 1; }
.product-card-body { padding: 16px 18px 20px; }
.product-card .stars { color: var(--gold); font-size: 12px; margin-bottom: 6px; letter-spacing: 1px; }
.product-card .stars span { color: var(--muted); font-size: 11px; margin-left: 4px; }
.product-card h3 { font-family: var(--serif); font-size: 1.05rem; margin: 0 0 8px; line-height: 1.3; }
.product-card .price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.product-card .price { font-size: 1.15rem; font-weight: 800; color: var(--charcoal); }
.product-card .compare { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.product-card .stock { font-size: 11px; color: var(--rose); font-weight: 700; margin-bottom: 10px; }
.product-card-actions { display: flex; gap: 8px; }
.product-card-actions .btn { flex: 1; padding: 10px; font-size: 11px; }

.shop-toolbar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  margin-bottom: 28px; padding: 16px 20px; background: var(--mint); border-radius: 12px;
}
.shop-toolbar select, .shop-toolbar input[type="text"] {
  padding: 10px 14px; border: 1px solid var(--mint-dark); border-radius: 8px; font-family: var(--font); font-size: 13px;
}
.cat-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-pill { padding: 8px 16px; font-size: 12px; font-weight: 700; border: 1px solid var(--mint-dark); background: var(--white); border-radius: 999px; cursor: pointer; }
.cat-pill.active, .cat-pill:hover { background: var(--charcoal); color: var(--white); border-color: var(--charcoal); }

/* Journal */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card { border-radius: 16px; overflow: hidden; border: 1px solid var(--mint-dark); transition: box-shadow 0.2s; }
.blog-card:hover { box-shadow: 0 12px 32px rgba(45,52,54,0.08); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-card-body { padding: 20px 22px 24px; background: var(--white); }
.blog-card .cat { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.blog-card h3 { font-family: var(--serif); font-size: 1.15rem; margin: 0 0 10px; line-height: 1.35; }
.blog-card p { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.blog-card .meta { font-size: 12px; font-weight: 600; color: var(--muted); }
.blog-card.hidden { display: none; }

.recently-viewed { padding: 48px 0; background: var(--mint); margin-top: 48px; }
.recently-viewed .mini-grid { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; }
.recently-viewed .mini-card { flex: 0 0 160px; background: var(--white); border-radius: 12px; overflow: hidden; border: 1px solid var(--mint-dark); }
.recently-viewed .mini-card img { height: 100px; object-fit: cover; width: 100%; }
.recently-viewed .mini-card p { padding: 10px 12px; font-size: 12px; font-weight: 700; margin: 0; }

/* Cart drawer */
.cart-drawer {
  position: fixed; top: 0; right: 0; width: var(--drawer-w); max-width: 100%; height: 100%;
  background: var(--white); z-index: 400; transform: translateX(100%); transition: transform 0.35s ease;
  box-shadow: -8px 0 32px rgba(0,0,0,0.12); display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(45,52,54,0.4); z-index: 399; opacity: 0; pointer-events: none; transition: opacity 0.35s; }
.drawer-backdrop.show { opacity: 1; pointer-events: auto; }
.drawer-head { padding: 20px 24px; border-bottom: 1px solid var(--mint-dark); display: flex; justify-content: space-between; align-items: center; }
.drawer-head h2 { font-family: var(--serif); margin: 0; font-size: 1.35rem; }
.drawer-close { background: none; border: none; font-size: 24px; cursor: pointer; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 24px; }
.drawer-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--mint-dark); align-items: center; }
.drawer-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.drawer-item h4 { font-size: 13px; margin: 0 0 4px; }
.drawer-item .line-price { font-weight: 800; font-size: 14px; color: var(--gold); }
.drawer-foot { padding: 20px 24px; border-top: 1px solid var(--mint-dark); background: var(--mint); }
.ship-progress { height: 6px; background: var(--mint-dark); border-radius: 999px; margin: 12px 0; overflow: hidden; }
.ship-progress span { display: block; height: 100%; background: var(--gold); border-radius: 999px; transition: width 0.3s; }
.drawer-foot .total { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.1rem; margin-bottom: 16px; }

/* Quick view modal */
.qv-modal { position: fixed; inset: 0; z-index: 500; display: none; align-items: center; justify-content: center; padding: 20px; }
.qv-modal.show { display: flex; }
.qv-backdrop { position: absolute; inset: 0; background: rgba(45,52,54,0.55); }
.qv-box {
  position: relative; background: var(--white); border-radius: 20px; max-width: 720px; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: hidden; max-height: 90vh; overflow-y: auto;
}
.qv-box img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.qv-content { padding: 32px 28px; }
.qv-close { position: absolute; top: 12px; right: 16px; background: var(--white); border: none; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 20px; z-index: 2; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

/* Cart page */
.cart-page { padding: 48px 0 80px; max-width: 900px; }
.cart-table .row { display: grid; grid-template-columns: 80px 1fr 120px 100px 40px; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--mint-dark); }
.cart-table img { width: 80px; height: 80px; object-fit: cover; border-radius: 10px; }
.promo-row { display: flex; gap: 10px; margin: 24px 0; }
.promo-row input { flex: 1; padding: 12px 16px; border: 1px solid var(--mint-dark); border-radius: 8px; }
.cart-summary-box { background: var(--mint); padding: 28px; border-radius: 16px; margin-top: 24px; }
.cart-summary-box .line { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 14px; }
.cart-summary-box .discount { color: var(--rose); font-weight: 700; }
.cart-summary-box .grand { font-size: 1.35rem; font-weight: 800; border-top: 2px solid var(--mint-dark); padding-top: 14px; margin-top: 14px; }

.wishlist-page .product-grid { margin-top: 24px; }
.empty-state { text-align: center; padding: 64px 24px; background: var(--mint); border-radius: 16px; }

.article-header { padding: 48px 0 24px; max-width: 720px; }
.article-header h1 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.75rem); margin: 0 0 14px; line-height: 1.12; }
.article-body { max-width: 680px; margin: 0 auto; padding-bottom: 72px; }
.article-body .lead-img { width: 100%; height: 400px; object-fit: cover; border-radius: 16px; margin-bottom: 32px; }
.article-body h2 { font-family: var(--serif); font-size: 1.35rem; margin: 32px 0 12px; }
.article-body p { font-size: 17px; line-height: 1.85; margin-bottom: 16px; color: var(--charcoal-soft); }
.article-body .quote { font-family: var(--serif); font-size: 1.4rem; font-style: italic; color: var(--gold); border-left: 4px solid var(--mint-dark); padding-left: 20px; margin: 28px 0; }

.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 48px 0 72px; }
.product-detail .thumbs { display: flex; gap: 10px; margin-top: 12px; }
.product-detail .thumbs button { border: 2px solid transparent; padding: 0; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; }
.product-detail .thumbs button.active { border-color: var(--gold); }
.product-detail .thumbs img { width: 72px; height: 72px; object-fit: cover; }
.product-detail .main-img { width: 100%; height: 440px; object-fit: cover; border-radius: 16px; }
.product-detail .price-lg { font-size: 1.75rem; font-weight: 800; margin: 16px 0; }
.qty-picker { display: inline-flex; align-items: center; border: 1px solid var(--mint-dark); border-radius: 8px; margin-right: 12px; }
.qty-picker button { width: 40px; height: 40px; border: none; background: var(--mint); cursor: pointer; font-weight: 800; }
.qty-picker span { width: 48px; text-align: center; font-weight: 700; }

.search-modal { position: fixed; inset: 0; z-index: 450; background: rgba(45,52,54,0.5); display: none; align-items: flex-start; justify-content: center; padding: 80px 20px; }
.search-modal.show { display: flex; }
.search-box { background: var(--white); border-radius: 16px; padding: 28px; width: min(480px,100%); }
.search-box input { width: 100%; padding: 14px; border: 1px solid var(--mint-dark); border-radius: 8px; font-size: 16px; margin-bottom: 12px; }
.search-box a { display: block; padding: 10px 0; border-bottom: 1px solid var(--mint-dark); font-size: 14px; }

#toastContainer { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 600; }
.toast {
  background: var(--charcoal); color: var(--white); padding: 14px 24px; border-radius: 999px;
  font-size: 14px; font-weight: 600; margin-top: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.15); animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

#cookieBar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 350; background: var(--charcoal); color: var(--white); padding: 16px 24px; transform: translateY(100%); transition: transform 0.3s; }
#cookieBar.show { transform: translateY(0); }
.cookie-inner { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cookie-inner p { margin: 0; font-size: 13px; flex: 1; }
.cookie-btns button { padding: 8px 18px; font-weight: 700; border: none; border-radius: 999px; cursor: pointer; margin-left: 8px; }
#cookieAccept { background: var(--gold); color: var(--charcoal); }

.site-footer { background: var(--charcoal); color: rgba(255,255,255,0.75); padding: 56px 0 28px; margin-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-col h4 { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-light); margin: 0 0 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.65); display: block; padding: 4px 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 12px; text-align: center; }

@media (max-width: 992px) {
  .hero-slide, .product-detail, .qv-box { grid-template-columns: 1fr; }
  .product-grid, .blog-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cart-table .row { grid-template-columns: 64px 1fr; gap: 8px; }
}
@media (max-width: 640px) {
  .main-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); padding: 16px; border-bottom: 1px solid var(--mint-dark); }
  .main-nav.open { display: flex; }
  .nav-toggle { display: inline-block; }
  .product-grid, .blog-grid { grid-template-columns: 1fr; }
}
