/* Pellanora theme: soft neutral palette, system sans-serif, mobile-first. */

:root {
  --bg: #ffffff;
  --soft: #faf8f5;
  --beige: #f1ece4;
  --sand: #e4dccf;
  --line: #e7e2da;
  --text: #1d1c1a;
  --muted: #67635c;
  --black: #1d1c1a;
  --ok: #3d6b4f;
  --err: #a4402f;
  --radius: 6px;
  --maxw: 1240px;
  --header-h: 64px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--muted); }
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 500; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }
[hidden] { display: none !important; }
.visually-hidden, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--black); color: #fff; padding: 8px 14px; z-index: 200; border-radius: var(--radius); }
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

/* ---------- Buttons & form controls ---------- */
.btn, .button, button.button, input.button, a.button, .woocommerce-Button, .single_add_to_cart_button, .checkout-button, #place_order {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border: 1px solid var(--black); border-radius: var(--radius);
  background: var(--black); color: #fff; font-size: .95rem; font-weight: 500; letter-spacing: .01em; line-height: 1.3;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
  -webkit-appearance: none; appearance: none;
}
.btn:hover, .button:hover, button.button:hover, a.button:hover, .single_add_to_cart_button:hover, .checkout-button:hover, #place_order:hover {
  background: #3a3835; border-color: #3a3835; color: #fff;
}
.btn-outline, .button.alt-outline, .woocommerce-mini-cart__buttons a.button:not(.checkout) {
  background: transparent; color: var(--black);
}
.btn-outline:hover, .woocommerce-mini-cart__buttons a.button:not(.checkout):hover { background: var(--black); color: #fff; border-color: var(--black); }
.button.disabled, .button:disabled, .single_add_to_cart_button.disabled, .single_add_to_cart_button:disabled { opacity: .5; cursor: not-allowed; }
.link-arrow { font-size: .95rem; text-decoration: none; border-bottom: 1px solid var(--black); padding-bottom: 2px; white-space: nowrap; }
.link-arrow:hover { border-color: var(--muted); color: var(--muted); }

label { display: block; font-size: .9rem; font-weight: 500; margin-bottom: 6px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], input[type="search"], textarea, select {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--text); background: #fff;
  border: 1px solid #cfc8bd; border-radius: var(--radius); appearance: none; -webkit-appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%231d1c1a' stroke-width='1.5' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--black); outline-offset: 1px; border-color: var(--black); }
input[type="checkbox"], input[type="radio"] { width: 17px; height: 17px; accent-color: var(--black); margin: 0 8px 0 0; vertical-align: middle; }
.field { margin-bottom: 18px; }
.two-col { display: grid; gap: 0 18px; }
@media (min-width: 560px) { .two-col { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: .85rem; color: var(--muted); }
.form-status { margin-top: 12px; font-size: .95rem; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }
.hp { position: absolute; left: -9999px; }

/* ---------- Announcement bar & header ---------- */
.announce { background: var(--beige); text-align: center; font-size: .82rem; padding: 8px 16px; letter-spacing: .01em; }
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--line); }
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
.header-inner { height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.logo { font-size: 1.15rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; justify-self: center; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; border-radius: 50%; text-decoration: none; padding: 0; }
.icon-btn:hover { background: var(--soft); }
.icon-btn svg { width: 24px; height: 24px; }
.header-actions { display: flex; justify-content: flex-end; align-items: center; }
.menu-btn { justify-self: start; margin-left: -10px; }
.cart-count { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--black); color: #fff; font-size: .7rem; line-height: 18px; text-align: center; font-weight: 600; }
.cart-count[data-count="0"], .cart-count:empty { display: none; }
.desktop-nav { display: none; }

.menu { list-style: none; margin: 0; padding: 0; }

@media (min-width: 960px) {
  .header-inner { grid-template-columns: auto 1fr auto; gap: 40px; }
  .logo { justify-self: start; }
  .menu-btn { display: none; }
  .desktop-nav { display: block; }
  .desktop-nav .menu { display: flex; gap: 6px; }
  .desktop-nav .menu > li { position: relative; }
  .desktop-nav .menu a { display: block; padding: 22px 12px; font-size: .95rem; text-decoration: none; }
  .desktop-nav .menu a:hover { color: var(--muted); }
  .desktop-nav .sub-menu { position: absolute; top: 100%; left: 0; min-width: 250px; background: #fff; border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); padding: 8px 0; box-shadow: 0 14px 30px rgba(29,28,26,.08); display: none; list-style: none; margin: 0; }
  .desktop-nav .menu-item-has-children:hover > .sub-menu,
  .desktop-nav .menu-item-has-children:focus-within > .sub-menu { display: block; }
  .desktop-nav .sub-menu a { padding: 9px 20px; font-size: .92rem; }
  .desktop-nav .sub-menu a:hover { background: var(--soft); color: var(--text); }
}

/* Overlay, mobile navigation, cart drawer */
.overlay { position: fixed; inset: 0; background: rgba(29,28,26,.4); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 80; }
.overlay.show { opacity: 1; pointer-events: auto; }
.mobile-nav { position: fixed; top: 0; bottom: 0; left: 0; width: min(86vw, 360px); background: #fff; z-index: 90; transform: translateX(-100%); transition: transform .25s ease; display: flex; flex-direction: column; overflow-y: auto; }
.mobile-nav.open { transform: none; }
.mobile-nav-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px 8px 20px; border-bottom: 1px solid var(--line); }
.mobile-nav .menu { padding: 8px 0; }
.mobile-nav .menu a { display: block; padding: 13px 20px; text-decoration: none; font-size: 1.02rem; }
.mobile-nav .sub-menu { list-style: none; margin: 0; padding: 0 0 6px 14px; }
.mobile-nav .sub-menu a { font-size: .95rem; padding: 10px 20px; color: var(--muted); }
@media (min-width: 960px) { .mobile-nav { display: none; } }
body.pn-lock { overflow: hidden; }

.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(100vw, 420px); background: #fff; z-index: 90; transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(29,28,26,.08); }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px 8px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 1.1rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px 20px; }
.drawer .widget_shopping_cart_content { display: flex; flex-direction: column; min-height: 100%; }

/* Mini cart (inside the drawer) */
.woocommerce-mini-cart { list-style: none; margin: 0; padding: 0; }
.woocommerce-mini-cart-item { position: relative; display: block; min-height: 100px; padding: 16px 0 16px 94px; border-bottom: 1px solid var(--line); }
.woocommerce-mini-cart-item img { position: absolute; left: 0; top: 16px; width: 76px; aspect-ratio: 4/5; object-fit: cover; background: var(--beige); border-radius: 4px; }
.woocommerce-mini-cart-item a:not(.remove) { font-size: .95rem; font-weight: 500; text-decoration: none; display: block; line-height: 1.35; }
.woocommerce-mini-cart-item a.remove { position: absolute; right: 0; top: 14px; width: 28px; height: 28px; line-height: 26px; text-align: center; font-size: 1.3rem; text-decoration: none; color: var(--muted); border-radius: 50%; }
.woocommerce-mini-cart-item a.remove:hover { background: var(--soft); color: var(--text); }
.woocommerce-mini-cart-item dl.variation { margin: 2px 0 0; font-size: .85rem; color: var(--muted); }
.woocommerce-mini-cart-item dl.variation dt { display: inline; font-weight: 400; }
.woocommerce-mini-cart-item dl.variation dt::after { content: " "; }
.woocommerce-mini-cart-item dl.variation dd { display: inline; margin: 0 8px 0 0; }
.woocommerce-mini-cart-item dl.variation dd p { display: inline; margin: 0; }
.woocommerce-mini-cart-item .quantity { display: block; margin-top: 6px; font-size: .9rem; color: var(--muted); }
.woocommerce-mini-cart__total { display: flex; justify-content: space-between; padding: 16px 0 4px; margin: 0; font-size: 1rem; }
.woocommerce-mini-cart__buttons { display: grid; gap: 10px; margin: 8px 0 0; }
.woocommerce-mini-cart__buttons a.button { width: 100%; }
.woocommerce-mini-cart__empty-message { text-align: center; color: var(--muted); padding: 48px 0; }
.drawer .pn-notice { margin: 12px 0 0; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--black); color: #fff; padding: 12px 20px; border-radius: var(--radius); font-size: .92rem; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 120; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section.soft { background: var(--soft); }
@media (min-width: 768px) { .section { padding: 88px 0; } }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.eyebrow { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }

/* Hero */
.hero { background: var(--beige); }
.hero-grid { display: grid; }
.hero-copy { padding: 40px 0 44px; align-self: center; }
.hero-copy h1 { margin-bottom: 16px; max-width: 14ch; }
.hero-copy p { color: var(--muted); font-size: 1.1rem; max-width: 44ch; margin-bottom: 28px; }
.hero-copy .eyebrow { font-size: .78rem; margin-bottom: 12px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media { order: -1; margin: 0 -20px; }
.hero-media img { width: 100%; aspect-ratio: 4/3.2; object-fit: cover; object-position: 50% 30%; }
@media (min-width: 768px) { .hero-media { margin: 0; } }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 64px; min-height: 640px; }
  .hero-copy { padding: 72px 0; }
  .hero-media { order: 0; }
  .hero-media img { height: 100%; aspect-ratio: auto; object-position: 50% 25%; }
}

/* Value strip */
.values { border-bottom: 1px solid var(--line); }
.values ul { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.values li { font-size: .9rem; display: flex; flex-direction: column; }
.values strong { font-weight: 600; }
.values span { color: var(--muted); }
@media (min-width: 900px) { .values ul { grid-template-columns: repeat(4, 1fr); } }

/* Category cards */
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cat-card { position: relative; display: block; text-decoration: none; overflow: hidden; border-radius: var(--radius); background: var(--beige); aspect-ratio: 4/5; }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cat-card:hover img { transform: scale(1.03); }
.cat-card span { position: absolute; left: 12px; right: 12px; bottom: 12px; background: #fff; padding: 11px 14px; font-size: .92rem; font-weight: 500; border-radius: 4px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cat-card span::after { content: "\2192"; color: var(--muted); }
@media (min-width: 768px) { .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } .cat-card span { font-size: 1rem; left: 16px; right: 16px; bottom: 16px; } }

/* Split block */
.split { display: grid; gap: 32px; align-items: center; }
.split img { border-radius: var(--radius); width: 100%; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } }
.split-copy p { color: var(--muted); max-width: 52ch; }

/* ---------- Product grid & cards (WooCommerce loop) ---------- */
ul.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 14px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 700px) { ul.products { grid-template-columns: repeat(3, 1fr); gap: 36px 20px; } }
@media (min-width: 1100px) { ul.products { grid-template-columns: repeat(4, 1fr); } .shop-main ul.products { grid-template-columns: repeat(3, 1fr); } }
ul.products li.product { margin: 0; padding: 0; width: auto; float: none; }
ul.products li.product a.woocommerce-LoopProduct-link { display: block; text-decoration: none; }
.card-media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--beige); aspect-ratio: 4/5; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s ease, transform .5s ease; }
.card-media img.alt { opacity: 0; }
li.product a:hover .card-media img.alt { opacity: 1; }
li.product a:hover .card-media img.main { transform: scale(1.02); }
.card-cat { font-size: .78rem; color: var(--muted); margin: 12px 0 2px; }
.woocommerce-loop-product__title { font-size: .98rem; font-weight: 500; margin: 0 0 4px; line-height: 1.35; padding: 0; }
li.product .price { display: block; font-size: .95rem; margin: 0; color: var(--text); }
li.product .price del { color: var(--muted); margin-right: 6px; }
li.product .price ins { text-decoration: none; }
.card-colors { font-size: .8rem; color: var(--muted); margin: 2px 0 0; }
.woocommerce-loop-product__link .onsale, .onsale { display: none; }

/* ---------- Inner page header, breadcrumbs ---------- */
.page-head { background: var(--soft); border-bottom: 1px solid var(--line); padding: 40px 0 36px; }
.page-head h1 { margin: 0 0 8px; font-size: clamp(1.8rem, 4.4vw, 2.6rem); }
.page-head p { margin: 0; color: var(--muted); max-width: 60ch; }
.breadcrumbs, .woocommerce-breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span[aria-hidden] { margin: 0 6px; }
.product-wrap > .breadcrumbs { padding-top: 18px; margin-bottom: 18px; }

/* ---------- Shop ---------- */
.shop-layout { display: grid; gap: 24px; padding-top: 28px; padding-bottom: 72px; }
@media (min-width: 900px) { .shop-layout { grid-template-columns: 250px 1fr; gap: 56px; padding-top: 40px; } }
.filter-toggle { display: block; margin-bottom: 4px; }
@media (min-width: 900px) { .filter-toggle { display: none; } }
.filters { display: none; }
.filters.open { display: block; margin-top: 16px; }
@media (min-width: 900px) { .filters { display: block; position: sticky; top: calc(var(--header-h) + 24px); } body.admin-bar .filters { top: calc(var(--header-h) + 56px); } }
.filter-group { border-top: 1px solid var(--line); padding: 18px 0; }
.filter-group:first-child { border-top: 0; padding-top: 0; }
.filter-group h3 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.filter-group ul { list-style: none; margin: 0; padding: 0; }
.filter-group li a { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; text-decoration: none; font-size: .95rem; color: var(--muted); }
.filter-group li a:hover { color: var(--text); }
.filter-group li a.is-active { color: var(--text); font-weight: 600; }
.filter-group .count { color: var(--muted); font-size: .82rem; font-weight: 400; }
.clear-filters { font-size: .9rem; color: var(--muted); }
.shop-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.woocommerce-result-count { color: var(--muted); font-size: .92rem; margin: 0; }
.woocommerce-ordering { margin: 0; }
.woocommerce-ordering select { width: auto; padding: 9px 36px 9px 12px; font-size: .92rem; }
.no-results { text-align: center; padding: 64px 0; color: var(--muted); }
.woocommerce-pagination { margin-top: 40px; text-align: center; }
.woocommerce-pagination ul { list-style: none; display: inline-flex; gap: 6px; padding: 0; margin: 0; }
.woocommerce-pagination .page-numbers { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.woocommerce-pagination .page-numbers.current { background: var(--black); color: #fff; border-color: var(--black); }

/* ---------- Single product ---------- */
.single-product div.product { display: grid; gap: 28px; padding-bottom: 56px; }
@media (min-width: 900px) { .single-product div.product { grid-template-columns: 1.15fr 1fr; gap: 64px; padding-bottom: 80px; } }
.single-product div.product > .related, .single-product div.product > .upsells, .single-product div.product > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-product-gallery { position: relative; margin: 0; }
.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery__image { background: var(--beige); border-radius: var(--radius); overflow: hidden; }
.woocommerce-product-gallery__image img { width: 100%; height: auto; }
.woocommerce-product-gallery__trigger { display: none; }
.flex-control-thumbs { display: flex; gap: 10px; list-style: none; padding: 0; margin: 12px 0 0; overflow-x: auto; }
.flex-control-thumbs li { flex: 0 0 72px; margin: 0; }
.flex-control-thumbs img { width: 72px; aspect-ratio: 4/5; object-fit: cover; border-radius: 4px; border: 1px solid transparent; opacity: .7; cursor: pointer; background: var(--beige); }
.flex-control-thumbs img.flex-active, .flex-control-thumbs img:hover { opacity: 1; border-color: var(--black); }
.summary.entry-summary .product_title { font-size: clamp(1.7rem, 3.4vw, 2.2rem); margin-bottom: 6px; }
.summary .sku { color: var(--muted); font-size: .82rem; margin: 0 0 14px; }
.summary .price { font-size: 1.4rem; margin: 0 0 16px; display: block; }
.summary .price del { color: var(--muted); font-size: 1rem; margin-right: 8px; }
.summary .price ins { text-decoration: none; }
.woocommerce-product-details__short-description { color: var(--muted); }

form.cart { margin: 22px 0 0; }
.variations { width: 100%; border: 0; border-collapse: collapse; margin: 0; }
.variations tbody, .variations tr, .variations th, .variations td { display: block; padding: 0; border: 0; }
.variations tr { margin: 0 0 22px; }
.variations th.label { margin-bottom: 10px; }
.variations th.label label { margin: 0; font-weight: 600; font-size: .92rem; }
.variations td.value { position: relative; }
.pn-native-select { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.reset_variations { display: inline-block; margin-top: 8px; font-size: .85rem; color: var(--muted); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #cfc8bd; padding: 3px; background: #fff; cursor: pointer; }
.swatch i { display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); background: var(--sand); }
.swatch[aria-checked="true"] { border: 2px solid var(--black); padding: 2px; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size { min-width: 52px; padding: 10px 12px; background: #fff; border: 1px solid #cfc8bd; border-radius: var(--radius); cursor: pointer; font-size: .92rem; }
.size:hover { border-color: var(--black); }
.size[aria-checked="true"] { background: var(--black); color: #fff; border-color: var(--black); }
.woocommerce-variation-price, .woocommerce-variation-description { display: none; }
.woocommerce-variation-availability { font-size: .9rem; color: var(--muted); }
.woocommerce-variation-add-to-cart, form.cart:not(.variations_form) { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
.woocommerce-variation-add-to-cart .single_add_to_cart_button, form.cart:not(.variations_form) .single_add_to_cart_button { flex: 1; min-width: 180px; }
.pn-form-error { color: var(--err); font-size: .88rem; margin: 10px 0 0; flex-basis: 100%; }
.quantity { display: inline-flex; align-items: center; border: 1px solid #cfc8bd; border-radius: var(--radius); overflow: hidden; }
.quantity input.qty { width: 46px; padding: 0; border: 0; text-align: center; height: 100%; min-height: 48px; -moz-appearance: textfield; background: transparent; }
.quantity input.qty::-webkit-outer-spin-button, .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.quantity input.qty:focus { outline: 0; }
.quantity .qty-btn { width: 36px; align-self: stretch; background: none; border: 0; cursor: pointer; font-size: 1.1rem; line-height: 1; }
.quantity .qty-btn:hover { background: var(--soft); }
.assurances { list-style: none; margin: 22px 0 0; padding: 0; font-size: .9rem; color: var(--muted); display: grid; gap: 6px; }
.assurances li::before { content: "\2713"; margin-right: 8px; color: var(--black); }
.accordion { margin-top: 28px; border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 500; display: flex; justify-content: space-between; align-items: center; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 1.3rem; font-weight: 300; }
.accordion details[open] summary::after { content: "\2212"; }
.accordion .panel { padding: 0 0 18px; color: var(--muted); font-size: .95rem; }
.accordion .panel ul { margin-bottom: 0; }
.accordion .panel p:last-child { margin-bottom: 0; }
.size-table { width: 100%; border-collapse: collapse; font-size: .88rem; margin: 6px 0 10px; }
.size-table th, .size-table td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); }
.size-table th { color: var(--text); font-weight: 600; }
/* Full-width tinted band without causing horizontal scroll (box-shadow does not add scrollable overflow). */
section.related { grid-column: 1 / -1; position: relative; background: var(--soft); box-shadow: 0 0 0 100vmax var(--soft); clip-path: inset(0 -100vmax); margin: 24px 0 0; padding: 48px 0 56px; }
@media (min-width: 768px) { section.related { padding: 72px 0 80px; } }
section.related > h2 { margin-bottom: 28px; }

/* ---------- Notices ---------- */
.woocommerce-notices-wrapper { margin: 0 0 20px; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .pn-notice {
  list-style: none; margin: 0 0 20px; padding: 14px 18px; border: 1px solid var(--line); border-left: 3px solid var(--black);
  background: var(--soft); border-radius: var(--radius); font-size: .95rem;
}
.woocommerce-error { border-left-color: var(--err); }
.woocommerce-message { border-left-color: var(--ok); }
.woocommerce-message .button, .woocommerce-message a.button { float: right; margin-left: 14px; padding: 8px 16px; font-size: .85rem; }
.woocommerce-error li { margin: 0; }

/* ---------- Cart ---------- */
.woocommerce-cart-form { margin-bottom: 32px; }
table.shop_table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: .95rem; }
table.shop_table th, table.shop_table td { text-align: left; padding: 16px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.shop_table thead th { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--text); }
table.cart img { width: 84px; aspect-ratio: 4/5; object-fit: cover; border-radius: 4px; background: var(--beige); }
table.cart td.product-remove { width: 36px; padding-right: 0; }
table.cart a.remove { display: inline-block; width: 28px; height: 28px; line-height: 26px; text-align: center; font-size: 1.3rem; text-decoration: none; color: var(--muted); border-radius: 50%; }
table.cart a.remove:hover { background: var(--soft); color: var(--text); }
table.cart td.product-name a { font-weight: 500; text-decoration: none; }
table.cart dl.variation { margin: 4px 0 0; font-size: .85rem; color: var(--muted); }
table.cart dl.variation dt { display: inline; font-weight: 400; }
table.cart dl.variation dd { display: inline; margin: 0 10px 0 0; }
table.cart dl.variation dd p { display: inline; margin: 0; }
table.cart td.actions { padding: 20px 0 0; border-bottom: 0; }
.coupon { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.coupon input#coupon_code { width: auto; flex: 1; min-width: 160px; }
.cart-collaterals { display: flex; justify-content: flex-end; }
.cart_totals { width: 100%; max-width: 420px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.cart_totals h2 { font-size: 1.2rem; }
.cart_totals table { margin-bottom: 18px; }
.cart_totals th { width: 40%; color: var(--muted); font-weight: 500; }
.cart_totals .order-total th, .cart_totals .order-total td { font-size: 1.1rem; font-weight: 600; color: var(--text); }
.wc-proceed-to-checkout a.checkout-button { width: 100%; }
.shipping-calculator-button { font-size: .85rem; color: var(--muted); }
#shipping_method { list-style: none; margin: 0; padding: 0; }
#shipping_method li { margin: 0 0 6px; }
#shipping_method label { display: inline; font-weight: 400; }
.cart-empty { text-align: center; padding: 48px 0 16px; color: var(--muted); }
.return-to-shop { text-align: center; }
@media (max-width: 700px) {
  table.shop_table_responsive thead { display: none; }
  table.shop_table_responsive tr { display: block; border-bottom: 1px solid var(--line); padding: 12px 0; position: relative; }
  /* the label comes from the cell's data-title, so the header cell is not needed */
  table.shop_table_responsive tbody th { display: none; }
  table.shop_table_responsive td { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; border: 0; padding: 6px 0; text-align: right; }
  table.shop_table_responsive td::before { content: attr(data-title); font-weight: 600; text-align: left; color: var(--muted); font-size: .85rem; flex: 0 0 auto; padding-top: 2px; }
  table.cart td.product-remove { position: absolute; right: 0; top: 8px; width: auto; padding: 0; }
  table.cart td.product-remove::before, table.cart td.product-thumbnail::before, table.cart td.actions::before, table.cart td.product-name::before { display: none; }
  table.cart td.product-thumbnail { justify-content: flex-start; }
  table.cart td.product-name { display: block; text-align: left; padding-right: 36px; }
  table.cart td.actions { display: block; }
  table.cart tr.cart_item { padding-top: 16px; }
  .coupon { flex-direction: column; }
  .cart_totals { padding: 18px; }
  .cart_totals td { flex-wrap: wrap; }
  .cart_totals #shipping_method { text-align: left; }
}

/* ---------- Checkout & forms ---------- */
form.checkout .col2-set { display: grid; gap: 32px; }
@media (min-width: 900px) { form.checkout { display: grid; grid-template-columns: 1fr 420px; gap: 56px; align-items: start; } form.checkout > .col2-set { grid-column: 1; grid-row: 1 / span 2; } form.checkout #order_review_heading { grid-column: 2; grid-row: 1; margin: 0; } form.checkout #order_review { grid-column: 2; grid-row: 2; } }
form.checkout h3, #order_review_heading { font-size: 1.2rem; margin-bottom: 16px; }
.form-row { margin: 0 0 16px; }
.form-row label { margin-bottom: 6px; }
.form-row .required { color: var(--err); text-decoration: none; }
.form-row-first, .form-row-last { width: 100%; }
@media (min-width: 560px) { .woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; } .woocommerce-billing-fields__field-wrapper .form-row-wide, .woocommerce-shipping-fields__field-wrapper .form-row-wide { grid-column: 1 / -1; } }
.woocommerce-invalid input.input-text, .woocommerce-invalid select { border-color: var(--err); }
#order_review { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.woocommerce-checkout-review-order-table { margin-bottom: 18px; }
.woocommerce-checkout-review-order-table .product-name { font-weight: 500; }
.woocommerce-checkout-review-order-table dl.variation { font-size: .85rem; color: var(--muted); margin: 4px 0 0; }
#payment ul.payment_methods { list-style: none; padding: 0; margin: 0 0 16px; border-top: 1px solid var(--line); }
#payment ul.payment_methods li { padding: 14px 0; border-bottom: 1px solid var(--line); }
#payment ul.payment_methods li label { display: inline; font-weight: 500; }
#payment .payment_box { margin-top: 10px; color: var(--muted); font-size: .9rem; }
#place_order { width: 100%; }
.woocommerce-privacy-policy-text, .woocommerce-terms-and-conditions-wrapper { font-size: .85rem; color: var(--muted); }
.woocommerce-form-login, .woocommerce-form-coupon { margin: 0 0 24px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.woocommerce-form-coupon-toggle { margin: 0 0 16px; }
.select2-container .select2-selection--single { height: 46px; border: 1px solid #cfc8bd; border-radius: var(--radius); }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 44px; padding-left: 14px; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 44px; }
.woocommerce-order-received .woocommerce-order { max-width: 760px; }
ul.woocommerce-order-overview { list-style: none; padding: 0; display: grid; gap: 8px; margin: 0 0 24px; }

/* ---------- Prose / legal / about / contact ---------- */
.prose { max-width: 760px; padding: 44px 0 80px; }
.prose.prose-wide { max-width: none; }
.prose h2 { font-size: 1.4rem; margin: 2em 0 .5em; }
.prose h3 { font-size: 1.1rem; margin: 1.6em 0 .4em; }
.prose > h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #35332f; }
.prose li { margin-bottom: .4em; }
.prose .updated { color: var(--muted); font-size: .9rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.4em; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--soft); font-weight: 600; }
.callout { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 1.5em 0; }
.callout p:last-child { margin: 0; }
.prose-page:has(.about-intro), .prose-page:has(.contact-layout) { max-width: none; }
.about-intro { display: grid; gap: 32px; align-items: center; margin-bottom: 8px; }
@media (min-width: 860px) { .about-intro { grid-template-columns: 1fr 1fr; gap: 72px; } }
.about-media img { border-radius: var(--radius); width: 100%; }
.cards-3 { display: grid; gap: 20px; margin: 8px 0 32px; }
@media (min-width: 768px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.card-plain { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; }
.card-plain h3 { margin: 0 0 6px; }
.card-plain p { color: var(--muted); margin: 0; font-size: .95rem; }
.contact-layout { display: grid; gap: 40px; }
@media (min-width: 860px) { .contact-layout { grid-template-columns: 1.3fr 1fr; gap: 80px; } }
.contact-aside h2 { font-size: 1.2rem; margin-top: 0; }
.contact-aside p { color: var(--muted); }
.contact-form-wrap > p { color: var(--muted); }
.center-page { text-align: center; padding: 96px 0 120px; max-width: 560px; margin: 0 auto; }
.center-page p { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--soft); border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: .92rem; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand .logo { display: inline-block; margin-bottom: 12px; }
.footer-brand p { color: var(--muted); max-width: 38ch; }
.footer-col h3 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; font-weight: 600; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.newsletter { grid-column: 1 / -1; }
.newsletter p { color: var(--muted); font-size: .88rem; margin-bottom: 10px; }
.newsletter .row { display: flex; gap: 8px; max-width: 420px; }
.newsletter input { padding: 10px 12px; font-size: .92rem; }
.newsletter .btn { padding: 10px 18px; font-size: .9rem; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: .84rem; }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 48px; }
  .footer-brand, .newsletter { grid-column: auto; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Fixes found while testing ---------- */
.variations th, .variations td, .variations th.label label { text-align: left; }
.woocommerce-mini-cart .quantity, .woocommerce-mini-cart-item .quantity { display: block; border: 0; border-radius: 0; overflow: visible; margin-top: 6px; font-size: .9rem; color: var(--muted); }
.woocommerce-mini-cart-item .quantity .amount { color: var(--text); }
.woocommerce-checkout-review-order-table th, .woocommerce-checkout-review-order-table td { padding: 12px 8px; }
.woocommerce-checkout-review-order-table dl.variation dt { display: inline; font-weight: 400; }
.woocommerce-checkout-review-order-table dl.variation dd { display: inline; margin: 0 10px 0 0; }
.woocommerce-checkout-review-order-table dl.variation dd p { display: inline; margin: 0; }
.woocommerce-checkout-review-order-table .product-quantity { font-weight: 400; color: var(--muted); }
.woocommerce-checkout-review-order-table #shipping_method li label { font-weight: 400; }
table.cart td.actions { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; justify-content: space-between; }
table.cart td.actions .coupon { flex: 1 1 320px; max-width: 520px; }
table.cart td.actions button[name="update_cart"] { margin-left: auto; }
@media (max-width: 700px) { table.cart td.actions { display: block; } table.cart td.actions button[name="update_cart"] { margin: 12px 0 0; width: 100%; } }
.contact-aside h2 { margin: 1.6em 0 .3em; }
.contact-aside h2:first-child { margin-top: 0; }
.contact-aside p { margin: 0 0 .4em; }
