@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,500&family=Jost:wght@400;500;600&display=swap');

:root {
  --ink: #2D302B;
  --olive: #365C3A;
  --olive-dark: #24452C;
  --cream: #F7F1E5;
  --cream-deep: #FCFAF4;
  --gold: #D99A25;
  --gold-light: #E8C66A;
  --rose: #D9A6A1;
  --muted: #687267;
  --line: #E4DCC8;
  --white: #FFFFFF;
  --radius: 2px;
  --max: 1180px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Jost', sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  color: var(--olive);
  margin: 0 0 .5em;
  line-height: 1.15;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--olive-dark);
  color: var(--cream);
  text-align: center;
  font-size: 13px;
  letter-spacing: .04em;
  padding: 9px 12px;
}

/* ---------- Header ---------- */
header.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--max);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
}
.logo-img {
  height: 54px;
  width: auto;
  display: block;
}
.footer-logo {
  height: 60px;
  width: auto;
  margin-bottom: 16px;
  /* logo has a dark wordmark; brighten it for the dark footer background */
  filter: brightness(0) invert(1) opacity(.92);
}
nav.main-nav { display: flex; gap: 28px; }
nav.main-nav a {
  font-size: 15px;
  color: var(--olive);
  position: relative;
  padding-bottom: 4px;
}
nav.main-nav a:hover { color: var(--olive-dark); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.icon-btn { position: relative; cursor: pointer; display: flex; }
.cart-count {
  position: absolute; top: -8px; right: -10px;
  background: var(--gold); color: var(--white);
  font-size: 10px; font-weight: 600;
  width: 17px; height: 17px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: var(--olive-dark);
  color: var(--cream);
}
.hero-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity .7s ease;
}
.hero-slide.active { opacity: 1; visibility: visible; position: relative; }
.hero .hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .55;
}
.hero-slide::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(24,29,20,.72) 0%, rgba(24,29,20,.25) 60%, rgba(24,29,20,.05) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 520px; padding: 0 24px; margin: 0 6%; }
.hero .eyebrow {
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px; display: block;
}
.hero h1 { font-size: clamp(34px, 5vw, 56px); color: var(--white); }
.hero p { font-size: 17px; opacity: .88; max-width: 420px; margin: 18px 0 30px; }

.hero-dots {
  position: absolute; z-index: 3; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px;
}
.hero-dot {
  width: 9px; height: 9px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.7); background: transparent;
  cursor: pointer; padding: 0;
}
.hero-dot.active { background: var(--gold); border-color: var(--gold); }

/* ---------- Category cards (product-card sized) ---------- */
.category-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.category-tile { width: 200px; }
.category-tile {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  transition: box-shadow .2s ease, transform .2s ease;
  display: block;
}
.category-tile:hover { box-shadow: 0 12px 28px rgba(36,41,31,.08); transform: translateY(-2px); }
.category-tile .cat-thumb {
  aspect-ratio: 1/1;
  background: var(--cream-deep);
  background-size: cover;
  background-position: center;
}
.category-tile .cat-label {
  display: block;
  padding: 14px 16px;
  color: var(--ink);
  font-family: 'Fraunces', serif;
  font-size: 16px;
  text-align: center;
}
.category-tile:hover .cat-label { color: var(--olive); }

/* ---------- Bestseller slider ---------- */
.slider-row {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 24px 20px;
  max-width: var(--max);
  margin: 0 auto;
  scrollbar-width: thin;
}
.slider-row .product-card { width: 240px; min-width: 240px; max-width: 240px; scroll-snap-align: start; flex: 0 0 auto; }
.slider-controls { display: flex; justify-content: center; gap: 10px; margin-top: 10px; }
.slider-controls button {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--white); cursor: pointer; font-size: 16px;
}
.slider-controls button:hover { background: var(--cream-deep); }

/* image hover-swap on product cards */
.product-card .thumb { position: relative; }
.product-card .thumb .img-main, .product-card .thumb .img-alt {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity .3s ease;
}
.product-card .thumb .img-alt { opacity: 0; }
.product-card:hover .thumb .img-alt { opacity: 1; }
.product-card:hover .thumb .img-main { opacity: 0; }

/* ---------- Blog grid ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  max-width: var(--max);
  margin: 0 auto;
}
.blog-card { background: var(--white); border: 1px solid var(--line); }
.blog-card .thumb { aspect-ratio: 16/9; background: var(--cream-deep); overflow: hidden; }
.blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-card .body { padding: 18px 20px 22px; }
.blog-card h3 { font-size: 17px; margin-bottom: 8px; }
.blog-card p { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.blog-card .read-more { font-size: 13px; color: var(--olive); border-bottom: 1px solid var(--olive); padding-bottom: 2px; }

/* ---------- Instagram strip ---------- */
.insta-strip {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 0 4px;
  max-width: var(--max);
  margin: 0 auto;
}
.insta-strip .insta-item {
  flex: 0 0 220px;
  aspect-ratio: 1/1;
  background: var(--cream-deep);
  background-size: cover;
  background-position: center;
}

/* ---------- Dark footer (matches brand reference) ---------- */
footer.site-footer.dark-footer {
  background: var(--olive-dark);
  color: var(--cream-deep);
  padding: 60px 24px 0;
}
.dark-footer .footer-grid {
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 30px;
  margin-bottom: 40px;
}
.dark-footer .footer-contact p { font-size: 14px; opacity: .85; margin: 0 0 14px; line-height: 1.6; }
.dark-footer .footer-contact a { color: var(--gold); }
.dark-footer .social-row { display: flex; gap: 12px; margin-top: 16px; }
.dark-footer .social-row a {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; transition: transform .15s ease;
}
.dark-footer .social-row a img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dark-footer .social-row a:hover { transform: scale(1.08); }
.dark-footer h4 { color: var(--gold); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; font-family: 'Jost'; font-weight: 600; }
.dark-footer ul { list-style: none; margin: 0; padding: 0; }
.dark-footer li { margin-bottom: 10px; font-size: 14px; opacity: .8; }
.dark-footer li a:hover { color: var(--gold); }
.dark-footer .newsletter-mini p { font-size: 13px; opacity: .75; margin-bottom: 14px; }
.dark-footer .newsletter-mini input {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.2); color: white;
  margin-bottom: 10px;
}
.dark-footer .newsletter-mini input::placeholder { color: rgba(255,255,255,.5); }
.dark-footer .newsletter-mini .btn-primary { background: var(--gold); color: var(--ink); }
.dark-footer .newsletter-mini .btn-primary:hover { background: var(--gold-light); }
.dark-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  max-width: var(--max); margin: 0 auto; padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 13px; opacity: .7;
}
.payment-icons { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.payment-badge {
  display: flex; align-items: center; justify-content: center;
  background: var(--white); border-radius: 4px; padding: 4px 8px; height: 26px;
}
.payment-badge img { height: 100%; width: auto; display: block; object-fit: contain; }

.btn {
  display: inline-block;
  padding: 13px 30px;
  font-size: 14px;
  letter-spacing: .04em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  font-family: 'Jost', sans-serif;
}
.btn-primary { background: var(--olive); color: var(--white); }
.btn-primary:hover { background: var(--olive-dark); }
.btn-outline { background: transparent; border-color: currentColor; color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,.1); }
.btn-dark { background: var(--olive-dark); color: var(--cream); }
.btn-dark:hover { background: var(--olive); }
.btn-full { width: 100%; text-align: center; }

/* ---------- Section ---------- */
.section { padding: 70px 24px; }
.section-header { text-align: center; margin-bottom: 44px; }
.section-header .eyebrow {
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); display: block; margin-bottom: 8px;
}
.section-header h2 { font-size: 32px; }

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 26px;
  max-width: var(--max);
  margin: 0 auto;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  transition: box-shadow .2s ease, transform .2s ease;
}
.product-card:hover { box-shadow: 0 12px 28px rgba(36,41,31,.08); transform: translateY(-2px); }
.product-card .thumb {
  aspect-ratio: 1/1;
  background: var(--cream-deep);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .thumb .placeholder {
  font-family: 'Fraunces', serif;
  color: var(--olive);
  opacity: .3;
  font-size: 14px;
}
.product-card .body { padding: 16px 18px 20px; }
.product-card .category { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.product-card .category.rose { color: var(--rose); }
.product-card h3 { font-size: 17px; margin: 6px 0 8px; }
.product-card .price { font-weight: 600; color: var(--olive-dark); font-size: 15px; }
.product-card .add-btn {
  margin-top: 12px; width: 100%; padding: 10px;
  background: var(--olive); color: var(--white);
  border: none; cursor: pointer; font-family: 'Jost', sans-serif;
  font-size: 13px; letter-spacing: .03em;
}
.product-card .add-btn:hover { background: var(--olive-dark); }

/* ---------- Icon boxes ---------- */
.icon-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 50px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.icon-box { display: flex; gap: 14px; align-items: flex-start; }
.icon-box .dot {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--cream-deep); color: var(--olive);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 18px;
}
.icon-box h4 { font-size: 16px; margin-bottom: 3px; }
.icon-box p { font-size: 13px; color: var(--muted); margin: 0; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--olive-dark);
  color: var(--cream);
  padding: 60px 24px 24px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  max-width: var(--max);
  margin: 0 auto 40px;
}
.footer-grid h4 { color: var(--gold); font-size: 15px; margin-bottom: 14px; font-family: 'Jost'; letter-spacing: .04em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; font-size: 14px; opacity: .85; }
.footer-bottom {
  max-width: var(--max); margin: 0 auto; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 13px; opacity: .7; text-align: center;
}

/* ---------- Cart / Checkout ---------- */
.page-header { padding: 44px 24px 10px; text-align: center; }
.cart-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; max-width: var(--max); margin: 0 auto; padding: 20px 24px 80px; }
@media (max-width: 800px) { .cart-layout { grid-template-columns: 1fr; } }

.cart-item {
  display: flex; gap: 16px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.cart-item .thumb { width: 70px; height: 70px; background: var(--cream-deep); flex-shrink: 0; }
.cart-item .info { flex: 1; }
.cart-item .info h4 { font-size: 15px; margin: 0 0 4px; }
.cart-item .info .variant { font-size: 12px; color: var(--muted); }
.qty-control { display: flex; align-items: center; border: 1px solid var(--line); }
.qty-control button { width: 28px; height: 28px; border: none; background: none; cursor: pointer; font-size: 15px; flex-shrink: 0; }
.qty-control input {
  width: 36px; text-align: center; border: none; background: none; font-family: 'Jost'; font-size: 14px;
  -moz-appearance: textfield;
}
.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.remove-link { font-size: 12px; color: #a33; cursor: pointer; margin-top: 6px; display: inline-block; }

.summary-box { background: var(--white); border: 1px solid var(--line); padding: 26px; height: fit-content; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 14px; }
.summary-row.total { font-weight: 600; font-size: 17px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 8px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
label { font-size: 13px; display: block; margin-bottom: 5px; color: var(--muted); }
input, select, textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line);
  background: var(--white); font-family: 'Jost'; font-size: 14px;
}
textarea { resize: vertical; min-height: 70px; }

.pay-options { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.pay-option {
  border: 1px solid var(--line); padding: 12px 14px; display: flex;
  align-items: center; gap: 12px; cursor: pointer; font-size: 14px;
}
.pay-option input[type="radio"] { width: auto; flex: 0 0 auto; margin: 0; }
.pay-option .opt-label { flex: 1; min-width: 0; }
.pay-option .opt-price { flex: 0 0 auto; font-weight: 500; white-space: nowrap; }
.pay-option.selected { border-color: var(--olive); background: var(--cream-deep); }

.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }

.badge { display: inline-block; background: var(--gold); color: white; font-size: 11px; padding: 2px 8px; border-radius: 20px; margin-left: 8px; }
.hidden { display: none !important; }

/* ---------- Floating WhatsApp button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 8px 22px rgba(0,0,0,.3); }
@media (max-width: 760px) {
  .whatsapp-float { width: 50px; height: 50px; bottom: 18px; right: 16px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
  .sticky-atc.show ~ .whatsapp-float { bottom: 84px; }
}

/* ---------- Mobile nav toggle ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px; height: 34px;
  background: none; border: none; cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block; width: 100%; height: 2px;
  background: var(--ink); transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-only-link { display: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
  .footer-grid,
  .dark-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .wrap { padding: 0 16px; }

  /* header */
  .header-inner { padding: 14px 16px; }
  .nav-toggle { display: flex; }
  .logo-img { height: 42px; }
  nav.main-nav {
    position: fixed;
    top: 0; left: 0;
    height: 100vh; width: 78%; max-width: 300px;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 90px 26px 26px;
    transform: translateX(-100%);
    transition: transform .25s ease;
    z-index: 60;
    box-shadow: 8px 0 24px rgba(0,0,0,.12);
  }
  nav.main-nav.open { transform: translateX(0); }
  nav.main-nav a { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line); font-size: 16px; }
  .mobile-only-link { display: block; }
  .announce { font-size: 11px; padding: 7px 10px; }

  /* hero */
  .hero { min-height: 420px; }
  .hero-inner { margin: 0 20px; max-width: 90%; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 15px; }
  .hero-dots { bottom: 16px; }

  /* categories */
  .category-strip { gap: 14px; padding: 0 16px; }
  .category-tile { width: calc(50% - 7px); }
  .category-tile .cat-label { font-size: 14px; padding: 10px 8px; }

  /* sections */
  .section { padding: 44px 16px; }
  .section-header { margin-bottom: 28px; }
  .section-header h2 { font-size: 24px; }

  /* product grid / slider */
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .slider-row { padding: 6px 16px 16px; gap: 14px; }
  .slider-row .product-card { width: 170px; min-width: 170px; max-width: 170px; }
  .product-card .body { padding: 12px 12px 16px; }
  .product-card h3 { font-size: 14px; }

  /* icon boxes */
  .icon-boxes { grid-template-columns: 1fr 1fr; gap: 20px; padding: 32px 16px; }
  .icon-box .dot { width: 34px; height: 34px; font-size: 15px; }
  .icon-box h4 { font-size: 14px; }
  .icon-box p { font-size: 12px; }

  /* blog */
  .blog-grid { grid-template-columns: 1fr; gap: 18px; }

  /* instagram */
  .insta-strip .insta-item { flex-basis: 160px; }

  /* footer */
  .footer-grid,
  .dark-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .dark-footer-bottom { flex-direction: column; align-items: flex-start; text-align: left; }
  .payment-icons { flex-wrap: wrap; }

  /* product detail page */
  .pd-layout { padding: 20px 16px 60px; gap: 24px; }

  /* cart / checkout */
  .page-header { padding: 28px 16px 6px; }
  .page-header h1 { font-size: 24px; }
  .cart-layout { padding: 14px 16px 60px; gap: 24px; }
  .cart-item { flex-wrap: wrap; }
  .cart-item .thumb { width: 56px; height: 56px; }
  .form-grid { grid-template-columns: 1fr; }

  /* admin */
  .admin-wrap { padding: 24px 16px 60px; }
  table { display: block; overflow-x: auto; white-space: nowrap; }
}

@media (max-width: 420px) {
  .icon-boxes { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; }
}
