/*
Theme Name: bacsupply
Theme URI: https://bacwater.supply
Description: Single-product storefront for bacsupply. Sterile bacteriostatic water, made for the lab.
Author: bacsupply
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: bacsupply
*/

:root{
  --blue:#004aad;
  --blue-600:#003b8a;
  --blue-2:#2ea5e4;
  --blue-3:#8fd8ff;
  --blue-4:#b1e4ff;
  --ink:#0c1230;
  --ink-soft:#3a4059;
  --muted:#9aa3bd;
  --bg:#eef1f6;
  --card:#ffffff;
  --line:#e6e9f2;
  --radius:28px;
  --radius-sm:14px;
  --pill:999px;
  --shadow:0 30px 60px -30px rgba(12,18,48,.35);
  --shadow-sm:0 10px 30px -12px rgba(12,18,48,.25);
  --maxw:1200px;
  --font:"Inter",system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;font-family:var(--font);color:var(--ink);
  background:var(--bg);
  line-height:1.55;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
}
img{max-width:100%;height:auto;display:block}
a{color:var(--blue);text-decoration:none}
a:hover{color:var(--blue-600)}
.container{max-width:var(--maxw);margin:0 auto;padding:0 24px}
h1,h2,h3{line-height:1.05;letter-spacing:-.02em;margin:0}
p{margin:0 0 1em}

/* buttons */
.btn{display:inline-flex;align-items:center;gap:.55em;border:0;cursor:pointer;
  font-weight:600;font-size:15px;padding:14px 26px;border-radius:var(--pill);
  transition:transform .15s ease,background .15s ease,box-shadow .15s ease;line-height:1}
.btn-primary{background:var(--blue);color:#fff;box-shadow:0 12px 24px -12px rgba(0,74,173,.7)}
.btn-primary:hover{background:var(--blue-600);color:#fff;transform:translateY(-1px)}
.btn-ghost{background:#fff;color:var(--ink);border:1px solid var(--line)}
.btn-ghost:hover{border-color:var(--blue-3);color:var(--blue)}
.btn-light{background:rgba(255,255,255,.14);color:#fff;border:1px solid rgba(255,255,255,.25)}
.btn-light:hover{background:rgba(255,255,255,.24);color:#fff}

/* header / nav */
.site-header{position:sticky;top:0;z-index:50;background:rgba(238,241,246,.82);backdrop-filter:saturate(140%) blur(10px);border-bottom:1px solid rgba(230,233,242,.7)}
.nav{display:flex;align-items:center;gap:28px;height:74px}
.nav .logo{display:flex;align-items:center}
.nav .logo img,.nav .logo svg{height:26px;width:auto;display:block}
.nav .links{display:flex;gap:26px;margin-left:8px}
.nav .links a{color:var(--ink-soft);font-size:14.5px;font-weight:500}
.nav .links a:hover{color:var(--blue)}
.nav .spacer{flex:1}
.nav .cart{color:var(--ink-soft);font-weight:500;font-size:14.5px;display:inline-flex;align-items:center;gap:6px}
.nav .cart:hover{color:var(--blue)}
.nav-toggle{display:none}

/* hero */
.hero{padding:26px 0 10px}
.hero-card{position:relative;background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);
  padding:64px 56px 48px;overflow:hidden}
.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:28px;align-items:center;position:relative;z-index:2}
.eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:700;letter-spacing:.16em;
  text-transform:uppercase;color:var(--blue);background:var(--blue-4);padding:7px 13px;border-radius:var(--pill)}
.hero h1{font-size:clamp(38px,5.4vw,68px);font-weight:800;margin:22px 0 0;letter-spacing:-.03em}
.hero h1 .muted{color:var(--muted);font-weight:800}
.hero .sub{margin:20px 0 28px;font-size:17px;color:var(--ink-soft);max-width:34em}
.hero .cta-row{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.hero .from{font-size:14px;color:var(--muted)}
.hero .from b{color:var(--ink);font-weight:700}

/* hero visual */
.hero-visual{position:relative;display:flex;align-items:center;justify-content:center;min-height:420px}
.hero-visual .spec{position:absolute;right:-3%;top:0;text-align:right;pointer-events:none;z-index:1}
.hero-visual .spec .num{font-size:clamp(92px,13vw,172px);font-weight:800;color:#e9edf6;letter-spacing:-.05em;line-height:.8}
.hero-visual .spec .lbl{display:none}
.hero-visual{min-height:380px}
.vial-wrap{position:relative;z-index:2}
.vial-wrap img,.vial-wrap video,.vial-wrap svg{max-height:470px;width:auto;margin:0 auto}
.vial-wrap video{border-radius:18px}
.glow{position:absolute;inset:auto;left:50%;top:50%;transform:translate(-50%,-50%);
  width:520px;height:520px;background:radial-gradient(circle,rgba(143,216,255,.5),rgba(238,241,246,0) 62%);z-index:1}

/* trust strip */
.trust{margin-top:22px}
.trust .inner{display:flex;align-items:center;justify-content:center;gap:14px 40px;flex-wrap:wrap;
  color:var(--ink-soft);font-size:14.5px;font-weight:500;padding:6px 0}
.trust .inner .t{display:inline-flex;align-items:center;gap:9px}
.trust .inner svg{width:18px;height:18px;color:var(--blue)}
.trust .lead{width:100%;text-align:center;color:var(--muted);font-size:13px;letter-spacing:.04em;margin-bottom:4px}

/* sections */
section.block{padding:76px 0}
.section-head{max-width:640px;margin:0 auto 44px;text-align:center}
.section-head .eyebrow{margin-bottom:14px}
.section-head h2{font-size:clamp(28px,3.6vw,42px);font-weight:800}
.section-head p{margin-top:14px;color:var(--ink-soft);font-size:17px}

.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius-sm);padding:30px;box-shadow:var(--shadow-sm)}
.card .ic{width:46px;height:46px;border-radius:12px;background:var(--blue-4);color:var(--blue);display:flex;align-items:center;justify-content:center;margin-bottom:18px}
.card .ic svg{width:24px;height:24px}
.card h3{font-size:19px;font-weight:700;margin-bottom:8px}
.card p{color:var(--ink-soft);font-size:15px;margin:0}

/* steps */
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;counter-reset:step}
.step{position:relative;background:var(--card);border:1px solid var(--line);border-radius:var(--radius-sm);padding:30px}
.step:before{counter-increment:step;content:"0" counter(step);font-weight:800;font-size:15px;color:var(--blue);
  background:var(--blue-4);width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin-bottom:16px}
.step h3{font-size:18px;font-weight:700;margin-bottom:6px}
.step p{color:var(--ink-soft);font-size:15px;margin:0}

/* pricing */
.pricing{background:linear-gradient(180deg,#fff, #f6f8fc);border:1px solid var(--line);border-radius:var(--radius);padding:44px;box-shadow:var(--shadow-sm)}
.price-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:8px}
.price{border:1px solid var(--line);border-radius:var(--radius-sm);padding:26px;background:#fff;display:flex;flex-direction:column;gap:6px}
.price .size{font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:var(--blue);font-weight:700}
.price .rows{display:flex;justify-content:space-between;align-items:baseline;margin-top:6px}
.price .rows .amt{font-size:30px;font-weight:800;letter-spacing:-.02em}
.price .rows .amt span{font-size:14px;color:var(--muted);font-weight:600}
.price .bundle{color:var(--ink-soft);font-size:14px}
.pricing .foot{margin-top:26px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.pricing .foot .note{color:var(--muted);font-size:13.5px}

/* faq */
.faq{max-width:760px;margin:0 auto}
.faq details{background:#fff;border:1px solid var(--line);border-radius:var(--radius-sm);padding:4px 22px;margin-bottom:12px}
.faq summary{cursor:pointer;list-style:none;padding:18px 0;font-weight:600;font-size:16.5px;display:flex;justify-content:space-between;align-items:center}
.faq summary::-webkit-details-marker{display:none}
.faq summary:after{content:"+";color:var(--blue);font-size:22px;font-weight:400}
.faq details[open] summary:after{content:"–"}
.faq details p{color:var(--ink-soft);font-size:15.5px;padding:0 0 18px}

/* footer */
.site-footer{background:var(--blue);color:#fff;margin-top:30px}
.site-footer .top{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:30px;padding:56px 0 40px}
.site-footer .logo svg,.site-footer .logo img{height:36px;width:auto;margin-bottom:18px;display:block}
.site-footer p{color:rgba(255,255,255,.72);font-size:14.5px;max-width:30em}
.site-footer h4{font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:var(--blue-3);margin:0 0 14px;font-weight:700}
.site-footer a{color:rgba(255,255,255,.86);font-size:14.5px;display:block;margin-bottom:9px}
.site-footer a:hover{color:#fff}
.site-footer .bottom{border-top:1px solid rgba(255,255,255,.16);padding:20px 0;display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;color:rgba(255,255,255,.6);font-size:13px}
.disclaimer{background:var(--blue-600);color:rgba(255,255,255,.72);font-size:12.5px;text-align:center;padding:12px 24px}

/* woocommerce container */
.site-main{padding:40px 0 70px;min-height:50vh}
.site-main.woo .container{max-width:1120px}
.woocommerce .button,.woocommerce a.button,.woocommerce button.button,.woocommerce #respond input#submit,
.woocommerce-page .button{background:var(--blue)!important;color:#fff!important;border-radius:var(--pill)!important;
  font-weight:600!important;padding:13px 24px!important;border:0!important}
.woocommerce .button:hover,.woocommerce a.button:hover,.woocommerce button.button:hover{background:var(--blue-600)!important}
.woocommerce span.price,.woocommerce div.product p.price,.woocommerce div.product span.price{color:var(--ink);font-weight:700}
.woocommerce div.product .product_title{font-size:34px;font-weight:800;letter-spacing:-.02em}
.woocommerce .quantity .qty{border-radius:10px;border:1px solid var(--line);padding:10px}
.woocommerce table.variations td,.woocommerce table.variations th{padding:8px 0}
.woocommerce .woocommerce-message,.woocommerce .woocommerce-info{border-top-color:var(--blue)}
.woocommerce-store-notice,.demo_store{display:none!important}
.select2-container--default .select2-selection--single,.woocommerce select{border-radius:10px!important;border:1px solid var(--line)!important;min-height:44px!important}

/* block cart / checkout (WooCommerce Blocks) */
.wc-block-components-button.contained,.wc-block-components-checkout-place-order-button,
.wp-block-woocommerce-checkout button,.wc-block-cart__submit-button{background:var(--blue)!important;color:#fff!important;border-radius:var(--pill)!important;font-weight:600!important}
.wc-block-components-button.contained:hover,.wc-block-components-checkout-place-order-button:hover{background:var(--blue-600)!important}
.wc-block-components-radio-control__input:checked,.wc-block-components-checkbox__input:checked{accent-color:var(--blue)}
.wc-block-checkout__actions .wc-block-components-checkout-place-order-button{width:100%}

/* ===== classic cart ===== */
.woocommerce-cart .woocommerce-cart-form{min-width:0;margin-bottom:26px}
.woocommerce table.shop_table{border:1px solid var(--line);border-radius:16px;border-collapse:separate;border-spacing:0;background:#fff;overflow:hidden;margin:0}
.woocommerce table.shop_table th{background:#f6f8fc;color:var(--ink-soft);font-size:11px;letter-spacing:.1em;text-transform:uppercase;font-weight:700;padding:14px 18px;border:0;text-align:left}
.woocommerce table.shop_table td{padding:16px 18px;border-top:1px solid var(--line);vertical-align:middle;font-size:15px}
.woocommerce table.cart img{width:56px;height:auto;border-radius:10px;border:1px solid var(--line)}
.woocommerce table.cart .product-thumbnail{width:72px}
.woocommerce .cart_item .product-name a{font-weight:600;color:var(--ink)}
.woocommerce .cart_item .product-name .variation,.woocommerce .cart_item dl.variation{color:var(--muted);font-size:13px;margin-top:4px}
.woocommerce-cart table.cart .quantity .qty{width:64px;text-align:center;padding:9px}
.woocommerce a.remove{color:var(--muted)!important;font-weight:400;border:0;font-size:20px}
.woocommerce a.remove:hover{color:#c0392b!important;background:transparent!important}
.woocommerce .cart .actions{padding:14px 18px!important;background:#fafbfd}
.woocommerce .coupon .input-text{border:1px solid var(--line)!important;border-radius:10px;padding:11px 14px;min-width:150px;margin-right:8px}
.woocommerce-cart .cart-collaterals{width:100%;margin:0;display:flex;justify-content:flex-end}
.woocommerce-cart .cart-collaterals .cart_totals{width:100%;max-width:400px;float:none}
.woocommerce-cart .cart_totals h2{font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-soft);margin-bottom:12px}
.woocommerce-cart .cart_totals table{border:1px solid var(--line)!important;border-radius:16px;background:#fff;overflow:hidden}
.woocommerce-cart .cart_totals table th{background:transparent;text-transform:none;letter-spacing:0;font-size:14px;color:var(--ink-soft);font-weight:500}
.woocommerce-cart .cart_totals table td{font-size:14px}
.woocommerce-cart .cart_totals .order-total th,.woocommerce-cart .cart_totals .order-total .amount{color:var(--ink);font-size:18px;font-weight:700}
.woocommerce .wc-proceed-to-checkout{padding:16px 0 0}
.woocommerce .wc-proceed-to-checkout a.checkout-button{display:block;text-align:center;font-size:16px;padding:15px!important}

/* ===== classic checkout ===== */
.woocommerce-checkout form.checkout{display:block}
.woocommerce-checkout form.checkout:after{content:"";display:block;clear:both}
.woocommerce-checkout #customer_details{width:54%;float:left}
.woocommerce-checkout #order_review_heading{width:41%;float:right;clear:right;margin:0 0 14px}
.woocommerce-checkout #order_review{width:41%;float:right;clear:right}
.woocommerce-checkout .col2-set{width:100%}
.woocommerce-checkout #customer_details .col-1,.woocommerce-checkout #customer_details .col-2{width:100%!important;float:none!important;margin:0 0 8px}
.woocommerce-checkout h3{font-size:18px;font-weight:700;margin-bottom:14px}
.woocommerce-checkout #order_review_heading{margin:0 0 14px}
.woocommerce form .form-row label{font-size:13.5px;color:var(--ink-soft);margin-bottom:6px;display:block}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce-checkout select,.woocommerce-checkout .select2-container .select2-selection--single{border:1px solid var(--line)!important;border-radius:10px!important;padding:12px 14px!important;min-height:46px!important;font-size:15px}
.woocommerce #order_review{background:#fff;border:1px solid var(--line);border-radius:16px;padding:22px;position:sticky;top:92px}
.woocommerce #order_review table.shop_table{border:0;border-radius:0}
.woocommerce #order_review table.shop_table th,.woocommerce #order_review table.shop_table td{padding:12px 2px;border-top:1px solid var(--line);background:transparent}
.woocommerce #order_review table.shop_table thead th{background:transparent}
.woocommerce #payment{background:transparent;border-radius:0}
.woocommerce #payment ul.payment_methods{border:0;padding:0 0 8px}
.woocommerce #payment div.payment_box{background:#f4f7fc;color:var(--ink-soft);font-size:13.5px;line-height:1.5}
.woocommerce #payment div.payment_box:before{border-bottom-color:#f4f7fc}
.woocommerce #place_order{width:100%;font-size:16px;padding:15px!important;margin-top:10px}
.woocommerce-checkout .woocommerce-info,.woocommerce-checkout .woocommerce-error{border-top-color:var(--blue);border-radius:10px}

/* responsive */
@media(max-width:900px){
  .woocommerce-checkout #customer_details,.woocommerce-checkout #order_review,.woocommerce-checkout #order_review_heading{width:100%;float:none}
  .woocommerce #order_review{position:static}
  .hero-card{padding:40px 26px 34px}
  .hero-grid{grid-template-columns:1fr;gap:10px}
  .hero-visual{min-height:340px;margin-top:10px}
  .hero-visual .spec{top:0}
  .cards,.steps{grid-template-columns:1fr}
  .price-grid{grid-template-columns:1fr}
  .site-footer .top{grid-template-columns:1fr;gap:22px;padding:40px 0 26px}
  .nav .links{display:none}
  .nav-toggle{display:inline-flex}
}
@media(max-width:520px){
  .hero h1{font-size:34px}
  .container{padding:0 18px}
  section.block{padding:54px 0}
}
