:root{
  --navy:#14335A;
  --navy-2:#0D2440;
  --blue:#2E74B5;
  --blue-light:#EAF3FB;
  --green:#3EBE63;
  --green-dark:#2E9C4E;
  --ink:#1C2B3A;
  --muted:#5C7085;
  --line:#E1E9F1;
  --paper:#FFFFFF;
  --page-bg:#DCEAF8;
  --radius:12px;
  --maxw:1180px;
}
*{box-sizing:border-box;}
body{
  margin:0; background:var(--page-bg); color:var(--ink);
  font-family:'Nunito Sans', sans-serif; line-height:1.55;
}
h1,h2,h3{font-family:'Alegreya', serif; margin:0; color:var(--navy);}
a{color:inherit; text-decoration:none;}
img,svg{display:block; max-width:100%;}
.wrap{max-width:var(--maxw); margin:0 auto; padding:0 32px;}
:focus-visible{outline:3px solid var(--green); outline-offset:2px;}
button{font-family:inherit; cursor:pointer;}

.site{max-width:1180px; margin:0 auto; background:var(--paper); min-height:100vh;}
@media (min-width:1180px){ .site{box-shadow:0 30px 60px rgba(20,51,90,0.15); border-radius:18px; overflow:hidden; margin:24px auto;} }

/* TOP BAR */
.topbar{display:flex; align-items:center; justify-content:center; padding:16px 36px; background:var(--paper);}
.logo-badge{height:96px; width:auto;}
@media (max-width:600px){ .logo-badge{height:76px;} }

/* NAV */
nav.mainnav{background:var(--blue); display:flex; justify-content:center; flex-wrap:wrap;}
nav.mainnav ul{list-style:none; display:flex; margin:0; padding:0; flex-wrap:wrap;}
nav.mainnav a{display:block; padding:15px 26px; color:#fff; font-weight:700; font-size:14.5px; transition:background .15s ease;}
nav.mainnav li.active a{background:var(--green);}
nav.mainnav a:hover{background:rgba(255,255,255,0.14);}
nav.mainnav li.active a:hover{background:var(--green-dark);}
.cart-toggle{position:relative; display:flex; align-items:center; gap:6px;}
.cart-count{
  background:#fff; color:var(--navy); font-size:11.5px; font-weight:800;
  border-radius:999px; padding:1px 7px; min-width:18px; text-align:center;
}

/* PAGE HERO (interior pages) */
.page-hero{background:linear-gradient(120deg, var(--navy) 0%, #1B4A80 60%, var(--blue) 100%); color:#fff; padding:46px 36px;}
.page-hero h1{color:#fff; font-size:clamp(24px,3.2vw,32px);}
.page-hero p{color:rgba(255,255,255,0.78); margin-top:10px; max-width:60ch;}

/* BUTTONS */
.btn{display:inline-block; font-weight:800; padding:12px 24px; border-radius:999px; font-size:14px; border:none;}
.btn-green{background:var(--green); color:#0B2A14;}
.btn-green:hover{background:var(--green-dark); color:#fff;}
.btn-navy{background:var(--navy); color:#fff;}
.btn-navy:hover{background:var(--navy-2);}
.btn-outline{background:transparent; border:1.5px solid var(--blue); color:var(--blue);}
.btn-outline:hover{background:var(--blue); color:#fff;}
.btn-block{width:100%; text-align:center;}
.btn[disabled]{opacity:0.5; cursor:not-allowed;}

/* FOOTER */
footer{background:linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); color:#fff; padding:52px 36px 0; margin-top:60px;}
.foot4{display:grid; grid-template-columns:repeat(4,1fr); gap:32px;}
@media (max-width:820px){ .foot4{grid-template-columns:repeat(2,1fr);} }
@media (max-width:480px){ .foot4{grid-template-columns:1fr;} }
footer h4{font-family:'Nunito Sans'; font-weight:800; font-size:14.5px; color:#fff; margin-bottom:16px;}
footer ul{list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:10px;}
footer a, footer li{font-size:13.5px; color:rgba(255,255,255,0.75);}
footer a:hover{color:#fff;}
.foot-contact li{display:flex; align-items:center; gap:9px;}
.foot-contact svg{width:15px; height:15px; stroke:var(--green); flex-shrink:0;}
.copy{text-align:center; padding:22px 0; margin-top:40px; border-top:1px solid rgba(255,255,255,0.12); font-size:12.5px; color:rgba(255,255,255,0.55);}

/* CART DRAWER */
.cart-overlay{
  position:fixed; inset:0; background:rgba(13,36,64,0.45); z-index:90;
  opacity:0; pointer-events:none; transition:opacity .2s ease;
}
.cart-overlay.open{opacity:1; pointer-events:auto;}
.cart-drawer{
  position:fixed; top:0; right:0; height:100%; width:min(400px, 92vw);
  background:#fff; z-index:91; box-shadow:-10px 0 30px rgba(0,0,0,0.2);
  transform:translateX(100%); transition:transform .25s ease;
  display:flex; flex-direction:column;
}
.cart-drawer.open{transform:translateX(0);}
.cart-head{padding:20px 22px; border-bottom:1px solid var(--line); display:flex; justify-content:space-between; align-items:center;}
.cart-head h3{font-family:'Nunito Sans'; font-weight:800; font-size:17px; color:var(--navy);}
.cart-close{background:none; border:none; font-size:22px; color:var(--muted); line-height:1;}
.cart-items{flex:1; overflow-y:auto; padding:14px 22px;}
.cart-empty{color:var(--muted); font-size:14px; text-align:center; padding:40px 0;}
.wholesale-banner{
  background:var(--blue-light); color:var(--navy); font-size:12.5px; font-weight:600;
  padding:10px 12px; border-radius:8px; margin-bottom:10px; text-align:center;
}
.wholesale-banner.ok{background:var(--green); color:#0B2A14;}
.ws-tag{
  display:inline-block; background:var(--green); color:#0B2A14; font-size:10px; font-weight:800;
  text-transform:uppercase; padding:1px 6px; border-radius:999px; margin-left:4px; vertical-align:middle;
}
.cart-item{display:flex; justify-content:space-between; align-items:flex-start; gap:10px; padding:12px 0; border-bottom:1px solid var(--line); font-size:13.5px;}
.cart-item .ci-name{font-weight:700; color:var(--navy);}
.cart-item .ci-meta{color:var(--muted); font-size:12.5px; margin-top:2px;}
.cart-item .ci-qty{display:flex; align-items:center; gap:8px; margin-top:8px;}
.qty-btn{width:22px; height:22px; border-radius:6px; border:1px solid var(--line); background:#fff; font-weight:700; font-size:13px; display:grid; place-items:center;}
.ci-remove{color:#C0392B; font-size:12px; font-weight:700; background:none; border:none; padding:0; margin-top:8px;}
.cart-foot{padding:18px 22px; border-top:1px solid var(--line);}
.delivery-fields{display:flex; flex-direction:column; gap:8px; margin-bottom:16px;}
.delivery-fields input, .delivery-fields textarea{
  width:100%; border:1px solid var(--line); border-radius:8px; padding:9px 11px;
  font-family:inherit; font-size:13px; color:var(--ink);
}
.delivery-fields textarea{min-height:52px; resize:vertical;}
.delivery-fields .df-label{font-size:11.5px; font-weight:800; color:var(--navy); text-transform:uppercase; letter-spacing:.03em; margin:2px 0 -2px;}
.field-error{border-color:#C0392B !important;}
.shipping-options{display:flex; flex-direction:column; gap:8px; margin:2px 0;}
.ship-option{
  display:flex; align-items:flex-start; gap:9px; font-size:12.5px; color:var(--ink);
  border:1px solid var(--line); border-radius:8px; padding:9px 11px; cursor:pointer;
}
.ship-option input{width:auto; margin-top:2px;}
.ship-option:has(input:checked){border-color:var(--blue); background:var(--blue-light);}
.cart-total{display:flex; justify-content:space-between; font-weight:800; color:var(--navy); font-size:16px; margin-bottom:14px;}
.cart-note{font-size:12px; color:var(--muted); margin-top:10px; text-align:center;}

/* PRODUCTS */
.cat-nav{display:flex; gap:10px; flex-wrap:wrap; padding:28px 36px 0;}
.cat-pill{padding:9px 18px; border-radius:999px; border:1px solid var(--line); font-size:13.5px; font-weight:700; color:var(--navy); background:#fff;}
.cat-pill.on{background:var(--navy); color:#fff; border-color:var(--navy);}
.product-section{padding:36px 36px 8px;}
.product-section h2{font-size:22px; margin-bottom:4px;}
.product-section .cat-desc{color:var(--muted); font-size:14px; margin-bottom:22px;}
.product-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:18px;}
@media (max-width:900px){ .product-grid{grid-template-columns:repeat(2,1fr);} }
@media (max-width:560px){ .product-grid{grid-template-columns:1fr;} }
.product-card{border:1px solid var(--line); border-radius:var(--radius); padding:16px; background:#fff; display:flex; flex-direction:column;}
.pimg{width:100%; aspect-ratio:1/1; object-fit:cover; border-radius:8px; margin-bottom:14px; background:#F4F8FB;}
.pimg-placeholder{display:flex; align-items:center; justify-content:center; font-size:12px; color:var(--muted); text-align:center; border:1px dashed var(--line);}
.product-card .pname{font-weight:800; font-size:14.5px; color:var(--navy); margin-bottom:3px;}
.product-card .pformat{font-size:12.5px; color:var(--muted); margin-bottom:12px;}
.product-card .pprice{font-family:'Alegreya', serif; font-weight:700; font-size:22px; color:var(--blue); margin-bottom:4px;}
.product-card .pprice .cur{font-size:13px; font-weight:600; color:var(--muted);}
.pwholesale{font-size:11.5px; color:var(--green-dark); font-weight:700; margin-bottom:12px;}
.product-card.out-of-stock{opacity:0.65;}
.product-card.out-of-stock .pimg{filter:grayscale(60%);}
.stock-badge{
  display:inline-block; background:#F4E3E3; color:#B23A3A; font-size:11.5px; font-weight:800;
  padding:3px 10px; border-radius:999px; margin-bottom:10px;
}
.add-btn[disabled]{background:#C7D0D8; color:#fff; cursor:not-allowed;}
.add-btn{margin-top:auto; background:var(--navy); color:#fff; border:none; border-radius:8px; padding:10px; font-weight:700; font-size:13.5px;}
.add-btn:hover{background:var(--navy-2);}
.add-btn.added{background:var(--green-dark);}

/* CONTACT PAGE */
.contact-grid2{display:grid; grid-template-columns:1fr 1fr; gap:40px; padding:44px 36px;}
@media (max-width:820px){ .contact-grid2{grid-template-columns:1fr;} }
.info-card{background:var(--blue-light); border-radius:var(--radius); padding:26px;}
.info-card h3{font-size:18px; margin-bottom:16px;}
.info-list{list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:14px;}
.info-list li{display:flex; align-items:flex-start; gap:10px; font-size:14.5px; color:var(--ink);}
.info-list svg{width:18px; height:18px; stroke:var(--blue); flex-shrink:0; margin-top:2px;}
form.contact-form{display:flex; flex-direction:column; gap:14px;}
form.contact-form label{font-size:13px; font-weight:700; color:var(--navy); display:block; margin-bottom:6px;}
form.contact-form input, form.contact-form textarea{
  width:100%; border:1px solid var(--line); border-radius:8px; padding:11px 13px; font-family:inherit; font-size:14px;
}
form.contact-form textarea{min-height:110px; resize:vertical;}

/* HOME HERO */
.hero{position:relative; background:linear-gradient(120deg, var(--navy) 0%, #1B4A80 55%, var(--blue) 100%); color:#fff; padding:60px 36px 50px; overflow:hidden;}
.hero-inner{display:grid; grid-template-columns:1.05fr 0.95fr; gap:36px; align-items:center;}
@media (max-width:860px){ .hero-inner{grid-template-columns:1fr;} }
.hero h1{color:#fff; font-size:clamp(26px,3.6vw,34px); line-height:1.28; max-width:20ch;}
.hero-badge{display:inline-flex; align-items:center; gap:8px; margin-top:22px; background:var(--green); color:#0B2A14; font-weight:800; font-size:14px; padding:12px 20px; border-radius:8px;}
.hero-illustration{position:relative; aspect-ratio:4/3; border-radius:14px; background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.16); overflow:hidden;}
.hero-illustration svg{width:78%;}
.cat4{display:grid; grid-template-columns:repeat(4,1fr); gap:20px;}
@media (max-width:760px){ .cat4{grid-template-columns:repeat(2,1fr);} }
.cat-item{border:1px solid var(--line); border-radius:var(--radius); padding:18px 18px 22px; text-align:center; background:#fff;}
.cat-img{width:100%; aspect-ratio:1/1; object-fit:contain; margin:0 0 10px;}
.cat-item h4{font-weight:800; font-size:15px; color:var(--navy); margin:0 0 8px;}
.cat-item a{font-size:13px; color:var(--blue); font-weight:700;}
.cta-strip{background:var(--green); color:#fff; padding:34px 36px; text-align:center; margin-top:44px;}
.cta-strip h3{color:#fff; font-size:clamp(19px,2.4vw,24px); margin-bottom:14px;}
