/* =========================================================
   Shop header opacity fix
   Keeps the sticky navigation solid so shop content cannot
   show through behind it.
   ========================================================= */

body.shop-page .site-header,
body.shop-page header.site-header.sticky-top {
  background: #ffffff !important;
  background-color: #ffffff !important;
  opacity: 1 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid rgba(9, 48, 64, .08) !important;
  box-shadow: 0 2px 18px rgba(9, 48, 64, .10) !important;
  z-index: 1040 !important;
}

body.shop-page .site-header .navbar,
body.shop-page .site-header .nav-wrap {
  background: #ffffff !important;
  background-color: #ffffff !important;
  opacity: 1 !important;
}

body.shop-page .shop-categories {
  padding-top: clamp(4.8rem, 6.5vw, 6.6rem);
}

@media (max-width: 991.98px) {
  body.shop-page .site-header .navbar-collapse {
    background: #ffffff !important;
  }
}

/* =========================================================
   ICS shop page styles
   Page-specific shop content only.
   Shared header, footer and typography rules live in site.css,
   components.css and typography-overrides.css.
   ========================================================= */

body.shop-page {
  background: #f6fbfb;
  color: #36566b;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Dropdown styling */
body.shop-page .site-header .shop-nav-item .dropdown-toggle::after {
  margin-left: .35rem;
  vertical-align: .12em;
}

.site-header .shop-dropdown {
  border: 1px solid rgba(9,48,64,.08);
  border-radius: 18px;
  padding: .6rem;
  box-shadow: 0 18px 42px rgba(9,48,64,.14);
}

.site-header .shop-dropdown .dropdown-item {
  border-radius: 12px;
  color: #093040;
  font-weight: 600;
  padding: .65rem .85rem;
}

.site-header .shop-dropdown .dropdown-item:hover,
.site-header .shop-dropdown .dropdown-item:focus {
  background: #eef8f9;
  color: #0FA644;
}

/* Shop content starts directly with categories */
.shop-categories {
  background:
    radial-gradient(circle at 18% 12%, rgba(120,184,191,.16), transparent 30%),
    radial-gradient(circle at 84% 10%, rgba(15,166,68,.08), transparent 30%),
    linear-gradient(135deg, #f4fbfb 0%, #ffffff 54%, #eef8f9 100%);
  padding: clamp(4.4rem, 6vw, 6.2rem) 0 clamp(4rem, 6vw, 6rem);
}

.shop-section-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

.shop-section-header {
  max-width: 800px;
  margin-bottom: clamp(1.7rem, 3vw, 2.4rem);
}

.shop-section-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: .72rem 1.65rem;
  border-radius: 999px;
  background: #78B8BF;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(120,184,191,.22);
  margin-bottom: 1.15rem;
}

.shop-section-header h1 {
  color: #093040;
  font-size: clamp(2.55rem, 4.45vw, 4.45rem);
  font-family: "Libre Baskerville", Georgia, serif;
  line-height: 1.03;
  letter-spacing: -.052em;
  font-weight: 700;
  margin-bottom: 1rem;
}

.shop-section-header p {
  font-size: 1.1rem;
  line-height: 1.65;
  color: #36566b;
  margin: 0;
}

.shop-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.shop-category-card {
  background: #fff;
  border: 1px solid rgba(9,48,64,.08);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 18px 38px rgba(9,48,64,.075);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.shop-card-image {
  position: relative;
  min-height: 190px;
  background:
    linear-gradient(135deg, rgba(120,184,191,.2), rgba(15,166,68,.08)),
    #eef8f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.shop-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-placeholder-label {
  display: none;
}

.shop-category-body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.shop-category-card h2 {
  color: #093040;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.25rem, 1.6vw, 1.55rem);
  line-height: 1.18;
  letter-spacing: -.035em;
  margin-bottom: .65rem;
}

.shop-category-card p {
  color: #536c7d;
  line-height: 1.6;
  margin-bottom: 1.1rem;
}

.shop-card-link,
.shop-email-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .78rem 1.05rem;
  border-radius: 12px;
  background: #0FA644;
  color: #fff;
  box-shadow: 0 12px 24px rgba(15,166,68,.18);
  font-weight: 600;
  text-decoration: none;
  width: fit-content;
  margin-top: auto;
}

.shop-card-link:hover,
.shop-card-link:focus,
.shop-email-link:hover,
.shop-email-link:focus {
  background: #0c933d;
  color: #fff;
}

.shop-contact-strip {
  background: #fff;
  border-top: 1px solid rgba(9,48,64,.07);
  padding: clamp(3rem, 5vw, 4.8rem) 0;
}

.shop-contact-card {
  border-radius: 28px;
  border: 1px solid rgba(9,48,64,.08);
  background: #fff;
  box-shadow: 0 18px 38px rgba(9,48,64,.075);
  padding: clamp(1.3rem, 3vw, 2rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.shop-contact-card h2 {
  color: #093040;
  font-size: clamp(1.6rem, 2.4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -.04em;
  margin: 0;
}

.shop-contact-card p {
  margin: .35rem 0 0;
  color: #536c7d;
}

@media (max-width: 991.98px) {
  .shop-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-contact-card {
    align-items: flex-start;
  }
}

@media (max-width: 575.98px) {
  .shop-categories {
    padding-top: 3.4rem;
  }

  .shop-category-grid {
    grid-template-columns: 1fr;
  }

  .shop-contact-card {
    display: grid;
  }

  .shop-card-link,
  .shop-email-link {
    width: 100%;
  }
}

/* =========================================================
   Shop footer styling
   Kept here because the shop page needs the same footer
   structure as the main pages until the footer is fully shared.
   ========================================================= */

body.shop-page .site-footer {
  background: #3f4b58 !important;
  color: rgba(255, 255, 255, .82) !important;
  padding: 2.75rem 0 1.4rem !important;
}

body.shop-page .site-footer .container {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: clamp(1.25rem, 4vw, 2rem);
  padding-right: clamp(1.25rem, 4vw, 2rem);
}

body.shop-page .footer-grid {
  display: grid !important;
  grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(150px, 1fr)) !important;
  gap: 2rem !important;
  align-items: start !important;
}

body.shop-page .footer-brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: .85rem !important;
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 1.05rem !important;
  line-height: 1.15 !important;
}

body.shop-page .footer-brand:hover,
body.shop-page .footer-brand:focus {
  color: #ffffff !important;
}

body.shop-page .footer-logo {
  width: 56px !important;
  height: 56px !important;
  flex: 0 0 56px !important;
  display: block !important;
}

body.shop-page .footer-brand span,
body.shop-page .footer-brand strong {
  color: #ffffff !important;
  font-size: 1rem !important;
  line-height: 1.15 !important;
  font-weight: 700 !important;
}

body.shop-page .footer-summary {
  color: rgba(255, 255, 255, .78) !important;
  margin: 1rem 0 0 !important;
  max-width: 340px !important;
  line-height: 1.6 !important;
}

body.shop-page .footer-column h2 {
  color: #ffffff !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  margin: 0 0 .9rem !important;
  padding-bottom: .55rem !important;
  border-bottom: 2px solid rgba(78, 166, 84, .65) !important;
}

body.shop-page .footer-column a,
body.shop-page .footer-column span {
  display: block !important;
  color: rgba(255, 255, 255, .82) !important;
  text-decoration: none !important;
  margin-bottom: .55rem !important;
  line-height: 1.45 !important;
}

body.shop-page .footer-column a:hover,
body.shop-page .footer-column a:focus {
  color: #ffffff !important;
  text-decoration: underline !important;
  text-underline-offset: .18em !important;
}

body.shop-page .footer-bottom {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: space-between !important;
  gap: .75rem 1rem !important;
  border-top: 1px solid rgba(255, 255, 255, .16) !important;
  margin-top: 2.25rem !important;
  padding-top: 1rem !important;
  color: rgba(255, 255, 255, .72) !important;
  font-size: .92rem !important;
}

body.shop-page .footer-bottom p {
  margin: 0 !important;
  color: rgba(255, 255, 255, .72) !important;
}

@media (max-width: 991.98px) {
  body.shop-page .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.shop-page .footer-brand-block {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 575.98px) {
  body.shop-page .site-footer {
    padding: 2.1rem 0 1.25rem !important;
  }

  body.shop-page .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  body.shop-page .footer-bottom {
    display: block !important;
  }

  body.shop-page .footer-bottom p + p {
    margin-top: .45rem !important;
  }
}

/* =========================================================
   Shop header CTA visibility fix
   Restores the green "Find an ICS Member" button in the shop nav.
   ========================================================= */

body.shop-page .site-header .nav-cta,
body.shop-page .site-header a.nav-cta,
body.shop-page .site-header .navbar .nav-cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 58px !important;
  padding: 1rem 1.45rem !important;
  border-radius: 12px !important;
  background: #0FA644 !important;
  background-color: #0FA644 !important;
  color: #ffffff !important;
  border: 0 !important;
  box-shadow: 0 12px 24px rgba(15, 166, 68, .18) !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.shop-page .site-header .nav-cta:hover,
body.shop-page .site-header .nav-cta:focus {
  background: #0c933d !important;
  background-color: #0c933d !important;
  color: #ffffff !important;
}

/* Keep enough room for the CTA on desktop */
@media (min-width: 992px) {
  body.shop-page .site-header .navbar-nav,
  body.shop-page .site-header .main-nav-list {
    align-items: center !important;
  }

  body.shop-page .site-header .nav-item.ms-lg-2 {
    display: flex !important;
    align-items: center !important;
  }
}

/* On mobile, make the CTA full-width inside the dropdown menu */
@media (max-width: 991.98px) {
  body.shop-page .site-header .nav-cta {
    width: 100% !important;
    margin-top: .5rem !important;
  }
}

