/* 
  Hero Section Pattern Styles
  Scoped to .is-style-hero-section
*/

.is-style-hero-section .hero-section {
  background: linear-gradient(90deg, rgba(28, 183, 175, 0.50) 0%, rgba(0, 122, 116, 0.50) 100%), url('../../assets/images/Background.png');
  background-size: cover;
  background-position: center;
  padding-bottom: 100px;
  color: #FFFFFF;
  text-align: center;
  border-radius: 16px;
  margin: 20px auto;
  max-width: 1400px;
  overflow: visible;
}

.is-style-hero-section .main-header {
  padding: 28px 0;
  background-color: transparent !important;
  width: 100%;
  position: relative; /* Establish a stacking context for z-index */
  z-index: 1000;
}

/* Desktop Navbar Styles (White Box) */
.is-style-hero-section .navbar-wrapper {
    padding: 0 var(--container-padding);
    max-width: 1440px;
    margin: 0 auto;
}

.is-style-hero-section .navbar {
    background-color: #FFFFFF;
    border-radius: 16px;
    padding: 12px 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    height: 89px;
    color: #1A1A1A;
}

.is-style-hero-section .navbar .logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.is-style-hero-section .navbar .logo img {
    height: 65px;
    width: auto;
    display: block;
}

.is-style-hero-section .nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
    list-style: none;
}

.is-style-hero-section .nav-item {
    text-decoration: none;
    color: #6B6B69;
    font-size: 17px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.is-style-hero-section .nav-item:hover,
.is-style-hero-section .nav-item.active {
    color: #1A1A1A;
}

.is-style-hero-section .nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.is-style-hero-section .nav-actions > p {
    display: contents;
}

.is-style-hero-section .mobile-nav-group-left,
.is-style-hero-section .navbar-cart-img-mobile {
    display: none;
}

.is-style-hero-section .user-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    height: 100%;
}

.is-style-hero-section .user-icon svg {
    width: 34px;
    height: 34px;
    display: block;
}

.is-style-hero-section .user-icon svg path {
    stroke: #1A1A1A;
    stroke-width: 2;
}

.is-style-hero-section .desktop-search-form,
.is-style-hero-section .search-input-group {
    display: flex;
    align-items: center;
    width: 100%;
}

.is-style-hero-section .desktop-search-form {
    background: #F5F5F5;
    border-radius: 999px;
    padding: 8px 16px;
    width: 240px;
    margin-right: 15px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.is-style-hero-section .desktop-search-form:focus-within {
    background: #FFFFFF;
    border-color: #006A65;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.is-style-hero-section .desktop-search-input {
    background: transparent;
    border: none;
    outline: none;
    font-size: 15px;
    color: #1A1A1A;
    width: 100%;
    padding: 0;
}

.is-style-hero-section .desktop-search-btn {
    background: transparent;
    border: none;
    padding: 0;
    margin-left: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: #666;
}

.is-style-hero-section .desktop-search-btn:hover {
    color: #006A65;
}

.is-style-hero-section .mobile-search-bar {
    display: none;
}

.is-style-hero-section .mobile-search-bar.active {
    display: grid;
    grid-template-rows: 1fr;
    padding: 15px 34px;
    background: #006A65;
}

.is-style-hero-section .cart-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.is-style-hero-section .navbar-cart-img-desktop {
    width: 32px;
    height: auto;
}

.is-style-hero-section .cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #111111;
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}



/* Hero Content Styles */
.is-style-hero-section .hero-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.is-style-hero-section .breadcrumbs {
  font-size: 17.4px;
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 10px;
  opacity: 0.9;
}

.is-style-hero-section .breadcrumbs a {
  color: #FFFFFF;
  text-decoration: none;
}

.is-style-hero-section .breadcrumbs span.active {
  font-weight: 500;
}

.is-style-hero-section .hero-title {
  font-size: 88px;
  line-height: 1.2;
  margin-bottom: 12px;
  font-weight: 700;
  color: #FFFFFF;
}

.is-style-hero-section .hero-subtitle {
  font-size: 23.7px;
  opacity: 0.7;
  max-width: 800px;
  margin: 0 auto;
  font-weight: 500;
}

/* Mobile Responsive Overrides (Synced with Navbar Variant A) */
@media (max-width: 1024px) {
  .is-style-hero-section .hero-section {
    padding-bottom: 40px;
    margin: 0;
    border-radius: 0;
  }

  .is-style-hero-section .hero-container {
    padding-top: 20px !important;
    padding-bottom: 40px;
  }

  .is-style-hero-section .hero-title {
    font-size: 32px;
    margin-bottom: 10px;
    color: #FFFFFF;
  }

  .is-style-hero-section .hero-subtitle {
    font-size: 14px;
    max-width: 100%;
    line-height: 1.4;
  }

  .is-style-hero-section .breadcrumbs {
    font-size: 14px;
    margin-top: 20px !important;
  }

  .is-style-hero-section .main-header {
    padding: 0; /* Remove padding from header, move to wrapper for better glassmorphism coverage */
    height: auto;
    background-color: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(6px);
    border-bottom: 1px solid #E2E8F0;
  }

  .is-style-hero-section .navbar-wrapper {
    padding: 8px 20px !important; /* Matched to 20px from Navbar Variant A report */
  }

  .is-style-hero-section .navbar {
    background: transparent;
    height: auto;
    padding: 0;
    color: #1A1A1A;
    border-radius: 0;
    box-shadow: none;
  }

  .is-style-hero-section .navbar .logo img {
    height: 48px; /* Increased from 38px to find the sweet spot */
    width: auto;
    filter: none !important;
  }

  .is-style-hero-section .nav-links {
    display: none;
  }

  .is-style-hero-section .mobile-nav-group-left {
    display: flex;
    align-items: center;
    gap: 15px;
  }

  .is-style-hero-section .mobile-menu-trigger,
  .is-style-hero-section .mobile-search-trigger {
    display: flex;
    align-items: center;
    cursor: pointer;
  }

  .is-style-hero-section .mobile-menu-trigger svg,
  .is-style-hero-section .mobile-search-trigger svg {
    width: 26px; /* Increased from 24px */
    height: auto;
  }

  .is-style-hero-section .mobile-menu-trigger svg path,
  .is-style-hero-section .mobile-search-trigger svg path {
    stroke: #006A65;
  }

  .is-style-hero-section .nav-actions {
    display: flex;
    align-items: center;
  }

  .is-style-hero-section .user-icon {
    display: flex;
    align-items: center;
  }

  .is-style-hero-section .user-icon svg {
    width: 28px;
    height: auto;
  }

  .is-style-hero-section .user-icon svg path {
    stroke: #006A65;
  }

  .is-style-hero-section .desktop-search-form {
    display: none;
  }

  .is-style-hero-section .navbar-cart-img-desktop {
    display: none;
  }

  .is-style-hero-section .navbar-cart-img-mobile {
    display: block;
    width: 26px; /* Increased from 24px */
    height: auto;
  }

  .is-style-hero-section .cart-badge {
    background: #1CB7AF;
    font-size: 10px;
    min-width: 18px;
    height: 18px;
    top: -6px;
    right: -8px;
  }

  .is-style-hero-section .mobile-search-bar {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease-in-out, padding 0.3s ease-in-out;
    overflow: hidden;
    background: var(--gradient-teal) !important;
    padding: 0 15px;
    margin: 0 -20px; /* Matches the parent navbar-wrapper mobile padding of 20px */
  }

  .is-style-hero-section .mobile-search-form {
    min-height: 0; /* Crucial: allows grid template rows 0fr to collapse the form to 0px height */
  }

  .is-style-hero-section .mobile-search-bar.active {
    grid-template-rows: 1fr;
    padding: 10px 15px;
    margin-bottom: -10px;
    overflow: visible !important; /* Allow the AJAX dropdown to display without clipping */
  }

  .is-style-hero-section .search-input-group {
    min-height: 0;
    display: flex;
    background: white !important;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    height: var(--header-search-height) !important;
    border: 1px solid transparent !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* Premium Focus Shadow & Border Glow */
  .is-style-hero-section .search-input-group:has(.universal-search-input:focus) {
    box-shadow: 0 0 0 3px rgba(3, 184, 175, 0.25), 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    border-color: var(--primary-teal) !important;
  }

  .is-style-hero-section .universal-search-input {
    flex: 1 !important;
    border: none !important;
    padding: 0 15px !important;
    font-size: 14px !important;
    color: #121212 !important;
    background: transparent !important;
    height: 100% !important;
    outline: none !important;
  }

  .is-style-hero-section .universal-search-input::placeholder {
    color: #999894 !important;
  }

  .is-style-hero-section .search-btn {
    background: transparent !important;
    border: none !important;
    padding: 0 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    height: 100% !important;
  }

  .is-style-hero-section .search-btn svg {
    width: 18px !important;
    height: 18px !important;
    display: block !important;
  }

  .is-style-hero-section .search-btn svg path {
    stroke: #121212 !important;
    stroke-width: 2.5px !important;
  }
}