/* ================================================================
   TrueKatana — Shared Components (100010)
   Product card + product grid used by onsale, search, catalog, etc.
   Design System: --one-* tokens from 100010.live.layout.css
   Loaded globally via layout.header.new.php
   ================================================================ */


/* ── Product grid ── */
.one-product-grid {
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.one-product-grid-append {
  margin-top: 4px;
}

.one-product-grid-item {
  min-width: 0;
}


/* ── Product card ── */
.one-product-card {
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
  display: flex;
  flex-direction: column;
  margin-bottom: .5rem;
  min-width: 0;
  overflow: hidden;
}

.one-product-card-media {
  aspect-ratio: 6 / 7;
  background-color: #000;
  display: block;
  overflow: hidden;
  width: 100%;
}

.one-product-card-image {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  width: 100%;
}

.one-product-card-body {
  background-color: #fff;
  flex: 1 1 auto;
  padding: 16px 16px 20px;
  text-align: center;
}

.one-product-card-title {
  color: #222;
  display: -webkit-box;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.one-product-card-title:hover {
  color: var(--one-red) !important;
}

.one-product-card-reviews {
  line-height: 1.25;
}

.one-product-card-review-star {
  color: var(--one-red);
}

.one-product-card-review-count {
  color: #111;
  font-weight: 700;
  margin-left: .25rem;
}

.one-product-card-shipping {
  color: #008b15;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 3px;
}

.one-product-card-sale-pill {
  background-color: #fff59d;
  border-radius: 50px;
  color: #000;
  font-size: 11px;
  font-weight: 900;
  margin: auto;
  padding: 2px 12px;
  width: fit-content;
}

.one-product-card-sale-price {
  color: #000;
  font-family: var(--one-font-body);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.3px;
}

.one-product-card-compare-price {
  color: #333;
  font-size: 12px;
  font-weight: 700;
  margin-left: 4px;
  text-decoration: line-through;
}

.one-product-card-price {
  color: #000;
  font-family: var(--one-font-body);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.3px;
}

.one-product-card-actions {
  margin-top: 8px;
}

.one-product-card-cart {
  background: var(--one-red);
  border: 0;
  border-radius: 0;
  color: #fff;
  cursor: pointer;
  display: block;
  font-size: 14px;
  font-weight: 800;
  margin: 0 auto 8px;
  min-width: 60%;
  padding: 8px 20px;
}

.one-product-card-cart:hover {
  background: var(--one-red-hover);
}

.one-product-card-wishlist {
  color: #999;
  font-size: 0.9em;
}

.one-product-card-wishlist:hover {
  color: var(--one-red);
}

.one-product-card-wishlist-added {
  color: var(--one-red);
  font-size: 0.9em;
}


/* ── Desktop breakpoints ── */
@media (min-width: 992px) {
  .one-product-grid {
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .one-product-grid-append {
    margin-top: 16px;
  }

  .one-product-card {
    margin-bottom: .25rem;
  }
}

@media (min-width: 1200px) {
  .one-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}


/* ── Mobile refinements ── */
@media (max-width: 991.98px) {
  .one-product-card {
    margin-bottom: 3px;
  }

  .one-product-card-body {
    padding: 15px 8px;
  }

  .one-product-card-title {
    color: #111;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.1;
  }

  .one-product-card-sale-price {
    font-weight: 800;
  }

  .one-product-card-price {
    font-weight: 800;
  }

  .one-product-card-shipping {
    font-size: 0.85em;
    margin-bottom: 3px;
  }

  .one-product-card-cart {
    min-width: 80%;
  }
}


/* ── Infinite-scroll loader (shared: search, onsale, catalog) ── */
.one-loader {
  padding: 12px 0 26px;
  text-align: center;
}

.one-loader-pulse {
  color: var(--one-text-secondary);
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  opacity: 0.75;
}


/* ── Pagination (shared: search, onsale, catalog) ── */
.one-search-pagination {
  margin-top: 30px;
  margin-bottom: 20px;
}

.one-search-pagination-count {
  text-align: center;
  color: var(--one-text-secondary);
  font-size: 13px;
  margin-bottom: 10px;
}

.one-search-pagination-list {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.one-search-pagination-link {
  background: var(--one-bg-card);
  border: 1px solid var(--one-border);
  color: var(--one-text-primary);
  min-width: 40px;
  text-align: center;
  border-radius: var(--one-radius-sm);
  font-weight: 600;
  padding: 8px 14px;
  display: inline-block;
}

.one-search-pagination-link:hover {
  background: var(--one-bg-elevated);
  border-color: var(--one-border-hover);
  color: var(--one-text-primary);
}

.one-search-pagination-active {
  background: var(--one-red) !important;
  border-color: var(--one-red) !important;
  color: #fff !important;
}
