/* Device layout refinements, loaded after the shared card styles. */
.ta-trust-inner,
.ta-product-grid-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ta-outfit-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ta-trust-item,
.ta-trust-text,
.store-section .gc-card,
.fs-section .gc-card {
  min-width: 0;
}

.ta-trust-text {
  overflow-wrap: anywhere;
}

@media (max-width: 1023px) {
  .single-product .ta-trust-inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .ta-outfit-grid,
  .ta-product-grid-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

  .category-grid > .category-item {
    grid-column: auto;
    grid-row: auto;
    padding: 0;
    margin: 0;
    min-width: 0;
  }

  .category-grid .category-item img {
    height: auto;
    aspect-ratio: 1;
    border-radius: 20px;
  }

  .category-grid .category-item h3 {
    left: 10px;
    right: 10px;
    bottom: 12px;
    max-width: calc(100% - 20px);
    padding: 6px 10px;
    border-width: 2px;
    font-size: 14px;
    overflow-wrap: anywhere;
  }

  .col_asp .small-columns-4 > .col,
  .col_asp .small-columns-4 .flickity-slider > .col {
    flex-basis: 33.333%;
    max-width: 33.333%;
  }
}

@media (max-width: 639px) {
  .store-section .cat-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 20px;
  }

  .store-section .cat-title {
    font-size: clamp(24px, 6vw, 32px);
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  .store-section .cat-header-action .view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin: 0;
    padding: 10px 16px;
  }

  .store-section .product-grid,
  .fs-section .fs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .store-section .gc-body,
  .fs-section .gc-body {
    padding: 10px;
  }

  .store-section .gc-title,
  .fs-section .gc-title {
    font-size: 14px;
    line-height: 1.5;
  }

  .store-section .gc-foot,
  .fs-section .gc-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .store-section .gc-price,
  .fs-section .gc-price {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .store-section .gc-actions,
  .fs-section .gc-actions,
  .store-section .gc-buy,
  .fs-section .gc-buy {
    width: 100%;
    justify-content: center;
  }

  .store-section .gc-buy,
  .fs-section .gc-buy {
    min-height: 44px;
    padding: 8px;
    white-space: normal;
  }

  .store-section .gc-badges,
  .fs-section .gc-badges {
    top: 8px;
    right: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: calc(100% - 16px);
  }

  .single-product .ta-trust-inner {
    grid-template-columns: minmax(0, 1fr);
    padding-inline: 20px;
  }

  .ta-outfit-grid,
  .ta-product-grid-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .ta-rating,
  .ta-qty-row {
    flex-wrap: wrap;
  }

  .ta-actions {
    flex-direction: column;
  }

  .ta-btn-cart,
  .ta-btn-buy {
    min-height: 48px;
    height: auto;
    padding: 10px;
  }

  .categories-grid .owl-nav button.owl-prev {
    margin-left: 0;
  }

  .categories-grid .owl-nav button.owl-next {
    margin-right: 0;
  }

  .col_asp .small-columns-4 > .col,
  .col_asp .small-columns-4 .flickity-slider > .col {
    flex-basis: 50%;
    max-width: 50%;
  }

  .woocommerce-checkout form input:not([type=checkbox]):not([type=radio]):not([type=submit]),
  .woocommerce-checkout form select,
  .woocommerce-checkout form textarea {
    font-size: 16px;
  }
}
