/* ============================================================
   OOLA · WooCommerce integration
   Bridges WooCommerce's native markup onto the OOLA design tokens.
   ============================================================ */

/* ---------- Cart / Checkout (WooCommerce Blocks) — light brand pass ----------
   Cart & Checkout render as WooCommerce Blocks (wc-block-* classes), which
   ship their own default styling layer. This only retints the highest-impact
   elements (buttons, headings, prices); a full redesign of the blocks layout
   is a separate, larger task if wanted later. */
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout{font-family:var(--font-body);color:var(--ink);}
.wc-block-cart__empty-cart__title,
.wp-block-woocommerce-cart h2,
.wp-block-woocommerce-checkout h2{font:500 28px var(--font-display) !important;color:var(--ink);}
.wc-block-grid__product-title{font:500 14px var(--font-body);color:var(--ink);}
.wc-block-grid__product-price,
.wc-block-components-totals-item__value,
.wc-block-components-product-price{color:var(--raspberry);font-weight:600;}
.wc-block-components-button,
.wc-block-cart__submit-container .wc-block-components-button,
.wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button{
	background:var(--pink) !important;border-color:var(--pink) !important;
	border-radius:999px !important;color:#fff !important;
	font-family:var(--font-body) !important;font-weight:700 !important;
}
.wc-block-components-button:hover{background:var(--raspberry-2) !important;border-color:var(--raspberry-2) !important;}
.wc-block-components-button.is-style-outline,
.wc-block-cart__submit-container .wc-block-components-button.contained{
	background:transparent !important;color:var(--ink) !important;border-color:rgba(42,28,34,.2) !important;
}

/* ---------- Breadcrumb / notices ---------- */
.woocommerce-breadcrumb{font:400 13px var(--font-body);color:var(--muted);padding:20px 0 0;margin:0;}
.woocommerce-breadcrumb a{color:var(--muted);}
.woocommerce-breadcrumb a:hover{color:var(--raspberry);}

.woocommerce-message,.woocommerce-info,.woocommerce-error{border-top:none;border-radius:14px;padding:14px 18px;background:var(--badge-bg);color:var(--ink);font:400 14px var(--font-body);list-style:none;}
.woocommerce-message{border-left:4px solid var(--raspberry);}
.woocommerce-info{border-left:4px solid var(--pink);}
.woocommerce-error{border-left:4px solid #c0392b;}
.woocommerce-message a.button,
.woocommerce-error a.button{margin-left:10px;}

/* ---------- Category / shop archive shell ---------- */
.oola-archive{padding-bottom:60px;}
.cat-hero{padding:20px 0 36px;max-width:760px;}
.cat-hero .kicker{font:italic 500 16px var(--font-display);color:var(--raspberry-2);margin:0 0 8px;}
.cat-hero h1{font:500 42px var(--font-display);margin:0 0 14px;color:var(--ink);}
.cat-hero .intro{font:400 15px/1.6 var(--font-body);color:var(--muted);margin:0;}

.subcats{margin-bottom:56px;}

.shopgrid{display:grid;grid-template-columns:240px 1fr;gap:40px;align-items:start;}
@media (max-width:900px){ .shopgrid{grid-template-columns:1fr;} }

/* ---------- Filters aside ---------- */
.filters{position:sticky;top:110px;}
@media (max-width:900px){
	.filters{
		position:fixed;top:0;right:0;bottom:0;width:min(320px,86vw);z-index:70;
		background:var(--cream);padding:24px;overflow-y:auto;
		transform:translateX(100%);transition:transform .25s ease;
		box-shadow:-12px 0 32px rgba(20,10,15,.18);
	}
	.filters.is-open{transform:translateX(0);}
}
.fhead{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;}
.fhead h3{font:600 15px var(--font-body);margin:0;color:var(--ink);}
.fclose{display:none;background:none;border:none;font-size:26px;line-height:1;color:var(--ink);cursor:pointer;padding:0;}
@media (max-width:900px){ .fclose{display:block;} }

.filters .widget{border-bottom:1px solid rgba(42,28,34,.1);padding:16px 0;}
.filters .widget:first-child{padding-top:0;}
.filters .widgettitle,.filters .widget h2,.filters .widget h3,.filters .widget h4{font:700 13px var(--font-body);color:var(--ink);margin:0 0 12px;text-transform:uppercase;letter-spacing:.03em;}
.filters .widget ul{list-style:none;margin:0;padding:0;}
.filters .widget li{padding:6px 0;font:400 14px var(--font-body);color:var(--muted);}
.filters .widget li a{color:var(--muted);text-decoration:none;}
.filters .widget li a:hover{color:var(--raspberry);}
.filters .woocommerce-widget-layered-nav-list__item--chosen a{color:var(--raspberry);font-weight:600;}
.filters .star-rating{color:var(--yellow);}

/* Price filter (jQuery UI slider) */
.filters .price_slider{margin-bottom:16px;}
.filters .price_slider_amount{display:flex;align-items:center;justify-content:space-between;gap:10px;}
.filters .price_slider_amount .button{background:var(--ink);color:var(--cream-text);border:none;border-radius:999px;padding:8px 16px;font:700 12.5px var(--font-body);cursor:pointer;}
.filters .price_slider_amount .button:hover{background:var(--raspberry);}
.filters .ui-slider{position:relative;height:4px;background:rgba(42,28,34,.12);border-radius:999px;margin:20px 4px 16px;}
.filters .ui-slider .ui-slider-range{position:absolute;top:0;bottom:0;background:var(--raspberry);border-radius:999px;}
.filters .ui-slider .ui-slider-handle{position:absolute;top:50%;width:16px;height:16px;margin-left:-8px;transform:translateY(-50%);background:var(--pink);border:2px solid var(--cream);border-radius:50%;cursor:pointer;outline:none;box-shadow:0 1px 4px rgba(0,0,0,.25);}

/* ---------- Result bar ---------- */
.fbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:22px;}
.filterbtn{display:none;align-items:center;gap:8px;background:var(--ink);color:var(--cream-text);border:none;border-radius:999px;padding:11px 18px;font:700 13px var(--font-body);cursor:pointer;}
@media (max-width:900px){ .filterbtn{display:inline-flex;} }
.count{font:400 14px var(--font-body);color:var(--muted);margin:0;}
.woocommerce-ordering select{font-family:var(--font-body);font-size:13.5px;border:1px solid rgba(42,28,34,.18);border-radius:999px;padding:9px 16px;background:#fff;color:var(--ink);}

/* ---------- Product grid (reuses homepage .product-card look) ----------
   Unscoped so it also matches the [products] shortcode grid the
   oola-seo-pages "collection" landing pages render inside .oola-lp. */
ul.products{display:grid;grid-template-columns:repeat(4,1fr);gap:26px;margin:0;padding:0;list-style:none;}
@media (max-width:1100px){ ul.products{grid-template-columns:repeat(3,1fr);} }
@media (max-width:700px){ ul.products{grid-template-columns:repeat(2,1fr);} }
ul.products li.product-card-li{width:auto !important;margin:0 !important;float:none !important;}
ul.products li.product-card-li::before{display:none;}

/* ---------- oola-seo-pages "collection" landing pages ---------- */
.oola-lp h1{font:500 42px var(--font-display);margin:0 0 14px;color:var(--ink);}
.oola-lp .oola-lp__intro{font:400 15px/1.6 var(--font-body);color:var(--muted);max-width:760px;margin:0 0 40px;}
.pc-badge{position:absolute;top:12px;left:12px;z-index:2;background:var(--yellow);color:var(--ink);font:700 11px var(--font-body);padding:5px 12px;border-radius:999px;}
.pc-badge.sale{background:var(--pink);color:#fff;}
.pc-rating .star-rating{color:var(--yellow);font-size:12px;}

/* Product card thumbnail: stack the featured image + one gallery image and
   crossfade on hover. Falls back to a single dimmed placeholder when a
   product has no real photos yet. */
.product-card .thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:opacity .3s ease;}
.product-card .thumb img.thumb-alt{opacity:0;}
.product-card:hover .thumb img.thumb-alt{opacity:1;}
.product-card:hover .thumb img:not(.thumb-alt){opacity:0;}
.product-card .thumb img.woocommerce-placeholder{opacity:.4;filter:grayscale(1);}
.product-card:hover .thumb img.woocommerce-placeholder{opacity:.4;}
.oola-single-product .woocommerce-product-gallery__image img.woocommerce-placeholder{opacity:.35;filter:grayscale(1);}

.pager{margin-top:44px;}
.pager .page-numbers{display:inline-flex;gap:8px;list-style:none;padding:0;margin:0;}
.pager .page-numbers li{display:inline-block;}
.pager .page-numbers a,.pager .page-numbers span{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:38px;border-radius:999px;text-decoration:none;color:var(--ink);font:600 13px var(--font-body);}
.pager .page-numbers a:hover{background:var(--badge-bg);}
.pager .page-numbers .current{background:var(--ink);color:var(--cream-text);}

/* ---------- Dash-bullet fix (product descriptions) ---------- */
.oola-bullets{list-style:none;margin:0 0 22px;padding:0;display:flex;flex-direction:column;gap:9px;}
.oola-bullets li{position:relative;padding-left:22px;font:400 15px/1.6 var(--font-body);color:var(--ink);}
.oola-bullets li::before{content:"";position:absolute;left:2px;top:0.62em;width:7px;height:7px;border-radius:50%;background:var(--raspberry);}

/* ---------- Single product ----------
   Rebuilt layout: the gallery column is a fixed max-width (not a
   proportional fr), so the photo is a consistent, comfortable size on
   every screen instead of ballooning on wide monitors and dragging the
   accordion far down the page. The summary column uses one flex+gap
   rhythm instead of a patchwork of per-element margins. */
.oola-single-product{padding-bottom:56px;}

.oola-single-product div.product{position:relative;display:grid;grid-template-columns:minmax(280px,520px) 1fr;gap:52px;margin-top:16px;align-items:start;}
@media (max-width:900px){ .oola-single-product div.product{grid-template-columns:1fr;gap:28px;} }

/* WooCommerce outputs the sale badge as a sibling before the gallery, not
   inside it — position it against the shared product grid instead, pinned
   over the gallery's top-left corner (column 1). */
/* .onsale now renders inside .pd-gallery-col (nested, not a direct child of
   div.product) — descendant selector, not child combinator. It still
   positions correctly against div.product (position:relative), the
   nearest positioned ancestor. */
.oola-single-product div.product .onsale{position:absolute;top:12px;left:12px;z-index:5;min-height:0;min-width:0;background:var(--pink);color:#fff;border-radius:999px;padding:7px 16px;font:700 12.5px var(--font-body);line-height:1;text-align:center;}

/* pd-gallery-col holds the photo, thumbnails, AND the full description —
   filling the space a 520px-capped image otherwise leaves empty below it
   instead of pushing that content down into a separate accordion tab.
   Not sticky: a sticky image with independent-scrolling content below it
   in the same column risks that content visually sliding under the pinned
   image, and a lot of descriptions run longer than the viewport anyway. */
.oola-single-product .pd-gallery-col{display:flex;flex-direction:column;gap:28px;}

.oola-single-product .woocommerce-product-gallery{margin:0;display:flex;flex-direction:column;gap:14px;}

.oola-single-product .woocommerce-product-gallery__wrapper{min-width:0;}
.oola-single-product .woocommerce-product-gallery__image,
.oola-single-product .woocommerce-product-gallery__image img{width:100%;display:block;border-radius:24px;overflow:hidden;background:var(--tile);}
.oola-single-product .woocommerce-product-gallery__image{aspect-ratio:1/1;}
.oola-single-product .woocommerce-product-gallery__image img{height:100%;object-fit:cover;}
.oola-single-product .woocommerce-product-gallery__image img.woocommerce-placeholder{opacity:.35;filter:grayscale(1);}

.oola-single-product .flex-control-thumbs{margin:0;padding:0;list-style:none;display:flex;gap:12px;}
.oola-single-product .flex-control-thumbs li{flex:1;}
.oola-single-product .flex-control-thumbs img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:14px;opacity:.55;cursor:pointer;transition:opacity .15s ease;}
.oola-single-product .flex-control-thumbs img:hover{opacity:.85;}
.oola-single-product .flex-control-thumbs img.flex-active{opacity:1;outline:2px solid var(--raspberry);outline-offset:2px;}

.oola-single-product .pd-gallery-desc{padding-top:24px;border-top:1px solid rgba(42,28,34,.12);}
.oola-single-product .pd-gallery-desc p:last-child{margin-bottom:0;}

.oola-single-product .summary{display:flex;flex-direction:column;gap:14px;}
.oola-single-product .summary > *{margin:0;}

.pd-eyebrow{font:italic 500 15px var(--font-display);color:var(--raspberry-2);}
.oola-single-product .product_title{font:800 clamp(30px,3.2vw,42px)/1.08 var(--font-logo);color:var(--ink);letter-spacing:-.01em;text-transform:lowercase;}

.oola-single-product .woocommerce-product-rating{display:flex;align-items:center;gap:8px;}
.oola-single-product .star-rating{color:var(--yellow);}
.oola-single-product .woocommerce-review-link{color:var(--muted);font-size:13px;}

.oola-single-product p.price,
.oola-single-product span.price{font:700 24px var(--font-body);color:var(--raspberry);display:block;line-height:1;}
.oola-single-product p.price del{color:var(--muted);font-size:16px;font-weight:400;margin-right:10px;opacity:.6;}
.oola-single-product p.price ins{text-decoration:none;}

.oola-single-product .woocommerce-product-details__short-description{font:400 15px/1.6 var(--font-body);color:var(--ink);}
.oola-single-product .woocommerce-product-details__short-description p{margin:0 0 10px;}
.oola-single-product .woocommerce-product-details__short-description p:last-child{margin-bottom:0;}

/* form.cart holds different children depending on product type: for a
   simple product, the qty input + buttons are its DIRECT children and need
   to sit in a row; for a variable product it holds the .variations table
   then .single_variation_wrap stacked vertically. One flex-wrap row on
   form.cart handles both — .variations is set to width:100% below, which
   forces everything after it onto its own line, giving the vertical stack
   for free without needing different markup per product type. */
.oola-single-product form.cart{margin:0;display:flex;flex-wrap:wrap;align-items:center;gap:14px;}

/* Variation form: attribute selects (non-colour attributes keep a plain
   rounded select; colour attributes get JS-built swatches instead). */
.variations{width:100%;border-collapse:collapse;margin:0;}
.variations tr{display:block;margin:0 0 14px;}
.variations tr:last-child{margin-bottom:0;}
.variations td,.variations th{display:block;padding:0;border:0;text-align:left;}
.variations label{font:700 12px var(--font-body);text-transform:uppercase;letter-spacing:.03em;color:var(--muted);display:block;margin-bottom:8px;}
.variations select{border:1.5px solid rgba(42,28,34,.16);border-radius:999px;padding:11px 18px;font:500 14px var(--font-body);color:var(--ink);background:#fff;min-width:180px;}
.woocommerce-variation-add-to-cart .reset_variations{display:inline-block;margin-left:12px;font:500 12.5px var(--font-body);color:var(--muted);text-decoration:underline;}

.oola-swatches{display:flex;flex-wrap:wrap;gap:10px;}
.oola-swatch{width:34px;height:34px;border-radius:50%;border:2px solid rgba(42,28,34,.15);cursor:pointer;padding:0;background:#eee;transition:transform .15s ease,border-color .15s ease;}
.oola-swatch:hover{transform:scale(1.08);}
.oola-swatch.is-active{border-color:var(--raspberry);box-shadow:0 0 0 2px var(--cream),0 0 0 4px var(--raspberry);}
.oola-swatch.is-text{width:auto;height:34px;padding:0 16px;border-radius:999px;background:#fff;font:600 12.5px var(--font-body);color:var(--ink);}
.oola-swatch.is-text.is-active{background:var(--ink);color:var(--cream-text);border-color:var(--ink);}
.oola-swatch-label{font:700 13px var(--font-body);color:var(--ink);letter-spacing:.04em;text-transform:uppercase;min-height:18px;}

.woocommerce-variation-price .price{font-size:26px !important;}
.single_variation_wrap{width:100%;display:flex;flex-direction:column;gap:14px;}
.single_variation_wrap .woocommerce-variation-availability{margin:0;font:500 13px var(--font-body);}
.woocommerce-variation-add-to-cart{margin:0;display:flex;flex-wrap:wrap;align-items:center;gap:10px;}

.oola-single-product .quantity{display:flex;align-items:center;border:1.5px solid rgba(42,28,34,.16);border-radius:999px;overflow:hidden;flex-shrink:0;}
.oola-single-product .quantity input.qty{width:48px;text-align:center;border:0;background:transparent;font:700 16px var(--font-body);color:var(--ink);height:50px;-moz-appearance:textfield;}
.oola-single-product button.single_add_to_cart_button,
.oola-single-product button.oola-buy-now{flex:1;min-width:140px;}
.oola-single-product button.single_add_to_cart_button,
.oola-single-product .woocommerce a.button.alt,
.oola-single-product .woocommerce button.button.alt,
.oola-single-product .woocommerce input.button.alt{background:var(--pink);color:#fff;border-radius:999px;font:700 15px var(--font-body);padding:15px 28px;border:0;cursor:pointer;min-height:50px;text-align:center;transition:background .15s ease;}
.oola-single-product button.single_add_to_cart_button:hover{background:var(--raspberry-2);}
/* Buy now: a solid secondary CTA sitting alongside "add to bag", same row, same size. */
.oola-single-product button.oola-buy-now{background:var(--ink) !important;color:#fff !important;border-radius:999px;font:700 15px var(--font-body) !important;padding:15px 28px !important;border:0 !important;cursor:pointer;min-height:50px;text-align:center;transition:background .15s ease;}
.oola-single-product button.oola-buy-now:hover{background:var(--raspberry-2) !important;}

.pd-trust-row{display:flex;flex-wrap:wrap;gap:16px 24px;padding:16px 0;border-top:1px solid rgba(42,28,34,.1);border-bottom:1px solid rgba(42,28,34,.1);}
.pd-trust-row span{display:flex;align-items:center;gap:9px;font:600 12.5px var(--font-body);color:var(--ink);}
.pd-trust-row svg{width:18px;height:18px;color:var(--pink);flex-shrink:0;}

.oola-single-product .product_meta{display:none;}

/* Accordion (Description / Materials & care / Shipping & returns / Reviews) */
.pd-accordion{max-width:820px;border-top:1px solid rgba(42,28,34,.12);}
.pd-acc-item{border-bottom:1px solid rgba(42,28,34,.12);}
.pd-acc-trigger{width:100%;display:flex;align-items:center;justify-content:space-between;background:none;border:0;padding:20px 2px;font:700 15px var(--font-body);color:var(--ink);text-transform:lowercase;cursor:pointer;text-align:left;}
.pd-acc-icon{position:relative;width:16px;height:16px;flex-shrink:0;}
.pd-acc-icon::before,.pd-acc-icon::after{content:"";position:absolute;top:50%;left:50%;background:var(--ink);transform:translate(-50%,-50%);}
.pd-acc-icon::before{width:12px;height:2px;}
.pd-acc-icon::after{width:2px;height:12px;transition:transform .2s ease;}
.pd-acc-item.is-open .pd-acc-icon::after{transform:translate(-50%,-50%) rotate(90deg) scale(0);}
.pd-acc-panel{display:none;padding:0 2px 24px;}
.pd-acc-item.is-open .pd-acc-panel{display:block;}

/* Description / Specifications / Reviews — full-width sections below the
   gallery+summary grid, replacing the old tabbed UI. */
.oola-single-extra{padding-bottom:70px;}
.pd-section{max-width:820px;margin:0 0 56px;}
.pd-section h2{font:500 30px var(--font-display);color:var(--ink);margin:0 0 20px;}
.pd-prose{font:400 15.5px/1.75 var(--font-body);color:var(--ink);}
.pd-prose p{margin:0 0 20px;}
.pd-prose strong{font-weight:700;}

.pd-specs{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;}
@media (max-width:700px){ .pd-specs{grid-template-columns:1fr 1fr;} }
.pd-spec-group h4{font:700 12px var(--font-body);text-transform:uppercase;letter-spacing:.03em;color:var(--raspberry-2);margin:0 0 10px;}
.pd-spec-group ul{list-style:none;margin:0;padding:0;}
.pd-spec-group li{position:relative;padding-left:16px;font:400 14px/1.6 var(--font-body);color:var(--ink);margin-bottom:6px;}
.pd-spec-group li::before{content:"";position:absolute;left:0;top:.6em;width:5px;height:5px;border-radius:50%;background:var(--raspberry);}
.pd-sku{font:400 13px var(--font-body);color:var(--muted);margin:20px 0 0;}

.pd-reviews{max-width:820px;}
.pd-reviews .woocommerce-Reviews-title{display:none;}
.pd-reviews .commentlist{list-style:none;margin:0;padding:0;}
.pd-reviews .comment_container{display:flex;gap:14px;padding:18px 0;border-bottom:1px solid rgba(42,28,34,.1);}
.pd-reviews .avatar{border-radius:50%;flex-shrink:0;}
.pd-reviews .star-rating{color:var(--yellow);margin-bottom:6px;}
.pd-reviews .woocommerce-review__author{font-weight:700;color:var(--ink);}
.pd-reviews .woocommerce-review__dash,
.pd-reviews .woocommerce-review__published-date{color:var(--muted);font-size:13px;}
.pd-reviews #reviews_tab p.stars a{color:var(--yellow);}
.pd-reviews .comment-form input,
.pd-reviews .comment-form textarea{width:100%;border:1.5px solid rgba(42,28,34,.16);border-radius:14px;padding:12px 16px;font:400 14px var(--font-body);color:var(--ink);background:#fff;}
.pd-reviews .comment-form textarea{border-radius:16px;min-height:100px;}
.pd-reviews .comment-form p{margin:0 0 14px;}
.pd-reviews .comment-form label{display:block;font:600 12px var(--font-body);text-transform:uppercase;letter-spacing:.03em;color:var(--muted);margin-bottom:6px;}
.pd-reviews .form-submit input{background:var(--pink);color:#fff;border:none;border-radius:999px;padding:13px 28px;font:700 14px var(--font-body);cursor:pointer;}
.pd-reviews .form-submit input:hover{background:var(--raspberry-2);}

.related.products,.upsells.products{margin-top:0;}
.related.products>h2,.upsells.products>h2{font:500 30px var(--font-display);color:var(--ink);margin-bottom:24px;}
