/* =========================================================
   CocoHabib — Shared Stylesheet
   تم: طلایی تیره لوکس + Cloud Dancer (رنگ سال ۲۰۲۶ پنتون)
   ========================================================= */

:root{
  --bg:#0b0b0b;
  --panel:#141311;
  --panel-2:#1a1917;
  --gold:#d4af37;
  --gold-dark:#aa7c11;
  --gold-soft:rgba(212,175,55,0.18);
  --cloud:#f2efe7;           /* Pantone 11-4201 Cloud Dancer — رنگ سال ۲۰۲۶ */
  --cloud-dim:rgba(242,239,231,0.08);
  --text:#f5f5f2;
  --text-muted:#9a968d;
  --radius:14px;
  --maxw:1180px;
}

*{box-sizing:border-box;margin:0;padding:0;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;}
html{scroll-behavior:smooth;}
body{
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(212,175,55,0.06), transparent),
    var(--bg);
  color:var(--text);
  font-family:"Tahoma","Segoe UI",Arial,sans-serif;
  min-height:100vh;
  padding-bottom:40px;
  overflow-x:hidden;
}
[dir="ltr"]{font-family:"Segoe UI",Arial,sans-serif;}
img{max-width:100%;display:block;}
a{color:inherit;}
.container{max-width:var(--maxw);margin:0 auto;padding:0 18px;}

/* ---------- Top bar (announcement) ---------- */
.topbar{
  background:linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
  color:#000;
  font-size:12.5px;
  font-weight:700;
  text-align:center;
  padding:7px 10px;
  letter-spacing:.2px;
}

/* ---------- Nav ---------- */
.nav{
  position:sticky;top:0;z-index:40;
  background:rgba(11,11,11,0.85);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(212,175,55,0.18);
}
.nav-inner{
  max-width:var(--maxw);margin:0 auto;padding:12px 18px;
  display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;
}
.brand{
  display:flex;align-items:center;gap:8px;
  font-size:20px;font-weight:800;color:var(--gold);
  text-decoration:none;letter-spacing:.5px;
}
.brand .dot{width:8px;height:8px;border-radius:50%;background:var(--cloud);box-shadow:0 0 10px var(--cloud);}
.nav-links{display:flex;gap:4px;flex-wrap:wrap;align-items:center;}
.nav-links a{
  color:var(--text-muted);text-decoration:none;font-size:14px;font-weight:600;
  padding:8px 12px;border-radius:20px;transition:.2s;white-space:nowrap;
}
.nav-links a:hover{color:var(--text);background:rgba(255,255,255,0.04);}
.nav-links a.current{color:#000;background:var(--gold);}

/* ---------- Language switcher ---------- */
.language-switcher{
  display:flex;gap:4px;background:rgba(255,255,255,0.03);
  padding:5px 8px;border-radius:24px;border:1px solid rgba(212,175,55,0.15);
}
.lang-btn{
  background:none;border:none;color:#888;font-size:12.5px;font-weight:700;cursor:pointer;
  padding:6px 10px;border-radius:16px;transition:.2s;display:flex;align-items:center;gap:5px;
}
.lang-btn:hover{color:#fff;}
.lang-btn.active{background:linear-gradient(135deg,var(--gold),var(--gold-dark));color:#000;}

/* ---------- Hero ---------- */
.hero{
  max-width:var(--maxw);margin:34px auto 10px;padding:0 18px;text-align:center;
}
.eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  background:var(--cloud-dim);border:1px solid rgba(242,239,231,0.25);
  color:var(--cloud);font-size:12px;font-weight:700;letter-spacing:.5px;
  padding:6px 14px;border-radius:20px;margin-bottom:16px;
}
.hero h1{font-size:26px;font-weight:800;line-height:1.5;color:var(--text);max-width:720px;margin:0 auto 12px;}
.hero p.lead{color:var(--text-muted);max-width:640px;margin:0 auto;font-size:14.5px;line-height:1.9;}

/* ---------- Category grid (home) ---------- */
.cat-grid{
  max-width:var(--maxw);margin:36px auto;padding:0 18px;
  display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;
}
.cat-card{
  background:var(--panel);border:1px solid rgba(212,175,55,0.25);border-radius:var(--radius);
  padding:20px;text-decoration:none;position:relative;overflow:hidden;
  transition:transform .25s, box-shadow .25s, border-color .25s;
}
.cat-card::before{
  content:"";position:absolute;top:0;inset-inline-start:0;width:100%;height:3px;
  background:linear-gradient(90deg,var(--gold),var(--cloud));
}
.cat-card:hover{transform:translateY(-4px);box-shadow:0 16px 40px rgba(212,175,55,0.15);border-color:var(--gold);}
.cat-card img{width:100%;height:130px;object-fit:cover;border-radius:10px;margin-bottom:14px;border:1px solid rgba(212,175,55,0.25);}
.cat-card h3{color:var(--gold);font-size:16px;margin-bottom:6px;}
.cat-card p{color:var(--text-muted);font-size:12.5px;line-height:1.7;min-height:56px;}
.cat-card .arrow{color:var(--cloud);font-size:12px;font-weight:700;margin-top:8px;display:inline-block;}

/* ---------- Section title ---------- */
.section-title{
  color:var(--gold);font-size:21px;font-weight:800;margin:34px auto 6px;letter-spacing:.5px;
  text-align:center;text-shadow:0 2px 10px rgba(212,175,55,0.2);
}
.section-sub{
  text-align:center;color:var(--text-muted);font-size:13px;max-width:560px;margin:0 auto 28px;line-height:1.8;
}

/* ---------- 3D Scene / generic carousel ---------- */
.scene-wrap{display:flex;flex-direction:column;align-items:center;}
.scene{
  width:100%;max-width:420px;height:250px;position:relative;perspective:1100px;
  margin:0 auto 20px;touch-action:pan-y;
}
.face{
  position:absolute;width:100%;height:250px;background:var(--panel);
  border:2px solid var(--gold);border-radius:15px;padding:15px;
  display:flex;flex-direction:row;align-items:center;gap:15px;
  transition:transform .5s cubic-bezier(.2,.8,.2,1), opacity .4s;
  backface-visibility:hidden;will-change:transform;opacity:0;pointer-events:none;
}
.face:active{cursor:grabbing;}
.face.active{
  border-color:var(--gold);
  box-shadow:inset 0 0 30px rgba(212,175,55,0.12), 0 15px 40px rgba(212,175,55,0.2);
}
.product-image-box{
  flex:0 0 130px;height:130px;background:#111;border:2px solid var(--gold);border-radius:12px;
  overflow:hidden;display:flex;align-items:center;justify-content:center;
  box-shadow:0 0 20px rgba(212,175,55,0.2);
}
.product-image-box img{width:100%;height:100%;object-fit:cover;}
.product-details{flex:1;display:flex;flex-direction:column;justify-content:space-between;height:100%;text-align:start;}
.product-title{color:var(--gold);font-size:17px;font-weight:800;line-height:1.3;}
.product-desc{font-size:12px;color:#dcdcdc;line-height:1.6;margin:6px 0;min-height:70px;}
.buy-btn{
  background:linear-gradient(135deg,var(--gold),var(--gold-dark));color:#000;border:none;
  padding:9px 18px;border-radius:6px;font-weight:800;cursor:pointer;
  box-shadow:0 4px 12px rgba(212,175,55,0.3);transition:.2s;text-decoration:none;
  display:inline-block;font-size:12px;width:fit-content;
}
.buy-btn:hover{transform:scale(1.05);box-shadow:0 4px 18px rgba(212,175,55,0.5);}
.instructions{margin-top:-6px;margin-bottom:34px;font-size:12.5px;color:#888;text-align:center;letter-spacing:.3px;}

/* ---------- Order form ---------- */
.order-form-container{
  width:100%;max-width:420px;margin:20px auto 40px;
  background:linear-gradient(180deg,rgba(24,24,24,.98),rgba(14,14,14,.98));
  border:1px solid rgba(212,175,55,.5);border-radius:18px;padding:26px;
  box-shadow:0 20px 45px rgba(0,0,0,.45), inset 0 0 40px rgba(212,175,55,.04);
}
.order-form-container h2{color:var(--gold);text-align:center;margin-bottom:18px;font-size:18px;}
.form-group{margin-bottom:14px;}
.form-group label{color:var(--gold);font-size:13px;font-weight:700;display:block;margin-bottom:6px;}
.order-form-container input,.order-form-container select{
  width:100%;padding:11px;border-radius:8px;border:1px solid #444;background:#1a1a1a;color:#fff;font-size:14px;
}
.order-form-container input:focus,.order-form-container select:focus{
  outline:none;border-color:var(--gold);box-shadow:0 0 0 3px rgba(212,175,55,.15);
}
.submit-btn{
  width:100%;padding:14px;background:linear-gradient(135deg,var(--gold),var(--gold-dark));
  border:none;border-radius:8px;color:#000;font-weight:800;font-size:15px;cursor:pointer;
  margin-top:6px;transition:transform .2s, box-shadow .2s;
}
.submit-btn:hover{transform:translateY(-1px);box-shadow:0 8px 20px rgba(212,175,55,.35);}

/* ---------- Trust strip ---------- */
.trust-strip{
  display:flex;flex-wrap:wrap;justify-content:center;gap:10px;max-width:var(--maxw);margin:8px auto 30px;padding:0 18px;
}
.trust-chip{
  background:var(--cloud-dim);border:1px solid rgba(242,239,231,.2);color:var(--cloud);
  font-size:12px;font-weight:700;padding:7px 14px;border-radius:20px;
}

/* ---------- Footer ---------- */
.site-footer{
  margin-top:50px;border-top:1px solid rgba(212,175,55,.18);padding:30px 18px 20px;
  background:rgba(255,255,255,.015);
}
.footer-inner{
  max-width:var(--maxw);margin:0 auto;display:flex;flex-wrap:wrap;gap:24px;justify-content:space-between;
}
.footer-col{min-width:180px;flex:1;}
.footer-col h4{color:var(--gold);font-size:14px;margin-bottom:10px;}
.footer-col a{display:block;color:var(--text-muted);font-size:13px;text-decoration:none;margin-bottom:7px;}
.footer-col a:hover{color:var(--cloud);}
.footer-bottom{text-align:center;color:#666;font-size:11.5px;margin-top:24px;}

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float{
  position:fixed;bottom:20px;inset-inline-end:20px;width:56px;height:56px;border-radius:50%;
  background:#25D366;display:flex;align-items:center;justify-content:center;
  box-shadow:0 8px 24px rgba(0,0,0,.4);z-index:50;text-decoration:none;font-size:26px;
}

/* ---------- Chatbot ---------- */
.chat-bubble{
  position:fixed;bottom:20px;inset-inline-start:20px;width:56px;height:56px;border-radius:50%;
  background:linear-gradient(135deg,var(--gold),var(--gold-dark));display:flex;align-items:center;
  justify-content:center;box-shadow:0 8px 24px rgba(0,0,0,.4);z-index:50;cursor:pointer;font-size:24px;
}
.chat-panel{
  position:fixed;bottom:86px;inset-inline-start:20px;width:min(320px,86vw);max-height:60vh;
  background:var(--panel);border:1px solid rgba(212,175,55,.35);border-radius:16px;
  box-shadow:0 20px 50px rgba(0,0,0,.55);display:none;flex-direction:column;overflow:hidden;z-index:50;
}
.chat-panel.open{display:flex;}
.chat-head{background:linear-gradient(135deg,var(--gold),var(--gold-dark));color:#000;font-weight:800;
  padding:12px 14px;font-size:13.5px;display:flex;justify-content:space-between;align-items:center;}
.chat-head span.close{cursor:pointer;font-size:16px;}
.chat-body{padding:12px;overflow-y:auto;flex:1;display:flex;flex-direction:column;gap:8px;}
.chat-msg{font-size:12.5px;line-height:1.7;padding:9px 12px;border-radius:12px;max-width:88%;}
.chat-msg.bot{background:var(--cloud);color:#1a1a1a;align-self:flex-start;border-top-left-radius:2px;}
[dir="rtl"] .chat-msg.bot{align-self:flex-end;border-top-left-radius:12px;border-top-right-radius:2px;}
.chat-msg.user{background:var(--gold-soft);color:#f5e9c4;align-self:flex-end;border-top-right-radius:2px;}
[dir="rtl"] .chat-msg.user{align-self:flex-start;border-top-right-radius:12px;border-top-left-radius:2px;}
.chat-quick{display:flex;flex-wrap:wrap;gap:6px;padding:0 12px 10px;}
.chat-quick button{
  background:rgba(255,255,255,.05);border:1px solid rgba(212,175,55,.3);color:var(--text);
  font-size:11.5px;padding:6px 10px;border-radius:14px;cursor:pointer;
}
.chat-quick button:hover{background:var(--gold-soft);}
.chat-input{display:flex;border-top:1px solid rgba(212,175,55,.2);}
.chat-input input{
  flex:1;background:transparent;border:none;color:#fff;padding:11px 12px;font-size:13px;
}
.chat-input input:focus{outline:none;}
.chat-input button{background:var(--gold);border:none;color:#000;font-weight:800;padding:0 16px;cursor:pointer;}

@media (max-width:480px){
  .hero h1{font-size:21px;}
  .nav-links{gap:2px;}
  .nav-links a{padding:7px 9px;font-size:12.5px;}
}
