/* ==========================================================================
   CLVING Store — WooCommerce storefront
   ========================================================================== */
:root{
  --copper:#C4614A; --copper-soft:#D2806D; --copper-deep:#A34C38;
  --ink:#2B211E; --ink-2:#5C4A44; --ink-3:#8A7671;
  --cream:#FBF6F3; --blush:#F3E4DE; --blush-2:#EAD5CD;
  --line:#E6D5CE; --white:#fff; --ok:#1F6B41; --err:#B4442B;
  --r-sm:10px; --r:14px; --r-lg:22px; --r-pill:999px;
  --sh-1:0 1px 2px rgba(43,33,30,.05),0 4px 14px rgba(43,33,30,.06);
  --sh-2:0 12px 40px rgba(43,33,30,.13);
  --sans:'Tajawal',system-ui,-apple-system,'Segoe UI',sans-serif;
  --maxw:1240px;
}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;background:var(--cream);color:var(--ink);font-family:var(--sans);font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
button{font:inherit;cursor:pointer}
:focus-visible{outline:2px solid var(--copper);outline-offset:3px;border-radius:6px}
.wrap{max-width:var(--maxw);margin-inline:auto;padding-inline:20px}
h1,h2,h3{margin:0 0 .5em;line-height:1.2;font-weight:700}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip-link:focus{position:fixed;inset-block-start:8px;inset-inline-start:8px;z-index:200;background:#fff;padding:.7em 1.2em;border-radius:var(--r-sm);width:auto;height:auto;clip:auto}

/* header */
.site-header{position:sticky;top:0;z-index:60;background:rgba(251,246,243,.9);backdrop-filter:saturate(180%) blur(14px);border-bottom:1px solid var(--line)}
.header-in{display:flex;align-items:center;gap:18px;min-height:70px}
.brand{display:flex;align-items:center;gap:11px;flex-shrink:0}
.brand img{width:38px;height:38px;border-radius:10px;object-fit:cover}
.brand-name{display:block;font-size:22px;letter-spacing:.08em;font-weight:700}
.brand-sub{display:block;font-size:11px;color:var(--ink-3);margin-top:-3px}
.site-nav{display:flex;gap:24px;margin-inline-start:auto;font-size:15px}
.site-nav a{color:var(--ink-2);padding:6px 0;border-bottom:1.5px solid transparent;transition:.2s}
.site-nav a:hover{color:var(--copper);border-color:var(--copper)}
.header-actions{display:flex;align-items:center;gap:10px;margin-inline-start:auto}
.site-nav + .header-actions{margin-inline-start:20px}
.cart-link{position:relative;display:inline-flex;align-items:center;gap:.5em;background:var(--ink);color:#fff;padding:.6em 1.1em;border-radius:var(--r-pill);font-size:14px}
.cart-link:hover{background:var(--copper)}
.cart-count{min-width:20px;height:20px;padding:0 5px;border-radius:var(--r-pill);background:var(--copper);color:#fff;font-size:12px;font-weight:700;display:grid;place-items:center;line-height:1}
.nav-toggle{display:none;width:40px;height:40px;border-radius:10px;border:1px solid var(--line);background:#fff;place-items:center}
.header-actions form.woocommerce-product-search,.header-actions .search-form{display:flex;gap:6px}
.header-actions input[type=search]{border:1px solid var(--line);border-radius:var(--r-pill);padding:.5em 1em;font:inherit;font-size:14px;width:180px;outline:0;background:#fff}
.header-actions input[type=search]:focus{border-color:var(--copper)}
.header-actions button[type=submit]{border:0;background:var(--ink);color:#fff;border-radius:var(--r-pill);padding:.5em 1.05em;font-size:14px}

/* layout */
.site-main{padding:34px 0 70px;min-height:52vh}
.crumbs{font-size:13.5px;color:var(--ink-3);margin-bottom:20px}
.crumbs a:hover{color:var(--copper)}
.crumb-sep{margin-inline:.45em;color:var(--blush-2)}
.woocommerce-products-header__title,.entry-title,.product_title{font-size:clamp(26px,3.4vw,40px)}

/* product grid */
ul.products{list-style:none;margin:0;padding:0;display:grid;gap:22px;grid-template-columns:repeat(auto-fill,minmax(238px,1fr))}
ul.products li.product{background:var(--white);border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden;display:flex;flex-direction:column;position:relative;transition:transform .22s,box-shadow .22s,border-color .22s}
ul.products li.product:hover{transform:translateY(-4px);box-shadow:var(--sh-2);border-color:var(--blush-2)}
ul.products li.product a img{aspect-ratio:1;object-fit:contain;background:linear-gradient(160deg,#FDF9F7,var(--blush));padding:16px;mix-blend-mode:multiply;width:100%;transition:transform .5s}
ul.products li.product:hover a img{transform:scale(1.06)}
ul.products li.product .woocommerce-loop-product__title{font-size:16px;font-weight:600;padding:14px 16px 0;margin:0;line-height:1.35}
ul.products li.product .price{display:block;padding:6px 16px 0;color:var(--copper);font-weight:700;font-size:16px}
ul.products li.product .price del{color:var(--ink-3);font-weight:400;font-size:14px;margin-inline-end:.4em}
ul.products li.product .button{margin:14px 16px 16px;text-align:center}
.onsale{position:absolute;inset-block-start:12px;inset-inline-start:12px;z-index:2;background:var(--copper);color:#fff;font-size:11.5px;font-weight:700;padding:.35em .8em;border-radius:var(--r-pill)}
.woocommerce-result-count{color:var(--ink-3);font-size:14px}
.woocommerce-ordering select{border:1px solid var(--line);border-radius:var(--r-pill);padding:.5em 1em;background:#fff;font:inherit;font-size:14px}

/* buttons */
.button,button.button,a.button,input.button,.wc-block-components-button{
  display:inline-flex;align-items:center;justify-content:center;gap:.5em;
  background:var(--copper);color:#fff!important;border:0;border-radius:var(--r-pill);
  padding:.8em 1.5em;font-weight:600;font-size:15px;transition:.2s;cursor:pointer;
}
.button:hover,button.button:hover,a.button:hover{background:var(--copper-deep)}
.button.alt{background:var(--ink)}
.button.alt:hover{background:var(--copper)}
.added_to_cart{display:inline-block;margin:0 16px 16px;font-size:13.5px;color:var(--copper);text-decoration:underline}

/* single product */
.single-product div.product{display:grid;grid-template-columns:1fr 1fr;gap:44px;align-items:start}
/*
 * woocommerce.css lays the single product out with floats and width:48%.
 * Inside our grid that compounds — each column gets 48% of its own track and
 * the page collapses to two narrow strips. Neutralise the float model so the
 * grid alone decides the geometry.
 */
.single-product div.product > .woocommerce-product-gallery,
.single-product div.product > .summary{width:100%!important;float:none!important;margin:0!important;clear:none!important}
.single-product div.product > .woocommerce-tabs,
.single-product div.product > .related,
.single-product div.product > .up-sells{width:100%!important;float:none!important;clear:both}
.single-product .woocommerce-product-gallery{background:linear-gradient(160deg,#FDF9F7,var(--blush));border-radius:var(--r-lg);padding:22px}
/* wc-zoom overlays a full-resolution clone; keep it inside the frame. */
.woocommerce-product-gallery__image,.woocommerce-product-gallery__wrapper{overflow:hidden;position:relative}
.woocommerce-product-gallery img.zoomImg{max-width:none}
.single-product .summary{padding-block:6px}
.single-product .price{font-size:26px;color:var(--copper);font-weight:700}
.woocommerce-product-details__short-description{color:var(--ink-2)}
.product_meta{font-size:13px;color:var(--ink-3);margin-top:18px;border-top:1px solid var(--line);padding-top:14px}
.quantity input[type=number]{border:1px solid var(--line);border-radius:var(--r-sm);padding:.6em;width:78px;font:inherit;text-align:center}
.woocommerce-tabs{grid-column:1/-1;margin-top:44px}
.woocommerce-tabs ul.tabs{list-style:none;margin:0 0 20px;padding:0;display:flex;gap:8px;flex-wrap:wrap;border-bottom:1px solid var(--line)}
.woocommerce-tabs ul.tabs li a{display:inline-block;padding:.7em 1.2em;color:var(--ink-2);border-bottom:2px solid transparent}
.woocommerce-tabs ul.tabs li.active a{color:var(--copper);border-color:var(--copper);font-weight:600}

/* ---- shade swatches ---- */
/*
 * The real <select> stays in the DOM because the variation script reads and
 * rewrites it — we only take it out of the visual flow. Every property needs
 * !important: woocommerce.css targets `.variations select` with higher
 * specificity and otherwise keeps the element at its full 900px width, which
 * pushed the whole RTL page sideways.
 */
.clv-select-hidden{
  position:absolute!important;
  width:1px!important;height:1px!important;min-width:0!important;max-width:1px!important;
  padding:0!important;margin:-1px!important;border:0!important;
  overflow:hidden!important;white-space:nowrap!important;
  clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;
}
.clv-swatches{margin:6px 0 14px}
.clv-swatch-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(56px,1fr));gap:9px;max-height:320px;overflow-y:auto;padding:6px;border:1px solid var(--line);border-radius:var(--r);background:#fff}
.clv-swatch{border:0;background:none;padding:0;display:grid;gap:4px;justify-items:center;border-radius:10px;transition:transform .16s}
.clv-swatch:hover:not([disabled]){transform:translateY(-2px)}
.clv-swatch-chip{
  width:100%;aspect-ratio:1;border-radius:9px;position:relative;
  /* --sw is the sampled hex: it paints instantly and stands in if the
     photographed strand ever fails to load. */
  background-color:var(--sw,#ccc);
  background-size:cover;background-position:center;background-repeat:no-repeat;
  box-shadow:inset 0 0 0 1px rgba(43,33,30,.16), inset 0 -6px 12px rgba(0,0,0,.12);
}
.clv-swatch.is-active .clv-swatch-chip{box-shadow:0 0 0 2px var(--copper),inset 0 0 0 1px rgba(43,33,30,.14),inset 0 -8px 14px rgba(0,0,0,.16)}
.clv-swatch.is-active .clv-swatch-chip::after{content:'✓';position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-size:15px;font-weight:700;text-shadow:0 1px 4px rgba(0,0,0,.65)}
.clv-swatch-code{font-size:10px;color:var(--ink-3);line-height:1.1;text-align:center}
.clv-swatch[disabled],.clv-swatch.is-unavailable{opacity:.28;cursor:not-allowed}
.clv-swatch.is-unavailable .clv-swatch-chip{filter:grayscale(.7)}
.clv-swatch-chosen{font-size:13.5px;color:var(--ink-2);margin:8px 0 0;min-height:1.4em}

/* variations table */
table.variations{width:100%;border-collapse:collapse;margin-bottom:14px}
table.variations td{padding:0;vertical-align:top}
table.variations th.label{text-align:start;padding:0 0 6px;font-size:13px;color:var(--ink-3);font-weight:500}
.reset_variations{font-size:13px;color:var(--ink-3)}
.woocommerce-variation-price{margin-bottom:12px}

/* cart / checkout */
.woocommerce table.shop_table{width:100%;border-collapse:collapse;background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden}
.woocommerce table.shop_table th,.woocommerce table.shop_table td{padding:14px;border-bottom:1px solid var(--line);text-align:start}
.woocommerce table.shop_table th{background:#FCFAF9;font-size:13px;color:var(--ink-3);font-weight:500}
.cart_totals,.woocommerce-checkout-review-order{background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);padding:20px}
.woocommerce form .form-row{display:grid;gap:5px;margin-bottom:14px}
.woocommerce form .form-row label{font-size:13px;color:var(--ink-2)}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce form .form-row select,
.wc-block-components-text-input input{border:1px solid var(--line);border-radius:var(--r-sm);padding:.7em .9em;font:inherit;width:100%;background:#fff}
.woocommerce form .form-row input.input-text:focus{border-color:var(--copper);outline:0;box-shadow:0 0 0 3px rgba(196,97,74,.13)}

/* notices */
.woocommerce-message,.woocommerce-info,.woocommerce-error,.wc-block-components-notice-banner{
  border-radius:var(--r);padding:.9em 1.2em;margin-bottom:18px;font-size:14.5px;border:1px solid;
}
.woocommerce-message{background:#E8F5ED;border-color:#CDE8D8;color:var(--ok)}
.woocommerce-info{background:#EAF1FB;border-color:#D2E0F4;color:#2A5DA8}
.woocommerce-error{background:#FCEDE8;border-color:#F2D4CB;color:var(--err);list-style:none;padding-inline-start:1.2em}

/* price direction: keep Western digits reading LTR next to an Arabic symbol */
.clv-amount{unicode-bidi:isolate}

/* footer */
.site-footer{background:var(--ink);color:#EADFDB;padding:56px 0 24px}
.site-footer a:hover{color:var(--copper-soft)}
.footer-in{display:grid;grid-template-columns:1.6fr 1fr 1fr;gap:40px}
.site-footer h2{font-size:14px;color:#B6A29C;font-weight:500;margin-bottom:14px}
.site-footer ul{list-style:none;margin:0;padding:0;display:grid;gap:9px;font-size:14.5px}
.site-footer p{color:#B6A29C;font-size:14.5px;max-width:42ch}
.footer-bottom{margin-top:40px;padding-top:20px;border-top:1px solid rgba(255,255,255,.1);display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;font-size:13px;color:#9C8983}

@media (max-width:980px){
  .single-product div.product{grid-template-columns:1fr;gap:26px}
  .footer-in{grid-template-columns:1fr 1fr;gap:30px}
}
@media (max-width:760px){
  .site-nav{display:none}
  .site-nav.is-open{display:flex;position:absolute;inset-block-start:70px;inset-inline:0;flex-direction:column;background:var(--cream);border-bottom:1px solid var(--line);padding:14px 20px;gap:0;margin:0}
  .site-nav.is-open a{padding:11px 0;border-bottom:1px solid var(--line)}
  .nav-toggle{display:grid}
  .header-actions input[type=search]{width:120px}
  ul.products{grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:14px}
  .clv-swatch-grid{grid-template-columns:repeat(auto-fill,minmax(50px,1fr))}
  .footer-in{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;transition-duration:.01ms!important}}
