/* High AF Jax — extras on top of the live Elementor CSS.
   Product-card rules are copied from the live category shortcode.
   Do not re-skin header/hero/footer here; those come from post-*.css. */

.elementor-screen-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.colr { color: #F39B16; }

/* Accordion open/close glyphs (Elementor injects SVGs via JS on the live site). */
.e-n-accordion-item-title-icon .e-closed::before {
  content: "+";
  font-size: 22px;
  line-height: 1;
  display: block;
}
.e-n-accordion-item-title-icon .e-opened::before {
  content: "×";
  font-size: 22px;
  line-height: 1;
  display: block;
}

/* Mobile search icon */
.elementor-widget-icon .elementor-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.elementor-widget-icon .elementor-icon svg {
  width: 1em;
  height: 1em;
}

/* Search popup.
   popup.min.css hides [data-elementor-type=popup] (editor template rule).
   Live Elementor JS clones the document into the modal; we keep it in the
   modal and force it visible so mobile search actually has a form. */
#elementor-popup-modal-633[hidden] { display: none !important; }
#elementor-popup-modal-633:not([hidden]) {
  display: flex;
  z-index: 10000;
}
#elementor-popup-modal-633 .dialog-widget-content {
  position: relative;
  width: 100%;
  max-width: 100%;
}
#elementor-popup-modal-633 .dialog-close-button {
  display: flex;
}
#elementor-popup-modal-633 [data-elementor-type="popup"] {
  display: block !important;
}
#elementor-popup-modal-633 .e-search-input {
  width: 100%;
}

/* Product grid — live shortcode CSS */
#hafj-grid,
.hafj-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
@media (max-width: 1024px) {
  #hafj-grid,
  .hafj-product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  #hafj-grid,
  .hafj-product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

.hafj-product-card {
  background: #FFFFFF;
  border: 1px solid #E0E0E040;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hafj-product-card .hafj-card-slider {
  width: 100%;
  height: 300px;
  position: relative;
  background: #f8f8f8;
  overflow: hidden;
  padding-bottom: 30px;
}
@media (max-width: 767px) {
  .hafj-product-card .hafj-card-slider {
    height: 250px;
    padding-bottom: 25px;
  }
}
.hafj-product-card .hafj-card-slider .swiper-slide {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hafj-product-card .hafj-card-slider .swiper-slide a {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.hafj-product-card .hafj-card-slider img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block;
  border: none;
  transition: transform 0.3s ease;
  cursor: pointer;
}
.hafj-product-card .hafj-card-slider img:hover { transform: scale(1.05); }

.hafj-product-card .swiper-button-next,
.hafj-product-card .swiper-button-prev {
  width: 40px !important;
  height: 40px !important;
  margin-top: -20px !important;
  background: rgba(0, 0, 0, 0.7) !important;
  border-radius: 50%;
  z-index: 10;
  opacity: 0.8;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
}
.hafj-product-card .swiper-button-next:hover,
.hafj-product-card .swiper-button-prev:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.9) !important;
  transform: scale(1.1);
}
.hafj-product-card .swiper-button-next:after,
.hafj-product-card .swiper-button-prev:after {
  font-size: 16px !important;
  color: white !important;
  font-weight: bold;
}
.hafj-product-card .swiper-button-next { right: 15px !important; }
.hafj-product-card .swiper-button-prev { left: 15px !important; }
.hafj-product-card .swiper-pagination {
  bottom: 8px !important;
  position: absolute;
  z-index: 10;
  text-align: center;
}
.hafj-product-card .swiper-pagination-bullet {
  width: 12px !important;
  height: 12px !important;
  background: rgba(255, 255, 255, 0.8) !important;
  margin: 0 6px !important;
  opacity: 1 !important;
  border: 2px solid rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}
.hafj-product-card .swiper-pagination-bullet-active {
  background: #FFD700 !important;
  border-color: rgba(0, 0, 0, 0.5);
  transform: scale(1.3);
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}
@media (max-width: 767px) {
  .hafj-product-card .swiper-button-next,
  .hafj-product-card .swiper-button-prev {
    width: 35px !important;
    height: 35px !important;
    margin-top: -17px !important;
  }
  .hafj-product-card .swiper-button-next:after,
  .hafj-product-card .swiper-button-prev:after { font-size: 14px !important; }
  .hafj-product-card .swiper-button-next { right: 10px !important; }
  .hafj-product-card .swiper-button-prev { left: 10px !important; }
  .hafj-product-card .swiper-pagination-bullet {
    width: 10px !important;
    height: 10px !important;
    margin: 0 4px !important;
  }
}
.hafj-product-card .hafj-card-content { padding: 15px; flex: 1; }
@media (max-width: 767px) {
  .hafj-product-card .hafj-card-content { padding: 10px; }
}
.hafj-product-card .hafj-card-title {
  font-family: "Instrument Sans", Sans-serif;
  font-size: 20px;
  font-weight: 600;
  text-transform: capitalize;
  line-height: 1.3em;
  letter-spacing: -1px;
  color: #000000;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 767px) {
  .hafj-product-card .hafj-card-title { font-size: 18px; margin: 0 0 5px; }
}
.hafj-product-card .hafj-card-title a { color: inherit; text-decoration: none; }
.hafj-product-card .hafj-card-title a:hover { color: #333; }
.hafj-product-card .hafj-card-description {
  color: #F39B16;
  font-family: "Instrument Sans", Sans-serif;
  font-weight: 400;
  line-height: 1.5em;
  font-size: 14px;
}
@media (max-width: 767px) {
  .hafj-product-card .hafj-card-description { font-size: 15px; }
}
.hafj-product-card .hafj-card-description p { margin: 0 0 0.8em; }
.hafj-product-card .hafj-card-description p:last-child { margin-bottom: 0; }

.empty-state { text-align: center; padding: 60px 0; color: #fff; }

/* Single product */
.woocommerce-product-gallery { opacity: 1 !important; }
.woocommerce div.product { overflow: hidden; }
.woocommerce div.product .product_title {
  font-family: "Instrument Sans", Sans-serif;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.2em;
  margin: 0 0 10px;
}
.woocommerce div.product .product_meta {
  font-size: 15px;
  margin: 15px 0 25px;
}
.woocommerce-breadcrumb { padding: 20px 0; font-size: 14px; }
.woocommerce-tabs { margin-top: 2em; }
.woocommerce-tabs ul.tabs {
  list-style: none;
  margin: 0 0 1em;
  padding: 0;
  border-bottom: 1px solid #d3ced2;
}
.woocommerce-tabs ul.tabs li {
  display: inline-block;
  margin: 0 4px 0 0;
  padding: 8px 16px;
  background: #f2f2f2;
  border: 1px solid #d3ced2;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
}
.woocommerce-tabs ul.tabs li a { color: inherit; text-decoration: none; }
/* Woo's no-JS fallback turns extra slides into 25% thumbs (`display:
   inline-block`), which also overrides [hidden]. Keep a single featured
   image at full width; the strip below is .flex-control-thumbs. */
.woocommerce div.product div.images .woocommerce-product-gallery__image,
.woocommerce div.product div.images .woocommerce-product-gallery__image:nth-child(n+2) {
  width: 100%;
  display: block;
}
.woocommerce div.product div.images .woocommerce-product-gallery__image[hidden] {
  display: none !important;
}
.woocommerce div.product div.images .flex-control-thumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 14px 0 0;
  padding: 0;
  overflow: visible;
  list-style: none;
}
.woocommerce div.product div.images .flex-control-thumbs li {
  width: 72px;
  float: none;
  margin: 0;
}
.woocommerce div.product div.images .flex-control-thumbs li img {
  display: block;
  width: 100%;
  height: 72px;
  object-fit: cover;
  box-sizing: border-box;
  border: 2px solid transparent;
  opacity: 1;
  margin: 0;
}
.woocommerce div.product div.images .flex-control-thumbs li img.flex-active,
.woocommerce div.product div.images .flex-control-thumbs li img:hover {
  border-color: #FBB91D;
  opacity: 1;
}
.related.products { margin-top: 3em; }
.related.products h2 {
  font-family: "Instrument Sans", Sans-serif;
  font-size: 24px;
}
.related.products ul.products { list-style: none; padding: 0; }
.related.products .woocommerce-loop-product__title {
  font-size: 16px;
  margin: 8px 0 0;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  cursor: zoom-out;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 6px; }
.lightbox-caption {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-family: "Instrument Sans", sans-serif;
  font-size: 16px;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}

.slider-slide--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  height: 100%;
}
