/**
 * TruOath Nutrition Shop Archive CSS
 * Clean 3-column product grid, minimal filter bar, editorial pagination
 */

/* ==========================================================================
   Shop Page Header
   ========================================================================== */

.truoath-shop-header {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--truoath-tan);
  margin-bottom: 60px;
}

.truoath-shop-header__title {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  color: var(--truoath-brown);
  font-weight: 400;
  margin-bottom: 0;
}

/* ==========================================================================
   Filter / Sort Bar
   ========================================================================== */

.truoath-shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 50px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(196, 168, 130, 0.3);
}

.truoath-shop-toolbar__count {
  font-size: var(--text-sm);
  color: var(--truoath-warm-grey);
}

.truoath-shop-toolbar__sort select {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--truoath-black);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--truoath-black);
  padding: 6px 24px 6px 0;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%231A1A1A' stroke-width='1' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  border-radius: 0;
}

/* ==========================================================================
   Product Grid
   ========================================================================== */

.truoath-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
}

/* ==========================================================================
   Product Card (used in grid)
   ========================================================================== */

.truoath-product-card {
  text-decoration: none;
  display: block;
  color: inherit;
}

.truoath-product-card__image-wrap {
  overflow: hidden;
  margin-bottom: 20px;
  aspect-ratio: 1 / 1;
  background-color: var(--truoath-white);
}

.truoath-product-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.truoath-product-card:hover .truoath-product-card__image-wrap img {
  transform: scale(1.03);
}

.truoath-product-card__name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--truoath-brown);
  margin-bottom: 6px;
  font-weight: 400;
  transition: text-decoration 0.3s ease;
}

.truoath-product-card:hover .truoath-product-card__name {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.truoath-product-card__short-desc {
  font-size: var(--text-sm);
  color: var(--truoath-warm-grey);
  margin-bottom: 8px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.truoath-product-card__price {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--truoath-black);
  font-weight: 400;
}

.truoath-product-card__price del {
  color: var(--truoath-warm-grey);
  font-size: var(--text-sm);
  margin-right: 8px;
}

.truoath-product-card__price ins {
  text-decoration: none;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.truoath-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 80px 0 40px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
}

.truoath-pagination a,
.truoath-pagination span {
  color: var(--truoath-black);
  text-decoration: none;
  padding: 8px 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.truoath-pagination a:hover {
  border-bottom-color: var(--truoath-black);
  text-decoration: none;
}

.truoath-pagination .current {
  border-bottom-color: var(--truoath-black);
  font-weight: 500;
}

/* No results */
.truoath-no-products {
  text-align: center;
  padding: 100px 0;
}

.truoath-no-products p {
  font-size: var(--text-lg);
  color: var(--truoath-warm-grey);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .truoath-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .truoath-shop-header {
    padding: 60px 0 40px;
    margin-bottom: 40px;
  }

  .truoath-shop-header__title {
    font-size: var(--text-4xl);
  }

  .truoath-product-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .truoath-shop-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
