/* ============================================================
   RESPONSIVE STYLES
   Breakpoints:
     - Desktop:  > 1024px  (default styles)
     - Tablet:   ≤ 1024px
     - Mobile:   ≤ 768px
     - Small:    ≤ 480px
   ============================================================ */


/* ============================================================
   1. TYPOGRAPHY — Link word-wrapping in headings
   ============================================================ */

h4 a {
  display: inline-block;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-all;
}


/* ============================================================
   2. LAYOUT — Alignwide blocks
   ============================================================ */

@media (max-width: 1024px) {
  .wp-block-group.alignwide,
  .wp-block-columns.alignwide {
    max-width: 100% !important;
    width: 100% !important;
  }
}

@media (max-width: 768px) {
  .wp-block-group.alignwide,
  .wp-block-columns.alignwide {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}


/* ============================================================
   3. TEXT ALIGNMENT — Center group on tablet/mobile
   ============================================================ */

@media (max-width: 1024px) {
  .wp-container-core-group-is-layout-72d38984 {
    text-align: center !important;
  }
}


/* ============================================================
   4. ICONS — Fixed square icon box
   ============================================================ */

.wp-block-fse-pro-icons .fse-pro-icons {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  margin: 0 !important;
}

.wp-block-fse-pro-icons svg {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}


/* ============================================================
   5. ACCORDION — Full-width on tablet/mobile
   ============================================================ */

@media (max-width: 1024px) {
  .wp-block-woocommerce-accordion-group,
  .wp-block-woocommerce-accordion-item,
  .wp-block-woocommerce-accordion-panel {
    max-width: 95% !important;
    width: 95% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}


/* ============================================================
   6. IMAGE GALLERY — Captions, descriptions, filter buttons
   ============================================================ */

/* Prevent text breaking inside captions/descriptions */
.eb-gallery-img-caption,
.eb-gallery-img-description {
  white-space: normal !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

/* Hide description on tablet/mobile; keep caption visible */
@media (max-width: 1024px) {
  .eb-gallery-img-description {
    display: none !important;
  }

  .eb-gallery-img-caption {
    display: block !important;
  }
}

/* Filter button grid — tablet/mobile */
@media (max-width: 1024px) {
  .eb-img-gallery-filter-wrapper {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    justify-content: center;
    align-items: stretch;
    padding: 10px;
    margin: 0 auto;
    list-style: none;
    text-align: center;
  }

  .eb-img-gallery-filter-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    height: auto;
    padding: 10px 12px;
    background: #0b0b0b;
    color: #fff;
    border: 1px solid #222;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: break-word;
    transition: background 0.25s ease, transform 0.25s ease;
  }

  .eb-img-gallery-filter-item:hover,
  .eb-img-gallery-filter-item.is-checked {
    background: #0693e3;
    color: #fff;
    transform: scale(1.05);
  }
}

/* Filter button grid — small mobile: 2 columns */
@media (max-width: 480px) {
  .eb-img-gallery-filter-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }

  .eb-img-gallery-filter-item {
    min-height: 55px;
  }
}


/* ============================================================
   7. WOOCOMMERCE PRODUCT GALLERY
   ============================================================ */

/* Pull gallery up on tablet/mobile */
@media (max-width: 992px) {
  .wc-block-product-gallery {
    margin-top: -80px !important;
  }
}

/* Scale down the main product image on tablet/mobile */
@media (max-width: 1024px) {
  .wc-block-product-gallery-large-image,
  .wc-block-product-gallery-large-image__container img {
    max-width: 250px !important;
    margin: 0 auto;
    display: block;
  }
}

/* Push notices block to the top of the flex order on tablet */
@media (max-width: 992px) {
  .wc-block-components-notices.alignwide {
    order: -1 !important;
    margin-top: -40px !important;
  }
}