   SHOP PAGE (archive)
   ========================================================= */

.tahm-shop {
  padding: 30px 0 80px;
  background: #fff;
}

.tahm-shop .tahm-container {
  width: min(var(--tahm-container), calc(100% - 48px));
}

.tahm-shop-header { margin-bottom: 20px; }

.tahm-shop-title {
  margin: 0;
  font-size: clamp(28px, 3.5vw, 38px);
  line-height: 1.15;
  font-weight: 700;
  color: var(--tahm-heading);
}

.tahm-shop-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 16px 0 22px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--tahm-line);
}

.tahm-shop-count,
.tahm-shop-bar .woocommerce-result-count {
  margin: 0;
  font-size: 14px;
  color: var(--tahm-muted);
}

.tahm-shop-sort .woocommerce-ordering { margin: 0; }

.tahm-shop-sort select,
.tahm-shop-bar select.orderby {
  min-height: 44px;
  padding: 0 38px 0 16px;
  border: 1px solid var(--tahm-line);
  border-radius: 12px;
  background: #fff;
  color: var(--tahm-heading);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%23494949' stroke-width='1.8' d='M1 1.5l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.tahm-shop-sort select:focus,
.tahm-shop-bar select.orderby:focus {
  outline: none;
  border-color: var(--tahm-blue);
  box-shadow: 0 0 0 4px rgba(1, 150, 242, 0.12);
}

.tahm-products-grid {
  list-style: none !important;
  margin: 0 0 40px !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.tahm-products-grid > li.product,
.tahm-products-grid > li.tahm-product-card {
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  clear: none !important;
  list-style: none !important;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  border-radius: 0;
}

.tahm-product-card__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--tahm-line);
  border-radius: var(--tahm-radius-lg);
  box-shadow: var(--tahm-shadow-soft);
  overflow: hidden;
  transition: all 0.22s ease;
}

.tahm-product-card__inner:hover {
  transform: translateY(-4px);
  border-color: rgba(1, 150, 242, 0.30);
  box-shadow: var(--tahm-shadow);
}

.tahm-products-grid .tahm-product-card__image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 230px;
  padding: 22px;
  background: #fbfcfd;
  border-bottom: 1px solid var(--tahm-line);
}

.tahm-products-grid .tahm-product-card__image img {
  max-height: 180px;
  max-width: 100%;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
}

.tahm-product-card__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 22px;
}

.tahm-product-card__meta {
  min-height: 18px;
  margin-bottom: 8px;
}

.tahm-product-card__cat {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tahm-blue-dark);
}

.tahm-product-card__title {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
  min-height: 44px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tahm-product-card__title a {
  color: var(--tahm-heading);
  text-decoration: none;
  transition: color 0.2s ease;
}

.tahm-product-card__title a:hover { color: var(--tahm-blue); }

.tahm-products-grid .tahm-product-card__price {
  margin: auto 0 16px;
  font-size: 22px;
  font-weight: 800;
  color: var(--tahm-blue-dark);
}

.tahm-product-card__price del {
  margin-right: 8px;
  color: var(--tahm-muted);
  font-size: 15px;
  font-weight: 500;
  opacity: 0.7;
}

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

.tahm-product-card__actions {
  display: flex;
  gap: 8px;
}

.tahm-product-card__actions .tahm-btn,
.tahm-product-card__actions .button {
  flex: 1;
  min-height: 44px;
  padding: 0 12px !important;
  border-radius: 12px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-align: center;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2 !important;
}

.tahm-product-card__actions .tahm-btn--ghost {
  background: #fff !important;
  color: var(--tahm-heading) !important;
  border-color: var(--tahm-line-2) !important;
}

.tahm-product-card__actions .tahm-btn--ghost:hover {
  border-color: var(--tahm-blue) !important;
  color: var(--tahm-blue-dark) !important;
  background: #fff !important;
}

.tahm-product-card__actions .add_to_cart_button,
.tahm-product-card__actions .button:not(.tahm-btn--ghost) {
  background: var(--tahm-blue) !important;
  color: #fff !important;
  border-color: var(--tahm-blue) !important;
}

.tahm-product-card__actions .add_to_cart_button:hover,
.tahm-product-card__actions .button:not(.tahm-btn--ghost):hover {
  background: var(--tahm-blue-dark) !important;
  border-color: var(--tahm-blue-dark) !important;
  color: #fff !important;
}

.tahm-product-card__actions .added_to_cart { display: none !important; }
.tahm-product-card__actions .button.loading { opacity: 0.7; pointer-events: none; }

.tahm-pagination {
  margin: 10px 0 40px;
  text-align: center;
}

.tahm-pagination .woocommerce-pagination ul,
.tahm-pagination nav ul.page-numbers {
  display: inline-flex;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
  border: none;
}

.tahm-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--tahm-line);
  border-radius: 12px;
  background: #fff;
  color: var(--tahm-heading);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s ease;
}

.tahm-pagination .page-numbers:hover {
  border-color: var(--tahm-blue);
  color: var(--tahm-blue-dark);
}

.tahm-pagination .page-numbers.current {
  background: var(--tahm-blue);
  border-color: var(--tahm-blue);
  color: #fff;
}

.tahm-pagination .page-numbers.dots {
  border: none;
  background: transparent;
}

/* =========================================================
   RESPONSIVE: SHOP GRID
   Add to end of shop.css
   ========================================================= */

/* Tablet landscape: 4 → 3 columns */
@media (max-width: 1100px) {
  .tahm-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

/* Tablet portrait: 3 → 2 columns */
@media (max-width: 820px) {
  .tahm-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .tahm-products-grid .tahm-product-card__image {
    min-height: 180px;
    padding: 16px;
  }

  .tahm-products-grid .tahm-product-card__image img {
    max-height: 140px;
  }

  .tahm-product-card__content {
    padding: 16px 16px 18px;
  }

  .tahm-product-card__title {
    font-size: 15px;
    min-height: 40px;
  }

  .tahm-products-grid .tahm-product-card__price {
    font-size: 19px;
    margin: auto 0 12px;
  }
}

/* Phones: keep 2 columns but tighter; buttons stack inside card */
@media (max-width: 560px) {
  .tahm-shop {
    padding: 20px 0 60px;
  }

  .tahm-shop .tahm-container {
    width: min(var(--tahm-container), calc(100% - 24px));
  }

  .tahm-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 28px !important;
  }

  .tahm-products-grid .tahm-product-card__image {
    min-height: 140px;
    padding: 12px;
  }

  .tahm-products-grid .tahm-product-card__image img {
    max-height: 110px;
  }

  .tahm-product-card__content {
    padding: 12px 12px 14px;
  }

  .tahm-product-card__meta {
    margin-bottom: 4px;
  }

  .tahm-product-card__cat {
    font-size: 10px;
  }

  .tahm-product-card__title {
    font-size: 13px;
    line-height: 1.35;
    margin: 0 0 10px;
    min-height: 36px;
  }

  .tahm-products-grid .tahm-product-card__price {
    font-size: 17px;
    margin: auto 0 10px;
  }

  /* Stack action buttons on narrow phones so they don't get crushed */
  .tahm-product-card__actions {
    flex-direction: column;
    gap: 6px;
  }

  .tahm-product-card__actions .tahm-btn,
  .tahm-product-card__actions .button {
    min-height: 40px;
    font-size: 12px !important;
    padding: 0 8px !important;
  }

  /* Shop bar (sort + count) — stack vertically */
  .tahm-shop-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 0 16px;
    margin-bottom: 20px;
    gap: 10px;
  }

  .tahm-shop-sort select,
  .tahm-shop-bar select.orderby {
    width: 100%;
  }

  .tahm-shop-title {
    font-size: clamp(22px, 6vw, 28px);
  }

  /* Pagination fits on narrow screens */
  .tahm-pagination .page-numbers {
    min-width: 36px;
    min-height: 36px;
    padding: 0 8px;
    font-size: 13px;
  }
}

/* Very narrow phones: 1 column fallback only if really tight */
@media (max-width: 360px) {
  .tahm-products-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .tahm-products-grid .tahm-product-card__image {
    min-height: 180px;
    padding: 20px;
  }

  .tahm-products-grid .tahm-product-card__image img {
    max-height: 150px;
  }

  .tahm-product-card__title {
    font-size: 15px;
    min-height: auto;
  }

  .tahm-product-card__actions {
    flex-direction: row;
  }
}

/* =========================================================
   NO SIDEBAR
   ========================================================= */

.tahm-no-sidebar .content-area,
.tahm-no-sidebar #primary,
.tahm-no-sidebar .site-main {
    width: 100% !important;
    float: none !important;
    margin-right: 0 !important;
}

.tahm-no-sidebar #secondary,
.tahm-no-sidebar .widget-area,
.tahm-no-sidebar .sidebar { display: none !important; }

.tahm-no-sidebar .col-full { max-width: 1280px; }

/* =========================================================
   HIDE DEFAULT PAGE TITLE + FIX CONTENT WIDTH
   ========================================================= */

.page:not(.home):not(.woocommerce-page) .entry-header { display: none !important; }

.page:not(.home):not(.woocommerce-page) #primary.content-area,
.page:not(.home):not(.woocommerce-page) .content-area {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.page:not(.home):not(.woocommerce-page) .site-main {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.blog .content-area,
.archive .content-area,
.search .content-area {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

.blog .site-main,
.archive .site-main,
.search .site-main {
    width: 100% !important;
    max-width: 100% !important;
}

/* =========================================================
