/* ==========================================================================
   EXITA / WORLD — WooCommerce surface
   Styles WooCommerce's own markup (shop, product, cart, checkout, account)
   in the brand language. Loaded only when WooCommerce is active.
   ========================================================================== */

/* ---------- burger (mobile) ---------- */
.ex-hdr__burger{display:none}
@media (max-width:900px){ .ex-hdr__burger{display:grid} }
.ex-nav.is-open{display:block}
@media (max-width:900px){
  .ex-nav.is-open .ex-nav__in{flex-direction:column;align-items:stretch;padding-block:6px}
  .ex-nav.is-open a{padding:12px 4px;border-bottom:1px solid var(--ex-line)}
  .ex-nav.is-open a:last-child{border-bottom:0}
}

/* ---------- page widths ---------- */
.ex-wrap--read{max-width:820px}
.ex-wrap--wide{max-width:var(--ex-max)}

/* ---------- long-form pages ---------- */
.ex-article h2,.ex-article h3{font-family:var(--ex-display-ar);font-weight:900;line-height:1.42;margin:1.6em 0 .5em}
.ex-article h2{font-size:1.5rem}
.ex-article h3{font-size:1.2rem}
.ex-article p{margin:0 0 1.1em}
.ex-article ul,.ex-article ol{margin:0 0 1.2em;padding-inline-start:0;padding-inline-end:1.3em}
.ex-article li{margin:.4em 0}
.ex-article a{color:var(--ex-lime-ink);text-decoration:underline;text-underline-offset:3px}
.ex-article img{border-radius:var(--ex-r)}
.ex-article blockquote{border-inline-start:4px solid var(--ex-lime);background:var(--ex-mist);margin:1.4em 0;padding:14px 20px;border-radius:0 10px 10px 0}

/* ---------- breadcrumb ---------- */
.woocommerce-breadcrumb{font-size:12.5px;color:var(--ex-muted);margin:0 0 18px;font-weight:600}
.woocommerce-breadcrumb a{color:var(--ex-muted)}
.woocommerce-breadcrumb a:hover{color:var(--ex-ink)}

/* ---------- page titles ---------- */
.woocommerce-products-header__title,
.ex .entry-title,
.woocommerce-loop-product__title{font-family:var(--ex-display-ar);font-weight:900}
.woocommerce-products-header__title{font-size:clamp(24px,3.1vw,40px);line-height:1.42;margin:0 0 6px}
.term-description{color:var(--ex-muted);max-width:60ch;font-size:15px;line-height:1.75}

/* ---------- result count + ordering ---------- */
.woocommerce-result-count{font-size:12.5px;color:var(--ex-muted);font-weight:600;margin:0}
.woocommerce-ordering select,
.ex select,
.ex input[type="text"],
.ex input[type="email"],
.ex input[type="tel"],
.ex input[type="password"],
.ex input[type="number"],
.ex input[type="search"],
.ex textarea{
  font:inherit;font-size:14px;color:var(--ex-ink);
  background:#fff;border:1px solid var(--ex-line);border-radius:8px;
  padding:11px 14px;outline:none;transition:border-color .16s,box-shadow .16s;width:100%
}
.ex select:focus,.ex input:focus,.ex textarea:focus{
  border-color:var(--ex-ink);box-shadow:0 0 0 3px rgba(181,255,13,.45)
}

/* The header/search pill must win over the generic form-field rule above,
   otherwise the magnifier icon sits on top of the placeholder text. */
.ex .ex-search input[type="search"]{
  height:44px;padding-inline:46px 16px;border-radius:999px;
  background:var(--ex-mist);border:1px solid var(--ex-line)
}
.ex .ex-search input[type="search"]:focus{background:#fff;border-color:var(--ex-ink)}
.woocommerce-ordering{margin:0}
.woocommerce-ordering select{width:auto;min-width:200px}

/* the toolbar row above the grid */
.ex-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:20px 0 20px}
.ex-toolbar .woocommerce-result-count,
.ex-toolbar .woocommerce-ordering{margin:0;float:none}

/* nav list from wp_nav_menu */
.ex-nav__list{display:flex;align-items:center;gap:4px;list-style:none;margin:0;padding:0}
.ex-nav__list li{margin:0;list-style:none}
.ex-nav__list a{padding:13px 14px;font-size:14px;font-weight:600;white-space:nowrap;position:relative;display:block}
.ex-nav__list a::after{content:"";position:absolute;inset-inline:12px;bottom:0;height:3px;background:var(--ex-lime);transform:scaleX(0) skewX(var(--ex-skew));transition:transform .18s}
.ex-nav__list a:hover::after{transform:scaleX(1) skewX(var(--ex-skew))}
@media (max-width:900px){
  .ex-nav.is-open .ex-nav__list{flex-direction:column;align-items:stretch}
  .ex-nav.is-open .ex-nav__list a{border-bottom:1px solid var(--ex-line)}
}
.ex-ft ul li{list-style:none}

/* ---------- buttons ---------- */
.ex .button,
.ex button[type="submit"],
.ex input[type="submit"],
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button{
  position:relative;display:inline-flex;align-items:center;justify-content:center;gap:10px;
  padding:15px 30px;font:inherit;font-weight:700;font-size:15px;line-height:1;
  color:#fff;background:none;border:0;border-radius:0;cursor:pointer;isolation:isolate;
  transition:transform .16s ease
}
.ex .button::before,
.ex button[type="submit"]::before,
.ex input[type="submit"]::before,
.woocommerce a.button::before,
.woocommerce button.button::before,
.woocommerce input.button::before{
  content:"";position:absolute;inset:0;z-index:-1;background:var(--ex-ink);
  border-radius:3px;transform:skewX(var(--ex-skew));transition:background .16s
}
.ex .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover{transform:translateY(-2px)}

/* WooCommerce paints its own solid background on these (purple on .alt, grey
   otherwise) at a higher specificity than the base rule above, so the corners
   of the skewed shape showed the raw colour underneath. Kill it explicitly. */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit,
.woocommerce #respond input#submit.alt,
.woocommerce-page a.button,
.woocommerce-page button.button,
.woocommerce-page input.button{background-color:transparent;background-image:none}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover{background-color:transparent}

.woocommerce button.button.alt,
.woocommerce a.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt,
.wc-block-components-button{color:var(--ex-ink)}
.woocommerce button.button.alt::before,
.woocommerce a.button.alt::before,
.woocommerce input.button.alt::before,
.woocommerce #respond input#submit.alt::before{background:var(--ex-lime)}
.woocommerce button.button.alt:hover::before,
.woocommerce a.button.alt:hover::before{background:var(--ex-lime-2)}

.woocommerce a.button.disabled,
.woocommerce button.button:disabled{opacity:.45;cursor:not-allowed;transform:none}

/* the small "+" add button inside a product card */
.ex-card .ex-add,
.ex-card a.ex-add,
.ex-card button.ex-add{
  width:40px;height:40px;padding:0;border-radius:10px;background:var(--ex-ink);color:#fff;
  display:grid;place-items:center;font-size:0
}
.ex-card .ex-add::before{content:none}
.ex-card .ex-add::after{
  content:"+";font-family:var(--ex-display);font-size:22px;font-weight:700;line-height:1;color:inherit
}
.ex-card .ex-add:hover{background:var(--ex-lime);color:var(--ex-ink);transform:rotate(-6deg)}
.ex-card .added_to_cart{display:none}

/* ---------- notices ---------- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.wc-block-components-notice-banner{
  border:1px solid var(--ex-line);border-inline-start:5px solid var(--ex-lime);
  background:var(--ex-mist);border-radius:10px;padding:16px 20px;margin:0 0 20px;
  font-size:14px;font-weight:600;list-style:none
}
.woocommerce-error{border-inline-start-color:#B32D1B;background:#FDF1EF}
.woocommerce-message a.button,
.woocommerce-info a.button{float:none;margin-inline-start:10px}

/* ---------- pagination ---------- */
.woocommerce-pagination ul,
.ex .nav-links{display:flex;gap:8px;list-style:none;margin:32px 0 0;padding:0;justify-content:center;flex-wrap:wrap}
.woocommerce-pagination li{margin:0}
.woocommerce-pagination a,.woocommerce-pagination span,
.ex .nav-links a,.ex .nav-links span{
  display:grid;place-items:center;min-width:42px;height:42px;padding:0 12px;
  border:1px solid var(--ex-line);border-radius:8px;font-weight:700;font-size:14px
}
.woocommerce-pagination .current,
.ex .nav-links .current{background:var(--ex-lime);border-color:var(--ex-lime)}

/* ---------- single product ---------- */
.woocommerce div.product{display:grid;grid-template-columns:1fr 1fr;gap:clamp(24px,4vw,56px);align-items:start}
@media (max-width:900px){.woocommerce div.product{grid-template-columns:1fr}}
.woocommerce div.product .woocommerce-product-gallery,
.woocommerce div.product div.images{position:sticky;top:96px;width:100%;max-width:none;float:none;margin:0}
.woocommerce div.product .woocommerce-product-gallery__wrapper{width:100%}
.woocommerce span.onsale{
  position:absolute;top:14px;inset-inline-start:14px;z-index:3;
  padding:6px 14px;font-size:11px;font-weight:800;color:var(--ex-ink);background:var(--ex-lime);
  border-radius:2px;transform:skewX(var(--ex-skew));min-height:0;line-height:1
}
.woocommerce div.product{position:relative}
.woocommerce div.product .woocommerce-product-gallery img{border-radius:var(--ex-r);background:var(--ex-mist)}
.woocommerce div.product .product_title{font-family:var(--ex-display-ar);font-weight:900;font-size:clamp(22px,2.6vw,34px);line-height:1.42;margin:0 0 12px}
.woocommerce div.product p.price,
.woocommerce div.product span.price{
  font-family:var(--ex-display);font-weight:700;font-size:26px;color:var(--ex-ink);
  display:flex;gap:10px;align-items:baseline;flex-wrap:wrap;margin:0 0 16px
}
.woocommerce div.product p.price ins{order:-1;text-decoration:none;background:none;color:inherit;font-weight:inherit}
.woocommerce div.product p.price bdi,
.ex-price bdi{white-space:nowrap}
.woocommerce div.product p.price del{font-size:16px;color:var(--ex-muted);opacity:1}
.woocommerce div.product .woocommerce-product-details__short-description{color:var(--ex-muted);line-height:1.8;font-size:15px}
.woocommerce div.product form.cart{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:22px 0}
.woocommerce div.product form.cart .quantity input{width:84px;text-align:center}
.woocommerce div.product .product_meta{font-size:12.5px;color:var(--ex-muted);margin-top:18px;display:flex;flex-direction:column;gap:6px}
.woocommerce div.product .woocommerce-tabs{grid-column:1/-1;margin-top:clamp(28px,4vw,52px)}
.woocommerce div.product .woocommerce-tabs ul.tabs{display:flex;gap:6px;list-style:none;margin:0 0 20px;padding:0;border-bottom:1px solid var(--ex-line);flex-wrap:wrap}
.woocommerce div.product .woocommerce-tabs ul.tabs li a{display:block;padding:12px 18px;font-weight:700;font-size:14px;position:relative}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a::after{
  content:"";position:absolute;inset-inline:12px;bottom:-1px;height:3px;background:var(--ex-lime);transform:skewX(var(--ex-skew))
}
.woocommerce table.shop_attributes{width:100%;border-collapse:collapse;font-size:14px}
.woocommerce table.shop_attributes th,
.woocommerce table.shop_attributes td{text-align:start;padding:11px 12px;border-bottom:1px solid var(--ex-line)}
.woocommerce table.shop_attributes th{font-weight:800;width:34%}
.woocommerce table.shop_attributes p{margin:0}

/* variation selectors */
.woocommerce div.product form.cart .variations{width:100%;border-collapse:collapse}
.woocommerce div.product form.cart .variations td{padding:6px 0;display:block}
.woocommerce div.product form.cart .variations label{font-weight:700;font-size:13px;display:block;margin-bottom:6px}

/* related / upsells */
.related.products,.upsells.products{grid-column:1/-1;margin-top:clamp(30px,5vw,64px)}
.related.products > h2,.upsells.products > h2,.cross-sells > h2{
  font-family:var(--ex-display-ar);font-weight:900;font-size:clamp(20px,2.4vw,28px);line-height:1.42;margin:0 0 20px
}

/* ---------- cart ---------- */
.woocommerce table.shop_table{width:100%;border-collapse:collapse;border:1px solid var(--ex-line);border-radius:var(--ex-r);overflow:hidden;font-size:14px}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td{padding:14px;text-align:start;border-bottom:1px solid var(--ex-line);vertical-align:middle}
.woocommerce table.shop_table th{background:var(--ex-mist);font-weight:800;font-size:13px}
.woocommerce table.shop_table td.product-thumbnail img{width:64px;height:64px;object-fit:contain;background:var(--ex-mist);border-radius:8px}
.woocommerce .cart_totals h2,
.woocommerce-checkout h3,
.woocommerce-billing-fields h3,
.woocommerce-additional-fields h3,
#order_review_heading{font-family:var(--ex-display-ar);font-weight:900;font-size:20px;line-height:1.42;margin:0 0 14px}
.woocommerce .cart-collaterals .cart_totals{border:1px solid var(--ex-line);border-radius:var(--ex-r);padding:20px;background:#fff}
.woocommerce .cart_totals table.shop_table td,
.woocommerce .cart_totals table.shop_table th{white-space:nowrap}
.woocommerce .cart_totals table.shop_table th{white-space:normal}
.woocommerce .cart-collaterals{display:grid;grid-template-columns:1fr;gap:20px;margin-top:26px}
@media (min-width:900px){.woocommerce .cart-collaterals{grid-template-columns:1fr 380px}}
.woocommerce .coupon{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px}
.woocommerce .coupon input{max-width:220px}

/* ---------- checkout ---------- */
.woocommerce-checkout .col2-set{display:grid;grid-template-columns:1fr;gap:20px}
@media (min-width:900px){
  .woocommerce-checkout form.checkout{display:grid;grid-template-columns:1fr 420px;gap:34px;align-items:start}
  .woocommerce-checkout #order_review_heading,
  .woocommerce-checkout #order_review{grid-column:2}
  .woocommerce-checkout #customer_details{grid-column:1;grid-row:1 / span 2}
}
.woocommerce form .form-row{display:flex;flex-direction:column;gap:6px;margin:0 0 14px;padding:0}
.woocommerce form .form-row label{font-weight:700;font-size:13px}
.woocommerce form .form-row .required{color:#B32D1B;text-decoration:none}
.woocommerce-checkout #payment{background:var(--ex-mist);border:1px solid var(--ex-line);border-radius:var(--ex-r);padding:18px}
.woocommerce-checkout #payment ul.payment_methods{list-style:none;margin:0 0 14px;padding:0;display:flex;flex-direction:column;gap:10px}
.woocommerce-checkout #payment ul.payment_methods li{background:#fff;border:1px solid var(--ex-line);border-radius:10px;padding:14px}
.woocommerce-checkout #payment div.payment_box{background:transparent;font-size:13px;color:var(--ex-muted);margin-top:8px}
.woocommerce-checkout #payment div.payment_box::before{display:none}
.woocommerce-checkout #payment .form-row.place-order{margin:0}
.woocommerce-checkout #payment #place_order{width:100%}

/* the 18+ confirmation at checkout */
.ex-age-confirm{
  background:var(--ex-mist);border:1px solid var(--ex-line);border-inline-start:5px solid var(--ex-lime);
  border-radius:10px;padding:14px 16px;margin:0 0 16px
}
.ex-age-confirm label{display:flex;gap:10px;align-items:flex-start;font-weight:600;font-size:13.5px;line-height:1.6;cursor:pointer}
.ex-age-confirm input[type="checkbox"]{width:18px;height:18px;flex:none;margin-top:2px;accent-color:var(--ex-lime)}

/* ---------- my account ---------- */
.woocommerce-account .woocommerce-MyAccount-navigation ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.woocommerce-account .woocommerce-MyAccount-navigation a{display:block;padding:11px 14px;border-radius:8px;font-weight:600;font-size:14px}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a{background:var(--ex-lime);color:var(--ex-ink);font-weight:800}
@media (min-width:900px){
  .woocommerce-account .woocommerce{display:grid;grid-template-columns:240px 1fr;gap:34px;align-items:start}
}

/* ---------- widgets / filters ---------- */
.ex-widget{border:1px solid var(--ex-line);border-radius:var(--ex-r);padding:18px;margin-bottom:16px;background:#fff}
.ex-widget__t{font-weight:800;font-size:15px;margin:0 0 12px}
.ex-widget ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px;font-size:14px}

/* ---------- WooCommerce blocks (cart & checkout blocks) ---------- */
/* WordPress prints a layout rule that caps .alignwide at the theme's wide-size.
   theme.json sets that to 1280px; these keep the cart/checkout blocks full width
   even when the layout stylesheet has not been regenerated. */
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout{font-family:var(--ex-font)}
body .wp-block-woocommerce-cart.alignwide,
body .wp-block-woocommerce-checkout.alignwide,
body .wp-site-blocks > .alignwide{max-width:1280px;margin-inline:auto}
.wc-block-components-sidebar-layout{max-width:none}
.wc-block-checkout__sidebar,
.wc-block-cart__sidebar{--sidebar-width:400px}
@media (min-width:1000px){
  .wc-block-components-sidebar{flex:0 0 400px;max-width:400px}
}
.wc-block-components-order-summary-item__description,
.wc-block-components-product-metadata{font-size:12.5px;color:var(--ex-muted)}
.wc-block-components-totals-item__label{font-weight:700}
.wc-block-components-panel__button,
.wc-block-components-text-input input{font-family:var(--ex-font)}
.wc-block-checkout__terms,
.wc-block-components-checkbox__label{font-size:13.5px;line-height:1.7}
.wc-block-components-checkbox__input{accent-color:var(--ex-lime)}
.wc-block-components-checkout-place-order-button{width:100%}

/* Make the additional-fields panel (which carries the 18+ confirmation) read as
   a compliance step rather than an optional extra. */
.wc-block-checkout__additional-fields{
  background:var(--ex-mist);border:1px solid var(--ex-line);
  border-inline-start:5px solid var(--ex-lime);border-radius:12px;
  padding:18px 20px;margin-block:8px
}
.wc-block-checkout__additional-fields .wc-block-components-title{font-size:15px;margin-bottom:10px}
.wc-block-checkout__additional-fields .wc-block-components-checkbox__label{font-weight:600}
.wc-block-checkout__additional-fields .wc-block-components-checkbox__input{width:18px;height:18px}

/* cart block */
.wc-block-cart__submit-button{width:100%}
.wc-block-cart-items__row .wc-block-components-product-name{font-weight:700}
.wp-block-woocommerce-empty-cart-block{text-align:center}
.wc-block-components-title{font-family:var(--ex-display-ar);font-weight:900;line-height:1.42}
.wc-block-components-button:not(.is-link){
  background:var(--ex-lime);color:var(--ex-ink);border-radius:3px;font-weight:700
}

/* ---------- single-product fixes ---------- */
/* WooCommerce's zoom plugin injects a full-size clone (img.zoomImg) that is not
   constrained by the gallery, so it spilled ~1200px past the viewport. */
.woocommerce-product-gallery .woocommerce-product-gallery__image{position:relative;overflow:hidden}
.woocommerce-product-gallery img.zoomImg{max-width:none}

/* The product tabs overflowed the container and wrapped onto a stray line. */
.woocommerce div.product .woocommerce-tabs ul.tabs{
  display:flex;flex-wrap:wrap;gap:6px;margin:0 0 18px;padding:0;
  max-width:100%;box-sizing:border-box
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs::after{display:none}
.woocommerce div.product .woocommerce-tabs ul.tabs li{
  margin:0;padding:0;border:0;background:none;border-radius:0;flex:0 1 auto;max-width:100%
}
.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{
  display:block;padding:10px 16px;font-weight:700;font-size:14px;color:var(--ex-muted);
  border-bottom:2px solid transparent;white-space:nowrap
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a{color:var(--ex-ink);border-bottom-color:var(--ex-lime)}

/* Tabs, upsells and related products are siblings of the gallery/summary grid
   columns, so without this they were squeezed into one half of the page. */
.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .upsells,
.woocommerce div.product .related,
.woocommerce div.product .up-sells{grid-column:1/-1;width:100%;margin-top:clamp(28px,4vw,52px)}

/* WordPress swaps the gallery's 🔍 character for an <img class="emoji">; keep it
   inside the button so it can't be flung off-canvas by an inherited text-indent. */
.woocommerce-product-gallery__trigger{
  overflow:hidden;text-indent:0;display:flex;align-items:center;justify-content:center;
  width:36px;height:36px;border-radius:999px;background:#fff;
  box-shadow:0 2px 10px rgba(0,0,0,.12);font-size:16px;line-height:1
}
.woocommerce-product-gallery__trigger img.emoji,
.woocommerce-product-gallery__trigger span{width:auto;height:18px;margin:0;text-indent:0}
.woocommerce-product-gallery__trigger img.emoji{width:18px}
