/* ===== BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== HEADER & NAVIGATION ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #FEFCFA;
}

/* Announcement Banner */
.announcement-banner {
  background-color: #BD986B;
  padding: 12px 32px;
  text-align: center;
  line-height: 14px;
  font-size: 14px;
  color: #FFFFFF;
  font-weight: 500;
}

#announcement {
  overflow: hidden;
  transition: height 0.3s ease, padding 0.3s ease;
}

#announcement.hidden {
  height: 0;
  padding: 0;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px 14px;
  background: #FEFCFA;
}

/* Logo */
.logo img {
  height: 40px;
}

/* Menu Icon */
.menu-icon {
  cursor: pointer;
  height: 20px;
  width: 20px;
}

/* Menu Overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(7px);
  display: none;
  z-index: 1000;
}

.menu-tab {
  position: absolute;
  top: 32px;
  left: 32px;
  width: 370px;
  background: #FEFCFA;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Close Button */
.close-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  cursor: pointer;
}

.close-button img {
  width: 24px;
  height: 24px;
}

.close-btn {
  color: #4A4845;
}

/* Navigation Links */
.nav-links .nav-item {
  padding: 8px;
}

.nav-links .nav-item a {
  color: #85827C;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links .nav-item a:hover {
  color: #4A4845;
}

.back-button {
  display: flex;
  align-items: center; /* Vertical centering */
  justify-content: center; /* Horizontal centering if needed */
  gap: 8px; /* Optional: space between icon and text */
  cursor: pointer;
}

/* Dropdown Styles */
.dropdown-content {
  padding-left: 8px;
  padding-top: 4px;
  gap: 4px;
  display: none;
}

.dropdown-link {
  padding: 4px;
}

.nav-links .nav-item.dropdown .dropdown-content {
  display: none;
  padding-left: 8px;
  gap: 4px;
}

.nav-links .nav-item.dropdown .dropdown-content a {
  color: #B5B3AE;
}

.nav-links .nav-item.dropdown .dropdown-content a:hover {
  color: #4A4845;
}

/* Divider */
.divider {
  height: 1px;
  background: #F4ECE3;
  margin: 16px 0;
}

/* Social Links */
.social-links a {
  color: #676560;
  text-decoration: none;
  display: block;
  padding: 8px 4px;
}

.social-links a:hover {
  text-decoration: solid;
}

/* ===== CART ICON ===== */
.cart-icon {
  position: relative;
  display: inline-block;
}

.cart-count{
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  background-color: #BD986B;
  color: #F4ECE3;
  width: 16px;
  height: 16px;
  font-size: 12px;
  padding: 8px;
  border-radius: 50%;
  display: none; /* Changed from flex to none by default */
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* ===== FOOTER STYLES ===== */
.footer-box-1 {
  padding: 32px;
  background-color: #F4ECE3;
}

.footer-box-2 {
  padding: 48px;
  background-color: #FEFCFA;
  border-radius: 8px;
}

/* Newsletter */
.newsletter {
  margin-bottom: 70px;
  width: 395px;
}

.newsletter-text {
  font-size: 20px;
  margin-bottom: 20px;
  color: #2D2C2A;
}

.newsletter-input {
  display: flex;
  gap: 8px;
}

.newsletter-input input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  flex: 1;
  width: 100%;
}

.newsletter-input button {
  padding: 10px 20px;
  background-color: #BD986B;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-input button:hover {
  background-color: #8B5E3C;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 94, 60, 0.3);
}

/* Footer Navigation */
.footer-nav {
  display: flex;
  gap: 34px;
  margin-bottom: 70px;
}

.nav-column {
  width: 180px;
}

.nav-column h3 {
  font-size: 20px;
  margin-bottom: 20px;
}

.nav-column a {
  display: block;
  font-size: 16px;
  margin-bottom: 20px;
  color: #85827C;
  text-decoration: none;
}

.nav-column a:hover {
  color: #8B5E3C;
}

/* Footer Logo */
.footer-logo {
  text-align: center;
  padding: 25px 0;
}

.footer-logo img {
  height: 35px;
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 48px;
  right: 32px;
  width: 64px;
  height: 64px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.4rem;
  box-shadow: var(--shadow-md);
  z-index: 90;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* Floating Currency Converter - Glass Morphism Style */
.currency-float {
  position: fixed;
  bottom: 32px; /* Position above WhatsApp button */
  left: 32px; /* Opposite side from WhatsApp */
  z-index: 90;
  transition: all 0.3s ease;
}

.currency-float .currency-selector {
  margin-right: 0;
  position: relative;
}

.currency-float .currency-toggle {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #2D2C2A;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 16px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.18);
  min-width: 100px;
}

.currency-float .currency-toggle:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.currency-float .currency-toggle i {
  transition: transform 0.3s ease;
  font-size: 12px;
  margin-left: 2px;
}

.currency-float .currency-toggle.active i {
  transform: rotate(180deg);
}

.currency-float .currency-dropdown {
  position: absolute;
  bottom: 100%;
  left: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 12px;
  padding: 0;
  width: 140px;
  display: none;
  z-index: 10;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  margin-bottom: 10px;
  overflow: hidden;
}

.currency-float .currency-dropdown.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.currency-float .currency-option {
  padding: 10px 12px;
  color: #2D2C2A;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(229, 215, 199, 0.3);
}

.currency-float .currency-option:last-child {
  border-bottom: none;
}

.currency-float .currency-option:hover {
  background: rgba(139, 94, 60, 0.1);
}

.currency-float .currency-option.active {
  background: rgba(139, 94, 60, 0.15);
  font-weight: 500;
}

/* Remove ALL tooltip styles - they're causing layout issues */
.currency-option:hover::after,
.currency-option:hover::before {
  display: none !important;
}

/* Scrollable Currency Dropdown */
.currency-list {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 4px;
}

/* Custom scrollbar */
.currency-list::-webkit-scrollbar {
  width: 4px;
}

.currency-list::-webkit-scrollbar-track {
  background: rgba(229, 215, 199, 0.1);
  border-radius: 2px;
}

.currency-list::-webkit-scrollbar-thumb {
  background: var(--taupe);
  border-radius: 2px;
}

.currency-list::-webkit-scrollbar-thumb:hover {
  background: var(--deep-moss);
}

/* Flag styling - keep simple */
.currency-flag {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  font-size: 16px;
}

.currency-toggle .currency-flag {
  width: 20px;
  height: 20px;
  font-size: 14px;
}

.currency-code {
  font-weight: 500;
  min-width: 40px;
  color: var(--chocolate);
}

/* SVG Flags using CountryFlags API */
.currency-flag {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.currency-toggle .currency-flag {
  width: 20px;
  height: 20px;
}

/* Flag classes - using CountryFlags API */
.flag-ng { background-image: url('https://flagcdn.com/w40/ng.png'); }
.flag-gh { background-image: url('https://flagcdn.com/w40/gh.png'); }
.flag-ke { background-image: url('https://flagcdn.com/w40/ke.png'); }
.flag-za { background-image: url('https://flagcdn.com/w40/za.png'); }
.flag-eg { background-image: url('https://flagcdn.com/w40/eg.png'); }
.flag-us { background-image: url('https://flagcdn.com/w40/us.png'); }
.flag-ca { background-image: url('https://flagcdn.com/w40/ca.png'); }
.flag-gb { background-image: url('https://flagcdn.com/w40/gb.png'); }
.flag-eu { background-image: url('https://flagcdn.com/w40/eu.png'); }
.flag-au { background-image: url('https://flagcdn.com/w40/au.png'); }
.flag-cn { background-image: url('https://flagcdn.com/w40/cn.png'); }

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE STYLES ===== */
/* Tablet Styles */
@media (max-width: 980px) {
  .announcement-banner {
    font-size: 13px;
    padding: 12px 20px;
  }
  
  .navbar {
    padding: 20px;
  }

  .logo img {
    height: 30px;
  }

  .menu-icon {
    height: 20px;
    width: 20px;
  }

  .menu-tab {
    top: 20px;
    left: 20px;
    width: calc(100% - 40px);
    height: auto;
    max-height: calc(100% - 40px);
    overflow-y: auto;
  }

  .footer-box-1 {
    padding: 20px;
  }

  .footer-box-2 {
    padding: 30px;
  }

  .newsletter {
    width: 300px;
  }

  .footer-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .footer-logo img {
    height: 28px;
  }

  .currency-float {
    bottom: 24px;
    left: 16px;
  }

  .whatsapp-float {
    bottom: 32px;
    right: 16px;
  }
  
  .currency-float .currency-toggle {
    padding: 10px 14px;
    font-size: 13px;
  }
}

/* Mobile Styles */
@media (max-width: 480px) {
  .announcement-banner p {
    font-size: 14px;
  }

  .navbar {
    padding: 16px;
  }

  .logo img {
    height: 28px;
  }

  .menu-tab {
    top: 16px;
    left: 16px;
    width: calc(100% - 32px);
    height: auto;
    max-height: calc(100% - 32px);
    overflow-y: auto;
  }
  
  .close-button {
    margin-bottom: 24px;
  }

  .nav-links .nav-item {
    padding: 12px 0;
  }

  .social-links a {
    padding: 12px 0;
  }

  .footer-box-1 {
    padding: 16px;
  }

  .footer-box-2 {
    padding: 24px;
  }

  .newsletter {
    margin-bottom: 40px;
    width: 100%;
  }

  .newsletter-text {
    font-size: 18px;
    letter-spacing: -2%;
  }

  .footer-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 40px;
  }

  .nav-column {
    width: 100%;
  }

  .nav-column h3 {
    font-size: 16px;
  }

  .nav-column a {
    font-size: 14px;
  }
}