/* =========================================================
   MatjarNuzha — Main Stylesheet
   Light blue base + Moroccan zellige motif
   ========================================================= */

:root {
  --blue-50:  #eaf4fb;
  --blue-100: #d7ebf8;
  --blue-200: #b9def2;
  --blue-600: #1e6091;
  --blue-700: #164a6e;
  --blue-800: #0f3550;
  --gold:     #c9a227;
  --gold-dark:#a9840f;
  --white:    #ffffff;
  --text:     #16262f;
  --text-muted: #5b7382;
  --radius:   14px;
  --shadow:   0 10px 30px -12px rgba(15, 53, 80, 0.25);
  --shadow-sm:0 4px 14px -6px rgba(15, 53, 80, 0.18);
  --maxw:     1180px;
  --font-ar:  'Cairo', 'Tajawal', sans-serif;
  --font-lt:  'Poppins', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-lt);
  background-color: var(--blue-50);
  background-image: url('../img/zellige-pattern.svg');
  background-repeat: repeat;
  background-size: 140px 140px;
  background-attachment: fixed;
  line-height: 1.6;
}

html[dir="rtl"] body { font-family: var(--font-ar); }

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Decorative zellige band ---------- */
.zellige-band {
  height: 14px;
  background-image: url('../img/zellige-pattern.svg');
  background-size: 70px 70px;
  background-color: var(--blue-700);
  opacity: 0.9;
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--blue-800);
  color: var(--blue-100);
  font-size: 13px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 6px;
  padding-bottom: 6px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: var(--blue-100); }
.topbar .topbar-msg { color: var(--gold); font-weight: 600; }

/* ---------- Header ---------- */
header.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 26px;
  color: var(--blue-800);
  letter-spacing: 0.5px;
}
.logo-img {
  height: 44px;
  width: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.logo small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--text-muted);
}

nav.main-nav {
  display: flex;
  gap: 28px;
}
nav.main-nav a {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  position: relative;
  padding: 6px 0;
  transition: color .2s;
}
nav.main-nav a:hover,
nav.main-nav a.active { color: var(--blue-700); }
nav.main-nav a.deal-link { color: var(--gold-dark); }
nav.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 3px;
  background: var(--gold);
  border-radius: 3px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lang-switch {
  display: flex;
  border: 1px solid var(--blue-200);
  border-radius: 20px;
  overflow: hidden;
}
.lang-switch button {
  border: none;
  background: transparent;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}
.lang-switch button.active {
  background: var(--blue-700);
  color: var(--white);
}

.icon-btn {
  position: relative;
  width: 40px; height: 40px;
  border: 1px solid var(--blue-200);
  border-radius: 50%;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: var(--blue-800);
}
.icon-btn .badge {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--gold);
  color: var(--blue-800);
  font-size: 11px;
  font-weight: 800;
  min-width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--white);
}
html[dir="rtl"] .icon-btn .badge { right: auto; left: -6px; }

.menu-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 24px;
  color: var(--blue-800);
}
.nav-close { display: none; }
.nav-backdrop { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-100), var(--blue-50) 60%);
  padding: 70px 0;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../img/zellige-pattern.svg');
  background-size: 220px 220px;
  opacity: 0.12;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--blue-700);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: 44px;
  line-height: 1.2;
  margin: 0 0 18px;
  color: var(--blue-800);
  font-weight: 800;
}
.hero h1 span { color: var(--gold-dark); }
.hero p {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 480px;
  margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-art {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 28px;
  background: linear-gradient(150deg, var(--blue-700), var(--blue-800));
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-art::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url('../img/zellige-pattern.svg');
  background-size: 130px 130px;
  opacity: 0.35;
  mix-blend-mode: soft-light;
}
.hero-art .emoji { font-size: 120px; filter: drop-shadow(0 10px 20px rgba(0,0,0,.25)); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-gold {
  background: var(--gold);
  color: var(--blue-800);
  box-shadow: var(--shadow-sm);
}
.btn-outline {
  background: transparent;
  border-color: var(--blue-700);
  color: var(--blue-700);
}
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- Section ---------- */
.section { padding: 64px 0; }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}
.section-head .eyebrow {
  color: var(--gold-dark);
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 13px;
  text-transform: uppercase;
}
.section-head h2 {
  font-size: 32px;
  color: var(--blue-800);
  margin: 8px 0 10px;
  font-weight: 800;
}
.section-head p { color: var(--text-muted); }
.section-white { background: rgba(255,255,255,0.55); border-radius: 30px; }

/* ---------- Categories ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.cat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(30,96,145,0.08);
  transition: transform .2s, box-shadow .2s;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.cat-card .cat-icon {
  width: 64px; height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--blue-50);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
}
.cat-card h3 { margin: 0 0 4px; font-size: 16px; color: var(--blue-800); }
.cat-card span { font-size: 13px; color: var(--text-muted); }

/* ---------- Products ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(30,96,145,0.08);
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
  position: relative;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-thumb {
  aspect-ratio: 1/0.9;
  display: flex; align-items: center; justify-content: center;
  font-size: 64px;
  position: relative;
  overflow: hidden;
}
.product-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.product-badge {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  background: var(--gold);
  color: var(--blue-800);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.wishlist-btn {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.product-info { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-cat { font-size: 12px; color: var(--gold-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.product-info h3 { margin: 0; font-size: 16px; color: var(--blue-800); }
.product-price-row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.price { font-weight: 800; font-size: 18px; color: var(--blue-700); }
.price small { font-weight: 500; font-size: 13px; color: var(--text-muted); text-decoration: line-through; margin-inline-start: 6px; }
.add-cart-btn {
  border: none;
  background: var(--blue-800);
  color: var(--white);
  width: 38px; height: 38px;
  border-radius: 10px;
  font-size: 16px;
  transition: background .2s;
}
.add-cart-btn:hover { background: var(--gold); color: var(--blue-800); }
.product-deal-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-dark);
}
.product-deal-link:hover { text-decoration: underline; }

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 34px;
}
.filter-bar button {
  border: 1px solid var(--blue-200);
  background: var(--white);
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
}
.filter-bar button.active {
  background: var(--blue-700);
  border-color: var(--blue-700);
  color: var(--white);
}

/* ---------- Features strip ---------- */
.features-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  padding: 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.feature-item .fi-icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--blue-50);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.feature-item h4 { margin: 0 0 2px; font-size: 14px; color: var(--blue-800); }
.feature-item p { margin: 0; font-size: 12.5px; color: var(--text-muted); }

/* ---------- Newsletter ---------- */
.newsletter {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-800));
  border-radius: 28px;
  padding: 50px 40px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.newsletter::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url('../img/zellige-pattern.svg');
  background-size: 150px 150px;
  opacity: 0.18;
}
.newsletter h2 { position: relative; margin: 0 0 10px; font-size: 28px; }
.newsletter p { position: relative; opacity: .85; margin-bottom: 24px; }
.newsletter-form {
  position: relative;
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter-form input {
  flex: 1;
  min-width: 220px;
  padding: 13px 18px;
  border-radius: 10px;
  border: none;
  font-size: 14px;
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--blue-800);
  color: var(--blue-100);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid h4 { color: var(--white); font-size: 15px; margin: 0 0 16px; }
.footer-grid p { font-size: 13.5px; line-height: 1.8; opacity: .85; }
.footer-grid ul li { margin-bottom: 10px; font-size: 13.5px; }
.footer-grid ul li a:hover { color: var(--gold); }
.social-row { display: flex; gap: 10px; margin-top: 16px; }
.social-row a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
.social-row a:hover { background: var(--gold); color: var(--blue-800); }
.footer-bottom {
  padding: 18px 0 22px;
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  opacity: .75;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--blue-100), var(--blue-50));
  padding: 46px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url('../img/zellige-pattern.svg');
  background-size: 160px 160px;
  opacity: 0.14;
}
.page-hero h1 { position: relative; color: var(--blue-800); font-size: 32px; margin: 0 0 8px; }
.breadcrumb { position: relative; font-size: 13px; color: var(--text-muted); }
.breadcrumb a { color: var(--blue-700); font-weight: 600; }

/* ---------- Cart page ---------- */
.cart-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  align-items: start;
}
.cart-table {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.cart-row {
  display: grid;
  grid-template-columns: 70px 1fr auto auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--blue-50);
}
.cart-row .thumb {
  width: 60px; height: 60px;
  background: var(--blue-50);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  overflow: hidden;
  flex-shrink: 0;
}
.cart-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-row h4 { margin: 0 0 4px; font-size: 15px; color: var(--blue-800); }
.cart-row .cat-small { font-size: 12px; color: var(--text-muted); }
.qty-box {
  display: flex; align-items: center;
  border: 1px solid var(--blue-200);
  border-radius: 8px;
  overflow: hidden;
}
.qty-box button { border: none; background: var(--blue-50); width: 28px; height: 28px; font-weight: 700; }
.qty-box span { width: 32px; text-align: center; font-weight: 700; font-size: 13px; }
.remove-btn { border: none; background: transparent; color: #c0392b; font-size: 18px; }
.cart-summary {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}
.cart-summary h3 { margin-top: 0; color: var(--blue-800); }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 14px; color: var(--text-muted); border-bottom: 1px dashed var(--blue-100); }
.summary-row.total { color: var(--blue-800); font-weight: 800; font-size: 17px; border-bottom: none; }

.track-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 20px 0 24px;
}
.track-steps::before {
  content: "";
  position: absolute;
  top: 15px;
  inset-inline: 24px;
  height: 3px;
  background: var(--blue-100);
  z-index: 0;
}
.track-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  text-align: center;
}
.track-step .dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--blue-100);
}
.track-step .label { font-size: 11px; font-weight: 700; color: var(--text-muted); }
.track-step.done .dot,
.track-step.active .dot { border-color: var(--gold); background: var(--gold); }
.track-step.done .label,
.track-step.active .label { color: var(--blue-800); }
@media (max-width: 720px) {
  .track-steps { flex-direction: column; align-items: flex-start; gap: 14px; }
  .track-steps::before { display: none; }
  .track-step { flex-direction: row; text-align: start; }
}
.empty-cart { text-align: center; padding: 60px 20px; background: var(--white); border-radius: var(--radius); }
.empty-cart .em { font-size: 60px; margin-bottom: 14px; }

/* ---------- Contact / About ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.info-card {
  display: flex; gap: 14px;
  background: var(--white);
  padding: 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}
.info-card .ic { font-size: 24px; }
.info-card h4 { margin: 0 0 4px; color: var(--blue-800); }
.info-card p { margin: 0; color: var(--text-muted); font-size: 14px; }

form.form-card {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 16px;
}
form.form-card label { font-size: 13px; font-weight: 700; color: var(--blue-800); margin-bottom: 6px; display: block; }
form.form-card input,
form.form-card textarea,
form.form-card select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--blue-200);
  background: var(--blue-50);
  font-family: inherit;
  font-size: 14px;
}
form.form-card textarea { resize: vertical; min-height: 110px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 16/10;
  background: var(--blue-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
  color: var(--blue-600);
}

/* ---------- About ---------- */
.about-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.stats-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 30px; }
.stat-box { text-align: center; background: var(--white); border-radius: var(--radius); padding: 20px 10px; box-shadow: var(--shadow-sm); }
.stat-box b { display: block; font-size: 26px; color: var(--blue-700); }
.stat-box span { font-size: 12.5px; color: var(--text-muted); }

.values-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.value-card { background: var(--white); padding: 26px; border-radius: var(--radius); box-shadow: var(--shadow-sm); text-align: center; }
.value-card .vi { font-size: 34px; margin-bottom: 12px; }
.value-card h3 { color: var(--blue-800); margin: 0 0 8px; font-size: 17px; }
.value-card p { color: var(--text-muted); font-size: 13.5px; margin: 0; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  background: var(--blue-800);
  color: var(--white);
  padding: 14px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all .3s;
  z-index: 999;
  border-inline-start: 4px solid var(--gold);
}
.toast.show { transform: translateY(0); opacity: 1; }

/* =========================================================
   Flash-sale landing page
   ========================================================= */
.landing-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.95); backdrop-filter: blur(6px); box-shadow: var(--shadow-sm); }
.landing-header .header-inner { padding: 14px 20px; }

.urgency-bar {
  background: linear-gradient(90deg, var(--blue-800), var(--blue-700));
  color: var(--white);
  padding: 10px 0;
  position: relative;
  overflow: hidden;
}
.urgency-bar::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url('../img/zellige-pattern.svg');
  background-size: 90px 90px;
  opacity: 0.12;
}
.urgency-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 700;
}
.countdown { display: flex; gap: 8px; }
.countdown .cd-box {
  background: var(--gold);
  color: var(--blue-900);
  border-radius: 8px;
  padding: 5px 10px;
  min-width: 42px;
  text-align: center;
  font-weight: 800;
  font-size: 15px;
}
.countdown .cd-box small { display: block; font-size: 9px; font-weight: 700; }

.landing-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--blue-100), var(--blue-50) 55%);
  padding: 46px 0 30px;
}
.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../img/zellige-pattern.svg');
  background-size: 220px 220px;
  opacity: 0.1;
  pointer-events: none;
}
.landing-hero .container { position: relative; }
.landing-hero-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 46px; align-items: flex-start; }

.gallery-main {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 28px;
  background: linear-gradient(150deg, var(--white), var(--blue-50));
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  border: 1px solid var(--blue-100);
}
.gallery-main::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url('../img/zellige-pattern.svg');
  background-size: 140px 140px;
  opacity: 0.12;
}
.gallery-main .emoji { font-size: 160px; position: relative; filter: drop-shadow(0 16px 24px rgba(15,53,80,.2)); }
.gallery-main img#ldImage { position: relative; width: 100%; height: 100%; object-fit: cover; }
.discount-flag {
  position: absolute; top: 18px; inset-inline-start: 18px;
  background: var(--danger, #c0392b);
  color: var(--white);
  font-weight: 800;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 30px;
  box-shadow: var(--shadow-sm);
  z-index: 2;
}
.gallery-thumbs { display: flex; gap: 12px; margin-top: 16px; }
.gallery-thumbs .thumb {
  width: 68px; height: 68px;
  border-radius: 14px;
  background: var(--white);
  border: 2px solid var(--blue-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.gallery-thumbs .thumb.active { border-color: var(--gold); }
.gallery-thumbs .thumb { overflow: hidden; cursor: pointer; }
.gallery-thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; }

.before-after-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 820px; margin: 0 auto; }
.ba-card { position: relative; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 1/1; background: var(--blue-50); }
.ba-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-tag {
  position: absolute; top: 14px; inset-inline-start: 14px; z-index: 2;
  font-weight: 800; font-size: 13px; padding: 6px 16px; border-radius: 20px;
  color: var(--white); box-shadow: var(--shadow-sm);
}
.ba-tag.ba-before { background: var(--text-muted); }
.ba-tag.ba-after { background: var(--gold); color: var(--blue-900); }
@media (max-width: 640px) { .before-after-grid { grid-template-columns: 1fr; } }

.landing-badge-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fdecea; color: var(--danger, #c0392b);
  font-weight: 800; font-size: 12.5px;
  padding: 6px 14px; border-radius: 20px;
  margin-bottom: 14px;
}
.landing-hero-grid h1 { font-size: 30px; color: var(--blue-800); margin: 0 0 12px; font-weight: 800; line-height: 1.35; }
.rating-row { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.stars { color: var(--gold); font-size: 16px; letter-spacing: 2px; }
.rating-row .rv { font-weight: 700; color: var(--blue-800); font-size: 14px; }
.rating-row .rc, .rating-row .sc { color: var(--text-muted); font-size: 13px; }

.price-block {
  display: flex; align-items: baseline; gap: 14px;
  background: var(--blue-50);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.price-block .now { font-size: 34px; font-weight: 800; color: var(--blue-800); }
.price-block .old { font-size: 18px; color: var(--text-muted); text-decoration: line-through; }
.price-block .save-tag { background: var(--gold); color: var(--blue-900); font-weight: 800; font-size: 12.5px; padding: 4px 10px; border-radius: 20px; }

.landing-desc { color: var(--text-muted); font-size: 15px; margin-bottom: 18px; line-height: 1.8; }

.stock-bar-wrap { margin-bottom: 20px; }
.stock-bar-wrap .lbl { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-muted); margin-bottom: 6px; font-weight: 700; }
.stock-bar-wrap .lbl b { color: var(--danger, #c0392b); }
.stock-track { height: 8px; background: var(--blue-100); border-radius: 6px; overflow: hidden; }
.stock-track .fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--danger, #c0392b)); border-radius: 6px; }

.qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.qty-row .lbl { font-weight: 700; font-size: 14px; color: var(--blue-800); }
.qty-box.lg button { width: 38px; height: 38px; font-size: 18px; }
.qty-box.lg span { width: 44px; font-size: 15px; }

.landing-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.btn-buy-now {
  flex: 1;
  min-width: 240px;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--blue-900);
  font-size: 16px;
  padding: 16px 26px;
  animation: pulseGlow 2.4s infinite;
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,162,39,0.45); }
  50% { box-shadow: 0 0 0 10px rgba(201,162,39,0); }
}

.trust-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-muted); font-weight: 600; }
.trust-item .ti { font-size: 16px; }

/* Order form section */
.order-section { padding: 10px 0 60px; }
.order-panel { max-width: 640px; margin: 0 auto; background: var(--white); border-radius: 22px; box-shadow: var(--shadow); padding: 34px; }
.order-panel h2 { text-align: center; color: var(--blue-800); margin: 0 0 6px; font-size: 24px; }
.order-panel > p { text-align: center; color: var(--text-muted); margin: 0 0 26px; font-size: 14px; }
.order-total-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--blue-50); border-radius: 12px; padding: 14px 18px; margin-bottom: 18px;
}
.order-total-row b { color: var(--blue-800); font-size: 20px; }
.order-success { text-align: center; padding: 20px 0; }
.order-success .ok-icon { font-size: 60px; margin-bottom: 14px; }
.order-success h3 { color: var(--blue-800); margin: 0 0 8px; }
.order-success .onum { display: inline-block; background: var(--blue-50); color: var(--blue-700); font-weight: 800; padding: 8px 18px; border-radius: 10px; margin: 10px 0; letter-spacing: 1px; }

/* Specifications table */
.specs-table { background: var(--white); border-radius: 16px; box-shadow: var(--shadow-sm); overflow: hidden; }
.spec-row { display: flex; justify-content: space-between; gap: 16px; padding: 15px 22px; border-bottom: 1px solid var(--blue-50); font-size: 14px; }
.spec-row:last-child { border-bottom: none; }
.spec-row:nth-child(odd) { background: var(--blue-50); }
.spec-row .k { font-weight: 700; color: var(--blue-800); }
.spec-row .v { color: var(--text-muted); text-align: end; }

/* FAQ accordion */
.faq-item { background: var(--white); border-radius: 14px; box-shadow: var(--shadow-sm); margin-bottom: 12px; overflow: hidden; }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; cursor: pointer; font-weight: 700; color: var(--blue-800); font-size: 15px;
}
.faq-q .arrow { transition: transform .2s; color: var(--gold-dark); font-size: 14px; }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a p { padding: 0 22px 18px; margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.8; }

/* Testimonials */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi-card { background: var(--white); border-radius: 16px; padding: 24px; box-shadow: var(--shadow-sm); }
.testi-card .stars { margin-bottom: 12px; display: block; }
.testi-card p { color: var(--text); font-size: 14px; line-height: 1.8; margin: 0 0 16px; }
.testi-author { display: flex; align-items: center; gap: 10px; }
.testi-author .av {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue-100); color: var(--blue-700);
  display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.testi-author strong { display: block; font-size: 13.5px; color: var(--blue-800); }
.testi-author span { font-size: 11.5px; color: var(--text-muted); }

/* Sticky mobile buy bar */
.sticky-buy-bar {
  display: none;
  position: fixed; bottom: 0; inset-inline: 0;
  background: var(--white);
  box-shadow: 0 -8px 24px rgba(15,53,80,.15);
  padding: 12px 16px;
  align-items: center; gap: 12px;
  z-index: 300;
}
.sticky-buy-bar .sp { flex: 1; }
.sticky-buy-bar .sp b { display: block; color: var(--blue-800); font-size: 17px; }
.sticky-buy-bar .sp span { font-size: 11px; color: var(--text-muted); text-decoration: line-through; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { max-width: 380px; margin: 0 auto; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .features-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-hero-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .landing-hero-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .trust-row { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  nav.main-nav {
    position: fixed;
    top: 0; bottom: 0;
    inset-inline-start: -280px;
    width: 260px;
    background: var(--white);
    flex-direction: column;
    padding: 90px 24px 24px;
    box-shadow: var(--shadow);
    transition: inset-inline-start .3s;
    z-index: 200;
  }
  nav.main-nav.open { inset-inline-start: 0; }
  .menu-toggle { display: block; }
  .nav-close {
    display: block;
    position: absolute;
    top: 20px;
    inset-inline-end: 20px;
    border: none;
    background: transparent;
    font-size: 20px;
    color: var(--blue-800);
    cursor: pointer;
  }
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 53, 80, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s;
    z-index: 190;
  }
  .nav-backdrop.open { opacity: 1; visibility: visible; }
  .hero h1 { font-size: 32px; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .features-strip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 50px 1fr; grid-template-areas: "thumb name" "thumb qty" "thumb price"; }
  .sticky-buy-bar { display: flex; }
  body { padding-bottom: 70px; }
  .gallery-main .emoji { font-size: 110px; }
  .price-block .now { font-size: 26px; }
  .order-panel { padding: 24px 18px; }
  .logo-img { height: 32px; width: 32px; }
}
