@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@500;600;700&display=swap');

:root {
  --bg-main: #0a0b0d;
  --bg-surface: #111317;
  --bg-card: #16181f;
  --bg-card-hover: #1c1f28;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(0, 158, 255, 0.4);
  --border-gold-strong: #009EFF;

  --gold-primary: #009EFF;
  --gold-light: #38bdf8;
  --gold-dark: #0284c7;
  --gold-gradient: linear-gradient(135deg, #38bdf8 0%, #009EFF 60%, #0284c7 100%);
  --gold-glow: 0 0 20px rgba(0, 158, 255, 0.45);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-gold: #009EFF;

  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

.gold-gradient-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 2px 14px rgba(0, 158, 255, 0.35));
}

.gold-badge {
  background: rgba(0, 158, 255, 0.12);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 12px rgba(0, 158, 255, 0.15);
}

.btn-gold {
  background: var(--gold-gradient);
  color: #000;
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 26px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(0, 158, 255, 0.35);
  transition: all 0.25s ease;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 158, 255, 0.55);
  color: #000;
}

.btn-outline-gold {
  background: rgba(0, 158, 255, 0.04);
  color: var(--gold-light);
  border: 1px solid var(--border-gold);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-outline-gold:hover {
  background: rgba(0, 158, 255, 0.15);
  border-color: var(--gold-primary);
  color: #fff;
  transform: translateY(-1px);
}

.card-glass {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.card-glass:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 15px rgba(0, 158, 255, 0.15);
}

/* Announcement Top Bar */
.top-announcement {
  background: linear-gradient(90deg, #0a0b0d 0%, #0e1420 50%, #0a0b0d 100%);
  border-bottom: 1px solid rgba(0, 158, 255, 0.2);
  padding: 8px 16px;
  font-size: 0.78rem;
  color: var(--gold-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 11, 13, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-main-wrapper {
  max-width: 1320px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 78px;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.brand-logo-img:hover {
  transform: scale(1.02);
}

.header-content-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-bottom-row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 4px;
}

.search-container {
  flex: 1;
  max-width: 540px;
  position: relative;
}

.search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 9px 45px 9px 18px;
  color: var(--text-main);
  font-size: 0.86rem;
  outline: none;
  transition: all 0.2s ease;
}

.search-input:focus {
  border-color: var(--border-gold);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 15px rgba(0, 158, 255, 0.25);
}

.search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--gold-gradient);
  border: none;
  border-radius: 9999px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 158, 255, 0.35);
  transition: transform 0.2s;
}

.search-btn:hover {
  transform: translateY(-50%) scale(1.05);
}

/* Nav Menu */
.nav-list {
  display: flex;
  list-style: none;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.nav-link {
  display: inline-block;
  padding: 6px 2px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gold-gradient);
  transition: width 0.2s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Mode Switcher pill */
.mode-toggle {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.mode-option {
  padding: 4px 12px;
  border-radius: 9999px;
  transition: all 0.2s ease;
  color: var(--text-dim);
}

.mode-option.active {
  background: var(--gold-gradient);
  color: #000;
  box-shadow: 0 2px 8px rgba(0, 158, 255, 0.35);
}

/* Footer */
.site-footer {
  background: #07080a;
  border-top: 1px solid var(--border-subtle);
  margin-top: 50px;
  padding: 50px 20px 24px;
}

.footer-container {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
}

.footer-col-title {
  color: var(--gold-light);
  font-size: 0.95rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--gold-light);
  padding-left: 4px;
}

.footer-bottom {
  max-width: 1320px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 16px;
}

.amerip-credit-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  transition: all 0.25s ease;
}

.amerip-credit-link:hover {
  color: #fff;
}

.amerip-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 4px 9px;
  transition: all 0.25s ease;
}

.amerip-credit-link:hover .amerip-brand-badge {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.15);
  transform: translateY(-1px);
}

.amerip-credit-logo {
  height: 16px;
  width: auto;
  display: block;
}

.amerip-brand-name {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #f8fafc;
  font-size: 0.84rem;
}

.amerip-brand-product {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #ef4444;
  font-size: 0.75rem;
  padding-left: 2px;
}


/* ==========================================================================
   RESPONSIVE DESIGN & MOBILE OPTIMIZATIONS
   ========================================================================== */

.top-announcement-inner {
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.top-announcement-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-whatsapp-link {
  color: var(--gold-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

/* Desktop Visibility */
@media (min-width: 901px) {
  .mobile-only {
    display: none !important;
  }
  .mobile-bottom-bar {
    display: none !important;
  }
  .mobile-drawer {
    display: none !important;
  }
  .catalog-layout-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
  }
  .catalog-sidebar-panel {
    position: sticky;
    top: 120px;
    display: block !important;
  }
}

/* Mobile Screens (900px and down) */
@media (max-width: 900px) {
  body {
    padding-bottom: 68px; /* Room for bottom app bar */
  }

  .desktop-header-only {
    display: none !important;
  }

  .mobile-only {
    display: block !important;
  }

  .catalog-layout-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  .catalog-sidebar-panel {
    display: none;
    position: static !important;
    width: 100% !important;
    margin-bottom: 14px;
  }

  /* Top Announcement Bar compact */
  .top-announcement {
    padding: 6px 12px;
    font-size: 0.7rem;
  }

  .top-announcement-inner {
    justify-content: center;
    text-align: center;
    gap: 6px;
  }

  .top-announcement-actions {
    display: none; /* Accessible in mobile drawer and bottom bar */
  }

  /* Mobile Header */
  .site-header {
    padding: 0;
  }

  .mobile-header-wrapper {
    background: rgba(10, 11, 13, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-subtle);
  }

  .mobile-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px 6px;
    gap: 10px;
  }

  .mobile-icon-btn {
    background: none;
    border: none;
    color: #fff;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
  }

  .mobile-icon-btn:active {
    background: rgba(255, 255, 255, 0.1);
  }

  .mobile-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
  }

  .mobile-logo-img {
    height: 46px;
    max-width: 145px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 10px rgba(0, 158, 255, 0.35));
  }

  .mobile-cart-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 9999px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-light);
    position: relative;
    cursor: pointer;
  }

  .mobile-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--gold-primary);
    color: #000;
    font-size: 0.62rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-search-bar {
    padding: 2px 14px 8px;
  }

  /* Horizontal Category Chips */
  .mobile-cat-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 14px 10px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-cat-scroll::-webkit-scrollbar {
    display: none;
  }

  .mobile-cat-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  .mobile-cat-chip.active {
    background: rgba(0, 158, 255, 0.15);
    border-color: var(--gold-primary);
    color: var(--gold-light);
  }

  .mobile-cat-chip.gold-chip {
    background: rgba(0, 158, 255, 0.1);
    border-color: rgba(0, 158, 255, 0.5);
    color: var(--gold-light);
    box-shadow: 0 0 10px rgba(0, 158, 255, 0.2);
  }

  /* Offcanvas Menu Drawer */
  .mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 290px;
    height: 100vh;
    background: #0e1014;
    border-right: 1px solid var(--border-gold);
    z-index: 120;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 10px 0 35px rgba(0, 0, 0, 0.85);
  }

  .mobile-drawer.open {
    transform: translateX(0) !important;
  }

  .mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border-subtle);
    background: #08090c;
  }

  .mobile-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .drawer-link {
    display: block;
    padding: 11px 12px;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 600;
  }

  .drawer-link:hover, .drawer-link.active {
    background: rgba(0, 158, 255, 0.12);
    color: var(--gold-light);
  }

  .mobile-drawer-footer {
    padding: 16px;
    border-top: 1px solid var(--border-subtle);
    background: #08090c;
  }

  /* Fixed Bottom App Bar */
  .mobile-bottom-bar {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 60px !important;
    background: rgba(10, 11, 14, 0.96) !important;
    backdrop-filter: blur(16px) !important;
    border-top: 1px solid rgba(0, 158, 255, 0.22) !important;
    z-index: 95 !important;
    justify-content: space-around !important;
    align-items: center !important;
    padding-bottom: env(safe-area-inset-bottom) !important;
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-dim);
    text-decoration: none;
    padding: 6px 10px;
    flex: 1;
    text-align: center;
  }

  .mobile-nav-item.active {
    color: var(--gold-primary) !important;
  }

  /* Quick Cart Drawer on mobile */
  #cartDrawer {
    max-width: 100% !important;
  }

  /* Footer on mobile */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Quick Cart Drawer Base */
#cartDrawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  background: #111317;
  border-left: 1px solid var(--border-gold);
  z-index: 105;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
}

#cartDrawer.open {
  transform: translateX(0) !important;
}

/* Product Grids Base */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.depots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.products-grid-mobile {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.responsive-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Specific Page Grids on Mobile */
@media (max-width: 768px) {
  .responsive-two-cols {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .form-grid-2 {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .pillars-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .depots-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* Products Grids to 2 columns */
  #catalogGrid, .products-grid-mobile {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .catalog-layout-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Product Card Compact in Mobile */
  .card-glass {
    padding: 12px !important;
  }

  .card-glass h4 {
    font-size: 0.85rem !important;
    min-height: 2.6em;
    line-height: 1.25 !important;
  }

  .card-glass .product-price-display {
    font-size: 1rem !important;
  }

  .card-glass .btn-gold {
    padding: 6px 10px !important;
    font-size: 0.72rem !important;
  }
}

/* Luxury Hero Banner */
.hero-banner {
  position: relative;
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  padding: 100px 20px 85px;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 35%, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.5) 75%),
              linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(10, 11, 13, 0.85) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 0 auto;
  text-align: center;
}

.hero-content h1 {
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.9);
}

.hero-content p {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}

@media (max-width: 768px) {
  .hero-banner {
    padding: 55px 16px 45px;
    background-position: center 30%;
  }
}

/* Brand Filter Pills */
.brand-pills-container {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  max-width: 100%;
  width: 100%;
  padding-bottom: 8px;
  margin-bottom: 20px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.brand-pills-container::-webkit-scrollbar {
  height: 4px;
}

.brand-pills-container::-webkit-scrollbar-thumb {
  background: var(--gold-primary);
  border-radius: 4px;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.brand-pill:hover {
  background: rgba(0, 158, 255, 0.12);
  border-color: var(--border-gold);
  color: var(--gold-light);
}

.brand-pill.active {
  background: linear-gradient(135deg, rgba(0, 158, 255, 0.25) 0%, rgba(2, 132, 199, 0.35) 100%);
  border-color: var(--gold-primary);
  color: var(--gold-light);
  box-shadow: 0 0 10px rgba(0, 158, 255, 0.3);
}