/* =====================================================================
   Alpeka Hair Shears: single product page in the homepage "Bold & Modern" look (1.5.0, 2026-11-26)
   Loaded only when is_product() (functions.php), after woocommerce.css. Every rule is scoped to
   body.single-product div.product (or the new .ah-pp-* markup), so the header, the mini-cart drawer,
   the cart, checkout and account pages are untouched. Payment buttons (WooPay / Google Pay / PayPal)
   and their iframes are not styled.
   Tokens are the homepage ones (homepage.css / woocommerce.css).
   ===================================================================== */

body.single-product{
  --ah-ink:#141210; --ah-ink-2:#1d1a16; --ah-ink-3:#2a251f;
  --ah-paper:#faf7f1; --ah-paper-2:#f2ece1;
  --ah-gold:#c8a24a; --ah-gold-lt:#e6c877; --ah-gold-deep:#a9862f;
  --ah-cream:#f4efe6; --ah-muted:#b9b1a2; --ah-muted-d:#6f675b;
  --ah-line:rgba(255,255,255,.12); --ah-line-d:rgba(20,18,16,.12);
  --ah-serif:"Fraunces",Georgia,"Times New Roman",serif;
  --ah-sans:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  overflow-x:clip;                       /* the full-width bands below break out of the 1200px container */
}

/* ---------- Page canvas: warm paper like the homepage sections (header and footer keep their own colours) ---------- */
body.single-product #content{background:var(--ah-paper);}
body.single-product div.product{padding-top:clamp(.5rem,2vw,1.5rem);}

/* ---------- Gallery: rounded white card. The border moves from the slide strip (9000px wide, clipped on the right)
   to the visible viewport, so all four corners show. Single-image products have no viewport, so they keep it on the wrapper. ---------- */
body.single-product div.product .woocommerce-product-gallery__wrapper{border:0;border-radius:0;}
body.single-product div.product .woocommerce-product-gallery .flex-viewport,
body.single-product div.product .woocommerce-product-gallery:not(:has(.flex-viewport)) .woocommerce-product-gallery__wrapper{
  background:#fff;border:1px solid var(--ah-line-d);border-radius:16px;overflow:hidden;
  box-shadow:0 30px 50px -34px rgba(20,18,16,.45);
}
body.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img{
  background:#fff;border:1px solid var(--ah-line-d);border-radius:12px;opacity:1;
}
body.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active,
body.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img:hover{
  border-color:var(--ah-gold);box-shadow:0 0 0 1px var(--ah-gold);
}

/* ---------- Summary column ---------- */
/* Category line becomes the homepage eyebrow (gold, letter-spaced caps). "All Products" is a catch-all, so only the
   real category shows; the comma text between links is hidden by font-size:0 and re-drawn with ::before. */
body.single-product div.product .single-product-category{
  display:block;font-size:0;line-height:1;margin:0 0 .7rem;
}
body.single-product div.product .single-product-category a{
  font-family:var(--ah-sans);font-size:.72rem;font-weight:700;letter-spacing:.18em;text-transform:uppercase;
  color:var(--ah-gold-deep);text-decoration:none;
}
body.single-product div.product .single-product-category a[href*="/product-category/all-products/"]{display:none;}
body.single-product div.product .single-product-category a:not([href*="/all-products/"]) ~ a:not([href*="/all-products/"])::before{
  content:"\00B7";padding:0 .6em;
}
body.single-product div.product .single-product-category a:hover{color:var(--ah-ink);}

body.single-product div.product .summary .woocommerce-breadcrumb{font-size:.8rem;margin-bottom:.9rem;}
body.single-product div.product h1.product_title{
  font-size:clamp(1.9rem,3.4vw,2.8rem);line-height:1.08;letter-spacing:-.01em;margin:0 0 .6rem;
}
body.single-product div.product .summary p.price{
  font-family:var(--ah-serif);font-size:clamp(1.5rem,2.4vw,1.9rem);font-weight:600;color:var(--ah-ink);margin:0 0 1rem;
}
body.single-product div.product .summary p.price del{color:var(--ah-muted-d);font-weight:400;font-size:.7em;opacity:1;}
body.single-product div.product .summary p.price ins{text-decoration:none;color:var(--ah-ink);}
body.single-product div.product .woocommerce-product-details__short-description{color:var(--ah-muted-d);font-size:1.02rem;line-height:1.65;}
body.single-product div.product .woocommerce-product-details__short-description strong{color:var(--ah-ink);}

/* ---------- Options, quantity and Add to cart ---------- */
body.single-product div.product form.cart table.variations th.label,
body.single-product div.product form.cart table.variations label{
  font-family:var(--ah-sans);font-size:.72rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--ah-ink);
}
body.single-product div.product form.cart table.variations select{
  min-height:48px;padding:.6rem 2.4rem .6rem 1rem;border:1px solid var(--ah-line-d);border-radius:12px;background-color:#fff;
  font-size:1rem;color:var(--ah-ink);
}
body.single-product div.product form.cart table.variations select:focus{border-color:var(--ah-gold);box-shadow:0 0 0 3px rgba(200,162,74,.25);outline:none;}
body.single-product div.product form.cart .reset_variations{color:var(--ah-muted-d);font-size:.85rem;}

/* Quantity: one rounded pill (Astra's - / + links around the number) */
body.single-product div.product form.cart .quantity.buttons_added{
  display:inline-flex;align-items:stretch;height:52px;border:1px solid var(--ah-line-d);border-radius:999px;background:#fff;overflow:hidden;
}
body.single-product div.product form.cart .quantity.buttons_added .minus,
body.single-product div.product form.cart .quantity.buttons_added .plus{
  display:flex;align-items:center;justify-content:center;width:44px;height:auto;border:0;background:transparent;
  color:var(--ah-ink);font-size:1.15rem;text-decoration:none;
}
body.single-product div.product form.cart .quantity.buttons_added .minus:hover,
body.single-product div.product form.cart .quantity.buttons_added .plus:hover{background:var(--ah-paper-2);}
body.single-product div.product form.cart .quantity.buttons_added .qty{
  width:3rem;height:auto;border:0;border-radius:0;background:transparent;padding:0;font-weight:600;color:var(--ah-ink);
}

/* Add to cart = homepage .ah-btn-gold (sans, sentence case, gold pill). Same element, same classes; only the look changes. */
body.single-product div.product form.cart .single_add_to_cart_button,
body.single-product div.product form.cart .single_add_to_cart_button.disabled{ /* alpeka-wp fix 1: .disabled (0,5,3) beats Astra's .woocommerce button.button.alt.disabled.wc-variation-selection-needed (0,5,1), which kept the unselected button uppercase, 3px letter-spaced, 400 */
  min-height:52px;padding:.9rem 2rem !important;font-family:var(--ah-sans);font-size:1rem;font-weight:600;
  text-transform:none;letter-spacing:.01em;line-height:1;
}
/* Before a size is chosen WooCommerce marks the button .disabled. Keep that signal, but readable (was opacity .5). */
body.single-product div.product form.cart .single_add_to_cart_button.disabled{opacity:.62;}
body.single-product div.product form.cart .woocommerce-variation-add-to-cart{display:flex;flex-wrap:wrap;align-items:center;gap:.8rem;}
body.single-product div.product form.cart .woocommerce-variation-add-to-cart .quantity,
body.single-product div.product form.cart .woocommerce-variation-add-to-cart .single_add_to_cart_button{margin:0;float:none;}

/* Meta: no product has a SKU ("SKU: N/A" on every page), so hide that line; the categories line stays. */
body.single-product div.product .product_meta{border-top:1px solid var(--ah-line-d);font-size:.85rem;color:var(--ah-muted-d);}
body.single-product div.product .product_meta .sku_wrapper{display:none;}

/* ---------- Trust strip under the product (new markup .ah-pp-trust, same items and wording as the homepage strip) ---------- */
.ah-pp-trust{
  clear:both;background:var(--ah-ink-2);color:var(--ah-cream);
  margin:clamp(2.5rem,5vw,4rem) calc(50% - 50vw) 0;   /* full width out of the 1200px container */
}
.ah-pp-trust-in{
  width:min(1200px,92%);margin-inline:auto;padding:1.5rem 0;
  display:grid;grid-template-columns:repeat(var(--ah-pp-n,4),1fr);gap:1rem;text-align:center;
}
.ah-pp-trust .ah-t b{display:block;color:#fff;font-family:var(--ah-serif);font-size:1.15rem;font-weight:600;line-height:1.3;}
.ah-pp-trust .ah-t span{font-family:var(--ah-sans);font-size:.74rem;letter-spacing:.12em;text-transform:uppercase;color:var(--ah-muted);}

/* ---------- Description / Additional information / Reviews: white card on paper, tabs as eyebrow labels ---------- */
body.single-product div.product .woocommerce-tabs{
  clear:both;margin-top:clamp(2.5rem,5vw,4rem);padding:0;border:0;
}
body.single-product div.product .woocommerce-tabs ul.tabs{
  display:flex;flex-wrap:wrap;gap:.4rem 1.8rem;margin:0 0 1.2rem;padding:0;border:0;
}
body.single-product div.product .woocommerce-tabs ul.tabs::before,
body.single-product #content div.product .woocommerce-tabs ul.tabs::before{display:none;} /* alpeka-wp fix 4: WooCommerce's .woocommerce #content div.product .woocommerce-tabs ul.tabs::before{display:table} (1,4,3) beat the plain selector, so Astra's grey 1px rule stayed above the tabs */
/* alpeka-wp fix 5: Astra's gold 3px bar on top of the active tab (li.active::before) doubled the gold underline below. */
body.single-product div.product .woocommerce-tabs ul.tabs li::before{display:none;}
body.single-product div.product .woocommerce-tabs ul.tabs li{margin:0;padding:0;border:0;background:transparent;box-shadow:none;}
body.single-product div.product .woocommerce-tabs ul.tabs li a{
  display:inline-block;padding:.35rem 0;font-family:var(--ah-sans);font-size:.78rem;font-weight:700;letter-spacing:.16em;
  text-transform:uppercase;color:var(--ah-muted-d);border-bottom:2px solid transparent;
}
body.single-product div.product .woocommerce-tabs ul.tabs li.active a,
body.single-product div.product .woocommerce-tabs ul.tabs li a:hover{color:var(--ah-ink);border-bottom-color:var(--ah-gold);}
body.single-product div.product .woocommerce-tabs ul.tabs li.active,
body.single-product div.product .woocommerce-tabs ul.tabs li.active a::after{box-shadow:none;}
body.single-product div.product .woocommerce-tabs .woocommerce-Tabs-panel{
  background:#fff;border:1px solid var(--ah-line-d);border-radius:16px;
  padding:clamp(1.4rem,3.5vw,2.6rem);margin:0;line-height:1.7;color:#3a352e;
}
body.single-product div.product .woocommerce-Tabs-panel > *:first-child{margin-top:0;}
body.single-product div.product .woocommerce-Tabs-panel strong{color:var(--ah-ink);}
body.single-product div.product .woocommerce-Tabs-panel ul{margin:.4rem 0 1.2rem 1.2rem;}
body.single-product div.product .woocommerce-Tabs-panel li::marker{color:var(--ah-gold-deep);}
body.single-product div.product .woocommerce-Tabs-panel table.shop_attributes{border:0;}
body.single-product div.product .woocommerce-Tabs-panel table.shop_attributes th,
body.single-product div.product .woocommerce-Tabs-panel table.shop_attributes td{border-color:var(--ah-line-d);background:transparent;padding:.7rem 1rem;}

/* ---------- Related products: homepage section heading + card style ---------- */
body.single-product div.product .related.products{margin-top:clamp(3rem,6vw,5rem);}
body.single-product div.product .related.products > h2{
  text-align:center;font-size:clamp(1.8rem,3.6vw,2.6rem) !important;margin:0 0 2rem;
}
body.single-product div.product .related.products ul.products li.product{
  display:flex;flex-direction:column;border-radius:16px;
}
body.single-product div.product .related.products ul.products li.product .astra-shop-thumbnail-wrap{background:#fff;}
body.single-product div.product .related.products ul.products li.product .ast-woo-product-category{
  display:block;padding:0 1.2rem;margin:.2rem 0 .1rem;opacity:1; /* alpeka-wp fix 4: Astra gives .ast-woo-product-category opacity .6 (~2.0:1 on white); same fix as shop.css 1.4.10 (~4.2:1) */
  font-size:.7rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--ah-gold-deep);
}
body.single-product div.product .related.products ul.products li.product .woocommerce-loop-product__title{
  padding:0 1.2rem;font-size:1.05rem;line-height:1.25;
}
body.single-product div.product .related.products ul.products li.product .price{padding:0 1.2rem;font-size:1.05rem;}

/* ---------- Phone ---------- */
@media (max-width:921px){
  body.single-product div.product .summary{margin-top:1.4rem;}
}
@media (max-width:767px){
  .ah-pp-trust-in{grid-template-columns:repeat(2,1fr);row-gap:1.2rem;}
  /* 3 items (accessories, or a set that is out of stock): one row of 3 instead of 2 + a lone third (2026-12-03, Nick: "Yes have Alpeka-wp make the change") */
  .ah-pp-trust-in[style*="--ah-pp-n:3"]{grid-template-columns:repeat(3,1fr);column-gap:.6rem;}
  .ah-pp-trust-in[style*="--ah-pp-n:3"] .ah-t span{letter-spacing:.06em;}
  body.single-product div.product .woocommerce-tabs ul.tabs{gap:.2rem 1.2rem;}
  body.single-product div.product .woocommerce-tabs ul.tabs li{display:inline-block;width:auto;}
  body.single-product div.product .woocommerce-variation-add-to-cart .single_add_to_cart_button{flex:1 1 auto;}
}

/* ---------- Focus ---------- */
body.single-product div.product :focus-visible,
.ah-pp-trust :focus-visible{outline:3px solid var(--ah-gold);outline-offset:3px;}
/* alpeka-wp fix 2: the quantity pill clips its children's outlines (overflow:hidden) and WooCommerce zeroes the number input's
   outline (.woocommerce-js .quantity input[type="number"]:focus, 0,4,1), so the ring goes on the pill while - / number / + has focus. */
body.single-product div.product form.cart .quantity.buttons_added:has(:focus-visible){outline:3px solid var(--ah-gold);outline-offset:3px;}
/* alpeka-wp fix 3: WooCommerce resets the Clear link's outline (.woocommerce-js div.product form.cart .reset_variations, 0,4,1). */
body.single-product div.product form.cart .reset_variations:focus-visible{outline:3px solid var(--ah-gold);outline-offset:3px;}
