/* ══════════════════════════════════════════════════════════════
   BUCKZ STUDIO — Product Page (Bewakoof-style v2.3)
   ══════════════════════════════════════════════════════════════ */

/* ── Remove boxed shell for product pages ─────────────────── */
body.single-product .shop-shell {
  padding: 1rem 0 2rem;
  background: #fff;
}

body.single-product .shop-shell__inner {
  border: none !important;
  border-radius: 0 !important;
  background: #fff !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  padding: 0 1rem !important;
  max-width: var(--container, 1400px) !important;
}

/* Ensure sticky works */
body.single-product .shop-shell,
body.single-product .shop-shell__inner,
body.single-product .woocommerce {
  overflow: visible !important;
}

/* ── Breadcrumbs ───────────────────────────────────────────── */
body.single-product .woocommerce-breadcrumb {
  font-size: 0.78rem !important;
  color: #9e9e9e !important;
  margin-bottom: 1rem !important;
}

body.single-product .woocommerce-breadcrumb a {
  color: #9e9e9e;
  text-decoration: none;
  transition: color 0.15s;
}

body.single-product .woocommerce-breadcrumb a:hover {
  color: var(--primary);
}

/* ── Layout container — 2-column grid ──────────────────────── */
body.single-product .woocommerce div.product,
body.single-product div.product {
  display: grid !important;
  grid-template-columns: 55% 1fr !important;
  column-gap: 2.5rem !important;
  row-gap: 0 !important;
  align-items: start !important;
  float: none !important;
  width: 100% !important;
}

/* ── Left: Image column ────────────────────────────────────── */
body.single-product .woocommerce div.product div.images,
body.single-product div.product div.images {
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

/* ── Right: Info column (sticky) ───────────────────────────── */
body.single-product .woocommerce div.product div.summary,
body.single-product div.product div.summary {
  grid-column: 2 !important;
  grid-row: 1 / span 20 !important;
  width: 100% !important;
  float: none !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  position: sticky !important;
  top: 70px !important;
  align-self: start !important;
  max-height: calc(100vh - 80px) !important;
  overflow-y: auto !important;
  scrollbar-width: none !important;
}
body.single-product .woocommerce div.product div.summary::-webkit-scrollbar,
body.single-product div.product div.summary::-webkit-scrollbar {
  display: none !important;
}

/* ── Left-column rows (tabs, related) ──────────────────────── */
body.single-product .woocommerce div.product .woocommerce-tabs,
body.single-product .woocommerce div.product .related.products,
body.single-product .woocommerce div.product .upsells.products,
body.single-product div.product .woocommerce-tabs,
body.single-product div.product .related.products,
body.single-product div.product .upsells.products {
  grid-column: 1 !important;
  grid-row: auto !important;
  width: 100% !important;
  min-width: 0 !important;
  float: none !important;
  clear: both !important;
}

body.single-product .woocommerce div.product .related.products,
body.single-product div.product .related.products {
  margin-top: 2rem !important;
  padding-top: 1.5rem !important;
  border-top: 1px solid #e8e8e8 !important;
}

.related.products > h2,
.upsells.products > h2 {
  font-family: "Poppins", "Montserrat", sans-serif !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  margin-bottom: 1rem !important;
  color: #212121 !important;
}

.related.products ul.products,
.upsells.products ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
  gap: 0.75rem !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ── Gallery: 2-up grid ────────────────────────────────────── */
.buckz-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  width: 100%;
}

/* Cell wrapper — handles overflow for zoom effect */
.buckz-gallery-cell {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
  display: block;
}

.buckz-gallery-cell:only-child {
  grid-column: 1 / -1;
}

.buckz-gallery-cell:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.buckz-gallery-cell img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
  display: block;
  cursor: zoom-in;
  transition: transform 0.35s cubic-bezier(0.25,0.46,0.45,0.94);
}

.buckz-gallery-cell:hover img {
  transform: scale(1.06);
}

.buckz-gallery-cell:only-child img {
  aspect-ratio: 4/5;
}

.buckz-gallery-cell:last-child:nth-child(odd) img {
  aspect-ratio: 3/2;
}

.woocommerce-product-gallery.buckz-replaced .flex-viewport,
.woocommerce-product-gallery.buckz-replaced .flex-control-nav,
.woocommerce-product-gallery.buckz-replaced .flex-direction-nav,
.woocommerce-product-gallery.buckz-replaced .woocommerce-product-gallery__trigger {
  display: none !important;
}

/* ── Title ─────────────────────────────────────────────────── */
body.single-product h1.product_title {
  font-family: "Poppins", "Montserrat", sans-serif !important;
  font-size: 1.4rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  margin: 0 0 0.35rem !important;
  padding-top: 0 !important;
  color: #212121 !important;
  overflow-wrap: break-word !important;
  word-break: break-word !important;
  overflow: visible !important;
}

/* ── Price ──────────────────────────────────────────────────── */
body.single-product .woocommerce div.product p.price,
body.single-product .woocommerce div.product span.price {
  font-size: 1.4rem !important;
  font-weight: 800 !important;
  color: #212121 !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  flex-wrap: wrap !important;
  margin: 0.15rem 0 !important;
}

body.single-product .woocommerce div.product p.price del,
body.single-product .woocommerce div.product span.price del {
  color: #9e9e9e !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  opacity: 1 !important;
}

body.single-product .woocommerce div.product p.price ins {
  text-decoration: none !important;
}

/* ── Sale badge ────────────────────────────────────────────── */
body.single-product span.onsale {
  background: #10b981 !important;
  color: #fff !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  padding: 2px 10px !important;
  border-radius: 4px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  position: static !important;
  display: inline-block !important;
  min-height: unset !important;
  min-width: unset !important;
  margin: 0 !important;
}

/* ── Tax note ──────────────────────────────────────────────── */
.buckz-tax-note {
  font-size: 0.75rem;
  color: #9e9e9e;
  display: block;
  margin-bottom: 0.75rem;
}

/* ── Short description ─────────────────────────────────────── */
.woocommerce-product-details__short-description {
  font-size: 0.85rem !important;
  color: #555 !important;
  line-height: 1.65 !important;
  margin-bottom: 0.75rem !important;
  border-top: 1px solid #f0f0f0 !important;
  padding-top: 0.75rem !important;
}

/* ── Hide native variation table ───────────────────────────── */
body.single-product table.variations { display: none !important; }
body.single-product .reset_variations { display: none !important; }

/* ── Size selector ─────────────────────────────────────────── */
.buckz-size-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0.75rem 0 0.5rem;
}

.buckz-size-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #212121;
  margin: 0;
  display: block;
}

.buckz-size-guide-link {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  text-decoration: none;
  transition: opacity 0.2s;
}

.buckz-size-guide-link:hover {
  opacity: 0.7;
}

.buckz-size-wrapper {
  margin-bottom: 1.25rem;
}

.buckz-size-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0;
}

.buckz-size-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 42px;
  padding: 0 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  background: #fff;
  color: #212121;
  transition: all 0.15s;
  user-select: none;
}

.buckz-size-pill:hover {
  border-color: #212121;
}

.buckz-size-pill.selected {
  border-color: #212121;
  background: #212121;
  color: #fff;
}

.buckz-size-pill.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* ── Cart form ─────────────────────────────────────────────── */
body.single-product .woocommerce div.product form.cart {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  margin-top: 0.5rem !important;
}

/* Gap between size pills and the qty/button area —
   targeting the variation wrap directly since WooCommerce JS
   controls its display via inline styles which interfere with
   flex-item margin-bottom on the sibling above */
body.single-product .single_variation_wrap {
  margin-top: 1.5rem !important;
}

/* Simple products: qty div has no single_variation_wrap parent,
   so add space via the qty div itself */
body.single-product form.cart:not(.variations_form) div.quantity {
  margin-top: 1.5rem !important;
}

/* Quantity row */
body.single-product .woocommerce div.product form.cart div.quantity {
  margin-bottom: 0.75rem !important;
}

/* Gap between qty box and ADD TO CART button */
body.single-product button.single_add_to_cart_button {
  margin-top: 0.75rem !important;
}

body.single-product .woocommerce div.product form.cart .qty {
  width: 100% !important;
  padding: 0.6rem 1rem !important;
  border: 1.5px solid #e0e0e0 !important;
  border-radius: 8px !important;
  font-size: 1rem !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

/* Stock shown inside variations_button — add breathing room */
body.single-product .woocommerce-variation-availability {
  margin-bottom: 1rem !important;
}

/* ── Add to Bag button (Bewakoof-style) ────────────────────── */
body.single-product button.single_add_to_cart_button {
  width: 100% !important;
  padding: 0.9rem !important;
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  background: var(--primary) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  min-height: 50px !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
}

body.single-product button.single_add_to_cart_button:hover {
  background: var(--primary-dark) !important;
}

/* ── Trust badges ──────────────────────────────────────────── */
.buckz-trust-badges {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 0.5rem !important;
  margin-top: 1rem !important;
  padding: 0.85rem 0.6rem !important;
  background: #fafafa !important;
  border-radius: 8px !important;
  border: 1px solid #f0f0f0 !important;
}

.buckz-trust-badges .badge-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: 5px !important;
}

.buckz-trust-badges .badge-item svg {
  width: 22px !important;
  height: 22px !important;
  color: var(--primary);
}

.buckz-trust-badges .badge-item strong {
  font-size: 0.62rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
  color: #212121 !important;
  line-height: 1.3 !important;
}

/* ── Product meta (SKU / categories / tags) — hidden ──────── */
body.single-product .product_meta {
  display: none !important;
}

/* ── Stock count spacing ────────────────────────────────────── */
body.single-product p.stock,
body.single-product .woocommerce-variation-availability p {
  margin-top: 0.75rem !important;
  margin-bottom: 1.25rem !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: #16a34a !important;
}

/* ── Share button — prevent left edge clipping by overflow container ── */
.buckz-share {
  margin-left: 2px;
  display: block;
  width: 100%;
}

/* ── Delivery checker ──────────────────────────────────────── */
.buckz-delivery-check {
  margin-top: 1rem;
  padding: 0.85rem;
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
}

.buckz-delivery-check__title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #212121;
  margin: 0 0 0.5rem;
}

.buckz-delivery-check__row {
  display: flex;
  gap: 0.5rem;
}

.buckz-delivery-check__input {
  flex: 1;
  padding: 0.55rem 0.75rem;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
}

.buckz-delivery-check__input:focus {
  border-color: #212121;
}

.buckz-delivery-check__btn {
  padding: 0.55rem 1.2rem;
  background: #212121;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.buckz-delivery-check__btn:hover {
  background: #333;
}

.buckz-delivery-check__result {
  font-size: 0.8rem;
  margin: 0.5rem 0 0;
  line-height: 1.4;
}

.buckz-delivery-check__result--success { color: #2e7d32; }
.buckz-delivery-check__result--error { color: #d32f2f; }

/* ── Share button ──────────────────────────────────────────── */
.buckz-share {
  position: relative;
  display: inline-block;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f0f0f0;
}

.buckz-share__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 1.1rem;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  color: #555;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.buckz-share__trigger:hover {
  border-color: #212121;
  color: #212121;
}

.buckz-share__trigger svg { flex-shrink: 0; }

.buckz-share__popup {
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  min-width: 220px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 0.4rem 0;
  z-index: 99999;
  animation: buckzShareIn 0.15s ease;
}

@keyframes buckzShareIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.buckz-share__popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.9rem 0.4rem;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 0.2rem;
}

.buckz-share__popup-header span {
  font-size: 0.82rem;
  font-weight: 700;
  color: #212121;
}

.buckz-share__popup-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid #e8e8e8;
  border-radius: 50%;
  background: #fff;
  color: #999;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1;
}

.buckz-share__popup-close:hover {
  background: #212121;
  color: #fff;
  border-color: #212121;
}

.buckz-share__option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.9rem;
  text-decoration: none;
  color: #333;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.12s;
}

.buckz-share__option:hover {
  background: #fafafa;
}

.buckz-share__option svg {
  flex-shrink: 0;
  border-radius: 6px;
}

/* ── Lightbox zoom ─────────────────────────────────────────── */
.buckz-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  place-items: center;
  justify-content: center;
  align-items: center;
}

.buckz-lightbox.is-open { display: flex; }

.buckz-lightbox img {
  max-width: 85vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  user-select: none;
}

.buckz-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 2;
  line-height: 1;
}

.buckz-lightbox__close:hover { opacity: 1; }

.buckz-lightbox__prev,
.buckz-lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s, background 0.2s;
  z-index: 2;
}

.buckz-lightbox__prev { left: 1rem; }
.buckz-lightbox__next { right: 1rem; }

.buckz-lightbox__prev:hover,
.buckz-lightbox__next:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
}

/* ── Tabs → Accordion ──────────────────────────────────────── */
.woocommerce-tabs ul.tabs { display: none !important; }

.woocommerce-tabs .woocommerce-Tabs-panel {
  display: block !important;
  border: none !important;
  border-top: 1px solid #e8e8e8 !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

.woocommerce-tabs .woocommerce-Tabs-panel > h2 {
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: #212121 !important;
  padding: 1rem 0 !important;
  margin: 0 !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  border-bottom: 1px solid #e8e8e8 !important;
  cursor: pointer !important;
}

.woocommerce-tabs .woocommerce-Tabs-panel > h2::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 300;
  color: #bbb;
}

.woocommerce-tabs .woocommerce-Tabs-panel > *:not(h2) {
  padding: 0.9rem 0 1.25rem !important;
  font-size: 0.85rem !important;
  color: #555 !important;
  line-height: 1.7 !important;
}

/* ── Reviews ───────────────────────────────────────────────── */
.woocommerce-Reviews-title {
  font-size: 0.85rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  margin-bottom: 1.25rem !important;
}

.buckz-review-summary {
  display: flex; align-items: center;
  justify-content: space-between; gap: 1rem;
  margin-bottom: 1.25rem; flex-wrap: wrap;
}

.buckz-review-summary__left { display: flex; flex-direction: column; gap: 4px; }
.buckz-review-summary__score { font-size: 2.4rem; font-weight: 800; line-height: 1; color: #212121; }
.buckz-review-summary__stars { display: flex; gap: 2px; }
.buckz-review-summary__stars svg { width: 17px; height: 17px; }
.buckz-review-summary__count { font-size: 0.78rem; color: #9e9e9e; }

.buckz-write-review-btn {
  padding: 0.5rem 1.1rem; border: 1.5px solid #212121; border-radius: 8px;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; text-decoration: none; color: #212121; background: #fff;
  white-space: nowrap; transition: all 0.2s;
}

.buckz-write-review-btn:hover { background: #212121; color: #fff; }

.buckz-rating-bars { width: 100%; max-width: 320px; margin-bottom: 1.25rem; }

.buckz-rating-bar-row {
  display: flex; align-items: center; gap: 6px; margin-bottom: 5px;
}

.buckz-rating-bar-row .bar-stars { display: flex; gap: 1px; flex-shrink: 0; }
.buckz-rating-bar-row .bar-stars svg { width: 10px; height: 10px; }
.buckz-rating-bar-row .bar-track { flex: 1; height: 6px; background: #e8e8e8; border-radius: 999px; overflow: hidden; }
.buckz-rating-bar-row .bar-fill { height: 100%; background: #10b981; border-radius: 999px; }
.buckz-rating-bar-row .bar-pct { font-size: 0.7rem; color: #9e9e9e; width: 28px; text-align: right; }

#reviews ol.commentlist { list-style: none; padding: 0; margin: 1rem 0 0; }
#reviews ol.commentlist li { padding: 1rem 0; border-bottom: 1px solid #f0f0f0; margin: 0; }
#reviews .comment_container { display: flex; gap: 0.75rem; align-items: flex-start; }
#reviews .comment_container img.avatar { display: none !important; }

.buckz-reviewer-avatar {
  width: 36px; height: 36px; min-width: 36px; border-radius: 50%;
  background: #212121; color: #fff; font-weight: 700; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
}

#reviews .comment-text { flex: 1; }
#reviews .star-rating { margin-bottom: 3px; }
#reviews p.meta { font-size: 0.8rem; margin-bottom: 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
#reviews .woocommerce-review__author { font-weight: 700; color: #212121; }

#reviews .woocommerce-review__verified {
  background: #e8f5e9; color: #2e7d32; font-size: 0.67rem;
  font-weight: 700; padding: 1px 7px; border-radius: 999px;
}

#reviews time { font-size: 0.73rem; color: #bbb; }
#reviews .woocommerce-review__dash { display: none !important; }
#reviews .description p { font-size: 0.85rem; color: #555; line-height: 1.6; margin: 0; }

#review_form_wrapper {
  margin-top: 1.5rem; padding: 1.5rem !important;
  border-top: 1px solid #e8e8e8;
  background: #fafafa; border: 1px solid #f0f0f0; border-radius: 12px;
}

#review_form label {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; display: block; margin-bottom: 4px;
}

#review_form input[type="text"],
#review_form input[type="email"],
#review_form textarea {
  width: 100%; padding: 0.6rem 0.9rem;
  border: 1.5px solid #e0e0e0; border-radius: 8px;
  font-size: 0.875rem; box-sizing: border-box;
}

#review_form .form-submit input[type="submit"] {
  padding: 0.75rem 2rem !important;
  background: var(--primary) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 800 !important;
  font-size: 0.875rem !important;
  cursor: pointer !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  transition: background 0.2s !important;
}

#review_form .form-submit input[type="submit"]:hover {
  background: var(--primary-dark) !important;
}

/* Star rating colors */
#reviews .star-rating span::before,
.woocommerce p.stars a::before,
.woocommerce p.stars a:hover ~ a::before {
  color: #f5a623 !important;
}

.woocommerce p.stars a { color: #ddd !important; }

.woocommerce p.stars.selected a.active ~ a::before { color: #ddd !important; }

.woocommerce p.stars.selected a.active::before,
.woocommerce p.stars:hover a::before,
.woocommerce p.stars.selected a:not(.active)::before {
  color: #f5a623 !important;
}

/* ── Related products buttons ──────────────────────────────── */
.related.products ul.products li a.button,
.related.products ul.products li a.add_to_cart_button,
.upsells.products ul.products li a.button,
.upsells.products ul.products li a.add_to_cart_button {
  display: inline-block !important;
  background: var(--primary) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 0.5rem 1rem !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
  margin-top: 0.5rem !important;
}

.related.products ul.products li a.button:hover,
.related.products ul.products li a.add_to_cart_button:hover,
.upsells.products ul.products li a.button:hover,
.upsells.products ul.products li a.add_to_cart_button:hover {
  background: var(--primary-dark) !important;
}

/* ══════════════════════════════════════════════════════════════
   MOBILE PRODUCT PAGE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  body.single-product .shop-shell {
    padding: 0.5rem 0 1.5rem;
  }

  body.single-product .shop-shell__inner {
    padding: 0 0.75rem !important;
  }

  body.single-product .woocommerce div.product,
  body.single-product div.product {
    display: block !important;
  }

  body.single-product .woocommerce div.product div.images,
  body.single-product div.product div.images,
  body.single-product .woocommerce div.product div.summary,
  body.single-product div.product div.summary {
    grid-column: 1 !important;
    grid-row: auto !important;
    position: static !important;
    max-height: none !important;
    overflow-y: visible !important;
    width: 100% !important;
    float: none !important;
  }

  .buckz-gallery-grid {
    grid-template-columns: 1fr !important;
    gap: 4px !important;
  }

  .buckz-gallery-grid img {
    border-radius: 0;
    border: none;
  }

  body.single-product h1.product_title {
    font-size: 1.15rem !important;
    line-height: 1.3 !important;
    margin-top: 0.75rem !important;
  }

  body.single-product .woocommerce div.product p.price,
  body.single-product .woocommerce div.product span.price {
    font-size: 1.2rem !important;
  }

  body.single-product .woocommerce div.product p.price del,
  body.single-product .woocommerce div.product span.price del {
    font-size: 0.88rem !important;
  }

  .woocommerce-product-details__short-description {
    font-size: 0.82rem !important;
  }

  .buckz-size-pills { gap: 6px; }

  .buckz-size-pill {
    min-width: 44px;
    height: 40px;
    font-size: 0.8rem;
    padding: 0 10px;
  }

  body.single-product button.single_add_to_cart_button {
    font-size: 0.85rem !important;
    padding: 0.85rem !important;
    min-height: 48px !important;
  }

  body.single-product .woocommerce div.product form.cart .qty {
    font-size: 16px !important;
    min-height: 44px !important;
  }

  .buckz-trust-badges {
    padding: 0.6rem 0.4rem !important;
    gap: 0.3rem !important;
    margin-top: 0.75rem !important;
  }

  .buckz-trust-badges .badge-item svg {
    width: 20px !important;
    height: 20px !important;
  }

  .buckz-trust-badges .badge-item strong {
    font-size: 0.58rem !important;
  }

  body.single-product .product_meta {
    display: none !important;
  }

  .buckz-delivery-check__input {
    font-size: 16px; /* prevent iOS zoom */
  }

  .related.products h2,
  .upsells.products h2 {
    font-size: 1rem !important;
  }

  .related.products ul.products,
  .upsells.products ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
  }

  body.single-product {
    padding-bottom: 120px !important;
  }
}

/* ── Sticky Add-to-Cart Bar (mobile) ───────────────────────── */
.sticky-atc-bar {
  display: none;
}

@media (max-width: 768px) {
  .sticky-atc-bar {
    display: flex;
    position: fixed;
    bottom: 52px;
    left: 0;
    right: 0;
    z-index: 55;
    background: #fff;
    border-top: 1px solid #e8e8e8;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
    padding: 8px 12px;
    align-items: center;
    gap: 10px;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
  }

  .sticky-atc-bar.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .sticky-atc-bar__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
  }

  .sticky-atc-bar__title {
    font-size: 0.72rem;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sticky-atc-bar__price {
    font-size: 0.85rem;
    font-weight: 800;
    color: #212121;
  }

  .sticky-atc-bar__price del {
    font-size: 0.7rem;
    font-weight: 400;
    color: #999;
  }

  .sticky-atc-bar__btn {
    flex-shrink: 0;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0 20px;
    min-height: 42px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
  }

  .sticky-atc-bar__btn:active {
    background: var(--primary-dark);
    transform: scale(0.97);
  }
}
