:root {
  --orange: #f26a21;
  --dark: #1a1612;
  --cream: #f5e6cc;
  --gold: #c4a882;
  --white: #fff;
  --soft: #fff8ef;
  --muted: #6e625a;
  --line: #efe0cf;
  --shadow: 0 18px 45px rgba(26, 22, 18, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", Inter, "Noto Sans Arabic", Tahoma, Arial, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.55;
  font-weight: 400;
}
[data-lang="fr"] [data-ar] { display: none !important; }
[data-lang="ar"] [data-fr] { display: none !important; }
[data-lang="ar"] { direction: rtl; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.container { width: min(1180px, 92%); margin: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  min-height: 118px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.brand img { width: 142px; height: auto; display: block; object-fit: contain; }
.menu { display: flex; align-items: center; gap: 22px; font-weight: 600; font-size: 14px; color: #3b302a; }
.menu a:hover { color: var(--orange); }
.login-menu { position: relative; }
.login-submenu { display: none; position: absolute; top: 100%; left: 0; min-width: 210px; background: white; border: 1px solid var(--line); border-radius: 16px; padding: 8px; box-shadow: var(--shadow); z-index: 90; }
.login-menu:hover .login-submenu, .login-menu:focus-within .login-submenu { display: grid; gap: 4px; }
.login-submenu a { padding: 10px 12px; border-radius: 10px; }
.login-submenu a:hover { background: var(--soft); }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.menu-toggle span { width: 20px; height: 2px; background: var(--dark); display: block; }
.lang { display: flex; gap: 6px; background: #fff3e6; border: 1px solid var(--line); padding: 5px; border-radius: 999px; }
.lang button { border: 0; background: transparent; padding: 8px 12px; border-radius: 999px; font-weight: 600; cursor: pointer; color: var(--dark); }
.lang button.active { background: var(--orange); color: white; }
.cart-btn { border: 0; background: var(--dark); color: white; border-radius: 999px; padding: 10px 14px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; }
.cart-count { width: 20px; height: 20px; border-radius: 50%; background: var(--orange); color: white; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  min-height: 48px;
}
.btn-primary { background: var(--orange); color: white; box-shadow: 0 10px 24px rgba(242, 106, 33, .25); }
.btn-outline { background: white; border-color: var(--line); color: var(--dark); }

.hero { padding: 82px 0 60px; background: linear-gradient(135deg, #fff 0%, #fff4e6 54%, #ffe2c6 100%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 46px; align-items: center; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 600;
  color: var(--orange);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .05);
}
.badge-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--orange);
  color: white;
}
h1 { font-size: clamp(40px, 5.4vw, 68px); line-height: 1.06; margin: 20px 0 18px; letter-spacing: 0; font-weight: 600; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.14; margin: 0 0 10px; letter-spacing: 0; font-weight: 600; }
h3 { margin: 0 0 8px; font-weight: 600; }
.lead { font-size: 20px; color: var(--muted); max-width: 680px; margin: 0 0 30px; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 720px; }
.trust div { background: rgba(255, 255, 255, .78); border: 1px solid var(--line); border-radius: 18px; padding: 14px; font-weight: 600; font-size: 13px; }
.mock { background: white; border: 1px solid var(--line); border-radius: 36px; padding: 26px; box-shadow: var(--shadow); }
.mock-logo { text-align: center; padding: 30px; background: linear-gradient(180deg, #fff, #fff6ea); border-radius: 26px; }
.mock-logo img { width: min(440px, 92%); height: auto; object-fit: contain; }
.search { margin-top: 20px; display: flex; gap: 10px; background: #f7f3ef; border-radius: 18px; padding: 10px; }
.search input { flex: 1; min-width: 0; border: 0; background: white; border-radius: 14px; padding: 14px; outline: none; }
.product-searchbar { margin: 0 0 22px; }

section { padding: 70px 0; }
.soft-section { background: var(--soft); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.muted { color: var(--muted); }
.cats, .products, .features, .shops { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.products { grid-template-columns: repeat(3, 1fr); }
.card, .choice-card, .form-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 10px 24px rgba(26, 22, 18, .06);
}
.category-card { text-align: left; font: inherit; color: inherit; cursor: pointer; }
.category-card.is-active, .category-card:hover { border-color: var(--orange); box-shadow: 0 16px 34px rgba(242, 106, 33, .12); }
.cat-icon, .product-img, .choice-mark {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--soft);
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 18px;
}
.product-img { width: 100%; height: 155px; font-size: 24px; }
.price { font-size: 22px; font-weight: 700; color: var(--orange); margin-top: 8px; }
.product-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.product-card.is-hidden { display: none; }
.seller { background: linear-gradient(135deg, var(--dark), #3a2418); color: white; border-radius: 34px; padding: 44px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: center; }
.seller p { color: #f0d8c2; }
.seller .panel { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); border-radius: 24px; padding: 24px; }

.page-shell { background: linear-gradient(180deg, #fff8ef 0, #fff 45%); min-height: 64vh; }
.page-hero { padding: 72px 0; }
.login-choice-grid, .form-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 28px; }
.account-access-grid { display: grid; grid-template-columns: minmax(320px, .85fr) minmax(320px, 1.15fr); gap: 22px; align-items: start; margin-top: 28px; }
.choice-card { display: block; transition: transform .18s ease, border-color .18s ease; }
.choice-card:hover { transform: translateY(-3px); border-color: var(--orange); }
.choice-card h2 { font-size: 28px; }
.choice-mark { background: var(--orange); color: white; }
.signup-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.login-form-card form { display: grid; gap: 14px; }
.login-form-card p { margin: 0; }
.login-form-card .login-username,
.login-form-card .login-password,
.login-form-card .login-remember { display: grid; gap: 8px; }
.login-form-card .login-submit { margin-top: 4px; }
.login-form-card #wp-submit { display: inline-flex; justify-content: center; border: 0; border-radius: 999px; min-height: 48px; padding: 13px 22px; background: var(--orange); color: white; font: inherit; font-weight: 600; cursor: pointer; }
.login-help { margin-top: 16px; }
.form-card { max-width: 860px; }
.form-layout .form-card { max-width: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
label { display: grid; gap: 8px; margin: 0 0 16px; font-weight: 600; color: #3b302a; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  color: var(--dark);
  background: white;
}
textarea { resize: vertical; }
.notice { min-height: 24px; color: var(--muted); font-weight: 600; }
.notice.is-success { color: #18794e; }
.notice.is-error { color: #b42318; }

.site-footer { background: var(--dark); color: white; padding: 42px 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 28px; }
.site-footer img { width: 160px; height: auto; background: white; border-radius: 14px; padding: 6px; }
.site-footer a, .site-footer p { color: #d9c9bd; font-size: 14px; }
.whatsapp-float { position: fixed; right: 18px; bottom: 86px; z-index: 80; background: #25d366; color: white; padding: 12px 16px; border-radius: 999px; box-shadow: 0 14px 30px rgba(0,0,0,.18); font-weight: 700; }
[data-lang="ar"] .whatsapp-float { right: auto; left: 18px; }
.cart-panel { position: fixed; inset: 0; z-index: 120; pointer-events: none; opacity: 0; transition: opacity .2s ease; }
.cart-panel.is-open { pointer-events: auto; opacity: 1; }
.cart-backdrop { position: absolute; inset: 0; background: rgba(26,22,18,.38); }
.cart-drawer { position: absolute; top: 0; right: 0; width: min(420px, 92vw); height: 100%; background: white; padding: 24px; display: flex; flex-direction: column; gap: 18px; box-shadow: -18px 0 45px rgba(0,0,0,.18); }
[data-lang="ar"] .cart-drawer { right: auto; left: 0; }
.cart-head { display: flex; align-items: center; justify-content: space-between; }
.cart-close { width: 40px; height: 40px; border: 1px solid var(--line); background: white; border-radius: 12px; font-size: 28px; line-height: 1; cursor: pointer; }
.cart-items { display: grid; gap: 12px; overflow: auto; flex: 1; }
.cart-item { border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: grid; gap: 6px; }
.cart-item-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cart-qty { display: inline-flex; gap: 8px; align-items: center; }
.cart-qty button { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: white; cursor: pointer; }
.cart-total { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 14px; font-size: 18px; }
.cart-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.payment-choice { margin: 0; }
.payment-choice select { margin-top: 8px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--dark); color: white; border-radius: 999px; padding: 12px 18px; z-index: 160; box-shadow: 0 14px 30px rgba(0,0,0,.18); }

@media (max-width: 900px) {
  .hero-grid, .seller, .footer-grid, .login-choice-grid, .form-layout, .account-access-grid, .signup-actions { grid-template-columns: 1fr; }
  .cats, .products, .features, .shops { grid-template-columns: repeat(2, 1fr); }
  .nav { position: relative; gap: 10px; }
  .menu-toggle { display: inline-flex; order: 3; }
  .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 4%;
    right: 4%;
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    z-index: 70;
  }
  .menu.is-open { display: flex; }
  .menu a { padding: 10px 8px; }
  .login-menu { display: grid; }
  .login-submenu { position: static; display: grid; min-width: 0; box-shadow: none; border-radius: 12px; margin-top: 6px; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .cart-btn { order: 2; }
  .lang { order: 4; }
}

@media (max-width: 560px) {
  .nav { min-height: 96px; }
  .brand img { width: 108px; }
  .hero { padding-top: 48px; }
  .cats, .products, .features, .shops, .form-grid { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .search { flex-direction: column; }
  h1 { font-size: 38px; }
}
