/*
Theme Name: Steelport Containers
Description: WooCommerce theme for a shipping container supplier serving Canada.
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: steelport
*/

/* Palette: deep charcoal steel + Canadian red accent */
:root{
	--ink:#12212e; --steel:#1a2535; --steel-900:#0e1720; --steel-700:#2b3c50;
	--accent:#c0392b; --accent-600:#a93226;
	--bg:#fff; --soft:#f4f6f9; --tint:#e5ecf1; --line:#d4dde5; --muted:#5a7389;
	--wrap:1200px; --radius:8px;
	--shadow:0 1px 2px rgba(14,23,32,.06),0 8px 24px rgba(14,23,32,.09);
	--s0:clamp(1rem,.97rem + .15vw,1.0625rem);
	--s1:clamp(1.12rem,1.05rem + .35vw,1.3rem);
	--s2:clamp(1.35rem,1.22rem + .65vw,1.8rem);
	--s3:clamp(1.65rem,1.4rem + 1.25vw,2.35rem);
	--s4:clamp(1.9rem,1.5rem + 2.1vw,3rem);
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
html,body{max-width:100%;overflow-x:hidden}
@media (prefers-reduced-motion:reduce){*{animation-duration:.001ms!important;transition-duration:.001ms!important}}
body{margin:0;background:var(--bg);color:var(--ink);font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;font-size:var(--s0);line-height:1.65;-webkit-font-smoothing:antialiased}
img,svg{max-width:100%;height:auto;display:block}
img,table,pre,iframe{max-width:100%}
h1,h2,h3,h4,p,li,a,td,th{overflow-wrap:anywhere}
a{color:var(--accent-600);text-underline-offset:2px}
a:hover{color:var(--steel)}
h1,h2,h3,h4{line-height:1.18;margin:0 0 .5em;color:var(--steel);font-weight:750;letter-spacing:-.015em}
h1{font-size:var(--s4)} h2{font-size:var(--s3)} h3{font-size:var(--s2)} h4{font-size:var(--s1)}
p{margin:0 0 1.1em}
:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px)}
.skip-link{position:absolute;left:-9999px;background:var(--steel);color:#fff;padding:12px 18px}
.skip-link:focus{left:0;color:#fff}

.wrap{width:min(100% - 2rem,var(--wrap));margin-inline:auto}
.section{padding:clamp(2.75rem,6vw,4.75rem) 0}
.section--soft{background:var(--soft)}
.section--steel{background:var(--steel-900);color:#c3d2de}
.section--steel h2,.section--steel h3{color:#fff}
.eyebrow{display:inline-block;font-size:.78rem;font-weight:750;letter-spacing:.15em;text-transform:uppercase;color:var(--accent);margin-bottom:.7rem}
.section__head{max-width:46rem;margin-bottom:2.25rem}
.section__head p{color:var(--muted);font-size:var(--s1);margin:0}
.section--steel .section__head p{color:#93a9ba}

.btn{display:inline-flex;align-items:center;gap:.5rem;padding:.8rem 1.5rem;border-radius:var(--radius);font-weight:700;text-decoration:none;border:2px solid transparent;transition:background-color .18s,color .18s,border-color .18s}
.btn--primary{background:var(--accent);color:#fff}
.btn--primary:hover{background:var(--accent-600);color:#fff}
.btn--steel{background:var(--steel);color:#fff}
.btn--steel:hover{background:var(--steel-700);color:#fff}
.btn--ghost{border-color:rgba(255,255,255,.5);color:#fff}
.btn--ghost:hover{background:rgba(255,255,255,.12);color:#fff}
.btn--outline{border-color:var(--line);color:var(--steel);background:#fff}
.btn--outline:hover{border-color:var(--accent);color:var(--accent-600)}

/* header */
.site-header{position:sticky;top:0;z-index:100;background:#fff;border-bottom:1px solid var(--line)}
.hdr{display:flex;align-items:center;gap:1.25rem;min-height:76px}
.brand{display:flex;align-items:center;gap:.65rem;text-decoration:none;margin-right:auto;font-weight:800;color:var(--steel);font-size:1.1rem;line-height:1.1}
.brand img{max-height:54px;width:auto}
.brand span{display:block;font-size:.72rem;font-weight:500;color:var(--muted)}
.nav ul{display:flex;align-items:center;gap:.2rem;list-style:none;margin:0;padding:0}
.nav a{display:block;padding:.5rem .75rem;border-radius:6px;color:var(--steel);font-weight:600;text-decoration:none;font-size:.95rem}
.nav a:hover{background:var(--tint)}
.nav .current-menu-item>a{color:var(--accent-600)}
.navbtn{display:inline-flex;flex-direction:column;justify-content:center;gap:5px;width:44px;height:44px;padding:0 10px;background:none;border:1px solid var(--line);border-radius:7px;cursor:pointer}
.navbtn span{display:block;height:2px;background:var(--steel);border-radius:2px;transition:transform .2s,opacity .2s}
.navbtn[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.navbtn[aria-expanded="true"] span:nth-child(2){opacity:0}
.navbtn[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
@media(min-width:1040px){.navbtn{display:none}}
@media(max-width:1039px){
	.nav{
		position:fixed;inset:auto 0 auto 0;top:var(--navtop,76px);
		background:transparent;border-bottom:0;box-shadow:none;
		max-height:0;overflow:hidden;visibility:hidden;pointer-events:none;
		transition:max-height .25s ease;
	}
	.nav.is-open{
		max-height:80vh;overflow-y:auto;visibility:visible;pointer-events:auto;
		background:#fff;border-bottom:1px solid var(--line);box-shadow:var(--shadow);
	}
	.nav ul{flex-direction:column;align-items:stretch;gap:0;padding:.5rem 1rem 1.25rem}
	.nav a{padding:.9rem .5rem;border-bottom:1px solid var(--line);border-radius:0;font-size:1.05rem}
	.hdr{min-height:64px;gap:.7rem}
	.brand img{max-height:40px}
	.brand span{display:none}
}

/* hero */
.hero{position:relative;background:linear-gradient(130deg,#0e1720 0%,#1a2535 52%,#2b3c50 100%);color:#fff;overflow:hidden}
.hero--has-slides{background:#0e1720}
.hero__slides{position:absolute;inset:0;z-index:0;overflow:hidden}
.hero__slide{position:absolute;inset:0;background-size:cover;background-position:center;opacity:0;animation:cvxFade 24s infinite}
.hero__slide:nth-child(1){animation-delay:0s}
.hero__slide:nth-child(2){animation-delay:6s}
.hero__slide:nth-child(3){animation-delay:12s}
.hero__slide:nth-child(4){animation-delay:18s}
@keyframes cvxFade{0%{opacity:0;transform:scale(1.06)}6%{opacity:1}25%{opacity:1;transform:scale(1)}31%{opacity:0}100%{opacity:0}}
.hero--has-slides::before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(100deg,rgba(14,23,32,.92) 0%,rgba(14,23,32,.80) 38%,rgba(14,23,32,.48) 68%,rgba(43,60,80,.38) 100%)}
.hero::after{content:"";position:absolute;inset:0;z-index:2;background:radial-gradient(55rem 28rem at 88% -15%,rgba(192,57,43,.22),transparent 62%);pointer-events:none}
.hero__in{position:relative;z-index:3;padding:clamp(3rem,8vw,5.5rem) 0}
.hero h1{color:#fff;margin-bottom:.55rem;max-width:20ch}
.hero p{color:rgba(255,255,255,.9);font-size:var(--s1);max-width:40rem}
.hero .eyebrow{color:#e87c72}
.hero__act{display:flex;flex-wrap:wrap;gap:.8rem;margin-top:1.8rem}
.hero__stats{display:flex;flex-wrap:wrap;gap:1.2rem 2.5rem;margin-top:2.2rem;padding-top:1.4rem;border-top:1px solid rgba(255,255,255,.18)}
.hero__stats strong{display:block;font-size:1.65rem;color:#fff;line-height:1.1}
.hero__stats span{font-size:.85rem;color:rgba(255,255,255,.7)}
@media(prefers-reduced-motion:reduce){.hero__slide{animation:none}.hero__slide:nth-child(1){opacity:1}}

/* grids */
.grid{display:grid;gap:1.25rem}
.grid--2,.grid--3,.grid--4{grid-template-columns:repeat(2,1fr)}
@media(max-width:479px){.grid--2{grid-template-columns:1fr}}
@media(min-width:768px){.grid--3{grid-template-columns:repeat(3,1fr)}}
@media(min-width:1040px){.grid--4{grid-template-columns:repeat(4,1fr)}}

.cat{position:relative;display:block;border-radius:var(--radius);overflow:hidden;background:var(--steel);text-decoration:none;min-height:190px;border:1px solid var(--line)}
.cat img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0;opacity:.5;transition:transform .4s,opacity .3s}
.cat:hover img{transform:scale(1.05);opacity:.38}
.cat__b{position:relative;z-index:1;padding:1.5rem;display:flex;flex-direction:column;justify-content:flex-end;min-height:190px}
.cat__b h3{color:#fff;font-size:1.12rem;margin:0 0 .2rem}
.cat__b span{color:rgba(255,255,255,.85);font-size:.88rem}

.pcard{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;transition:border-color .2s,box-shadow .2s,transform .2s}
.pcard:hover{border-color:#aec3d4;box-shadow:var(--shadow);transform:translateY(-2px)}
.pcard__m{aspect-ratio:4/3;background:var(--tint);overflow:hidden}
.pcard__m img{width:100%;height:100%;object-fit:cover;transition:transform .35s}
.pcard:hover .pcard__m img{transform:scale(1.04)}
.pcard__b{padding:1.1rem 1.15rem 1.25rem;display:flex;flex-direction:column;flex:1}
.pcard h3{font-size:1.02rem;line-height:1.3;margin:0 0 .4rem}
.pcard h3 a{color:var(--steel);text-decoration:none}
.pcard h3 a:hover{color:var(--accent-600)}
.pcard .price{font-weight:800;color:var(--steel);font-size:1.15rem;margin:.1rem 0 .9rem}
.pcard .cvx-quote{margin-top:auto;display:flex;width:100%;justify-content:center}

.feat{display:grid;gap:2rem;align-items:center}
@media(min-width:900px){.feat{grid-template-columns:1fr 1fr;gap:3rem}.feat--rev>div:first-child{order:2}}
.feat ul{padding-left:1.15rem;color:var(--muted)}
.feat li+li{margin-top:.45rem}

.grade{background:#fff;border:1px solid var(--line);border-left:4px solid var(--accent);border-radius:var(--radius);padding:1.4rem 1.5rem}
.grade h3{font-size:1.05rem;margin-bottom:.35rem;text-transform:uppercase;letter-spacing:.04em}
.grade p{color:var(--muted);margin:0;font-size:.95rem}

.page-hero{background:linear-gradient(130deg,#0e1720,#1a2535 72%);color:#fff;padding:clamp(2.5rem,5vw,4rem) 0}
.page-hero h1{color:#fff;margin:0}
.page-hero .crumbs{font-size:.85rem;color:rgba(255,255,255,.65);margin-bottom:.7rem}
.page-hero .crumbs a{color:rgba(255,255,255,.85)}
.prose{max-width:46rem}
.prose>*+*{margin-top:1.05em}
.prose h2{margin-top:2em}
.prose table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch;width:100%;border-collapse:collapse}
.prose th,.prose td{text-align:left;padding:.6rem .75rem;border-bottom:1px solid var(--line);min-width:6.5rem}
.prose th{background:var(--soft)}
@media(min-width:768px){.prose table{display:table}.prose th,.prose td{min-width:0}}

.woocommerce ul.products,.woocommerce-page ul.products{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem;margin:0 0 2rem;padding:0;list-style:none}
.woocommerce ul.products::before,.woocommerce ul.products::after{content:none!important;display:none!important}
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.woocommerce ul.products[class*="columns-"] li.product,
.woocommerce ul.products[class*="columns-"] li.product:nth-child(2n){
	width:auto!important;float:none!important;clear:none!important;margin:0!important;
	display:flex;flex-direction:column;gap:.45rem;
	background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:1rem;text-align:left;
}
.woocommerce ul.products li.product img{border-radius:6px;margin:0 0 .65rem;width:100%}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:1rem!important;color:var(--steel);padding:0!important;margin:0 0 .3rem}
.woocommerce ul.products li.product .price{color:var(--steel)!important;font-weight:800;margin:0 0 .5rem}
@media(min-width:768px){.woocommerce ul.products{grid-template-columns:repeat(3,1fr);gap:1.25rem}}
@media(min-width:1040px){.woocommerce ul.products{grid-template-columns:repeat(4,1fr);gap:1.5rem}}

.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product .cvx-quote{display:block;width:100%;text-align:center;margin:0!important;border-radius:var(--radius);font-weight:700}
.woocommerce ul.products li.product a.add_to_cart_button,
.woocommerce ul.products li.product a.button.product_type_simple{background:var(--accent)!important;color:#fff!important;margin-bottom:.5rem!important}
.woocommerce ul.products li.product a.button:hover{background:var(--accent-600)!important}
.woocommerce ul.products li.product .cvx-quote{background:#fff!important;color:var(--steel)!important;border:2px solid var(--line)!important;margin-top:auto!important}
.woocommerce ul.products li.product .cvx-quote:hover{border-color:var(--accent)!important;color:var(--accent-600)!important}

.woocommerce .button,.woocommerce a.button,.woocommerce button.button{background:var(--accent)!important;color:#fff!important;border-radius:var(--radius)!important;font-weight:700!important}
.woocommerce .button:hover{background:var(--accent-600)!important}
.woocommerce-message,.woocommerce-info{border-top-color:var(--accent)!important}

.cvx-checkout-brand{text-align:center;margin:0 0 1.75rem}
.cvx-checkout-brand img{max-height:76px;width:auto;margin:0 auto}
.woocommerce-checkout h3{color:var(--steel)}
.woocommerce #payment #place_order,.woocommerce-page #payment #place_order{background:var(--accent)!important;color:#fff!important;font-weight:700!important;width:100%;padding:.95rem 1.5rem!important;border-radius:var(--radius)!important;font-size:1.05rem!important}
.woocommerce #payment #place_order:hover{background:var(--accent-600)!important}
.cvx-quote-wrap{margin:1rem 0 1.25rem}
.cvx-quote-wrap .cvx-quote{display:inline-flex;width:auto;padding:.8rem 1.6rem;font-size:1rem}

/* footer */
.site-footer{background:var(--steel-900);color:rgba(255,255,255,.75);padding-top:clamp(2.75rem,5vw,4rem)}
.site-footer h3{color:#fff;font-size:.95rem;text-transform:uppercase;letter-spacing:.05em;margin-bottom:1rem}
.site-footer a{color:rgba(255,255,255,.8);text-decoration:none}
.site-footer a:hover{color:#fff;text-decoration:underline}
.fgrid{display:grid;gap:2rem;padding-bottom:2.5rem}
@media(min-width:760px){.fgrid{grid-template-columns:1.6fr 1fr 1fr 1.2fr;gap:2.5rem}}
.footer__logo{max-height:60px;width:auto;margin-bottom:1rem;background:#fff;padding:7px 12px;border-radius:8px}
.flist{list-style:none;margin:0;padding:0;display:grid;gap:.5rem;font-size:.94rem}
.fbot{border-top:1px solid rgba(255,255,255,.14);padding:1.1rem 0 2rem;font-size:.86rem;color:rgba(255,255,255,.6);display:flex;flex-wrap:wrap;gap:.5rem 1.5rem;justify-content:space-between}

@media(max-width:767px){
	.section{padding:2.25rem 0}
	.hero__in{padding:2.5rem 0}
	.hero__stats{gap:.9rem 1.5rem;margin-top:1.5rem;padding-top:1.1rem}
	.hero__stats strong{font-size:1.3rem}
	.hero__stats span{font-size:.78rem}
	.hero__act .btn{flex:1 1 100%;justify-content:center}
	.cat,.cat__b{min-height:132px}
	.cat__b{padding:.85rem}
	.cat__b h3{font-size:.9rem}
	.cat__b span{font-size:.75rem}
	.pcard__b{padding:.7rem .75rem .85rem}
	.pcard h3{font-size:.85rem}
	.pcard .price{font-size:.92rem;margin:0 0 .6rem}
	.woocommerce ul.products li.product{padding:.6rem}
	.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:.84rem!important;line-height:1.3}
	.woocommerce ul.products li.product .price{font-size:.88rem!important}
	.woocommerce ul.products li.product a.button,
	.woocommerce ul.products li.product .cvx-quote{font-size:.78rem!important;padding:.55rem .5rem!important}
	.feat{gap:1.5rem}
	.fgrid{gap:1.6rem}
	.fbot{flex-direction:column;gap:.3rem}
	.woocommerce-result-count,.woocommerce-ordering{float:none!important;width:100%;margin-bottom:.75rem}
	.woocommerce-ordering select{width:100%}
	.cvx-quote-wrap .cvx-quote{display:flex;width:100%}
	.woocommerce div.product div.images,.woocommerce div.product div.summary{width:100%!important;float:none!important;margin:0 0 1.25rem!important}
}
@media(pointer:coarse){.nav a,.btn{min-height:44px;display:flex;align-items:center}.btn{justify-content:center}}

.pagination{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:2.5rem}
.pagination .page-numbers{display:grid;place-items:center;min-width:42px;height:42px;padding:0 .7rem;border:1px solid var(--line);border-radius:7px;text-decoration:none;color:var(--steel)}
.pagination .current{background:var(--steel);color:#fff;border-color:var(--steel)}

.cvx-cart-wrap{display:inline-flex}
.cvx-cart{position:relative;display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:8px;color:var(--steel);border:1px solid var(--line);background:#fff;text-decoration:none;transition:border-color .18s,color .18s}
.cvx-cart:hover{border-color:var(--accent);color:var(--accent-600)}
.cvx-cart__count{position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:var(--muted);color:#fff;font-size:.72rem;font-weight:750;line-height:20px;text-align:center;transition:background-color .18s,transform .18s}
.cvx-cart.has-items .cvx-cart__count{background:var(--accent);transform:scale(1.06)}
.cvx-cart__count[data-count="0"]{display:none}
@media(max-width:1039px){.cvx-cart{width:42px;height:42px}.cvx-cart svg{width:20px;height:20px}}

.cvx-ship{display:block;margin:.1rem 0 .65rem;font-weight:800;font-size:.92rem;color:#1f7a3d;letter-spacing:.005em}
.woocommerce div.product .cvx-ship{font-size:1.05rem;margin:.2rem 0 1rem}
@media(max-width:767px){.cvx-ship{font-size:.8rem;margin:.05rem 0 .5rem}}

.cvx-stars{display:inline-flex;gap:2px;line-height:1;font-size:1rem}
.cvx-star{color:#dadce0}
.cvx-star.is-full{color:#fbbc04}
.cvx-star.is-half{position:relative;color:#dadce0}
.cvx-star.is-half::before{content:"\2605";position:absolute;left:0;top:0;color:#fbbc04;width:50%;overflow:hidden}

.cvx-review{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:1.15rem 1.25rem;display:flex;flex-direction:column;gap:.6rem}
.cvx-review__head{display:flex;align-items:center;gap:.7rem}
.cvx-review__av{flex:0 0 40px;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;font-weight:700;font-size:1.05rem;color:#fff;background:hsl(var(--h,210) 52% 45%)}
.cvx-review__who{display:flex;flex-direction:column;min-width:0;flex:1 1 auto}
.cvx-review__who strong{font-size:.95rem;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cvx-review__who time{font-size:.8rem;color:var(--muted)}
.cvx-review__g{flex:0 0 auto;display:grid;place-items:center}
.cvx-review__text{margin:0;font-size:.94rem;line-height:1.6;color:#3c4a57}

.cvx-rev-head{display:flex;flex-wrap:wrap;gap:1.25rem;align-items:flex-end;justify-content:space-between;margin-bottom:1.5rem}
.cvx-rev-head h2{margin:.2rem 0 0}
.cvx-rev-score{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}
.cvx-rev-score strong{font-size:2rem;line-height:1;color:var(--ink)}
.cvx-rev-score span{font-size:.88rem;color:var(--muted)}
.cvx-rev-rail{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}

.cvx-rev-summary{display:grid;grid-template-columns:auto 1fr;gap:2rem;align-items:center;background:var(--soft);border:1px solid var(--line);border-radius:var(--radius);padding:1.5rem 1.75rem;margin:0 0 2rem}
.cvx-rev-summary__score{text-align:center;display:flex;flex-direction:column;gap:.35rem;align-items:center}
.cvx-rev-summary__score strong{font-size:3rem;line-height:1;color:var(--ink)}
.cvx-rev-summary__score .cvx-stars{font-size:1.15rem}
.cvx-rev-summary__score span{font-size:.85rem;color:var(--muted)}
.cvx-rev-summary__bars{display:flex;flex-direction:column;gap:.3rem;min-width:0}
.cvx-bar{display:grid;grid-template-columns:1rem 1fr 2.5rem;gap:.6rem;align-items:center;font-size:.82rem;color:var(--muted)}
.cvx-bar__track{height:9px;border-radius:5px;background:var(--tint);overflow:hidden}
.cvx-bar__fill{display:block;height:100%;background:#fbbc04}
.cvx-bar__c{text-align:right}

.cvx-rev-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem}

@media (max-width:900px){.cvx-rev-rail{grid-template-columns:repeat(2,1fr)}.cvx-rev-grid{grid-template-columns:1fr}}
@media (max-width:640px){.cvx-rev-rail{grid-template-columns:1fr}.cvx-rev-summary{grid-template-columns:1fr;gap:1.25rem;padding:1.25rem}.cvx-rev-head{align-items:flex-start}}

/* ---------- WooCommerce page frame ----------
   WooCommerce wraps shop, category and product pages in #primary, which has no
   width of its own, so those pages ran to the edge of the window.
   -------------------------------------------- */
#primary.content-area{width:min(100% - 2rem,var(--wrap));margin-inline:auto;padding:clamp(1.25rem,3vw,2.5rem) 0 clamp(2.5rem,5vw,4rem)}
.woocommerce .woocommerce-breadcrumb{font-size:.9rem;color:var(--muted);margin-bottom:1.25rem}
.woocommerce .woocommerce-breadcrumb a{color:var(--muted)}
.woocommerce div.product .product_title{font-size:var(--s3)}
.woocommerce div.product p.price,.woocommerce div.product span.price{color:var(--steel);font-weight:800;font-size:var(--s2)}
.woocommerce .woocommerce-products-header__title{font-size:var(--s3)}
.woocommerce div.product .woocommerce-tabs .panel h2{font-size:var(--s2)}
.woocommerce div.product .woocommerce-tabs .panel h3{font-size:var(--s1)}
.woocommerce div.product .related>h2{font-size:var(--s2)}
