/* ══════════════════════════════════════════════════════════════
   LORA 3D Storefront Stylesheet v2.2 (WCAG 2.2 AA & RTL Native)
   ══════════════════════════════════════════════════════════════ */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --sage:#4e6e40;
  --sage-light:#a3bf93;
  --sage-dark:#38522d;
  --sage-pale:#edf3e9;
  --black:#0f0f0f;
  --dark:#181c17;
  --dark2:#232821;
  --charcoal:#2d332b;
  --gray:#555555;
  --gray-light:#6b7280;
  --cream:#f6f5f2;
  --beige:#ece8e1;
  --white:#ffffff;
  --danger:#c53030;
  --gold:#92400e;
  --font:'Cairo',Tahoma,Arial,sans-serif;
  --radius:10px;
  --radius-lg:16px;
}
html{scroll-behavior:smooth}
body{
  font-family:var(--font);
  background:var(--cream);
  color:var(--dark);
  direction:rtl;
  font-size:16px;
  line-height:1.72;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
ul{list-style:none}
.container{width:100%;max-width:1200px;margin:0 auto;padding:0 24px}

/* ── Accessibility Utilities ── */
.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}
.skip-link{
  position:absolute;top:-100px;right:16px;z-index:10000;
  background:var(--sage);color:#fff;padding:.65rem 1.2rem;
  border-radius:var(--radius);font-weight:800;transition:top .2s;
}
.skip-link:focus{top:12px}
:focus-visible{
  outline:2.5px solid var(--sage);
  outline-offset:2px;
}

/* ── Typographic Scale (h1 > h2 > h3 > h4 > body) ── */
h1{font-size:clamp(1.85rem,3.6vw,2.85rem);line-height:1.24;font-weight:900}
h2{font-size:clamp(1.45rem,2.5vw,1.95rem);line-height:1.3;font-weight:900}
h3{font-size:1.14rem;line-height:1.4;font-weight:800}
h4{font-size:1.02rem;line-height:1.45;font-weight:800}

/* ── Buttons ── */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.45rem;
  min-height:44px;padding:.65rem 1.65rem;border-radius:50px;
  font-family:var(--font);font-size:.94rem;font-weight:800;
  cursor:pointer;border:2px solid transparent;transition:background .2s,border-color .2s,color .2s,transform .15s;
  white-space:nowrap;
}
.btn-sage{background:var(--sage);color:#fff;border-color:var(--sage)}
.btn-sage:hover{background:var(--sage-dark);border-color:var(--sage-dark)}
.btn-outline-white{background:transparent;border-color:rgba(255,255,255,.68);color:#fff}
.btn-outline-white:hover{background:rgba(255,255,255,.14);border-color:#fff}
.btn-outline{background:transparent;border-color:var(--dark);color:var(--dark)}
.btn-outline:hover{background:var(--dark);color:#fff}
.btn-primary{background:var(--dark);color:#fff;border-color:var(--dark)}
.btn-primary:hover{background:var(--sage);border-color:var(--sage)}
.btn-dark{background:var(--dark2);color:#fff;border-color:var(--dark2)}
.btn-dark:hover{background:var(--sage);border-color:var(--sage)}
.btn-sm{min-height:38px;padding:.38rem 1rem;font-size:.84rem}
.btn-full{width:100%}

/* ── Promo Banner Bar ── */
.promo-banner{
  background:linear-gradient(90deg,var(--sage-dark),var(--sage));
  color:#fff;padding:.65rem 0;text-align:center;font-size:.88rem;font-weight:700;
}
.promo-banner .promo-inner{display:flex;align-items:center;justify-content:center;gap:.85rem;flex-wrap:wrap}
.promo-banner a.promo-cta{
  background:#fff;color:var(--sage-dark);padding:.2rem .85rem;
  border-radius:50px;font-size:.8rem;font-weight:800;
}

/* ── Header ── */
.site-header{
  background:rgba(15,18,14,.97);backdrop-filter:blur(12px);
  position:sticky;top:0;z-index:200;border-bottom:1px solid rgba(255,255,255,.08);
}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:68px;gap:1rem}
.logo{font-size:1.45rem;font-weight:900;color:#fff;letter-spacing:.04em;flex-shrink:0}
.nav{display:flex;align-items:center;gap:.2rem;flex:1;justify-content:center}
.nav a{
  color:rgba(255,255,255,.88);font-size:.89rem;font-weight:700;
  padding:.45rem .9rem;border-radius:50px;transition:.2s;
}
.nav a:hover,.nav a.active{color:#fff;background:rgba(255,255,255,.15)}
.header-actions{display:flex;align-items:center;gap:.6rem;flex-shrink:0}
.cart-btn{
  display:inline-flex;align-items:center;gap:.45rem;color:#fff;font-weight:800;
  font-size:.88rem;min-height:42px;padding:.42rem 1.05rem;border-radius:50px;
  background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);transition:.2s;
}
.cart-btn:hover{background:var(--sage);border-color:var(--sage)}
.cart-count{background:var(--sage-light);color:#111;font-size:.76rem;font-weight:900;padding:.08rem .48rem;border-radius:50px}
.hamburger{
  display:none;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.18);
  border-radius:8px;cursor:pointer;width:44px;height:44px;align-items:center;justify-content:center;flex-direction:column;gap:5px;
}
.hamburger span{display:block;width:22px;height:2px;background:#fff;border-radius:2px;transition:.2s}

/* ── Hero ── */
.hero{background:var(--dark);overflow:hidden;min-height:540px;display:flex;align-items:center}
.hero-inner{display:grid;grid-template-columns:1fr 460px;gap:2.5rem;align-items:center;padding:3.8rem 0;width:100%}
.hero-eyebrow{
  display:inline-flex;align-items:center;gap:.5rem;
  background:rgba(163,191,147,.14);border:1px solid rgba(163,191,147,.35);
  color:var(--sage-light);font-size:.82rem;font-weight:800;
  padding:.3rem .95rem;border-radius:50px;margin-bottom:1.2rem;
}
.hero-content h1{color:#fff;margin-bottom:1.1rem}
.hero-content h1 em{font-style:normal;color:var(--sage-light)}
.hero-content p{color:rgba(255,255,255,.78);font-size:1.02rem;margin-bottom:2rem;max-width:480px;line-height:1.85}
.hero-btns{display:flex;gap:.75rem;flex-wrap:wrap}
.hero-stats{display:flex;gap:2.2rem;margin-top:2.2rem;padding-top:1.6rem;border-top:1px solid rgba(255,255,255,.12)}
.hero-stat-num{font-size:1.5rem;font-weight:900;color:#fff}
.hero-stat-label{font-size:.8rem;color:rgba(255,255,255,.72);margin-top:.1rem}
.hero-visual{position:relative;height:440px;display:flex;align-items:center;justify-content:center}
.hero-visual-bg{position:absolute;inset:0;background:radial-gradient(ellipse at 50% 50%,rgba(163,191,147,.22) 0%,transparent 68%);border-radius:var(--radius-lg)}
.hero-visual img{position:relative;z-index:1;max-height:420px;width:auto;object-fit:contain;animation:loraFloat 5s ease-in-out infinite}
@keyframes loraFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}

/* ── Sections & Categories ── */
.categories-section{padding:3.5rem 0;background:var(--white)}
.section-eyebrow{display:inline-block;color:var(--sage-dark);font-size:.8rem;font-weight:800;margin-bottom:.4rem}
.section-title{color:var(--dark);margin-bottom:.35rem}
.section-title span{color:var(--sage)}
.section-sub{color:var(--gray);font-size:.94rem}
.section-header{margin-bottom:2rem}
.categories-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:.9rem;margin-top:1.6rem}
.cat-card{
  background:var(--cream);border-radius:var(--radius-lg);padding:1.35rem .75rem;
  text-align:center;transition:.22s;border:1.5px solid rgba(0,0,0,.05);color:var(--dark);
  display:flex;flex-direction:column;align-items:center;gap:.65rem;
}
.cat-card:hover,.cat-card.active{background:var(--sage-pale);border-color:var(--sage);transform:translateY(-3px)}
.cat-icon{
  width:46px;height:46px;border-radius:12px;background:var(--white);color:var(--sage);
  display:inline-flex;align-items:center;justify-content:center;box-shadow:0 2px 6px rgba(0,0,0,.05);
}
.cat-name{font-size:.84rem;font-weight:800;line-height:1.35;color:var(--charcoal)}

/* ── Product Cards ── */
.products-section{padding:4rem 0;background:var(--cream)}
.product-grid,.shop-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:1.35rem}
.product-card,.shop-card{
  background:var(--white);border-radius:var(--radius-lg);overflow:hidden;
  box-shadow:0 2px 12px rgba(0,0,0,.06);transition:transform .22s,box-shadow .22s;
  border:1px solid rgba(0,0,0,.07);display:flex;flex-direction:column;
}
.product-card:hover,.shop-card:hover{transform:translateY(-4px);box-shadow:0 10px 28px rgba(0,0,0,.11);border-color:var(--sage-light)}
.product-card-img,.shop-card-img{aspect-ratio:1/1;overflow:hidden;background:var(--beige);position:relative;padding:0}
.product-card-img img,.shop-card-img img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.product-card:hover .product-card-img img,.shop-card:hover .shop-card-img img{transform:scale(1.04)}
.ribbon,.shop-card-badge{
  position:absolute;top:12px;inset-inline-start:12px;background:var(--dark);color:#fff;
  font-size:.76rem;font-weight:800;padding:.22rem .72rem;border-radius:50px;
}
.ribbon-sale{background:var(--sage)}
.shop-card-cat{
  position:absolute;bottom:10px;inset-inline-start:10px;
  background:rgba(15,15,15,.8);color:#fff;font-size:.76rem;font-weight:700;
  padding:.2rem .68rem;border-radius:50px;
}
.product-card-body,.shop-card-body{padding:1.1rem 1.2rem 1.3rem;flex:1;display:flex;flex-direction:column}
.product-card-body h3,.shop-card-body h3{font-size:1.04rem;font-weight:800;margin-bottom:.25rem;color:var(--dark)}
.product-card-body .subtitle,.shop-card-body .sub{font-size:.84rem;color:var(--gray);margin-bottom:.65rem}
.price-row,.shop-card-footer{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:.5rem;flex-wrap:wrap}
.price,.shop-card-price{font-size:1.08rem;font-weight:900;color:var(--dark)}
.price-sale{color:var(--sage-dark);font-weight:900}
.price-original{font-size:.85rem;color:var(--gray-light);text-decoration:line-through;margin-inline-start:.35rem}

/* ── CTA & Trust & FAQ ── */
.cta-band{background:var(--sage-pale);padding:3.8rem 0;text-align:center;border-top:1px solid rgba(78,110,64,.16);border-bottom:1px solid rgba(78,110,64,.16)}
.cta-band h2{margin-bottom:.55rem}
.cta-band p{color:var(--charcoal);max-width:540px;margin:0 auto 1.6rem;font-size:.98rem}

.trust-section{background:var(--dark);padding:3.2rem 0}
.trust-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.2rem}
.trust-item{text-align:center;padding:1.5rem 1.1rem;border-radius:var(--radius-lg);background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1)}
.trust-icon{width:48px;height:48px;border-radius:12px;background:rgba(163,191,147,.16);color:var(--sage-light);display:inline-flex;align-items:center;justify-content:center;margin-bottom:.75rem}
.trust-item h3{color:#fff;font-size:1.02rem;margin-bottom:.3rem}
.trust-item p{font-size:.84rem;color:rgba(255,255,255,.75);line-height:1.65}

.faq-section{padding:4rem 0;background:var(--white)}
.faq-list{max-width:760px;margin:0 auto}
.faq-item{border-bottom:1px solid #e2e8f0}
.faq-q{
  width:100%;background:none;border:none;font-family:var(--font);text-align:right;
  display:flex;justify-content:space-between;align-items:center;gap:1rem;
  padding:1.15rem 0;cursor:pointer;font-weight:800;font-size:1rem;color:var(--dark);
}
.faq-q::after{content:'+';font-size:1.4rem;color:var(--sage);font-weight:700;line-height:1;flex-shrink:0}
.faq-item.open .faq-q::after{content:'−'}
.faq-a{display:none;padding:0 0 1.2rem;color:var(--gray);line-height:1.85;font-size:.94rem}
.faq-item.open .faq-a{display:block}

/* ── Product Detail ── */
.product-detail{padding:1rem 0 4rem}
.product-detail-grid{display:grid;grid-template-columns:1fr 1.05fr;gap:2.8rem;align-items:start;margin:1.5rem 0 3rem}
.product-images{display:flex;flex-direction:column;gap:.85rem}
.product-main-img{aspect-ratio:1/1;border-radius:var(--radius-lg);overflow:hidden;background:var(--white);border:1px solid rgba(0,0,0,.08)}
.product-main-img img{width:100%;height:100%;object-fit:cover}
.product-thumbs{display:flex;gap:.6rem;flex-wrap:wrap}
.product-thumb{
  width:76px;height:76px;padding:0;background:var(--white);
  border-radius:var(--radius);overflow:hidden;cursor:pointer;border:2px solid #cbd5e1;
}
.product-thumb img{width:100%;height:100%;object-fit:cover}
.product-thumb.active{border-color:var(--sage)}
.specs-grid{
  display:grid;grid-template-columns:repeat(2,1fr);gap:.65rem;
  background:var(--white);border:1px solid #e2e8f0;border-radius:12px;padding:1rem;margin:1.2rem 0;
}
.spec-item{font-size:.88rem}
.spec-item span{color:var(--gray);display:block;font-size:.78rem;font-weight:700}
.spec-item strong{color:var(--dark);font-weight:800}
.trust-strip-mini{
  display:grid;grid-template-columns:repeat(3,1fr);gap:.6rem;
  background:var(--sage-pale);border-radius:12px;padding:.85rem;margin-top:1.2rem;
  font-size:.82rem;font-weight:700;color:var(--sage-dark);text-align:center;
}

/* ── Page Header, Breadcrumb, Static Content ── */
.page-header{background:var(--dark);color:#fff;padding:2.4rem 0}
.page-header h1{font-size:clamp(1.6rem,3vw,2.1rem);margin-bottom:.25rem}
.page-header p{color:rgba(255,255,255,.75);font-size:.92rem}
.breadcrumb{font-size:.86rem;color:var(--gray);padding:1.1rem 0 .3rem;display:flex;flex-wrap:wrap;gap:.35rem;align-items:center}
.breadcrumb a{color:var(--sage-dark);font-weight:700;text-decoration:underline}

.page-content{max-width:800px;margin:0 auto;padding:2.8rem 0 4.5rem}
.page-content h2{margin-bottom:1rem;color:var(--dark)}
.page-content h3{margin:1.8rem 0 .6rem;color:var(--dark)}
.page-content p{color:var(--charcoal);line-height:1.9;margin-bottom:1rem;font-size:.97rem}
.page-content ul{margin:.5rem 0 1.2rem;padding-inline-start:1.5rem;list-style:disc;color:var(--charcoal)}
.page-content ul li{margin-bottom:.5rem;font-size:.95rem}

/* ── Forms, Cart, Checkout & Result Pages ── */
.custom-form input[type="text"],
.custom-form input[type="email"],
.custom-form input[type="tel"],
.custom-form input[type="number"],
.custom-form input[type="url"],
.custom-form input[type="file"],
.custom-form textarea,
.custom-form select{
  width:100%;padding:.78rem 1rem;border:1.5px solid #cbd5e1;border-radius:10px;
  font-family:var(--font);font-size:.96rem;background:#fff;color:var(--dark);transition:border-color .2s,box-shadow .2s;
}
.custom-form input:focus,.custom-form textarea:focus,.custom-form select:focus{
  border-color:var(--sage);outline:none;box-shadow:0 0 0 3px rgba(78,110,64,.15);
}
.custom-form label{display:block;font-weight:800;margin-bottom:.38rem;color:var(--dark);font-size:.92rem}
.custom-form .form-group{margin-bottom:1.15rem}
.custom-form .form-row{display:grid;grid-template-columns:1fr 1fr;gap:1.15rem}
.required-star{color:var(--danger)}

.cart-page{padding:2.5rem 0 4rem}
.cart-empty,.result-page{
  text-align:center;padding:4rem 1.5rem;max-width:560px;margin:2.5rem auto;
  background:var(--white);border-radius:var(--radius-lg);border:1px solid rgba(0,0,0,.07);
  box-shadow:0 4px 18px rgba(0,0,0,.05);
}
.result-icon{font-size:3.4rem;margin-bottom:.8rem}
.cart-grid{display:grid;grid-template-columns:1fr 360px;gap:2rem;align-items:start}
.cart-item{display:flex;align-items:center;gap:1.25rem;padding:1.25rem;background:#fff;border-radius:var(--radius-lg);margin-bottom:1rem;border:1px solid rgba(0,0,0,.07)}
.cart-item-img{width:96px;height:96px;flex-shrink:0;border-radius:var(--radius);overflow:hidden;background:var(--beige)}
.cart-item-img img{width:100%;height:100%;object-fit:cover}
.cart-item-info{flex:1}
.cart-item-info h3{font-size:1.02rem;margin-bottom:.2rem}
.cart-item-actions{display:flex;align-items:center;gap:.8rem;margin-top:.75rem;flex-wrap:wrap}
.cart-item-price{font-weight:900;font-size:1.08rem;color:var(--sage-dark)}
.cart-summary{background:var(--white);padding:1.5rem;border-radius:var(--radius-lg);border:1px solid rgba(0,0,0,.08)}
.summary-row{display:flex;justify-content:space-between;margin-bottom:.75rem;font-size:.95rem}
.summary-total{border-top:1.5px solid #e2e8f0;padding-top:.85rem;font-weight:900;font-size:1.12rem}
.qty-btn{
  width:40px;height:40px;border:1.5px solid #cbd5e1;background:#fff;
  border-radius:8px;cursor:pointer;font-size:1.1rem;font-weight:800;
}
.qty-btn:hover{border-color:var(--sage);background:var(--sage-pale)}
.remove-btn{background:none;border:none;color:var(--danger);font-size:.86rem;font-weight:800;cursor:pointer;text-decoration:underline;min-height:40px;padding:0 .4rem}

.checkout-grid{display:grid;grid-template-columns:1.6fr 1fr;gap:2rem;align-items:start}
.checkout-form{background:var(--white);padding:1.8rem;border-radius:var(--radius-lg);border:1px solid rgba(0,0,0,.07)}

/* ── Flash ── */
.flash{padding:.95rem 1.2rem;border-radius:var(--radius);margin-bottom:1.2rem;font-weight:700;font-size:.93rem}
.flash-error{background:#fef2f2;color:#991b1b;border:1px solid #fca5a5}
.flash-success{background:var(--sage-pale);color:var(--sage-dark);border:1px solid var(--sage-light)}

/* ── Footer & Floating WhatsApp ── */
.site-footer{background:var(--black);color:rgba(255,255,255,.75);padding:3.5rem 0 1.6rem}
.footer-grid{display:grid;grid-template-columns:1.4fr repeat(3,1fr);gap:2.2rem;margin-bottom:2.2rem}
.footer-brand p{font-size:.87rem;line-height:1.8;max-width:260px;margin-top:.7rem}
.footer-col h3{color:#fff;font-size:.96rem;font-weight:800;margin-bottom:.85rem}
.footer-col ul li{margin-bottom:.48rem}
.footer-col ul li a{font-size:.87rem;transition:.2s}
.footer-col ul li a:hover{color:var(--sage-light)}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1);padding-top:1.2rem;text-align:center;font-size:.82rem}

.wa-float{
  position:fixed;bottom:20px;left:20px;z-index:190;
  background:#15803d;color:#fff;border-radius:50px;
  padding:.65rem 1.15rem;font-weight:800;font-size:.88rem;
  display:inline-flex;align-items:center;gap:.45rem;
  box-shadow:0 6px 20px rgba(0,0,0,.25);transition:transform .2s;
}
.wa-float:hover{transform:translateY(-2px);background:#166534}

/* ── Responsive ── */
@media(max-width:1024px){
  .hero-inner{grid-template-columns:1fr;text-align:center}
  .hero-visual{display:none}
  .hero-content p{margin-inline:auto}
  .hero-btns,.hero-stats{justify-content:center}
  .categories-grid{grid-template-columns:repeat(4,1fr)}
  .trust-grid,.footer-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:860px){
  .product-detail-grid,.cart-grid,.checkout-grid{grid-template-columns:1fr}
}
@media(max-width:680px){
  .nav{
    display:none;flex-direction:column;position:fixed;top:68px;inset-inline:0;bottom:0;
    background:#111510;padding:1.5rem;gap:.4rem;z-index:999;overflow-y:auto;justify-content:flex-start;
  }
  .nav.open{display:flex}
  .nav a{font-size:1.02rem;padding:.85rem 1rem;border-radius:var(--radius);width:100%;border-bottom:1px solid rgba(255,255,255,.08)}
  .hamburger{display:inline-flex}
  .categories-grid{grid-template-columns:repeat(2,1fr)}
  .product-grid,.shop-grid{grid-template-columns:repeat(2,1fr);gap:.9rem}
  .trust-grid,.footer-grid,.custom-form .form-row,.specs-grid,.trust-strip-mini{grid-template-columns:1fr}
}
@media(max-width:420px){
  .product-grid,.shop-grid{grid-template-columns:1fr}
}

/* ── Reduced Motion (WCAG 2.3.3) ── */
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}
}
