/* ============================================================
   EtqanShop — Design 2a — global.css
   Design tokens, resets, base typography, utilities.
   Every color, font and spacing value lives here as a CSS var.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&display=swap');

:root {
  /* ===== Brand Colors ===== */
  --color-gold: #c9a978;
  --color-gold-deep: #a8884e;
  --color-gold-soft: #e8d9b5;
  --color-gold-mist: #f6efe1;
  --color-gold-line: #d8c39a;

  /* Hover / interaction accent — deep purple */
  --color-purple: #3d1f47;
  --color-purple-deep: #2a1432;
  --color-purple-soft: #6b3e7e;
  --color-purple-mist: #f1e8f6;
  --color-purple-line: #b89ec7;

  --color-primary: var(--color-gold);
  --color-primary-hover: var(--color-purple);
  --color-primary-active: var(--color-purple-deep);
  --color-secondary: #1a1a1a;
  --color-accent: var(--color-purple);

  /* ===== Semantic Colors ===== */
  --color-success: #198754;
  --color-success-bg: #d1f3df;
  --color-warning: #f59e0b;
  --color-warning-bg: #fef3c7;
  --color-danger: #c0392b;
  --color-danger-bg: #fde7e3;
  --color-info: #0284c7;
  --color-info-bg: #dbeafe;
  --color-sale: #c0392b;
  --color-whatsapp: #25d366;
  --color-whatsapp-rgb: 37, 211, 102;
  --color-purple-rgb: 61, 31, 71;
  --color-gold-rgb: 201, 169, 120;

  /* ===== Neutrals ===== */
  --color-text: #1a1a1a;
  --color-text-soft: #2b2b2b;
  --color-text-muted: #6b7280;
  --color-text-faint: #9ca3af;
  --color-text-inverse: #ffffff;

  --color-bg: #ffffff;
  --color-bg-alt: #fafaf7;
  --color-bg-soft: #f7f4ee;
  --color-bg-muted: #f3f4f6;
  --color-bg-product: #ffffff;

  --color-border: #c8c5be;
  --color-border-soft: #d8d4cc;
  --color-border-strong: #8a8680;

  --color-footer-bg: #131313;
  --color-footer-fg: #e7e3da;
  --color-footer-muted: #8a8780;
  --color-footer-border: #292828;

  --color-overlay: rgba(15, 15, 15, 0.55);

  /* ===== Typography ===== */
  --font-primary: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Fraunces', 'Manrope', Georgia, serif;
  --font-mono: 'Menlo', 'Consolas', monospace;

  /* Font sizes */
  --fs-tiny: 0.625rem;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.5rem;
  --fs-4xl: 3rem;
  --fs-hero: 3.75rem;

  /* Font weights */
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-black: 800;

  /* Line heights */
  --lh-tight: 1.15;
  --lh-snug: 1.3;
  --lh-base: 1.55;
  --lh-relaxed: 1.75;

  /* Letter spacing */
  --ls-tight: -0.02em;
  --ls-snug: -0.01em;
  --ls-normal: 0;
  --ls-wide: 0.04em;
  --ls-wider: 0.12em;
  --ls-widest: 0.2em;

  /* ===== Layout ===== */
  --content-width: 1440px;
  --content-width-narrow: 1180px;
  --header-height: 88px;
  --header-height-mobile: 68px;
  --hero-height: 700px;
  --hero-height-mobile: 520px;

  /* ===== Spacing scale ===== */
  --space-2xs: 2px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;

  /* ===== Border radii ===== */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 18px;
  --radius-2xl: 24px;
  --radius-pill: 999px;
  --radius-circle: 50%;

  /* ===== Shadows ===== */
  --shadow-xs: 0 1px 2px rgba(20, 20, 20, 0.04);
  --shadow-sm: 0 2px 8px rgba(20, 20, 20, 0.04);
  --shadow-md: 0 8px 24px rgba(20, 20, 20, 0.06);
  --shadow-lg: 0 16px 40px rgba(20, 20, 20, 0.08);
  --shadow-xl: 0 24px 60px rgba(20, 20, 20, 0.12);
  --shadow-gold: 0 12px 28px rgba(201, 169, 120, 0.28);
  --shadow-purple: 0 12px 28px rgba(61, 31, 71, 0.28);
  --shadow-focus: 0 0 0 3px rgba(61, 31, 71, 0.35);
  --shadow-header: 0 4px 24px rgba(168, 136, 78, 0.18);

  /* ===== Z-index scale ===== */
  --z-base: 0;
  --z-sticky: 100;
  --z-header: 200;
  --z-overlay: 400;
  --z-drawer: 500;
  --z-modal: 600;
  --z-toast: 700;

  /* ===== Transitions ===== */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-luxe: 500ms cubic-bezier(0.22, 1, 0.36, 1);

  /* ===== Focus ring ===== */
  --focus-ring: 0 0 0 3px rgba(61, 31, 71, 0.45);
}

/* ============================================================
   Resets and base
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden
}

body {
  margin: 0;
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  font-weight: var(--fw-regular);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-scroll-locked {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 var(--space-md);
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  color: var(--color-text);
  letter-spacing: var(--ls-snug);
}

p {
  margin: 0 0 var(--space-md);
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}


.section,
.docs-page {
  min-height: 650px;
}

.page-home .section {
  min-height: fit-content;
}

/* ============================================================
   Typography utilities
   ============================================================ */

.font-display {
  font-family: var(--font-display);
}

.font-primary {
  font-family: var(--font-primary);
}

.text-eyebrow {
  font-family: var(--font-primary);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--color-gold-deep);
}

.text-muted {
  color: var(--color-text-muted);
}

.text-gold {
  color: var(--color-gold-deep);
}

/* ============================================================
   Accessibility helpers
   ============================================================ */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  inset-inline-start: var(--space-md);
  background: var(--color-text);
  color: var(--color-text-inverse);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  z-index: var(--z-toast);
  transition: top var(--transition-base);
}

.skip-link:focus-visible {
  top: var(--space-md);
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* ============================================================
   Container
   ============================================================ */

.container,
.container-fluid {
  width: 100%;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
  max-width: var(--content-width);
}

/* ============================================================
   Section spacing
   ============================================================ */

.section {
  padding-top: clamp(40px, 6vw, 76px);
}

.section-tight {
  padding-top: clamp(32px, 5vw, 64px);
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: clamp(24px, 4vw, 40px);
}

.section-header__title {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: var(--fw-semibold);
}

.section-header__subtitle {
  margin: var(--space-xs) 0 0;
  color: var(--color-text-muted);
  font-size: var(--fs-md);
  max-width: 56ch;
}

.section-header__link {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  color: var(--color-gold-deep);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  text-transform: uppercase;
  white-space: nowrap;
}

.section-header__link:hover,
.section-header__link:focus-visible {
  color: var(--color-text);
}

.section-header__link i {
  transition: transform var(--transition-fast);
}

.section-header__link:hover i {
  transform: translateX(4px);
}

/* ============================================================
   Reduced motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   Toast Notification System
   Reusable toast popups for success, warning, error messages
   ============================================================ */

.toast-container {
  position: fixed;
  top: var(--space-xl);
  right: var(--space-xl);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  pointer-events: none;
  max-width: 400px;
}

@media (max-width: 767.98px) {
  .toast-container {
    top: var(--space-md);
    right: var(--space-md);
    left: var(--space-md);
    max-width: 100%;
  }
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-text-inverse);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: slideInRight var(--transition-base) ease;
  min-width: 300px;
  border-left: 4px solid;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(100px);
  }
}

.toast.is-closing {
  animation: slideOutRight var(--transition-base) ease;
}

/* Toast icon */
.toast__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-circle);
  font-size: 1.125rem;
  line-height: 1;
}

/* Toast content */
.toast__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.toast__title {
  margin: 0;
  font-family: var(--font-primary);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  line-height: 1.4;
}

.toast__message {
  margin: 0;
  font-family: var(--font-primary);
  font-size: var(--fs-xs);
  line-height: 1.4;
  opacity: 0.85;
}

/* Toast close button */
.toast__close {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
  font-size: 1.125rem;
  line-height: 1;
}

.toast__close:hover {
  background: rgba(0, 0, 0, 0.08);
}

/* Success toast */
.toast--success {
  border-left-color: var(--color-success);
  color: var(--color-success);
}

.toast--success .toast__icon {
  background: var(--color-success-bg);
  color: var(--color-success);
}

.toast--success .toast__title {
  color: var(--color-success);
}

.toast--success .toast__message {
  color: var(--color-text);
}

/* Warning toast */
.toast--warning {
  border-left-color: var(--color-warning);
  color: var(--color-warning);
}

.toast--warning .toast__icon {
  background: var(--color-warning-bg);
  color: var(--color-warning);
}

.toast--warning .toast__title {
  color: var(--color-warning);
}

.toast--warning .toast__message {
  color: var(--color-text);
}

/* Error/Danger toast */
.toast--error {
  border-left-color: var(--color-danger);
  color: var(--color-danger);
}

.toast--error .toast__icon {
  background: var(--color-danger-bg);
  color: var(--color-danger);
}

.toast--error .toast__title {
  color: var(--color-danger);
}

.toast--error .toast__message {
  color: var(--color-text);
}

/* Info toast */
.toast--info {
  border-left-color: var(--color-info);
  color: var(--color-info);
}

.toast--info .toast__icon {
  background: var(--color-info-bg);
  color: var(--color-info);
}

.toast--info .toast__title {
  color: var(--color-info);
}

.toast--info .toast__message {
  color: var(--color-text);
}

/* No Products css */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  padding: clamp(48px, 8vw, 96px) var(--space-xl);
  text-align: center;
  color: var(--color-text-muted);
}

.empty-state__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-circle);
  background: var(--color-gold-mist);
  color: var(--color-gold-deep);
  font-size: 2rem;
  flex-shrink: 0;
}

.empty-state__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: var(--color-text);
  letter-spacing: var(--ls-snug);
}

.empty-state__subtitle {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  max-width: 36ch;
  line-height: var(--lh-relaxed);
}

.empty-state__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}