/*
Theme Name: ZamZamSteel
Theme URI: https://zamzamsteel.com
Author: ZamZamSteel
Description: Lightweight, hand-coded, SEO-ready WooCommerce theme for ZamZamSteel steel furniture (almirahs, safes, cabinets, beds). No page builder, no jQuery dependency in the theme, no external libraries.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zamzamsteel
Tags: e-commerce, furniture, custom-menu, featured-images, threaded-comments, translation-ready, woocommerce
*/

:root{
  --ink:#1b2024;
  --steel:#3b444c;
  --steel-2:#5b6770;
  --zinc:#e3e6e8;
  --paper:#f5f5f2;
  --white:#fff;
  --green:#1f4a3f;
  --green-d:#163831;
  --brass:#b88a3b;
  --brass-d:#8f6a28;
  --red:#a8322a;
  --radius:4px;
  --wrap:1200px;
  --font:"Archivo",system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--font);font-size:16px;line-height:1.6;color:var(--ink);background:var(--paper)}
img,svg,video{max-width:100%;height:auto;display:block}
a{color:var(--green);text-decoration-thickness:1px;text-underline-offset:3px}
a:hover{color:var(--brass-d)}
h1,h2,h3,h4{font-weight:800;line-height:1.12;letter-spacing:-.015em;margin:0 0 .5em;color:var(--ink)}
h1{font-size:clamp(2.2rem,5.4vw,4rem)}
h2{font-size:clamp(1.6rem,3.2vw,2.4rem)}
h3{font-size:1.25rem}
p{margin:0 0 1em}
:focus-visible{outline:3px solid var(--brass);outline-offset:2px}
.screen-reader-text{position:absolute!important;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden}
.skip-link:focus{position:fixed;left:8px;top:8px;z-index:999;background:#fff;padding:10px 14px;clip:auto;width:auto;height:auto}
.wrap{width:min(100% - 2.5rem,var(--wrap));margin-inline:auto}
.section{padding:clamp(3rem,7vw,5.5rem) 0}
.section--zinc{background:var(--zinc)}
.section--ink{background:var(--ink);color:#d7dce0}
.section--ink h2,.section--ink h3{color:#fff}
.section__head{display:flex;justify-content:space-between;align-items:end;gap:1rem;margin-bottom:2rem;flex-wrap:wrap}
.section__head p{margin:0;color:var(--steel-2);max-width:46ch}

/* buttons */
.btn,.button,button.button,input[type=submit],.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit{
  display:inline-block;background:var(--green);color:#fff;border:2px solid var(--green);border-radius:var(--radius);
  padding:.8rem 1.4rem;font:700 1rem/1.2 var(--font);text-decoration:none;cursor:pointer;transition:background .15s,color .15s,border-color .15s}
.btn:hover,.button:hover,input[type=submit]:hover,.woocommerce a.button:hover,.woocommerce button.button:hover{background:var(--green-d);border-color:var(--green-d);color:#fff}
.btn--brass{background:var(--brass);border-color:var(--brass);color:var(--ink)}
.btn--brass:hover{background:#cf9d45;border-color:#cf9d45;color:var(--ink)}
.btn--line{background:transparent;color:#fff;border-color:#8b979f}
.btn--line:hover{background:#fff;border-color:#fff;color:var(--ink)}
.btn--wa{background:#1e8e4a;border-color:#1e8e4a;color:#fff}
.btn--wa:hover{background:#17703a;border-color:#17703a}
.woocommerce a.button.alt,.woocommerce button.button.alt,.woocommerce input.button.alt{background:var(--brass);border-color:var(--brass);color:var(--ink)}
.woocommerce a.button.alt:hover,.woocommerce button.button.alt:hover{background:#cf9d45;border-color:#cf9d45;color:var(--ink)}

/* top bar + header */
.topbar{background:var(--ink);color:#c5ccd1;font-size:.875rem}
.topbar .wrap{display:flex;justify-content:space-between;gap:1rem;padding:.45rem 0;flex-wrap:wrap}
.topbar a{color:#fff;text-decoration:none}
.site-header{background:var(--white);border-bottom:1px solid var(--zinc);position:sticky;top:0;z-index:50}
.site-header .wrap{display:flex;align-items:center;gap:1.5rem;min-height:72px}
.brand{font-weight:900;font-size:1.6rem;letter-spacing:-.03em;color:var(--ink);text-decoration:none;display:flex;align-items:center;gap:.55rem}
.brand span{color:var(--brass-d)}
.brand__mark{width:30px;height:30px;border-radius:3px;background:var(--green);position:relative;flex:none}
.brand__mark::after{content:"";position:absolute;inset:7px;border:2px solid var(--brass);border-radius:50%}
.custom-logo{max-height:46px;width:auto}
.nav{margin-left:auto}
.nav ul{list-style:none;margin:0;padding:0;display:flex;gap:1.6rem}
.nav a{color:var(--ink);text-decoration:none;font-weight:600;padding:.4rem 0;border-bottom:2px solid transparent}
.nav a:hover,.nav .current-menu-item>a{border-color:var(--brass)}
.header-tools{display:flex;align-items:center;gap:.9rem}
.cart-link{display:inline-flex;align-items:center;gap:.4rem;color:var(--ink);text-decoration:none;font-weight:700}
.cart-count{background:var(--brass);color:var(--ink);border-radius:20px;min-width:22px;height:22px;display:inline-grid;place-items:center;font-size:.8rem;padding:0 6px}
.nav-toggle{display:none;background:none;border:2px solid var(--ink);border-radius:var(--radius);padding:.45rem .7rem;font:700 .9rem var(--font);cursor:pointer}
.search-form{display:flex}
.search-form input[type=search]{border:1px solid #b9c0c5;border-right:0;border-radius:var(--radius) 0 0 var(--radius);padding:.55rem .8rem;font:inherit;width:100%;min-width:0}
.search-form button{border-radius:0 var(--radius) var(--radius) 0;padding:.55rem 1rem}
.header-search{width:210px}

/* hero */
.hero{background:var(--ink);color:#d7dce0;position:relative;overflow:hidden;
  background-image:repeating-linear-gradient(90deg,rgba(255,255,255,.025) 0 2px,transparent 2px 5px)}
.hero .wrap{display:grid;grid-template-columns:1.1fr .9fr;gap:3rem;align-items:center;padding:clamp(3rem,7vw,6rem) 0}
.hero h1{color:#fff;max-width:14ch}
.hero p.lead{font-size:1.2rem;max-width:46ch;color:#c5ccd1}
.hero__cta{display:flex;gap:.8rem;flex-wrap:wrap;margin-top:1.8rem}
.hero__facts{display:flex;gap:1.6rem;flex-wrap:wrap;margin:2.2rem 0 0;padding:0;list-style:none;color:#aeb7bd;font-size:.95rem}
.hero__facts li{padding-left:1rem;border-left:3px solid var(--brass)}

/* category tiles */
.cats{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:#c9cfd3;border:1px solid #c9cfd3}
.cat{background:var(--white);padding:1.6rem;text-decoration:none;color:var(--ink);display:flex;flex-direction:column;gap:.35rem;min-height:170px;justify-content:space-between;transition:background .15s}
.cat:hover{background:var(--green);color:#fff}
.cat:hover small,.cat:hover h3{color:#fff}
.cat h3{margin:0;font-size:1.35rem}
.cat small{color:var(--steel-2);font-size:.95rem}
.cat__ic{width:44px;height:44px;color:var(--brass-d)}
.cat:hover .cat__ic{color:var(--brass)}

/* product grid (home + shop) */
.woocommerce ul.products,ul.products{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:1.25rem}
.woocommerce ul.products::before,.woocommerce ul.products::after{display:none}
.woocommerce ul.products li.product,ul.products li.product{margin:0!important;width:auto!important;float:none!important;background:var(--white);border:1px solid var(--zinc);border-radius:var(--radius);padding:0 0 1rem;position:relative;display:flex;flex-direction:column;transition:box-shadow .15s,border-color .15s}
ul.products li.product:hover{border-color:var(--steel-2);box-shadow:0 6px 18px rgba(0,0,0,.08)}
ul.products li.product a{text-decoration:none;color:inherit}
ul.products li.product img{width:100%;aspect-ratio:1/1;object-fit:cover;background:var(--zinc);margin:0 0 .8rem!important;border-radius:var(--radius) var(--radius) 0 0}
.woocommerce-loop-product__title{font-size:1rem!important;font-weight:700!important;padding:0 1rem!important;margin:0 0 .3rem!important}
ul.products li.product .price{padding:0 1rem;color:var(--green);font-weight:800;display:block;margin-bottom:.8rem}
ul.products li.product .price del{color:var(--steel-2);font-weight:400;margin-right:.35rem}
ul.products li.product .price ins{text-decoration:none}
ul.products li.product .button{margin:auto 1rem 0;text-align:center;padding:.65rem 1rem;font-size:.92rem}
.woocommerce span.onsale{background:var(--red);color:#fff;border-radius:2px;min-height:0;min-width:0;line-height:1;padding:.4rem .6rem;top:.7rem;left:.7rem;right:auto;margin:0;font-weight:700;font-size:.8rem}
.woocommerce .star-rating{color:var(--brass)}

/* why */
.why{display:grid;grid-template-columns:repeat(4,1fr);gap:2rem}
.why div{border-top:3px solid var(--brass);padding-top:1rem}
.why h3{font-size:1.1rem}
.why p{margin:0;color:#aeb7bd;font-size:.97rem}

/* reviews */
.quotes{display:grid;grid-template-columns:repeat(3,1fr);gap:1.25rem}
.quote{background:var(--white);border-left:4px solid var(--green);padding:1.4rem;margin:0}
.quote p{margin:0 0 .8rem}
.quote cite{font-style:normal;font-weight:700;color:var(--steel)}

/* faq */
.faq{max-width:820px}
.faq details{border-bottom:1px solid #c5ccd1;padding:1rem 0}
.faq summary{cursor:pointer;font-weight:700;font-size:1.08rem;list-style:none;display:flex;justify-content:space-between;gap:1rem}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";font-weight:800;color:var(--brass-d);font-size:1.4rem;line-height:1}
.faq details[open] summary::after{content:"\2212"}
.faq details p{margin:.7rem 0 0;color:var(--steel)}

/* cta band */
.cta{background:var(--green);color:#fff}
.cta .wrap{display:flex;justify-content:space-between;gap:1.5rem;align-items:center;flex-wrap:wrap;padding:2.6rem 0}
.cta h2{color:#fff;margin:0}
.cta p{margin:.3rem 0 0;color:#cfe0da}

/* content pages */
.page-head{background:var(--ink);color:#fff;padding:2.6rem 0}
.page-head h1{color:#fff;font-size:clamp(1.9rem,4vw,2.8rem);margin:0}
.page-head p{margin:.4rem 0 0;color:#aeb7bd}
.breadcrumbs,.woocommerce-breadcrumb{font-size:.88rem;color:#aeb7bd;margin:0 0 .6rem!important}
.breadcrumbs a,.woocommerce-breadcrumb a{color:#d7dce0}
.content{padding:2.5rem 0 4rem}
.entry{max-width:780px}
.entry img{border-radius:var(--radius);margin:1.2rem 0}
.entry h2{margin-top:1.8em}
.posts{display:grid;grid-template-columns:repeat(3,1fr);gap:1.25rem}
.post-card{background:var(--white);border:1px solid var(--zinc);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column}
.post-card img{aspect-ratio:16/10;object-fit:cover;width:100%;background:var(--zinc)}
.post-card__body{padding:1.1rem 1.2rem 1.4rem}
.post-card h2{font-size:1.15rem;margin:0 0 .4rem}
.post-card h2 a{text-decoration:none;color:var(--ink)}
.post-card time{font-size:.85rem;color:var(--steel-2)}
.pagination,.nav-links{margin-top:2rem;display:flex;gap:.5rem;flex-wrap:wrap}
.page-numbers{padding:.45rem .8rem;border:1px solid #b9c0c5;text-decoration:none;color:var(--ink);border-radius:var(--radius)}
.page-numbers.current{background:var(--ink);color:#fff;border-color:var(--ink)}

/* forms */
input[type=text],input[type=email],input[type=tel],input[type=number],input[type=password],textarea,select{
  width:100%;border:1px solid #b0b8bd;border-radius:var(--radius);padding:.7rem .8rem;font:inherit;background:#fff;color:var(--ink)}
textarea{min-height:140px}
label{font-weight:600;display:block;margin-bottom:.3rem}
.form-row{margin-bottom:1rem}
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:3rem}
.notice{padding:.9rem 1.1rem;border-left:4px solid var(--green);background:#e5efec;margin-bottom:1.2rem}
.notice--err{border-color:var(--red);background:#f6e3e1}
.hp{position:absolute;left:-9999px}
.map{border:0;width:100%;height:340px;border-radius:var(--radius);margin-top:1.2rem;background:var(--zinc)}

/* woocommerce pages */
.shop-tools{display:flex;gap:.8rem;flex-wrap:wrap;margin-bottom:1.4rem;align-items:center}
.pills{display:flex;gap:.5rem;flex-wrap:wrap;margin:0 0 1.2rem}
.pills a{padding:.4rem .9rem;border:1px solid #b0b8bd;border-radius:30px;text-decoration:none;color:var(--ink);font-weight:600;font-size:.92rem;background:#fff}
.pills a:hover,.pills a.is-on{background:var(--ink);color:#fff;border-color:var(--ink)}
.price-form{display:flex;gap:.4rem;align-items:center}
.price-form input{width:96px;padding:.5rem .6rem}
.woocommerce-result-count{margin:0 0 1rem!important;color:var(--steel-2)}
.woocommerce-ordering{margin:0 0 1rem!important}
.woocommerce div.product{display:grid;grid-template-columns:1.05fr .95fr;gap:3rem;align-items:start}
.woocommerce div.product div.images,.woocommerce div.product div.summary{float:none!important;width:100%!important;margin:0!important}
.woocommerce div.product .woocommerce-tabs,.woocommerce div.product .related,.woocommerce div.product .upsells{grid-column:1/-1}
.woocommerce div.product .product_title{font-size:clamp(1.7rem,3vw,2.4rem)}
.woocommerce div.product p.price,.woocommerce div.product span.price{color:var(--green);font-size:1.6rem;font-weight:800}
.woocommerce div.product p.price del{color:var(--steel-2);font-weight:400}
.woocommerce div.product p.price ins{text-decoration:none}
.woocommerce div.product form.cart{display:flex;gap:.7rem;flex-wrap:wrap;margin:1.2rem 0}
.woocommerce .quantity .qty{width:76px;padding:.75rem .5rem;border:1px solid #b0b8bd;border-radius:var(--radius);font:inherit}
.product-actions{display:flex;gap:.7rem;flex-wrap:wrap;margin:.2rem 0 1.2rem}
.product-assure{list-style:none;padding:1rem 0 0;margin:1rem 0 0;border-top:1px solid var(--zinc);display:grid;gap:.4rem;color:var(--steel);font-size:.95rem}
.woocommerce div.product .woocommerce-product-gallery__image img{border-radius:var(--radius);background:var(--zinc)}
.woocommerce div.product .flex-control-thumbs{display:grid;grid-template-columns:repeat(5,1fr);gap:.5rem;margin-top:.6rem!important;padding:0;list-style:none}
.woocommerce div.product .flex-control-thumbs li{width:auto!important;float:none!important}
.woocommerce div.product .flex-control-thumbs img{border-radius:3px;opacity:.7;cursor:pointer}
.woocommerce div.product .flex-control-thumbs img.flex-active,.woocommerce div.product .flex-control-thumbs img:hover{opacity:1}
.woocommerce-tabs ul.tabs{padding:0!important;margin:0 0 1.2rem!important;display:flex;gap:.4rem;list-style:none;border-bottom:1px solid #c5ccd1}
.woocommerce-tabs ul.tabs::before{display:none!important}
.woocommerce-tabs ul.tabs li{background:none!important;border:0!important;margin:0!important;padding:0!important}
.woocommerce-tabs ul.tabs li::before,.woocommerce-tabs ul.tabs li::after{display:none!important}
.woocommerce-tabs ul.tabs li a{display:block;padding:.7rem 1.1rem!important;font-weight:700;color:var(--steel)!important;text-decoration:none}
.woocommerce-tabs ul.tabs li.active a{color:var(--ink)!important;box-shadow:inset 0 -3px 0 var(--brass)}
.woocommerce table.shop_table{border-collapse:collapse;background:#fff;border:1px solid var(--zinc);border-radius:0}
.woocommerce table.shop_table th,.woocommerce table.shop_table td{padding:.9rem;border-top:1px solid var(--zinc)}
.woocommerce-message,.woocommerce-info,.woocommerce-error{background:#e5efec;border-top:3px solid var(--green);padding:1rem 1.2rem;list-style:none;margin:0 0 1.2rem}
.woocommerce-error{background:#f6e3e1;border-color:var(--red)}
.woocommerce-message::before,.woocommerce-info::before{display:none}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea{padding:.7rem .8rem}
.woocommerce #payment{background:var(--zinc);border-radius:var(--radius)}
.woocommerce #payment div.payment_box{background:#fff;color:var(--ink)}
.woocommerce #payment div.payment_box::before{display:none}
.woocommerce-cart .cart-collaterals .cart_totals{float:none;width:100%;max-width:480px;margin-left:auto}

/* footer */
.site-footer{background:var(--ink);color:#aeb7bd;padding:3.2rem 0 1.2rem;font-size:.95rem}
.site-footer h3{color:#fff;font-size:1rem;margin-bottom:.9rem}
.site-footer a{color:#d7dce0;text-decoration:none}
.site-footer a:hover{color:var(--brass)}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:2.2rem}
.footer-grid ul{list-style:none;margin:0;padding:0;display:grid;gap:.45rem}
.footer-bottom{border-top:1px solid #333b42;margin-top:2.4rem;padding-top:1.1rem;display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;font-size:.88rem}
.wa-float{position:fixed;right:16px;bottom:16px;z-index:60;background:#1e8e4a;color:#fff;border-radius:40px;padding:.8rem 1.1rem;font-weight:700;text-decoration:none;box-shadow:0 6px 18px rgba(0,0,0,.3);display:flex;gap:.5rem;align-items:center}
.wa-float:hover{background:#17703a;color:#fff}
.wa-float svg{width:22px;height:22px;fill:currentColor}

/* responsive */
@media (max-width:1000px){
  .woocommerce ul.products,ul.products{grid-template-columns:repeat(3,1fr)}
  .why{grid-template-columns:repeat(2,1fr)}
  .footer-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:820px){
  .nav-toggle{display:block;margin-left:auto}
  .nav{display:none;position:absolute;left:0;right:0;top:100%;background:#fff;border-bottom:1px solid var(--zinc);padding:1rem 1.25rem;margin:0}
  .nav.is-open{display:block}
  .nav ul{flex-direction:column;gap:.4rem}
  .header-search{display:none}
  .header-tools{margin-left:0}
  .hero .wrap,.contact-grid,.woocommerce div.product{grid-template-columns:1fr}
  .hero h1{max-width:none}
  .cats,.quotes,.posts{grid-template-columns:1fr 1fr}
  .woocommerce ul.products,ul.products{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:520px){
  .cats,.quotes,.posts,.why,.footer-grid{grid-template-columns:1fr}
  .woocommerce ul.products,ul.products{gap:.7rem}
  .topbar .wrap{justify-content:center}
  .wa-float span{display:none}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* additions */
.entry--wide{max-width:none}
.content .woocommerce-breadcrumb{color:var(--steel-2)}
.content .woocommerce-breadcrumb a{color:var(--green)}
.content h1.page-title{font-size:clamp(1.8rem,3.5vw,2.6rem)}
.term-description{max-width:70ch;color:var(--steel);margin-bottom:1.2rem}

/* brand + hero */
:root{--blue:#1fa3ee;--red:#e8302c}
.site-header .wrap{min-height:78px}
.brand{padding:.4rem 0}
.brand img{height:58px;width:auto;border-radius:3px;display:block}
.hero .brandline{max-width:none;margin:0 0 1.2rem;line-height:.98;letter-spacing:-.01em;font-weight:900;font-size:clamp(2.8rem,8vw,5.6rem);text-transform:uppercase}
.hero .bl{display:block;color:var(--red)}
.hero .bl--zam{color:var(--red);background:linear-gradient(180deg,var(--blue) 0 50%,var(--red) 50% 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.hero .bl--steel{color:var(--blue)}
.hero .bl--furn{color:var(--red);font-size:.82em}
.hero__logo{width:100%;max-width:540px;height:auto;margin-inline:auto;border-radius:6px;box-shadow:0 24px 50px rgba(0,0,0,.5)}
.hero .btn--line{color:#fff}
.header-call{padding:.6rem 1.1rem}

/* products dropdown */
.nav .has-sub{position:relative}
.nav .has-sub>a::after{content:"";display:inline-block;margin-left:.45rem;border:4px solid transparent;border-top-color:currentColor;border-bottom:0;vertical-align:middle}
.nav .sub-menu{display:none;position:absolute;left:-1rem;top:100%;min-width:230px;background:#fff;border:1px solid var(--zinc);border-top:3px solid var(--brass);box-shadow:0 12px 28px rgba(0,0,0,.14);padding:.4rem 0;margin:0;list-style:none;z-index:70;flex-direction:column;gap:0}
.nav .has-sub:hover>.sub-menu,.nav .has-sub:focus-within>.sub-menu{display:flex}
.nav .sub-menu a{display:block;padding:.6rem 1.1rem;border:0;font-weight:600;white-space:nowrap}
.nav .sub-menu a:hover{background:var(--paper);color:var(--green)}
.call-price{color:var(--green);font-weight:800}
ul.products li.product .btn{margin:auto 1rem 0;text-align:center;padding:.65rem 1rem;font-size:.95rem}
.header-search{width:170px}
@media (max-width:820px){
  .nav .sub-menu{display:flex;position:static;box-shadow:none;border:0;border-left:3px solid var(--brass);margin:.3rem 0 .5rem .4rem;padding:0}
  .nav .has-sub>a::after{display:none}
  .brand img{height:48px}
  .header-call{padding:.5rem .8rem;font-size:.9rem}
}

/* icon logo */
.brand{gap:.7rem}
.brand img{height:54px;width:auto;border-radius:4px}
.brand__text{font-weight:900;font-size:1.45rem;letter-spacing:-.02em;color:var(--ink);line-height:1}
.hero__logo{width:min(100%,300px);max-width:300px;aspect-ratio:528/690;height:auto;background:#000;padding:0;display:block}
@media (max-width:820px){.brand img{height:44px}.brand__text{font-size:1.15rem}.hero__logo{max-width:200px}}
@media (max-width:520px){.brand__text{font-size:1rem}.header-call{display:none}}
