/*
Theme Name: Zest Wear
Description: WooCommerce fashion store theme, RTL/Arabic ready. Visual style matched to the "Furniture Shop 04" demo (transparent header over full-bleed hero, Oswald headings, grey square cards, swatches).
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: zest-wear
*/

:root{
  --ink:#000; --text:#111; --muted:#7e7f7e; --grey:#f1f3f2; --line:#e4e7e5;
  --accent:#c19a83; --sale:#000; --white:#fff; --wrap:1320px;
  --head:"Oswald","Cairo",system-ui,sans-serif;
  --zw-dir:ltr;
}
.rtl{--zw-dir:rtl}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:"Cairo",system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--text);background:#fff;line-height:1.65;font-size:16px}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
h1,h2,h3,h4{font-family:var(--head);line-height:1.15;margin:0 0 .5em;font-weight:700}
p{margin:0 0 1em}
:focus-visible{outline:3px solid var(--ink);outline-offset:2px}
.zw-wrap{max-width:var(--wrap);margin-inline:auto;padding-inline:20px}
.zw-wrap--wide{max-width:1680px;padding-inline:clamp(20px,3.5vw,56px)}
.screen-reader-text{position:absolute;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden}
/* Arabic letters must stay joined: never letter-space them */
.rtl,.rtl *{letter-spacing:0!important}

/* Buttons: black, square, Oswald */
.zw-btn,.button,button.button,input[type=submit],.wp-element-button{display:inline-block;background:var(--ink);color:#fff;border:0;border-radius:0;padding:.7em 1.8em;font-family:var(--head);font-size:18px;font-weight:500;text-transform:uppercase;line-height:1.3;cursor:pointer;transition:background .2s,color .2s}
.zw-btn:hover,.button:hover,input[type=submit]:hover{background:#2b2b2b;color:#fff}

/* Announcement */
.zw-announce{background:var(--ink);color:#fff;text-align:center;font-size:14px;font-weight:600;padding:8px 16px}

/* ================= Header ================= */
.zw-header{position:relative;z-index:100;background:#fff}
.zw-header:not(.zw-header--over){position:sticky;top:0;border-bottom:1px solid var(--line)}
.zw-header--over{position:absolute;inset-inline:0;background:transparent}
.zw-header__row{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:32px;max-width:1680px;margin-inline:auto;padding:22px clamp(20px,3.5vw,56px)}
.zw-logo img{max-height:58px;width:auto}
.zw-logo__text{font-family:var(--head);font-size:30px;font-weight:700;text-transform:uppercase;line-height:1}
.zw-nav{justify-self:center;display:flex;align-items:center;gap:26px}
.zw-nav ul{list-style:none;margin:0;padding:0;display:flex;align-items:center;gap:28px}
.zw-nav a{display:block;font-family:var(--head);font-weight:500;font-size:19px;text-transform:uppercase;padding:6px 0;line-height:1.2}
.zw-nav ul a:hover,.zw-nav .current-menu-item>a{box-shadow:inset 0 -2px 0 var(--ink)}
.zw-search-toggle{display:grid;place-items:center;width:38px;height:38px;border:0;background:none;color:var(--ink);cursor:pointer;padding:0}
.zw-search-toggle svg{width:24px;height:24px}
.zw-search-toggle--bar{display:none}
.zw-top__end{display:flex;align-items:center;justify-content:flex-end;gap:16px}
.zw-sec ul{gap:16px}
.zw-sec a{font-family:var(--head);font-weight:400;font-size:15px;text-transform:uppercase;padding:0}
.zw-sec a:hover{box-shadow:none;text-decoration:underline}
.zw-sec--mobile{display:none}
.zw-login{font-family:var(--head);font-size:15px;font-weight:500;color:#1f4fd8}
.zw-icon{position:relative;display:grid;place-items:center;width:44px;height:44px}
.zw-icon svg{width:34px;height:34px;color:var(--accent)}
.zw-count{position:absolute;top:-2px;inset-inline-end:-4px;min-width:22px;height:22px;border-radius:50%;background:var(--accent);color:#000;font-family:var(--head);font-size:13px;font-weight:600;display:grid;place-items:center;padding:0 4px}
.zw-toggle{display:none;width:44px;height:44px;border:0;background:none;cursor:pointer;color:var(--accent);padding:0}
.zw-toggle svg{width:32px;height:32px}
.zw-toggle .i-close{display:none}
.zw-toggle[aria-expanded=true] .i-open{display:none}
.zw-toggle[aria-expanded=true] .i-close{display:block}
.zw-searchbar{display:none;gap:10px;background:#fff;border-top:1px solid var(--line);padding:14px clamp(20px,3.5vw,56px)}
.zw-searchbar.is-open{display:flex}
.zw-searchbar input[type=search]{flex:1}

@media (max-width:921px){
  .zw-header__row{grid-template-columns:1fr auto;gap:12px;padding:18px 20px}
  .zw-search-toggle--nav,.zw-sec--desktop,.zw-login{display:none}
  .zw-search-toggle--bar{display:grid}
  .zw-toggle{display:grid;place-items:center}
  .zw-icon svg{width:30px;height:30px}
  .zw-nav{position:absolute;inset-inline:0;top:100%;justify-self:stretch;background:#fff;border-bottom:1px solid var(--line);box-shadow:0 14px 24px rgba(0,0,0,.12);display:none;flex-direction:column;align-items:stretch;gap:0;padding:8px 20px 16px;max-height:calc(100vh - 110px);overflow:auto}
  .zw-nav.is-open{display:flex}
  .zw-nav ul{flex-direction:column;align-items:stretch;gap:0}
  .zw-nav li{border-bottom:1px solid var(--line)}
  .zw-nav li:last-child{border:0}
  .zw-nav a{padding:14px 0;font-size:20px}
  .zw-nav ul a:hover{box-shadow:none}
  .zw-sec--mobile{display:block;border-top:1px solid var(--line);margin-top:6px;padding-top:6px}
  .zw-sec--mobile a{font-size:16px;color:var(--muted)}
}

/* ================= Hero ================= */
.zw-hero{position:relative;display:flex;align-items:flex-end;min-height:clamp(640px,calc(100vh - 40px),900px);padding:150px 0 clamp(48px,7vw,96px);overflow:hidden;background:linear-gradient(180deg,#bde0d3 0%,#d6efe8 36%,#ecf6f3 68%,#f9fcfb 100%)}
.zw-hero__img{position:absolute;inset:0}
.zw-hero__img img{width:100%;height:100%;object-fit:cover;object-position:center}
.zw-hero__grid{position:relative;z-index:2;display:flex;direction:ltr;width:100%}
.zw-hero--left .zw-hero__grid{justify-content:flex-start}
.zw-hero--right .zw-hero__grid{justify-content:flex-end}
.zw-hero__text{direction:var(--zw-dir);text-align:start;max-width:min(760px,100%)}
.zw-eyebrow{font-family:var(--head);font-size:clamp(15px,1.5vw,20px);font-weight:500;letter-spacing:.25em;text-transform:uppercase;color:#000;margin:0 0 clamp(14px,2vw,28px)}
.zw-hero h1{font-size:clamp(52px,8.4vw,128px);font-weight:700;text-transform:uppercase;color:#000;line-height:.98;margin:0 0 .2em}
.zw-hero__sub{font-size:clamp(22px,2.7vw,42px);font-weight:400;text-transform:uppercase;color:#000;line-height:1.15;margin:0 0 clamp(24px,3vw,44px)}
.zw-hero .zw-btn{font-size:clamp(17px,1.6vw,22px);padding:.7em 2.2em}
@media (max-width:760px){
  .zw-hero{min-height:600px;padding-top:120px}
  .zw-hero h1{font-size:clamp(46px,14vw,72px)}
}

/* Brand logos: bordered boxes */
.zw-brands{padding:36px 0 0}
.zw-brands__row{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:20px}
.zw-brand{display:grid;place-items:center;border:1px solid var(--line);height:96px;padding:18px}
.zw-brand img{max-height:100%;width:auto;max-width:100%;object-fit:contain}

/* ================= Sections ================= */
.zw-section{padding:clamp(56px,8vw,110px) 0}
.zw-section--tight{padding-top:0}
.zw-section--soft{background:var(--grey)}
.zw-head{text-align:center;margin-bottom:clamp(32px,4vw,56px)}
.zw-head__eyebrow{font-family:var(--head);font-size:clamp(14px,1.3vw,18px);font-weight:500;letter-spacing:.22em;text-transform:uppercase;color:#5f605f;margin:0 0 10px}
.zw-head h2{font-size:clamp(36px,5vw,68px);font-weight:700;text-transform:uppercase;color:#000;margin:0}
.zw-head::after{content:"";display:block;width:50px;height:2px;background:var(--accent);margin:clamp(20px,2.4vw,32px) auto 0}
.zw-more{text-align:center;margin:clamp(32px,4vw,56px) 0 0}

/* Categories */
.zw-cats{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.zw-cat{position:relative;display:block;background:var(--grey);aspect-ratio:1/1.04;overflow:hidden}
.zw-cat__img{position:absolute;inset:0;padding:28px 28px 72px;display:block}
.zw-cat__img img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply;transition:transform .5s}
.zw-cat:hover .zw-cat__img img{transform:scale(1.05)}
.zw-cat__label{position:absolute;inset-inline:14px;bottom:14px;background:#fff;text-align:center;padding:8px 10px 10px;display:flex;flex-direction:column;line-height:1.2}
.zw-cat__label strong{font-family:var(--head);font-size:clamp(15px,1.5vw,20px);font-weight:700;text-transform:uppercase;color:#000}
.zw-cat__label small{font-family:var(--head);font-size:clamp(11px,1vw,14px);font-weight:600;text-transform:uppercase;color:var(--muted);margin-top:2px}
@media (max-width:921px){.zw-cats{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.zw-cat__img{padding:18px 18px 62px}.zw-cat__label{inset-inline:10px;bottom:10px}}

/* Promo */
.zw-promo{background:var(--grey);color:#000;padding:clamp(32px,5vw,64px);display:grid;grid-template-columns:1.2fr 1fr;gap:40px;align-items:center}
.zw-promo h2{font-size:clamp(32px,4.4vw,60px);text-transform:uppercase;color:#000}
.zw-promo p{color:#444;font-size:18px}
.zw-promo img{max-height:380px;width:100%;object-fit:contain;mix-blend-mode:multiply}
.zw-eyebrow--light{color:#5f605f}
.zw-promo__prod{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-top:22px;padding-top:22px;border-top:1px solid #d9dcda}
.zw-promo__prod strong{font-family:var(--head);font-size:20px}
.zw-promo__prod .price{color:#000}
.zw-btn--mint{background:var(--ink);color:#fff}
@media (max-width:760px){.zw-promo{grid-template-columns:1fr;gap:24px}}

/* Reviews */
.zw-reviews{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.zw-review{margin:0;background:#fff;padding:28px}
.zw-review blockquote{margin:12px 0;color:var(--text)}
.zw-review figcaption{font-family:var(--head);font-weight:600;text-transform:uppercase}
.zw-stars{display:flex;gap:2px;color:var(--accent)}
.zw-stars svg{width:18px;height:18px}
@media (max-width:921px){.zw-reviews{grid-template-columns:1fr}}

/* Benefits */
.zw-benefits{display:grid;grid-template-columns:repeat(4,1fr);gap:28px;text-align:center}
.zw-benefit h3{font-size:20px;text-transform:uppercase;margin-bottom:.3em}
.zw-benefit p{color:var(--muted);margin:0;font-size:15px}
.zw-benefit__ic{width:64px;height:64px;background:var(--grey);display:grid;place-items:center;margin:0 auto 16px}
.zw-benefit__ic svg{width:28px;height:28px;color:#000}
@media (max-width:921px){.zw-benefits{grid-template-columns:repeat(2,1fr)}}

/* ================= Footer ================= */
.zw-footer{background:#000;color:#cfcfcf;padding:64px 0 24px}
.zw-footer h4{color:#fff;font-size:18px;text-transform:uppercase}
.zw-footer ul{list-style:none;margin:0;padding:0}
.zw-footer li{margin-bottom:8px}
.zw-footer a:hover{color:var(--accent)}
.zw-footer__grid{display:grid;grid-template-columns:1.3fr 1fr 1fr 1.2fr;gap:40px}
.zw-footer__brand{font-family:var(--head);font-size:28px;font-weight:700;text-transform:uppercase;color:#fff}
.zw-footer__logo img{max-height:52px;width:auto;filter:brightness(0) invert(1)}
.zw-footer li small{color:#888;margin-inline-start:4px}
.zw-footer__bar{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;border-top:1px solid #2a2a2a;margin-top:40px;padding-top:20px;font-size:14px}
.zw-social{display:flex;gap:10px}
.zw-social a{display:grid;place-items:center;width:38px;height:38px;background:#1d1d1d}
.zw-social a:hover{background:var(--accent);color:#000}
.zw-social svg{width:18px;height:18px}
.zw-news input[type=email],.zw-news input[type=text]{background:#1d1d1d;border-color:#1d1d1d;color:#fff}
.zw-news input[type=submit],.zw-news button{background:#fff;color:#000;margin-top:8px}
@media (max-width:921px){.zw-footer__grid{grid-template-columns:1fr 1fr}}
@media (max-width:560px){.zw-footer__grid{grid-template-columns:1fr}}
.zw-top-btn{position:fixed;inset-inline-end:18px;bottom:18px;width:46px;height:46px;border:0;background:#000;color:#fff;cursor:pointer;display:none;place-items:center;z-index:90;box-shadow:0 6px 16px rgba(0,0,0,.25)}
.zw-top-btn.is-on{display:grid}
.zw-top-btn svg{width:22px;height:22px}

/* ================= Content pages ================= */
.zw-main{padding:48px 0 80px;min-height:50vh}
.zw-title{font-size:clamp(32px,4.5vw,56px);text-transform:uppercase;margin-bottom:.8em}
.zw-content{max-width:820px}
.zw-content.is-wide{max-width:none}

/* ================= WooCommerce ================= */
.price{font-family:var(--head);font-weight:600;color:#6b6b6b}
.price del{color:#a0a0a0;font-weight:400;margin-inline-end:6px}
.price ins{text-decoration:none}

/* Product grid = demo card: grey box, centred title, price, swatch dots */
ul.products{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:20px;clear:both}
ul.products.columns-4{grid-template-columns:repeat(4,1fr)}
ul.products li.product{position:relative;background:var(--grey);text-align:center;padding:0 0 30px;display:flex;flex-direction:column;margin:0;width:auto;float:none}
ul.products li.product a.woocommerce-LoopProduct-link{display:block}
ul.products li.product a img{width:100%;aspect-ratio:1/1;object-fit:contain;padding:28px 28px 8px;mix-blend-mode:multiply;background:transparent;margin:0 auto}
ul.products li.product .woocommerce-loop-product__title{font-family:var(--head);font-size:clamp(20px,2vw,28px);font-weight:500;color:#000;line-height:1.2;margin:14px 20px 8px;padding:0}
ul.products li.product .price{display:block;font-size:clamp(15px,1.4vw,18px);margin:0 20px 14px}
ul.products li.product .button{display:none}
ul.products li.product .added_to_cart{display:none}
.zw-swatches{display:flex;justify-content:center;gap:8px;margin:0 20px}
.zw-swatches i{display:block;width:22px;height:22px;border-radius:50%;border:0;box-shadow:0 0 0 4px #fff}
.zw-swatches i:not(:last-child){margin-inline-end:4px}
.onsale{position:absolute;top:20px;inset-inline-start:20px;z-index:2;background:#fff;color:#000;border-radius:999px;padding:6px 16px;font-family:var(--head);font-weight:500;font-size:15px;line-height:1.2;min-height:0;min-width:0}
@media (max-width:921px){ul.products,ul.products.columns-4{grid-template-columns:repeat(2,1fr)}}
@media (max-width:700px){
  ul.products{gap:16px}
  ul.products li.product .woocommerce-loop-product__title{text-align:start;font-size:22px}
  ul.products li.product .price{text-align:start}
  ul.products li.product a img{padding:20px 16px 4px}
  .onsale{top:12px;inset-inline-start:12px}
}

.woocommerce-breadcrumb{color:var(--muted);font-size:14px;margin-bottom:20px}
.woocommerce-ordering select,.woocommerce-result-count{font-size:14px}
.woocommerce-result-count{float:inline-start;margin:0 0 20px}
.woocommerce-ordering{float:inline-end;margin:0 0 20px}
div.product{display:grid;grid-template-columns:1fr 1fr;gap:48px}
div.product .woocommerce-product-gallery{background:var(--grey)}
div.product .woocommerce-product-gallery,div.product .summary{min-width:0}
div.product .summary .product_title{font-size:clamp(28px,3.4vw,44px);text-transform:uppercase}
div.product .summary .price{font-size:26px}
div.product .woocommerce-tabs,div.product .related,div.product .upsells{grid-column:1/-1}
.quantity .qty{width:72px;padding:.7em;border:1px solid var(--line);border-radius:0;font:inherit}
.single_add_to_cart_button{background:#000!important}
@media (max-width:760px){div.product{grid-template-columns:1fr;gap:24px}}
table.shop_table{width:100%;border-collapse:collapse}
table.shop_table th,table.shop_table td{padding:12px;border-bottom:1px solid var(--line);text-align:start}
.cart_totals,.woocommerce-checkout-review-order{background:var(--grey);padding:20px}
input[type=text],input[type=email],input[type=tel],input[type=password],input[type=number],input[type=search],textarea,select{width:100%;padding:.75em 1em;border:1px solid var(--line);border-radius:0;font:inherit;background:#fff}
.form-row{margin-bottom:14px}
.form-row label{display:block;font-weight:600;margin-bottom:4px}
.woocommerce-message,.woocommerce-info,.woocommerce-error{list-style:none;margin:0 0 20px;padding:14px 18px;background:var(--grey);border-inline-start:4px solid #000}
.woocommerce-error{background:#fdecea;border-color:#c0392b}
.woocommerce-message .button{float:inline-end;padding:.4em 1em;font-size:15px}
.col2-set{display:grid;grid-template-columns:1fr 1fr;gap:32px}
@media (max-width:760px){.col2-set{grid-template-columns:1fr}}
.woocommerce-checkout #customer_details{margin-bottom:28px}
.woocommerce-MyAccount-navigation ul{list-style:none;padding:0;display:flex;gap:16px;flex-wrap:wrap;border-bottom:1px solid var(--line);margin:0 0 24px}
.woocommerce-MyAccount-navigation a{display:block;padding:10px 0;font-weight:700}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
