/* ==========================================================================
   Hosainy Store — Main Stylesheet
   --------------------------------------------------------------------------
   Table of contents:
   1. Design tokens (CSS variables)
   2. Reset & base
   3. Typography & language handling
   4. Layout helpers (container, grid, section)
   5. Components: buttons, badges, cards, forms, accordion
   6. Header & navigation
   7. Hero
   8. Page sections (stats, features, testimonials, FAQ, CTA, pricing)
   9. Products (cards, filters, detail page)
   10. Footer, floating buttons, preloader
   ========================================================================== */

/* 1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand colours */
  --primary: #1a365d;          /* deep professional navy */
  --primary-600: #153052;
  --primary-700: #0f2440;
  --primary-soft: #e8eef7;
  --brand-blue: #2563eb;       /* royal blue for links/interactive */
  --brand-blue-soft: #dbeafe;
  --accent: #d4a017;           /* gold */
  --accent-600: #b8890f;
  --accent-soft: #fdf3d7;
  --warm: #f97316;             /* warm orange (secondary accent) */

  /* Neutrals */
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-muted: #f1f5f9;
  --border: #e2e8f0;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --white: #ffffff;

  /* Semantic */
  --success: #16a34a;
  --danger: #dc2626;

  /* Typography */
  --font-ar: 'Cairo', 'Tajawal', system-ui, sans-serif;
  --font-en: 'Inter', 'Poppins', system-ui, sans-serif;
  --font: var(--font-ar);

  /* Shape & effects */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-full: 999px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow: 0 10px 30px -10px rgba(15, 23, 42, .18);
  --shadow-lg: 0 25px 50px -12px rgba(15, 23, 42, .25);
  --transition: .25s cubic-bezier(.4, 0, .2, 1);

  /* Layout */
  --container: 1200px;
  --header-h: 76px;
  --section-y: 88px;
}

/* 2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); }
ul { list-style: none; margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; color: var(--primary); font-weight: 800; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--brand-blue); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--primary-700); }

/* 3. Typography & language handling
   -------------------------------------------------------------------------- */
html[lang="en"] body { --font: var(--font-en); }
html[lang="en"] { direction: ltr; }
html[lang="ar"] { direction: rtl; }

/* Elements marked with data-lang only show for the active language */
html[lang="ar"] [data-lang="en"],
html[lang="en"] [data-lang="ar"] { display: none !important; }

/* Numbers / prices always stay LTR for readability */
.ltr, .price, .phone { direction: ltr; unicode-bidi: isolate; display: inline-block; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-600);
  background: var(--accent-soft);
  padding: .3em .9em;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}
.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 60ch; }
.text-center { text-align: center; }
.text-center .lead { margin-inline: auto; }
.muted { color: var(--text-muted); }
.gold { color: var(--accent); }

/* 4. Layout helpers
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: var(--section-y); }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--primary); color: #cbd5e1; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head h2 { margin-bottom: .6rem; }
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; gap: 16px; align-items: center; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }

/* 5. Components
   -------------------------------------------------------------------------- */
/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.7em;
  border-radius: var(--radius-full);
  font-weight: 700; font-size: 1rem; line-height: 1;
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 8px 20px -8px rgba(26, 54, 93, .6); }
.btn-primary:hover { background: var(--primary-600); color: var(--white); }
.btn-accent { background: var(--accent); color: var(--primary-700); box-shadow: 0 8px 20px -8px rgba(212, 160, 23, .7); }
.btn-accent:hover { background: var(--accent-600); color: var(--white); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-light { background: var(--white); color: var(--primary); }
.btn-light:hover { background: var(--accent-soft); color: var(--primary); }
.btn-ghost { color: var(--white); border-color: rgba(255, 255, 255, .5); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: var(--white); border-color: var(--white); }
.btn-whatsapp { background: #25d366; color: var(--white); box-shadow: 0 8px 20px -8px rgba(37, 211, 102, .7); }
.btn-whatsapp:hover { background: #1fb457; color: var(--white); }
.btn-sm { padding: .6em 1.2em; font-size: .9rem; }
.btn-lg { padding: 1em 2.2em; font-size: 1.08rem; }
.btn-block { width: 100%; }

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: .3em;
  padding: .3em .8em; border-radius: var(--radius-full);
  font-size: .75rem; font-weight: 700; line-height: 1.4;
}
.badge-new { background: var(--brand-blue); color: var(--white); }
.badge-best { background: var(--accent); color: var(--primary-700); }
.badge-hot { background: var(--warm); color: var(--white); }
.badge-soft { background: var(--primary-soft); color: var(--primary); }

/* Generic card */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card-icon {
  width: 58px; height: 58px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary);
  margin-bottom: 1.2rem;
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.15rem; }
.card p { color: var(--text-muted); margin: 0; }

/* Forms */
.form-group { margin-bottom: 1.2rem; }
.form-label { display: block; font-weight: 700; margin-bottom: .45rem; font-size: .95rem; }
.form-label .req { color: var(--danger); }
.form-control {
  width: 100%;
  padding: .8em 1em;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus { outline: 0; border-color: var(--brand-blue); box-shadow: 0 0 0 4px var(--brand-blue-soft); }
.form-control.is-invalid { border-color: var(--danger); }
textarea.form-control { min-height: 140px; resize: vertical; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748b' stroke-width='2'><path d='M4 6l4 4 4-4'/></svg>"); background-repeat: no-repeat; background-position: left 1em center; padding-left: 2.6em; }
html[lang="en"] select.form-control { background-position: right 1em center; padding-left: 1em; padding-right: 2.6em; }
.form-error { color: var(--danger); font-size: .85rem; margin-top: .35rem; display: none; }
.form-group.has-error .form-error { display: block; }
.form-group.has-error .form-control { border-color: var(--danger); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-hint { font-size: .85rem; color: var(--text-muted); margin-top: .4rem; }
.form-success {
  display: none; text-align: center; padding: 40px 24px;
  background: #f0fdf4; border: 2px dashed #86efac; border-radius: var(--radius);
}
.form-success.show { display: block; }
.form-success .check { width: 72px; height: 72px; border-radius: 50%; background: var(--success); color: #fff; display: grid; place-items: center; margin: 0 auto 1rem; }
.form-success .check svg { width: 36px; height: 36px; }

/* Accordion (FAQ) */
.accordion { display: grid; gap: 12px; }
.acc-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow var(--transition); }
.acc-item.open { box-shadow: var(--shadow); border-color: transparent; }
.acc-btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 24px; text-align: start; font-weight: 700; font-size: 1.05rem; color: var(--primary);
}
.acc-btn svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--accent-600); transition: transform var(--transition); }
.acc-item.open .acc-btn svg { transform: rotate(180deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.acc-body-inner { padding: 0 24px 22px; color: var(--text-muted); }

/* 6. Header & navigation
   -------------------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96); /* no backdrop-filter: it would become the containing block of the fixed mobile drawer */
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.header.scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.35rem; color: var(--primary); }
.logo img, .logo svg { width: 42px; height: 42px; }
.logo span em { color: var(--accent); font-style: normal; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: .55em .95em; border-radius: var(--radius-full);
  color: var(--text); font-weight: 600; font-size: .97rem;
  transition: background var(--transition), color var(--transition);
}
.nav a:hover, .nav a.active { background: var(--primary-soft); color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: inline-flex; align-items: center; gap: .4em;
  padding: .5em .9em; border-radius: var(--radius-full);
  border: 2px solid var(--border); font-weight: 700; font-size: .9rem; color: var(--primary);
  transition: border-color var(--transition), background var(--transition);
}
.lang-switch:hover { border-color: var(--primary); background: var(--primary-soft); }
.lang-switch svg { width: 18px; height: 18px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; place-items: center; color: var(--primary); }
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle:hover { background: var(--primary-soft); }
.nav-close { display: none; }

/* 7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(37, 99, 235, .35), transparent 60%),
              radial-gradient(800px 500px at 0% 110%, rgba(212, 160, 23, .28), transparent 60%),
              linear-gradient(135deg, var(--primary-700), var(--primary) 60%, #1e4a7a);
  color: var(--white);
  padding: clamp(70px, 10vw, 130px) 0 clamp(60px, 8vw, 110px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; position: relative; }
.hero h1 { color: var(--white); margin-bottom: 1rem; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { color: #cbd5e1; font-size: 1.2rem; margin-bottom: 2rem; }
.hero .eyebrow { background: rgba(255, 255, 255, .12); color: var(--accent); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual { position: relative; }
.hero-visual img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .15); }
.hero-visual .float-card {
  position: absolute; background: var(--white); color: var(--text); border-radius: var(--radius);
  padding: 12px 16px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px;
  font-size: .9rem; font-weight: 700; animation: floatY 5s ease-in-out infinite;
}
.hero-visual .float-card svg { width: 22px; height: 22px; color: var(--success); }
.hero-visual .float-card.a { top: 8%; inset-inline-start: -8%; }
.hero-visual .float-card.b { bottom: 10%; inset-inline-end: -6%; animation-delay: -2.5s; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Page hero (inner pages) */
.page-hero { background: linear-gradient(135deg, var(--primary-700), var(--primary)); color: var(--white); padding: 64px 0 56px; text-align: center; }
.page-hero h1 { color: var(--white); font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-hero p { color: #cbd5e1; max-width: 60ch; margin-inline: auto; }
.breadcrumb { display: inline-flex; gap: .5em; font-size: .9rem; color: #cbd5e1; margin-bottom: .8rem; }
.breadcrumb a { color: var(--accent); }

/* 8. Page sections
   -------------------------------------------------------------------------- */
/* Stats strip */
.stats { position: relative; margin-top: -40px; z-index: 2; }
.stats-inner { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 8px; border-inline-end: 1px solid var(--border); }
.stat:last-child { border: 0; }
.stat strong { display: block; font-size: 2.2rem; font-weight: 900; color: var(--primary); line-height: 1.1; }
.stat strong small { font-size: 1.2rem; color: var(--accent); }
.stat span { color: var(--text-muted); font-size: .95rem; }

/* Category filter chips */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 2.4rem; }
.chip {
  padding: .55em 1.2em; border-radius: var(--radius-full);
  border: 2px solid var(--border); background: var(--white); font-weight: 700; font-size: .92rem; color: var(--text);
  transition: all var(--transition);
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); border-color: var(--primary); color: var(--white); }

/* Why us */
.why-card { text-align: center; }
.why-card .card-icon { margin-inline: auto; background: linear-gradient(135deg, var(--primary), var(--brand-blue)); color: var(--white); }

/* Steps / process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 28px 22px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: var(--primary-700); font-weight: 900; margin-bottom: 1rem;
}
.step h3 { font-size: 1.1rem; }
.step p { margin: 0; color: var(--text-muted); font-size: .95rem; }

/* Testimonials */
.testimonial { position: relative; }
.testimonial .quote { position: absolute; top: 20px; inset-inline-end: 24px; color: var(--accent-soft); }
.testimonial .quote svg { width: 48px; height: 48px; }
.testimonial .stars { color: var(--accent); display: flex; gap: 2px; margin-bottom: 1rem; }
.testimonial .stars svg { width: 18px; height: 18px; fill: currentColor; }
.testimonial p { color: var(--text); font-style: normal; margin-bottom: 1.4rem; }
.testimonial .author { display: flex; align-items: center; gap: 12px; }
.testimonial .avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--brand-blue)); color: #fff; display: grid; place-items: center; font-weight: 800; }
.testimonial .author strong { display: block; color: var(--primary); font-size: .98rem; }
.testimonial .author span { color: var(--text-muted); font-size: .85rem; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--primary-700), var(--primary) 50%, #1e4a7a);
  color: var(--white); border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 64px);
  display: flex; align-items: center; justify-content: space-between; gap: 32px; position: relative; overflow: hidden;
}
.cta-band::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(212, 160, 23, .35), transparent 65%); inset-inline-end: -120px; top: -120px; }
.cta-band h2 { color: var(--white); margin-bottom: .4rem; }
.cta-band p { color: #cbd5e1; margin: 0; }
.cta-band .hero-actions { position: relative; flex-shrink: 0; }

/* Pricing cards */
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; padding: 34px 28px; }
.price-card.popular { border: 2px solid var(--accent); box-shadow: var(--shadow-lg); transform: scale(1.03); }
.price-card.popular:hover { transform: scale(1.03) translateY(-6px); }
.price-card .popular-tag { position: absolute; top: -14px; inset-inline-start: 50%; transform: translateX(50%); }
html[lang="en"] .price-card .popular-tag { transform: translateX(-50%); }
.price-card h3 { font-size: 1.25rem; margin-bottom: .3rem; }
.price-card .desc { color: var(--text-muted); font-size: .92rem; min-height: 3em; }
.price-card .amount { font-size: 2.2rem; font-weight: 900; color: var(--primary); margin: .8rem 0 .2rem; line-height: 1; }
.price-card .amount small { font-size: 1rem; font-weight: 700; color: var(--text-muted); }
.price-card .per { color: var(--text-muted); font-size: .85rem; margin-bottom: 1.4rem; }
.price-card ul { margin: 0 0 1.6rem; display: grid; gap: .6rem; flex: 1; }
.price-card li { display: flex; gap: .6em; align-items: flex-start; font-size: .95rem; }
.price-card li svg { width: 20px; height: 20px; color: var(--success); flex-shrink: 0; margin-top: .15em; }
.price-card li.no { color: var(--text-light); }
.price-card li.no svg { color: var(--text-light); }

/* Contact info blocks */
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item .card-icon { margin: 0; flex-shrink: 0; width: 52px; height: 52px; }
.contact-item h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.contact-item p, .contact-item a { margin: 0; color: var(--text-muted); }
.map-frame { border: 0; width: 100%; height: 320px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* About */
.about-visual { position: relative; }
.about-visual img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.about-visual .exp-badge {
  position: absolute; bottom: -20px; inset-inline-start: -20px; background: var(--accent); color: var(--primary-700);
  border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow-lg); text-align: center;
}
.about-visual .exp-badge strong { display: block; font-size: 2.2rem; line-height: 1; font-weight: 900; }
.about-visual .exp-badge span { font-size: .85rem; font-weight: 700; }
.check-list { display: grid; gap: .7rem; margin: 1.4rem 0; }
.check-list li { display: flex; gap: .6em; align-items: flex-start; }
.check-list li svg { width: 22px; height: 22px; color: var(--success); flex-shrink: 0; margin-top: .1em; }
.values .card-icon { background: var(--accent-soft); color: var(--accent-600); }

/* 9. Products
   -------------------------------------------------------------------------- */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.product-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-muted); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.product-card:hover .product-thumb img { transform: scale(1.05); }
.product-thumb .badge { position: absolute; top: 14px; inset-inline-start: 14px; box-shadow: var(--shadow-sm); }
.product-thumb .quick { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(15, 23, 42, .45); opacity: 0; transition: opacity var(--transition); }
.product-card:hover .quick { opacity: 1; }
.product-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: .78rem; font-weight: 700; color: var(--brand-blue); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .4rem; }
.product-body h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.product-body h3 a { color: var(--primary); }
.product-body h3 a:hover { color: var(--brand-blue); }
.product-body p { color: var(--text-muted); font-size: .93rem; flex: 1; margin-bottom: 1rem; }
.product-swatches { display: flex; gap: 6px; margin-bottom: 1rem; }
.product-swatches span { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--white); box-shadow: 0 0 0 1px var(--border); }
.product-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 16px; border-top: 1px solid var(--border); }
.product-price { font-weight: 900; font-size: 1.25rem; color: var(--primary); }
.product-price small { font-size: .8rem; font-weight: 700; color: var(--text-muted); margin-inline-start: .2em; }
.product-price del { font-size: .85rem; color: var(--text-light); font-weight: 500; margin-inline-end: .4em; }
.product-actions { display: flex; gap: 8px; }

/* Products page toolbar */
.toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.toolbar .filters { margin: 0; justify-content: flex-start; }
.toolbar .sort { display: flex; align-items: center; gap: 10px; }
.toolbar .sort select { padding: .55em 2.4em .55em 1em; border-radius: var(--radius-full); font-weight: 600; font-size: .92rem; width: auto; }
.results-count { color: var(--text-muted); font-size: .92rem; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state svg { width: 64px; height: 64px; margin: 0 auto 1rem; color: var(--text-light); }

/* Product detail */
.pd-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
.pd-grid > * { min-width: 0; } /* keeps Swiper from stretching the grid column */
.pd-gallery .swiper { width: 100%; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--bg-muted); }
.pd-gallery .swiper-slide img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.pd-gallery .swiper-button-next, .pd-gallery .swiper-button-prev { color: var(--primary); background: rgba(255, 255, 255, .9); width: 44px; height: 44px; border-radius: 50%; box-shadow: var(--shadow-sm); }
.pd-gallery .swiper-button-next::after, .pd-gallery .swiper-button-prev::after { font-size: 16px; font-weight: 900; }
.pd-gallery .swiper-pagination-bullet-active { background: var(--accent); }
.pd-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.pd-thumbs button { border-radius: var(--radius-sm); overflow: hidden; border: 2px solid var(--border); padding: 0; transition: border-color var(--transition); }
.pd-thumbs button.active, .pd-thumbs button:hover { border-color: var(--accent); }
.pd-thumbs img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.pd-thumbs span { display: block; font-size: .75rem; font-weight: 700; padding: 4px; color: var(--text-muted); background: var(--bg-alt); }
.pd-info { position: sticky; top: calc(var(--header-h) + 20px); }
.pd-info .badges { display: flex; gap: 8px; margin-bottom: 1rem; }
.pd-info h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.pd-price-box { display: flex; align-items: baseline; gap: 12px; margin: 1.2rem 0; padding: 18px 22px; background: var(--bg-alt); border-radius: var(--radius); border: 1px dashed var(--border); }
.pd-price-box .product-price { font-size: 2rem; }
.pd-price-box .note { color: var(--text-muted); font-size: .85rem; }
.pd-actions { display: grid; gap: 12px; margin: 1.4rem 0; }
.pd-actions .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pd-meta { display: grid; gap: .5rem; font-size: .92rem; color: var(--text-muted); margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--border); }
.pd-meta li { display: flex; gap: .6em; align-items: center; }
.pd-meta svg { width: 18px; height: 18px; color: var(--accent-600); }
.pd-tabs { margin-top: 56px; }
.tabs-nav { display: flex; gap: 6px; border-bottom: 2px solid var(--border); margin-bottom: 28px; overflow-x: auto; }
.tabs-nav button { padding: 14px 22px; font-weight: 700; color: var(--text-muted); border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; transition: all var(--transition); }
.tabs-nav button.active { color: var(--primary); border-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.features-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.features-list li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; background: var(--bg-alt); border-radius: var(--radius-sm); }
.features-list li svg { width: 22px; height: 22px; color: var(--success); flex-shrink: 0; margin-top: .1em; }
.includes-list { display: grid; gap: 10px; }
.includes-list li { display: flex; gap: 10px; align-items: center; }
.includes-list svg { width: 20px; height: 20px; color: var(--accent-600); }

/* 10. Footer, floating buttons, preloader
   -------------------------------------------------------------------------- */
.footer { background: var(--primary-700); color: #cbd5e1; padding: 72px 0 0; margin-top: var(--section-y); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer .logo { color: var(--white); margin-bottom: 1rem; }
.footer h4 { color: var(--white); font-size: 1.05rem; margin-bottom: 1.1rem; }
.footer p { color: #94a3b8; font-size: .95rem; }
.footer ul { display: grid; gap: .55rem; }
.footer ul a { color: #cbd5e1; font-size: .95rem; display: inline-flex; align-items: center; gap: .4em; }
.footer ul a:hover { color: var(--accent); }
.footer ul a svg { width: 16px; height: 16px; opacity: .7; }
.social { display: flex; gap: 10px; margin-top: 1.2rem; }
.social a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: var(--white); transition: all var(--transition); }
.social a:hover { background: var(--accent); color: var(--primary-700); transform: translateY(-3px); }
.social svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .88rem; color: #94a3b8; }
.footer-bottom a { color: var(--accent); }

/* Floating WhatsApp */
.wa-float {
  position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 30px -6px rgba(37, 211, 102, .7);
  transition: transform var(--transition);
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid #25d366; animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.9); opacity: .8; } 100% { transform: scale(1.35); opacity: 0; } }
.wa-float .tip {
  position: absolute; inset-inline-end: 72px; top: 50%; transform: translateY(-50%);
  background: var(--white); color: var(--text); padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: .85rem; font-weight: 700; white-space: nowrap; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity var(--transition);
}
.wa-float:hover .tip { opacity: 1; }

/* Back to top */
.to-top {
  position: fixed; bottom: 96px; inset-inline-end: 30px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; background: var(--primary); color: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: all var(--transition);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 22px; height: 22px; }

/* Preloader */
.preloader { position: fixed; inset: 0; z-index: 999; background: var(--white); display: grid; place-items: center; transition: opacity .4s ease, visibility .4s; }
.preloader.hide { opacity: 0; visibility: hidden; }
.loader { width: 48px; height: 48px; border: 4px solid var(--primary-soft); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast */
.toast { position: fixed; bottom: 30px; inset-inline-start: 50%; transform: translate(50%, 20px); background: var(--primary-700); color: #fff; padding: 14px 22px; border-radius: var(--radius); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: all var(--transition); z-index: 200; font-weight: 600; }
html[lang="en"] .toast { transform: translate(-50%, 20px); }
.toast.show { opacity: 1; visibility: visible; transform: translate(50%, 0); }
html[lang="en"] .toast.show { transform: translate(-50%, 0); }

/* ---------- Catalogue extensions (prompt 2): badges, flags, coming-soon, search, category cards ---------- */
.badge-pro { background: linear-gradient(135deg, #7c3aed, #4f46e5); color: #fff; }
.badge-bundle { background: #0f766e; color: #fff; }
.badge-free { background: #16a34a; color: #fff; }
.badge-soon { background: #64748b; color: #fff; }
.product-thumb .flag { position: absolute; top: 12px; inset-inline-end: 12px; font-size: 1.3rem; line-height: 1; background: rgba(255, 255, 255, .9); border-radius: 8px; padding: 4px 6px; box-shadow: var(--shadow-sm); }
.pd-info .badges .flag { font-size: 1.4rem; }
.product-card.is-soon .product-thumb img { filter: grayscale(.6); opacity: .75; }
.product-card.is-soon .product-thumb::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(15, 23, 42, .05) 14px 28px); pointer-events: none; }
.product-price.soon { color: var(--text-muted); font-size: 1rem; }
.product-price.free { color: var(--success); }
.product-price .alt-price { display: block; font-size: .75rem; color: var(--text-light); font-weight: 600; margin-top: 2px; }
.search-form { display: flex; gap: 8px; max-width: 560px; margin: 1.6rem 0 0; }
.search-form input { flex: 1; padding: .9em 1.1em; border-radius: var(--radius-full); border: 2px solid transparent; background: rgba(255, 255, 255, .95); color: var(--text); }
.search-form input:focus { outline: 0; border-color: var(--accent); }
.search-form .btn { flex-shrink: 0; }
.toolbar .search-form { margin: 0; max-width: 360px; }
.toolbar .search-form input { border-color: var(--border); padding: .6em 1em; background: var(--white); }
.cat-card { display: flex; flex-direction: column; text-align: start; color: var(--text); }
.cat-card h3 { color: var(--primary); }
.cat-card p { flex: 1; font-size: .92rem; }
.cat-card .cat-count { display: inline-flex; align-items: center; gap: .4em; margin-top: 1rem; font-weight: 700; color: var(--brand-blue); font-size: .9rem; }
.cat-card .cat-count svg { width: 16px; height: 16px; }
.cat-card:hover h3 { color: var(--brand-blue); }
.pd-tabs .products-grid { margin-top: .5rem; }
.products-grid.grid-4-cards { grid-template-columns: repeat(4, 1fr); }
.products-grid.grid-4-cards .product-body h3 { font-size: 1.02rem; }
@media (max-width: 1024px) { .products-grid.grid-4-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .products-grid.grid-4-cards { grid-template-columns: 1fr; } .home-section-head { flex-direction: column; align-items: flex-start; } }
.home-section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 1.8rem; }
.home-section-head h2 { margin: 0; }
.home-section-head .eyebrow { margin-bottom: .4rem; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
