/* ============================================================
   Convex Lanka — Super Cashew  ·  Inside-pages re-skin
   Loaded on every non-homepage view, on top of design.css.
   Focus: WooCommerce + Astra page content blended into the new design.
   ============================================================ */

/* --- main wrapper: give inside pages the same cream backdrop --- */
body.sc-skin {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* Sticky footer: pin footer.foot to the bottom on short pages. Fixed chrome
     (drawer/mob/overlay/toast) is position:fixed, so it stays out of this flow. */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body.sc-skin > main.sc-main { flex: 1 0 auto; }
body.sc-skin > footer.foot  { flex-shrink: 0; }

/* ===========================================================
   PAGE HERO — every inside page gets the shop-style heading via
   sc_page_head() in header.php. Hide Astra's own in-content page
   title so there is no duplicate <h1> under the hero. Scoped to
   .page / .search / .error404 so product titles are never hidden.
   =========================================================== */
body.sc-skin.page main.sc-main .entry-header,
body.sc-skin.search main.sc-main .page-title,
body.sc-skin.error404 main.sc-main .page-title {
  display: none !important;
}

/* Headings scoped to the content area only. Un-scoped, this repaints the
   footer's .foot h4 (Shop/Company/Support) dark and they vanish on the dark
   footer — same class of bug as the link rule below. */
body.sc-skin main.sc-main h1,
body.sc-skin main.sc-main h2,
body.sc-skin main.sc-main h3,
body.sc-skin main.sc-main h4,
body.sc-skin main.sc-main h5,
body.sc-skin main.sc-main h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--ink);
}

/* Content-area links only. Scoped to main.sc-main so the footer, header/topbar,
   nav, cart drawer and mobile menu keep their own (design.css) colors — otherwise
   this repaints footer links dark-green and they vanish on the dark footer. */
body.sc-skin main.sc-main a:not(.btn):not(.cat-card):not(.brand):not(.add-btn) {
  color: var(--green-700);
  text-decoration: none;
  transition: color .2s ease;
}
body.sc-skin main.sc-main a:not(.btn):not(.cat-card):not(.brand):not(.add-btn):hover { color: var(--green-600); }

/* Buttons keep their design colors regardless */
body.sc-skin a.btn-primary,
body.sc-skin a.btn-gold,
body.sc-skin a.btn-light { color: #fff; }
body.sc-skin a.btn-ghost { color: var(--ink); }
body.sc-skin a.btn-gold { color: var(--green-900); }

main.sc-main {
  padding: 80px 0 100px;
  min-height: 50vh;
}
@media (max-width: 800px) {
  main.sc-main { padding: 48px 0 64px; }
}

/* Constrain Astra/Woo's default containers to our design width */
body.sc-skin main.sc-main .ast-container,
body.sc-skin main.sc-main .site-content > .ast-container,
body.sc-skin main.sc-main .entry-content,
body.sc-skin main.sc-main .ast-woocommerce-container,
body.sc-skin main.sc-main #primary,
body.sc-skin main.sc-main .woocommerce {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
  padding-left: 28px;
  padding-right: 28px;
  box-sizing: border-box;
  width: 100%;
  float: none;
}

/* Hide any leftover Astra header/footer/sidebar/filter chrome.
   Selectors below match what Astra actually renders (id="secondary", class="widget-area",
   no role attribute on the sidebar wrapper). */
body.sc-skin #ast-mobile-header,
body.sc-skin .ast-mobile-header-content,
body.sc-skin #masthead,
body.sc-skin .ast-archive-description,
body.sc-skin > .site-footer,
body.sc-skin .ast-mobile-cart-drawer,
body.sc-skin .site-pre-header,
body.sc-skin .site-above-header-wrap,
body.sc-skin > footer.site-footer,
body.sc-skin > header.site-header,
body.sc-skin div.skip-link,
body.sc-skin .ast-filter-wrap,
body.sc-skin .ast-woocommerce-filter-active,
body.sc-skin .ast-no-of-products,
body.sc-skin #secondary,
body.sc-skin .widget-area.secondary,
body.sc-skin aside.widget-area,
body.sc-skin .woocommerce-products-header,
body.sc-skin .ast-product-gallery-layout-vertical .flex-control-thumbs li:hover img {
  display: none !important;
}

/* Astra might wrap content in #page > .site - hide its own header/footer inside #page */
body.sc-skin #page > header.site-header,
body.sc-skin #page > footer.site-footer,
body.sc-skin .ast-mobile-cart-drawer,
body.sc-skin .ast-mobile-header-wrap,
body.sc-skin .ast-builder-grid-row-container,
body.sc-skin .ast-builder-grid-row-container-inner {
  display: none !important;
}

body.sc-skin #page {
  background: transparent;
  display: block;
}

body.sc-skin .site-content {
  padding: 0;
  background: transparent;
}

/* Astra inner padding */
body.sc-skin #content {
  padding: 0;
}

/* ===========================================================
   Section title row that pages can opt into
   =========================================================== */
.sc-page-head {
  text-align: center;
  margin-bottom: 60px;
}
.sc-page-head .eyebrow { justify-content: center; }
.sc-page-head h1 {
  font-size: clamp(36px, 4.5vw, 60px);
  margin-top: 6px;
}
.sc-page-head p {
  max-width: 640px;
  margin: 20px auto 0;
  color: var(--ink-soft);
  font-size: 17px;
}

/* ===========================================================
   SHOP PAGE — hero head + 2-col layout (sidebar + products)
   =========================================================== */
body.sc-skin .sc-shop-head {
  background: var(--cream-2);
  padding: 70px 28px 60px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
body.sc-skin .sc-shop-head-inner {
  max-width: 760px;
  margin: 0 auto;
}
body.sc-skin .sc-shop-head h1 {
  font-size: clamp(36px, 4.4vw, 58px);
  margin: 6px 0 16px;
  text-transform: capitalize;
}
body.sc-skin .sc-shop-head .lead {
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

body.sc-skin .sc-shop-layout {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 70px 28px 100px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 50px;
  align-items: start;
}
body.sc-skin .sc-shop-layout--full {
  grid-template-columns: 1fr;
}
body.sc-skin .sc-product-page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 60px 28px 100px;
}

@media (max-width: 900px) {
  body.sc-skin .sc-shop-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 50px 28px 80px;
  }
}

/* Reset Astra's wrapper padding inside our grid cells */
body.sc-skin .sc-shop-content #primary,
body.sc-skin .sc-shop-content .ast-woocommerce-container,
body.sc-skin .sc-shop-content #main {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent;
}

/* On shop pages, sc-main has no extra padding (the layout sections own it) */
body.sc-skin.woocommerce-shop main.sc-main,
body.sc-skin.tax-product_cat main.sc-main,
body.sc-skin.single-product main.sc-main {
  padding: 0;
}

/* ===========================================================
   SHOP FILTER SIDEBAR
   =========================================================== */
.sc-shop-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (max-width: 900px) {
  .sc-shop-sidebar { position: static; }
}

.sc-filter {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sc-filter-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 22px 24px;
}
.sc-filter-card h3 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 14px;
}

/* Search */
.sc-filter-search {
  position: relative;
  display: flex;
  align-items: center;
}
.sc-filter-search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 46px 12px 16px;
  font-size: 14.5px;
  font-family: var(--font-body);
  background: #fff;
  transition: border-color .2s ease;
}
.sc-filter-search input:focus {
  outline: none;
  border-color: var(--green-500);
}
.sc-filter-search button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green-700);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s ease;
}
.sc-filter-search button:hover { background: var(--green-800); }

/* Categories list */
.sc-filter-cats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sc-filter-cats a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  border-radius: 12px;
  color: var(--ink) !important;
  font-size: 14.5px;
  transition: background .15s ease, color .15s ease;
}
.sc-filter-cats a:hover {
  background: var(--cream-2);
  color: var(--green-700) !important;
}
.sc-filter-cats a.is-active {
  background: var(--green-700);
  color: #fff !important;
}
.sc-filter-cats a.is-active .ct {
  background: rgba(255,255,255,0.18);
  color: #fff;
}
.sc-filter-cats .ct {
  background: var(--cream-2);
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  min-width: 24px;
  text-align: center;
}

/* Price inputs */
.sc-filter-price {
  display: flex;
  align-items: end;
  gap: 10px;
}
.sc-filter-price label {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sc-filter-price label span {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}
.sc-filter-price input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  background: #fff;
  font-family: var(--font-body);
  -moz-appearance: textfield;
}
.sc-filter-price input::-webkit-outer-spin-button,
.sc-filter-price input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sc-filter-price input:focus { outline: none; border-color: var(--green-500); }
.sc-filter-price-sep {
  padding-bottom: 10px;
  color: var(--ink-soft);
}
.sc-filter-hint {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-soft);
}

/* Sort radios */
.sc-filter-sort {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sc-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14.5px;
  transition: background .15s ease;
}
.sc-radio:hover { background: var(--cream-2); }
.sc-radio input {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  margin: 0;
  cursor: pointer;
  position: relative;
  transition: border-color .15s ease;
}
.sc-radio input:checked {
  border-color: var(--green-700);
  background: var(--green-700);
}
.sc-radio input:checked::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #fff;
}

/* Sale toggle (custom pill checkbox) */
.sc-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 14.5px;
}
.sc-toggle input { display: none; }
.sc-toggle-pill {
  position: relative;
  width: 38px;
  height: 22px;
  background: var(--cream-3);
  border-radius: 999px;
  transition: background .2s ease;
  flex: none;
}
.sc-toggle-pill::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  transition: transform .2s ease;
}
.sc-toggle input:checked + .sc-toggle-pill {
  background: var(--green-700);
}
.sc-toggle input:checked + .sc-toggle-pill::after {
  transform: translateX(16px);
}

/* Apply filters row */
.sc-filter-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-top: 4px;
}
.sc-filter-actions .btn {
  width: 100%;
  justify-content: center;
}
.sc-filter-clear {
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft) !important;
  padding: 6px;
  text-decoration: underline;
}
.sc-filter-clear:hover { color: var(--green-700) !important; }

/* ===========================================================
   WooCommerce — shop archive
   =========================================================== */
.woocommerce-products-header { display: none; }

.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  list-style: none;
  margin: 0 0 50px;
  padding: 0;
}
@media (min-width: 1500px) {
  /* On extra-wide screens we have room for 4 cards next to the sidebar */
  body.sc-skin .sc-shop-content .woocommerce ul.products { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1100px) {
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (max-width: 600px) {
  .woocommerce ul.products { grid-template-columns: 1fr; }
}

.woocommerce ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex;
  flex-direction: column;
}
.woocommerce ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
  border-color: var(--green-300);
}

.woocommerce ul.products li.product .astra-shop-thumbnail-wrap {
  background: var(--cream-2);
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.woocommerce ul.products li.product img {
  width: 78%;
  height: auto;
  max-height: 78%;
  object-fit: contain;
  margin: 0 auto;
  transition: transform .35s ease;
}
.woocommerce ul.products li.product:hover img { transform: scale(1.06); }

.woocommerce ul.products li.product .astra-shop-summary-wrap {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.woocommerce ul.products li.product .ast-woo-product-category {
  font-family: var(--font-body);
  font-size: 11.5px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--green-700);
  font-weight: 600;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2.woocommerce-loop-product__title {
  font-family: var(--font-display) !important;
  font-size: 19px !important;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  padding: 0;
  line-height: 1.3;
}

.woocommerce ul.products li.product .price {
  color: var(--green-700);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  margin-top: 4px;
}
.woocommerce ul.products li.product .price .woocommerce-Price-currencySymbol {
  font-weight: 600;
  margin-right: 2px;
}

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart {
  background: var(--green-700);
  color: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
  border: none;
  margin-top: 12px;
  display: inline-block;
  transition: background .2s ease, transform .2s ease;
}
.woocommerce ul.products li.product .button:hover {
  background: var(--green-800);
  transform: translateY(-1px);
}

/* ===========================================================
   WooCommerce — single product page
   =========================================================== */
.woocommerce div.product {
  display: grid;
  /* minmax(0,1fr) lets tracks shrink below the image's intrinsic width —
     without it a large gallery image forces the column (and the whole row)
     wider than the viewport, causing horizontal overflow on tablet/mobile. */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px 56px;
  align-items: start;
}
@media (max-width: 900px) {
  .woocommerce div.product { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

/* Only the gallery + summary belong in the 2-col grid. WooCommerce also drops
   the description tabs, related products and up-sells in here as direct grid
   children — force those to span the full width and stack below, instead of
   being crammed into a half-width column. */
.woocommerce div.product > .woocommerce-tabs,
.woocommerce div.product > .related,
.woocommerce div.product > .upsells,
.woocommerce div.product > .up-sells,
.woocommerce div.product > .woocommerce-product-gallery + .summary ~ *:not(.summary) {
  grid-column: 1 / -1;
}

.woocommerce div.product .woocommerce-product-gallery {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 24px;
  width: 100% !important;
  max-width: 100%;
  float: none !important;
  box-sizing: border-box;
  margin: 0;
}
.woocommerce div.product .woocommerce-product-gallery__wrapper,
.woocommerce div.product .woocommerce-product-gallery__image { width: 100%; margin: 0; }
/* Uniform square image on EVERY product page — object-fit:contain keeps any
   aspect ratio centred on the paper backdrop, so all products align identically. */
.woocommerce div.product .woocommerce-product-gallery img,
.woocommerce div.product .woocommerce-product-gallery .wp-post-image {
  width: 100% !important;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: calc(var(--radius) - 16px);
}

/* ---- Sale / product badge (consistent on shop cards + single product) ---- */
.woocommerce span.onsale,
.woocommerce ul.products li.product .onsale,
.woocommerce div.product .onsale {
  position: absolute;
  top: 14px;
  left: 14px;
  right: auto;
  margin: 0;
  min-width: 0;
  min-height: 0;
  padding: 6px 14px;
  background: var(--cashew-500);
  color: var(--green-900);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  z-index: 6;
}

.woocommerce div.product .summary {
  width: 100% !important;
  float: none !important;
}

.woocommerce div.product .product_title,
.woocommerce div.product h1.product_title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.1;
  margin: 0 0 18px;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--green-700);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 22px;
}

.woocommerce div.product .woocommerce-product-details__short-description {
  color: var(--ink-soft);
  margin-bottom: 24px;
  font-size: 16.5px;
}

.woocommerce div.product form.cart {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.woocommerce div.product form.cart .quantity {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
}
.woocommerce div.product form.cart .quantity input.qty {
  width: 56px;
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  color: var(--ink);
}

.woocommerce div.product form.cart .button,
.woocommerce div.product .single_add_to_cart_button {
  background: var(--green-700) !important;
  color: #fff !important;
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: .04em !important;
  padding: 16px 32px !important;
  border-radius: 999px !important;
  border: none !important;
  float: none !important;
  cursor: pointer;
  text-transform: uppercase;
  transition: background .2s ease, transform .2s ease;
}
.woocommerce div.product form.cart .button:hover,
.woocommerce div.product .single_add_to_cart_button:hover {
  background: var(--green-800) !important;
  transform: translateY(-1px);
}

.woocommerce div.product .product_meta {
  font-size: 14px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

/* Tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs {
  padding-left: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before {
  display: none;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: transparent;
  border: none;
  border-radius: 0;
  margin: 0 24px 0 0;
  padding: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 12px 0;
  display: inline-block;
  border-bottom: 2px solid transparent;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
  color: var(--green-700);
  border-bottom-color: var(--green-700);
}

/* Responsive video / oembed (YouTube etc.) inside product description & content.
   Without this the raw 1200px embed overflows / gets clipped on tablet + mobile. */
body.sc-skin .ast-oembed-container,
body.sc-skin .wp-block-embed__wrapper,
body.sc-skin .wp-video,
body.sc-skin .entry-content iframe,
body.sc-skin .woocommerce-Tabs-panel iframe { max-width: 100%; }

body.sc-skin .ast-oembed-container iframe,
body.sc-skin .wp-block-embed iframe,
body.sc-skin .woocommerce-Tabs-panel iframe,
body.sc-skin .woocommerce-product-details__short-description iframe,
body.sc-skin .entry-content > iframe {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: 14px;
  display: block;
}
body.sc-skin .ast-oembed-container { margin: 8px 0; }

/* Any stray media in content never overflows */
body.sc-skin .entry-content img,
body.sc-skin .woocommerce-Tabs-panel img,
body.sc-skin table { max-width: 100%; height: auto; }

/* Related products */
.woocommerce .related > h2,
.woocommerce .upsells > h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  margin: 64px 0 30px;
}
/* Related/up-sell product grids reuse the archive card grid */
.woocommerce .related ul.products,
.woocommerce .upsells ul.products {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1100px) {
  .woocommerce .related ul.products,
  .woocommerce .upsells ul.products { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 780px) {
  .woocommerce .related ul.products,
  .woocommerce .upsells ul.products { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Product page: tablet + mobile polish ---- */
@media (max-width: 600px) {
  body.sc-skin .sc-product-page { padding: 34px 18px 70px; }
  .woocommerce div.product .woocommerce-product-gallery { padding: 16px; }
  /* Tabs: let them scroll horizontally instead of wrapping into a tall stack */
  .woocommerce div.product .woocommerce-tabs ul.tabs {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .woocommerce div.product .woocommerce-tabs ul.tabs::-webkit-scrollbar { display: none; }
  .woocommerce div.product .woocommerce-tabs ul.tabs li { margin: 0; white-space: nowrap; }
  /* Add-to-cart row: quantity + full-width button */
  .woocommerce div.product form.cart { gap: 12px; }
  .woocommerce div.product form.cart .quantity { flex: 0 0 auto; }
  .woocommerce div.product form.cart .button,
  .woocommerce div.product .single_add_to_cart_button {
    flex: 1 1 auto;
    width: 100%;
    text-align: center;
    padding: 15px 20px !important;
  }
  .woocommerce .related ul.products,
  .woocommerce .upsells ul.products { grid-template-columns: 1fr; }
}

/* ===========================================================
   WooCommerce — Cart + Checkout
   =========================================================== */
.woocommerce-cart .cart-collaterals,
.woocommerce-cart table.shop_table,
.woocommerce-checkout form,
.woocommerce-checkout .woocommerce-checkout-review-order {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.woocommerce table.shop_table {
  border-collapse: separate;
  border-spacing: 0;
}
.woocommerce table.shop_table th {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
}
.woocommerce table.shop_table td {
  padding: 18px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.woocommerce .cart-collaterals .cart_totals h2,
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 14px;
}

.woocommerce form .form-row label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  display: block;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  border-radius: 12px !important;
  border: 1px solid var(--line) !important;
  padding: 12px 14px !important;
  font-size: 15px !important;
  font-family: var(--font-body) !important;
  background: #fff !important;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce-page a.button,
.woocommerce #respond input#submit,
.woocommerce #place_order,
.woocommerce button.button.alt {
  background: var(--green-700) !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 14px 28px !important;
  font-family: var(--font-body) !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  letter-spacing: .04em !important;
  text-transform: uppercase;
  border: none !important;
  transition: background .2s ease, transform .2s ease;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce-page a.button:hover,
.woocommerce #place_order:hover {
  background: var(--green-800) !important;
  transform: translateY(-1px);
}

/* Notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  background: var(--paper) !important;
  border-top: 3px solid var(--green-700) !important;
  border-radius: 12px;
  color: var(--ink) !important;
  font-family: var(--font-body) !important;
  padding: 18px 22px !important;
}
.woocommerce-message::before { color: var(--green-700) !important; }

/* Breadcrumbs */
.woocommerce-breadcrumb {
  color: var(--ink-soft);
  font-size: 13.5px;
  margin-bottom: 30px;
}
.woocommerce-breadcrumb a {
  color: var(--green-700);
}

/* Page title fallback (used by some Astra layouts) */
body.sc-skin h1.entry-title,
body.sc-skin .ast-archive-title {
  font-family: var(--font-display) !important;
  font-size: clamp(34px, 4vw, 56px) !important;
  margin-bottom: 24px;
}

/* Sidebar / inner page rhythm */
body.sc-skin .entry-content > * + * {
  margin-top: 22px;
}
body.sc-skin .entry-content p {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.7;
}

/* ---------------------------------------------------------------------------
   Product description tab — consistent spacing at ANY nesting depth.
   Some descriptions were pasted wrapped in a <div> (Claude.ai chunk wrapper),
   which broke the `.entry-content > * + *` direct-child rhythm and rendered
   cramped. These descendant rules normalise every product uniformly.
--------------------------------------------------------------------------- */
body.sc-skin #tab-description > * + *,
body.sc-skin #tab-description [class*="chunkWrapper"] { margin-top: 0; }        /* disable the owl / unwrap */
body.sc-skin #tab-description [class*="chunkWrapper"] { display: block; }

body.sc-skin #tab-description p,
body.sc-skin #tab-description ul,
body.sc-skin #tab-description ol,
body.sc-skin .woocommerce-product-details__short-description p {
  margin: 0 0 1.05em;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.7;
}
body.sc-skin #tab-description h1,
body.sc-skin #tab-description h2,
body.sc-skin #tab-description h3,
body.sc-skin #tab-description h4 {
  margin: 1.7em 0 .55em;
  line-height: 1.3;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--green-900);
}
body.sc-skin #tab-description h1 { font-size: 28px; }
body.sc-skin #tab-description h2 { font-size: 24px; }
body.sc-skin #tab-description h3 { font-size: 20px; }
body.sc-skin #tab-description h4 { font-size: 18.5px; }
body.sc-skin #tab-description ul,
body.sc-skin #tab-description ol { padding-left: 1.4em; }
body.sc-skin #tab-description li { margin: 0 0 .45em; line-height: 1.6; }
body.sc-skin #tab-description strong { color: var(--green-900); }
body.sc-skin #tab-description > *:first-child,
body.sc-skin #tab-description [class*="chunkWrapper"] > *:first-child { margin-top: 0; }

/* Forms outside of Woo (CF7 etc) */
body.sc-skin input[type="text"],
body.sc-skin input[type="email"],
body.sc-skin input[type="tel"],
body.sc-skin textarea,
body.sc-skin select {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  background: #fff;
  font-family: var(--font-body);
}
body.sc-skin button[type="submit"]:not(.btn) {
  background: var(--green-700);
  color: #fff;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
}

/* ---------------------------------------------------------------------------
   Primary logo sizing on inside pages. Astra's parent style.css loads after
   design.css here and resets the img to its natural size, so we force the
   header/footer logo dimensions with higher specificity + !important.
--------------------------------------------------------------------------- */
body.sc-skin header.nav .brand-logo,
body.sc-skin .nav .brand .brand-logo { height: 54px !important; width: auto !important; }
body.sc-skin .foot .brand-logo       { height: 78px !important; width: auto !important; }
body.sc-skin .nav.scrolled .brand-logo { height: 46px !important; }
@media (max-width: 600px) {
  body.sc-skin header.nav .brand-logo,
  body.sc-skin .nav .brand .brand-logo { height: 42px !important; }
  body.sc-skin .foot .brand-logo       { height: 64px !important; }
}

/* ===========================================================
   CONTENT PAGES — comfortable, centered reading column + rhythm.
   Standard pages (Shipping, Privacy, Terms, FAQ, About, etc.).
   The body content was stretching to the full 1240px container and
   sitting left-aligned under the centered hero; constrain it to a
   readable measure so every page reads cleanly. Shop and single
   products keep their own wider layouts (not .page).
   =========================================================== */
body.sc-skin.page main.sc-main .entry-content,
body.sc-skin.single-post main.sc-main .entry-content {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}
/* Balanced breathing room between the hero, the content and the footer.
   main.sc-main carries id="content", which the Astra reset zeroes with
   `#content{padding:0}` (ID specificity) — so this must include #content to
   win, otherwise the content sits flush against the hero. */
body.sc-skin.page main.sc-main#content,
body.sc-skin.single-post main.sc-main#content {
  padding-top: 64px;
  padding-bottom: 96px;
}
body.sc-skin.page main.sc-main .entry-content > :first-child {
  margin-top: 0;
}

/* Section headings within page content */
body.sc-skin.page main.sc-main .entry-content h2,
body.sc-skin.page main.sc-main .entry-content h3,
body.sc-skin.page main.sc-main .entry-content h4 {
  margin-top: 40px;
  margin-bottom: 12px;
  line-height: 1.2;
  color: var(--green-900);
}
body.sc-skin.page main.sc-main .entry-content h2 { font-size: clamp(23px, 2.3vw, 29px); }
body.sc-skin.page main.sc-main .entry-content h3 { font-size: clamp(19px, 1.9vw, 23px); }
body.sc-skin.page main.sc-main .entry-content h4 { font-size: 18px; }

/* Paragraphs, lists, emphasis */
body.sc-skin.page main.sc-main .entry-content p {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.75;
}
body.sc-skin.page main.sc-main .entry-content ul,
body.sc-skin.page main.sc-main .entry-content ol {
  padding-left: 1.35em;
  margin-top: 14px;
}
body.sc-skin.page main.sc-main .entry-content li {
  margin: 0 0 .5em;
  line-height: 1.65;
  color: var(--ink);
}
body.sc-skin.page main.sc-main .entry-content li::marker { color: var(--green-600); }
body.sc-skin.page main.sc-main .entry-content strong { color: var(--green-900); }
body.sc-skin.page main.sc-main .entry-content a { text-decoration: underline; text-underline-offset: 2px; }
