/* ==========================================================================
   COMPONENT: NAVIGATION & FOOTER GLOBAL (TCREA 3D)
   ========================================================================== */

/* --- Mandatory Text Wrap Containment --- */
.header a, 
.header span, 
.header p, 
.header h3, 
.header h4,
.footer a, 
.footer span, 
.footer p, 
.footer h3,
.footer h4 {
  white-space: normal !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

/* ==========================================================================
   HEADER COMPONENT
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 5.5rem; /* 88px */
  background-color: #ffffff;
  border-bottom: 1px solid var(--surface-variant, #e1e3e4);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

.header__container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-sizing: border-box;
}

/* Brand Logo */
.header__logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.header__logo-text {
  font-family: var(--font-headline, 'Space Grotesk', sans-serif);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: #000000;
  text-transform: uppercase;
  font-style: italic;
}

.header__logo-highlight {
  color: var(--primary, #b7102a);
}

/* Navigation Menu */
.header__nav {
  display: flex;
  align-items: center;
  height: 100%;
}

.header__menu {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  height: 100%;
}

.header__menu-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.header__menu-link {
  font-family: var(--font-headline, 'Space Grotesk', sans-serif);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #000000;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
}

.header__menu-link:hover {
  color: var(--primary, #b7102a);
}

.header__dropdown-icon {
  font-size: 0.55rem;
  color: var(--outline, #8f6f6e);
  transition: transform 0.2s ease;
}

/* Hover dropdown triggers */
.header__menu-item--has-dropdown:hover .header__dropdown-icon {
  transform: rotate(180deg);
  color: var(--primary, #b7102a);
}

/* Dropdown styling */
.header__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 14rem;
  background-color: #ffffff;
  border: 1px solid var(--surface-variant, #e1e3e4);
  border-radius: var(--radius-xl, 0.5rem);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 0.75rem 0.5rem;
  margin: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1010;
}

.header__menu-item--has-dropdown:hover .header__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.header__dropdown-item {
  width: 100%;
}

.header__dropdown-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--on-surface-variant, #5b403f);
  text-decoration: none;
  padding: 0.65rem 0.875rem;
  border-radius: var(--radius-lg, 0.25rem);
  transition: all 0.2s ease;
}

.header__dropdown-link:hover {
  background-color: var(--surface-container-low, #f3f4f5);
  color: var(--primary, #b7102a);
}

.header__dropdown-link svg,
.header__dropdown-link .material-symbols-outlined {
  font-size: 1.15rem;
  color: var(--outline, #8f6f6e);
  transition: color 0.2s ease;
  width: 1.15rem;
  height: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header__dropdown-link:hover svg,
.header__dropdown-link:hover .material-symbols-outlined {
  color: var(--primary, #b7102a);
}

/* ==========================================================================
   SEARCH BAR PILL (STICKY ONLY)
   ========================================================================== */
.header__search-pill {
  display: none; /* Hidden by default */
  align-items: center;
  background-color: var(--surface-container-low, #f3f4f5);
  border: 1px solid var(--surface-variant, #e1e3e4);
  border-radius: var(--radius-full, 0.75rem);
  padding: 0.45rem 1rem;
  gap: 0.5rem;
  max-width: 18rem;
  width: 100%;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header__search-pill-icon {
  font-size: 1.15rem;
  color: var(--outline, #8f6f6e);
}

.header__search-pill-input {
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.75rem;
  font-weight: 700;
  width: 100%;
  color: #000000;
}

.header__search-pill-input::placeholder {
  color: var(--outline, #8f6f6e);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ==========================================================================
   RIGHT ACTION BUTTONS
   ========================================================================== */
.header__actions {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.header__action-btn {
  background: transparent;
  border: none;
  outline: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-weight: 600;
  font-size: 0.8125rem;
  color: #000000;
  cursor: pointer;
  text-decoration: none;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
  position: relative;
}

.header__action-btn:hover {
  color: var(--primary, #b7102a);
}

.header__action-btn .material-symbols-outlined {
  font-size: 1.35rem;
  color: #000000;
  transition: color 0.2s ease;
}

.header__action-btn:hover .material-symbols-outlined {
  color: var(--primary, #b7102a);
}

.header__cart-badge {
  position: absolute;
  top: -2px;
  left: 12px;
  background-color: var(--primary, #b7102a);
  color: #ffffff;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #ffffff;
}

/* ==========================================================================
   STICKY STATE CHANGES (BLURRED FROSTED GLASS)
   ========================================================================== */
.header--sticky {
  height: 4.25rem; /* 68px */
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.header--sticky .header__search-pill {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.header--sticky .header__action-btn--search {
  display: none; /* Hide default search button when sticky search pill is shown */
}

/* ==========================================================================
   MOBILE MENU BUTTON (Touch Target Minimum 48px x 48px)
   ========================================================================== */
.header__menu-btn {
  display: none; /* Hidden on desktop */
  align-items: center;
  justify-content: center;
  width: 3rem; /* 48px */
  height: 3rem; /* 48px */
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  outline: none;
  z-index: 1100;
  margin-right: -0.5rem;
}

.header__menu-btn-icon {
  position: relative;
  width: 1.35rem;
  height: 0.95rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.header__menu-btn-bar {
  width: 100%;
  height: 2px;
  background-color: #000000;
  transition: all 0.25s ease;
}

/* Active hamburger states */
.header__menu-btn--active .header__menu-btn-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.header__menu-btn--active .header__menu-btn-bar:nth-child(2) {
  opacity: 0;
}

.header__menu-btn--active .header__menu-btn-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Nav Drawer */
.header__overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1050;
}

.header__overlay--active {
  opacity: 1;
  visibility: visible;
}

.header__drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 20rem;
  height: 100vh;
  background-color: #ffffff;
  box-shadow: -10px 0 30px rgba(0,0,0,0.15);
  z-index: 1060;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 5.5rem 1.5rem 2rem 1.5rem;
  box-sizing: border-box;
  overflow-y: auto;
}

.header__drawer--active {
  right: 0;
}

.header__drawer-menu {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 0;
  margin: 0 0 2rem 0;
  list-style: none;
}

.header__drawer-item {
  width: 100%;
}

.header__drawer-link {
  font-family: var(--font-headline, 'Space Grotesk', sans-serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: #000000;
  text-transform: uppercase;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.header__drawer-submenu {
  list-style: none;
  padding: 0.5rem 0 0 1rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.header__drawer-sublink {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--on-surface-variant, #5b403f);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header__drawer-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-top: 1px solid var(--surface-variant, #e1e3e4);
  padding-top: 1.5rem;
}

/* ==========================================================================
   FOOTER COMPONENT (2 BANDAS)
   ========================================================================== */
.footer {
  background-color: var(--dark-navy, #0a111f);
  color: #ffffff;
  font-family: var(--font-body, 'Inter', sans-serif);
  position: relative;
  z-index: 10;
  box-sizing: border-box;
}

.footer__container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  box-sizing: border-box;
}

/* BANDA 1: MAIN FOOTER (5 COLUMNS GRID) */
.footer__main {
  padding: 5rem 0 4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__main-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.2fr 1fr;
  gap: 2.5rem;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer__col--brand {
  padding-right: 2rem;
}

.footer__logo {
  text-decoration: none;
  display: inline-block;
}

.footer__logo-text {
  font-family: var(--font-headline, 'Space Grotesk', sans-serif);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-transform: uppercase;
  font-style: italic;
}

.footer__logo-highlight {
  color: var(--primary, #b7102a);
}

.footer__slogan {
  font-family: var(--font-headline, 'Space Grotesk', sans-serif);
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
  margin: 0;
}

.footer__desc {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  margin: 0;
}

/* Social links */
.footer__socials {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.footer__social-link {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer__social-link:hover {
  background-color: var(--primary, #b7102a);
  border-color: var(--primary, #b7102a);
  color: #ffffff;
  transform: translateY(-2px);
}

.footer__social-link svg {
  width: 0.875rem;
  height: 0.875rem;
  fill: currentColor;
}

/* Standard columns link list */
.footer__title {
  font-family: var(--font-headline, 'Space Grotesk', sans-serif);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffffff;
  margin: 0;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer__title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 1.5rem;
  height: 2px;
  background-color: var(--primary, #b7102a);
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__link-item {
  display: block;
}

.footer__link {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-block;
}

.footer__link:hover {
  color: var(--primary, #b7102a);
}

/* Contact Info styling in footer */
.footer__contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
}

.footer__contact-icon {
  font-size: 1rem;
  color: var(--primary, #b7102a);
  margin-top: 0.15rem;
}

/* BANDA 2: BOTTOM BAR (VALUE PROPOSITIONS) */
.footer__bottom {
  padding: 3rem 0;
  background-color: #080d17; /* Slightly darker navy than Banda 1 */
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.footer__bottom-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer__value-prop {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer__value-icon {
  font-size: 2.25rem;
  color: var(--primary, #b7102a);
  flex-shrink: 0;
}

.footer__value-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.footer__value-title {
  font-family: var(--font-headline, 'Space Grotesk', sans-serif);
  font-weight: 700;
  font-size: 0.875rem;
  color: #ffffff;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.footer__value-sub {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

/* BANDA 3: COPYRIGHT, SLA & TRUST (STRIPE) */
.footer__legal-bar {
  padding: 2rem 0;
  background-color: #060a12; /* Even darker black-navy */
}

.footer__legal-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer__copyright {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

.footer__gateways {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer__gateway-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  margin-right: 0.25rem;
}

.footer__gateway-icon {
  height: 1.25rem;
  opacity: 0.65;
  transition: opacity 0.2s ease;
}

.footer__gateway-icon:hover {
  opacity: 1;
}

/* ==========================================================================
   RESPONSIVE DESIGN (<= 1024px) - TABLET BREAKPOINT
   ========================================================================== */
@media (max-width: 1024px) {
  .header {
    height: 4.5rem;
  }
  
  .header__nav {
    display: none; /* Hide standard nav, activate drawer */
  }

  .header__search-pill {
    display: none !important; /* Hide search input on tablet */
  }

  .header__action-btn--search {
    display: flex !important; /* Keep search icon button */
  }
  
  .header__menu-btn {
    display: flex; /* Show menu toggle */
  }

  .header__action-label {
    display: none; /* Hide labels, keep icons only for compact actions */
  }

  .header__actions {
    gap: 1.25rem;
  }

  /* Footer Layout adaptation */
  .footer__main {
    padding: 4rem 0 3rem 0;
  }

  .footer__main-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }

  .footer__col--brand {
    grid-column: span 2;
    padding-right: 0;
    max-width: 32rem;
  }

  .footer__bottom-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN (<= 768px) - MOBILE BREAKPOINT
   ========================================================================== */
@media (max-width: 768px) {
  /* Footer: Column Compact transition */
  .footer__container {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
  
  .footer__main-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
  }

  .footer__col--brand {
    grid-column: auto;
  }

  .footer__bottom-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
  
  .footer__value-prop {
    gap: 0.75rem;
  }

  .footer__value-icon {
    font-size: 2rem;
  }

  .footer__legal-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}
