/*
Theme Name: AlfaTonic
Theme URI: https://alfatonic.example
Author: AlfaTonic
Author URI: https://alfatonic.example
Description: A warm, editorial WooCommerce theme for AlfaTonic — clean, science-backed supplements. Blue-ink CTAs, oversized pill geometry, rounded product cards and a Sofia Sans type system. WooCommerce-ready.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alfatonic
Tags: e-commerce, woocommerce, custom-colors, custom-menu, featured-images, full-width-template, two-columns, translation-ready
WC requires at least: 6.0
WC tested up to: 9.0
*/

:root{
  --at-ink:#141413;
  --at-blue:#143094;
  --at-blue-dark:#0E2270;
  --at-bg:#FBFAF8;
  --at-cream:#F4F2EF;
  --at-tintA:#ECEFFB;
  --at-tintB:#EEF1FB;
  --at-green:#21A971;
  --at-muted:#55534f;
  --at-faint:#8A8A88;
  --at-line:rgba(20,20,19,.07);
  --at-shadow-1:0 6px 24px rgba(20,48,148,.06);
  --at-shadow-2:0 24px 48px rgba(0,0,0,.08);
  --r-btn:999px; --r-lg:40px; --r-md:24px;
}

*{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;}
body.alfatonic{
  margin:0;
  font-family:'Sofia Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  font-weight:450;
  color:var(--at-ink);
  background:var(--at-bg);
  -webkit-font-smoothing:antialiased;
  line-height:1.5;
}
img{max-width:100%;height:auto;}
a{color:inherit;text-decoration:none;}
a:hover{text-decoration:underline;}
::selection{background:var(--at-blue);color:#fff;}

.at-container{max-width:1280px;margin:0 auto;padding-left:clamp(14px,4vw,40px);padding-right:clamp(14px,4vw,40px);}

h1,h2,h3,h4{letter-spacing:-1px;font-weight:700;line-height:1.08;margin:0 0 .4em;}
h1{font-size:clamp(32px,5vw,56px);letter-spacing:-1.6px;}
h2{font-size:clamp(28px,3.6vw,42px);letter-spacing:-1.2px;}
p{color:var(--at-muted);}

.at-eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;color:var(--at-blue);}
.at-eyebrow::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--at-blue);}

/* ---------- buttons ---------- */
.at-btn,.button,.wp-block-button__link,
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,
.woocommerce #respond input#submit,.woocommerce a.button.alt,.woocommerce button.button.alt{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  background:var(--at-blue);color:#fff;border:0;border-radius:var(--r-btn);
  padding:14px 26px;font-family:inherit;font-size:15.5px;font-weight:600;line-height:1;
  cursor:pointer;text-decoration:none;box-shadow:0 12px 26px rgba(20,48,148,.18);
  transition:transform .2s ease,background .2s ease;
}
.at-btn:hover,.button:hover,.woocommerce a.button:hover,.woocommerce button.button:hover,
.woocommerce input.button:hover,.woocommerce a.button.alt:hover,.woocommerce button.button.alt:hover{
  background:var(--at-blue-dark);color:#fff;text-decoration:none;
}
.at-btn:active,.woocommerce button.button:active{transform:scale(.97);}
.at-btn--ghost{background:#fff;color:var(--at-ink);border:1.5px solid rgba(20,20,19,.18);box-shadow:none;}
.at-btn--ghost:hover{background:var(--at-cream);color:var(--at-ink);}

/* ---------- header / nav ---------- */
.site-header{position:sticky;top:0;z-index:60;padding:16px clamp(14px,4vw,40px) 0;}
.at-nav{max-width:1280px;margin:0 auto;background:#fff;border:1px solid var(--at-line);
  border-radius:var(--r-btn);box-shadow:var(--at-shadow-1);display:flex;align-items:center;
  justify-content:space-between;padding:10px 12px 10px 22px;gap:16px;}
.at-brand{display:flex;align-items:center;gap:11px;flex:none;}
.at-brand:hover{text-decoration:none;}
.at-brand img{height:30px;width:auto;display:block;}
.at-brand .at-word{font-size:21px;font-weight:700;letter-spacing:-.6px;color:var(--at-ink);}
.at-brand .at-word span{color:var(--at-blue);}
.at-menu{display:flex;align-items:center;gap:28px;list-style:none;margin:0;padding:0;}
.at-menu a{font-size:15px;font-weight:500;letter-spacing:-.3px;}
.at-menu a:hover{text-decoration:none;color:var(--at-blue);}
.at-nav-actions{display:flex;align-items:center;gap:8px;flex:none;}
.at-cart-btn{position:relative;height:42px;border-radius:var(--r-btn);border:1.5px solid var(--at-ink);
  background:var(--at-ink);color:#fff;display:flex;align-items:center;gap:8px;padding:0 18px;cursor:pointer;
  font-family:inherit;font-size:14.5px;font-weight:500;text-decoration:none;}
.at-cart-btn:hover{color:#fff;text-decoration:none;background:#000;}
.at-cart-count{background:var(--at-blue);color:#fff;min-width:20px;height:20px;border-radius:99px;
  font-size:12px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;padding:0 6px;}
.at-menu-toggle{display:none;width:42px;height:42px;border-radius:50%;border:1px solid rgba(20,20,19,.1);
  background:#fff;align-items:center;justify-content:center;cursor:pointer;}

/* ---------- promo bar ---------- */
.at-promo-bar{background:var(--at-blue);color:#EAEFFF;font-size:13.5px;text-align:center;
  padding:9px 16px;}
.at-promo-bar strong{font-weight:700;}

/* ---------- hero banner ---------- */
.at-hero{padding:clamp(20px,3vw,32px) clamp(14px,4vw,40px) clamp(28px,4vw,48px);}
.at-hero-banner{position:relative;border-radius:var(--r-lg);overflow:hidden;
  min-height:clamp(360px,40vw,480px);display:flex;align-items:center;box-shadow:var(--at-shadow-2);}
.at-hero-banner-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.at-hero-banner-scrim{position:absolute;inset:0;
  background:linear-gradient(90deg,rgba(8,18,58,.82) 0%,rgba(8,18,58,.55) 46%,rgba(8,18,58,.12) 100%);}
.at-hero-banner-content{position:relative;padding:clamp(28px,5vw,64px);max-width:600px;}
.at-hero-banner-content h1{margin-top:16px;color:#fff;}
.at-hero-banner-content h1 .em{color:#9FB6F7;}
.at-hero-banner-content p{font-size:clamp(15px,1.5vw,18px);max-width:480px;margin:18px 0 0;color:#D7DEF4;}
.at-eyebrow--light{color:#BFD0FF;}
.at-eyebrow--light::before{background:#7E9CF0;}
.at-hero-cta{display:flex;gap:14px;flex-wrap:wrap;margin-top:28px;}
.at-hero-trust{display:flex;align-items:center;gap:22px;margin-top:30px;flex-wrap:wrap;font-size:14px;color:var(--at-muted);}
.at-hero-trust span{display:inline-flex;align-items:center;gap:8px;}
.at-hero-trust--light{color:#D7DEF4;}
.at-btn--light{background:#fff;color:var(--at-blue);box-shadow:0 12px 26px rgba(0,0,0,.18);}
.at-btn--light:hover{background:#f4f6ff;text-decoration:none;}
.at-btn--outline-light{background:rgba(255,255,255,.12);color:#fff;border:1.5px solid rgba(255,255,255,.5);backdrop-filter:blur(4px);}
.at-btn--outline-light:hover{background:rgba(255,255,255,.22);text-decoration:none;}

/* ---------- trust bar ---------- */
.at-trustbar{border-top:1px solid var(--at-line);border-bottom:1px solid var(--at-line);background:#fff;}
.at-trustbar-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;padding:22px 0;}
.at-trust-item{display:flex;align-items:center;gap:12px;font-size:14.5px;}
.at-trust-item .ti-t{font-weight:600;}
.at-trust-item .ti-s{font-size:12.5px;color:var(--at-faint);}

/* ---------- section heads ---------- */
.at-section{padding:clamp(40px,6vw,80px) 0;}
.at-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:30px;}
.at-section-head h2{margin:14px 0 0;}
.at-link{display:inline-flex;align-items:center;gap:7px;font-weight:600;color:var(--at-blue);font-size:15px;}

/* ---------- category cards ---------- */
.at-cat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;}
.at-cat-card{background:var(--at-tintA);border-radius:28px;padding:24px 22px 26px;min-height:200px;
  display:flex;flex-direction:column;justify-content:space-between;border:1px solid rgba(20,48,148,.06);
  transition:transform .25s ease,box-shadow .25s ease;}
.at-cat-card:hover{transform:translateY(-4px);box-shadow:var(--at-shadow-2);text-decoration:none;}
.at-cat-icon{width:48px;height:48px;border-radius:14px;background:#fff;display:flex;align-items:center;
  justify-content:center;box-shadow:0 6px 14px rgba(20,48,148,.1);font-size:22px;}
.at-cat-name{font-size:21px;font-weight:700;letter-spacing:-.6px;margin-top:14px;color:var(--at-ink);}
.at-cat-desc{font-size:13.5px;color:var(--at-muted);margin-top:5px;}

/* ---------- WooCommerce: hard container constraint (works for classic OR block templates) ---------- */
.woocommerce #primary,.woocommerce-page #primary,
.woocommerce main,.woocommerce-page main,
.single-product main,.archive.woocommerce main,
.woocommerce-cart main,.woocommerce-checkout main{
  max-width:1280px !important;margin-left:auto !important;margin-right:auto !important;
  padding-left:clamp(16px,4vw,40px) !important;padding-right:clamp(16px,4vw,40px) !important;
  box-sizing:border-box !important;float:none !important;width:auto !important;}

/* ---------- WooCommerce product grids ---------- */
.woocommerce ul.products,.woocommerce-page ul.products{display:grid !important;gap:20px;margin:0 0 30px;padding:0;}
/* Kill WooCommerce's clearfix pseudo-elements — as a grid, ::before/::after
   become phantom grid items that push products to the right. */
.woocommerce ul.products::before,.woocommerce ul.products::after,
.woocommerce-page ul.products::before,.woocommerce-page ul.products::after{display:none !important;content:none !important;}
.woocommerce ul.products li.product,.woocommerce-page ul.products li.product{
  width:auto !important;float:none !important;margin:0 !important;clear:none !important;
  background:#fff;border:1px solid var(--at-line);border-radius:var(--r-md);overflow:hidden;
  display:flex;flex-direction:column;padding:0;text-align:left;
  transition:transform .25s ease,box-shadow .25s ease;}
.woocommerce ul.products li.product:hover{transform:translateY(-4px);box-shadow:var(--at-shadow-2);}
.woocommerce ul.products.columns-4 li.product{}
/* Force 4 per row on desktop regardless of WooCommerce's columns-N class */
.woocommerce ul.products,.woocommerce-page ul.products,
.woocommerce ul.products.columns-1,.woocommerce ul.products.columns-2,
.woocommerce ul.products.columns-3,.woocommerce ul.products.columns-4,
.woocommerce ul.products.columns-5,.woocommerce ul.products.columns-6,
ul.products{grid-template-columns:repeat(4,1fr) !important;}
.woocommerce ul.products li.product a img{margin:0;border-radius:0;background:var(--at-tintB);}
.woocommerce ul.products li.product .woocommerce-loop-product__link{padding:14px;display:flex;flex-direction:column;gap:6px;}
.woocommerce ul.products li.product .woocommerce-loop-product__title{
  font-size:16.5px !important;font-weight:600 !important;letter-spacing:-.4px;padding:14px 16px 0 !important;line-height:1.25;}
.woocommerce ul.products li.product .price{color:var(--at-blue) !important;font-weight:800;font-size:19px;
  padding:0 16px;letter-spacing:-.5px;}
.woocommerce ul.products li.product .price del{color:#A8A8A4;font-weight:400;font-size:14px;margin-right:6px;}
.woocommerce ul.products li.product .star-rating{margin:4px 16px 0;color:var(--at-blue);font-size:13px;}
.woocommerce ul.products li.product .button,.woocommerce ul.products li.product .added_to_cart{
  margin:12px 16px 18px;align-self:flex-start;}
.woocommerce span.onsale{background:var(--at-blue);color:#fff;border-radius:99px;min-height:auto;
  min-width:auto;padding:5px 11px;font-size:11.5px;font-weight:700;text-transform:uppercase;line-height:1;}

/* ---------- single product ---------- */
/* Two-column layout, constrained to the container width (no full-bleed). */
.woocommerce div.product{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  column-gap:clamp(28px,4vw,56px);row-gap:0;align-items:start;}
.woocommerce div.product .woocommerce-product-gallery{width:100% !important;float:none !important;margin:0 !important;}
.woocommerce div.product div.summary{width:100% !important;float:none !important;margin:0 !important;}
/* full-width rows below the two columns */
.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .woocommerce-product-gallery + .summary ~ .woocommerce-tabs,
.woocommerce div.product .related,
.woocommerce div.product .upsells{grid-column:1 / -1;width:100%;}

.woocommerce div.product .product_title{font-size:clamp(28px,3.4vw,40px);letter-spacing:-1.2px;margin-top:0;}
.woocommerce div.product p.price,.woocommerce div.product span.price{color:var(--at-blue);font-weight:800;font-size:30px;}
.woocommerce div.product form.cart .button{padding:16px 30px;font-size:16px;}
.woocommerce #respond input#submit.alt,.woocommerce div.product .single_add_to_cart_button{background:var(--at-blue);width:auto;}
.woocommerce .woocommerce-tabs ul.tabs li.active{background:#fff;border-radius:14px 14px 0 0;}

/* ---------- product gallery (contained, rounded, with arrows) ---------- */
.woocommerce div.product .woocommerce-product-gallery{position:relative;
  background:var(--at-tintB);border-radius:var(--r-lg);overflow:hidden;
  border:1px solid var(--at-line);box-shadow:var(--at-shadow-1);}
.woocommerce div.product .woocommerce-product-gallery figure{margin:0 !important;}
.woocommerce div.product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper{margin:0;}
.woocommerce div.product .woocommerce-product-gallery .woocommerce-product-gallery__image{margin:0 !important;}
.woocommerce div.product .woocommerce-product-gallery .woocommerce-product-gallery__image a{display:block;}
.woocommerce div.product .woocommerce-product-gallery img{width:100% !important;height:clamp(360px,42vw,560px) !important;
  object-fit:contain !important;display:block;padding:clamp(20px,3vw,44px);}
/* zoom magnifier button */
.woocommerce div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger{
  top:18px;right:18px;width:42px;height:42px;background:#fff;border-radius:50%;
  box-shadow:0 6px 18px rgba(20,48,148,.14);opacity:1;}
.woocommerce div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger::before{
  border-color:var(--at-blue);width:9px;height:9px;top:13px;left:13px;}
.woocommerce div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger::after{
  background:var(--at-blue);width:2px;height:8px;top:21px;left:24px;}
/* flexslider arrows -> premium circular buttons */
.woocommerce .flex-control-thumbs{display:flex;gap:12px;margin:14px 0 0;padding:0;flex-wrap:wrap;}
.woocommerce .flex-control-thumbs li{width:78px !important;height:78px;margin:0 !important;list-style:none;}
.woocommerce .flex-control-thumbs li img{width:100%;height:100%;object-fit:contain;background:var(--at-tintB);
  border-radius:16px;border:2px solid transparent;padding:8px;opacity:.7;transition:.2s ease;cursor:pointer;}
.woocommerce .flex-control-thumbs li img.flex-active,.woocommerce .flex-control-thumbs li img:hover{
  opacity:1;border-color:var(--at-blue);}
.woocommerce .flex-direction-nav{margin:0;padding:0;list-style:none;}
.woocommerce .flex-direction-nav a{position:absolute;top:50%;transform:translateY(-50%);
  width:48px;height:48px;border-radius:50%;background:#fff;box-shadow:0 8px 22px rgba(20,48,148,.16);
  display:flex !important;align-items:center;justify-content:center;text-indent:0;overflow:hidden;
  font-size:0;opacity:1;z-index:5;transition:transform .2s ease,background .2s ease;}
.woocommerce .flex-direction-nav a:hover{background:var(--at-blue);}
.woocommerce .flex-direction-nav a::before{font-family:inherit;font-size:22px;line-height:1;
  color:var(--at-blue);content:'';width:11px;height:11px;border-top:2.5px solid var(--at-blue);
  border-left:2.5px solid var(--at-blue);}
.woocommerce .flex-direction-nav a:hover::before{border-color:#fff;}
.woocommerce .flex-direction-nav a.flex-prev{left:18px;}
.woocommerce .flex-direction-nav a.flex-prev::before{transform:rotate(-45deg);margin-left:4px;}
.woocommerce .flex-direction-nav a.flex-next{right:18px;}
.woocommerce .flex-direction-nav a.flex-next::before{transform:rotate(135deg);margin-right:4px;}

/* ---------- premium variation buttons ---------- */
.woocommerce div.product form.cart .variations{display:flex;flex-direction:column;gap:18px;margin:24px 0 8px;
  border:0;width:100%;}
.woocommerce div.product form.cart .variations tbody,
.woocommerce div.product form.cart .variations tr{display:block;width:100%;}
.woocommerce div.product form.cart .variations td,
.woocommerce div.product form.cart .variations th{display:block;width:100%;padding:0;border:0;background:transparent;}
.woocommerce div.product form.cart .variations .label label{font-size:12px;font-weight:700;letter-spacing:.6px;
  text-transform:uppercase;color:var(--at-faint);margin-bottom:10px;display:block;}
/* hide the native select, JS injects swatch buttons after it */
.woocommerce div.product form.cart .variations td.value select{display:none !important;}
.at-swatches{display:flex;flex-wrap:wrap;gap:10px;}
.at-swatch{appearance:none;font-family:inherit;font-size:15px;font-weight:600;letter-spacing:-.2px;
  color:var(--at-ink);background:#fff;border:1.5px solid rgba(20,20,19,.16);border-radius:999px;
  padding:12px 22px;cursor:pointer;transition:transform .18s ease,border-color .18s ease,background .18s ease,color .18s ease,box-shadow .18s ease;}
.at-swatch:hover{border-color:var(--at-blue);transform:translateY(-1px);}
.at-swatch.is-active{background:var(--at-blue);border-color:var(--at-blue);color:#fff;
  box-shadow:0 10px 22px rgba(20,48,148,.24);}
.at-swatch:active{transform:scale(.97);}
.at-swatch[disabled],.at-swatch.is-unavailable{opacity:.38;cursor:not-allowed;text-decoration:line-through;}
.woocommerce div.product form.cart .reset_variations{display:inline-block;margin-top:4px;font-size:13px;
  color:var(--at-blue);font-weight:600;}
.woocommerce div.product .woocommerce-variation-add-to-cart{display:flex;align-items:center;gap:14px;
  flex-wrap:wrap;margin-top:18px;}

/* ---------- description tabs & related: container width ---------- */
.woocommerce div.product .woocommerce-tabs{margin-top:clamp(40px,5vw,64px);padding-top:clamp(28px,3vw,40px);
  border-top:1px solid var(--at-line);}
.woocommerce div.product .woocommerce-tabs .panel{max-width:100%;}
.woocommerce .related.products,.woocommerce .upsells.products{margin-top:clamp(40px,5vw,72px);clear:both;}
.woocommerce .related.products > h2,.woocommerce .upsells.products > h2{
  font-size:clamp(24px,3vw,34px);letter-spacing:-1px;margin-bottom:24px;}
.woocommerce .related.products ul.products,.woocommerce .upsells.products ul.products{
  grid-template-columns:repeat(4,1fr);}

@media(max-width:860px){
  .woocommerce div.product{grid-template-columns:1fr;}
  .woocommerce div.product .woocommerce-product-gallery{position:relative;}
}

/* messages / notices */
.woocommerce-message,.woocommerce-info,.woocommerce-error{border-top-color:var(--at-blue);border-radius:14px;}
.woocommerce-message::before,.woocommerce-info::before{color:var(--at-blue);}

/* cart & checkout */
.woocommerce table.shop_table{border-radius:var(--r-md);border-color:var(--at-line);}
.woocommerce-cart .cart-collaterals .cart_totals,.woocommerce-checkout #order_review{
  background:#fff;border:1px solid var(--at-line);border-radius:var(--r-md);padding:24px;}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,
.woocommerce .select2-container--default .select2-selection--single{
  border:1px solid rgba(20,20,19,.16);border-radius:14px;padding:13px 16px;}

/* ---------- promo bundle banner ---------- */
.at-promo-banner{background:linear-gradient(135deg,var(--at-blue) 0%,var(--at-blue-dark) 100%);
  border-radius:36px;padding:clamp(28px,4vw,52px);color:#fff;position:relative;overflow:hidden;}
.at-promo-banner h2{color:#fff;}
.at-promo-banner p{color:#C7D2F2;max-width:440px;}
.at-promo-banner .at-btn{background:#fff;color:var(--at-blue);}
.at-promo-banner .at-btn:hover{background:#EAEFFF;color:var(--at-blue);}

/* ---------- reviews ---------- */
.at-review-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;}
.at-review{background:#fff;border:1px solid var(--at-line);border-radius:var(--r-md);padding:26px;
  display:flex;flex-direction:column;gap:14px;}
.at-review .stars{color:var(--at-blue);letter-spacing:2px;}
.at-review p{font-size:16px;color:#33322f;margin:0;}
.at-review-author{display:flex;align-items:center;gap:11px;margin-top:auto;}
.at-review-avatar{width:40px;height:40px;border-radius:50%;background:var(--at-tintA);color:var(--at-blue);
  display:flex;align-items:center;justify-content:center;font-weight:700;}

/* ---------- newsletter ---------- */
.at-news{background:#F1EEEA;border-radius:36px;padding:clamp(32px,4vw,56px);
  display:grid;grid-template-columns:1.2fr 1fr;gap:32px;align-items:center;}
.at-news input[type=email]{flex:1;min-width:180px;border:1px solid rgba(20,20,19,.16);
  border-radius:999px;padding:15px 22px;font-family:inherit;font-size:15px;outline:0;background:#fff;}
.at-news form{display:flex;gap:10px;flex-wrap:wrap;}

/* ---------- footer ---------- */
.site-footer{background:var(--at-ink);color:#fff;margin-top:40px;}
.at-footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:36px;padding:clamp(48px,6vw,80px) 0 40px;}
.at-footer-brand img{height:30px;}
.at-footer-grid p{color:#A9A9A6;font-size:14.5px;max-width:300px;}
.at-footer-col h4{font-size:12.5px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;color:#7E7E7B;margin-bottom:14px;}
.at-footer-col a{display:block;color:#D4D4D1;font-size:14.5px;padding:6px 0;}
.at-footer-col a:hover{color:#fff;}
.at-footer-bottom{border-top:1px solid rgba(255,255,255,.14);padding:24px 0 40px;
  display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;color:#7E7E7B;font-size:13px;}
.at-footer-bottom a{color:#7E7E7B;}

/* ---------- generic page/post ---------- */
.at-page{padding:clamp(28px,4vw,56px) 0;}
.at-page .entry-content{max-width:760px;}
.at-page .entry-content img{border-radius:var(--r-md);}

/* ---------- responsive ---------- */
@media(max-width:1024px){
  .at-news,.at-promo-banner-grid{grid-template-columns:1fr !important;}
  .at-cat-grid,.at-trustbar-grid,.at-footer-grid{grid-template-columns:repeat(2,1fr) !important;}
  ul.products,.woocommerce ul.products,.woocommerce ul.products.columns-4{grid-template-columns:repeat(3,1fr) !important;}
  .at-review-grid{grid-template-columns:1fr !important;}
}
@media(max-width:760px){
  .at-menu,.at-cart-label{display:none !important;}
  .at-menu-toggle{display:flex !important;}
  ul.products,.woocommerce ul.products,.woocommerce ul.products.columns-4{grid-template-columns:repeat(2,1fr) !important;}
}
@media(max-width:560px){
  .at-cat-grid,.at-footer-grid{grid-template-columns:1fr !important;}
}

/* mobile menu drawer */
.at-mobile-menu{display:none;max-width:1280px;margin:10px auto 0;background:#fff;border-radius:24px;
  box-shadow:0 18px 40px rgba(0,0,0,.1);padding:14px;}
.at-mobile-menu.open{display:block;}
.at-mobile-menu a{display:block;padding:12px 14px;font-size:17px;font-weight:500;border-radius:14px;}

/* ---------- shop archive: filter sidebar layout ---------- */
.at-shop-layout{max-width:1280px;margin:0 auto;box-sizing:border-box;
  padding:clamp(20px,4vw,40px) clamp(16px,4vw,40px);
  display:grid;grid-template-columns:248px minmax(0,1fr);gap:28px;align-items:start;}
.at-shop-layout .at-shop-main{min-width:0;}
/* neutralise the global woo container constraint inside the column */
.at-shop-layout .woocommerce,.at-shop-layout .woocommerce-page{max-width:none !important;
  margin:0 !important;padding:0 !important;width:auto !important;}
.at-shop-layout .at-shop-main main,.at-shop-layout #primary,.at-shop-layout .at-shop-wrap{
  max-width:none !important;margin:0 !important;padding:0 !important;width:auto !important;}
.at-filters{position:sticky;top:88px;background:#fff;border:1px solid var(--at-line);
  border-radius:22px;padding:22px;display:flex;flex-direction:column;gap:22px;}
.at-filters-head{display:flex;align-items:center;justify-content:space-between;}
.at-filters-title{font-weight:700;font-size:15px;}
.at-filters-clear{font-size:13px;color:var(--at-blue);font-weight:600;}
.at-filter-group{display:flex;flex-direction:column;gap:12px;margin:0;}
.at-filter-label{font-size:12px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;color:#8A8A88;}
.at-filter-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px;}
.at-filter-cat{display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:8px 10px;border-radius:12px;font-size:14.5px;color:var(--at-ink);}
.at-filter-cat:hover{background:var(--at-tintB);text-decoration:none;}
.at-filter-cat.is-active{background:var(--at-blue);color:#fff;}
.at-filter-count{font-size:12.5px;color:#A8A8A4;}
.at-filter-cat.is-active .at-filter-count{color:rgba(255,255,255,.72);}
.at-price-fields{display:flex;align-items:center;gap:8px;}
.at-price-fields input{width:100%;min-width:0;border:1.5px solid var(--at-line);border-radius:12px;
  padding:10px 12px;font-family:inherit;font-size:14.5px;outline:0;box-sizing:border-box;}
.at-price-fields input:focus{border-color:var(--at-blue);}
.at-price-sep{color:#A8A8A4;}
.at-filter-check{display:flex;align-items:center;gap:9px;font-size:14.5px;cursor:pointer;}
.at-filter-check input{width:17px;height:17px;accent-color:var(--at-blue);}
.at-filter-apply{margin-top:2px;background:var(--at-blue);color:#fff;border:0;border-radius:var(--r-btn);
  padding:12px 18px;font-family:inherit;font-size:14.5px;font-weight:600;cursor:pointer;}
.at-filter-apply:hover{background:#000;}
@media(max-width:860px){
  .at-shop-layout{grid-template-columns:1fr;gap:18px;}
  .at-filters{position:static;}
}

/* ---------- shop archive header & pagination ---------- */
.woocommerce-products-header__title.page-title{font-size:clamp(30px,4vw,48px);letter-spacing:-1.4px;margin-bottom:8px;}
.woocommerce .woocommerce-result-count{color:var(--at-faint);font-size:14px;}
.woocommerce .woocommerce-ordering select{border:1.5px solid var(--at-line);border-radius:999px;
  padding:10px 18px;font-family:inherit;background:#fff;}
.woocommerce nav.woocommerce-pagination ul{border:0;display:flex;gap:8px;justify-content:center;}
.woocommerce nav.woocommerce-pagination ul li{border:0;}
.woocommerce nav.woocommerce-pagination ul li a,.woocommerce nav.woocommerce-pagination ul li span{
  border:1.5px solid var(--at-line);border-radius:12px;min-width:44px;height:44px;line-height:44px;padding:0;}
.woocommerce nav.woocommerce-pagination ul li span.current{background:var(--at-blue);color:#fff;border-color:var(--at-blue);}

/* ---------- cart & checkout: centered, container width ---------- */
.woocommerce-cart .at-shop-wrap,.woocommerce-checkout .at-shop-wrap{width:100%;}
.woocommerce-cart .entry-title,.woocommerce-checkout .entry-title{text-align:center;
  font-size:clamp(30px,4vw,46px);letter-spacing:-1.4px;margin-bottom:28px;}

/* CART */
.woocommerce-cart .woocommerce{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);
  gap:clamp(24px,3vw,44px);align-items:start;}
.woocommerce-cart .woocommerce-notices-wrapper{grid-column:1 / -1;}
.woocommerce-cart form.woocommerce-cart-form{margin:0;}
.woocommerce-cart .cart-collaterals{width:100% !important;float:none !important;margin:0 !important;}
.woocommerce-cart .cart-collaterals .cart_totals{width:100% !important;float:none !important;
  background:var(--at-tintB);border:1px solid var(--at-line);border-radius:var(--r-lg);padding:24px 26px;}
.woocommerce-cart .cart_totals h2{font-size:22px;letter-spacing:-.6px;}
.woocommerce table.shop_table{border:1px solid var(--at-line);border-radius:var(--r-md);
  border-collapse:separate;border-spacing:0;overflow:hidden;background:#fff;}
.woocommerce table.shop_table th,.woocommerce table.shop_table td{padding:18px 16px;}
.woocommerce .cart-collaterals .checkout-button{width:100%;margin-top:8px;}

/* CHECKOUT */
.woocommerce-checkout form.checkout{display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:clamp(28px,3.5vw,52px);align-items:start;}
.woocommerce-checkout #customer_details{width:100% !important;float:none !important;}
.woocommerce-checkout #order_review,
.woocommerce-checkout #order_review_heading{width:100% !important;float:none !important;clear:none !important;}
.woocommerce-checkout #order_review{background:var(--at-tintB);border:1px solid var(--at-line);
  border-radius:var(--r-lg);padding:26px;position:sticky;top:90px;}
.woocommerce-checkout #order_review_heading{font-size:22px;letter-spacing:-.6px;margin-bottom:14px;}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,
.woocommerce-checkout select,.select2-container .select2-selection{border:1.5px solid var(--at-line) !important;
  border-radius:12px;padding:13px 15px;font-family:inherit;background:#fff;}
.woocommerce-checkout #place_order{width:100%;padding:16px;font-size:16px;}
.woocommerce form .form-row label{font-weight:600;font-size:14px;}

@media(max-width:860px){
  .woocommerce-cart .woocommerce,.woocommerce-checkout form.checkout{grid-template-columns:1fr;}
  .woocommerce-checkout #order_review{position:static;}
}
