:root {
  --bg: #FBF8F5;
  --surface: #FFFFFF;
  --text: #3A3234;
  --muted: #8B7E7A;
  --accent: #B87C8C;
  --accent-dark: #9C6272;
  --sage: #A8B99C;
  --border: #E8E1DC;
  --whatsapp: #25D366;
  --whatsapp-dark: #1DA851;
  --danger: #C0605B;

  --font-display: "Cormorant Garamond", serif;
  --font-body: "Jost", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius-lg: 20px;
  --shadow-card: 0 1px 2px rgba(58, 50, 52, 0.04);
  --shadow-card-hover: 0 20px 40px -12px rgba(58, 50, 52, 0.22);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

html { scroll-behavior: smooth; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0 0 0.5em;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 30;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px 24px;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-dark);
}
/* Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
}
.nav-link {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--muted);
  padding: 8px 10px;
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover,
.nav-link.is-active {
  color: var(--accent-dark);
  background: var(--bg);
}
.nav-dropdown { position: relative; }
.nav-dropdown__menu {
  list-style: none;
  margin: 0;
  padding: 8px;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  display: none;
  z-index: 20;
}
.nav-dropdown.is-open .nav-dropdown__menu { display: block; }
.nav-dropdown__menu li a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9rem;
}
.nav-dropdown__menu li a:hover,
.nav-dropdown__menu li a.is-active {
  background: var(--bg);
  color: var(--accent-dark);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  display: block;
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding-top: 8px;
  }
  .main-nav.is-open { display: flex; }
  .nav-dropdown__menu { position: static; box-shadow: none; display: none; }
  .nav-dropdown.is-open .nav-dropdown__menu { display: block; }
}

/* Hero */
.hero {
  text-align: center;
  padding: 56px 0 32px;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--text);
}
.hero p { color: var(--muted); margin: 0; }

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px;
  padding: 16px 0 64px;
}
.product-card {
  display: block;
  transition: transform 0.35s var(--ease);
}
.product-card:hover { transform: translateY(-6px); }
.product-card__image {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 6px 6px;
  background: linear-gradient(135deg, var(--surface), var(--bg));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.product-card:hover .product-card__image {
  box-shadow: var(--shadow-card-hover);
  border-color: transparent;
}
.product-card__image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.product-card:hover .product-card__image img { transform: scale(1.06); }
.product-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  color: var(--accent-dark);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px 5px 16px;
  border-radius: 0 10px 10px 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.product-tag::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--sage);
}
/* Stock badges on catalog cards — only shown for out-of-stock or
   low-stock products (see LOW_STOCK_THRESHOLD), so ERP/CSV stock
   updates become visible on the storefront right away. */
.stock-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 5px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.stock-badge--out {
  background: rgba(192, 96, 91, 0.92);
  color: #fff;
}
.stock-badge--low {
  background: rgba(255, 255, 255, 0.92);
  color: var(--danger);
  border: 1px solid rgba(192, 96, 91, 0.35);
}
.product-card.is-out-of-stock .product-card__image { opacity: 0.55; }
.product-card.is-out-of-stock .product-card__image img { filter: grayscale(35%); }
.product-card__name {
  font-size: 1.1rem;
  margin: 14px 0 2px;
  transition: color 0.25s var(--ease);
}
.product-card:hover .product-card__name { color: var(--accent-dark); }
.product-card__price {
  color: var(--accent-dark);
  font-weight: 500;
  margin: 0;
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 16px; }
  .product-card__name { font-size: 1rem; }
}

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 64px 0;
}

/* Product detail */
.product-page {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  padding: 40px 24px 80px;
}
@media (max-width: 760px) {
  .product-page { grid-template-columns: 1fr; }
}
.product-page__slider { position: relative; }
.product-page__main-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px 22px 8px 8px;
  border: 1px solid var(--border);
  transition: opacity 0.15s ease;
}
.product-page__main-image.is-fading { opacity: 0; }
.product-page__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: background 0.2s ease;
}
.product-page__arrow:hover { background: #fff; }
.product-page__arrow--prev { left: 12px; }
.product-page__arrow--next { right: 12px; }
.product-page__colors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 6px 0 4px;
}
.product-page__colors-label { color: var(--muted); font-size: 0.95rem; }
.color-swatch {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.color-swatch:hover { border-color: var(--accent); }
.color-swatch.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Admin: top nav between Products / Categories / Site Settings */
.admin-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.admin-nav__link {
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.admin-nav__link:hover { background: var(--bg); color: var(--text); }
.admin-nav__link.is-active { background: var(--accent); color: #fff; }

/* Admin: per-color photo rows */
.admin-form__hint { color: var(--muted); font-size: 0.9rem; margin: -4px 0 10px; }
.color-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 10px;
}
.color-row input[type="text"] { flex: 1 1 160px; }
.color-row__thumbs { display: flex; gap: 6px; }
.color-row__thumbs img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }
.color-row__remove {
  border: none;
  background: none;
  color: var(--danger, #c0392b);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}
.product-page__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.product-page__thumbs img {
  width: 64px; height: 64px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.product-page__price {
  font-size: 1.4rem;
  color: var(--accent-dark);
  font-weight: 500;
}
.product-page__description { color: var(--text); }
.product-page__meta { color: var(--muted); font-size: 0.95rem; }
.product-page__stock { font-weight: 500; }
.product-page__stock.in-stock { color: var(--sage); }
.product-page__stock.out-of-stock { color: var(--danger); }

.whatsapp-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--whatsapp);
  color: #fff;
  font-weight: 500;
  padding: 14px 26px;
  border-radius: 999px;
  margin-top: 12px;
  transition: background 0.2s;
}
.whatsapp-button:hover { background: var(--whatsapp-dark); }
.whatsapp-missing { color: var(--muted); font-style: italic; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
}
.footer__links a {
  color: var(--muted);
  text-decoration: none;
}
.footer__links a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.footer__label {
  color: var(--text);
  font-weight: 600;
}
.footer__sep {
  color: var(--border);
}

.not-found { text-align: center; padding: 96px 0; }

/* Admin */
.admin { background: #F6F3F0; }
.admin-header-actions { display: flex; gap: 10px; align-items: center; }
.admin-auth {
  max-width: 380px;
  margin: 96px auto;
  text-align: center;
}
.admin-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  margin-top: 24px;
}
.admin-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}
.admin-form input,
.admin-form select,
.admin-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}
.admin-form .checkbox-label {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.admin-form__current-images {
  display: flex;
  gap: 8px;
}
.admin-form__current-images img {
  width: 60px; height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.form-error {
  color: var(--danger);
  font-size: 0.9rem;
}

.btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(156, 98, 114, 0.25); }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 64px;
  font-size: 0.92rem;
}
.admin-table th, .admin-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.admin-table__thumb {
  width: 48px; height: 48px;
  object-fit: cover;
  border-radius: 6px;
}
.admin-table__actions { display: flex; gap: 12px; }
.admin-table__actions a { color: var(--accent-dark); }
.link-danger {
  background: none; border: none; padding: 0;
  color: var(--danger); cursor: pointer;
  font-family: var(--font-body); font-size: 0.92rem;
}

/* Landing page */
.hero {
  background: linear-gradient(180deg, var(--surface), var(--bg));
}
.hero .btn { margin-top: 18px; }

/* Hero image slider */
.hero--slider {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  display: flex;
  align-items: center;
  padding: 0;
  background: var(--text);
}
.hero-slider__bg { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(58, 50, 52, 0.35) 0%, rgba(58, 50, 52, 0.62) 100%);
}
.hero--slider .hero__content {
  position: relative;
  z-index: 2;
  padding: 36px 24px;
}
.hero--slider .hero__content h1,
.hero--slider .hero__content p { color: #fff; }
.hero--slider .hero__content p { opacity: 0.92; }
.hero-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.hero-slider__arrow:hover { background: rgba(255, 255, 255, 0.45); }
.hero-slider__arrow--prev { left: 16px; }
.hero-slider__arrow--next { right: 16px; }
.hero-slider__dots {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.hero-slider__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.hero-slider__dot.is-active { background: #fff; transform: scale(1.35); }
@media (max-width: 640px) {
  .hero--slider { min-height: 200px; }
  .hero--slider .hero__content { padding: 24px 20px; }
  .hero-slider__arrow { width: 34px; height: 34px; }
}

.category-showcase-band { background: var(--surface); padding: 8px 0; }
.category-showcase { padding: 40px 0 48px; }
.category-showcase h2, .social-banner h2 { text-align: center; }
.category-showcase__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.category-tile {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}
.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.category-tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.category-tile:hover img { transform: scale(1.06); }
.category-tile span {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px;
  text-align: center;
  color: #fff;
  font-weight: 500;
  background: linear-gradient(0deg, rgba(0,0,0,0.55), transparent);
}

.social-banner {
  text-align: center;
  padding: 48px 0 72px;
  background: linear-gradient(180deg, var(--bg), var(--surface));
}
.social-banner p { color: var(--muted); }
.social-banner__links {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.page-heading { padding: 32px 0 4px; }

.not-found__message { color: var(--muted); }

/* Flash banners */
.banner {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.92rem;
  margin: 20px 0 0;
}
.banner--ok { background: #EEF3EA; color: #4C6142; }
.banner--error { background: #FBEAE9; color: var(--danger); }

/* Admin */
.admin-panel { padding-bottom: 48px; }
.admin-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 24px 0 8px;
}
.admin-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 20px;
  min-width: 120px;
}
.admin-stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent-dark);
}
.admin-stat__label { color: var(--muted); font-size: 0.82rem; }

.admin-analytics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 20px 0 28px;
}
.admin-panel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
}
.admin-panel-card h2 { font-size: 1rem; margin: 0 0 4px; }
.admin-mini-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.admin-mini-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.admin-mini-list li:last-child { border-bottom: none; padding-bottom: 0; }
.admin-mini-list__value { color: var(--muted); white-space: nowrap; }
.admin-mini-list__value--warn { color: var(--danger); font-weight: 500; }

.stock-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
}
.stock-pill--ok { background: #EEF3EA; color: #4C6142; }
.stock-pill--out { background: #FBEAE9; color: var(--danger); }

.admin-form__actions {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

/* Search bar */
.nav-search {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 6px 4px 14px;
  flex: 1;
  max-width: 320px;
  margin: 0 12px;
  transition: border-color 0.2s;
}
.nav-search:focus-within { border-color: var(--accent); }
.nav-search input {
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.88rem;
  padding: 6px 0;
  width: 100%;
  color: var(--text);
}
.nav-search input:focus { outline: none; }
.nav-search button {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 6px;
  display: flex;
}
.nav-search button:hover { color: var(--accent-dark); }
@media (max-width: 720px) {
  .nav-search { order: 3; max-width: none; width: 100%; margin: 8px 0 0; }
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 20px 0 0;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent-dark); }
.breadcrumbs__sep { margin: 0 6px; }
.breadcrumbs span[aria-current] { color: var(--text); }

/* Filter / sort bar */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 8px;
  flex-wrap: wrap;
}
.filter-bar__field {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--muted);
}
.filter-bar__field select {
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}
.results-note { color: var(--muted); font-size: 0.9rem; margin: 4px 0 0; }

/* Product gallery interactions */
.product-page__main-image-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
}
.product-page__thumb-btn {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  background: none;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s;
}
.product-page__thumb-btn img {
  width: 64px; height: 64px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}
.product-page__thumb-btn.is-active,
.product-page__thumb-btn:hover { border-color: var(--accent); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(58, 50, 52, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  z-index: 100;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 12px;
  object-fit: contain;
}
.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}

/* Related products */
.related-products {
  padding: 24px 0 64px;
  border-top: 1px solid var(--border);
  margin-top: 32px;
}

/* Stock quantity, shown next to the in/out stock pill in the admin table */
.stock-qty {
  color: var(--muted);
  font-size: 0.82rem;
  margin-inline-start: 4px;
}

/* Wishlist heart button on product cards */
.wishlist-heart {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  transition: color 0.2s ease, transform 0.15s ease;
  z-index: 2;
}
.wishlist-heart:hover { transform: scale(1.08); }
.wishlist-heart svg { width: 18px; height: 18px; }
.wishlist-heart.is-saved {
  color: var(--accent-dark);
}
.wishlist-heart.is-saved svg { fill: currentColor; }

/* Wishlist button on the product detail page (icon + label, not just an icon) */
.product-page__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.whatsapp-button, .wishlist-btn { margin-top: 0; }
.wishlist-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.wishlist-btn svg { width: 18px; height: 18px; }
.wishlist-btn.is-saved {
  color: var(--accent-dark);
  border-color: var(--accent);
}
.wishlist-btn.is-saved svg { fill: currentColor; }

/* Wishlist link + unread-style count badge in the header nav */
.nav-link--wishlist { display: inline-flex; align-items: center; gap: 6px; }
.wishlist-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  line-height: 1;
}

/* Shop filter bar: price range inputs + clear-filters link */
.filter-bar__field--price { gap: 8px; }
.filter-bar__price-inputs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.filter-bar__price-inputs input {
  width: 72px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 7px 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}
.filter-bar__clear {
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: underline;
}
.filter-bar__clear:hover { color: var(--accent-dark); }

/* ---------------------------------------------------------------- */
/* Bilingual / Arabic (RTL) support                                  */
/* ---------------------------------------------------------------- */

/* Arabic uses Cairo everywhere instead of the Latin display/body fonts. */
html[dir="rtl"] body {
  font-family: "Cairo", sans-serif;
}
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 {
  font-family: "Cairo", sans-serif;
  font-weight: 700;
}

/* Mirror the handful of physically left/right-positioned elements so
   they sit correctly in a right-to-left layout. */
html[dir="rtl"] .nav-dropdown__menu {
  left: auto;
  right: 0;
}
html[dir="rtl"] .product-tag {
  left: auto;
  right: 12px;
  padding: 4px 16px 4px 10px;
  border-radius: 10px 0 0 10px;
}
html[dir="rtl"] .product-tag::before {
  left: auto;
  right: 6px;
}
html[dir="rtl"] .admin-table th,
html[dir="rtl"] .admin-table td,
html[dir="rtl"] .admin-form,
html[dir="rtl"] .results-note {
  text-align: right;
}
html[dir="rtl"] .lightbox__close {
  right: auto;
  left: 24px;
}
html[dir="rtl"] .breadcrumbs__sep {
  transform: scaleX(-1);
  display: inline-block;
}
html[dir="rtl"] .wishlist-heart {
  right: auto;
  left: 10px;
}

/* Language switcher in the nav */
.nav-link--lang {
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
}

/* Landing page "About" blurb */
.about-section {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 24px 40px;
  color: var(--muted);
}
.about-section h2 { color: var(--text); margin-bottom: 12px; }
.about-section p { line-height: 1.7; }

/* Admin form: bilingual field groups */
.admin-form__group {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.admin-form__group legend {
  padding: 0 6px;
  font-weight: 600;
  color: var(--accent-dark);
}
