/* Abejas Boutique — Habayeb-style layout, Abejas content only */
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Jost', Arial, sans-serif;
  color: #111;
  background: #fff;
  font-size: 15px;
  line-height: 1.5;
}
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ---- black top bar ---- */
.topbar { background: #000; color: #fff; font-size: 12px; letter-spacing: .04em; }
.topbar-inner {
  max-width: 1400px; margin: 0 auto; padding: 8px 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.topbar-left { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.topbar-sep { opacity: .5; }
.topbar-right { display: flex; gap: 18px; align-items: center; }
.currency { position: relative; }
.currency-btn { color: #fff; font-size: 12px; letter-spacing: .04em; padding: 2px 0; }
.currency-menu {
  display: none; position: absolute; right: 0; top: 100%; z-index: 60;
  background: #fff; color: #111; min-width: 150px;
  box-shadow: 0 6px 24px rgba(0,0,0,.18); padding: 6px 0;
}
.currency.open .currency-menu { display: block; }
.currency-menu button { display: block; width: 100%; text-align: left; padding: 8px 14px; font-size: 13px; }
.currency-menu button:hover { background: #f4f4f4; }
.topbar-lang { opacity: .9; }

/* ---- header ---- */
.site-header { border-bottom: 1px solid #eee; position: sticky; top: 0; background: #fff; z-index: 50; }
.header-inner {
  max-width: 1400px; margin: 0 auto; padding: 18px 20px 10px;
  display: flex; align-items: center; justify-content: space-between;
}
.icon-btn { display: flex; align-items: center; gap: 6px; padding: 6px; position: relative; }
.icon-label { font-size: 13px; }
.header-icons { display: flex; gap: 4px; }
.count-badge {
  position: absolute; top: 0; right: 0; min-width: 16px; height: 16px; border-radius: 8px;
  background: #000; color: #fff; font-size: 10px; line-height: 16px; text-align: center; padding: 0 4px;
}
.wordmark {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 34px; font-weight: 600; letter-spacing: .14em; text-align: center;
}
.main-nav {
  display: flex; justify-content: center; gap: 34px; flex-wrap: wrap;
  padding: 6px 16px 12px;
}
.nav-link {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #333; padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.nav-link:hover, .nav-link.active { color: #000; border-bottom-color: #000; }

/* ---- search overlay ---- */
.search-overlay { background: #fff; border-bottom: 1px solid #eee; padding: 18px 20px; }
.search-box { max-width: 700px; margin: 0 auto; display: flex; gap: 10px; }
.search-box input {
  flex: 1; font-family: inherit; font-size: 16px; padding: 10px 14px;
  border: 1px solid #ccc; outline: none;
}
.search-box input:focus { border-color: #000; }
.search-box button { font-size: 28px; line-height: 1; padding: 0 8px; }
.search-results { max-width: 700px; margin: 12px auto 0; display: grid; gap: 8px; }
.search-hit {
  display: flex; align-items: center; gap: 12px; text-align: left; padding: 6px;
  border: 1px solid #eee; width: 100%;
}
.search-hit:hover { border-color: #000; }
.search-hit img { width: 52px; height: 70px; object-fit: cover; }
.search-hit b { font-weight: 500; display: block; }
.search-hit span { color: #555; font-size: 13px; }

/* ---- hero: full-bleed photo, text overlaid on the left (Habayeb style) ---- */
.hero { position: relative; height: 640px; overflow: hidden; background: #fff; }
.hero-bg {
  position: absolute; top: 0; right: 0; width: 700px; height: 100%;
  object-fit: cover; object-position: 50% 100%;
}
.hero-text {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 40px 20px 40px 7%; max-width: 620px;
}
.hero-text h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 68px; line-height: 1.05; font-weight: 600; letter-spacing: .02em; color: #111;
}
.hero-text p { margin: 18px 0 26px; color: #333; font-size: 16px; }
.btn-black {
  display: inline-block; background: #000; color: #fff; padding: 14px 42px;
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
}
.btn-black:hover { background: #222; }

/* ---- category tiles ---- */
.categories {
  max-width: 1400px; margin: 0 auto; padding: 48px 20px 8px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.cat-tile { position: relative; overflow: hidden; text-align: center; padding: 0; }
.cat-tile img { width: 100%; height: 420px; object-fit: cover; transition: transform .5s; }
.cat-tile:hover img { transform: scale(1.04); }
.cat-tile span {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 46px 12px 14px; text-align: center;
  font-family: 'Playfair Display', Georgia, serif; font-size: 24px; letter-spacing: .04em; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
}

/* ---- arrivals ---- */
.arrivals { max-width: 1400px; margin: 0 auto; padding: 40px 20px 60px; }
.arrivals h2 {
  font-family: 'Playfair Display', Georgia, serif; font-size: 34px; font-weight: 600;
  text-align: center; letter-spacing: .02em;
}
.arrivals-sub { text-align: center; color: #666; margin: 6px 0 22px; }
.filter-row { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.filter-btn {
  border: 1px solid #ccc; padding: 7px 18px; font-size: 12px;
  letter-spacing: .14em; text-transform: uppercase;
}
.filter-btn.active, .filter-btn:hover { background: #000; color: #fff; border-color: #000; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card { position: relative; }
.product-card .p-photo { overflow: hidden; background: #f7f7f7; position: relative; }
.product-card img { width: 100%; height: 380px; object-fit: cover; transition: transform .5s; }
.product-card:hover img { transform: scale(1.04); }
.product-card .quick-add {
  position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.85); color: #fff;
  padding: 11px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  opacity: 0; transition: opacity .25s; width: 100%;
}
.product-card:hover .quick-add, .product-card:focus-within .quick-add { opacity: 1; }
.product-card h3 { font-size: 15px; font-weight: 500; margin: 12px 0 2px; text-align: center; }
.product-card .price { text-align: center; color: #333; font-size: 14px; }
.product-card .wish {
  position: absolute; top: 8px; right: 8px; z-index: 2; background: #fff;
  width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 6px rgba(0,0,0,.15);
}
.product-card .wish svg { fill: none; stroke: #111; }
.product-card .wish.on svg { fill: #c00; stroke: #c00; }
.grid-empty { text-align: center; color: #666; padding: 30px 0; }

/* ---- services ---- */
.services {
  max-width: 1400px; margin: 0 auto; padding: 34px 20px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  border-top: 1px solid #eee; border-bottom: 1px solid #eee;
}
.service { text-align: center; padding: 10px; }
.service svg { margin-bottom: 8px; }
.service h3 { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.service p { color: #666; font-size: 13px; margin-top: 4px; }

/* ---- about ---- */
.about { text-align: center; padding: 52px 20px; }
.about h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 30px; font-weight: 600; margin-bottom: 12px; }
.about p { color: #444; line-height: 1.9; }

/* ---- footer ---- */
.site-footer { border-top: 1px solid #eee; }
.footer-cols {
  max-width: 1400px; margin: 0 auto; padding: 44px 20px 30px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.footer-col h4 { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col button, .footer-col span, .footer-col a {
  display: block; font-size: 14px; color: #555; padding: 4px 0; text-align: left;
}
.footer-col button:hover, .footer-col a:hover { color: #000; }
.footer-bottom {
  background: #000; color: #ccc; font-size: 12px; padding: 14px 20px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* ---- cart drawer ---- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 90; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 380px; max-width: 92vw; z-index: 100;
  background: #fff; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s; box-shadow: -4px 0 24px rgba(0,0,0,.2);
}
.cart-drawer.open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid #eee; }
.drawer-head h3 { font-family: 'Playfair Display', Georgia, serif; font-size: 20px; }
.drawer-head button { font-size: 28px; line-height: 1; }
.ship-progress { padding: 14px 18px; border-bottom: 1px solid #eee; font-size: 13px; }
.ship-bar { height: 6px; background: #eee; margin-top: 8px; }
.ship-bar div { height: 100%; background: #000; width: 0; transition: width .3s; }
.drawer-items { flex: 1; overflow-y: auto; padding: 10px 18px; }
.drawer-empty { text-align: center; color: #777; padding: 40px 0; }
.cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.cart-item img { width: 64px; height: 86px; object-fit: cover; }
.cart-item .ci-info { flex: 1; }
.cart-item .ci-info b { font-weight: 500; display: block; font-size: 14px; }
.cart-item .ci-info span { color: #555; font-size: 13px; }
.qty-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.qty-row button { border: 1px solid #ccc; width: 26px; height: 26px; font-size: 15px; line-height: 1; }
.ci-remove { color: #999; font-size: 12px; text-decoration: underline; margin-top: 6px; padding: 0; }
.drawer-foot { border-top: 1px solid #eee; padding: 16px 18px 20px; }
.drawer-total { display: flex; justify-content: space-between; padding: 3px 0; font-size: 14px; }
.btn-whatsapp {
  display: block; text-align: center; background: #25d366; color: #fff; font-weight: 600;
  padding: 13px; margin-top: 12px; font-size: 14px; letter-spacing: .04em;
}
.btn-whatsapp.disabled { background: #bbb; pointer-events: none; }
.drawer-note { font-size: 12px; color: #777; margin-top: 10px; text-align: center; }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .categories { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .hero { height: auto; display: flex; flex-direction: column; }
  .hero-bg { position: relative; width: 100%; height: 320px; object-position: 50% 100%; }
  .hero-text { padding: 30px 20px; max-width: none; }
  .hero-text h1 { font-size: 44px; }
  .wordmark { font-size: 20px; letter-spacing: .1em; white-space: nowrap; }
  .main-nav { gap: 16px; }
  .topbar-inner { justify-content: center; text-align: center; }
}
