/**
 * SophEva Header, Announcement Bar, Navigation, Mobile Sticky CTA & Footer Styles
 */

/* ==========================================================================
   Announcement Bar
   ========================================================================== */
.anno-bar {
  background: #19110a;
  color: #efe8e1;
  text-align: center;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  padding: 8px 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  z-index: 70;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.anno-bar b,
.anno-bar strong {
  color: #ffd9c6;
  font-weight: 700;
}

.anno-bar .countdown-wrap {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #ffffff;
}

.anno-bar .countdown-unit {
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11.5px;
}

/* ==========================================================================
   Sticky Glassmorphism Header
   ========================================================================== */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 245, 239, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(80, 40, 20, 0.07);
  transition: box-shadow var(--trans-med), border-color var(--trans-med), background var(--trans-med);
}

header.site-header.scrolled {
  box-shadow: 0 10px 30px -15px rgba(80, 40, 20, 0.16);
  border-color: var(--line);
  background: rgba(251, 245, 239, 0.98);
}

header.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

/* Brand Logo */
.site-logo {
  display: flex;
  align-items: center;
}

.site-logo img {
  height: 28px;
  width: auto;
  object-fit: contain;
  display: block;
}

.site-logo-text {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* Desktop Main Nav */
nav.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 500;
  font-size: 14px;
}

nav.desktop-nav a {
  position: relative;
  padding: 6px 0;
  color: var(--ink);
  opacity: 0.88;
  transition: opacity var(--trans-fast), color var(--trans-fast);
}

nav.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--terra);
  transition: right var(--trans-fast);
}

nav.desktop-nav a:hover,
nav.desktop-nav a.active {
  opacity: 1;
  color: var(--terra);
}

nav.desktop-nav a:hover::after,
nav.desktop-nav a.active::after {
  right: 0;
}

/* Header Right Actions */
.hdr-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(80, 40, 20, 0.12);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: transform var(--trans-fast), border-color var(--trans-fast), background var(--trans-fast), color var(--trans-fast);
  position: relative;
}

.icon-btn:hover {
  transform: translateY(-1px);
  border-color: var(--terra);
  color: var(--terra);
  background: rgba(255, 255, 255, 0.6);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

/* Cart Badge Count */
.cart-badge {
  position: relative;
}

.cart-badge .cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--terra);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

/* Mobile Nav Toggle */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
  stroke: var(--ink);
}

/* Mobile Drawer */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(32, 22, 15, 0.5);
  backdrop-filter: blur(4px);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--trans-med), visibility var(--trans-med);
}

.mobile-drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: var(--cream);
  z-index: 101;
  box-shadow: var(--shadow-drawer);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right var(--trans-med);
  overflow-y: auto;
}

.mobile-drawer.open {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mobile-nav-links a {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  padding: 6px 0;
}

.mobile-drawer-footer {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* ==========================================================================
   Mobile Sticky Bottom CTA Bar
   ========================================================================== */
.mobile-sticky-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(251, 245, 239, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 10px 18px;
  box-shadow: 0 -8px 24px rgba(32, 22, 15, 0.08);
}

.mobile-sticky-cta-bar .btn {
  width: 100%;
}

/* ==========================================================================
   Guarantee & Trust Badges Strip
   ========================================================================== */
.guarantee-strip {
  background: var(--ink);
  color: #efe3d8;
  padding: 38px 0;
}

.guarantee-strip .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.guarantee-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.guarantee-item svg {
  width: 28px;
  height: 28px;
  stroke: var(--terra-2);
  fill: none;
  stroke-width: 1.6;
  flex-shrink: 0;
}

.guarantee-item b {
  font-size: 14.5px;
  color: #ffffff;
  display: block;
}

.guarantee-item small {
  color: #b7a596;
  font-size: 13px;
}

/* ==========================================================================
   Site Footer
   ========================================================================== */
footer.site-footer {
  background: var(--ink);
  color: #b7a596;
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
}

footer.site-footer h4 {
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

footer.site-footer a {
  display: block;
  font-size: 14px;
  padding: 6px 0;
  color: #c4b3a5;
  transition: color var(--trans-fast);
}

footer.site-footer a:hover {
  color: #ffffff;
}

.footer-logo img {
  /* height: 28px; */
  filter: brightness(0) invert(1);
  opacity: 0.95;
  margin-bottom: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 42px;
  padding-top: 24px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  nav.desktop-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hdr-desktop-cta {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .guarantee-strip .wrap {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .mobile-sticky-cta-bar {
    display: block;
  }

  body {
    padding-bottom: 60px;
    /* Offset for sticky mobile bottom CTA bar */
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .guarantee-strip .wrap {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}