:root {
  --ink: #141210;
  --ink-soft: #282420;
  --muted: #6b645c;
  --paper: #f8f5ee;
  --paper-subtle: #f3efe5;
  --cream: #ece5d6;
  --white: #ffffff;
  --red: #a32227;
  --red-dark: #78181c;
  --gold: #c9933e;
  --gold-light: #edd6a8;
  --line: rgba(20, 18, 16, 0.12);
  --radius-sm: 8px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 4px 14px rgba(20,18,16,0.06);
  --shadow: 0 16px 40px rgba(20, 18, 16, 0.10);
  --shadow-lg: 0 24px 60px rgba(20, 18, 16, 0.16);
  --transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
button, input, select { font: inherit; }

.container { max-width: 1360px; margin: auto; padding: 0 24px; }
.section { padding: 80px 0; }

/* Announcement Bar */
.announcement {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 10px 20px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}
.announcement span { color: var(--gold); }

/* Header & Navigation */
.header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(248, 245, 238, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: var(--transition);
}
.nav {
  max-width: 1360px;
  margin: auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand img { height: 54px;
  width: auto;
  object-fit: contain;
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-name {
  font-family: 'DM Sans', sans-serif;
  font-weight: 900;
  font-size: 26px;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--ink);
}
.brand-tag {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
  margin-top: 3px;
}
.menu {
  display: flex;
  align-items: center;
  gap: 32px;
}
.menu a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  position: relative;
}
.menu a:hover, .menu a.active {
  color: var(--red);
}
.menu a.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.icon-btn {
  background: none;
  border: 1px solid var(--line);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  color: var(--ink);
}
.icon-btn:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.icon-btn svg { width: 18px; height: 18px; }
.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid var(--paper);
}
.mobile-toggle { display: none; }

/* Page Banner */
.page-hero {
  padding: 70px 0 50px;
  background: radial-gradient(circle at 80% 20%, #f4ede0 0%, #f8f5ee 70%);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.page-kicker {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 800;
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.page-kicker::before, .page-kicker::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--red);
}
.page-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(36px, 4.8vw, 58px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 16px;
}
.page-desc {
  max-width: 680px;
  margin: auto;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

/* Category Detail Showcase */
.category-full-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 40px;
}
.cat-item-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(201, 147, 62, 0.28);
  box-shadow: 0 10px 30px rgba(20, 18, 16, 0.05);
  display: grid;
  grid-template-columns: 220px 1fr;
  overflow: hidden;
  transition: var(--transition);
}
.cat-item-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}
.cat-item-img {
  background: var(--paper-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border-right: 1px solid rgba(20, 18, 16, 0.06);
}
.cat-item-img img {
  max-height: 190px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(0,0,0,0.12));
  transition: transform 0.4s ease;
}
.cat-item-card:hover .cat-item-img img {
  transform: scale(1.08);
}
.cat-item-content {
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cat-badge-pill {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 8px;
}
.cat-item-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 8px;
}
.cat-item-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 18px;
}
.cat-item-highlights {
  list-style: none;
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.cat-item-highlights li {
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cat-item-highlights li::before {
  content: "✦";
  color: var(--gold);
  font-size: 10px;
}
.cat-item-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  background: var(--paper-subtle);
  padding: 10px 18px;
  border-radius: 100px;
  border: 1px solid var(--line);
  align-self: flex-start;
  transition: var(--transition);
}
.cat-item-btn:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  gap: 12px;
}

/* Unified Mid-Page Feature Banner */
.mid-feature-banner {
  background: linear-gradient(135deg, #1c1815 0%, #2b1719 50%, #151110 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(201, 147, 62, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16);
  padding: 55px 45px;
  margin: 70px 0 30px;
  position: relative;
  overflow: hidden;
}
.mid-banner-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 45px;
  align-items: center;
}
.mid-banner-kicker {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 800;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mid-banner-content h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #fff;
}
.mid-banner-content h2 span { color: var(--gold); }
.mid-banner-content p {
  color: #d6cec4;
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 24px;
}
.mid-banner-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 30px;
}
.mid-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #f1ebd8;
}
.mid-check-item svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
  flex-shrink: 0;
}
.mid-banner-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-gold {
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
  padding: 13px 28px;
  border-radius: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  text-decoration: none;
}
.btn-gold:hover {
  background: #e2ad56;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(201, 147, 62, 0.35);
}
.btn-outline-gold {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 40px;
  display: inline-flex;
  align-items: center;
  transition: var(--transition);
  text-decoration: none;
}
.btn-outline-gold:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.mid-banner-img {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  border: 1.5px solid rgba(201, 147, 62, 0.3);
}
.mid-banner-img img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}
.mid-banner-img:hover img {
  transform: scale(1.04);
}

@media (max-width: 992px) {
  .mid-banner-grid { grid-template-columns: 1fr; gap: 32px; }
  .mid-feature-banner { padding: 40px 28px; }
}
@media (max-width: 580px) {
  .mid-banner-checks { grid-template-columns: 1fr; }
}

/* Cart Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  height: 100%;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  z-index: 2500;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-head {
  padding: 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-head h3 { font-size: 18px; font-weight: 800; }
.close-btn { background: none; border: none; font-size: 26px; cursor: pointer; color: var(--ink); }
.cart-body { padding: 24px; flex-grow: 1; overflow-y: auto; }
.cart-items { list-style: none; }
.cart-item { display: flex; gap: 15px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.cart-item-img { width: 65px; height: 65px; background: var(--paper-subtle); border-radius: var(--radius-sm); display: grid; place-items: center; padding: 6px; }
.cart-item-info { flex: 1; }
.cart-item-title { font-size: 14px; font-weight: 700; }
.cart-item-price { font-size: 13px; color: var(--red); font-weight: 700; margin-top: 3px; }
.cart-item-qty { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.qty-btn { width: 24px; height: 24px; border: 1px solid var(--line); background: var(--white); border-radius: 4px; cursor: pointer; font-weight: 700; }
.remove-item { background: none; border: none; color: var(--muted); font-size: 12px; margin-left: auto; cursor: pointer; }
.remove-item:hover { color: var(--red); }
.cart-empty { text-align: center; color: var(--muted); margin-top: 80px; }
.cart-footer { padding: 24px; border-top: 1px solid var(--line); background: var(--paper); }
.cart-subtotal { display: flex; justify-content: space-between; font-size: 16px; font-weight: 800; margin-bottom: 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 30px; border-radius: 100px; font-size: 14px; font-weight: 700; cursor: pointer; border: none; transition: var(--transition); background: var(--red); color: white; width: 100%; }
.btn:hover { background: var(--red-dark); transform: translateY(-2px); }

/* Search Modal */
.search-modal { position: fixed; top: 0; left: 0; width: 100%; background: var(--white); z-index: 2800; box-shadow: var(--shadow-lg); padding: 30px 24px; transform: translateY(-100%); transition: transform 0.35s ease; }
.search-modal.open { transform: translateY(0); }
.search-bar-wrap { max-width: 800px; margin: auto; position: relative; }
.search-input { width: 100%; padding: 16px 20px 16px 50px; font-size: 18px; border: 2px solid var(--ink); border-radius: 100px; outline: none; }
.search-icon-inside { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-results { max-width: 800px; margin: 20px auto 0; max-height: 350px; overflow-y: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }

/* Overlay & Toast */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 1800; opacity: 0; visibility: hidden; transition: var(--transition); }
.overlay.show { opacity: 1; visibility: visible; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(100px); background: var(--ink); color: white; padding: 12px 24px; border-radius: 100px; font-size: 13px; font-weight: 700; box-shadow: var(--shadow-lg); z-index: 4000; transition: transform 0.35s ease; pointer-events: none; }
.toast.show { transform: translateX(-50%) translateY(0); }

/* Footer */
footer { background: var(--ink); color: white; padding: 80px 0 30px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 50px; margin-bottom: 60px; }
.footer-brand p { color: #a8a096; font-size: 14px; margin-top: 18px; max-width: 320px; }
.footer-col h4 { font-size: 15px; font-weight: 700; margin-bottom: 22px; color: var(--gold); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: #c4bcb2; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #8c847a; }

@media (max-width: 992px) {
  .menu { display: none; }
  .mobile-toggle { display: grid; }
  .category-full-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 580px) {
  .cat-item-card { grid-template-columns: 1fr; }
  .cat-item-img { border-right: none; border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr; }
}
