/* MyMark.ma — single stylesheet */
@font-face {
  font-family: 'Alexandria';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/alexandria-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFC, U+200C-200E;
}
@font-face {
  font-family: 'Alexandria';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/alexandria-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122;
}

:root {
  --pink: #f0357d;
  --pink-dark: #d21e66;
  --navy: #1c3956;
  --navy-dark: #142a41;
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --text: #23303e;
  --muted: #6b7a8c;
  --line: #e6e9ee;
  --green: #25d366;
  --radius: 14px;
  --shadow: 0 2px 14px rgba(28, 57, 86, .08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Alexandria', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1150px; margin: 0 auto; padding: 0 1rem; }
.container.narrow { max-width: 720px; }
.section { padding: 2.5rem 0; }
.section-title { font-size: 1.6rem; font-weight: 800; color: var(--navy); margin-bottom: 1.4rem; }

/* header */
.announce {
  background: var(--navy); color: #fff; text-align: center;
  padding: .45rem 1rem; font-size: .85rem;
}
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 1.2rem; padding: .5rem 1rem; }
.logo img { width: 70px; height: 70px; object-fit: contain; }
.main-nav { display: flex; gap: 1.1rem; flex-wrap: wrap; flex: 1; }
.main-nav a { font-weight: 600; font-size: .95rem; color: var(--navy); padding: .3rem 0; }
.main-nav a:hover { color: var(--pink); }
.header-actions { display: flex; align-items: center; gap: .6rem; margin-inline-start: auto; }
.cart-btn {
  position: relative; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-soft); color: var(--navy);
}
.cart-btn:hover { background: var(--line); }
.cart-count {
  position: absolute; top: -4px; inset-inline-end: -4px;
  background: var(--pink); color: #fff; font-size: .7rem; font-weight: 700;
  min-width: 20px; height: 20px; border-radius: 10px;
  display: grid; place-items: center; padding: 0 5px;
}
.nav-toggle { display: none; background: none; border: 0; color: var(--navy); cursor: pointer; }

/* hero */
.hero {
  background:
    radial-gradient(ellipse 60% 80% at 85% 20%, rgba(240, 53, 125, .18), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff; padding: 3.5rem 0 4rem; overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 2.5rem; align-items: center;
}
.hero-kicker {
  display: inline-block; font-size: .8rem; font-weight: 700;
  color: #ffb3d1; background: rgba(240, 53, 125, .16);
  border: 1px solid rgba(240, 53, 125, .35);
  padding: .25rem .9rem; border-radius: 999px; margin-bottom: 1rem;
}
.hero h1 { font-size: clamp(1.9rem, 4.5vw, 3.2rem); font-weight: 800; margin-bottom: .9rem; line-height: 1.3; }
.hero h1 em { color: var(--pink); font-style: normal; }
.hero p { color: #c9d5e2; max-width: 520px; margin-bottom: 1.6rem; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.hero-badges { display: flex; gap: 1.4rem; margin-top: 1.6rem; color: #c9d5e2; font-size: .85rem; flex-wrap: wrap; }
.hero-media img {
  width: 100%; height: auto; border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
  transform: rotate(-1.5deg);
}

/* how it works */
.how { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.how-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem; padding: 1.6rem 0;
}
.how-step {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto;
  column-gap: .9rem; align-items: center;
}
.how-num {
  grid-row: span 2; width: 44px; height: 44px; border-radius: 50%;
  background: #fff; border: 2px solid var(--pink); color: var(--pink);
  font-weight: 800; font-size: 1.1rem; display: grid; place-items: center;
}
.how-step strong { color: var(--navy); font-size: .95rem; }
.how-step > span:last-child { color: var(--muted); font-size: .82rem; }

/* custom design CTA */
.custom-cta { background: var(--bg-soft); }
.custom-grid {
  display: grid; grid-template-columns: .8fr 1.2fr;
  gap: 2.5rem; align-items: center;
}
.custom-media img {
  width: 100%; height: auto; border-radius: 18px;
  box-shadow: var(--shadow); transform: rotate(1.5deg);
}
.custom-text h2 { font-size: 1.6rem; font-weight: 800; color: var(--navy); margin-bottom: .8rem; }
.custom-text p { color: var(--muted); max-width: 480px; margin-bottom: 1.4rem; }

/* buttons */
.btn {
  display: inline-block; border: 0; cursor: pointer; text-align: center;
  font-family: inherit; font-weight: 700; font-size: .95rem;
  padding: .65rem 1.5rem; border-radius: 999px; transition: .15s;
}
.btn-primary { background: var(--pink); color: #fff; }
.btn-primary:hover { background: var(--pink-dark); transform: translateY(-1px); }
.btn-outline { background: none; border: 2px solid var(--line); color: var(--navy); }
.btn-outline:hover { border-color: var(--navy); }
.btn-wa { background: var(--green); color: #fff; }
.btn-wa:hover { filter: brightness(.93); }
.btn-lg { padding: .85rem 2.2rem; font-size: 1.05rem; }
.btn-block { display: block; width: 100%; }

/* chips + cards */
.cat-chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
  background: var(--bg-soft); border: 1px solid var(--line);
  padding: .45rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: .9rem;
}
.chip span { color: var(--muted); font-weight: 400; font-size: .8rem; }
.chip:hover { border-color: var(--pink); color: var(--pink); }

.grid { display: grid; gap: 1.2rem; }
.products-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: .15s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.card-img { aspect-ratio: 1; background: var(--bg-soft); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: .9rem 1rem 1.1rem; }
.card-body h3 { font-size: .95rem; font-weight: 600; margin-bottom: .4rem; color: var(--navy); }
.price { color: var(--pink); font-weight: 800; }
.price.old { color: var(--muted); font-weight: 400; font-size: .85rem; margin-inline-start: .4rem; }

/* features */
.features-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.feature {
  text-align: center; padding: 1.4rem 1rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.feature .f-ico { display: block; font-size: 1.6rem; margin-bottom: .4rem; }
.feature strong { display: block; color: var(--navy); margin-bottom: .2rem; }
.feature > span:last-child { color: var(--muted); font-size: .88rem; }

/* breadcrumb */
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 1.2rem; }
.breadcrumb a:hover { color: var(--pink); }

/* product page */
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.gallery-main {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; aspect-ratio: 1; background: var(--bg-soft);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: .6rem; margin-top: .7rem; flex-wrap: wrap; }
.thumb {
  width: 72px; height: 72px; padding: 0; border-radius: 10px; overflow: hidden;
  border: 2px solid var(--line); cursor: pointer; background: none;
}
.thumb.active { border-color: var(--pink); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { font-size: 1.5rem; color: var(--navy); margin-bottom: .4rem; }
.sku { color: var(--muted); font-size: .82rem; margin-bottom: .8rem; }
.product-price { font-size: 1.4rem; margin-bottom: 1.4rem; }
.opt-group { margin-bottom: 1.1rem; }
.opt-group > label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
.opt-btns { display: flex; flex-wrap: wrap; gap: .5rem; }
.opt {
  font-family: inherit; cursor: pointer; background: #fff;
  border: 2px solid var(--line); border-radius: 10px;
  padding: .4rem 1rem; font-size: .9rem; font-weight: 600;
}
.opt.active { border-color: var(--pink); color: var(--pink); }
.qty-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.3rem; }
.qty-row label { font-weight: 600; font-size: .9rem; }
.qty-control { display: flex; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; }
.qty-btn {
  width: 40px; border: 0; background: var(--bg-soft);
  font-size: 1.1rem; cursor: pointer; font-family: inherit;
}
.qty-control input {
  width: 56px; border: 0; text-align: center; font-family: inherit;
  font-size: 1rem; -moz-appearance: textfield;
}
.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; }
.trust-notes { display: flex; gap: 1.2rem; color: var(--muted); font-size: .85rem; margin-top: 1rem; }
.product-desc { margin-top: 1.8rem; border-top: 1px solid var(--line); padding-top: 1.2rem; }
.product-desc h2 { font-size: 1.1rem; color: var(--navy); margin-bottom: .6rem; }

/* cart */
.cart-table-wrap { overflow-x: auto; }
.cart-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.cart-table th {
  text-align: right; font-size: .85rem; color: var(--muted);
  padding: .6rem .8rem; border-bottom: 2px solid var(--line);
}
.cart-table td { padding: .8rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-prod { display: flex; align-items: center; gap: .8rem; }
.cart-prod img { border-radius: 8px; width: 64px; height: 64px; object-fit: cover; }
.cart-prod a { font-weight: 600; color: var(--navy); }
.cart-prod small { display: block; color: var(--muted); }
.qty-input {
  width: 70px; padding: .4rem; border: 2px solid var(--line);
  border-radius: 8px; font-family: inherit; text-align: center;
}
.link-danger { background: none; border: 0; color: #d33; cursor: pointer; font-size: 1rem; }
.cart-actions { margin: 1rem 0; }
.cart-summary {
  max-width: 400px; margin-inline-start: auto; background: var(--bg-soft);
  border-radius: var(--radius); padding: 1.3rem;
}
.cart-summary .row { display: flex; justify-content: space-between; padding: .35rem 0; }
.cart-summary .total { font-weight: 800; font-size: 1.1rem; color: var(--navy); border-top: 1px solid var(--line); margin-top: .5rem; padding-top: .8rem; }
.cart-summary .btn { margin-top: 1rem; }
.hint { color: var(--pink); font-size: .83rem; }
.empty-state { text-align: center; padding: 3rem 0; color: var(--muted); }
.empty-state .btn { margin-top: 1rem; }

/* checkout */
.checkout-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1.5rem; align-items: start; }
.card-box {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem; margin-bottom: 1.2rem;
}
.card-box h2 { font-size: 1.1rem; color: var(--navy); margin-bottom: 1rem; }
.checkout-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .9rem; }
.checkout-form input, .checkout-form textarea {
  display: block; width: 100%; margin-top: .3rem;
  padding: .6rem .8rem; border: 2px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: .95rem;
}
.checkout-form input:focus, .checkout-form textarea:focus { outline: none; border-color: var(--pink); }
.pay-note {
  background: #fff7ec; border: 1px solid #f5dcb8; color: #7a5210;
  border-radius: 10px; padding: .7rem .9rem; font-size: .88rem; margin-bottom: 1rem;
}
.sum-line { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; font-size: .92rem; }
.sum-line small { color: var(--muted); }
.sum-line.total { font-weight: 800; color: var(--navy); border-top: 1px solid var(--line); margin-top: .4rem; padding-top: .7rem; }

/* alerts */
.alert { border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1.2rem; }
.alert-error { background: #fdecec; border: 1px solid #f5c2c2; color: #a12622; }
.alert-success { background: #eafaf0; border: 1px solid #bce8cc; color: #14683a; }
.alert-success.big { text-align: center; padding: 2rem 1.4rem; }
.alert-success.big h1 { margin-bottom: .6rem; }
.alert-success.big .btn { margin-top: 1.2rem; }

/* order tracking */
.badge {
  display: inline-block; font-size: .8rem; font-weight: 700;
  padding: .15rem .8rem; border-radius: 999px; background: var(--bg-soft);
}
.st-new { background: #e8f0fe; color: #1a56b0; }
.st-confirmed { background: #eafaf0; color: #14683a; }
.st-preparing { background: #fff7ec; color: #9a6700; }
.st-shipped { background: #f3e8fd; color: #6f2dbd; }
.st-delivered { background: #eafaf0; color: #14683a; }
.st-cancelled { background: #fdecec; color: #a12622; }
.steps { display: flex; margin-top: 1.2rem; }
.step { flex: 1; text-align: center; position: relative; }
.step .dot {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--line); display: block; margin: 0 auto .4rem; position: relative; z-index: 1;
}
.step::before {
  content: ''; position: absolute; top: 7px; inset-inline-start: -50%;
  width: 100%; height: 2px; background: var(--line);
}
.step:first-child::before { display: none; }
.step.done .dot { background: var(--pink); }
.step.done::before { background: var(--pink); }
.step .lbl { font-size: .74rem; color: var(--muted); }
.step.done .lbl { color: var(--navy); font-weight: 600; }

/* footer */
.site-footer { background: var(--navy-dark); color: #c9d5e2; margin-top: 3rem; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem; padding: 2.5rem 1rem;
}
.site-footer h4 { color: #fff; margin-bottom: .7rem; }
.site-footer a { display: block; padding: .2rem 0; font-size: .9rem; }
.site-footer a:hover { color: var(--pink); }
.site-footer p { font-size: .88rem; margin-top: .8rem; }
.socials { display: flex; gap: .9rem; margin-top: .5rem; }
.socials a { display: inline; }
.copyright {
  text-align: center; padding: 1rem; font-size: .8rem;
  border-top: 1px solid rgba(255,255,255,.08);
}

/* whatsapp float */
.wa-float {
  position: fixed; bottom: 1.2rem; inset-inline-start: 1.2rem; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--green); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, .45);
}
.wa-float:hover { transform: scale(1.06); }

/* responsive */
@media (max-width: 860px) {
  .hero-grid, .custom-grid { grid-template-columns: 1fr; }
  .hero { text-align: center; padding: 2.5rem 0 3rem; }
  .hero p { margin-inline: auto; }
  .hero-cta, .hero-badges { justify-content: center; }
  .hero-media { max-width: 480px; margin: 0 auto; }
  .how-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .custom-media { max-width: 380px; margin: 0 auto; }
  .custom-text { text-align: center; }
  .custom-text p { margin-inline: auto; }
  .product-layout, .checkout-layout { grid-template-columns: 1fr; }
  .nav-toggle { display: grid; place-items: center; }
  .main-nav {
    display: none; position: absolute; top: 100%; inset-inline: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: .5rem 1rem;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .6rem 0; border-bottom: 1px solid var(--bg-soft); }
  .footer-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .logo img { width: 56px; height: 56px; }
}
