/* ============================================
   Dana Handmade — style.css
   ============================================ */

:root {
  --pink-light:  #F8E1E7;
  --pink-soft:   #F2C9D3;
  --pink-accent: #D98BA3;
  --beige:       #F5EFE6;
  --cream:       #FBF7F1;
  --gold:        #B8935A;
  --gold-light:  #D4B483;
  --dark:        #3E3A39;
  --gray:        #7A7370;
  --white:       #FFFFFF;

  --font-ar: 'El Messiri', sans-serif;
  --font-en: 'Quicksand', sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(62, 58, 57, 0.08);
  --shadow-lg: 0 12px 40px rgba(62, 58, 57, 0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ar);
  background: var(--cream);
  color: var(--dark);
  line-height: 1.8;
  overflow-x: hidden;
  transition: var(--transition);
}

body[dir="ltr"] { font-family: var(--font-en); }

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-alt { background: var(--beige); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(251, 247, 241, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184, 147, 90, 0.15);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 24px;
  position: relative;  /* 🆕 ضروري للتوسيط المطلق */
}

.logo {
  font-family: var(--font-en);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
  z-index: 2;  /* 🆕 فوق الروابط إذا تداخلوا */
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  /* 🆕 توسيط مطلق بالنسبة للهيدر */
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;  /* 🆕 */
}

.lang-toggle {
  background: var(--pink-light);
  color: var(--dark);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: var(--transition);
  font-family: var(--font-en);
}
.lang-toggle:hover { background: var(--pink-accent); color: var(--white); }

.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--dark); transition: var(--transition); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  font-family: inherit;
}

.btn-primary { background: var(--pink-accent); color: var(--white); }
.btn-primary:hover { background: var(--dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-outline { background: transparent; color: var(--dark); border-color: var(--dark); }
.btn-outline:hover { background: var(--dark); color: var(--white); }

.btn-whatsapp { background: #25D366; color: var(--white); }
.btn-whatsapp:hover { background: #1da851; transform: translateY(-2px); }

.btn-sham { background: var(--gold); color: var(--white); }
.btn-sham:hover { background: var(--dark); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero {
  padding: 100px 0 80px;
  background: linear-gradient(135deg, var(--pink-light) 0%, var(--beige) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--pink-soft) 0%, transparent 70%);
  opacity: 0.5;
  border-radius: 50%;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -150px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--gold-light) 0%, transparent 70%);
  opacity: 0.25;
  border-radius: 50%;
}

.hero-content { position: relative; z-index: 1; text-align: center; max-width: 800px; margin: 0 auto; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--gold);
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 24px;
  color: var(--dark);
}

.hero h1 .accent { color: var(--pink-accent); }

.hero p {
  font-size: 1.15rem;
  color: var(--gray);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--dark);
}
.section-title p { color: var(--gray); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }
.section-title .divider {
  width: 60px; height: 3px;
  background: var(--gold);
  margin: 20px auto;
  border-radius: 2px;
}

/* ---------- Grid + Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: 16px; }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 18px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(184, 147, 90, 0.08);
  text-align: center;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--pink-soft);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--pink-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  color: var(--pink-accent);
  font-size: 1.4rem;
  transition: var(--transition);
}

.card:hover .card-icon { background: var(--pink-accent); color: var(--white); }

.card h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--dark); font-weight: 700; }
.card p { color: var(--gray); font-size: 0.85rem; line-height: 1.6; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--beige);
  cursor: pointer;
  display: block;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img { transform: scale(1.08); }

.gallery-item::after {
  content: "\f00e";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(62, 58, 57, 0.5);
  color: var(--white);
  font-size: 2rem;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover::after { opacity: 1; }

/* ---------- Order Box ---------- */
.order-box {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(184, 147, 90, 0.1);
}

/* ---------- Form ---------- */
.form-group { margin-bottom: 22px; }
.form-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--dark);
  font-size: 0.95rem;
}
.form-group label i { color: var(--pink-accent); font-size: 0.85rem; }
.form-group label .required { color: var(--pink-accent); }

.form-control {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--beige);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--cream);
  color: var(--dark);
  transition: var(--transition);
  outline: none;
}

.form-control:focus { border-color: var(--pink-accent); background: var(--white); }
textarea.form-control { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- Calculator (inline) ---------- */
.calc-embedded {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px dashed rgba(184, 147, 90, 0.3);
}

.calc-embedded-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.calc-embedded-title i { color: var(--pink-accent); }

.calculator-inline {
  background: transparent;
  padding: 0;
  box-shadow: none;
  max-width: 100%;
  margin: 0;
}

.calc-section { margin-bottom: 24px; }

.calc-section h4 {
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.calc-section h4::before {
  content: "";
  width: 4px; height: 16px;
  background: var(--pink-accent);
  border-radius: 2px;
}

.calc-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.calc-option {
  padding: 12px 10px;
  border: 2px solid var(--beige);
  border-radius: var(--radius-sm);
  background: var(--cream);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--dark);
}

.calc-option:hover { border-color: var(--pink-soft); background: var(--pink-light); }
.calc-option.selected { border-color: var(--pink-accent); background: var(--pink-light); font-weight: 700; }

.calc-extras {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.calc-extra {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.85rem;
  border: 1px solid transparent;
}

.calc-extra:hover { background: var(--pink-light); }
.calc-extra input { accent-color: var(--pink-accent); width: 16px; height: 16px; cursor: pointer; }

.quantity-control { display: flex; align-items: center; justify-content: center; gap: 16px; }

.qty-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--pink-light);
  color: var(--dark);
  font-size: 1.2rem;
  font-weight: 700;
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}

.qty-btn:hover { background: var(--pink-accent); color: var(--white); }
.qty-value { font-size: 1.3rem; font-weight: 700; min-width: 50px; text-align: center; }

.calculator-inline .calc-result {
  background: linear-gradient(135deg, var(--pink-light) 0%, var(--beige) 100%);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  margin-top: 24px;
  border: 1px solid rgba(217, 139, 163, 0.2);
}

.calculator-inline .calc-result .label {
  color: var(--gray);
  font-size: 0.85rem;
  margin-bottom: 6px;
  font-weight: 600;
}

.calculator-inline .calc-result .price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  font-family: var(--font-en);
  line-height: 1.2;
}

.calculator-inline .calc-result .price span {
  font-size: 0.95rem;
  color: var(--gold);
  font-family: var(--font-ar);
  font-weight: 700;
}

.calculator-inline .calc-result .calc-note {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--gray);
  line-height: 1.5;
}

/* ---------- Sham Cash ---------- */
.sham-section {
  margin-top: 32px;
  padding: 28px 24px;
  background: linear-gradient(135deg, var(--beige) 0%, var(--pink-light) 100%);
  border-radius: var(--radius);
  text-align: center;
}

.sham-section h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--dark);
  font-weight: 700;
}

.sham-section h3 i { color: var(--gold); }
.sham-section p { color: var(--gray); margin-bottom: 20px; }

/* ---------- Sticky Price Bar ---------- */
.sticky-price-bar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-120%);
  z-index: 1100;
  background: linear-gradient(135deg, var(--pink-accent), var(--gold));
  color: var(--white);
  padding: 10px 22px;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 8px 24px rgba(217, 139, 163, 0.4);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
  text-align: center;
}

.sticky-price-bar.visible { transform: translateX(-50%) translateY(0); opacity: 1; }
.sticky-price-bar.hidden { transform: translateX(-50%) translateY(-120%); opacity: 0; }

.sticky-price-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-ar);
}

.sticky-price-content i { font-size: 0.9rem; opacity: 0.9; }
.sticky-price-label { font-size: 0.82rem; font-weight: 600; opacity: 0.95; }
.sticky-price-value { font-family: var(--font-en); font-size: 1.1rem; font-weight: 700; letter-spacing: 0.5px; }
.sticky-price-value small { font-family: var(--font-ar); font-size: 0.72rem; font-weight: 600; opacity: 0.9; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: var(--cream); padding: 60px 0 30px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { color: var(--white); font-size: 1.1rem; margin-bottom: 16px; font-weight: 700; }
.footer p, .footer a { color: rgba(251, 247, 241, 0.7); font-size: 0.9rem; line-height: 2; transition: var(--transition); }
.footer a:hover { color: var(--pink-accent); }
.footer-links { list-style: none; }

.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(251, 247, 241, 0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--pink-accent); color: var(--white); transform: translateY(-3px); }

.footer-bottom {
  border-top: 1px solid rgba(251, 247, 241, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(251, 247, 241, 0.5);
}

/* ---------- WhatsApp Float ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px; left: 24px;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 1.6rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
}
body[dir="ltr"] .whatsapp-float { left: auto; right: 24px; }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5); }

/* ---------- Lightbox2 ---------- */
.lb-outerContainer { border-radius: var(--radius); overflow: hidden; }
.lb-dataContainer { background: var(--dark); border-radius: 0 0 var(--radius) var(--radius); }
.lb-data { color: var(--cream); font-family: var(--font-ar); padding: 12px 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav { gap: 12px; padding: 14px 16px; }
  .logo { font-size: 1.15rem; }

    .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    left: auto;
    transform: none;   /* 🆕 إلغاء التوسيط */
    width: 80%;
    max-width: 320px;
    height: calc(100vh - 70px);
    background: var(--cream);
    flex-direction: column;
    padding: 40px 24px;
    gap: 24px;
    box-shadow: var(--shadow-lg);
    transition: right 0.3s ease;
    flex: none;
    justify-content: flex-start;
  }

  body[dir="ltr"] .nav-links { right: auto; left: -100%; transition: left 0.3s ease; }
  .nav-links.open { right: 0; }
  body[dir="ltr"] .nav-links.open { right: auto; left: 0; }

  .menu-toggle { display: flex; }
  .section { padding: 60px 0; }
  .order-box { padding: 24px 18px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 60px 0; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .calculator-inline .calc-result .price { font-size: 1.6rem; }
  .calculator-inline .calc-options { grid-template-columns: repeat(2, 1fr); }
  .calculator-inline .calc-extras { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
  .grid-4 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease forwards; }