/* WooCommerce ships `.woocommerce a.button` (0,2,1) — these selectors must
   match or exceed it, or the default grey/purple wins. */
.woocommerce ul.products li.product a.button,
.woocommerce div.product a.button,
.woocommerce a.button.add_to_cart_button,
.woocommerce .shop-grid a.button {
  background-color: #FF8534;
  color: var(--ink);
  font-weight: 700;
  font-size: 13.5px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 0;
  border-radius: var(--radius-md);
}
.woocommerce ul.products li.product a.button:hover,
.woocommerce a.button.add_to_cart_button:hover { background-color: #FF8534; opacity: .88; }

/* ============ Section heading row ============ */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}
.section-head h2 { font-size: clamp(22px, 2.6vw, 32px); position: relative; padding-bottom: 12px; }
.section-head h2::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 44px; height: 3px;
  background: var(--accent);
  border-radius: var(--radius-pill);
}
.section-head .view-all { font-size: 13px; font-weight: 700; color: var(--accent-text); text-transform: uppercase; letter-spacing: .02em; }

/* Carousel dot pagination (mirrors the hero dots pattern) */
.carousel-dots { display: flex; gap: 6px; justify-content: center; margin-top: var(--space-md); }
.carousel-dots button {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ink-10);
  box-sizing: content-box; padding: 18px 8px; background-clip: content-box;
}
.carousel-dots button.is-active { background: var(--accent); background-clip: content-box; width: 20px; border-radius: var(--radius-pill); }

/* ============ Carousel (native, no JS library) ============ */
.carousel {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-sm);
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel__item {
  flex: 0 0 auto;
  width: 240px;
  scroll-snap-align: start;
}
.carousel-wrap { position: relative; }
@media (max-width: 640px) {
  .carousel { gap: var(--space-md); }
  .carousel__item { width: calc(50% - 8px); }
}
.carousel-nav { position: absolute; top: 40%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg); box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.carousel-nav.prev { left: -22px; }
.carousel-nav.next { right: -22px; }
@media (max-width: 640px) { .carousel-nav { display: none; } }

/* ============ Product card ============ */
.product-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--ink-10);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .15s ease;
}
.product-card:hover { border-color: var(--accent); }

.product-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--surface);
}
.product-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-card__media img { transform: scale(1.06); }

.product-card__badge {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: var(--bg);
  color: var(--accent-text);
  border: 1.5px dashed var(--accent-text);
  font-weight: 700;
}
.product-card__badge.stock-low { background: var(--bg); color: var(--ink); border-color: var(--ink); }
.product-card__badge.out-of-stock { background: var(--bg); color: var(--ink-40); border-color: var(--ink-10); }

.product-card__wishlist {
  position: absolute; top: 10px; left: 10px; right: auto; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.9);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease;
}
.product-card:hover .product-card__wishlist { opacity: 1; transform: translateY(0); }
.product-card__wishlist.is-active svg { fill: var(--accent); stroke: var(--accent); }

.product-card__body { padding: var(--space-md); }
.product-card__title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}
.product-card__price { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-sm); }
.product-card__price .current { font-weight: 700; color: var(--accent-text); font-size: 16px; }
.product-card__price .original { font-size: 13px; color: var(--ink-60); text-decoration: line-through; }
.product-card__cta {
  width: 100%; text-align: center;
  padding: 10px; font-size: 13px;
  background: var(--bg);
  color: var(--accent-text);
  border: 1.5px solid var(--accent-text);
  min-height: 44px;
}

/* WooCommerce's [add_to_cart] shortcode wraps the real <a class="button"> in a
   <p class="add_to_cart_inline"> that carries its own inline border/padding.
   Neutralise the wrapper, then style the anchor itself — otherwise the button
   renders with WooCommerce's default grey and a stray 4px grey border. */
.product-card__cta-wrap p.add_to_cart_inline {
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: none;
  display: block;
  width: 100%;
}
.product-card__cta-wrap a.button,
.product-card__cta-wrap a.add_to_cart_button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 11px 14px;
  /* Brand orange fill with dark ink label: 5.94:1, passes AA.
     White on this orange would only be 2.95:1. */
  background-color: #FF8534;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1.2;
  border: 0;
  border-radius: var(--radius-md);
  text-align: center;
  transition: opacity .15s ease;
}
.product-card__cta-wrap a.button:hover { opacity: .88; }
.product-card__cta-wrap a.button.loading { opacity: .6; }
/* WooCommerce appends an "View cart" link after a successful AJAX add. */
.product-card__cta-wrap a.added_to_cart {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-text);
  text-align: center;
  text-decoration: underline;
}
.product-card__cta:hover { background: color-mix(in srgb, var(--accent) 8%, var(--bg)); opacity: 1; }
.product-card__qty-stepper {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 1.5px solid var(--accent-text);
  border-radius: var(--radius-md);
  padding: 4px 8px;
  min-height: 48px;
}
.product-card__qty-stepper button {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-text);
  color: var(--accent-text);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700;
}
.product-card__qty-stepper input {
  width: 30px; text-align: center; border: 0; font-weight: 700; font-size: 14px;
  -moz-appearance: textfield;
}
.product-card__qty-stepper input::-webkit-outer-spin-button,
.product-card__qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ============ Category quick-nav grid (homepage) ============ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-md);
}
.category-grid__item { text-align: center; }
.category-grid__icon {
  aspect-ratio: 1/1;
  width: 100%;
  max-width: 120px;
  margin-inline: auto;
  border-radius: 50%;
  /* Solid fill: transparent PNGs would otherwise render over the page
     background and can read as a checkerboard in some browsers. */
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-sm);
  overflow: hidden;
}
.category-grid__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--surface);
}
.category-grid__item span { font-size: 13px; font-weight: 500; }
@media (max-width: 960px) { .category-grid { grid-template-columns: repeat(3, 1fr); } }

/* ============ Testimonials ============ */
.testimonial-strip { display: flex; gap: var(--space-md); overflow-x: auto; scrollbar-width: none; }
.testimonial-card {
  flex: 0 0 auto; width: 280px;
  border: 1px solid var(--ink-10); border-radius: var(--radius-md);
  padding: var(--space-md);
}
.testimonial-card .stars { color: var(--accent-text); margin-bottom: var(--space-sm); }

/* ============ Product archive / shop ============ */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-md);
}
@media (max-width: 640px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============ Single product ============ */
.product-gallery__zoom img { cursor: zoom-in; }

.sticky-atc {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  border-top: 1px solid var(--ink-10);
  box-shadow: var(--shadow-md);
  padding: var(--space-sm) var(--space-md);
  z-index: 250;
  transform: translateY(100%);
  transition: transform .25s ease;
  display: flex; align-items: center; gap: var(--space-md);
}
.sticky-atc.is-visible { transform: translateY(0); }
.sticky-atc img { width: 44px; height: 44px; border-radius: var(--radius-sm); object-fit: cover; }
.sticky-atc__info { flex: 1; min-width: 0; }
.sticky-atc__info .title { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-atc__info .price { font-size: 14px; font-weight: 700; color: var(--accent-text); }
.sticky-atc .button,
.sticky-atc .add_to_cart_button {
  background: #FF8534;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 20px;
  min-height: 44px;
  border-radius: var(--radius-md);
  white-space: nowrap;
  border: 0;
}
