/* Shop (WooCommerce) in GRAND colours: navy buttons, sand accents, Montserrat, square corners. Loaded only on shop pages. */
.woocommerce, .woocommerce-page { font-family: var(--font); }
.wc-page .breadcrumbs { margin-bottom: 8px; }
.wc-single { padding-top: 28px; }
.wc-intro { max-width: 70ch; }
.chips--sub { margin-top: 10px; }
.chip[aria-current="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip[aria-current="true"] small { color: rgba(255,255,255,.7); }

/* Buttons */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt, .wc-block-components-button:not(.is-link) {
  background: var(--navy); color: #fff; border-radius: var(--radius); font-weight: 500; font-size: .74rem; letter-spacing: .12em;
  text-transform: uppercase; padding: 14px 22px; line-height: 1.2; border: 0; }
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover,
.wc-block-components-button:not(.is-link):hover { background: var(--navy-2); color: #fff; }
.woocommerce a.added_to_cart { display: block; margin-top: 8px; font-size: .78rem; color: var(--navy); text-decoration: underline; }

/* Product grid */
.woocommerce ul.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 28px 20px; margin: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; display: flex; flex-direction: column; border: 1px solid var(--line); background: #fff; padding: 16px; transition: border-color .2s; }
.woocommerce ul.products li.product:hover { border-color: var(--sand); }
.woocommerce ul.products li.product a img { aspect-ratio: 1; object-fit: contain; background: #fff; margin: 0 0 14px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: .92rem; font-weight: 500; color: var(--ink); padding: 0; margin-bottom: 8px; line-height: 1.35; }
.woocommerce ul.products li.product .price { color: var(--ink); font-size: 1rem; font-weight: 500; margin-top: auto; }
.woocommerce ul.products li.product .button { margin-top: 12px; align-self: flex-start; }
.woocommerce span.onsale { background: var(--sand); border-radius: 0; min-height: 0; min-width: 0; line-height: 1; padding: 8px 10px; font-weight: 500; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; top: 12px; left: 12px; }
.woocommerce ul.products li.product .onsale { margin: 0; }
.woocommerce .price del { color: var(--muted); font-weight: 400; }
.woocommerce .price ins { text-decoration: none; }
.woocommerce .woocommerce-result-count { color: var(--muted); font-size: .82rem; }
.woocommerce .woocommerce-ordering select { border: 1px solid var(--line); padding: 10px 12px; font: inherit; font-size: .84rem; background: #fff; }
.woocommerce nav.woocommerce-pagination ul { border: 0; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; margin: 0 4px; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { border: 1px solid var(--line); padding: 10px 14px; }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Product page */
.woocommerce div.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px clamp(32px, 5vw, 72px); align-items: start; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { width: auto; float: none; margin: 0; }
.woocommerce div.product .woocommerce-tabs, .woocommerce div.product .related, .woocommerce div.product .upsells { grid-column: 1 / -1; }
.woocommerce div.product div.images img { background: #fff; }
.woocommerce div.product div.images .flex-control-thumbs li { width: 20%; padding: 4px; }
.woocommerce div.product .product_title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 0 0 14px; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ink); font-size: 1.6rem; font-weight: 500; }
.woocommerce div.product .woocommerce-product-details__short-description { font-size: .95rem; line-height: 1.7; }
.woocommerce div.product form.cart { display: flex; gap: 12px; align-items: stretch; margin: 24px 0; }
.woocommerce div.product form.cart div.quantity { margin: 0; }
.woocommerce .quantity .qty { width: 72px; height: 100%; min-height: 46px; border: 1px solid var(--line); font: inherit; }
.woocommerce div.product .stock { color: var(--ok); font-size: .86rem; }
.woocommerce div.product .stock.out-of-stock { color: var(--warn); }
.woocommerce .product_meta { font-size: .8rem; color: var(--muted); display: grid; gap: 4px; padding-top: 18px; border-top: 1px solid var(--line); }
.woocommerce .product_meta a { color: var(--navy); }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin: 24px 0 0; border-bottom: 1px solid var(--line); }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: none; border: 0; border-radius: 0; margin: 0 24px 0 0; padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 14px 0; font-size: .76rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-bottom: 2px solid var(--navy); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--ink); }
.woocommerce div.product .woocommerce-tabs .panel { max-width: 860px; padding-top: 24px; }
.woocommerce div.product .woocommerce-tabs .panel > h2:first-child { display: none; }
.woocommerce div.product .woocommerce-tabs .panel img { height: auto; }
.related > h2 { font-size: 1.3rem; margin: 40px 0 20px; }
@media (max-width: 860px) { .woocommerce div.product { grid-template-columns: 1fr; } }

/* Notices, forms, cart and checkout */
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-top-color: var(--navy); background: var(--paper); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--navy); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { border: 1px solid var(--line); padding: 12px; border-radius: 0; font: inherit; }
.woocommerce table.shop_table { border-radius: 0; }
.content .wp-block-woocommerce-cart, .content .wp-block-woocommerce-checkout { margin-top: 24px; }

/* ---------- Product description (.pd): lead, key numbers, feature cards, specs, box contents, FAQ ----------
   Clean HTML written in wp-admin (classes pd-*). Scroll reveal from assets/js/product.js: without JS everything is visible. */
.woocommerce div.product .woocommerce-tabs .panel:has(.pd) { max-width: none; }
.pd { --pd-gap: clamp(40px, 6vw, 72px); max-width: 1120px; color: var(--text); }
.pd > * + * { margin-top: var(--pd-gap); }
.pd p { font-size: 1rem; line-height: 1.75; }
.pd-lead { position: relative; max-width: 62ch; margin: 0; padding-left: 28px; font-size: clamp(1.15rem, 2vw, 1.45rem) !important; line-height: 1.55 !important; font-weight: 300; color: var(--ink); }
.pd-lead::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 2px; background: linear-gradient(var(--sand), var(--navy)); transform-origin: top; }
.pd-text { max-width: 72ch; }
.pd-text p:last-child { margin-bottom: 0; }
.pd-h { display: flex; align-items: center; gap: 16px; margin: 0 0 22px; font-size: .74rem; font-weight: 500; letter-spacing: var(--track); text-transform: uppercase; color: var(--sand-text); }
.pd-h::before { content: ""; width: 40px; height: 1px; background: var(--sand); transform-origin: left; }
.pd-sec > .pd-h + * { margin-top: 0; }

/* Key numbers on a navy band */
.pd-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.pd-stats::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.08) 50%, transparent 70%); transform: translateX(-100%); pointer-events: none; }
.pd-stats > div { padding: clamp(22px, 3vw, 34px) clamp(18px, 2.4vw, 30px); border-left: 1px solid rgba(255,255,255,.12); }
.pd-stats > div:first-child { border-left: 0; }
.pd-stats b { display: block; font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 300; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pd-stats b small { font-size: .45em; font-weight: 400; margin-left: 4px; color: var(--sand-2); letter-spacing: 0; }
.pd-stats span { display: block; margin-top: 10px; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sand-2); }

/* Feature cards with numbers */
/* Lines belong to the cards (not a grey grid behind them), so nothing shows before the cards fade in. */
.pd-features { list-style: none; margin: 0; padding: 0 1px 1px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); counter-reset: pd; }
.pd-features > li { counter-increment: pd; position: relative; background: #fff; padding: 30px 28px 28px; border: 1px solid var(--line); margin: 0 -1px -1px 0; transition: background .4s var(--ease); }
.pd-features > li::before { content: counter(pd, decimal-leading-zero); display: block; margin-bottom: 18px; font-size: .72rem; font-weight: 500; letter-spacing: .14em; color: var(--sand-text); }
.pd-features > li::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.pd-features > li:hover { background: var(--paper); }
.pd-features > li:hover::after { transform: scaleX(1); }
.pd-features h3 { font-size: 1.02rem; font-weight: 500; margin: 0 0 8px; color: var(--ink); line-height: 1.3; }
.pd-features p { margin: 0; font-size: .92rem; line-height: 1.65; color: #4b5563; }

/* Specification table */
.pd-specs { width: 100%; border-collapse: collapse; font-size: .92rem; }
.pd-specs th, .pd-specs td { padding: 14px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.pd-specs th { width: 42%; padding-right: 24px; font-weight: 400; color: var(--muted); }
.pd-specs td { color: var(--ink); font-weight: 500; }
.pd-specs tr { transition: background .25s; }
.pd-specs tr:hover { background: linear-gradient(90deg, var(--paper), transparent); }
.pd-specs tr.pd-group th { padding-top: 26px; color: var(--sand-text); font-size: .7rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; border-bottom-color: var(--sand-2); }

/* Box contents and short lists */
.pd-box { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px 32px; }
.pd-box li { position: relative; padding: 10px 0 10px 30px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.pd-box li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 12px; height: 6px; border-left: 1.5px solid var(--navy); border-bottom: 1.5px solid var(--navy); transform: rotate(-45deg); }

/* Two columns: text + side card */
.pd-split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.pd-card { background: var(--paper); padding: 28px; border-top: 2px solid var(--sand); }
.pd-card .pd-h { margin-bottom: 14px; }
.pd-card ul { margin: 0; padding-left: 18px; }
.pd-card li { margin: 6px 0; font-size: .92rem; }
@media (max-width: 760px) { .pd-split { grid-template-columns: 1fr; } }

/* FAQ */
.pd-faq { border-top: 1px solid var(--line); }
.pd-faq details { border-bottom: 1px solid var(--line); }
.pd-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; font-weight: 500; color: var(--ink); }
.pd-faq summary::-webkit-details-marker { display: none; }
.pd-faq summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-top: 6px; border-right: 1.5px solid var(--navy); border-bottom: 1.5px solid var(--navy); transform: rotate(45deg); transition: transform .35s var(--ease); }
.pd-faq details[open] summary::after { transform: rotate(-135deg); }
.pd-faq details > p { margin: 0 0 18px; color: #4b5563; font-size: .95rem; }
.pd-faq details[open] > p { animation: pd-drop .4s var(--ease); }
.pd-note { font-size: .82rem !important; color: var(--muted); border-left: 2px solid var(--line); padding-left: 14px; }

/* Scroll reveal (only when product.js marked the page; reduced motion = no movement) */
.pd-js .pd-r { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.pd-js .pd-r.is-in { opacity: 1; transform: none; }
.pd-js .pd-h::before { transform: scaleX(0); transition: transform .9s var(--ease) .15s; }
.pd-js .is-in .pd-h::before, .pd-js .pd-h.is-in::before { transform: scaleX(1); }
.pd-js .pd-lead::before { transform: scaleY(0); transition: transform 1.1s var(--ease) .2s; }
.pd-js .pd-lead.is-in::before { transform: scaleY(1); }
.pd-js .pd-stats.is-in::after { animation: pd-shine 1.6s var(--ease) .5s; }
@keyframes pd-shine { to { transform: translateX(100%); } }
@keyframes pd-drop { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) {
  .pd-js .pd-r { opacity: 1; transform: none; transition: none; }
  .pd-js .pd-h::before, .pd-js .pd-lead::before { transform: none; transition: none; }
  .pd-stats::after, .pd-faq details[open] > p { animation: none !important; }
}
@media (max-width: 600px) {
  .pd-features > li { padding: 24px 20px; }
  .pd-specs th { width: 48%; }
  .pd-stats { grid-template-columns: 1fr 1fr; }
  .pd-stats > div:nth-child(odd) { border-left: 0; }
  .pd-stats > div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
}
