/*
Theme Name: CodPay
Theme URI: https://codpay.shop
Author: CodPay Team
Description: قالب WooCommerce احترافي مخصص للدفع عند الاستلام COD — مُحسَّن للتحويل والإعلانات — يدعم Elementor بالكامل
Version: 3.0.0
Requires at least: 6.0
Tested up to: 6.7
WC requires at least: 7.0
WC tested up to: 9.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: codpay
Tags: rtl-language, arabic, woocommerce, e-commerce, right-to-left, elementor
*/

/* ═══════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════ */
:root {
  --bg:         #FAFAFA;
  --bg2:        #F4F4F8;
  --white:      #FFFFFF;
  --primary:    #12121E;
  --accent:     #E8284A;
  --accent2:    #F5A623;
  --green:      #16A34A;
  --text:       #12121E;
  --text2:      #50506A;
  --muted:      #9898B0;
  --border:     #E4E4EE;
  --radius:     16px;
  --radius-sm:  10px;
  --shadow:     0 2px 16px rgba(18,18,30,.08);
  --shadow-md:  0 8px 32px rgba(18,18,30,.12);
  --shadow-lg:  0 20px 60px rgba(18,18,30,.16);
  --font:       'IBM Plex Sans Arabic', 'Cairo', sans-serif;
  --max:        1180px;
  --header-h:   66px;
}

/* ═══════════════════════════════════════════════
   RESET
═══════════════════════════════════════════════ */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{font-family:var(--font);background:var(--bg);color:var(--text);direction:rtl;line-height:1.65;overflow-x:hidden;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
button{cursor:pointer;font-family:inherit;border:none;background:none;line-height:inherit}
ul,ol{list-style:none}
input,textarea,select{font-family:inherit;font-size:inherit}
::-webkit-scrollbar{width:4px}
::-webkit-scrollbar-thumb{background:var(--accent);border-radius:2px}

/* ═══════════════════════════════════════════════
   LAYOUT UTILS
═══════════════════════════════════════════════ */
.wrap{max-width:var(--max);margin:0 auto;padding:0 20px}
.wrap-sm{max-width:760px;margin:0 auto;padding:0 20px}
.section{padding:72px 0}
.section-sm{padding:48px 0}
.text-center{text-align:center}

/* ═══════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════ */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:14px 28px;border-radius:50px;
  font-weight:700;font-size:15px;line-height:1;
  transition:transform .18s,box-shadow .18s,background .18s,color .18s;
  cursor:pointer;border:2px solid transparent;white-space:nowrap;
  text-decoration:none;font-family:var(--font);
}
.btn-red{background:var(--accent);color:#fff;box-shadow:0 4px 20px rgba(232,40,74,.28)}
.btn-red:hover{transform:translateY(-2px);box-shadow:0 8px 32px rgba(232,40,74,.38)}
.btn-dark{background:var(--primary);color:#fff;box-shadow:0 4px 20px rgba(18,18,30,.2)}
.btn-dark:hover{transform:translateY(-2px);box-shadow:0 8px 32px rgba(18,18,30,.3)}
.btn-outline{background:transparent;color:var(--primary);border-color:var(--border)}
.btn-outline:hover{border-color:var(--primary);background:var(--primary);color:#fff}
.btn-gold{background:var(--accent2);color:#fff;box-shadow:0 4px 20px rgba(245,166,35,.3)}
.btn-gold:hover{transform:translateY(-2px);box-shadow:0 8px 32px rgba(245,166,35,.4)}
.btn-lg{padding:18px 40px;font-size:17px}
.btn-full{width:100%}
.btn-sm{padding:10px 20px;font-size:13px}

/* ═══════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════ */
#masthead{
  position:sticky;top:0;z-index:900;
  height:var(--header-h);
  background:rgba(255,255,255,.95);
  backdrop-filter:blur(20px) saturate(180%);
  -webkit-backdrop-filter:blur(20px) saturate(180%);
  border-bottom:1px solid var(--border);
  transition:box-shadow .3s;
}
#masthead.scrolled{box-shadow:var(--shadow-md)}

.header-inner{
  height:100%;display:flex;align-items:center;
  justify-content:space-between;gap:20px;
}

/* Logo */
.site-branding{display:flex;align-items:center;gap:10px;flex-shrink:0}
.site-branding img{height:38px;width:auto}
.site-branding .logo-text{font-size:21px;font-weight:900;letter-spacing:-.5px}

/* Nav */
.main-navigation{display:flex;align-items:center;gap:2px}
.main-navigation a{
  padding:8px 13px;border-radius:var(--radius-sm);
  color:var(--text2);font-size:14px;font-weight:600;
  transition:color .18s,background .18s;
}
.main-navigation a:hover,
.main-navigation .current-menu-item>a{color:var(--accent);background:rgba(232,40,74,.06)}

/* Header right actions */
.header-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.header-search-btn,.header-cart-btn{
  width:40px;height:40px;border-radius:50%;
  background:var(--bg2);color:var(--text2);font-size:17px;
  display:flex;align-items:center;justify-content:center;
  transition:background .18s,color .18s;
  position:relative;
}
.header-search-btn:hover,.header-cart-btn:hover{background:var(--accent);color:#fff}
.cart-bubble{
  position:absolute;top:-4px;right:-4px;
  width:18px;height:18px;background:var(--accent);color:#fff;
  font-size:10px;font-weight:800;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  border:2px solid #fff;
}

/* Hamburger */
.nav-toggle{
  display:none;width:40px;height:40px;border-radius:var(--radius-sm);
  background:var(--bg2);flex-direction:column;
  align-items:center;justify-content:center;gap:5px;
}
.nav-toggle span{display:block;width:18px;height:2px;background:var(--text);border-radius:1px;transition:.3s}
.nav-toggle.open span:nth-child(1){transform:rotate(45deg) translate(5px,5px)}
.nav-toggle.open span:nth-child(2){opacity:0;transform:scaleX(0)}
.nav-toggle.open span:nth-child(3){transform:rotate(-45deg) translate(5px,-5px)}

/* Mobile drawer */
.mobile-nav{
  position:fixed;top:var(--header-h);right:0;bottom:0;width:270px;
  background:#fff;border-left:1px solid var(--border);
  padding:20px 16px;z-index:899;overflow-y:auto;
  transform:translateX(110%);transition:transform .3s cubic-bezier(.4,0,.2,1);
}
.mobile-nav.open{transform:none}
.mobile-nav a{
  display:block;padding:12px 14px;margin-bottom:4px;
  border-radius:var(--radius-sm);color:var(--text2);
  font-weight:600;font-size:15px;transition:color .18s,background .18s;
}
.mobile-nav a:hover{color:var(--accent);background:rgba(232,40,74,.06)}
.nav-overlay{
  position:fixed;inset:0;background:rgba(0,0,0,.35);z-index:898;
  opacity:0;pointer-events:none;transition:opacity .3s;
}
.nav-overlay.active{opacity:1;pointer-events:all}

/* Announcement bar */
.announcement-bar{
  background:var(--primary);color:rgba(255,255,255,.9);
  text-align:center;padding:8px 20px;font-size:13px;font-weight:600;
}
.announcement-bar a{color:var(--accent2);text-decoration:underline}

/* ═══════════════════════════════════════════════
   HERO SECTION — Fixed background control
═══════════════════════════════════════════════ */
.hero{
  position:relative;overflow:hidden;
  min-height:88vh;display:flex;align-items:center;
}
/* Default dark background - overridden by dynamic CSS from customizer */
.hero-bg{
  position:absolute;inset:0;
  background-color:#12121E;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}
.hero-overlay{
  position:absolute;inset:0;
  background:linear-gradient(100deg,rgba(18,18,30,.88) 0%,rgba(18,18,30,.55) 55%,rgba(18,18,30,.1) 100%);
}
.hero-content{
  position:relative;z-index:2;
  padding:80px 0;max-width:580px;
}
.hero-eyebrow{
  display:inline-flex;align-items:center;gap:7px;
  background:rgba(232,40,74,.18);border:1px solid rgba(232,40,74,.35);
  color:#FF8FA3;padding:5px 14px;border-radius:50px;
  font-size:12px;font-weight:800;letter-spacing:.5px;
  margin-bottom:18px;
}
.hero-title{
  font-size:clamp(30px,5vw,58px);font-weight:900;
  line-height:1.12;letter-spacing:-1.5px;color:#fff;margin-bottom:16px;
}
.hero-title .hl{color:var(--accent2)}
.hero-subtitle{font-size:16px;color:rgba(255,255,255,.72);line-height:1.8;margin-bottom:32px}
.hero-cta-row{display:flex;gap:12px;flex-wrap:wrap}
.hero-trust{
  display:flex;gap:20px;margin-top:30px;flex-wrap:wrap;
}
.trust-pill{
  display:flex;align-items:center;gap:6px;
  color:rgba(255,255,255,.7);font-size:13px;font-weight:600;
}
.trust-pill .icon{font-size:16px}

/* ═══════════════════════════════════════════════
   CATEGORY PILLS BAR
═══════════════════════════════════════════════ */
.cat-bar{padding:28px 0;background:var(--white);border-bottom:1px solid var(--border)}
.cat-scroller{
  display:flex;gap:10px;overflow-x:auto;
  scrollbar-width:none;padding-bottom:4px;
}
.cat-scroller::-webkit-scrollbar{display:none}
.cat-pill{
  display:inline-flex;align-items:center;gap:7px;
  padding:10px 18px;border-radius:50px;flex-shrink:0;
  border:1.5px solid var(--border);background:var(--white);
  color:var(--text2);font-size:14px;font-weight:700;
  transition:all .18s;cursor:pointer;text-decoration:none;
}
.cat-pill:hover,.cat-pill.active{
  background:var(--accent);color:#fff;border-color:var(--accent);
  transform:translateY(-2px);box-shadow:0 6px 18px rgba(232,40,74,.22);
}
.cat-pill .cat-icon{font-size:18px}

/* ═══════════════════════════════════════════════
   CATEGORY SECTIONS (home page - multiple)
═══════════════════════════════════════════════ */
.cat-section{
  padding:64px 0;
}
.cat-section:nth-child(even){background:var(--bg2);}
.cat-section-header{
  display:flex;align-items:flex-end;justify-content:space-between;
  margin-bottom:32px;flex-wrap:wrap;gap:16px;
}
.cat-section-header .sec-title{margin-bottom:0}
.cat-section-viewall{
  font-size:14px;font-weight:700;color:var(--accent);
  display:flex;align-items:center;gap:4px;white-space:nowrap;
  border:1.5px solid rgba(232,40,74,.25);padding:8px 18px;border-radius:50px;
  transition:all .18s;
}
.cat-section-viewall:hover{background:var(--accent);color:#fff}

/* ═══════════════════════════════════════════════
   SECTION HEADING
═══════════════════════════════════════════════ */
.sec-head{margin-bottom:40px}
.sec-head.center{text-align:center}
.sec-label{
  display:inline-flex;align-items:center;gap:6px;
  font-size:11px;font-weight:800;color:var(--accent);
  letter-spacing:1.5px;text-transform:uppercase;margin-bottom:10px;
}
.sec-label::before{content:'';width:18px;height:2px;background:var(--accent);flex-shrink:0}
.sec-title{
  font-size:clamp(22px,3.5vw,38px);font-weight:900;
  letter-spacing:-1px;line-height:1.2;color:var(--text);
}
.sec-title .hl{color:var(--accent)}
.sec-sub{font-size:16px;color:var(--text2);margin-top:8px;line-height:1.7}

/* ═══════════════════════════════════════════════
   PRODUCT GRID — nuclear override
   4 col desktop | 2 col mobile — everywhere
═══════════════════════════════════════════════ */
.products-section{padding:64px 0}

/* ── ALL ul.products → 4 col by default ── */
ul.products,
.woocommerce ul.products,
.woocommerce-page ul.products,
body ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  list-style: none !important;
}
ul.products li.product,
.woocommerce ul.products li.product {
  margin: 0 !important;
  width: auto !important;
  float: none !important;
  padding: 0 !important;
  clear: none !important;
}

/* Product card */
.product-card{
  background:var(--white);
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  display:flex;flex-direction:column;
  transition:transform .25s,box-shadow .25s,border-color .25s;
  position:relative;
}
.product-card:hover{
  transform:translateY(-5px);
  box-shadow:var(--shadow-lg);
  border-color:rgba(232,40,74,.15);
}

/* image */
.product-card .card-img{
  position:relative;overflow:hidden;
  aspect-ratio:1/1;background:var(--bg2);
}
.product-card .card-img img{
  width:100%;height:100%;object-fit:cover;
  transition:transform .4s ease;
}
.product-card:hover .card-img img{transform:scale(1.07)}

/* floating badges */
.card-badges{
  position:absolute;top:10px;right:10px;
  display:flex;flex-direction:column;gap:5px;z-index:2;
}
.cb{
  padding:3px 10px;border-radius:20px;
  font-size:11px;font-weight:800;
}
.cb-sale{background:var(--accent);color:#fff}
.cb-hot{background:var(--accent2);color:#fff}
.cb-new{background:var(--green);color:#fff}
.cb-free{background:var(--primary);color:#fff}
/* Product tag badges — customizable per tag */
.cb-tag{background:#6B21A8;color:#fff}

/* quick buy overlay */
.card-quick{
  position:absolute;bottom:0;left:0;right:0;
  background:rgba(18,18,30,.88);
  display:flex;align-items:center;justify-content:center;
  padding:14px;
  transform:translateY(100%);transition:transform .25s ease;
}
.product-card:hover .card-quick{transform:none}
.card-quick a{
  color:#fff;font-size:13px;font-weight:800;
  display:flex;align-items:center;gap:6px;
}

/* body */
.product-card .card-body{padding:14px 14px 16px;flex:1;display:flex;flex-direction:column}
.card-cat{
  font-size:10px;color:var(--muted);font-weight:700;
  text-transform:uppercase;letter-spacing:.5px;margin-bottom:5px;
}
.card-name{
  font-size:14px;font-weight:800;color:var(--text);
  margin-bottom:8px;line-height:1.35;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.card-name a:hover{color:var(--accent)}

.card-price-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.price-now{font-size:18px;font-weight:900;color:var(--accent)}
.price-was{font-size:13px;color:var(--muted);text-decoration:line-through}
.price-save-pct{
  font-size:10px;font-weight:800;
  background:rgba(22,163,74,.1);color:var(--green);
  padding:2px 7px;border-radius:20px;
}

.card-ship{
  display:flex;align-items:center;gap:5px;
  font-size:11px;font-weight:700;color:var(--green);
  padding-top:8px;border-top:1px solid var(--border);margin-top:auto;
}

.card-btn{
  margin-top:10px;padding:11px;border-radius:50px;
  font-size:13px;font-weight:800;
  background:var(--accent);color:#fff;
  display:flex;align-items:center;justify-content:center;gap:6px;
  transition:transform .18s,box-shadow .18s;
  text-decoration:none;
}
.card-btn:hover{transform:translateY(-1px);box-shadow:0 6px 18px rgba(232,40,74,.3)}

/* ═══════════════════════════════════════════════
   SINGLE PRODUCT PAGE
═══════════════════════════════════════════════ */
.single-product-wrap{padding:32px 0 80px}
.product-layout{
  display:grid;grid-template-columns:1fr 1fr;
  gap:56px;align-items:start;
}

/* Breadcrumb */
.cp-breadcrumb{
  padding:12px 0 24px;
  font-size:13px;color:var(--muted);
  display:flex;align-items:center;gap:6px;flex-wrap:wrap;
}
.cp-breadcrumb a:hover{color:var(--accent)}
.cp-breadcrumb span{color:var(--muted)}

/* Gallery */
.product-gallery{position:sticky;top:calc(var(--header-h) + 16px)}
.gallery-main{
  border-radius:var(--radius);overflow:hidden;
  aspect-ratio:1/1;background:var(--bg2);
  margin-bottom:12px;position:relative;cursor:zoom-in;
}
.gallery-main img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease, opacity .15s ease}
.gallery-main:hover img{transform:scale(1.04)}
.gallery-badges{position:absolute;top:14px;right:14px;display:flex;flex-direction:column;gap:6px;z-index:2}
.gallery-thumbs{display:flex;gap:10px;overflow-x:auto;scrollbar-width:none}
.gallery-thumbs::-webkit-scrollbar{display:none}
.g-thumb{
  width:72px;height:72px;border-radius:var(--radius-sm);overflow:hidden;
  border:2px solid transparent;flex-shrink:0;cursor:pointer;
  transition:border-color .18s,transform .18s;background:var(--bg2);
}
.g-thumb:hover{transform:scale(1.03)}
.g-thumb.active,.g-thumb.active:hover{border-color:var(--accent);transform:none;box-shadow:0 0 0 1px var(--accent);}
.g-thumb img{width:100%;height:100%;object-fit:cover}

/* Product info */
.product-info{display:flex;flex-direction:column;gap:22px}
.product-cat-line{font-size:12px;color:var(--muted);font-weight:700;text-transform:uppercase;letter-spacing:1px}
.product-cat-line a:hover{color:var(--accent)}
.product-title{font-size:clamp(22px,3vw,32px);font-weight:900;letter-spacing:-.5px;line-height:1.2}

/* Rating */
.rating-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.stars{color:#F59E0B;font-size:15px;letter-spacing:1px}
.rating-count{font-size:13px;color:var(--muted)}
.sold-badge{
  font-size:12px;font-weight:700;
  background:rgba(232,40,74,.08);color:var(--accent);
  padding:3px 10px;border-radius:20px;
}

/* Price box */
.price-box{
  background:var(--bg2);border-radius:var(--radius);
  padding:18px 20px;
  display:flex;align-items:center;gap:14px;flex-wrap:wrap;
}
.pb-now{font-size:34px;font-weight:900;color:var(--accent)}
.pb-was{font-size:16px;color:var(--muted);text-decoration:line-through}
.pb-save{
  font-size:13px;font-weight:800;
  background:rgba(22,163,74,.1);color:var(--green);
  padding:4px 12px;border-radius:20px;
}

/* COD form wrapper */
.cod-form-wrap{
  background:var(--white);border:1.5px solid var(--border);
  border-radius:var(--radius);padding:22px;
}
.cod-form-wrap .cod-form-title{
  font-size:16px;font-weight:800;
  margin-bottom:16px;display:flex;align-items:center;gap:8px;
}

/* Override CodPay plugin styles inside single product */
.cod-form-wrap .quantity-discount-order-form{
  border:none!important;padding:0!important;margin:0!important;max-width:100%!important;
}
.cod-form-wrap .order-button-container{display:none!important}

/* Trust guarantees */
.guarantees-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.g-item{
  background:var(--bg2);border-radius:var(--radius-sm);
  padding:14px 10px;text-align:center;
  /* No reveal animation — always visible */
  opacity:1 !important;transform:none !important;
}
.g-icon{font-size:22px;margin-bottom:5px}
.g-label{font-size:12px;font-weight:800;color:var(--text)}
.g-sub{font-size:11px;color:var(--muted);margin-top:2px}

/* Short description */
.product-short-desc{
  font-size:14px;color:var(--text2);line-height:1.8;
  padding-bottom:18px;border-bottom:1px solid var(--border);
}

/* Product tabs */
.product-tabs{margin-top:60px}
.tabs-nav{display:flex;border-bottom:2px solid var(--border);gap:0;margin-bottom:28px;overflow-x:auto;scrollbar-width:none}
.tabs-nav::-webkit-scrollbar{display:none}
.tab-trigger{
  padding:13px 22px;font-size:14px;font-weight:700;
  color:var(--muted);border-bottom:2px solid transparent;
  margin-bottom:-2px;cursor:pointer;white-space:nowrap;
  transition:color .18s,border-color .18s;font-family:var(--font);background:none;border-top:none;border-left:none;border-right:none;
}
.tab-trigger.active{color:var(--accent);border-bottom-color:var(--accent)}
.tab-panel{display:none;font-size:15px;color:var(--text2);line-height:1.85}
.tab-panel.active{display:block}
.tab-panel p{margin-bottom:14px}

/* Related products */
.related-section{padding:60px 0 80px;border-top:1px solid var(--border)}

/* ═══════════════════════════════════════════════
   FEATURES STRIP
═══════════════════════════════════════════════ */
.features-strip{background:var(--primary);padding:52px 0}
.fs-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.fs-item{
  display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;
  padding:22px 16px;border-radius:var(--radius);
  background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.07);
  transition:background .2s;
}
.fs-item:hover{background:rgba(255,255,255,.08)}
.fs-icon-wrap{
  width:52px;height:52px;border-radius:50%;
  background:rgba(232,40,74,.15);border:1.5px solid rgba(232,40,74,.3);
  display:flex;align-items:center;justify-content:center;
  font-size:22px;
}
.fs-title{font-size:14px;font-weight:800;color:#fff}
.fs-desc{font-size:12px;color:rgba(255,255,255,.5);line-height:1.6}

/* ═══════════════════════════════════════════════
   OFFER BANNER (full-width promo)
═══════════════════════════════════════════════ */
.offer-banner{
  padding:56px 0;
  background:linear-gradient(135deg,var(--primary) 0%,#2A1040 100%);
  position:relative;overflow:hidden;
}
.offer-banner::before{
  content:'';position:absolute;inset:0;
  background:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Ccircle cx='30' cy='30' r='30'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.offer-inner{
  position:relative;z-index:1;
  display:flex;align-items:center;justify-content:space-between;
  gap:32px;flex-wrap:wrap;
}
.offer-text .offer-label{
  font-size:12px;font-weight:800;letter-spacing:2px;color:var(--accent2);
  text-transform:uppercase;margin-bottom:8px;
}
.offer-text .offer-title{font-size:clamp(22px,3.5vw,36px);font-weight:900;color:#fff;line-height:1.2}
.offer-text .offer-desc{font-size:14px;color:rgba(255,255,255,.6);margin-top:8px}
.offer-countdown{display:flex;gap:16px;align-items:center}
.count-block{text-align:center}
.count-num{
  font-size:36px;font-weight:900;color:#fff;
  background:rgba(255,255,255,.08);border-radius:10px;
  padding:8px 16px;display:block;min-width:70px;line-height:1;
}
.count-label{font-size:11px;color:rgba(255,255,255,.5);font-weight:700;margin-top:5px}
.count-sep{font-size:28px;font-weight:900;color:var(--accent);margin-top:-10px}

/* ═══════════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════════ */
.testimonials-section{padding:72px 0;background:var(--bg2)}
.testi-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.testi-card{
  background:var(--white);border:1px solid var(--border);
  border-radius:var(--radius);padding:22px;
  transition:transform .2s,box-shadow .2s;
}
.testi-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-md)}
.testi-stars{color:#F59E0B;font-size:14px;letter-spacing:2px;margin-bottom:12px}
.testi-text{font-size:14px;color:var(--text2);line-height:1.75;margin-bottom:16px}
.testi-author{display:flex;align-items:center;gap:10px}
.testi-av{
  width:40px;height:40px;border-radius:50%;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  display:flex;align-items:center;justify-content:center;
  font-size:16px;font-weight:900;color:#fff;flex-shrink:0;
}
.testi-name{font-size:13px;font-weight:800}
.testi-role{font-size:11px;color:var(--muted)}

/* ═══════════════════════════════════════════════
   SHOP ARCHIVE
═══════════════════════════════════════════════ */
.archive-wrap{padding:44px 0 80px}
.shop-layout{display:grid;grid-template-columns:220px 1fr;gap:32px;align-items:start}

.shop-sidebar{position:sticky;top:calc(var(--header-h)+16px)}
.sidebar-widget{
  background:var(--white);border:1px solid var(--border);
  border-radius:var(--radius);padding:20px;margin-bottom:16px;
}
.sw-title{font-size:14px;font-weight:800;margin-bottom:16px}
.filter-options{display:flex;flex-direction:column;gap:10px}
.filter-opt{display:flex;align-items:center;gap:8px;font-size:14px;cursor:pointer}
.filter-opt input{accent-color:var(--accent);width:15px;height:15px}
.filter-count{color:var(--muted);font-size:12px;margin-right:auto}

.price-slider{padding:6px 0}
.price-slider input[type=range]{width:100%;accent-color:var(--accent);margin-bottom:8px}
.price-labels{display:flex;justify-content:space-between;font-size:13px;font-weight:700}

.sort-bar{
  display:flex;align-items:center;justify-content:space-between;
  margin-bottom:22px;flex-wrap:wrap;gap:12px;
}
.results-txt{font-size:14px;color:var(--muted);font-weight:600}
.sort-sel{
  padding:8px 14px;border-radius:var(--radius-sm);
  border:1px solid var(--border);font-size:14px;font-weight:600;
  font-family:inherit;color:var(--text);background:var(--white);cursor:pointer;
}

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
#colophon{background:var(--primary);color:rgba(255,255,255,.75);padding:64px 0 0}
.footer-grid{display:grid;grid-template-columns:1.6fr repeat(3,1fr);gap:48px;margin-bottom:48px}
.footer-brand-logo{font-size:22px;font-weight:900;color:#fff;margin-bottom:12px}
.footer-brand-logo span{color:var(--accent)}
.footer-tagline{font-size:13px;color:rgba(255,255,255,.45);line-height:1.7;margin-bottom:18px}
.footer-social{display:flex;gap:8px}
.social-icon{
  width:36px;height:36px;border-radius:50%;
  background:rgba(255,255,255,.07);color:#fff;font-size:15px;
  display:flex;align-items:center;justify-content:center;
  transition:background .18s;
}
.social-icon:hover{background:var(--accent)}
.footer-col-title{font-size:13px;font-weight:800;color:#fff;margin-bottom:16px;text-transform:uppercase;letter-spacing:.5px}
.footer-links{display:flex;flex-direction:column;gap:9px}
.footer-links a{font-size:14px;color:rgba(255,255,255,.45);transition:color .18s}
.footer-links a:hover{color:#fff}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.07);
  padding:20px 0;text-align:center;
  font-size:12px;color:rgba(255,255,255,.3);
}

/* ═══════════════════════════════════════════════
   WOOCOMMERCE RESETS
═══════════════════════════════════════════════ */
.woocommerce-breadcrumb{display:none!important}
.woocommerce-product-gallery{display:none!important}
.woocommerce div.product div.images{display:none!important}
.woocommerce div.product div.summary{float:none!important;width:100%!important;clear:both}
.entry-summary{float:none!important;width:100%!important}
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button{font-family:var(--font)!important}
.woocommerce-notices-wrapper{margin-bottom:20px}
.woocommerce-message{border-top-color:var(--accent)!important;font-family:var(--font)!important}
.woocommerce-error li,.woocommerce-info{font-family:var(--font)!important}
.single_add_to_cart_button.button{display:none!important}
.cart,.quantity,.product_meta,.woocommerce-tabs{display:none!important}
.woocommerce-product-rating{display:none}

/* ═══════════════════════════════════════════════
   PAGE: CONTACT / GENERAL
═══════════════════════════════════════════════ */
.page-content-wrap{padding:60px 0 80px}
.page-title{font-size:clamp(26px,4vw,42px);font-weight:900;letter-spacing:-1px;margin-bottom:8px}
.page-subtitle{font-size:16px;color:var(--text2);margin-bottom:40px}
.cp-contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:start}
.cp-form-field{margin-bottom:16px}
.cp-form-field label{display:block;font-size:13px;font-weight:700;margin-bottom:6px;color:var(--text)}
.cp-form-field input,
.cp-form-field textarea,
.cp-form-field select{
  width:100%;padding:12px 16px;border-radius:var(--radius-sm);
  border:1.5px solid var(--border);font-size:14px;font-family:var(--font);
  background:var(--white);color:var(--text);transition:border-color .18s;
}
.cp-form-field input:focus,
.cp-form-field textarea:focus{border-color:var(--accent);outline:none}
.cp-form-field textarea{resize:vertical;min-height:120px}

/* ═══════════════════════════════════════════════
   ELEMENTOR COMPATIBILITY
═══════════════════════════════════════════════ */
/* When Elementor is editing, remove theme padding */
.elementor-editor-active .site-header-elementor{display:none}
/* Elementor full-width sections */
.elementor-section.elementor-section-stretched{
  max-width:100%!important;
  left:0!important;right:0!important;
}
/* Let Elementor control page content width */
body.elementor-page #page .wrap,
body.elementor-page .page-content-wrap .wrap{
  max-width:100%;padding:0;
}
body.elementor-page .page-content-wrap{padding:0}
/* Product page Elementor support */
body.elementor-page.woocommerce-page .single-product-wrap{padding:0}


/* Lightbox animation */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */

/* Large tablet: 3 columns */
@media(max-width:1200px){
  ul.products, .woocommerce ul.products, body ul.products {
    grid-template-columns: repeat(4, 1fr) !important;
  }
  .footer-grid{grid-template-columns:1fr 1fr;gap:28px}
}

/* Tablet */
@media(max-width:900px){
  ul.products, .woocommerce ul.products, body ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }
  .footer-grid{grid-template-columns:1fr 1fr;gap:20px}
  .fs-grid{grid-template-columns:repeat(2,1fr)}
}

/* Mobile nav + 2-col grid */
@media(max-width:860px){
  .main-navigation{display:none}
  .nav-toggle{display:flex}
  .product-layout{grid-template-columns:1fr;gap:32px}
  .product-gallery{position:static}
  .shop-layout{grid-template-columns:1fr}
  .shop-sidebar{display:none}
  .guarantees-grid{grid-template-columns:1fr 1fr}
  .testi-grid{grid-template-columns:1fr 1fr}
  .offer-inner{flex-direction:column}
  .cp-contact-grid{grid-template-columns:1fr}

  /* 2 columns — every ul.products on mobile */
  ul.products, .woocommerce ul.products, body ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
}

@media(max-width:540px){
  .testi-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
  .fs-grid{grid-template-columns:1fr 1fr}
  .hero-cta-row{flex-direction:column}
  .hero-cta-row .btn{width:100%}

  /* 2 columns on small mobile */
  ul.products, .woocommerce ul.products, body ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .product-card .card-body{padding:10px 10px 12px}
  .card-name{font-size:13px}
  .price-now{font-size:15px}
  .card-btn{font-size:13px;padding:10px}
}
