/* ==========================================================================
   ZARÉ GOLD — Responsive Adjustments & Mobile Optimization
   ========================================================================== */

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 320px;
  height: 100%;
  background: var(--bg-card);
  box-shadow: var(--shadow-xl);
  z-index: calc(var(--z-drawer) + 2);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform var(--transition-slow);
}

.mobile-nav-drawer.active {
  transform: translateX(0);
}

.mobile-nav-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-links {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow-y: auto;
  flex-grow: 1;
}

.mobile-nav-link {
  font-family: var(--font-accent);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--border-subtle);
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
  color: var(--color-gold-600);
}

.mobile-nav-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Mobile Quick Action Bar (Bottom Sticky for instant mobile UX) */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(253, 252, 249, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-medium);
  padding: 0.5rem 1rem;
  z-index: calc(var(--z-header) - 10);
  box-shadow: 0 -4px 16px rgba(18, 15, 13, 0.08);
}

@media (max-width: 768px) {
  .mobile-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-around;
  }
  
  /* Add padding to body so bottom bar doesn't overlap content */
  body {
    padding-bottom: 64px;
  }
}

.mobile-bar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  font-family: var(--font-accent);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  min-width: 54px;
}

.mobile-bar-btn.active,
.mobile-bar-btn:hover {
  color: var(--color-gold-600);
}

.mobile-bar-btn svg {
  width: 20px;
  height: 20px;
}

.mobile-bar-badge {
  position: absolute;
  top: -2px;
  right: 12px;
  background: var(--color-gold-600);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Small Screen Typography & Layout refinements */
@media (max-width: 768px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .calculator-body {
    padding: 1.25rem;
  }

  .product-card-body {
    padding: 1rem;
  }

  .product-card-title {
    font-size: 1.05rem;
  }

  .product-price {
    font-size: 1.15rem;
  }

  .floating-whatsapp {
    bottom: 80px;
    right: 18px;
  }

  .floating-whatsapp-btn {
    width: 52px;
    height: 52px;
  }
}

/* Print Styles */
@media print {
  .site-header,
  .announcement-bar,
  .floating-whatsapp,
  .mobile-bottom-bar,
  .drawer,
  .drawer-backdrop,
  .modal-backdrop,
  .site-footer {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}
