/**
 * Techtra WooCommerce / shop / single product — homepage-aligned chrome.
 */

:root {
  --techtra-shop-pastel: #ebe6f7;
}

.techtra-auth {
  width: min(100% - 2rem, 420px);
  margin: 2.5rem auto 3.5rem;
  padding: 1.75rem;
  border: 1px solid var(--techtra-border, #e5e7eb);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.techtra-auth h2 {
  margin: 0 0 1.25rem;
  font-size: 1.5rem;
  color: #0f172a;
}

.techtra-auth .form-row {
  margin: 0 0 1rem;
}

.techtra-auth label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
}

.techtra-auth input[type="text"],
.techtra-auth input[type="email"],
.techtra-auth input[type="password"],
.woocommerce-account input.input-text,
.woocommerce-cart input.input-text,
.woocommerce-checkout input.input-text,
.woocommerce-checkout select,
.woocommerce form .input-text {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  background: #f8fafc;
  color: #0f172a;
  font: inherit;
  box-sizing: border-box;
}

.techtra-auth input:focus,
.woocommerce form .input-text:focus,
.woocommerce-checkout select:focus {
  outline: 2px solid #93c5fd;
  outline-offset: 1px;
  border-color: #2563eb;
  background: #fff;
}

.techtra-auth .btn,
.techtra-auth button[type="submit"],
.woocommerce button.button,
.woocommerce a.button,
.woocommerce button.button.alt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.7rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: #2563eb;
  color: #fff !important;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.techtra-auth .lost_password {
  margin: 0.85rem 0 0;
}

.techtra-auth .lost_password a {
  color: #2563eb;
}

.woocommerce-account .woocommerce,
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
  width: min(100% - 2rem, 1200px);
  margin: 1.5rem auto 3rem;
}

.woocommerce-coming-soon-banner,
.woocommerce-coming-soon-store-only {
  display: none !important;
}

.site-main .entry-content > .woocommerce-coming-soon-store-only {
  display: none !important;
}

/* ── Shop / category page shell ── */
body.woocommerce-shop,
body.tax-product_cat,
body.tax-product_tag,
body.single-product,
body.post-type-archive-product {
  background: var(--techtra-shop-pastel);
}

.techtra-shop-page {
  padding: 32px 0 64px;
  background: transparent;
}

.techtra-shop-page__inner {
  width: min(100% - 2rem, 1240px);
  margin: 0 auto;
}

.techtra-shop-page__header {
  text-align: center;
  margin-bottom: 28px;
}

.techtra-shop-page__header .section-title {
  font-family: var(--font-heading, "Montserrat", system-ui, sans-serif);
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  font-weight: 700;
  color: #1c2b40;
  margin: 0 0 8px;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.techtra-shop-page__header .section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  border-radius: 999px;
  background: #2563eb;
}

.techtra-shop-page__desc,
.techtra-shop-page__header .section-subtitle {
  color: #5a6b7d;
  font-size: 1rem;
  margin: 8px 0 0;
}

.techtra-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin: 18px 0 0;
  font-size: 0.88rem;
  color: #64748b;
}

.techtra-breadcrumb a {
  color: #2563eb;
  text-decoration: none;
}

.techtra-breadcrumb a:hover {
  text-decoration: underline;
}

.techtra-shop-page__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 28px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
}

.techtra-shop-page__toolbar .woocommerce-result-count {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
}

.techtra-shop-page__toolbar .woocommerce-ordering {
  margin: 0;
}

.techtra-shop-page__toolbar select {
  min-height: 40px;
  padding: 0.45rem 0.85rem;
  border: 1px solid #dbe4f0;
  border-radius: 999px;
  background: #f8fafc;
  font: inherit;
  color: #1c2b40;
}

.techtra-shop-page__grid.products-grid,
.techtra-related-products__grid.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.techtra-shop-page__pagination {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}

.techtra-shop-page__pagination .woocommerce-pagination ul {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.techtra-shop-page__pagination .woocommerce-pagination a,
.techtra-shop-page__pagination .woocommerce-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #dbe4f0;
  color: #1c2b40;
  text-decoration: none;
  font-weight: 600;
}

.techtra-shop-page__pagination .woocommerce-pagination .current {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.techtra-shop-page__empty {
  text-align: center;
  padding: 48px 20px;
  background: #fff;
  border-radius: 16px;
  color: #64748b;
}

/* ── Product cards (shared with homepage look) ── */
.techtra-shop-page .product-card,
.techtra-related-products .product-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #dbe4f0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.techtra-shop-page .product-card:hover,
.techtra-related-products .product-card:hover {
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
  border-color: #dbeafe;
  transform: translateY(-4px);
}

.techtra-shop-page .product-badge-group,
.techtra-related-products .product-badge-group {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 5;
}

.techtra-shop-page .product-badge.sale,
.techtra-related-products .product-badge.sale,
.techtra-single-product .product-badge.sale {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  background: #d93838;
  color: #fff;
}

.techtra-shop-page .product-img-link,
.techtra-related-products .product-img-link {
  display: block;
  margin-bottom: 12px;
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
  aspect-ratio: 1;
}

.techtra-shop-page .product-img,
.techtra-related-products .product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.techtra-shop-page .product-category,
.techtra-related-products .product-category {
  display: block;
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 4px;
}

.techtra-shop-page .product-title,
.techtra-related-products .product-title {
  font-family: var(--font-heading, "Montserrat", system-ui, sans-serif);
  font-size: 0.98rem;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.35;
}

.techtra-shop-page .product-title a,
.techtra-related-products .product-title a {
  color: #1c2b40;
  text-decoration: none;
}

.techtra-shop-page .product-rating,
.techtra-related-products .product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  color: #d2a45c;
  margin-bottom: 10px;
}

.techtra-shop-page .product-rating-count,
.techtra-related-products .product-rating-count {
  color: #94a3b8;
}

.techtra-shop-page .product-price-wrapper,
.techtra-related-products .product-price-wrapper {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 0;
  margin-top: auto;
  flex-wrap: wrap;
}

.techtra-shop-page .product-price,
.techtra-related-products .product-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: #2563eb;
}

.techtra-shop-page .product-old-price,
.techtra-related-products .product-old-price {
  font-size: 0.88rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.techtra-shop-page .product-price del,
.techtra-related-products .product-price del {
  color: #94a3b8;
  font-weight: 500;
  font-size: 0.88rem;
  margin-right: 6px;
}

/* ── Single product ── */
.techtra-single-page .techtra-breadcrumb {
  justify-content: flex-start;
  margin: 0 0 24px;
}

.techtra-single-product {
  background: #fff;
  border: 1px solid #dbe4f0;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.05);
}

.techtra-single-product__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.techtra-single-product__main-image {
  position: relative;
  background: #f8fafc;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.techtra-single-product__main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.techtra-single-product__main-image .product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
}

.techtra-single-product__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.techtra-single-product__thumb {
  width: 72px;
  height: 72px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
  cursor: pointer;
}

.techtra-single-product__thumb.is-active,
.techtra-single-product__thumb:hover {
  border-color: #2563eb;
}

.techtra-single-product__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.techtra-single-product__cats {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 8px;
}

.techtra-single-product__cats a {
  color: #2563eb;
  text-decoration: none;
}

.techtra-single-product__title {
  font-family: var(--font-heading, "Montserrat", system-ui, sans-serif);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  color: #1c2b40;
  margin: 0 0 12px;
  line-height: 1.25;
}

.techtra-single-product__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #d2a45c;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.techtra-single-product__review-count {
  color: #94a3b8;
}

.techtra-single-product__price {
  font-size: 1.6rem;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 16px;
}

.techtra-single-product__price del {
  color: #94a3b8;
  font-size: 1rem;
  font-weight: 500;
  margin-right: 8px;
}

.techtra-single-product__excerpt {
  color: #5a6b7d;
  margin-bottom: 20px;
  line-height: 1.65;
}

.techtra-single-product__cart .quantity {
  margin-right: 12px;
}

.techtra-single-product__cart .qty {
  width: 72px;
  min-height: 44px;
  text-align: center;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  background: #f8fafc;
}

.techtra-single-product__cart .single_add_to_cart_button {
  min-height: 48px;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  border: 0;
}

.techtra-single-product__meta {
  list-style: none;
  margin: 22px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid #eef2f7;
  color: #5a6b7d;
  font-size: 0.92rem;
}

.techtra-single-product__meta li + li {
  margin-top: 8px;
}

.techtra-single-product__tabs {
  margin-top: 36px;
  padding-top: 8px;
}

.techtra-single-product__tabs .woocommerce-tabs ul.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.techtra-single-product__tabs .woocommerce-tabs ul.tabs li {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.techtra-single-product__tabs .woocommerce-tabs ul.tabs li a {
  display: inline-flex;
  padding: 10px 20px;
  border-radius: 999px;
  background: #f6f8fb;
  color: #5a6b7d;
  font-weight: 600;
  text-decoration: none;
}

.techtra-single-product__tabs .woocommerce-tabs ul.tabs li.active a,
.techtra-single-product__tabs .woocommerce-tabs ul.tabs li a:hover {
  background: #2563eb;
  color: #fff;
}

.techtra-single-product__tabs .woocommerce-Tabs-panel {
  padding: 8px 4px 0;
  color: #5a6b7d;
  line-height: 1.7;
}

.techtra-related-products {
  margin-top: 48px;
  padding-top: 8px;
}

.techtra-related-products .section-title-wrapper {
  text-align: center;
  margin-bottom: 28px;
}

.techtra-related-products .section-title {
  font-family: var(--font-heading, "Montserrat", system-ui, sans-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: #1c2b40;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
  margin: 0;
}

.techtra-related-products .section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  border-radius: 999px;
  background: #2563eb;
}

.techtra-related-products .section-subtitle {
  margin: 10px 0 0;
  color: #5a6b7d;
}

@media (max-width: 1024px) {
  .techtra-shop-page__grid.products-grid,
  .techtra-related-products__grid.products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .techtra-shop-page {
    padding: 24px 0 48px;
  }

  .techtra-single-product {
    padding: 18px;
    border-radius: 16px;
  }

  .techtra-single-product__grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .techtra-shop-page__grid.products-grid,
  .techtra-related-products__grid.products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .techtra-shop-page__toolbar {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 480px) {
  .techtra-shop-page__grid.products-grid,
  .techtra-related-products__grid.products-grid {
    grid-template-columns: 1fr;
  }
}
