﻿/* ============================================================
   LAMSA — layout.css
   Page layout & components: header, hero, sections, product
   cards, footer, drawers, overlays, error pages.
   RTL-friendly: logical properties throughout.
   ============================================================ */

/* ---------- Announcement bar ---------- */

.announcement {
  background: var(--terra);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  z-index: 50;
}

.announcement__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 0.55rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  overflow: hidden;
  white-space: nowrap;
}

.announcement__item--hidden-mobile {
  display: none;
}

@media (min-width: 768px) {
  .announcement__item--hidden-mobile {
    display: inline;
  }
}

/* ---------- Site header ---------- */

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 40;
  transition: background var(--dur-mid) var(--ease-soft), border-color var(--dur-mid) var(--ease-soft), backdrop-filter var(--dur-mid) var(--ease-soft);
  border-bottom: 1px solid transparent;
}

.site-header.is-solid {
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.site-header__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 0.85rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.site-header__logo-mark {
  height: 34px;
  width: auto;
  display: block;
  border-radius: 8px;
  background: #fff;
  padding: 2px;
}

.site-header__logo-word {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.site-header__burger {
  display: inline-grid;
}

@media (min-width: 992px) {
  .site-header__burger {
    display: none;
  }
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

/* ---------- Primary nav ---------- */

.site-nav {
  display: none;
  align-items: center;
  gap: 1.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  padding-block: 0.35rem;
  color: var(--text);
  transition: color var(--dur-fast);
}

.site-nav a::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: 0;
  width: 100%;
  height: 1px;
  background: var(--terra);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--dur-mid) var(--ease-expo);
}

.site-nav a:hover {
  color: var(--terra-soft);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.site-nav__accent {
  color: var(--terra-soft) !important;
}

@media (min-width: 992px) {
  .site-nav {
    display: flex;
  }
}

/* ---------- Language switch ---------- */

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  margin-inline-start: 0.4rem;
  padding-inline-start: 0.9rem;
  border-inline-start: 1px solid var(--border);
}

.lang-switch--column {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-inline-start: 0;
  padding-inline-start: 0;
  border-inline-start: 0;
}

.lang-switch__link {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 0.3rem 0.45rem;
  border-radius: 2px;
  transition: color var(--dur-fast), background var(--dur-fast);
}

.lang-switch__link:hover {
  color: var(--text);
}

.lang-switch__link.is-active {
  color: var(--terra-soft);
  background: rgba(192, 86, 59, 0.12);
}

/* On phones the language switcher lives in the mobile drawer,
   so the header actions only keep search / account / wishlist / cart. */
@media (max-width: 767px) {
  .site-header__inner {
    gap: 0.5rem;
  }
  .site-header__actions {
    gap: 0.1rem;
  }
  .site-header__actions .lang-switch {
    display: none;
  }
  .site-header__logo-word {
    font-size: 1.1rem;
    letter-spacing: 0.14em;
  }
  .site-header__logo {
    gap: 0.5rem;
  }
  .site-header__logo-mark {
    height: 30px;
  }
}

/* ---------- Mobile drawer ---------- */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
}

.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 4, 3, 0.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: fadeIn var(--dur-fast) var(--ease-soft) both;
}

.drawer__panel {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: min(360px, 86vw);
  background: var(--bg-card);
  border-inline-end: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 1.4rem 1.5rem 2rem;
  overflow-y: auto;
  animation: slideInLeft var(--dur-mid) var(--ease-expo) both;
}

.drawer__panel--end {
  inset-inline-start: auto;
  inset-inline-end: 0;
  border-inline-end: 0;
  border-inline-start: 1px solid var(--border);
  animation-name: slideInRight;
}

[dir="rtl"] .drawer__panel {
  animation-name: slideInRight;
}

[dir="rtl"] .drawer__panel--end {
  animation-name: slideInLeft;
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.drawer__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
}

.drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 1.5rem;
}

.drawer__nav a {
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  transition: color var(--dur-fast);
}

.drawer__nav a:hover {
  color: var(--terra-soft);
}

.drawer__lang {
  margin-top: auto;
  display: flex;
  gap: 0.4rem;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from { transform: translateX(-24px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
  from { transform: translateX(24px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1100px 700px at 78% 12%, rgba(192, 86, 59, 0.55), transparent 62%),
    radial-gradient(900px 620px at 8% 92%, rgba(232, 213, 195, 0.16), transparent 55%),
    linear-gradient(160deg, #241A14 0%, #171310 55%, #120E0B 100%);
  animation: kenburns 24s var(--ease-soft) both;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, transparent 40%);
}

.hero__content {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
}

.hero__eyebrow {
  color: var(--terra-soft);
}

.hero__title {
  font-size: clamp(2.75rem, 7vw, 6rem);
  line-height: 1.02;
  font-weight: 600;
  max-width: 12ch;
}

.hero__line {
  display: block;
}

.hero__subtitle {
  max-width: 34ch;
  margin: 1.25rem 0 0;
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.125rem);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.25rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin-top: 3rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.hero__scroll {
  position: absolute;
  inset-inline-end: var(--gutter);
  inset-block-end: 2rem;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--text-muted);
}

.hero__scroll span {
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, var(--terra-soft), transparent);
  animation: scrollPulse 1.8s var(--ease-soft) infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ---------- Featured collection tiles ---------- */

.featured__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 992px) {
  .featured__grid {
    grid-template-columns: 1.4fr 1fr;
  }
}

.collection-tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 420px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  isolation: isolate;
}

.collection-tile--lg {
  min-height: 520px;
}

.collection-tile__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(700px 500px at 70% 20%, rgba(232, 213, 195, 0.2), transparent 60%),
    linear-gradient(150deg, #3A2C22, #1C1714 65%);
  transition: transform var(--dur-slow) var(--ease-expo);
}

.collection-tile:hover .collection-tile__media {
  transform: scale(1.04);
}

.collection-tile__media--terra {
  background:
    radial-gradient(600px 480px at 78% 18%, rgba(232, 213, 195, 0.28), transparent 58%),
    linear-gradient(150deg, #C0563B, #7A2F1E 70%);
}

.collection-tile__body {
  padding: 2rem;
  width: 100%;
  background: linear-gradient(to top, rgba(13, 10, 8, 0.85), transparent 60%);
}

.collection-tile__body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.collection-tile__body p {
  color: var(--text-muted);
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

/* ---------- Product scroller (swiper markup, grid fallback) ---------- */

.product-scroller {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--graphite) transparent;
  padding-block-end: 0.5rem;
}

.product-scroller::-webkit-scrollbar {
  height: 6px;
}

.product-scroller::-webkit-scrollbar-thumb {
  background: var(--graphite);
  border-radius: 999px;
}

.swiper-wrapper {
  display: flex;
  gap: 1.25rem;
}

.swiper-slide {
  scroll-snap-align: start;
  flex: 0 0 min(78vw, 320px);
}

@media (min-width: 768px) {
  .swiper-slide {
    flex-basis: 300px;
  }
}

@media (min-width: 1200px) {
  .product-scroller {
    overflow: visible;
  }
  .swiper-wrapper {
    flex-wrap: wrap;
  }
  .swiper-slide {
    flex: 0 0 calc(25% - 0.95rem);
  }
}

/* ---------- Product card ---------- */

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color var(--dur-mid) var(--ease-soft), transform var(--dur-mid) var(--ease-soft);
}

.product-card:hover {
  border-color: var(--graphite-soft);
  transform: translateY(-3px);
}

.product-card--placeholder {
  align-items: center;
  justify-content: center;
  min-height: 420px;
  color: var(--text-faint);
}

.product-card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--charcoal);
}

.product-card__link {
  display: block;
  position: absolute;
  inset: 0;
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-expo), opacity var(--dur-mid) var(--ease-soft);
}

.product-card__img--second {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.product-card:hover .product-card__img--second {
  opacity: 1;
}

.product-card:hover .product-card__img {
  transform: scale(1.04);
}

.product-card__badges {
  position: absolute;
  inset-block-start: 0.9rem;
  inset-inline-start: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.product-card__wishlist {
  position: absolute;
  inset-block-start: 0.7rem;
  inset-inline-end: 0.7rem;
  background: rgba(13, 10, 8, 0.55);
}

.product-card__actions {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  padding: 1rem;
  transform: translateY(110%);
  transition: transform var(--dur-mid) var(--ease-expo);
}

.product-card:hover .product-card__actions {
  transform: translateY(0);
}

.product-card__body {
  padding: 1.1rem 1.15rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.product-card__colors {
  display: flex;
  gap: 0.35rem;
}

.product-card__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
  transition: color var(--dur-fast);
}

.product-card__name:hover {
  color: var(--terra-soft);
}

.product-card__price {
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.product-card__sale {
  color: var(--terra-soft);
}

.product-card__old {
  color: var(--text-faint);
  font-weight: 500;
}

.product-card__sizes {
  color: var(--text-faint);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-card__stock {
  color: var(--danger);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Story ---------- */

.story__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 992px) {
  .story__grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
  }
}

.story__media {
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  background:
    radial-gradient(500px 420px at 30% 20%, rgba(192, 86, 59, 0.4), transparent 62%),
    linear-gradient(150deg, #2E241C, #181310 70%);
}

.story__body .section__title {
  margin-bottom: 1.25rem;
}

.story__text {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 46ch;
  margin: 0 0 2rem;
}

/* ---------- 3D showcase ---------- */

.showcase {
  position: relative;
  overflow: hidden;
}

.showcase__inner {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  align-items: center;
  position: relative;
  min-height: 60vh;
}

@media (min-width: 992px) {
  .showcase__inner {
    grid-template-columns: 1.3fr 1fr;
  }
}

.showcase__canvas {
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle at 50% 45%, rgba(232, 213, 195, 0.14), transparent 60%),
    repeating-radial-gradient(circle at 50% 50%, transparent 0 46px, rgba(192, 86, 59, 0.08) 46px 47px);
  border-radius: 50%;
}

.showcase__body .section__title {
  margin-bottom: 1.75rem;
}

/* ---------- Custom made ---------- */

.custom-made__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 992px) {
  .custom-made__grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.custom-made__body .section__title {
  margin-bottom: 1.25rem;
}

.custom-made__text {
  color: var(--text-muted);
  max-width: 44ch;
  margin: 0 0 2rem;
}

.custom-made__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.custom-made__media {
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  background-color: #2b211a;
  background-image: url('../../uploads/products/cooming.png');
  background-size: cover;
  background-position: center;
}

/* ---------- Why grid ---------- */

.why__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .why__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .why__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.why__tile {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.75rem;
}

.why__tile h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.why__tile p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.92rem;
}

/* ---------- Review cards ---------- */

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.75rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 240px;
}

.review-card__stars {
  color: var(--terra-soft);
  letter-spacing: 0.15em;
}

.review-card__stars-dim {
  color: var(--graphite);
}

.review-card__quote {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text);
  line-height: 1.65;
  flex: 1;
}

.review-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.review-card__meta strong {
  font-weight: 700;
}

.review-card__verified {
  color: var(--success);
  font-size: 0.75rem;
  font-weight: 700;
}

/* ---------- Social grid ---------- */

.social__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .social__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.social__tile {
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  background:
    radial-gradient(300px 240px at 70% 20%, rgba(232, 213, 195, 0.16), transparent 62%),
    linear-gradient(150deg, #33291F, #171310 70%);
  transition: transform var(--dur-mid) var(--ease-expo);
}

.social__tile:hover {
  transform: scale(1.02);
}

/* ---------- Newsletter ---------- */

.newsletter__inner {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}

.newsletter__form {
  display: grid;
  gap: 0.8rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .newsletter__form {
    grid-template-columns: 1fr auto;
  }
}

.newsletter__privacy {
  color: var(--text-faint);
  font-size: 0.8rem;
  margin-top: 0.9rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--charcoal);
  border-top: 1px solid var(--border);
  padding: clamp(3rem, 7vw, 5rem) var(--gutter) 2rem;
}

.site-footer__grid {
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 2rem;
  }
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.site-footer__tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 30ch;
  margin: 0;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.site-footer__heading {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.site-footer__col a {
  color: var(--text);
  font-size: 0.92rem;
  transition: color var(--dur-fast);
}

.site-footer__col a:hover {
  color: var(--terra-soft);
}

.site-footer__social {
  max-width: var(--container);
  margin: 2.5rem auto 0;
  display: flex;
  gap: 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.site-footer__social a {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  transition: color var(--dur-fast);
}

.site-footer__social a:hover {
  color: var(--terra-soft);
}

.site-footer__legal {
  max-width: var(--container);
  margin-inline: auto;
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-faint);
  font-size: 0.8rem;
}

.site-footer__legal p {
  margin: 0;
}

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

/* ---------- WhatsApp float ---------- */

.wa-float {
  position: fixed;
  inset-block-end: 1.5rem;
  inset-inline-end: 1.5rem;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--terra);
  color: var(--ink);
  padding: 0.8rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: var(--shadow-card);
  transition: background var(--dur-fast), transform var(--dur-fast);
}

.wa-float:hover {
  background: var(--terra-soft);
  transform: translateY(-2px);
}

.wa-float__label {
  font-size: 0.82rem;
}

@media (max-width: 480px) {
  .wa-float__label {
    display: none;
  }
}

/* ---------- Search overlay ---------- */

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 95;
}

.search-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 4, 3, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn var(--dur-fast) var(--ease-soft) both;
}

.search-overlay__panel {
  position: relative;
  max-width: 720px;
  margin-inline: auto;
  margin-block-start: clamp(4rem, 12vh, 8rem);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  animation: fadeUp var(--dur-mid) var(--ease-expo) both;
}

.search-overlay__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.search-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border);
  padding-block: 0.6rem;
  color: var(--text-faint);
}

.search-box:focus-within {
  border-bottom-color: var(--terra);
  color: var(--terra-soft);
}

.search-box input {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--text);
  font: inherit;
  font-size: 1.05rem;
}

.search-box input:focus {
  outline: none;
}

.search-box input::placeholder {
  color: var(--text-faint);
}

.search-results {
  margin-top: 1.25rem;
}

/* ---------- Cart drawer extras ---------- */

.cart-progress {
  margin-bottom: 1.25rem;
}

.cart-progress__track {
  height: 4px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.cart-progress__bar {
  height: 100%;
  background: var(--terra);
  border-radius: 999px;
  transition: width var(--dur-mid) var(--ease-soft);
}

.cart-progress__msg {
  margin: 0.6rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
}

.cart-empty {
  color: var(--text-faint);
  font-size: 0.92rem;
  text-align: center;
  padding: 2rem 0;
}

.cart-footer {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart-summary {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cart-summary__row--total {
  font-weight: 800;
  color: var(--text);
  font-size: 1rem;
  border-top: 1px dashed var(--border);
  padding-top: 0.6rem;
  margin-top: 0.3rem;
}

/* ---------- Error pages ---------- */

.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem var(--gutter);
}

.error-wrap {
  width: 100%;
  max-width: 560px;
}

.error-card {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: clamp(2.5rem, 8vw, 4rem);
  animation: fadeUp var(--dur-mid) var(--ease-expo) both;
}

.error-card__code {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 6rem);
  font-weight: 600;
  color: var(--terra-soft);
  margin: 0 0 0.5rem;
}

.error-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.error-card__message {
  color: var(--text-muted);
  margin: 0 0 2rem;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .hero__scroll span,
  .hero__media,
  .collection-tile__media {
    animation: none !important;
    transform: none !important;
  }
  .drawer__panel,
  .drawer__backdrop,
  .search-overlay__panel,
  .search-overlay__backdrop {
    animation: none !important;
  }
  .product-card__actions {
    transform: none;
  }
}

/* ---------- Auth pages ---------- */

.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem var(--gutter);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(192, 86, 59, 0.14), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(232, 213, 195, 0.06), transparent 55%),
    var(--bg);
}

.auth-shell {
  width: 100%;
  max-width: 420px;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: clamp(1.75rem, 5vw, 2.5rem);
  box-shadow: var(--shadow-card);
  animation: fadeUp var(--dur-mid) var(--ease-expo) both;
}

.auth-card__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}

.auth-card__mark {
  height: 44px;
  width: auto;
}

.auth-card__word {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.auth-card__lang {
  display: flex;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
  font-size: 0.82rem;
}

.auth-card__head {
  margin-bottom: 1.5rem;
}

.auth-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.auth-card__sub {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
}

.auth-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: -0.3rem 0 1.25rem;
  font-size: 0.85rem;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
}

.checkbox input {
  accent-color: var(--terra);
}

.auth-card__switch {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-card__switch a {
  color: var(--terra-soft);
  font-weight: 700;
}

.auth-card__foot {
  margin: 1.75rem 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-faint);
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.alert {
  border-radius: 6px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
  border: 1px solid;
}

.alert p {
  margin: 0;
}

.alert p + p {
  margin-top: 0.3rem;
}

.alert--success {
  color: #9bd3b0;
  border-color: rgba(46, 125, 79, 0.5);
  background: rgba(46, 125, 79, 0.12);
}

.alert--error {
  color: #f0a09b;
  border-color: rgba(179, 50, 43, 0.5);
  background: rgba(179, 50, 43, 0.12);
}

.alert--info {
  color: var(--terra-soft);
  border-color: rgba(192, 86, 59, 0.4);
  background: rgba(192, 86, 59, 0.1);
}

/* ---------- Account page ---------- */

.account__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .account__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.account__panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem;
}

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

.account__panel-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.account__list {
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0.6rem;
}

.account__list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 0.5rem;
}

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

.account__list dd {
  margin: 0;
  font-weight: 600;
}

.account__logout {
  margin-top: 1rem;
}

/* ---------- Admin shell ---------- */

.admin-shell__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--gutter);
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  position: sticky;
  top: 0;
  z-index: 30;
}

.admin-shell__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ivory);
  background: var(--terra);
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
}

.admin-shell__nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.admin-shell__user {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.admin-shell__user button {
  color: var(--terra-soft);
  font-weight: 700;
}

.admin-shell__main {
  min-height: 60vh;
}

.admin-stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .admin-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.admin-stats__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.admin-stats__value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
}

.admin-stats__label {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.admin-page__note {
  color: var(--text-faint);
  font-size: 0.88rem;
}

.admin-table {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
}

.admin-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.admin-table th,
.admin-table td {
  text-align: start;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.admin-table th {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------------------------------------------------------------------------
   Phase 4 — Admin dashboard
--------------------------------------------------------------------------- */

.admin-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
}

.admin-filter__presets {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.admin-filter__link {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
}

.admin-filter__link:hover {
  border-color: var(--text-faint);
}

.admin-filter__link.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.admin-filter__custom {
  display: flex;
  align-items: end;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.admin-filter__custom label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.admin-filter__custom input[type="date"] {
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: inherit;
  font: inherit;
  font-size: 0.85rem;
}

.admin-stats--6 {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .admin-stats--6 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .admin-stats--6 {
    grid-template-columns: repeat(6, 1fr);
  }
}

.admin-stats__card small {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-faint);
}

.admin-charts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 992px) {
  .admin-charts {
    grid-template-columns: 2fr 1fr;
  }
}

.admin-charts__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.admin-charts__canvas {
  position: relative;
  height: 260px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  padding: 0.75rem;
}

.admin-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 992px) {
  .admin-split {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.admin-table__num {
  text-align: end !important;
}

.admin-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  background: #8a8078;
  white-space: nowrap;
}

.admin-badge--received { background: #6B7A54; }
.admin-badge--confirmed { background: #2B3440; }
.admin-badge--preparing { background: #8a7a66; }
.admin-badge--shipped { background: #a8906f; }
.admin-badge--out_for_delivery { background: #C0563B; }
.admin-badge--delivered { background: #3a6b35; }
.admin-badge--cancelled { background: #a33a3a; }
.admin-badge--returned { background: #7a5a4a; }

/* ---------------------------------------------------------------------------
   Phase 5 — Catalog management
--------------------------------------------------------------------------- */

.admin-form-wrap {
  max-width: 1080px;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}

.admin-tabs__btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.admin-tabs__btn.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.admin-panel {
  display: none;
}

.admin-panel.is-active {
  display: block;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 1.25rem;
}

@media (min-width: 768px) {
  .admin-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-field--wide {
  grid-column: 1 / -1;
}

.admin-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.4rem;
  margin: 1rem 0 1.25rem;
}

.admin-checks--cols {
  flex-direction: column;
  gap: 0.4rem;
  margin: 0.4rem 0 0;
}

.admin-panel__lang {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  background: var(--bg-card);
}

.admin-panel__lang summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.admin-form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.admin-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}

.admin-images__item {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-card);
  margin: 0;
}

.admin-images__item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.admin-images__item figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.6rem;
  font-size: 0.78rem;
}

.admin-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-panel__hint {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0 0 1rem;
}

.hex-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hex-wrap .input {
  flex: 1;
  min-width: 90px;
}

.admin-inline button {
  background: none;
  border: none;
  padding: 0;
  color: var(--terra-soft);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

.admin-inline button.is-danger {
  color: var(--danger);
}

.admin-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  white-space: nowrap;
}

.admin-actions > a {
  color: var(--terra-soft);
  font-weight: 700;
}

.admin-prod {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 220px;
}

.admin-prod__img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.admin-prod__name {
  font-weight: 600;
}

.admin-flags {
  display: inline-flex;
  gap: 0.25rem;
}

.admin-flags span {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--terra);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
}

.admin-table__center {
  text-align: center !important;
}

.admin-table__muted {
  display: block;
  color: var(--text-faint);
  font-size: 0.75rem;
}

.admin-table__num.is-negative {
  color: var(--danger);
  font-weight: 700;
}

.admin-table__num.is-low {
  color: #a0671f;
  font-weight: 700;
}

.admin-table--spaced {
  margin-bottom: 1.5rem;
}

.admin-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  vertical-align: -2px;
  margin-inline-end: 0.25rem;
}

.admin-adjust {
  gap: 0.35rem;
  flex-wrap: wrap;
}

.admin-adjust__qty {
  width: 76px !important;
  padding: 0.4rem 0.5rem !important;
}

.admin-adjust__reason {
  width: auto !important;
  padding: 0.4rem 0.5rem !important;
}

.admin-adjust__note {
  width: 140px !important;
  padding: 0.4rem 0.5rem !important;
}

.btn--sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
}

.admin-badge--draft { background: #8a8078; }
.admin-badge--active { background: #3a6b35; }
.admin-badge--hidden { background: #55524d; }
.admin-badge--out_of_stock { background: #a33a3a; }
.admin-badge--paused { background: #a0671f; }
.admin-badge--expired { background: #55524d; }

/* ============================================================
   Phase 6 — Shop
   ============================================================ */

.shop-hero {
  padding-block: clamp(3rem, 8vw, 5rem) 0;
}

.shop-hero__sub {
  max-width: 560px;
  margin: 1rem 0 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.shop {
  padding-block-start: clamp(2.5rem, 6vw, 4rem);
}

.shop__toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.shop__count {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.shop__sort {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.shop__sort-link {
  position: relative;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  transition: color var(--dur-fast);
}

.shop__sort-link:hover {
  color: var(--text);
}

.shop__sort-link.is-active {
  color: var(--text);
}

.shop__sort-link.is-active::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: -0.35rem;
  height: 2px;
  background: var(--terra);
}

.shop__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.shop__chips-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-inline-end: 0.25rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--text);
  transition: border-color var(--dur-fast), background var(--dur-fast);
}

.chip:hover {
  border-color: var(--terra);
}

.chip__x {
  color: var(--text-faint);
  font-size: 1rem;
  line-height: 1;
}

.chip--clear {
  color: var(--text-muted);
  border-style: dashed;
}

.shop__layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.shop__filters {
  position: sticky;
  top: 2rem;
  border-inline-end: 1px solid var(--border);
  padding-inline-end: clamp(1.5rem, 3vw, 2.5rem);
}

.shop__filters-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
  margin: 0 0 1.5rem;
}

.filter-group {
  margin-bottom: 1.75rem;
}

.filter-group__title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 0.75rem;
}

.filter-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.filter-list li + li {
  margin-top: 0.35rem;
}

.filter-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--dur-fast);
}

.filter-link:hover,
.filter-link.is-active {
  color: var(--text);
}

.filter-link.is-active .filter-link__name {
  color: var(--terra);
}

.swatch--sm {
  width: 14px;
  height: 14px;
  flex: none;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-chip {
  min-width: 40px;
  text-align: center;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: border-color var(--dur-fast), color var(--dur-fast), background var(--dur-fast);
}

.filter-chip:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.filter-chip.is-active {
  background: var(--terra);
  border-color: var(--terra);
  color: var(--ivory);
}

.filter-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 0.7rem;
  color: var(--terra);
  flex: none;
}

.filter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.price-range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.price-range__label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.35rem;
}

.input--sm {
  padding: 0.5rem 0.7rem;
  font-size: 0.85rem;
}

.shop__content {
  min-width: 0;
}

.shop__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem) clamp(1rem, 2vw, 1.75rem);
}

.shop__empty {
  border: 1px dashed var(--border);
  padding: 4rem 2rem;
  text-align: center;
}

.shop__empty-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.6rem;
  margin: 0 0 1.5rem;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 3rem;
}

.pagination__link {
  min-width: 40px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: border-color var(--dur-fast), color var(--dur-fast), background var(--dur-fast);
}

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

.pagination__link.is-active {
  background: var(--terra);
  border-color: var(--terra);
  color: var(--ivory);
}

.pagination__dot {
  color: var(--text-faint);
  padding: 0.5rem 0.25rem;
}

.search-result {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  transition: opacity var(--dur-fast);
}

.search-result:hover {
  opacity: 0.85;
}

.search-result__img {
  width: 52px;
  height: 66px;
  object-fit: cover;
  flex: none;
  border-radius: 2px;
}

.search-result__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.search-result__name {
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result__price {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.search-results__empty {
  margin: 1.5rem 0 0;
  color: var(--text-faint);
  font-size: 0.9rem;
}

@media (max-width: 1024px) {
  .shop__layout {
    grid-template-columns: 1fr;
  }

  .shop__filters {
    position: static;
    border-inline-end: 0;
    border-bottom: 1px solid var(--border);
    padding-inline-end: 0;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 640px) {
  .shop__toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .shop__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}
