/* Kaifi & Filli - public storefront styles
   Palette taken from the brand banners: deep maroon + gold on cream. */

:root {
  --maroon: #7a1f2b;
  --maroon-dark: #5c1620;
  --gold: #c9a15a;
  --cream: #faf3ec;
  --cream-dark: #f3e6da;
  --text: #2b2320;
  --text-muted: #7a6c63;
  --border: #e8d9cb;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(122, 31, 43, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Lato', Arial, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.5;
}

h1, h2, h3, h4, .brand-font {
  font-family: 'Playfair Display', Georgia, serif;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--maroon);
  color: #fff;
  font-size: 13px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a { color: #fff; }
.topbar .topbar-right { display: flex; gap: 18px; align-items: center; }

/* ---------- Header / nav ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 14px;
  flex-wrap: wrap;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--maroon);
  letter-spacing: 1px;
}
.logo .logo-badge {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--maroon); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 18px;
}
.logo small { display: block; font-size: 10px; letter-spacing: 2px; color: var(--gold); font-weight: 400; }

nav.main-nav { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
nav.main-nav a {
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .3px;
  color: var(--text); padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap;
}
nav.main-nav a:hover, nav.main-nav a.active { color: var(--maroon); border-color: var(--gold); }

.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none;
  position: absolute; top: 100%; left: 0; min-width: 220px;
  background: #fff; border-radius: 0 0 10px 10px; box-shadow: var(--shadow);
  padding: 10px 0; z-index: 50; max-height: 60vh; overflow-y: auto;
}
.nav-dropdown-menu a {
  display: block; padding: 9px 18px; font-size: 13px; text-transform: none;
  font-weight: 500; letter-spacing: normal; border-bottom: none; color: var(--text);
}
.nav-dropdown-menu a:hover { background: var(--cream-dark); color: var(--maroon); }
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu { display: block; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-actions form { display: flex; }
.header-actions input[type=search] {
  border: 1px solid var(--border); border-right: none; border-radius: 6px 0 0 6px;
  padding: 8px 12px; font-size: 14px; width: 160px;
}
.header-actions button.search-btn {
  background: var(--maroon); color: #fff; border: none; border-radius: 0 6px 6px 0; padding: 0 14px; cursor: pointer;
}
.icon-link { position: relative; font-size: 20px; }
.icon-badge {
  position: absolute; top: -8px; right: -10px; background: var(--gold); color: #fff;
  font-size: 11px; border-radius: 50%; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--maroon); color: #fff; border: none; border-radius: 30px;
  padding: 12px 26px; font-weight: 600; font-size: 14px; cursor: pointer;
  transition: background .15s ease;
}
.btn:hover { background: var(--maroon-dark); }
.btn.btn-outline { background: transparent; color: var(--maroon); border: 1.5px solid var(--maroon); }
.btn.btn-outline:hover { background: var(--maroon); color: #fff; }
.btn.btn-gold { background: var(--gold); }
.btn.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn.btn-full { width: 100%; justify-content: center; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Hero carousel ---------- */
.hero-carousel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--cream-dark), var(--cream));
}
.hero-slide {
  display: none;
}
.hero-slide.is-active { display: block; animation: heroFade .5s ease; }
@keyframes heroFade { from { opacity: 0; } to { opacity: 1; } }
.hero-slide a.hero-banner-link { display: block; }
.hero-carousel .hero-banner-link { display: block; }
.hero-carousel .hero-banner-img,
.hero-slide img.hero-banner-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1600 / 480;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-carousel.hero-single { overflow: visible; }

/* Fallback text-only slide layout (used only if a slide has no banner image) */
.hero-slide .container { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; padding: 60px 20px; }
.hero-text { flex: 1; min-width: 280px; }
.hero-text .eyebrow { color: var(--gold); font-style: italic; margin-bottom: 8px; display: block; }
.hero-text h1 { font-size: 42px; color: var(--maroon); margin: 0 0 14px; line-height: 1.15; }
.hero-text p { color: var(--text-muted); margin-bottom: 24px; }
.hero-img { flex: 1; min-width: 280px; }
.hero-img img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ---------- Promo banner sections (full designed graphics) ---------- */
.promo-banner { display: block; }
.promo-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.85); border: none; width: 40px; height: 40px; border-radius: 50%;
  font-size: 18px; color: var(--maroon); cursor: pointer; box-shadow: var(--shadow); z-index: 5;
  display: flex; align-items: center; justify-content: center;
}
.hero-arrow:hover { background: #fff; }
.hero-arrow.prev { left: 16px; }
.hero-arrow.next { right: 16px; }

.hero-dots {
  position: absolute; bottom: 18px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 8px; z-index: 5;
}
.hero-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(122,31,43,.3); cursor: pointer; padding: 0;
}
.hero-dots button.is-active { background: var(--maroon); width: 26px; border-radius: 6px; transition: width .2s ease; }

/* ---------- Feature strip ---------- */
.feature-strip {
  background: var(--maroon); color: #fff;
}
.feature-strip .container {
  display: flex; flex-wrap: wrap; justify-content: space-between; padding: 18px 20px; gap: 14px;
}
.feature-strip .feature { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.feature-strip .feature strong { display: block; font-size: 14px; }
.feature-strip .feature span.muted { opacity: .8; font-size: 12px; }

/* ---------- Section headings ---------- */
.section { padding: 50px 0; }
.section-head { text-align: center; margin-bottom: 32px; }
.section-head h2 { color: var(--maroon); font-size: 30px; margin-bottom: 8px; }
.section-head p { color: var(--text-muted); }

/* ---------- Category tiles ---------- */
.category-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px;
}
.category-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px; text-align: center; transition: transform .15s ease;
}
.category-card:hover { transform: translateY(-4px); }
.category-card .cat-icon { font-size: 30px; color: var(--maroon); margin-bottom: 10px; }
.category-card h3 { margin: 6px 0; font-size: 17px; }
.category-card p { color: var(--text-muted); font-size: 13px; margin: 0; }

/* ---------- Product grid / cards ---------- */
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px;
}
.product-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; position: relative;
}
.product-card .thumb { aspect-ratio: 1 / 1; overflow: hidden; background: var(--cream-dark); }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .wish-btn {
  position: absolute; top: 10px; right: 10px; background: #fff; border-radius: 50%;
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); border: none; cursor: pointer; font-size: 16px;
}
.product-card .body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card .cat-label { font-size: 11px; text-transform: uppercase; color: var(--gold); letter-spacing: .5px; }
.product-card h3 { font-size: 16px; margin: 0; }
.product-card .price { margin-top: auto; display: flex; align-items: center; gap: 8px; }
.product-card .price .now { color: var(--maroon); font-weight: 700; font-size: 17px; }
.product-card .price .was { color: var(--text-muted); text-decoration: line-through; font-size: 13px; }
.product-card .out-of-stock { color: #a33; font-size: 12px; font-weight: 700; }

/* ---------- Forms ---------- */
.form-card {
  max-width: 460px; margin: 40px auto; background: #fff; padding: 34px; border-radius: var(--radius); box-shadow: var(--shadow);
}
.form-card h1 { color: var(--maroon); font-size: 26px; margin-top: 0; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; font-family: inherit;
}
.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 18px; font-size: 14px; }
.alert-error { background: #fbe6e6; color: #a33; border: 1px solid #f0c2c2; }
.alert-success { background: #e7f5ea; color: #256d38; border: 1px solid #bfe6c9; }

/* ---------- Cart / checkout ---------- */
.cart-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cart-table th, .cart-table td { padding: 14px; border-bottom: 1px solid var(--border); text-align: left; font-size: 14px; }
.cart-table .cart-product { display: flex; align-items: center; gap: 12px; }
.cart-table .cart-product img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; }
.qty-form { display: flex; gap: 6px; align-items: center; }
.qty-form input { width: 55px; padding: 6px; border: 1px solid var(--border); border-radius: 6px; }
.summary-box { background: #fff; padding: 22px; border-radius: var(--radius); box-shadow: var(--shadow); }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.summary-row.total { font-weight: 700; font-size: 18px; border-top: 1px solid var(--border); margin-top: 8px; padding-top: 14px; color: var(--maroon); }

/* ---------- Breadcrumb / misc ---------- */
.breadcrumb { font-size: 13px; color: var(--text-muted); padding: 14px 0; }
.breadcrumb a { color: var(--maroon); }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--maroon-dark); color: #f3e6da; padding: 40px 0 20px; margin-top: 50px; }
footer.site-footer .footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; }
footer.site-footer h4 { color: #fff; margin-bottom: 12px; font-size: 15px; }
footer.site-footer a { color: #e5cdc0; font-size: 13px; display: block; margin-bottom: 8px; }
footer.site-footer .bottom { text-align: center; margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15); font-size: 12px; color: #d8bfb2; }

/* ---------- Product detail ---------- */
.product-detail { display: flex; gap: 40px; flex-wrap: wrap; }
.product-detail .gallery { flex: 1; min-width: 280px; }
.product-detail .gallery img { border-radius: var(--radius); box-shadow: var(--shadow); }
.product-detail .info { flex: 1; min-width: 280px; }
.product-detail .info h1 { color: var(--maroon); font-size: 28px; }
.product-detail .price-row { font-size: 24px; font-weight: 700; color: var(--maroon); margin: 14px 0; }
.product-detail .price-row .was { font-size: 16px; color: var(--text-muted); text-decoration: line-through; margin-left: 10px; }
.stars { color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 780px) {
  .header-row { flex-direction: column; align-items: stretch; }
  nav.main-nav { flex-wrap: wrap; justify-content: center; }
  .header-actions { justify-content: center; }
}
