/* Agentic Essentials child theme overrides for Storefront */
:root{
  --ae-midnight:#0B1020;--ae-blue:#2F5BFF;--ae-blue-600:#2347E0;--ae-blue-100:#E6ECFF;--ae-violet:#7C5CFF;
  --ae-mint:#22D3A6;--ae-slate:#5B6478;--ae-line:#E3E7F0;--ae-cloud:#F4F6FB;--ae-warning:#F5A524;--ae-periwinkle:#9DB2FF;
  --ae-gradient:linear-gradient(135deg,#2F5BFF 0%,#7C5CFF 100%);
  --ae-radius:20px;--ae-shadow:0 1px 2px rgba(11,16,32,.06),0 8px 24px rgba(11,16,32,.06);
  --ae-display:'Space Grotesk',ui-sans-serif,system-ui,sans-serif;--ae-body:'Inter',ui-sans-serif,system-ui,sans-serif;
}
body{font-family:var(--ae-body);color:var(--ae-midnight)}
h1,h2,h3,h4,.ae-display{font-family:var(--ae-display);letter-spacing:-.02em;line-height:1.15}

/* ---------- Header: one row ---------- */
.site-header{padding-top:1rem!important;padding-bottom:0!important;border-bottom:1px solid var(--ae-line);background:#fff}
.site-header .col-full{display:flex;align-items:center;flex-wrap:wrap;gap:1.5rem}
.site-header .site-branding{margin:0!important;width:auto!important;float:none!important}
.site-header .site-branding img{max-height:40px;width:auto}
.storefront-primary-navigation{flex:1;background:none!important;margin:0!important;padding:0!important}
.storefront-primary-navigation .col-full{padding:0!important}
.main-navigation{width:auto!important;float:none!important;margin:0!important}
.main-navigation ul.menu>li>a{font-weight:500;color:var(--ae-midnight);padding:1.25rem .9rem}
.main-navigation ul.menu>li.current-menu-item>a,.main-navigation ul.menu>li>a:hover{color:var(--ae-blue)}
.ae-header-actions{display:flex;align-items:center;gap:.75rem;margin-left:auto}
.ae-header-search{color:var(--ae-midnight);display:inline-flex;padding:.5rem}
.site-header .site-header-cart,.site-header .site-search,.secondary-navigation{display:none!important}

/* ---------- Buttons ---------- */
.ae-btn,.wp-block-button__link,button.ae-btn{display:inline-flex;align-items:center;justify-content:center;gap:.4em;
  font-family:var(--ae-display);font-weight:700;font-size:1rem;line-height:1.2;padding:.85rem 1.4rem;border-radius:12px;
  text-decoration:none!important;border:1px solid transparent;transition:background .15s,border-color .15s;cursor:pointer}
.ae-btn--primary,.wp-block-button:not(.is-style-outline) .wp-block-button__link{background:var(--ae-blue);color:#fff!important}
.ae-btn--primary:hover,.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover{background:var(--ae-blue-600)}
.ae-btn--secondary,.wp-block-button.is-style-outline .wp-block-button__link{background:#fff;color:var(--ae-midnight)!important;border-color:var(--ae-line)}
.ae-btn--sm{padding:.6rem 1rem;font-size:.9rem}
.ae-btn:focus-visible,a:focus-visible,button:focus-visible{outline:3px solid var(--ae-blue);outline-offset:2px}

/* ---------- Home hero ---------- */
.ae-hero{display:grid;grid-template-columns:1.1fr 1fr;gap:3rem;align-items:center;background:var(--ae-gradient);border-radius:24px;padding:4rem 3.5rem;color:#fff;overflow:hidden}
.ae-hero .ae-eyebrow{color:rgba(255,255,255,.85);font-weight:600;letter-spacing:.02em}
.ae-hero h1{color:#fff;font-size:clamp(2.5rem,5vw,4rem);margin:.5rem 0 1rem}
.ae-hero p{color:rgba(255,255,255,.92);font-size:1.15rem}
.ae-hero .ae-trust{font-size:.9rem;color:rgba(255,255,255,.8)}
.ae-hero-cards{position:relative;min-height:380px}
.ae-hero-card{position:absolute;width:78%;background:#fff;border-radius:16px;box-shadow:0 20px 50px rgba(11,16,32,.25);overflow:hidden}
.ae-hero-card img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;object-position:top}
.ae-hero-card__label{display:flex;gap:.4rem;align-items:center;padding:.6rem .9rem;font-size:.85rem;color:var(--ae-midnight)}
.ae-hero-card__label span:last-child{color:var(--ae-slate)}
.ae-tick{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--ae-mint);color:var(--ae-midnight);font-size:12px}
.ae-hero-card--1{top:0;left:0;transform:rotate(-3deg);z-index:1}
.ae-hero-card--2{top:70px;right:0;transform:rotate(2deg);z-index:2}
.ae-hero-card--3{top:150px;left:8%;z-index:3}
@media (max-width:900px){.ae-hero{grid-template-columns:1fr;padding:2.5rem 1.5rem}.ae-hero-cards{min-height:300px}}

/* Remove top gap before hero + empty spacer groups */
.home .site-content{padding-top:1.5rem}
.home .entry-header{display:none}

/* ---------- Product cards (shop/category/[products]) ---------- */
ul.products{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1.5rem;margin:0!important}
ul.products::before,ul.products::after{display:none!important}
ul.products li.product{width:auto!important;margin:0!important;float:none!important;display:flex;flex-direction:column;text-align:left!important;
  background:#fff;border:1px solid var(--ae-line);border-radius:var(--ae-radius);box-shadow:var(--ae-shadow);padding:1rem 1rem 1.25rem;position:relative}
ul.products li.product a.woocommerce-LoopProduct-link{display:flex;flex-direction:column;flex:1;text-decoration:none;color:inherit}
ul.products li.product img{aspect-ratio:16/10;object-fit:cover;object-position:top;border-radius:12px;margin:0 0 1rem!important;border:1px solid var(--ae-line)}
ul.products li.product .woocommerce-loop-product__title{font-family:var(--ae-display);font-size:1.35rem!important;font-weight:700;margin:.25rem 0 .5rem;padding:0}
.ae-badge{position:absolute;top:1.6rem;left:1.6rem;z-index:2;background:var(--ae-mint);color:var(--ae-midnight);font-weight:600;font-size:.8rem;padding:.25rem .7rem;border-radius:999px}
.ae-badge--adult{background:var(--ae-warning)}
.ae-card__job{display:block;color:var(--ae-blue);font-weight:600;font-size:.9rem}
.ae-card__blurb{color:var(--ae-slate);margin:0 0 .75rem}
.ae-card__price{font-size:.85rem;color:var(--ae-midnight);margin:auto 0 1rem}
.ae-card__actions{display:flex;gap:.5rem;flex-wrap:wrap}
.ae-card__actions .ae-btn{flex:1;padding:.7rem .9rem;font-size:.9rem}
.woocommerce-result-count{color:var(--ae-slate)}
.price,.add_to_cart_button,.added_to_cart,.quantity,.single_add_to_cart_button{display:none!important}

/* ---------- Single product = review ---------- */
.single-product div.product .woocommerce-product-gallery img{border-radius:16px;border:1px solid var(--ae-line)}
.single-product div.product .product_title{font-size:clamp(2rem,4vw,2.75rem)}
.ae-review__job{color:var(--ae-blue);font-weight:600;margin:-.5rem 0 1rem}
.ae-review__cta{display:flex;gap:.75rem;flex-wrap:wrap;margin:1.25rem 0 .5rem}
.ae-review__independent{font-size:.85rem;color:var(--ae-slate)}
.ae-disclosure{font-size:.85rem;background:var(--ae-cloud);border-radius:10px;padding:.6rem .9rem;color:var(--ae-slate)}
.ae-review__body{clear:both;max-width:760px;margin:3rem auto 0}
.ae-review__body table{border:1px solid var(--ae-line);border-radius:12px;overflow:hidden}
.ae-review__body th{background:var(--ae-midnight);color:#fff}
.ae-sticky-cta{display:none}
@media (max-width:768px){
  .ae-sticky-cta{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:50;gap:.75rem;align-items:center;justify-content:space-between;
    background:#fff;border-top:1px solid var(--ae-line);padding:.6rem 1rem;box-shadow:0 -6px 20px rgba(11,16,32,.08)}
  .ae-sticky-cta span{font-weight:700;font-family:var(--ae-display)}
  .single-product .site-footer{padding-bottom:5rem}
}

/* ---------- Post grids (guides/blog/news) ---------- */
.ae-post-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1.5rem}
.ae-post-card{display:flex;flex-direction:column;gap:.4rem;background:#fff;border:1px solid var(--ae-line);border-radius:var(--ae-radius);padding:1rem;text-decoration:none!important;color:inherit;box-shadow:var(--ae-shadow)}
.ae-post-card img{border-radius:12px;aspect-ratio:16/9;object-fit:cover}
.ae-post-card h3{font-size:1.2rem;margin:0}
.ae-post-card p,.ae-post-card__meta{color:var(--ae-slate);font-size:.9rem;margin:0}

/* ---------- Lead form ---------- */
.ae-lead-form{display:flex;flex-wrap:wrap;gap:.5rem;max-width:520px}
.ae-lead-form input[type=email]{flex:1;min-width:220px;border:1px solid var(--ae-line);border-radius:12px;padding:.8rem 1rem;background:#fff}
.ae-lead-form__small{flex-basis:100%;font-size:.8rem;color:inherit;opacity:.8;margin:.25rem 0 0}
.ae-hp{position:absolute!important;left:-9999px!important}

/* ---------- Footer ---------- */
.site-footer{background:var(--ae-midnight)!important;color:#B7C0D6!important;padding:4rem 0 2rem!important}
.ae-footer{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:2.5rem}
.ae-footer h2{color:#fff;font-size:1rem;margin-bottom:1rem}
.ae-footer ul{list-style:none;margin:0;padding:0}
.ae-footer li{margin:.4rem 0}
.ae-footer a,.ae-footer__legal a{color:#fff!important;text-decoration:none}
.ae-footer a:hover{color:var(--ae-periwinkle)!important}
.ae-footer__brand p{margin:1rem 0}
.ae-footer__legal{border-top:1px solid #232B42;margin-top:3rem;padding-top:1.5rem;font-size:.85rem}
.site-info,.storefront-handheld-footer-bar{display:none!important}
@media (max-width:900px){.ae-footer{grid-template-columns:1fr 1fr}.ae-footer__brand{grid-column:1/-1}}

/* ---------- Age gate ---------- */
.ae-agegate{position:fixed;inset:0;z-index:1000;background:rgba(11,16,32,.75);display:grid;place-items:center;padding:1rem}
.ae-agegate[hidden]{display:none}
.ae-agegate__box{background:#fff;border-radius:20px;padding:2rem;max-width:440px;text-align:center}
.ae-agegate__box .ae-btn{margin:.4rem}

/* ---------- Generic page polish ---------- */
.page .entry-header .entry-title{font-size:clamp(2rem,4vw,3rem)}
.storefront-breadcrumb{margin-bottom:1.5rem;padding:1rem 0;background:none}
.entry-content p,.entry-content li{max-width:72ch}
