
/* ===================================================================
   ELEGANCE MAROC — SISTEMA DE DISEÑO
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Cairo:wght@400;500;600;700&display=swap');

:root {
  --ink: #18130f;
  --ink-2: #241c16;
  --plaster: #f1e6cb;
  --plaster-2: #e8d9b4;
  --cream: #fbf4e4;
  --majorelle: #2c4a9c;
  --majorelle-dark: #1d3270;
  --saffron: #e3a62f;
  --henna: #a63b22;
  --text-dark: #221a12;
  --text-muted-dark: #6c5c46;
  --text-light: #f1e6cb;
  --text-muted-light: #c9bba0;
  --font-display: 'Amiri', 'Times New Roman', serif;
  --font-body: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  --arch-radius: 46% 46% 0 0 / 30% 30% 0 0;
  --container: 1400px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--plaster);
  color: var(--text-dark);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
textarea,
select {
  font-family: inherit;
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- ZELLIGE ---------- */

.zellige-bg {
  background-color: var(--ink);
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(227, 166, 47, .05) 0 2px,
      transparent 2px 26px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(44, 74, 156, .07) 0 2px,
      transparent 2px 26px
    );
}

/* ---------- HEADER ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid rgba(227, 166, 47, .25);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: .5px;
  white-space: nowrap;
}

.logo .arch-mark {
  width: 26px;
  height: 30px;
  background: var(--saffron);
  border-radius: var(--arch-radius);
  flex: none;
}

.main-nav {
  display: flex;
  gap: 34px;
}

.main-nav a {
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--text-muted-light);
  text-transform: uppercase;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--saffron);
  border-color: var(--saffron);
}

.lang-switch {
  display: flex;
  gap: 6px;
  background: var(--ink-2);
  padding: 4px;
  border-radius: 999px;
}

.lang-switch button {
  color: var(--text-muted-light);
  font-size: .8rem;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 999px;
  transition: background .2s, color .2s;
}

.lang-switch button.active,
.lang-switch button:hover {
  background: var(--majorelle);
  color: var(--cream);
}

.nav-toggle {
  display: none;
}

/* ---------- HERO ---------- */

.hero {
  position: relative;
  width: 100%;
  min-height: 560px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: var(--text-light);
  text-align: center;
}

.hero .wrap {
  position: static;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 80px 28px;
}

/* ---------- VIDEO HERO A PANTALLA COMPLETA ---------- */

.hero-arch {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  overflow: hidden;
  z-index: 0;
  box-shadow: none;
}

.hero-arch video {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-arch::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(24, 19, 15, .30);
  z-index: 1;
}

.hero-arch span {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-muted-light);
  letter-spacing: .3em;
  text-transform: uppercase;
}

/* ---------- HERO TEXT ---------- */

.hero h1 {
  position: relative;
  z-index: 3;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  margin-bottom: 16px;
}

.hero p {
  position: relative;
  z-index: 3;
  max-width: 560px;
  margin: 0 auto 34px;
  color: var(--text-muted-light);
  font-size: 1.05rem;
}

.hero-actions {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .03em;
  padding: 14px 30px;
  border-radius: 999px;
  transition:
    transform .2s,
    box-shadow .2s,
    background .2s,
    color .2s;
}

.btn-primary {
  background: var(--saffron);
  color: var(--ink);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(227, 166, 47, .35);
}

.btn-outline {
  border: 2px solid var(--text-muted-light);
  color: var(--text-light);
}

.btn-outline:hover {
  border-color: var(--saffron);
  color: var(--saffron);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #2c4a9c;
  color: #fff;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(44, 74, 156, .4);
}

/* ---------- COLLECTION ---------- */

.collection {
  padding: 90px 0 60px;
}

.section-title {
  text-align: center;
  margin-bottom: 8px;
}

.section-title h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  color: var(--text-dark);
}

.section-title p {
  text-align: center;
  color: var(--text-muted-dark);
  max-width: 520px;
  margin: 10px auto 40px;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 56px;
}

.category-tabs button {
  padding: 11px 22px;
  border-radius: 999px;
  border: 2px solid var(--plaster-2);
  background: var(--cream);
  color: var(--text-muted-dark);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .03em;
  transition: all .2s;
}

.category-tabs button:hover {
  border-color: var(--henna);
  color: var(--henna);
  background: var(--cream);
}

.category-panel {
  margin-bottom: 72px;
}

.category-panel:last-child {
  margin-bottom: 0;
}

.category-subtitle {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  color: var(--text-dark);
  padding-bottom: 16px;
  margin-bottom: 32px;
  border-bottom: 2px solid var(--cat-color, var(--henna));
}

.category-subtitle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--arch-radius);
  background: var(--cat-color, var(--henna));
  font-size: 1.15rem;
  flex: none;
}

[dir="rtl"] .category-subtitle {
  direction: rtl;
}

/* ---------- PRODUCT GRID ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}

.product-card {
  background: var(--cream);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--plaster-2);
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(24, 19, 15, .14);
}

.product-thumb {
  aspect-ratio: 1 / 1.15;
  border-radius: var(--arch-radius);
  margin: 14px 14px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-size: 2.1rem;
}

.product-body {
  padding: 12px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.product-body h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.25;
}

.product-body p {
  margin: 0;
  font-size: .85rem;
  color: var(--text-muted-dark);
  line-height: 1.4;
  flex: none;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.btn-small {
  text-align: center;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 700;
}

.btn-view {
  background: var(--majorelle);
  color: #fff;
}

.btn-view:hover {
  background: var(--majorelle-dark);
}

.btn-order {
  background: transparent;
  border: 2px solid var(--henna);
  color: var(--henna);
}

.btn-order:hover {
  background: var(--henna);
  color: #fff;
}

/* ---------- CONTACTO ---------- */

.contact-band {
  background: var(--ink);
  color: var(--text-light);
  padding: 80px 0;
  text-align: center;
  margin-top: 40px;
}

.contact-band h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 14px;
}

.contact-band p {
  color: var(--text-muted-light);
  max-width: 520px;
  margin: 0 auto 30px;
}

.contact-info-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.contact-info-grid div {
  text-align: left;
}

.contact-info-grid strong {
  display: block;
  color: var(--saffron);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 4px;
}

/* ---------- FOOTER ---------- */

.site-footer {
  background: var(--ink-2);
  color: var(--text-muted-light);
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(227, 166, 47, .15);
}

.footer-grid h4 {
  font-family: var(--font-display);
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.footer-grid p,
.footer-grid li {
  font-size: .9rem;
  margin-bottom: 8px;
}

.footer-grid a:hover {
  color: var(--saffron);
}

.footer-bottom {
  padding-top: 22px;
  text-align: center;
  font-size: .8rem;
  color: var(--text-muted-light);
}

/* ---------- PÁGINA DE PRODUCTO ---------- */

.product-page {
  padding: 60px 0 90px;
}

.breadcrumb {
  font-size: .85rem;
  color: var(--text-muted-dark);
  margin-bottom: 28px;
}

.breadcrumb a {
  color: var(--majorelle);
  font-weight: 600;
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.product-photo {
  aspect-ratio: 4 / 5;
  border-radius: 56% 56% 0 0 / 34% 34% 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-size: 5rem;
  box-shadow: 0 26px 50px rgba(24, 19, 15, .18);
}

.product-info h1 {
  font-family: var(--font-display);
  font-size: 2.1rem;
  margin-bottom: 6px;
}

.product-info .cat-label {
  color: var(--henna);
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
  display: block;
}

.product-info .desc {
  color: var(--text-muted-dark);
  margin-bottom: 28px;
}

/* ---------- FORMULARIO COMPACTO ---------- */

.order-form {
  background: var(--cream);
  border: 1px solid var(--plaster-2);
  border-radius: 16px;
  padding: 16px;
}

.order-form h3 {
  font-family: var(--font-display);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.field {
  margin-bottom: 9px;
}

.field label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-muted-dark);
  margin-bottom: 3px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 7px;
  border: 1.5px solid var(--plaster-2);
  background: #fff;
  font-size: .86rem;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--majorelle);
  border-color: var(--majorelle);
}

.field textarea {
  resize: vertical;
  min-height: 60px;
}

.form-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.form-actions .btn {
  padding: 9px 16px;
  font-size: .85rem;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .product-detail {
    grid-template-columns: 1fr;
  }

  .main-nav {
    display: none;
  }

  .hero {
    min-height: 520px;
  }

  .hero .wrap {
    padding: 70px 22px;
  }
}

@media (max-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .site-header .wrap {
    height: 66px;
  }

  .contact-info-grid {
    justify-content: flex-start;
  }

  .product-page {
    padding: 35px 0 60px;
  }

  .product-detail {
    gap: 20px;
  }

  .order-form {
    padding: 14px;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
    text-align: center;
  }

  .hero {
    min-height: 480px;
    padding: 0;
  }

  .hero .wrap {
    padding: 60px 18px;
  }
}

@media (max-width: 420px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- RTL ---------- */

[dir="rtl"] .main-nav,
[dir="rtl"] .hero-actions,
[dir="rtl"] .form-actions {
  direction: rtl;
}

[dir="rtl"] .contact-info-grid div {
  text-align: right;
}

/* ---------- ACCESIBILIDAD ---------- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--majorelle);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- WHATSAPP FLOTANTE ---------- */

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, .85);
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
  z-index: 1000;
  transition: transform .25s, box-shadow .25s;
}

.whatsapp-float .phone-icon {
  font-family: Arial, sans-serif;
  font-size: 37px;
  line-height: 1;
  font-weight: normal;
  transform: rotate(-35deg);
  display: inline-block;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .30);
}

.whatsapp-float:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 4px;
}

/* ---------- FLECHAS DE NAVEGACIÓN ENTRE CATEGORÍAS ---------- */

.category-navigation {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 900;
}

.category-navigation button {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--saffron);
  border: 1px solid var(--saffron);
  font-size: 25px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
  transition: background .2s, transform .2s;
}

.category-navigation button:hover {
  background: var(--majorelle);
  transform: scale(1.08);
}

.category-navigation button:disabled {
  opacity: .35;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 640px) {
  .category-navigation {
    right: 10px;
  }

  .category-navigation button {
    width: 38px;
    height: 38px;
    font-size: 22px;
  }
}
s