	/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: Astra child theme for Crystec Spa Parts Store.
Author: Crystec
Template: astra
Version: 1.0.2
Text Domain: astra-child
*/

/* ===== Crystec Amazon-style WooCommerce page ===== */

body .crystec-page {
  background: #eaeded !important;
  min-height: 100vh !important;
  font-family: Arial, Helvetica, sans-serif !important;
  padding-bottom: 40px !important;
}

/* Header */
body .crystec-amazon-header {
  background: #131921 !important;
  color: #fff !important;
  width: 100% !important;
}

body .crystec-topbar {
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
  padding: 10px 18px !important;
  background: #131921 !important;
  box-sizing: border-box !important;
}

/* Logo image */
body .crystec-logo {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 255px !important;
  min-width: 220px !important;
  text-decoration: none !important;
  line-height: 1 !important;
}

body .crystec-logo img {
  display: block !important;
  width: 230px !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}

/* Delivery */
.crystec-deliver {
  color: #fff !important;
  font-size: 13px !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  padding: 8px 10px !important;
  border: 1px solid transparent !important;
  display: block !important;
}

.crystec-deliver strong {
  display: block !important;
  font-size: 15px !important;
  font-weight: 800 !important;
}

.crystec-deliver:hover {
  border-color: #fff !important;
  color: #fff !important;
}

/* Search */
body .crystec-search {
  flex: 1 !important;
  min-width: 280px !important;
}

body .crystec-search form {
  display: flex !important;
  width: 100% !important;
  margin: 0 !important;
}

body .crystec-search input[type="search"] {
  height: 46px !important;
  width: 100% !important;
  border: 0 !important;
  border-radius: 5px 0 0 5px !important;
  padding: 0 16px !important;
  font-size: 18px !important;
  background: #fff !important;
  color: #111 !important;
  box-sizing: border-box !important;
}

body .crystec-search button,
body .crystec-search input[type="submit"] {
  background: #febd69 !important;
  color: #111 !important;
  border: 0 !important;
  border-radius: 0 5px 5px 0 !important;
  padding: 0 32px !important;
  font-weight: 900 !important;
  letter-spacing: 4px !important;
  cursor: pointer !important;
  height: 46px !important;
  text-transform: uppercase !important;
}

/* Clickable account/orders */
body .crystec-account {
  color: #fff !important;
  display: block !important;
  font-size: 14px !important;
  line-height: 1.1 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  padding: 8px 9px !important;
  border: 1px solid transparent !important;
}

body .crystec-account strong {
  display: block !important;
  font-size: 16px !important;
  font-weight: 800 !important;
}

/* Clickable cart */
body .crystec-cart {
  color: #fff !important;
  display: block !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  padding: 8px 9px !important;
  border: 1px solid transparent !important;
}

body .crystec-account:hover,
body .crystec-cart:hover,
body .crystec-nav a:hover {
  color: #fff !important;
  border-color: #fff !important;
  text-decoration: none !important;
}

/* Secondary nav */
body .crystec-nav {
  display: flex !important;
  gap: 28px !important;
  align-items: center !important;
  background: #232f3e !important;
  padding: 12px 18px !important;
  overflow-x: auto !important;
  box-sizing: border-box !important;
}

body .crystec-nav a,
body .crystec-nav span {
  color: #fff !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  border: 1px solid transparent !important;
  padding: 5px 7px !important;
}

body .crystec-all-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

/* Hero */
body .crystec-hero {
  background:
    linear-gradient(90deg, rgba(15,47,111,.96), rgba(20,60,140,.88), rgba(11,31,77,.92)),
    radial-gradient(circle at 78% 40%, rgba(254,189,105,.65), transparent 28%) !important;

  min-height: 320px !important;
  color: #fff !important;

  /* move content much higher */
  padding: 0 46px 120px !important;

  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;

  box-sizing: border-box !important;
  position: relative !important;
}

body .crystec-hero-text {
  position: relative !important;
  z-index: 5 !important;

  /* pull text upward */
  margin-top: -50px !important;
}

body .crystec-hero h1 {
  color: #fff !important;
  font-size: 56px !important;
  line-height: .92 !important;
  margin: 0 0 6px !important;
  max-width: 780px !important;
  font-weight: 900 !important;
  letter-spacing: -1px !important;
}

body .crystec-hero p {
  color: #fff !important;
  font-size: 23px !important;
  max-width: 780px !important;
  margin: 0 !important;
  line-height: 1.15 !important;
}

/* Promo cards like Amazon homepage boxes */
body .crystec-promo-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 22px !important;
  padding: 0 22px !important;
  margin-top: -78px !important;
  position: relative !important;
  z-index: 5 !important;
  box-sizing: border-box !important;
}

body .crystec-promo-card {
  background: #fff !important;
  padding: 24px !important;
  min-height: 285px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.16) !important;
  box-sizing: border-box !important;
}

body .crystec-promo-card h2 {
  color: #111 !important;
  font-size: 25px !important;
  margin: 0 0 18px !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
}

body .crystec-mini-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 12px !important;
}

body .crystec-mini-grid a {
  background: #e8f1fb !important;
  color: #111 !important;
  min-height: 96px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  text-decoration: none !important;
  font-weight: 800 !important;
  padding: 12px !important;
  box-sizing: border-box !important;
}

body .crystec-mini-grid a:hover {
  background: #d7e9f8 !important;
  color: #c45500 !important;
}

body .crystec-card-link {
  display: inline-block !important;
  margin-top: 20px !important;
  color: #007185 !important;
  text-decoration: none !important;
  font-weight: 700 !important;
}

/* Product section */
body .crystec-layout {
  display: grid !important;
  grid-template-columns: 240px 1fr !important;
  gap: 24px !important;
  padding: 24px !important;
  box-sizing: border-box !important;
}

body .crystec-sidebar,
body .crystec-card,
body .crystec-shop-tools {
  background: #fff !important;
  padding: 18px !important;
  box-sizing: border-box !important;
}

body .crystec-sidebar h3 {
  margin-top: 0 !important;
  color: #111 !important;
  font-weight: 900 !important;
}

body .crystec-sidebar a {
  color: #007185 !important;
  text-decoration: none !important;
}

body .crystec-sidebar a:hover {
  color: #c45500 !important;
}

body .crystec-shop-tools {
  margin-bottom: 18px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 16px !important;
}

body .crystec-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
}

body .crystec-card {
  transition: box-shadow .2s ease, transform .2s ease !important;
}

body .crystec-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.16) !important;
  transform: translateY(-2px) !important;
}

body .crystec-card img {
  width: 100% !important;
  height: 220px !important;
  object-fit: contain !important;
}

body .crystec-card h2 {
  font-size: 16px !important;
  min-height: 48px !important;
  margin: 12px 0 8px !important;
  line-height: 1.35 !important;
}

body .crystec-card h2 a {
  color: #111827 !important;
  text-decoration: none !important;
}

body .crystec-card h2 a:hover {
  color: #c45500 !important;
}

body .crystec-rating {
  font-size: 13px !important;
  margin: 8px 0 !important;
}

body .crystec-price {
  font-size: 22px !important;
  font-weight: 800 !important;
  margin: 10px 0 !important;
  color: #111 !important;
}

body .crystec-delivery {
  color: #007600 !important;
  font-size: 14px !important;
  margin-bottom: 12px !important;
}

body .crystec-card .button,
body .crystec-card .add_to_cart_button,
body .crystec-card .single_add_to_cart_button {
    font-size: 11px !important;
    font-weight: 400 !important;
    line-height: 1 !important;

    padding: 8px 14px !important;

    letter-spacing: 0 !important;
    text-transform: none !important;
}

body .crystec-card .button:hover {
  background: #f7ca00 !important;
  color: #111 !important;
}

/* Responsive */
@media (max-width: 1200px) {
  body .crystec-logo {
    width: 210px !important;
    min-width: 190px !important;
  }

  body .crystec-logo img {
    width: 190px !important;
  }

  body .crystec-promo-grid,
  body .crystec-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 900px) {
  body .crystec-topbar {
    flex-wrap: wrap !important;
  }

  body .crystec-search {
    order: 5 !important;
    flex-basis: 100% !important;
  }

  body .crystec-layout {
    grid-template-columns: 1fr !important;
  }

  body .crystec-hero h1 {
    font-size: 40px !important;
  }
}

@media (max-width: 560px) {
  body .crystec-promo-grid,
  body .crystec-grid {
    grid-template-columns: 1fr !important;
  }

  body .crystec-deliver {
    display: none !important;
  }

  body .crystec-logo {
    width: 160px !important;
    min-width: 150px !important;
  }

  body .crystec-logo img {
    width: 150px !important;
  }

  body .crystec-account {
    font-size: 12px !important;
  }

  body .crystec-cart {
    font-size: 18px !important;
  }

  body .crystec-hero {
    padding: 42px 22px !important;
  }

  body .crystec-hero h1 {
    font-size: 32px !important;
  }
}

.crystec-category-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.crystec-category-list li {
  border-bottom: 1px solid #eee !important;
}

.crystec-category-list a {
  display: block !important;
  padding: 11px 4px !important;
  color: #111 !important;
  text-decoration: none !important;
  font-size: 15px !important;
}

.crystec-category-list a:hover {
  color: #c45500 !important;
  background: #f7f7f7 !important;
}

/* Connector Featured Groups:
   each group is one promo card; each selected category is a clickable image tile. */
body .crystec-featured-groups-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
}

body .crystec-featured-group-card {
  min-height: 250px !important;
}

body .crystec-featured-group-card .crystec-mini-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body .crystec-mini-category-card {
  min-height: 118px !important;
  padding: 8px !important;
  flex-direction: column !important;
  gap: 7px !important;
}

body .crystec-mini-image {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 68px !important;
  width: 100% !important;
}

body .crystec-mini-image img {
  max-width: 100% !important;
  max-height: 68px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}

body .crystec-mini-title {
  display: block !important;
  color: #111 !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
  text-align: center !important;
  overflow-wrap: anywhere !important;
}

body .crystec-all-menu {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  z-index: 999999 !important;
}

body .crystec-all-button {
  background: transparent !important;
  color: #fff !important;
  border: 1px solid transparent !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  padding: 5px 7px !important;
  cursor: pointer !important;
}

body .crystec-all-dropdown {
  display: none !important;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  width: 360px !important;
  max-height: 520px !important;
  overflow-y: auto !important;
  background: #fff !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.35) !important;
  z-index: 999999 !important;
  padding: 8px 0 !important;
}

body .crystec-all-menu:hover .crystec-all-dropdown,
body .crystec-all-menu:focus-within .crystec-all-dropdown {
  display: block !important;
}

body .crystec-all-dropdown a {
  display: block !important;
  color: #111 !important;
  background: #fff !important;
  padding: 12px 18px !important;
  text-decoration: none !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}

body .crystec-all-dropdown a:hover {
  background: #f3f3f3 !important;
  color: #c45500 !important;
}

/* Fix Astra clipping dropdown */
body .site,
body .site-content,
body .ast-container,
body .woocommerce,
body .woocommerce-page,
body .crystec-page,
body .crystec-amazon-header,
body .crystec-nav {
  overflow: visible !important;
}

/* Force dropdown above everything */
body .crystec-all-menu {
  position: relative !important;
  z-index: 9999999 !important;
}

body .crystec-all-dropdown {
  display: none !important;
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 0 !important;
  width: 360px !important;
  max-height: 520px !important;
  overflow-y: auto !important;
  background: #fff !important;
  border-radius: 4px !important;
  box-shadow: 0 12px 30px rgba(0,0,0,.35) !important;
  z-index: 99999999 !important;
  padding: 8px 0 !important;
}

body .crystec-all-menu:hover > .crystec-all-dropdown {
  display: block !important;
}

body .crystec-hero {
  position: relative !important;
  overflow: hidden !important;
  justify-content: space-between !important;
  gap: 40px !important;
}

body .crystec-hero-text {
  position: relative !important;
  z-index: 2 !important;
  max-width: 760px !important;
}

body .crystec-hero-images {
  position: absolute !important;
  right: 40px !important;
  bottom: 0 !important;
  display: flex !important;
  align-items: flex-end !important;
  gap: 24px !important;
  z-index: 1 !important;
  opacity: 0.95 !important;
}

body .crystec-hero-images img {
  max-height: 230px !important;
  width: auto !important;
  object-fit: contain !important;
  filter: drop-shadow(0 18px 22px rgba(0,0,0,.35)) !important;
}

body .crystec-hero-images img:nth-child(2) {
  max-height: 260px !important;
}

body .crystec-hero-images img:nth-child(3) {
  max-height: 245px !important;
}

body .crystec-hero-images img:nth-child(4) {
  max-height: 210px !important;
}

@media (max-width: 900px) {
  body .crystec-hero-images {
    opacity: 0.25 !important;
    right: 10px !important;
  }
}

body .crystec-header-currency {
  color: #fff !important;
  white-space: nowrap !important;
}

body .crystec-header-currency .crystec-currency-selector {
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

body .crystec-header-currency label,
body .crystec-header-currency span {
  display: none !important;
}

body .crystec-header-currency select {
  background: #131921 !important;
  color: #fff !important;
  border: 1px solid transparent !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  padding: 8px 6px !important;
  cursor: pointer !important;
}

body .crystec-header-currency select:hover {
  border-color: #fff !important;
}


/* ===== Crystec width / overflow fixes =====
   Keeps the child theme inside the page width and prevents horizontal scrolling.
*/

html,
body {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

body .crystec-page {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

body .crystec-amazon-header,
body .crystec-topbar,
body .crystec-nav,
body .crystec-hero,
body .crystec-promo-grid,
body .crystec-layout,
body .crystec-products,
body .crystec-grid {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Header shrink fixes */
body .crystec-topbar {
  width: 100% !important;
  gap: 12px !important;
  flex-wrap: nowrap !important;
}

body .crystec-logo {
  flex: 0 0 auto !important;
}

body .crystec-search {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

body .crystec-search form {
  min-width: 0 !important;
  max-width: 100% !important;
}

body .crystec-search input[type="search"] {
  min-width: 0 !important;
}

body .crystec-search button,
body .crystec-search input[type="submit"] {
  flex: 0 0 auto !important;
  padding-left: 18px !important;
  padding-right: 18px !important;
  letter-spacing: 1px !important;
}

/* Navigation should scroll internally, not widen the whole page */
body .crystec-nav {
  overflow-x: auto !important;
  overflow-y: visible !important;
  -webkit-overflow-scrolling: touch !important;
}

/* Dropdown can be wide, but never wider than the viewport */
body .crystec-all-dropdown {
  width: min(360px, calc(100vw - 32px)) !important;
  max-width: calc(100vw - 32px) !important;
}

/* Hero image cluster was the most likely overflow cause */
body .crystec-hero {
  width: 100% !important;
  max-width: 100vw !important;
}

body .crystec-hero-text {
  max-width: min(760px, 100%) !important;
}

body .crystec-hero-images {
  right: 24px !important;
  max-width: 48% !important;
  overflow: hidden !important;
}

body .crystec-hero-images img {
  max-width: 24% !important;
  height: auto !important;
}

/* Responsive grids that cannot exceed viewport */
body .crystec-promo-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
}

body .crystec-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
}

body .crystec-layout {
  grid-template-columns: minmax(200px, 240px) minmax(0, 1fr) !important;
}

body .crystec-card,
body .crystec-promo-card,
body .crystec-sidebar {
  min-width: 0 !important;
}

/* Tablet */
@media (max-width: 1024px) {
  body .crystec-topbar {
    flex-wrap: wrap !important;
  }

  body .crystec-search {
    order: 10 !important;
    flex: 1 1 100% !important;
    width: 100% !important;
  }

  body .crystec-hero-images {
    opacity: 0.25 !important;
    right: 0 !important;
    max-width: 60% !important;
  }
}

/* Mobile */
@media (max-width: 700px) {
  body .crystec-page {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body .crystec-topbar {
    padding: 10px 12px !important;
    gap: 8px !important;
  }

  body .crystec-logo {
    width: 150px !important;
    min-width: 130px !important;
  }

  body .crystec-logo img {
    width: 140px !important;
  }

  body .crystec-header-currency {
    max-width: 90px !important;
  }

  body .crystec-account {
    max-width: 135px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  body .crystec-cart {
    font-size: 16px !important;
  }

  body .crystec-hero {
    padding: 40px 18px !important;
  }

  body .crystec-hero-images {
    display: none !important;
  }

  body .crystec-promo-grid,
  body .crystec-layout {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  body .crystec-layout {
    grid-template-columns: 1fr !important;
  }
}


/* ===== Featured group layout fix =====
   Removes overlap from promo cards and switches product layout to full width.
*/

body .crystec-hero {
  min-height: 320px !important;
  padding-bottom: 110px !important;
}

body .crystec-promo-grid {
  margin-top: -70px !important;
  align-items: stretch !important;
  overflow: visible !important;
  position: relative !important;
}

body .crystec-promo-card {
  min-width: 0 !important;
  overflow: hidden !important;
}

body .crystec-mini-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body .crystec-mini-grid a {
  min-width: 0 !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  hyphens: auto !important;
}

/* No sidebar now: top featured groups are enough */
body .crystec-layout,
body .crystec-layout-no-sidebar {
  grid-template-columns: minmax(0, 1fr) !important;
}

body .crystec-sidebar {
  display: none !important;
}

body .crystec-products {
  min-width: 0 !important;
  width: 100% !important;
}

/* Keep cards sane on medium screens */
@media (max-width: 1200px) {
  body .crystec-promo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    margin-top: -55px !important;
  }

  body .crystec-hero {
    padding-bottom: 90px !important;
  }
}

@media (max-width: 700px) {
  body .crystec-promo-grid {
    grid-template-columns: 1fr !important;
    margin-top: 16px !important;
  }

  body .crystec-hero {
    padding-bottom: 40px !important;
  }
}


/* ===== Featured group card image/text refinement ===== */

body .crystec-promo-card {
  padding: 18px !important;
  min-height: 250px !important;
}

body .crystec-promo-card h2 {
  font-size: 21px !important;
  line-height: 1.15 !important;
  margin-bottom: 14px !important;
}

body .crystec-mini-grid {
  gap: 10px !important;
}

body .crystec-mini-grid a {
  min-height: 118px !important;
  padding: 8px !important;
  flex-direction: column !important;
  gap: 7px !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
}

body .crystec-mini-image {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 68px !important;
  width: 100% !important;
}

body .crystec-mini-image img {
  max-width: 100% !important;
  max-height: 68px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}

body .crystec-mini-title {
  display: block !important;
  color: #111 !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
  text-align: center !important;
  overflow-wrap: anywhere !important;
}

body .crystec-card-link {
  font-size: 14px !important;
  margin-top: 14px !important;
}

/* Slightly smaller on compact screens */
@media (max-width: 700px) {
  body .crystec-promo-card h2 {
    font-size: 19px !important;
  }

  body .crystec-mini-grid a {
    min-height: 104px !important;
    font-size: 12px !important;
  }

  body .crystec-mini-image {
    height: 58px !important;
  }

  body .crystec-mini-image img {
    max-height: 58px !important;
  }
}


/* ===== Dropdown z-index + centered hero images fix ===== */

/* Let the nav/dropdown sit above the hero section */
body .crystec-amazon-header {
  position: relative !important;
  z-index: 10000000 !important;
}

body .crystec-nav {
  position: relative !important;
  z-index: 10000001 !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
}

body .crystec-all-menu {
  position: relative !important;
  z-index: 10000002 !important;
}

body .crystec-all-dropdown {
  z-index: 10000003 !important;
}

/* Keep hero below dropdowns */
body .crystec-hero {
  position: relative !important;
  z-index: 1 !important;
  overflow: hidden !important;
}

/* Center hero images instead of forcing them into lower-right corner */
body .crystec-hero-images {
  position: absolute !important;
  left: 50% !important;
  right: auto !important;
  bottom: 24px !important;
  transform: translateX(-50%) !important;
  width: min(720px, 52vw) !important;
  max-width: 52vw !important;
  display: flex !important;
  justify-content: center !important;
  align-items: flex-end !important;
  gap: 22px !important;
  overflow: visible !important;
  pointer-events: none !important;
}

body .crystec-hero-images img {
  max-width: 24% !important;
  max-height: 190px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}

/* Keep text readable over centered images */
body .crystec-hero-text {
  position: relative !important;
  z-index: 2 !important;
  max-width: 760px !important;
}

/* Do not allow Astra wrappers to clip the dropdown vertically */
body .site,
body .site-content,
body .ast-container,
body .woocommerce,
body .woocommerce-page,
body .crystec-page,
body .crystec-amazon-header,
body .crystec-nav {
  overflow-y: visible !important;
}

/* On smaller screens, fade or remove hero images so they do not collide with text */
@media (max-width: 1100px) {
  body .crystec-hero-images {
    width: min(620px, 60vw) !important;
    max-width: 60vw !important;
    opacity: 0.35 !important;
  }

  body .crystec-hero-images img {
    max-height: 150px !important;
  }
}

@media (max-width: 700px) {
  body .crystec-hero-images {
    display: none !important;
  }
}

body .crystec-amazon-header,
body .crystec-topbar,
body .crystec-nav,
body .crystec-all-menu {
  position: relative !important;
  z-index: 999999999 !important;
  overflow: visible !important;
}

body .crystec-all-dropdown {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  z-index: 1000000000 !important;
}

body .crystec-hero {
  position: relative !important;
  z-index: 1 !important;
}


/* ===== FINAL HERO TEXT POSITION OVERRIDE =====
   This targets both possible markup structures:
   1) .crystec-hero-text wrapper
   2) direct h1 / p inside .crystec-hero
   Put this at the very end so earlier duplicate hero rules cannot override it.
*/

body .crystec-hero {
  position: relative !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  padding-top: 0 !important;
  padding-left: 46px !important;
  padding-right: 46px !important;
  padding-bottom: 120px !important;
  min-height: 320px !important;
}

/* If the template uses the wrapper */
body .crystec-hero .crystec-hero-text {
  position: absolute !important;
  top: 12px !important;
  left: 46px !important;
  right: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  z-index: 20 !important;
  max-width: 780px !important;
}

/* If the template does NOT use the wrapper */
body .crystec-hero > h1,
body .crystec-hero > p {
  position: relative !important;
  z-index: 20 !important;
  transform: translateY(-85px) !important;
}

/* Title/subtitle spacing */
body .crystec-hero h1 {
  margin-top: 0 !important;
  margin-bottom: 6px !important;
  line-height: .92 !important;
}

body .crystec-hero p {
  margin-top: 0 !important;
  line-height: 1.15 !important;
}

/* Keep product images behind text */
body .crystec-hero-images {
  z-index: 1 !important;
}



/* Store header template compatibility */
body .crystec-header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.crystec-shipping-note.in-stock {
    color: #1f7a1f;
	font-size: 11px;
    opacity: .9;
}

.crystec-shipping-note.out-of-stock {
    color: #c0392b;
	font-size: 11px;
    opacity: .9;
}
.crystec-loop-cart-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.crystec-loop-cart-form .quantity input.qty {
    width: 64px;
    height: 42px;
    text-align: center;
}

/* =========================================================
   CRYSTEC FOOTER
========================================================= */

.crystec-site-footer {
    width: 100% !important;
    display: block !important;
    clear: both !important;
    position: relative !important;
    z-index: 1 !important;

    margin-top: 40px !important;

    background: #1d242d !important;

    grid-column: 1 / -1 !important;
}

/* FOOTER INNER */
.crystec-footer-links {
    width: 94% !important;
    margin: 0 auto !important;

    padding: 38px 50px !important;

    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;

    gap: 90px !important;

    box-sizing: border-box !important;
}

/* COLUMNS */
.crystec-footer-column {
    width: 240px !important;
    min-width: 0 !important;
}

/* HEADINGS */
.crystec-footer-column h3 {
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 800 !important;

    margin: 0 0 16px !important;
    line-height: 1.2 !important;
}

/* LISTS */
.crystec-footer-column ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.crystec-footer-column li {
    list-style: none !important;
    margin-bottom: 8px !important;
}

/* LINKS/TEXT */
.crystec-footer-column a,
.crystec-footer-column li {
    color: #dfe5ee !important;
    text-decoration: none !important;

    font-size: 14px !important;
    line-height: 1.45 !important;

    word-break: normal !important;
    overflow-wrap: break-word !important;
}

.crystec-footer-column strong {
    color: #ffffff !important;
    font-size: 14px !important;
}

.crystec-footer-spacer {
    height: 12px !important;
}

/* =========================================================
   MOBILE PORTRAIT
========================================================= */

@media (max-width: 768px) and (orientation: portrait) {

    .crystec-footer-links {
        width: 100% !important;

        flex-direction: column !important;

        gap: 34px !important;

        padding: 28px 22px !important;
    }

    .crystec-footer-column {
        width: 100% !important;
    }
}

/* =========================================================
   MOBILE LANDSCAPE
========================================================= */

@media (max-width: 950px) and (orientation: landscape) {

    .crystec-footer-links {
        width: 94% !important;

        flex-direction: row !important;

        justify-content: center !important;

        gap: 34px !important;

        padding: 24px 20px !important;
    }

    .crystec-footer-column {
        width: 31% !important;
        min-width: 0 !important;
    }

    .crystec-footer-column h3 {
        font-size: 13px !important;
    }

    .crystec-footer-column a,
    .crystec-footer-column li,
    .crystec-footer-column strong {
        font-size: 11px !important;
        line-height: 1.3 !important;
    }
}

/* =========================================================
   FINAL GRID/FLOW FIX
========================================================= */

.crystec-page,
.crystec-layout,
.crystec-products,
.crystec-grid,
main.site-main {
    width: 100% !important;
    max-width: 100% !important;
}

body .site,
body .site-content,
body .ast-container,
body .woocommerce,
body .woocommerce-page {
    overflow: visible !important;
}

/* Narrow configurable shop filter sidebar */
body .crystec-layout-with-filters {
  display: grid !important;
  grid-template-columns: 170px minmax(0, 1fr) !important;
  gap: 18px !important;
  align-items: start !important;
}

body .crystec-filter-sidebar {
  background: #fff !important;
  padding: 14px !important;
  box-sizing: border-box !important;
  border-radius: 0 !important;
  box-shadow: 0 1px 4px rgba(0,0,0,.08) !important;
  position: sticky !important;
  top: 12px !important;
}

body .crystec-filter-sidebar h3 {
  color: #111 !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  margin: 0 0 14px !important;
}

body .crystec-filter-group {
  border-top: 1px solid #e5e7eb !important;
  padding-top: 12px !important;
  margin-top: 12px !important;
}

body .crystec-filter-group:first-of-type {
  border-top: 0 !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body .crystec-filter-group h4 {
  color: #111 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  margin: 0 0 8px !important;
}

body .crystec-filter-group ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body .crystec-filter-group li {
  margin: 0 0 6px !important;
  padding: 0 !important;
}

body .crystec-filter-group a {
  display: block !important;
  color: #007185 !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
  text-decoration: none !important;
  padding: 4px 0 !important;
}

body .crystec-filter-group a.active {
  color: #111 !important;
  font-weight: 900 !important;
}

@media (max-width: 900px) {
  body .crystec-layout-with-filters {
    grid-template-columns: 1fr !important;
  }

  body .crystec-filter-sidebar {
    position: static !important;
    display: flex !important;
    gap: 16px !important;
    overflow-x: auto !important;
  }

  body .crystec-filter-group {
    border-top: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    min-width: 130px !important;
  }
}


/* =========================================================
   FINAL SIDEBAR / PRODUCT LAYOUT CORRECTION
   Sidebar = filters only. Main column = products only.
========================================================= */

body .crystec-layout.crystec-layout-with-filters {
    display: grid !important;
    grid-template-columns: 180px minmax(0, 1fr) !important;
    column-gap: 20px !important;
    align-items: start !important;
}

body .crystec-layout.crystec-layout-with-filters > .crystec-filter-sidebar {
    grid-column: 1 !important;
    width: 180px !important;
    min-width: 180px !important;
    max-width: 180px !important;
}

body .crystec-layout.crystec-layout-with-filters > .crystec-products {
    grid-column: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
}

body .crystec-layout.crystec-layout-with-filters > .crystec-products .crystec-grid {
    width: 100% !important;
}

body .crystec-filter-sidebar .crystec-products,
body .crystec-filter-sidebar .crystec-grid,
body .crystec-filter-sidebar .crystec-card {
    display: none !important;
}

@media (max-width: 900px) {
    body .crystec-layout.crystec-layout-with-filters {
        grid-template-columns: 1fr !important;
    }

    body .crystec-layout.crystec-layout-with-filters > .crystec-filter-sidebar,
    body .crystec-layout.crystec-layout-with-filters > .crystec-products {
        grid-column: 1 !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }
}

.crystec-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.crystec-current-price {
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    color: #111;
}

.crystec-current-price .woocommerce-Price-currencySymbol {
    font-size: 0.7em;
    vertical-align: top;
}

.crystec-typical-price {
    font-size: 14px;
    font-weight: 400;
    color: #777;
    line-height: 1.2;
}

.crystec-typical-price del {
    color: #777;
    text-decoration-thickness: 1px;
}
.crystec-reset-filters {
    display: inline-block;
    margin-bottom: 28px;

    padding: 10px 16px;

    background: #0b63c9;
    color: #fff;

    border: 0;
    border-radius: 999px;

    font-size: 10px;
    font-weight: 500;

    cursor: pointer;
    transition: all 0.2s ease;
}

.crystec-reset-filters:hover {
    background: #084ea0;
    color: #fff;
}
.crystec-reset-filters:hover {
    background: #e5e7eb !important;
    color: #c45500 !important;
}
.crystec-recently-viewed {
    margin-top: 80px;
    padding: 30px 0;
}

.crystec-recently-viewed-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.crystec-recently-viewed-header h2 {
    font-size: 42px;
    font-weight: 800;
    margin: 0;
}

.crystec-recently-viewed-header a {
    font-size: 16px;
    color: #0b63c9;
    text-decoration: none;
}

.crystec-history-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.crystec-history-slider {
    display: flex;
    gap: 22px;

    overflow-x: auto;
    scroll-behavior: smooth;

    padding: 10px 0;

    scrollbar-width: none;
    -ms-overflow-style: none;

    flex: 1;
}

.crystec-history-slider::-webkit-scrollbar {
    display: none;
}

.crystec-history-arrow {
    width: 42px;
    height: 42px;

    border-radius: 50%;
    border: 1px solid #d1d5db;

    background: #fff;
    color: #111;

    font-size: 28px;
    line-height: 1;

    cursor: pointer;

    flex: 0 0 auto;

    box-shadow: 0 2px 6px rgba(0,0,0,.12);

    transition: all .2s ease;
}

.crystec-history-arrow:hover {
    background: #f3f4f6;
}

.crystec-history-item {
    position: relative;

    display: flex;
    flex-direction: column;

    gap: 6px;

    width: 190px;

    text-decoration: none;

    flex: 0 0 auto;
}

.crystec-history-item img {
    width: 100%;
    height: 175px;

    object-fit: contain;

    flex-shrink: 0;

    background: #fff;
}

.crystec-history-title-box {
    display: flex;
    align-items: flex-start;
    justify-content: center;

    background: #f5f5f5;

    border-radius: 8px;

    padding: 10px 12px;

    min-height: 64px;

    width: 100%;

    box-sizing: border-box;
}

.crystec-history-title {
    display: -webkit-box;

    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    overflow: hidden;

    font-size: 12px;
    line-height: 1.35;

    color: #111;

    text-align: center;

    width: 100%;
}

.crystec-history-item:hover .crystec-history-title {
    color: #c45500;
}

/* ===== Featured Groups Mega Dropdown ===== */
body .crystec-nav {
	position: relative !important;
	overflow: visible !important;
}

body .crystec-featured-group {
	position: static !important;
	padding-bottom: 14px !important;
	margin-bottom: -14px !important;
}

body .crystec-featured-group-title {
	border: 1px solid transparent !important;
	background: transparent !important;
	color: #fff !important;
	padding: 5px 7px !important;
	cursor: pointer !important;
	font: inherit !important;
	font-size: 17px !important;
	font-weight: 800 !important;
	white-space: nowrap !important;
}

body .crystec-featured-group-title:hover,
body .crystec-featured-group:hover .crystec-featured-group-title,
body .crystec-featured-group:focus-within .crystec-featured-group-title {
	border-color: #fff !important;
}

body .crystec-featured-dropdown {
	display: none !important;
	position: absolute !important;
	top: calc(100% - 1px) !important;
	left: 0 !important;
	right: 0 !important;
	width: 100vw !important;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	z-index: 1000000000 !important;
	background: #fff !important;
	box-shadow: 0 10px 24px rgba(0,0,0,.16) !important;
	padding: 6px 28px 44px !important;
	padding-bottom: 2px !important;
	box-sizing: border-box !important;
}

body .crystec-featured-group:hover > .crystec-featured-dropdown,
body .crystec-featured-group:focus-within > .crystec-featured-dropdown {
	display: block !important;
}

body .crystec-featured-dropdown-inner {
	display: grid !important;
	grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
	grid-auto-rows: auto !important;
	gap: 12px 16px !important;
	width: min(1280px, 100%) !important;
	max-width: 1280px !important;
	margin: 0 auto !important;
}

body .crystec-featured-tile,
body .crystec-nav .crystec-featured-tile {
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	justify-content: flex-start !important;
	text-align: center !important;
	text-decoration: none !important;
	background: #fff !important;
	border: 1px solid #e3e7ee !important;
	border-radius: 7px !important;
	box-shadow: 0 4px 14px rgba(0,0,0,.07) !important;
	overflow: hidden !important;
	padding: 0 !important;
	min-width: 0 !important;
	color: #002b52 !important;
}

body .crystec-featured-tile:hover,
body .crystec-nav .crystec-featured-tile:hover {
	border-color: #c7d3e3 !important;
	box-shadow: 0 7px 18px rgba(0,0,0,.11) !important;
	color: #002b52 !important;
}

body .crystec-featured-image {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	height: 90px !important;
	background: #fff !important;
	padding: 8px !important;
	box-sizing: border-box !important;
}

body .crystec-featured-image img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	max-height: 100% !important;
	object-fit: contain !important;
}

body .crystec-featured-name,
body .crystec-nav .crystec-featured-name {
	display: block !important;
	width: 100% !important;
	min-height: 30px !important;
	margin: 0 !important;
	padding: 6px 8px 8px !important;
	box-sizing: border-box !important;
	background: #fff !important;
	color: #002b52 !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	line-height: 1.15 !important;
	text-align: center !important;
	white-space: normal !important;
	overflow-wrap: anywhere !important;
}

/* Mega dropdown footer */
body .crystec-featured-dropdown-footer {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 18px !important;

	width: min(1280px, 100%) !important;
	max-width: 1280px !important;

	margin: 6px auto 0 !important;
	padding: 6px 14px !important;

	background: #ececec !important;
	border-radius: 4px !important;

	box-sizing: border-box !important;
	overflow: visible !important;
}

body .crystec-dropdown-benefit {
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;

	color: #000 !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	line-height: 1.2 !important;

	white-space: nowrap !important;
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	overflow: visible !important;
}

body .crystec-dropdown-benefit span {
	display: inline !important;

	color: #000 !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	line-height: 1.2 !important;
	gap: 6px !important;

	white-space: nowrap !important;
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	overflow: visible !important;
}

body .crystec-dropdown-contact {
    margin-left: auto !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: auto !important;
    min-width: 0 !important;

    height: 28px !important;
    padding: 0 12px !important;

    background: #ff5a00 !important;
    border-radius: 6px !important;

    color: #000 !important;
    text-decoration: none !important;

    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
}

body .crystec-contact-icon {
    margin-right: 4px !important;
    font-size: 14px !important;
    line-height: 1 !important;
}

body .crystec-contact-text {
    color: #000 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    font-family: inherit !important;
    text-shadow: none !important;
}

@media (max-width: 900px) {
	body .crystec-featured-dropdown-footer {
		flex-wrap: wrap !important;
		gap: 8px 14px !important;
	}

	body .crystec-dropdown-contact {
		width: 100% !important;
		margin-left: 0 !important;
	}
}
body .crystec-dropdown-contact,
body .crystec-dropdown-contact:link,
body .crystec-dropdown-contact:visited {
    color: #000 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    font-family: inherit !important;
}

/* Final override: normal-weight mega footer contact button */
body .crystec-nav .crystec-featured-dropdown-footer a.crystec-dropdown-contact,
body .crystec-nav .crystec-featured-dropdown-footer a.crystec-dropdown-contact:link,
body .crystec-nav .crystec-featured-dropdown-footer a.crystec-dropdown-contact:visited,
body .crystec-nav .crystec-featured-dropdown-footer a.crystec-dropdown-contact:hover,
body .crystec-nav .crystec-featured-dropdown-footer a.crystec-dropdown-contact span,
body .crystec-nav .crystec-featured-dropdown-footer .crystec-contact-text {
    font-weight: 400 !important;
    color: #fff !important;
	font-size: 13px !important;
    text-shadow: none !important;
}

body .crystec-dropdown-benefit-icon {
    width: 20px !important;
    height: 20px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
}