/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: fixed;
  top: 0; inset-inline: 0;
  z-index: 9999;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding-block: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--c-border);
  opacity: 1;
  visibility: visible;
  transform: none;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
  width: 100%;
}

/* Logo */
.header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Image logo */
.header__logo-img {
  height: 64px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: none; /* dark by default */
  transition: filter var(--dur-base), opacity var(--dur-fast);
  -webkit-user-drag: none;
}


.header__logo:hover .header__logo-img { opacity: 0.8; }

/* Text logo fallback */
.logo-en {
  font-size: 1.35rem;
  font-weight: 200;
  letter-spacing: 0.14em;
  color: var(--c-text);
  transition: color var(--dur-fast);
}

.header__logo:hover .logo-en { color: var(--c-gold-dark); }

/* Custom logo from WordPress (wp_custom_logo wraps in <a>) */
.custom-logo-link { display: flex; }
.custom-logo {
  height: 64px;
  width: auto;
  filter: none; /* dark by default */
  transition: filter var(--dur-base);
}

/* Nav */
.header__nav .nav-list {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
}

.header__nav .nav-list a {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--c-text-2);
  position: relative;
  transition: color var(--dur-fast);
}

.header__nav .nav-list a::after {
  content: '';
  position: absolute;
  bottom: -2px; right: 0;
  width: 0; height: 1px;
  background: var(--c-gold);
  transition: width var(--dur-base) var(--ease);
}

.header__nav .nav-list a:hover { color: var(--c-text); }
.header__nav .nav-list a:hover::after { width: 100%; }

/* Actions */
.header__actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header__icon-btn {
  position: relative;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--c-text);
  transition: color var(--dur-fast), background var(--dur-fast);
}

.header__icon-btn:hover {
  color: var(--c-gold-dark);
  background: var(--c-surface);
}

/* Cart count badge */
.cart-count {
  position: absolute;
  top: 4px; left: 4px;
  min-width: 16px; height: 16px;
  padding-inline: 3px;
  background: var(--c-gold);
  color: var(--c-white);
  font-size: 0.6rem;
  font-weight: 600;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity var(--dur-fast), transform var(--dur-fast);
  pointer-events: none;
  line-height: 1;
}

.cart-count.visible {
  opacity: 1;
  transform: scale(1);
}

/* Mobile menu btn — hidden on desktop */
.mobile-menu-btn { display: none; }

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  top: var(--header-h); inset-inline: 0;
  z-index: 99;
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
  padding: var(--sp-sm) 0;
  transform: translateY(-110%);
  transition: transform var(--dur-base) var(--ease);
  box-shadow: var(--shadow-lg);
}

.mobile-nav.is-open { transform: translateY(0); }

.mobile-nav__inner {
  display: flex;
  flex-direction: column;
  padding-inline: clamp(20px, 5vw, 40px);
}

.mobile-nav__inner a {
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 300;
  color: var(--c-text);
  border-bottom: 1px solid var(--c-surface-2);
  transition: color var(--dur-fast);
}

.mobile-nav__inner a:last-child { border-bottom: none; }
.mobile-nav__inner a:hover { color: var(--c-gold-dark); }

/* =============================================
   MAIN CONTENT OFFSET (below fixed header)
   ============================================= */
#main-content {
  outline: none;
  padding-top: 0; /* Hero is full-screen, covers header */
}

/* =============================================
   FOOTER — light, 3-column, full-width bar
   ============================================= */
.site-footer {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  padding-block: clamp(52px, 7vw, 88px);
}

.footer__grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 28px;
}

/* Col 1: brand */
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.footer__logo-img {
  height: 52px;
  width: auto;
  filter: grayscale(100%) brightness(.3);
}

.footer__logo {
  font-size: 1.4rem;
  font-weight: 200;
  letter-spacing: 0.14em;
  color: var(--c-text);
}

.footer__brand-name {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-text-2);
}

.footer__tagline {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--c-text-3);
}

/* Col 2: contact */
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

.footer__address {
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--c-text-2);
  line-height: 1.7;
}

.footer__phone {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--c-text-2);
  transition: color var(--dur-fast);
}

.footer__phone:hover { color: var(--c-gold-dark); }

.footer__email {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--c-text-2);
  transition: color var(--dur-fast);
  direction: ltr;
  unicode-bidi: embed;
}

.footer__email:hover { color: var(--c-gold-dark); }

.footer__whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.footer__whatsapp svg { display: block; }

.footer__whatsapp:hover { opacity: 0.85; transform: scale(1.1); }

.footer__social-label {
  font-size: 0.72rem;
  color: var(--c-text-3);
  margin: 6px 0 2px;
}

.footer__social-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 12px;
}

.footer__instagram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.footer__instagram svg { display: block; }

.footer__instagram:hover { opacity: 0.85; transform: scale(1.1); }

.footer__contact-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-text-3);
  margin-bottom: 4px;
}

/* Col 3: legal */
.footer__legal-col {
  flex-shrink: 0;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

.footer__links a {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--c-text-2);
  transition: color var(--dur-fast);
}

.footer__links a:hover { color: var(--c-text); }

.footer__bottom {
  text-align: center;
}

.footer__copy {
  font-size: 0.76rem;
  font-weight: 300;
  color: var(--c-text-3);
}

/* =============================================
   SLIDE CART
   ============================================= */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 8, 5, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base);
}

.cart-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.slide-cart {
  position: fixed;
  top: 0; bottom: 0;
  left: 0; /* RTL: opens from left */
  z-index: 201;
  width: min(400px, 95vw);
  background: var(--c-white);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform var(--dur-slow) var(--ease);
  box-shadow: var(--shadow-xl);
}

.slide-cart.is-open { transform: translateX(0); }

.slide-cart__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--c-border);
  flex-shrink: 0;
}

.slide-cart__title {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--c-text);
  letter-spacing: 0.02em;
}

.cart-close {
  width: 34px; height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--c-text-3);
  transition: background var(--dur-fast), color var(--dur-fast);
}

.cart-close:hover { background: var(--c-surface); color: var(--c-text); }

.slide-cart__pickup {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--c-text-2);
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  flex-shrink: 0;
}

.slide-cart__pickup svg { color: var(--c-gold); flex-shrink: 0; }

.slide-cart__body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Cart line items */
.cart-line {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-sm);
  padding: 16px 20px;
  border-bottom: 1px solid var(--c-surface);
  animation: fadeUp 0.25s ease;
}

.cart-line__img {
  width: 72px;
  height: 90px;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-surface);
}

.cart-line__img img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.cart-line__info { flex: 1; min-width: 0; }

.cart-line__name {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--c-text);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-line__variation {
  font-size: 0.75rem;
  color: var(--c-text-3);
  margin-bottom: 8px;
}

.cart-line__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-xs);
}

.cart-line__qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 26px; height: 26px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--c-text-2);
  transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
  line-height: 1;
}

.qty-btn:hover {
  background: var(--c-text);
  border-color: var(--c-text);
  color: var(--c-white);
}

.qty-val {
  font-size: 0.88rem;
  font-weight: 500;
  min-width: 18px;
  text-align: center;
}

.cart-line__price {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--c-text);
}

.cart-line__remove {
  flex-shrink: 0;
  color: var(--c-text-3);
  padding: 4px;
  border-radius: var(--radius);
  transition: color var(--dur-fast), background var(--dur-fast);
  align-self: flex-start;
  margin-top: 2px;
}

.cart-line__remove:hover {
  color: var(--c-error);
  background: rgba(192, 57, 43, 0.06);
}

/* Cart empty state */
.cart-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 60px 20px;
  color: var(--c-text-3);
  font-size: 0.9rem;
  font-weight: 300;
}

.cart-empty-state svg { opacity: 0.25; }

/* Cart footer */
.slide-cart__foot {
  padding: 16px 20px 24px;
  border-top: 1px solid var(--c-border);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.slide-cart__subtotal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.85rem;
  color: var(--c-text-2);
}

#lb-cart-total {
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--c-text);
  letter-spacing: -0.01em;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .header__nav { display: none; }
  .mobile-menu-btn { display: flex; }

  .footer__grid {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    gap: 32px;
  }
  .footer__brand { align-items: center; width: 100%; }
  .footer__contact { align-items: center; }
  .footer__legal-col { text-align: center; }
}

@media (max-width: 480px) {
  .footer__grid { flex-direction: column; align-items: center; }
}

/* =============================================
   FLOATING WHATSAPP BUTTON — move above accessibility icon
   ============================================= */
/* Common WhatsApp float plugins */
.whatsapp-widget,
.whatsapp-chat-widget,
#whatsapp-button,
.ow-whatsapp-popup,
a[href*="wa.me"],
a[href*="whatsapp.com/send"] {
  bottom: 90px !important;
}
