/*
Theme Name: Miss Petty
Theme URI: https://misspetty.com
Author: Miss Petty
Description: Custom WooCommerce theme for Miss Petty — warm minimal skincare storefront with a rotating hero slider.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: misspetty
*/

:root {
  --clay: #B8826A;
  --clay-dark: #8B5A3C;
  --blush: #E8B4B0;
  --cream: #F7F3EE;
  --stone: #EDE8E1;
  --ink: #2B2521;
  --ink-soft: #6B6058;
  --white: #FFFFFF;
  --radius-pill: 999px;
  --radius-card: 4px;
  --side-pad: clamp(24px, 5vw, 80px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Work Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, .ph { display: block; width: 100%; }

h1, h2, h3, .wordmark {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.01em;
}

a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  margin: 0;
  padding: 0 var(--side-pad);
}

/* Placeholder image blocks — swap for real photography */
.ph {
  background: var(--stone);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.03em;
}
.ph.t-blush { background: #EFDAD3; }
.ph.t-clay { background: #E3CBB8; }

/* ---------- Announcement ticker ---------- */
.ticker {
  background: linear-gradient(90deg, var(--blush), var(--clay-dark));
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}
.ticker-track {
  display: inline-block;
  padding-left: 100%;
  animation: scroll 28s linear infinite;
}
.ticker-track span { margin: 0 28px; }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; padding-left: 0; }
}

/* ---------- Header ---------- */
header.site {
  background: var(--cream);
  padding: 22px 0 0;
}
.header-top {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding-bottom: 18px;
}
.wordmark {
  font-size: 30px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay-dark);
}
.header-icons {
  position: absolute;
  right: var(--side-pad);
  top: 0;
  display: flex;
  gap: 20px;
  font-size: 17px;
  color: var(--ink);
}
.header-icons a { color: inherit; }
nav.main {
  border-top: 1px solid rgba(43,37,33,0.08);
  background: var(--stone);
}
nav.main ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 14px 0;
  font-size: 14px;
  font-weight: 500;
  flex-wrap: wrap;
}
nav.main ul ul { display: none; }

/* ---------- Hero slider ---------- */
.hero-slider {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  opacity: 0;
  animation: fadeIn 0.9s ease-out 0.1s forwards;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.slides { position: relative; min-height: 560px; }
.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}
.slide.is-active { opacity: 1; pointer-events: auto; }
.slide.variant-light { background: linear-gradient(120deg, var(--stone) 40%, var(--blush) 130%); }
.slide.variant-dark  { background: linear-gradient(120deg, var(--clay-dark), var(--ink) 140%); }
.slide.variant-clay  { background: linear-gradient(120deg, var(--blush), var(--clay) 130%); }
.slide-copy {
  padding: 60px var(--side-pad);
  max-width: 620px;
}
.slide-copy h1 {
  font-size: 44px;
  line-height: 1.15;
  margin-bottom: 20px;
}
.slide-copy p {
  font-size: 16px;
  max-width: 42ch;
  margin-bottom: 32px;
}
.variant-light .slide-copy h1 { color: var(--ink); }
.variant-light .slide-copy p { color: var(--ink-soft); }
.variant-dark .slide-copy h1,
.variant-clay .slide-copy h1 { color: var(--white); }
.variant-dark .slide-copy p { color: rgba(247,243,238,0.82); }
.variant-clay .slide-copy p { color: rgba(43,37,33,0.75); }
.variant-clay .slide-copy h1 { color: var(--ink); }
.variant-dark .slide-copy .btn { background: var(--cream); color: var(--ink); }
.variant-dark .slide-copy .btn:hover { background: var(--white); }
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.85);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.slider-arrow:hover { background: var(--white); }
.slider-arrow.prev { left: 24px; }
.slider-arrow.next { right: 24px; }
.slider-dots {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255,255,255,0.55);
  cursor: pointer;
  transition: width 0.2s ease, border-radius 0.2s ease;
}
.dot.is-active { width: 22px; border-radius: 4px; background: var(--white); }
@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
}

/* ---------- Off-canvas cart drawer ---------- */
.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(43,37,33,0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 60;
}
.cart-drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(420px, 100%);
  background: var(--white);
  z-index: 61;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 24px rgba(0,0,0,0.08);
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px var(--side-pad) 16px;
  border-bottom: 1px solid rgba(43,37,33,0.08);
  flex-shrink: 0;
}
.cart-drawer-head h2 { font-size: 20px; }
.cart-drawer-close {
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}
.cart-drawer-content { flex: 1; overflow-y: auto; padding: 20px var(--side-pad) 24px; }
.icon-btn { background: none; border: none; font-size: inherit; color: inherit; cursor: pointer; padding: 0; }
.header-cart-icon { position: relative; }

/* Restyle WooCommerce's default mini-cart markup */
.woocommerce-mini-cart { list-style: none; }
.woocommerce-mini-cart-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(43,37,33,0.08);
  position: relative;
}
.woocommerce-mini-cart-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
}
.woocommerce-mini-cart-item a:not(.remove) { font-size: 14px; font-weight: 500; }
.woocommerce-mini-cart-item .quantity { font-size: 13px; color: var(--ink-soft); display: block; margin-top: 4px; }
.woocommerce-mini-cart-item a.remove {
  position: absolute;
  top: 16px;
  right: 0;
  color: var(--ink-soft);
  font-size: 18px;
  text-decoration: none;
  line-height: 1;
}
.woocommerce-mini-cart-item a.remove:hover { color: var(--ink); }
.woocommerce-mini-cart__empty-message { color: var(--ink-soft); font-size: 14px; }
.woocommerce-mini-cart__total {
  display: flex;
  justify-content: space-between;
  font-weight: 500;
  padding-top: 20px;
  margin-top: 12px;
  border-top: 1px solid rgba(43,37,33,0.08);
}
.woocommerce-mini-cart__buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.woocommerce-mini-cart__buttons a {
  display: block;
  text-align: center;
  border-radius: var(--radius-pill);
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 500;
}
.woocommerce-mini-cart__buttons a.button:not(.checkout) {
  background: var(--cream);
  color: var(--ink);
  border: 1px solid rgba(43,37,33,0.14);
}
.woocommerce-mini-cart__buttons a.checkout { background: var(--ink); color: var(--white); }
.woocommerce-mini-cart__buttons a.checkout:hover { background: var(--clay-dark); }

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-pill);
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 500;
  width: fit-content;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--clay-dark); }
.btn.outline {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
}
.btn.outline:hover { background: var(--ink); color: var(--white); }

/* ---------- Section shell ---------- */
section { padding: 80px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
  gap: 24px;
}
.section-head h2 { font-size: 28px; }
.section-head .see-all {
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  white-space: nowrap;
}

/* ---------- Shop by concern ---------- */
.concerns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.concern-tile { position: relative; display: block; }
.concern-tile .ph { aspect-ratio: 3/4; border-radius: var(--radius-card); }
.concern-tile span {
  display: block;
  margin-top: 14px;
  font-size: 15px;
  font-weight: 500;
}

/* ---------- Bestsellers / product grid ---------- */
.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--white);
  border: 1px solid rgba(43,37,33,0.08);
  border-radius: 8px;
  padding: 16px;
}
.product-card .ph,
.product-card img {
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 16px;
}
.product-card h3 {
  font-family: 'Work Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 6px;
}
.product-card .price {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.product-card .price del { opacity: 0.6; margin-right: 6px; }
.product-card .price ins { text-decoration: none; }
.product-card .btn,
.product-card .add_to_cart_button {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--cream);
  color: var(--ink);
  border: 1px solid rgba(43,37,33,0.14);
  border-radius: var(--radius-pill);
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 500;
}
.product-card .btn:hover,
.product-card .add_to_cart_button:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ---------- Editorial / Journal ---------- */
.journal { background: var(--stone); }
.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.journal-card { display: block; }
.journal-card .ph,
.journal-card img { aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-card); margin-bottom: 16px; }
.journal-card p.kicker {
  font-size: 13px;
  color: var(--clay-dark);
  font-weight: 500;
  margin-bottom: 8px;
}
.journal-card h3 { font-size: 19px; margin-bottom: 8px; }
.journal-card .excerpt { font-size: 14px; color: var(--ink-soft); }

/* ---------- Brand story strip ---------- */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}
.story .ph { aspect-ratio: 4/5; border-radius: var(--radius-card); }
.story h2 { font-size: 30px; margin-bottom: 18px; }
.story p { color: var(--ink-soft); font-size: 15px; max-width: 44ch; margin-bottom: 24px; }

/* ---------- Footer ---------- */
footer.site {
  background: var(--ink);
  color: var(--cream);
  padding-top: 64px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(247,243,238,0.15);
}
.footer-top .wordmark { color: var(--cream); font-size: 22px; margin-bottom: 14px; }
.footer-top p { font-size: 14px; color: rgba(247,243,238,0.65); max-width: 32ch; margin-bottom: 20px; }
.newsletter { display: flex; max-width: 340px; }
.newsletter input {
  flex: 1;
  background: transparent;
  border: 1px solid rgba(247,243,238,0.3);
  border-radius: var(--radius-pill) 0 0 var(--radius-pill);
  padding: 12px 18px;
  font-size: 13px;
  color: var(--cream);
}
.newsletter input::placeholder { color: rgba(247,243,238,0.5); }
.newsletter button {
  background: var(--clay);
  color: var(--ink);
  border: none;
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
  padding: 0 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.footer-col h4 { font-size: 13px; font-weight: 600; margin-bottom: 16px; letter-spacing: 0.02em; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: rgba(247,243,238,0.75); }
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 13px;
  color: rgba(247,243,238,0.55);
}
.footer-bottom .socials { display: flex; gap: 16px; }

/* ---------- Promo tile band ---------- */
.promo-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: rgba(43,37,33,0.08); margin: 40px 0; }
.promo-tile {
  background: var(--tile-bg, var(--ink));
  color: var(--tile-text, var(--white));
  padding: 32px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: opacity 0.2s ease;
}
.promo-tile:hover { opacity: 0.92; }
.promo-eyebrow { font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; margin-bottom: 10px; }
.promo-tile h3 { font-size: 22px; color: inherit; margin-bottom: 8px; }
.promo-tile p { font-size: 13px; opacity: 0.85; }

/* ---------- Bestsellers carousel ---------- */
.carousel-controls { display: flex; gap: 8px; }
.carousel-arrow {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(43,37,33,0.16); background: var(--white);
  color: var(--ink); font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.carousel-arrow:hover { background: var(--stone); }
.products-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.products-carousel::-webkit-scrollbar { display: none; }
.carousel-item { flex: 0 0 260px; scroll-snap-align: start; }

/* ---------- Journal card polish ---------- */
.journal-image { position: relative; margin-bottom: 14px; }
.journal-image img, .journal-image .ph { aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-card); }
.journal-badge { position: absolute; top: 10px; left: 10px; background: rgba(255,255,255,0.92); color: var(--ink); }
.journal-meta { font-size: 12px; color: var(--ink-soft); margin-bottom: 8px; }
.journal-link { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 500; color: var(--ink); }
.journal-card:hover .journal-link { color: var(--clay-dark); }

/* ---------- Standalone newsletter band ---------- */
.newsletter-band { background: var(--ink); color: var(--cream); text-align: center; padding: 80px 0; }
.newsletter-band .eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blush); margin-bottom: 14px; }
.newsletter-band h2 { color: var(--cream); font-size: 36px; margin-bottom: 14px; }
.newsletter-band .desc { color: rgba(247,243,238,0.75); max-width: 46ch; margin: 0 auto 32px; }
.newsletter-band-form { display: flex; gap: 10px; max-width: 420px; margin: 0 auto; }
.newsletter-band-form input {
  flex: 1; background: transparent; border: 1px solid rgba(247,243,238,0.3);
  border-radius: var(--radius-pill); padding: 14px 20px; font-size: 14px; color: var(--cream);
}
.newsletter-band-form input::placeholder { color: rgba(247,243,238,0.5); }
.newsletter-band-form button {
  background: var(--cream); color: var(--ink); border: none;
  border-radius: var(--radius-pill); padding: 14px 28px; font-size: 14px; font-weight: 500; cursor: pointer;
}
.newsletter-band-form button:hover { background: var(--white); }
.newsletter-band .fine-print { margin-top: 18px; font-size: 12px; color: rgba(247,243,238,0.5); }

@media (max-width: 760px) {
  .promo-band { grid-template-columns: 1fr; }
  .carousel-item { flex-basis: 200px; }
  .newsletter-band-form { flex-direction: column; }
}

/* ---------- Native WooCommerce product loop (related products, etc.) ----------
   Prefixed with body.woocommerce so specificity beats/matches WooCommerce's
   own woocommerce.css (which scopes everything under .woocommerce ul.products
   li.product) — without this prefix, WooCommerce's default rules win the
   cascade even though ours loads later, and all this styling gets silently
   ignored. */
body.woocommerce ul.products,
body.woocommerce-page ul.products {
  list-style: none !important;
  display: flex !important;
  flex-wrap: wrap !important;
  flex-direction: row !important;
  align-items: stretch !important;
  gap: 28px !important;
  margin: 32px 0 0 !important;
  padding: 0 !important;
  width: 100% !important;
}
body.woocommerce ul.products li.product,
body.woocommerce-page ul.products li.product {
  display: block !important;
  position: static !important;
  float: none !important;
  clear: none !important;
  flex: 0 0 calc((100% - 56px) / 3) !important;
  max-width: calc((100% - 56px) / 3) !important;
  width: calc((100% - 56px) / 3) !important;
  margin: 0 !important;
  background: var(--white) !important;
  border: 1px solid rgba(43,37,33,0.08) !important;
  border-radius: 8px !important;
  padding: 16px !important;
  box-sizing: border-box !important;
}
body.woocommerce ul.products li.product a,
body.woocommerce-page ul.products li.product a { display: block; }
body.woocommerce ul.products li.product img,
body.woocommerce-page ul.products li.product img {
  aspect-ratio: 1/1 !important;
  width: 100% !important;
  height: auto !important;
  object-fit: cover !important;
  border-radius: 4px !important;
  margin-bottom: 16px !important;
}
body.woocommerce ul.products li.product .woocommerce-loop-product__title,
body.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
  font-family: 'Work Sans', sans-serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  margin-bottom: 6px !important;
}
body.woocommerce ul.products li.product .price,
body.woocommerce-page ul.products li.product .price { font-size: 14px; color: var(--ink-soft); display: block; margin-bottom: 16px; }
body.woocommerce ul.products li.product .price del,
body.woocommerce-page ul.products li.product .price del { opacity: 0.6; margin-right: 6px; }
body.woocommerce ul.products li.product .price ins,
body.woocommerce-page ul.products li.product .price ins { text-decoration: none; }
body.woocommerce ul.products li.product a.button,
body.woocommerce ul.products li.product a.add_to_cart_button,
body.woocommerce-page ul.products li.product a.button,
body.woocommerce-page ul.products li.product a.add_to_cart_button {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  background: var(--cream) !important;
  color: var(--ink) !important;
  border: 1px solid rgba(43,37,33,0.14) !important;
  border-radius: var(--radius-pill) !important;
  padding: 14px 24px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}
body.woocommerce ul.products li.product a.button:hover,
body.woocommerce-page ul.products li.product a.button:hover { background: var(--ink) !important; color: var(--white) !important; border-color: var(--ink) !important; }
@media (max-width: 720px) {
  body.woocommerce ul.products li.product, body.woocommerce-page ul.products li.product {
    flex: 0 0 calc((100% - 28px) / 2) !important;
    max-width: calc((100% - 28px) / 2) !important;
    width: calc((100% - 28px) / 2) !important;
  }
}
@media (max-width: 480px) {
  body.woocommerce ul.products li.product, body.woocommerce-page ul.products li.product {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}

/* Same specificity fix for the toolbar's native WooCommerce elements */
body.woocommerce .woocommerce-ordering select.orderby,
body.woocommerce-page .woocommerce-ordering select.orderby {
  appearance: none;
  background: var(--white);
  border: 1px solid rgba(43,37,33,0.14);
  border-radius: var(--radius-pill);
  padding: 10px 36px 10px 18px;
  font-size: 13px;
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%232B2521'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
body.woocommerce p.woocommerce-result-count,
body.woocommerce-page p.woocommerce-result-count { margin: 0; font-size: 14px; color: var(--ink-soft); }



/* ---------- Single product page ---------- */
.product-breadcrumb { padding: 20px 0 0; }
.product-breadcrumb .crumbs { font-size: 13px; color: var(--ink-soft); }
.product-breadcrumb .crumbs a { color: var(--ink-soft); }
.product-breadcrumb .crumbs a:hover { color: var(--ink); }
.product-main { padding: 32px 0 0; }
.product-main-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.product-gallery { position: relative; }
.product-gallery img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 4px; }
.product-gallery-badge { position: absolute; top: 14px; left: 14px; z-index: 1; }
.product-details h1.product_title { font-size: 32px; margin-bottom: 12px; }
.product-details .woocommerce-product-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 13px; color: var(--ink-soft); }
.product-details .star-rating { color: var(--clay); }
.product-details p.price { font-size: 26px; font-family: 'Fraunces', serif; color: var(--ink); margin-bottom: 18px; }
.product-details p.price del { opacity: 0.5; font-size: 18px; margin-right: 10px; }
.product-details p.price ins { text-decoration: none; }
.product-details .woocommerce-product-details__short-description { color: var(--ink-soft); font-size: 15px; line-height: 1.6; margin-bottom: 24px; }
.product-add-to-cart { border-top: 1px solid rgba(43,37,33,0.1); padding-top: 24px; margin-bottom: 24px; }
.product-add-to-cart .quantity { display: inline-flex; border: 1px solid rgba(43,37,33,0.14); border-radius: var(--radius-pill); overflow: hidden; margin-right: 12px; vertical-align: middle; }
.product-add-to-cart .quantity input { width: 56px; border: none; text-align: center; padding: 14px 0; font-size: 14px; font-family: inherit; }
.product-add-to-cart button.single_add_to_cart_button {
  background: var(--ink);
  color: var(--white);
  border: none;
  border-radius: var(--radius-pill);
  padding: 14px 36px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.product-add-to-cart button.single_add_to_cart_button:hover { background: var(--clay-dark); }
.product-assurances { display: flex; flex-direction: column; gap: 12px; padding: 20px 0; border-top: 1px solid rgba(43,37,33,0.1); }
.assurance-item { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-soft); }
.assurance-icon { color: var(--clay-dark); display: flex; }
.product-details .product_meta { font-size: 13px; color: var(--ink-soft); border-top: 1px solid rgba(43,37,33,0.1); padding-top: 16px; }
.product-details .product_meta a { color: var(--ink-soft); text-decoration: underline; }
.product-full-description { max-width: 720px; padding-bottom: 20px; }
.product-full-description h2 { font-size: 26px; margin-bottom: 16px; }
.product-full-description p { color: var(--ink-soft); line-height: 1.7; }

@media (max-width: 760px) {
  .product-main-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Shop / Collection breadcrumb strip ---------- */
.breadcrumb-strip { background: var(--stone); padding: 24px 0; }
.breadcrumb-strip .crumbs { font-size: 13px; color: var(--ink-soft); margin-bottom: 8px; }
.breadcrumb-strip .crumbs a { color: var(--ink-soft); }
.breadcrumb-strip .crumbs a:hover { color: var(--ink); }
.breadcrumb-strip h1 { font-size: 32px; }
.breadcrumb-strip .archive-desc { margin-top: 10px; font-size: 14px; color: var(--ink-soft); max-width: 60ch; }

/* ---------- Shop toolbar ---------- */
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 0 8px; flex-wrap: wrap; }
.toolbar-left { display: flex; align-items: center; gap: 20px; }
.result-count { font-size: 14px; color: var(--ink-soft); }
.filter-trigger {
  display: flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid rgba(43,37,33,0.14);
  border-radius: var(--radius-pill); padding: 10px 20px;
  font-size: 13px; font-weight: 500; cursor: pointer; color: var(--ink);
}
.filter-trigger:hover { background: var(--stone); }
.toolbar-right select {
  appearance: none; background: var(--white); border: 1px solid rgba(43,37,33,0.14);
  border-radius: var(--radius-pill); padding: 10px 36px 10px 18px; font-size: 13px;
  font-family: inherit; color: var(--ink); cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%232B2521'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}

/* ---------- Off-canvas filter drawer (shop/collections) ---------- */
.filter-backdrop { position: fixed; inset: 0; background: rgba(43,37,33,0.45); opacity: 0; pointer-events: none; transition: opacity 0.25s ease; z-index: 60; }
.filter-backdrop.is-open { opacity: 1; pointer-events: auto; }
.filter-drawer {
  position: fixed; top: 0; left: 0; height: 100vh; width: min(360px, 100%);
  background: var(--white); z-index: 61; transform: translateX(-100%);
  transition: transform 0.3s ease; display: flex; flex-direction: column;
  box-shadow: 8px 0 24px rgba(0,0,0,0.08);
}
.filter-drawer.is-open { transform: translateX(0); }
.filter-head { display: flex; justify-content: space-between; align-items: center; padding: 24px 28px 16px; border-bottom: 1px solid rgba(43,37,33,0.08); }
.filter-head h2 { font-size: 20px; }
.filter-close { background: none; border: none; font-size: 26px; cursor: pointer; color: var(--ink); }
.filter-body { flex: 1; overflow-y: auto; padding: 20px 28px; }
.filter-group { margin-bottom: 28px; }
.filter-group h4 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); margin-bottom: 14px; }
.filter-option { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-bottom: 10px; cursor: pointer; }
.filter-option input { accent-color: var(--clay-dark); }
.filter-footer { padding: 16px 28px 24px; border-top: 1px solid rgba(43,37,33,0.08); }
.filter-footer .btn { display: block; width: 100%; text-align: center; }

/* ---------- Pagination ---------- */
.woocommerce-pagination, .pagination { display: flex; justify-content: center; gap: 8px; padding: 40px 0 80px; list-style: none; }
.woocommerce-pagination .page-numbers, .pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; font-size: 14px; color: var(--ink-soft);
}
.woocommerce-pagination .page-numbers.current, .pagination .current { background: var(--ink); color: var(--white); }
.woocommerce-pagination .page-numbers:hover, .pagination a:hover { background: var(--stone); color: var(--ink); }

/* ---------- Generic content fallback (blog/pages) ---------- */
.site-main-fallback { padding: 60px 0; }
.site-main-fallback article { margin-bottom: 48px; }
.site-main-fallback h1 { font-size: 32px; margin-bottom: 16px; }

/* ---------- Pay-later pages (Klarna / Clearpay / PayPal Pay in 3) ---------- */
.payment-hero { padding: 70px 0; }
.payment-hero .inner { max-width: 620px; }
.payment-hero .eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 14px;
}
.payment-hero h1 { font-size: 40px; line-height: 1.15; margin-bottom: 16px; }
.payment-hero p.desc { font-size: 16px; opacity: 0.85; max-width: 46ch; margin-bottom: 28px; }
.payment-hero .disclosure { font-size: 12px; opacity: 0.65; max-width: 60ch; margin-top: 28px; line-height: 1.6; }

.payment-steps { background: var(--cream); padding: 80px 0; }
.payment-steps .eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay-dark);
  margin-bottom: 12px;
}
.payment-steps h2 { font-size: 30px; margin-bottom: 48px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step-icon {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(43,37,33,0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--ink);
}
.step-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.steps-grid h3 { font-size: 19px; margin-bottom: 8px; }
.steps-grid p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }

.pay-later-links { font-size: 12px; color: var(--ink-soft); }
.pay-later-links a { font-weight: 500; color: var(--ink); text-decoration: underline; text-decoration-color: rgba(43,37,33,0.3); text-underline-offset: 2px; }
.pay-later-links a:hover { color: var(--clay-dark); text-decoration-color: var(--clay-dark); }

@media (max-width: 760px) {
  .steps-grid { grid-template-columns: 1fr; gap: 32px; }
  .payment-hero h1 { font-size: 30px; }
}

@media (max-width: 960px) {
  .concerns, .products, .journal-grid, .story, .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-slider, .slides { min-height: 480px; }
  .slide-copy { padding: 40px 24px; max-width: 460px; }
  .slide-copy h1 { font-size: 32px; }
  .story { grid-template-columns: 1fr; }
  nav.main ul { gap: 20px 28px; padding: 14px 24px; }
  .wrap { padding: 0 24px; }
}
@media (max-width: 640px) {
  .concerns, .products, .journal-grid, .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}
