/* ---------- Mobile drawer ---------- */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(6, 34, 51, 0.5); opacity: 0; visibility: hidden;
  transition: opacity var(--t), visibility var(--t);
}
.drawer-backdrop.is-open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; inset-block: 0; inset-inline-end: 0; z-index: 310;
  width: min(360px, 88vw); background: var(--white); box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform var(--t);
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
}
html[dir="rtl"] .drawer { transform: translateX(-100%); }
.drawer.is-open { transform: none; }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--white); z-index: 2;
}
.drawer__nav { list-style: none; margin: 0; padding: 14px; flex: 1; }
.drawer__nav a {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 14px 16px; border-radius: var(--radius);
  color: var(--ink); font-weight: 700; border-bottom: 1px solid var(--line);
}
.drawer__nav a:hover, .drawer__nav a.is-active { background: var(--tint-50); color: var(--accent); }
.drawer__nav svg { width: 18px; height: 18px; color: var(--tint-300); }
html[dir="ltr"] .drawer__nav svg { transform: scaleX(-1); }
.drawer__foot { padding: 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 520px at 88% 8%, rgba(212, 40, 88, 0.16), transparent 60%),
    radial-gradient(700px 500px at 8% 92%, rgba(14, 74, 110, 0.14), transparent 62%),
    var(--tint-50);
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem);
}
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero__title { margin-bottom: 0.35em; }
.hero__title .accent {
  background: var(--grad-text); -webkit-background-clip: text;
  background-clip: text; color: transparent;
}
.hero__lead { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--ink-70); max-width: 34em; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.75rem 0; padding: 0; list-style: none; }
.hero__badges li {
  display: flex; align-items: center; gap: 8px; background: var(--white);
  border: 1px solid var(--tint-200); border-radius: var(--radius-pill);
  padding: 8px 16px; font-size: 0.86rem; font-weight: 600;
  color: var(--brand); box-shadow: var(--shadow-sm);
}
.hero__badges svg { width: 16px; height: 16px; color: var(--accent); }

.hero__media { position: relative; }
.hero__frame {
  position: relative; border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 1 / 1; margin: 0; background: var(--grad-brand);
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14, 74, 110, 0) 55%, rgba(6, 34, 51, 0.42) 100%);
}
.hero__blob {
  position: absolute; z-index: -1;
  border-radius: 46% 54% 62% 38% / 42% 46% 54% 58%;
  filter: blur(6px); opacity: 0.5;
  animation: blobMorph 18s var(--ease) infinite alternate;
}
.hero__blob--1 { width: 320px; height: 300px; top: -60px; inset-inline-end: -50px; background: var(--tint-200); }
.hero__blob--2 { width: 240px; height: 230px; bottom: -70px; inset-inline-start: -60px; background: var(--tint-100); animation-delay: -6s; }
@keyframes blobMorph {
  0% { border-radius: 46% 54% 62% 38% / 42% 46% 54% 58%; transform: translate3d(0,0,0) rotate(0deg); }
  100% { border-radius: 62% 38% 40% 60% / 58% 62% 38% 42%; transform: translate3d(14px,-18px,0) rotate(12deg); }
}
.hero__card {
  position: absolute; z-index: 2; inset-inline-start: 24px; bottom: 24px;
  background: var(--white); border-radius: var(--radius); padding: 14px 18px;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px;
  max-width: calc(100% - 48px);
}
.hero__card .card__icon { margin: 0; width: 44px; height: 44px; border-radius: 13px; flex: none; }
.hero__card .card__icon svg { width: 22px; height: 22px; }
.hero__card .card__icon img { width: 26px; height: 26px; object-fit: contain; display: block; }
.hero__card-text { display: block; min-width: 0; }
.hero__card b { display: block; color: var(--ink); font-size: 1rem; line-height: 1.25; }
.hero__card-text > span { display: block; font-size: 0.8rem; color: var(--ink-50); line-height: 1.4; }

.float { animation: floatY 5.5s ease-in-out infinite; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  text-align: center; padding: 26px 18px; border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14);
}
.stat b {
  display: block; font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800;
  background: linear-gradient(90deg, #fff, var(--tint-300));
  -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1;
}
.stat span { font-size: 0.9rem; color: var(--tint-200); }

/* ---------- Category cards ---------- */
.cat-card {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius-lg); min-height: 380px;
  color: var(--white); box-shadow: var(--shadow);
  transition: transform var(--t), box-shadow var(--t);
}
.cat-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); color: var(--white); }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.cat-card:hover img { transform: scale(1.09); }
.cat-card::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg,
    rgba(255,255,255,0) 14%, rgba(255,255,255,0.3) 24%,
    rgba(255,255,255,0.76) 36%, rgba(255,255,255,0.93) 46%,
    rgba(255,255,255,0.96) 100%);
  transition: opacity var(--t);
}
.cat-card:hover::before, .cat-card:focus-visible::before { opacity: var(--cat-card-veil-hover); }
.cat-card__body {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column;
  justify-content: flex-end; gap: 6px; padding: 26px;
}
.cat-card__body h3 { color: var(--accent-700); margin: 0; }
.cat-card__body p { margin: 0; font-size: 0.92rem; color: var(--ink-70); }
.cat-card__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 700; font-size: 0.9rem; color: var(--accent-700); }
.cat-card__go svg { width: 17px; height: 17px; transition: transform var(--t-fast); }
.cat-card:hover .cat-card__go svg { transform: translateX(5px); }
html[dir="rtl"] .cat-card__go svg { transform: scaleX(-1); }
html[dir="rtl"] .cat-card:hover .cat-card__go svg { transform: translateX(-5px) scaleX(-1); }

/* ---------- Product card ---------- */
.product-card {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  height: 100%;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: var(--tint-200); }
.product-card__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--tint-50); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.07); }
.product-card__tag {
  position: absolute; top: 14px; inset-inline-start: 14px;
  background: rgba(255, 255, 255, 0.94); color: var(--brand);
  font-size: 0.74rem; font-weight: 700; padding: 6px 12px;
  border-radius: var(--radius-pill); box-shadow: var(--shadow-sm);
}
.product-card__tag--new { background: var(--accent); color: var(--white); }
.product-card__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-card__brand { font-size: 0.78rem; font-weight: 700; color: var(--accent); letter-spacing: 0.04em; }
.product-card__title { margin: 0; font-size: 1.05rem; }
.product-card__desc { margin: 0; font-size: 0.9rem; color: var(--ink-50); flex: 1; }
.product-card__foot { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.product-card__foot .btn { flex: 1; min-width: 128px; }

.chip {
  display: inline-flex; align-items: center; gap: 7px; background: var(--tint-100);
  color: var(--brand); border-radius: var(--radius-pill);
  padding: 6px 14px; font-size: 0.82rem; font-weight: 600;
}

/* ---------- Product detail ---------- */
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  list-style: none; padding: 0; margin: 0 0 1.5rem; font-size: 0.88rem; color: var(--ink-50);
}
.breadcrumb a { color: var(--ink-50); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb svg { width: 15px; height: 15px; color: var(--tint-300); }
html[dir="ltr"] .breadcrumb svg { transform: scaleX(-1); }
.breadcrumb [aria-current] { color: var(--brand); font-weight: 700; }

.page-head { background: var(--grad-brand-soft); padding: clamp(2rem, 4vw, 3rem) 0; }
.page-head h1 { margin-bottom: 0.2em; }
.page-head p { margin: 0; color: var(--ink-50); }

.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: start; }
.gallery__main {
  border-radius: var(--radius-lg); overflow: hidden; background: var(--tint-50);
  border: 1px solid var(--line); aspect-ratio: 1 / 1;
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.gallery__thumbs button {
  border: 2px solid var(--line); border-radius: var(--radius-sm); overflow: hidden;
  padding: 0; aspect-ratio: 1 / 1; background: var(--tint-50);
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.gallery__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs button:hover { transform: translateY(-3px); }
.gallery__thumbs button.is-active { border-color: var(--accent); }

.product-detail__price { font-size: 1.4rem; font-weight: 800; color: var(--brand); margin: 0 0 1rem; }

.spec-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 10px; }
.spec-list li {
  display: flex; gap: 10px; align-items: flex-start; padding: 11px 16px;
  background: var(--tint-50); border-radius: var(--radius-sm); font-size: 0.94rem;
}
.spec-list li::before {
  content: ""; width: 8px; height: 8px; margin-top: 9px; flex: none;
  border-radius: 50%; background: var(--grad-brand);
}
.spec-list b { color: var(--ink); }

.accordion {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 14px; background: var(--white);
}
.accordion summary {
  padding: 16px 22px; font-weight: 700; color: var(--ink); cursor: pointer;
  list-style: none; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; transition: background var(--t-fast);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { background: var(--tint-50); }
.accordion summary::after {
  content: ""; width: 10px; height: 10px; flex: none;
  border-inline-end: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translateY(-3px); transition: transform var(--t);
}
.accordion[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.accordion__body { padding: 0 22px 20px; color: var(--ink-70); }
.accordion__body > :last-child { margin-bottom: 0; }
