:root {
  --bg: #ffffff;
  --bg-soft: #ffffff;
  --text: #1f1f1d;
  --muted: #71716a;
  --brand: #181817;
  --brand-dark: #0f0f0e;
  --card: #ffffff;
  --line: #e4e8ef;
  --accent: #aaa160;
  --accent-strong: #857b3e;
  --danger: #b63a3a;
  --success: #2f7d55;
  --shadow: 0 18px 45px rgba(24, 24, 23, 0.08);
  --topbar-offset: 92px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Trebuchet MS", Tahoma, sans-serif;
  color: var(--text);
  max-width: 100%;
  overflow-x: hidden;
  background: var(--bg);
}

.storefront-body,
.storefront-body .hero,
.storefront-body main,
.storefront-body footer {
  background: #ffffff;
}

button,
input,
select,
textarea {
  font: inherit;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

img {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(1280px, 94vw);
  margin: 0 auto;
}

.hero {
  border-bottom: 1px solid var(--line);
  padding-bottom: 2rem;
  padding-top: calc(var(--topbar-offset) + 1rem);
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

.hero::after {
  content: none;
}

.topbar {
  direction: ltr;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1.1rem;
  padding: 1rem 0;
  position: relative;
  z-index: 2;
}

.topbar > * {
  min-width: 0;
}

.storefront-body .topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
  z-index: 90;
  padding: 0.62rem 0.9rem;
  border: 1px solid rgba(24, 24, 23, 0.1);
  border-top: 0;
  border-inline: 0;
  border-radius: 0;
  background: #ffffff;
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 30px rgba(24, 24, 23, 0.08);
  transform: none;
  transition: box-shadow 0.24s ease;
}

.storefront-body .topbar.is-at-top {
  box-shadow: 0 14px 34px rgba(24, 24, 23, 0.09);
}

.brand {
  grid-column: 1 / -1;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  justify-self: center;
  z-index: 1;
  text-decoration: none;
}

.brand img,
.admin-logo {
  border-radius: 999px;
  object-fit: contain;
  border: 1px solid rgba(170, 161, 96, 0.32);
  background: #fff;
  box-shadow: 0 10px 30px rgba(24, 24, 23, 0.12);
}

.brand img {
  height: 62px;
  width: 62px;
  transition: width 0.24s ease, height 0.24s ease, border-radius 0.24s ease;
}

.storefront-body .topbar.is-at-top .brand img {
  height: 70px;
  width: 70px;
}

.language-switcher {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 2;
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  justify-self: start;
  padding: 0.24rem;
  border: 1px solid rgba(24, 24, 23, 0.1);
  border-radius: 999px;
  background: var(--bg-soft);
  backdrop-filter: blur(10px);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--brand);
  border-radius: 999px;
  padding: 0.48rem 0.82rem;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

.lang-btn.is-active {
  background: var(--brand);
  color: #fff;
}

.mobile-menu-toggle {
  display: none;
}

.cart-shortcut {
  grid-column: 3;
  grid-row: 1;
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.48rem 0.68rem 0.48rem 0.82rem;
  border: 1px solid rgba(24, 24, 23, 0.12);
  border-radius: 999px;
  color: var(--brand);
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(24, 24, 23, 0.06);
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
}

.cart-shortcut:hover {
  background: var(--bg-soft);
}

.cart-shortcut.is-bumping {
  animation: cartShortcutPulse 0.46s ease;
}

.cart-shortcut-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-shortcut-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-count {
  min-width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.5rem;
  border-radius: 999px;
  color: var(--brand-dark);
  background: linear-gradient(135deg, var(--accent), #f7e88e);
  border: 1px solid rgba(168, 145, 56, 0.32);
  font-size: 0.86rem;
  font-weight: 950;
}

.cart-count.is-empty {
  color: var(--muted);
  background: #eef2f7;
}

.cart-shortcut.is-bumping .cart-count {
  animation: cartCountPop 0.46s ease;
}

.topbar-links {
  grid-column: 4;
  grid-row: 1;
  position: relative;
  z-index: 2;
  display: flex;
  gap: 0.95rem;
  align-items: center;
  justify-self: end;
}

.topbar a {
  color: var(--text);
  text-decoration: none;
}

.topbar-links a {
  font-weight: 800;
  padding: 0.5rem 0.7rem;
  border-radius: 999px;
}

.topbar-links a:hover {
  background: var(--bg-soft);
}

html[dir="rtl"] .topbar-links a,
html[dir="rtl"] .cart-shortcut,
html[dir="rtl"] .mobile-menu-toggle {
  direction: rtl;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.3rem;
  padding: 1.3rem 0 0.5rem;
}

.hero-copy {
  min-width: 0;
}

.hero h1 {
  font-family: Georgia, "Times New Roman", Tahoma, serif;
  font-size: clamp(2rem, 4.8vw, 4.35rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin: 0.6rem 0;
  max-width: 760px;
}

html[dir="rtl"] .hero h1 {
  letter-spacing: 0;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
}

.hero-search {
  direction: ltr;
  position: relative;
  display: grid;
  grid-template-columns: minmax(190px, 0.22fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 0.75rem;
  width: 100%;
  margin: 1.35rem auto 0;
  padding: 0.55rem;
  border: 1px solid rgba(24, 24, 23, 0.1);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(24, 24, 23, 0.08);
  backdrop-filter: blur(14px);
}

.hero-search input,
.hero-search select {
  width: 100%;
  height: 66px;
  min-height: 66px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0 1.05rem;
  background: var(--bg-soft);
  color: var(--text);
  outline: none;
  font-size: clamp(0.95rem, 2vw, 1.12rem);
  font-weight: 850;
  line-height: 66px;
  appearance: none;
  box-shadow: inset 0 0 0 1px rgba(155, 121, 74, 0.05);
}

.hero-search input {
  grid-column: 2;
  grid-row: 1;
}

.hero-search select {
  grid-column: 1;
  grid-row: 1;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--brand) 50%),
    linear-gradient(135deg, var(--brand) 50%, transparent 50%);
  background-position:
    calc(100% - 1.25rem) 50%,
    calc(100% - 0.9rem) 50%;
  background-size: 0.36rem 0.36rem, 0.36rem 0.36rem;
  background-repeat: no-repeat;
  padding-inline-end: 2.2rem;
}

.hero-search input:focus,
.hero-search select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(24, 24, 23, 0.12);
}

html[dir="rtl"] .hero-search input,
html[dir="rtl"] .hero-search select {
  direction: rtl;
  text-align: right;
}

html[dir="ltr"] .hero-search input,
html[dir="ltr"] .hero-search select {
  direction: ltr;
  text-align: left;
}

html[dir="ltr"] .hero-search input {
  grid-column: 1;
}

html[dir="ltr"] .hero-search select {
  grid-column: 2;
  background-position:
    calc(100% - 1.25rem) 50%,
    calc(100% - 0.9rem) 50%;
}

html[dir="rtl"] .hero-search select {
  background-position:
    1.25rem 50%,
    0.9rem 50%;
  padding-inline-start: 2.2rem;
  padding-inline-end: 1.05rem;
}

.catalogue-hero-content {
  width: 100vw;
  max-width: none;
  margin-inline: calc(50% - 50vw);
  padding: 0;
}

.storefront-home .hero,
.storefront-body[data-storefront-page="produits"] .hero {
  padding-top: var(--topbar-offset);
  padding-bottom: 0;
}

.storefront-home .catalogue-hero-content,
.storefront-body[data-storefront-page="produits"] .catalogue-hero-content {
  padding-top: 0;
  padding-bottom: 0;
}

.storefront-home main > .section:first-child,
.storefront-body[data-storefront-page="produits"] #catalogue {
  margin-top: 0;
}

.catalogue-carousel {
  direction: ltr;
  position: relative;
  overflow: hidden;
  min-height: clamp(280px, 32vw, 440px);
  border-block: 1px solid rgba(24, 24, 23, 0.08);
  background: #0b0b0a;
  box-shadow: 0 24px 60px rgba(24, 24, 23, 0.12);
  isolation: isolate;
}

.catalogue-carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.34), transparent 38%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.16), transparent 42%, rgba(0, 0, 0, 0.08));
  z-index: 1;
  pointer-events: none;
}

.catalogue-carousel-track {
  display: flex;
  min-height: inherit;
  transform: translateX(0);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.catalogue-slide {
  position: relative;
  display: grid;
  align-items: end;
  justify-items: center;
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  min-height: inherit;
  overflow: hidden;
  padding: clamp(1rem, 3vw, 2.4rem);
  padding-bottom: clamp(3.4rem, 6vw, 4.8rem);
}

.catalogue-slide-copy {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  width: min(860px, 84vw);
  color: #fff;
  opacity: 0;
  transform: translateY(14px);
  filter: blur(5px);
  pointer-events: none;
}

.catalogue-slide-copy span {
  width: fit-content;
  padding: 0.34rem 0.68rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #f7e88e;
  background: rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(10px);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.catalogue-slide-copy strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 42px;
  padding: 0.62rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(12, 12, 11, 0.46);
  backdrop-filter: blur(12px);
  font-family: "Avenir Next", "Trebuchet MS", Tahoma, sans-serif;
  color: #fff;
  font-size: clamp(0.98rem, 2vw, 1.32rem);
  font-weight: 950;
  line-height: 1.22;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.42);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

.catalogue-slide-copy small {
  max-width: 32rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(0.95rem, 1.7vw, 1.14rem);
  font-weight: 800;
  line-height: 1.6;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.catalogue-slide img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.035);
  transition: transform 5.8s ease;
}

.catalogue-slide:nth-child(1) img {
  object-position: center 42%;
}

.catalogue-slide:nth-child(2) img {
  object-position: center;
}

.catalogue-slide:nth-child(3) img {
  object-position: center 48%;
}

.catalogue-slide:nth-child(4) img {
  object-position: center;
}

.catalogue-slide.is-active img {
  transform: scale(1);
}

.catalogue-slide.is-active .catalogue-slide-copy {
  animation: catalogueTextIn 0.72s ease 0.12s both;
}

.catalogue-slide-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 52px;
  padding: 0 1.25rem;
  border-radius: 0;
  color: var(--brand-dark);
  background: linear-gradient(135deg, #f7cf4d, #d7a822);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  font-size: clamp(0.92rem, 1.8vw, 1.08rem);
  font-weight: 950;
  text-transform: uppercase;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.catalogue-slide-cta:hover {
  filter: brightness(1.04);
  transform: translateY(-2px);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.32);
}

.catalogue-carousel-arrow,
.catalogue-carousel-dots {
  position: absolute;
  z-index: 3;
}

.catalogue-carousel-arrow {
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 4.2rem;
  border: 0;
  color: rgba(255, 255, 255, 0.86);
  background: transparent;
  font-size: 4rem;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: color 0.18s ease, transform 0.18s ease;
}

.catalogue-carousel-arrow:hover {
  color: #f7cf4d;
  transform: translateY(-50%) scale(1.08);
}

.catalogue-carousel-arrow.is-prev {
  left: 0.65rem;
}

.catalogue-carousel-arrow.is-next {
  right: 0.65rem;
}

.catalogue-carousel-dots {
  right: clamp(1rem, 3vw, 2.4rem);
  bottom: clamp(0.9rem, 2.4vw, 1.8rem);
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
}

.catalogue-carousel-dots button {
  width: 0.72rem;
  height: 0.72rem;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  opacity: 0.78;
  transition: width 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.catalogue-carousel-dots button.is-active {
  width: 1.9rem;
  background: #fff;
  opacity: 1;
}

html[dir="rtl"] .catalogue-spotlight-copy,
html[dir="rtl"] .catalogue-slide-copy {
  direction: rtl;
  text-align: right;
}

html[dir="ltr"] .catalogue-spotlight-copy,
html[dir="ltr"] .catalogue-slide-copy {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] .catalogue-carousel::after {
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.34), transparent 38%),
    linear-gradient(270deg, rgba(0, 0, 0, 0.16), transparent 42%, rgba(0, 0, 0, 0.08));
}

html[dir="rtl"] .catalogue-carousel-dots {
  right: auto;
  left: clamp(1rem, 3vw, 2.4rem);
}

html[dir="rtl"] .catalogue-slide-copy {
  margin-inline-start: 0;
}

@keyframes catalogueTextIn {
  from {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0.34rem 0.78rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #f7e88e);
  color: var(--brand-dark);
  font-weight: 900;
  border: 1px solid rgba(181, 166, 95, 0.35);
}

.product-card,
.product-detail-card,
.product-detail-info-card,
.product-detail-benefits article,
.admin-form,
.admin-products article,
.checkout-form,
.cart-panel,
.admin-auth,
.admin-products-panel,
.admin-login-card,
.order-card,
.admin-stats article {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 14px;
  padding: 0.72rem 1rem;
  min-height: 44px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: white;
  cursor: pointer;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(24, 24, 23, 0.16);
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    color 0.22s ease,
    transform 0.22s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn-outline {
  background: #ffffff;
  color: var(--brand);
  border: 1px solid var(--brand);
  box-shadow: none;
}

.danger-btn {
  background: linear-gradient(135deg, #8f2d2d, var(--danger));
}

.section {
  margin: 2.4rem 0;
  scroll-margin-top: 7rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.section-head p {
  color: var(--muted);
  margin: 0.35rem 0 0;
}

.storefront-home #nouveautes .section-head,
.storefront-home #encens .section-head,
.storefront-home #catalogue .section-head {
  margin-bottom: 0.95rem;
}

.storefront-home #nouveautes .section-head p,
.storefront-home #encens .section-head p,
.storefront-home #catalogue .section-head p {
  display: none;
}

.topbar-links a.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 10px 24px rgba(24, 24, 23, 0.14);
}

.storefront-listing .hero {
  padding-bottom: 1.35rem;
}

.storefront-listing .hero-content {
  padding-top: 1rem;
  padding-bottom: 0.25rem;
}

.product-detail-hero {
  padding-bottom: 2.4rem;
}

.product-detail-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 1.1rem;
  align-items: stretch;
  padding-top: 1rem;
}

.product-detail-gallery {
  display: grid;
  gap: 0.8rem;
}

.product-detail-image {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  border: 1px solid rgba(181, 166, 95, 0.34);
  border-radius: 32px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.product-detail-image img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  display: block;
  object-fit: contain;
  object-position: center;
}

.product-detail-image .sale-badge {
  position: absolute;
  inset-block-start: 1rem;
  inset-inline-start: 1rem;
  z-index: 2;
}

.product-detail-image .promo-name-badge {
  inset-block-end: 1rem;
  inset-inline-start: 1rem;
}

.product-detail-assurance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.product-detail-assurance span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.55rem;
  border: 1px solid rgba(24, 24, 23, 0.1);
  border-radius: 16px;
  background: #ffffff;
  color: var(--brand);
  font-size: 0.88rem;
  font-weight: 950;
  text-align: center;
}

.product-detail-card {
  padding: clamp(1rem, 3vw, 1.6rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.product-back-link {
  width: fit-content;
  color: var(--muted);
  font-weight: 900;
  text-decoration: none;
}

.product-back-link:hover {
  color: var(--brand);
}

.product-detail-card h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 6vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.product-detail-brand {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 900;
}

.product-detail-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem;
}

.product-detail-price strong {
  color: var(--brand-dark);
  font-size: clamp(1.7rem, 5vw, 2.55rem);
  font-weight: 950;
}

.product-detail-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.product-detail-facts span {
  display: grid;
  gap: 0.2rem;
  padding: 0.78rem;
  border: 1px solid rgba(24, 24, 23, 0.08);
  border-radius: 17px;
  background: #ffffff;
  font-weight: 900;
}

.product-detail-facts b {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-detail-facts em {
  font-style: normal;
}

.product-detail-description {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.product-detail-add {
  width: 100%;
  min-height: 54px;
  margin-top: auto;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(216, 198, 103, 0.42);
  background:
    linear-gradient(135deg, var(--brand-dark), var(--brand)),
    radial-gradient(circle at 18% 15%, rgba(216, 198, 103, 0.35), transparent 8rem);
  color: #fff;
  font-weight: 950;
  box-shadow: 0 16px 34px rgba(24, 24, 23, 0.26);
  transition: box-shadow 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}

.product-detail-add::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transform: translateX(-70%);
  transition: opacity 0.22s ease, transform 0.42s ease;
}

.product-detail-add:hover:not(:disabled),
.product-detail-add:focus-visible:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(24, 24, 23, 0.34);
}

.product-detail-add:hover:not(:disabled)::after,
.product-detail-add:focus-visible:not(:disabled)::after {
  opacity: 1;
  transform: translateX(70%);
}

.product-detail-add:active:not(:disabled) {
  transform: translateY(0);
}

.product-detail-info {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 1rem;
}

.product-detail-info-card {
  padding: 1.1rem;
}

.product-detail-info-card h2 {
  margin: 0.65rem 0 0.45rem;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.product-detail-info-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.product-detail-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.product-detail-benefits article {
  padding: 1rem;
}

.product-detail-benefits strong {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--brand);
  font-size: 1.02rem;
}

.product-detail-benefits p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.storefront-home .listing-tools {
  display: none;
}

.section-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.section-count {
  width: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 850;
  text-align: center;
}

.section-more-link {
  position: relative;
  overflow: hidden;
  min-width: min(100%, 220px);
  justify-content: center;
  border-color: rgba(24, 24, 23, 0.16);
  box-shadow: 0 10px 24px rgba(24, 24, 23, 0.06);
}

.section-more-link::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.42) 45%, transparent 72%);
  transform: translateX(-125%);
  transition: transform 0.48s ease;
}

.section-more-link:hover:not([aria-disabled="true"]),
.section-more-link:focus-visible:not([aria-disabled="true"]) {
  border-color: var(--brand);
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #ffffff;
  box-shadow: 0 16px 32px rgba(24, 24, 23, 0.18);
  transform: translateY(-2px);
}

.section-more-link:hover::after,
.section-more-link:focus-visible::after {
  transform: translateX(125%);
}

.section-more-link.is-loading,
.section-more-link[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.72;
}

.storefront-listing .section-head {
  padding: 0.85rem;
  border: 1px solid rgba(24, 24, 23, 0.08);
  border-radius: 22px;
  background: #ffffff;
}

.promotion-section {
  padding: 1rem;
  border: 1px solid rgba(168, 145, 56, 0.22);
  border-radius: 28px;
  background:
    radial-gradient(circle at 16% 10%, rgba(216, 198, 103, 0.12), transparent 15rem),
    #ffffff;
  box-shadow: 0 22px 60px rgba(24, 24, 23, 0.07);
}

.promotion-head {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.promotion-grid .product-card {
  border-color: rgba(181, 166, 95, 0.5);
}

.filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1rem 0 1.25rem;
  padding: 0.6rem;
  border: 1px solid rgba(24, 24, 23, 0.08);
  border-radius: 18px;
  background: #ffffff;
}

.filters input,
.filters select,
.admin-form input,
.admin-form select,
.admin-form textarea,
.checkout-form input,
.checkout-form textarea,
.orders-control input,
.orders-control select,
#adminSearch,
#promotionSearch {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.78rem 0.88rem;
  min-height: 46px;
  background: var(--bg-soft);
  color: var(--text);
  outline: none;
}

.filters input:focus,
.filters select:focus,
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus,
.checkout-form input:focus,
.checkout-form textarea:focus,
.orders-control input:focus,
.orders-control select:focus,
#adminSearch:focus,
#promotionSearch:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(24, 24, 23, 0.12);
}

.delivery-note {
  margin: -0.35rem 0 0.8rem;
  padding: 0.62rem 0.78rem;
  border: 1px solid rgba(181, 166, 95, 0.28);
  border-radius: 14px;
  background: rgba(247, 232, 142, 0.14);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.45;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.product-card {
  overflow: hidden;
  animation: riseIn 0.42s ease both;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-color: rgba(217, 209, 195, 0.9);
  border-radius: 18px;
  isolation: isolate;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    opacity 0.2s ease,
    transform 0.22s ease;
  will-change: transform;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 24% 0%, rgba(216, 198, 103, 0.16), transparent 9rem),
    linear-gradient(145deg, #ffffff, #f8fafc);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.product-card-link {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.product-card-link:hover .product-name {
  color: var(--brand);
}

.product-card:focus-within {
  border-color: rgba(181, 166, 95, 0.74);
  box-shadow: 0 20px 48px rgba(24, 24, 23, 0.16);
}

.product-card:focus-within::before {
  opacity: 1;
}

.product-card.is-out-of-stock {
  background: #f3f5f8;
}

.product-card.is-out-of-stock::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(20, 36, 60, 0.06);
}

.product-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 5 / 4;
  background: #ffffff;
}

.product-media,
.product-media img,
.product-detail-image,
.product-detail-image img,
.admin-product-thumb,
.promotion-search-result img,
.selected-promotion-product img,
.promotion-group-products img,
.image-preview {
  background: #ffffff;
  background-color: #ffffff;
}

.product-media img {
  position: absolute;
  inset: 0;
}

.product-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 44%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(24, 24, 23, 0.2));
  opacity: 0;
  transition: opacity 0.22s ease;
}

.product-media img,
.product-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  padding: 0.42rem;
  background: #ffffff;
  transition: filter 0.22s ease, opacity 0.22s ease;
}

.product-card.is-out-of-stock .product-media img {
  filter: grayscale(1);
  opacity: 0.52;
}

.product-card.is-out-of-stock .content {
  opacity: 0.72;
}

.product-card .content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.26rem;
  padding: 0.72rem 0.78rem 0.58rem;
}

.product-card-actions {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
}

.product-name {
  display: -webkit-box;
  min-height: 1.35em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.35;
  font-size: 0.98rem;
  font-weight: 950;
}

.product-brand {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.product-price-block {
  display: grid;
  gap: 0.06rem;
  margin-top: 0.08rem;
}

.product-price-block .old-price {
  justify-self: start;
}

.product-card-meta {
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  width: 100%;
  min-height: 1.7rem;
  margin-top: 0;
  overflow: hidden;
  white-space: nowrap;
}

.product-card-meta .price {
  min-width: 0;
  font-size: 0.98rem;
  line-height: 1;
}

.product-volume,
.product-category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: fit-content;
  max-width: 6.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 999px;
  padding: 0.22rem 0.4rem;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.product-volume {
  color: var(--brand);
  background: #eef2f7;
}

.product-category {
  margin: 0;
  color: var(--brand-dark);
  background: rgba(216, 198, 103, 0.22);
}

.product-card-actions {
  margin-top: auto;
  padding: 0;
}

.product-card-actions .btn {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding-inline: 0.72rem;
  border-radius: 0;
  font-size: 0.92rem;
  line-height: 1.12;
  text-align: center;
  box-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
  .product-card:hover {
    border-color: rgba(181, 166, 95, 0.76);
    box-shadow: 0 24px 58px rgba(24, 24, 23, 0.18);
    transform: translateY(-6px);
  }

  .product-card:hover::before {
    opacity: 1;
  }

  .product-card:hover .product-media img {
    filter: saturate(1.08) contrast(1.03);
  }

  .product-card:hover .product-media::after {
    opacity: 1;
  }

  .product-card:hover .product-name {
    color: var(--brand);
  }

  .product-card:hover .btn:not(:disabled) {
    box-shadow: 0 14px 30px rgba(24, 24, 23, 0.24);
    transform: translateY(-1px);
  }
}

@media (hover: none) {
  .product-card:active {
    border-color: rgba(181, 166, 95, 0.7);
    box-shadow: 0 16px 34px rgba(24, 24, 23, 0.14);
    transform: scale(0.985);
  }

  .product-card:active::before,
  .product-card:active .product-media::after {
    opacity: 1;
  }

}

@media (prefers-reduced-motion: reduce) {
  .product-card,
  .product-card::before,
  .product-media::after,
  .product-media img,
  .product-card .btn,
  .section-more-link,
  .section-more-link::after,
  .catalogue-carousel-track,
  .catalogue-slide img,
  .catalogue-slide-copy,
  .catalogue-slide-cta {
    transition: none;
  }

  .catalogue-carousel-track,
  .catalogue-slide.is-active .catalogue-slide-copy {
    animation: none;
  }

  .catalogue-slide.is-active .catalogue-slide-copy {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .product-card:hover,
  .product-card:active {
    transform: none;
  }
}

.meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.price {
  color: var(--brand-dark);
  font-size: 1.08rem;
  font-weight: 950;
  white-space: nowrap;
}

.price-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.12rem;
}

html[dir="rtl"] .price-stack {
  align-items: flex-start;
}

.old-price {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
  text-decoration: line-through;
  white-space: nowrap;
}

.sale-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border-radius: 999px;
  padding: 0.38rem 0.62rem;
  color: #fff;
  background: linear-gradient(135deg, #8f2d2d, var(--danger));
  box-shadow: 0 12px 28px rgba(182, 58, 58, 0.2);
  font-size: 0.82rem;
  font-weight: 950;
}

.product-media .sale-badge {
  position: absolute;
  inset-block-start: 0.75rem;
  inset-inline-start: 0.75rem;
  z-index: 2;
}

.promo-name-badge {
  position: absolute;
  inset-block-end: 0.75rem;
  inset-inline-start: 0.75rem;
  z-index: 2;
  max-width: calc(100% - 1.5rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 999px;
  padding: 0.34rem 0.62rem;
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(168, 145, 56, 0.26);
  box-shadow: 0 10px 24px rgba(15, 15, 14, 0.12);
  font-size: 0.78rem;
  font-weight: 950;
}

.promotion-countdown {
  margin-top: 0.04rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid rgba(168, 145, 56, 0.26);
  border-radius: 16px;
  background:
    radial-gradient(circle at 8% 20%, rgba(216, 198, 103, 0.16), transparent 5rem),
    #ffffff;
  color: var(--brand-dark);
  box-shadow: 0 10px 24px rgba(24, 24, 23, 0.07);
}

.promotion-countdown-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
}

.promotion-countdown strong {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.24rem;
  font-size: 0.8rem;
  line-height: 1;
  white-space: nowrap;
}

.promotion-countdown strong::before {
  content: "";
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(47, 125, 85, 0.1);
}

.promotion-countdown.is-urgent {
  border-color: rgba(182, 58, 58, 0.24);
  background:
    radial-gradient(circle at 8% 20%, rgba(182, 58, 58, 0.16), transparent 5rem),
    #ffffff;
}

.promotion-countdown.is-urgent strong::before {
  background: var(--danger);
  box-shadow: 0 0 0 3px rgba(182, 58, 58, 0.1);
}

.promo-period {
  margin: 0.3rem 0 0;
  color: var(--danger);
  font-size: 0.84rem;
  font-weight: 900;
}

.stock-pill,
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border-radius: 999px;
  padding: 0.36rem 0.58rem;
  font-size: 0.82rem;
  font-weight: 900;
  background: rgba(216, 198, 103, 0.22);
  color: var(--brand-dark);
}

.stock-pill.is-empty {
  color: var(--danger);
  background: rgba(182, 58, 58, 0.11);
}

.row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 1rem;
  align-items: start;
}

.checkout-form,
.admin-form,
.cart-panel {
  padding: 1rem;
  display: grid;
  gap: 0.5rem;
}

.admin-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--brand-dark);
  font-size: 0.9rem;
  font-weight: 900;
}

.localized-fieldset {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0.72rem;
  border: 1px solid rgba(24, 24, 23, 0.08);
  border-radius: 16px;
  background: #ffffff;
}

.localized-fieldset legend {
  padding: 0 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.localized-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.localized-field-grid input[dir="ltr"] {
  text-align: left;
}

.localized-field-grid input[dir="rtl"] {
  text-align: right;
}

.cart-items {
  display: grid;
  gap: 0.65rem;
}

.cart-item {
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.cart-item-head,
.cart-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.cart-controls {
  margin-top: 0.55rem;
  justify-content: flex-start;
}

.qty-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--brand);
  cursor: pointer;
  font-weight: 950;
}

.cart-total {
  font-size: 1.2rem;
  font-weight: 950;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0;
  color: var(--muted);
}

.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1rem;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
  background: #ffffff;
}

.message {
  margin: 0.3rem 0 0;
  color: var(--success);
  font-weight: 800;
}

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

body.modal-open {
  overflow: hidden;
}

.order-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.order-modal.is-open {
  display: flex;
}

.order-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 14, 0.58);
  backdrop-filter: blur(7px);
}

.order-modal-card {
  position: relative;
  z-index: 1;
  width: min(460px, 94vw);
  border: 1px solid rgba(216, 198, 103, 0.42);
  border-radius: 28px;
  padding: 1.3rem;
  background:
    radial-gradient(circle at 18% 10%, rgba(216, 198, 103, 0.18), transparent 11rem),
    var(--card);
  box-shadow: 0 28px 80px rgba(15, 15, 14, 0.34);
  text-align: center;
  animation: modalPop 0.24s ease both;
}

.order-modal-card:focus {
  outline: none;
}

.order-modal-mark {
  width: 62px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--success), #3ea76d);
  box-shadow: 0 14px 34px rgba(47, 125, 85, 0.26);
  font-size: 2rem;
  font-weight: 950;
}

.order-modal-card h2 {
  margin: 0.75rem 0 0.35rem;
  font-size: clamp(1.45rem, 5vw, 2rem);
}

.order-modal-card p {
  color: var(--muted);
}

.order-modal-card .btn {
  width: 100%;
  margin-top: 0.7rem;
}

.cart-toast {
  position: fixed;
  inset-block-start: 5.35rem;
  inset-inline-end: 1rem;
  z-index: 210;
  width: max-content;
  max-width: min(360px, calc(100vw - 2rem));
  padding: 0.9rem 1rem;
  border: 1px solid rgba(216, 198, 103, 0.42);
  border-radius: 18px;
  background:
    radial-gradient(circle at 15% 20%, rgba(216, 198, 103, 0.28), transparent 7rem),
    var(--brand);
  color: #fff;
  box-shadow: 0 18px 45px rgba(15, 15, 14, 0.24);
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px) scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cart-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

body.drawer-open {
  overflow: hidden;
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 260;
  pointer-events: none;
}

.mobile-drawer.is-open {
  pointer-events: auto;
}

.mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 14, 0.5);
  opacity: 0;
  backdrop-filter: blur(4px);
  transition: opacity 0.24s ease;
}

.mobile-drawer.is-open .mobile-drawer-backdrop {
  opacity: 1;
}

.mobile-drawer-panel {
  position: absolute;
  inset-block: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(88vw, 390px);
  max-width: 100%;
  background: #fff;
  box-shadow: -22px 0 54px rgba(15, 15, 14, 0.2);
  transform: translateX(105%);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mobile-drawer.is-open .mobile-drawer-panel {
  transform: translateX(0);
}

.mobile-drawer-panel:focus {
  outline: none;
}

.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: max(1rem, env(safe-area-inset-top)) 1rem 0.9rem;
  border-bottom: 1px solid var(--line);
}

.mobile-drawer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.mobile-drawer-brand img {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  object-fit: cover;
}

.mobile-drawer-brand p {
  margin: 0;
  color: var(--brand);
  font-weight: 950;
}

.mobile-drawer-brand span {
  display: block;
  margin-top: 0.12rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.mobile-drawer-close {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--brand);
  cursor: pointer;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
}

.mobile-drawer-search {
  display: grid;
  gap: 0.5rem;
  padding: 0.85rem 1rem 1rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.mobile-drawer-search label {
  color: var(--brand);
  font-size: 0.86rem;
  font-weight: 950;
}

.mobile-drawer-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 0.5rem;
  align-items: center;
}

.mobile-drawer-search input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  color: var(--text);
  padding: 0 0.95rem;
  font-size: 0.95rem;
  font-weight: 850;
  outline: none;
}

.mobile-drawer-search input:focus {
  border-color: rgba(133, 123, 62, 0.58);
  box-shadow: 0 0 0 4px rgba(170, 161, 96, 0.15);
}

.mobile-drawer-search button {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(24, 24, 23, 0.12);
  border-radius: 14px;
  background: var(--brand);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 12px 24px rgba(24, 24, 23, 0.12);
}

.mobile-drawer-search button:hover,
.mobile-drawer-search button:focus-visible {
  background: var(--brand-dark);
}

.mobile-drawer-search svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mobile-drawer-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.mobile-drawer-tab {
  min-height: 58px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mobile-drawer-tab.is-active {
  border-color: var(--accent-strong);
  color: var(--brand-dark);
  background: var(--bg-soft);
}

.mobile-drawer-content {
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

.mobile-drawer-section {
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
}

.mobile-drawer-section a,
.mobile-drawer-parent,
.mobile-brand-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-height: 62px;
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--line);
  border-inline: 0;
  border-block-start: 0;
  color: var(--text);
  background: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 950;
  text-align: start;
}

.mobile-drawer-section a:hover,
.mobile-drawer-parent:hover,
.mobile-brand-link:hover {
  background: var(--bg-soft);
}

.mobile-drawer-section a.is-active {
  color: var(--brand);
  background: rgba(216, 198, 103, 0.12);
}

.mobile-drawer-parent {
  cursor: pointer;
}

.mobile-drawer-chevron {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 1.55rem;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform 0.18s ease;
}

.mobile-drawer-group.is-open .mobile-drawer-chevron {
  transform: rotate(90deg);
}

.mobile-drawer-submenu {
  display: grid;
  background: #fff;
}

.mobile-drawer-submenu a {
  justify-content: flex-start;
  min-height: 48px;
  padding: 0.72rem 1.15rem;
  padding-inline-start: 1.85rem;
  color: var(--text);
  background: #fff;
  font-size: 0.95rem;
  font-weight: 850;
}

.mobile-drawer-submenu a::before {
  content: none;
  display: none;
}

.mobile-drawer-submenu a:hover {
  color: var(--brand-dark);
  background: #fff;
}

.mobile-brand-list {
  display: grid;
}

.mobile-brand-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-brand-link small {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.mobile-drawer-state {
  margin: 0;
  padding: 1.2rem;
  color: var(--muted);
  font-weight: 850;
}

.admin-page {
  padding: 1.2rem 0 2.4rem;
}

.admin-header {
  margin-bottom: 0.8rem;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.admin-brand h1 {
  margin: 0.2rem 0 0;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
}

.admin-logo {
  height: 70px;
  width: 70px;
  display: block;
}

.admin-nav {
  display: flex;
  gap: 0.55rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.45rem;
  margin: 0 0 0.85rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(24, 24, 23, 0.06);
}

.admin-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.58rem 0.95rem;
  border: 1px solid rgba(24, 24, 23, 0.16);
  border-radius: 999px;
  background: #ffffff;
  color: var(--brand);
  text-decoration: none;
  font-weight: 900;
  white-space: nowrap;
  font-size: 0.95rem;
}

.admin-nav-link.is-active {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}

.admin-nav-button {
  cursor: pointer;
}

.admin-lang-switcher {
  margin: 0 0 0.9rem;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.admin-stats article {
  padding: 0.9rem;
  box-shadow: 0 12px 28px rgba(24, 24, 23, 0.07);
}

.admin-stats span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.admin-stats strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.65rem;
  color: var(--brand-dark);
}

.admin-login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 0;
}

.admin-login-card {
  width: min(460px, 92vw);
  padding: 1.25rem;
}

.admin-login-card .admin-logo {
  margin-bottom: 0.7rem;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem;
  align-items: start;
}

.admin-form {
  position: sticky;
  top: 0.8rem;
}

.admin-products-panel {
  padding: 1rem;
}

.admin-products-panel .section-head {
  margin-bottom: 0.85rem;
}

.admin-search-wrap {
  margin-bottom: 0.9rem;
}

#adminSearch {
  border-radius: 999px;
  background: var(--bg-soft);
}

#promotionSearch {
  border-radius: 999px;
  background: var(--bg-soft);
}

.admin-products,
.orders-list {
  display: grid;
  gap: 0.75rem;
}

.admin-products article {
  padding: 0.85rem;
  box-shadow: none;
}

.admin-pagination {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.85rem;
  border: 1px solid rgba(24, 24, 23, 0.08);
  border-radius: 20px;
  background: #ffffff;
}

.admin-pagination[hidden] {
  display: none;
}

.admin-pagination-summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

.admin-pagination-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.admin-pagination-current {
  min-width: 118px;
  padding: 0.72rem 0.9rem;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--brand-dark);
  font-weight: 900;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(155, 121, 74, 0.18);
}

.admin-pagination .btn {
  min-width: 104px;
  justify-content: center;
}

.admin-pagination .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.admin-product-card {
  border-radius: 18px;
  background: #ffffff;
}

.admin-product-main {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.admin-product-thumb {
  width: 82px;
  height: 82px;
  border-radius: 14px;
  object-fit: contain;
  object-position: center;
  border: 1px solid var(--line);
  background: #f8fafc;
}

.admin-localized-line {
  margin: 0.18rem 0 0.05rem;
  color: var(--brand-dark);
  font-size: 0.86rem;
  font-weight: 850;
}

.actions,
.form-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.admin-form .checkbox-row,
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.checkbox-row input {
  width: auto;
  min-height: auto;
}

.dropzone {
  border: 2px dashed var(--accent-strong);
  border-radius: 18px;
  padding: 1rem;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.dropzone p {
  margin: 0.3rem 0;
}

.dropzone.drag-over {
  border-color: var(--brand);
  background: #eef2f7;
  transform: scale(1.01);
}

.promotions-layout {
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
}

.promotion-date-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.promotion-date-grid > div {
  display: grid;
  gap: 0.35rem;
}

.promotion-search-results,
.selected-promotion-products {
  display: grid;
  gap: 0.48rem;
}

.promotion-search-results {
  max-height: 320px;
  overflow: auto;
  padding: 0.35rem;
  border: 1px solid rgba(24, 24, 23, 0.08);
  border-radius: 16px;
  background: #f8fafc;
}

.promotion-search-result,
.selected-promotion-product {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.52rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  color: var(--text);
  text-align: start;
}

.promotion-search-result {
  cursor: pointer;
}

.promotion-search-result:hover {
  border-color: var(--brand);
  box-shadow: 0 10px 22px rgba(24, 24, 23, 0.08);
}

.promotion-search-result img,
.selected-promotion-product img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: contain;
  object-position: center;
  background: #f8fafc;
}

.promotion-search-result strong,
.selected-promotion-product strong {
  display: block;
}

.promotion-search-result small,
.selected-promotion-product small,
.selected-promotion-product em {
  display: block;
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

.selected-products-head,
.promotion-list-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.compact-btn {
  min-height: 36px;
  padding: 0.45rem 0.7rem;
  border-radius: 12px;
  font-size: 0.84rem;
}

.mini-remove-btn {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(182, 58, 58, 0.22);
  border-radius: 999px;
  color: var(--danger);
  background: rgba(182, 58, 58, 0.08);
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 950;
}

.promotion-name-chip,
.promotion-name-line {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 0.32rem 0.56rem;
  color: var(--brand-dark);
  background: rgba(216, 198, 103, 0.22);
  font-size: 0.82rem;
  font-weight: 950;
}

.promotion-name-line {
  margin: 0.35rem 0 0;
}

.promotion-group-card {
  display: grid;
  gap: 0.75rem;
}

.promotion-group-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.promotion-group-head .sale-badge {
  flex: 0 0 auto;
}

.promotion-group-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.promotion-group-products span {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem;
  border: 1px solid rgba(24, 24, 23, 0.08);
  border-radius: 14px;
  background: #ffffff;
}

.promotion-group-products img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: contain;
  object-position: center;
  background: #f8fafc;
}

.promotion-group-products b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
}

.promotion-extra-count {
  display: inline-flex !important;
  grid-template-columns: none !important;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  color: var(--brand);
  font-weight: 950;
}

.promotion-preview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid rgba(181, 166, 95, 0.35);
  border-radius: 18px;
  background: #ffffff;
}

.promotion-preview strong {
  display: block;
  margin-top: 0.45rem;
}

.promo-price-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

.status-promo-active {
  background: rgba(47, 125, 85, 0.13);
  color: var(--success);
}

.status-promo-scheduled {
  background: rgba(216, 198, 103, 0.22);
  color: var(--brand-dark);
}

.status-promo-expired {
  background: rgba(182, 58, 58, 0.12);
  color: var(--danger);
}

.status-promo-none {
  background: rgba(101, 112, 131, 0.12);
  color: var(--muted);
}

.image-preview {
  width: 100%;
  max-height: 210px;
  object-fit: contain;
  object-position: center;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #f8fafc;
}

.orders-toolbar {
  display: grid;
  grid-template-columns: 1.25fr 1fr 0.9fr;
  gap: 0.7rem;
  margin: 0.95rem 0 1rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
}

.orders-control {
  display: grid;
  gap: 0.3rem;
}

.orders-control label {
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 900;
}

.order-card {
  padding: 0.95rem;
  box-shadow: 0 12px 28px rgba(24, 24, 23, 0.07);
}

.order-head {
  display: flex;
  justify-content: space-between;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 0.7rem;
}

.order-status-wrap {
  display: grid;
  gap: 0.25rem;
  min-width: 170px;
}

.order-status-select {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.55rem 0.65rem;
  min-height: 42px;
  background: #fff;
}

.status-badge {
  font-size: 0.78rem;
}

.status-ordred {
  background: rgba(216, 198, 103, 0.22);
}

.status-in-progress {
  background: rgba(24, 24, 23, 0.10);
  color: var(--brand);
}

.status-cancled {
  background: rgba(182, 58, 58, 0.12);
  color: var(--danger);
}

.status-dilevred {
  background: rgba(47, 125, 85, 0.13);
  color: var(--success);
}

.order-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.order-grid p {
  margin: 0.35rem 0;
}

.order-items {
  margin: 0.35rem 0 0;
  padding-inline-start: 1.1rem;
}

.order-items li {
  margin: 0.24rem 0;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cartShortcutPulse {
  0%,
  100% {
    transform: translateY(0);
  }
  45% {
    transform: translateY(-2px);
  }
}

@keyframes cartCountPop {
  0%,
  100% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.28);
  }
}

@media (max-width: 980px) {
  .hero-content,
  .product-detail-shell,
  .product-detail-info,
  .checkout,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-form {
    position: static;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .orders-toolbar,
  .order-grid,
  .product-detail-benefits,
  .promotions-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  :root {
    --topbar-offset: 73px;
  }

  .container {
    width: min(100% - 1rem, 1120px);
  }

  .topbar {
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 0.42rem;
    padding: 0.75rem 0;
  }

  .storefront-body .topbar {
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    padding: 0.55rem 0.65rem;
    border-radius: 0;
  }

  .brand img {
    height: 48px;
    width: 48px;
    border-radius: 14px;
  }

  .storefront-body .topbar.is-at-top .brand img {
    height: 52px;
    width: 52px;
    border-radius: 15px;
  }

  .language-switcher {
    max-width: 100%;
    gap: 0.14rem;
    padding: 0.18rem;
  }

  .lang-btn {
    padding: 0.42rem 0.52rem;
    font-size: 0.78rem;
    line-height: 1;
    white-space: nowrap;
  }

  .cart-shortcut {
    width: 60px;
    min-height: 44px;
    padding: 0.34rem;
    gap: 0.2rem;
  }

  .cart-shortcut-label {
    display: none;
  }

  .cart-shortcut-icon,
  .cart-shortcut-icon svg {
    width: 20px;
    height: 20px;
  }

  .cart-count {
    min-width: 23px;
    height: 23px;
    padding: 0 0.32rem;
    font-size: 0.72rem;
  }

  .cart-toast {
    inset-block-start: auto;
    inset-block-end: 1rem;
    inset-inline: 0.75rem;
    width: auto;
    max-width: none;
    text-align: center;
  }

  .mobile-menu-toggle {
    grid-column: 4;
    grid-row: 1;
    position: relative;
    z-index: 2;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg-soft);
    color: var(--brand);
    font-size: 0;
    font-weight: 900;
    padding: 0;
    cursor: pointer;
  }

  .mobile-menu-toggle::before {
    content: "☰";
    font-size: 1.15rem;
    line-height: 1;
  }

  .topbar-links {
    grid-column: 1 / -1;
    grid-row: 2;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    width: 100%;
    justify-self: stretch;
    padding-top: 0.25rem;
  }

  .topbar-links.is-open {
    display: grid;
  }

  .topbar-links a {
    white-space: nowrap;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.55rem 0.4rem;
    font-size: 0.92rem;
    background: #ffffff;
  }

  .hero {
    padding-bottom: 1rem;
    padding-top: 5.55rem;
  }

  .storefront-home .hero,
  .storefront-body[data-storefront-page="produits"] .hero {
    padding-top: var(--topbar-offset);
    padding-bottom: 0;
  }

  .storefront-home .catalogue-hero-content,
  .storefront-body[data-storefront-page="produits"] .catalogue-hero-content {
    width: 100vw;
    max-width: none;
    margin-inline: calc(50% - 50vw);
    padding: 0;
  }

  .product-detail-hero {
    padding-bottom: 1.1rem;
  }

  .product-detail-shell {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    align-items: stretch;
    padding-top: 0.75rem;
  }

  .product-detail-gallery {
    display: grid;
    gap: 0.52rem;
  }

  .product-detail-image {
    grid-column: auto;
    grid-row: auto;
    align-self: auto;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
    border-radius: 24px;
  }

  .product-detail-image img {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 360px;
    padding: 0.9rem;
  }

  .product-detail-assurance {
    grid-column: auto;
    grid-row: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
  }

  .product-detail-assurance span {
    min-height: 40px;
    padding: 0.42rem 0.28rem;
    border-radius: 13px;
    font-size: 0.72rem;
  }

  .product-detail-card {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.9rem;
    border-radius: 22px;
  }

  .product-back-link,
  .product-detail-card > .badge {
    display: none;
  }

  .product-detail-card h1 {
    grid-column: auto;
    grid-row: auto;
    align-self: auto;
    min-width: 0;
    margin-top: 0;
    text-align: center;
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
  }

  .product-detail-brand {
    grid-column: auto;
    grid-row: auto;
    min-width: 0;
    margin-top: -0.25rem;
    text-align: center;
    font-size: 0.96rem;
  }

  .product-detail-price {
    grid-column: auto;
    grid-row: auto;
    justify-content: center;
    min-width: 0;
    margin-top: -0.1rem;
    gap: 0.36rem;
  }

  .product-detail-price strong {
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

  .product-detail-price .old-price {
    font-size: 0.74rem;
  }

  .product-detail-facts {
    grid-column: auto;
    grid-row: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.38rem;
    min-width: 0;
    margin-top: 0;
  }

  .product-detail-facts span {
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: center;
    gap: 0.18rem;
    min-height: 58px;
    padding: 0.48rem 0.3rem;
    border-radius: 14px;
    font-size: 0.78rem;
    text-align: center;
  }

  .product-detail-facts b {
    font-size: 0.58rem;
    letter-spacing: 0.04em;
  }

  .product-detail-description {
    grid-column: auto;
    grid-row: auto;
    margin-top: 0;
    padding: 0.75rem;
    border: 1px solid rgba(24, 24, 23, 0.08);
    border-radius: 18px;
    background: #ffffff;
    font-size: 0.92rem;
    line-height: 1.65;
  }

  .product-detail-add {
    grid-column: auto;
    grid-row: auto;
    min-height: 58px;
    border-radius: 18px;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    box-shadow: 0 20px 42px rgba(24, 24, 23, 0.28);
  }

  .product-detail-info {
    gap: 0.75rem;
  }

  .hero-content {
    gap: 0.8rem;
    padding-top: 0.8rem;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 8vw, 2.35rem);
  }

  .hero p {
    font-size: 0.98rem;
  }

  .catalogue-hero-content {
    padding-top: 0;
  }

  .catalogue-carousel {
    min-height: 300px;
    border-radius: 0;
  }

  .catalogue-slide {
    padding: 1rem;
    padding-bottom: 3.1rem;
  }

  .catalogue-slide-copy {
    width: min(86vw, 390px);
  }

  .catalogue-slide-copy strong {
    max-width: 100%;
    min-height: 38px;
    padding: 0.52rem 0.82rem;
    font-size: clamp(0.84rem, 3.4vw, 1rem);
  }

  .catalogue-slide-cta {
    min-height: 48px;
    padding: 0 1rem;
    font-size: 0.9rem;
  }

  .catalogue-carousel-arrow {
    width: 2.15rem;
    height: 3.4rem;
    font-size: 3.1rem;
  }

  .catalogue-carousel-arrow.is-prev {
    left: 0.15rem;
  }

  .catalogue-carousel-arrow.is-next {
    right: 0.15rem;
  }

  .catalogue-carousel-dots {
    right: 1rem;
    bottom: 1rem;
  }

  .hero-search {
    grid-template-columns: minmax(108px, 0.38fr) minmax(0, 1fr);
    gap: 0.45rem;
    margin-top: 1rem;
    padding: 0.42rem;
    border-radius: 20px;
  }

  .hero-search input,
  .hero-search select {
    height: auto;
    min-height: 52px;
    border-radius: 16px;
    padding: 0.72rem 0.78rem;
    font-size: 0.92rem;
    line-height: normal;
  }

  .hero-search select {
    appearance: auto;
    background-image: none;
    padding-inline-start: 0.78rem;
    padding-inline-end: 0.78rem;
  }

  .section {
    margin: 1.65rem 0;
    scroll-margin-top: 6rem;
  }

  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0.5rem;
  }

  .promotion-section {
    padding: 0.75rem;
    border-radius: 22px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .product-card {
    border-radius: 17px;
  }

  .product-card img {
    height: 100%;
  }

  .product-card .content {
    gap: 0.12rem;
    padding: 0.5rem 0.5rem 0.4rem;
  }

  .product-card-actions {
    padding: 0;
  }

  .product-name {
    min-height: 1.3em;
    font-size: 0.9rem;
  }

  .product-brand {
    min-height: 1.05em;
    font-size: 0.78rem;
  }

  .product-price-block {
    gap: 0.02rem;
  }

  .product-card-meta {
    grid-template-columns: auto auto auto;
    gap: 0.18rem;
    justify-content: center;
    min-height: 1.34rem;
  }

  .product-volume,
  .product-category {
    max-width: 4.9rem;
    padding: 0.2rem 0.28rem;
    font-size: 0.62rem;
  }

  .promotion-countdown {
    padding: 0.34rem 0.36rem;
    border-radius: 13px;
  }

  .promotion-countdown-label {
    font-size: 0.58rem;
  }

  .promotion-countdown strong {
    gap: 0.16rem;
    font-size: 0.66rem;
    letter-spacing: -0.01em;
  }

  .promotion-countdown strong::before {
    width: 0.3rem;
    height: 0.3rem;
    box-shadow: 0 0 0 2px rgba(47, 125, 85, 0.1);
  }

  .promotion-countdown.is-urgent strong::before {
    box-shadow: 0 0 0 2px rgba(182, 58, 58, 0.1);
  }

  .product-card .btn {
    width: 100%;
    min-height: 45px;
    padding: 0.58rem 0.45rem;
    border-radius: 0;
    font-size: 0.78rem;
  }

  .price {
    font-size: 0.78rem;
  }

  .meta {
    font-size: 0.82rem;
  }

  .stock-pill {
    font-size: 0.76rem;
  }

  .promotion-preview,
  .promotion-date-grid {
    grid-template-columns: 1fr;
  }

  .promotion-preview {
    display: grid;
  }

  .promotion-search-result,
  .selected-promotion-product {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 0.45rem;
    padding: 0.45rem;
  }

  .promotion-search-result img,
  .selected-promotion-product img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }

  .promotion-search-result b {
    font-size: 0.78rem;
  }

  .promotion-list-actions .btn {
    width: 100%;
  }

  .promotion-group-head {
    display: grid;
  }

  .promotion-group-products {
    grid-template-columns: 1fr;
  }

  .checkout-form,
  .cart-panel,
  .admin-form,
  .admin-products-panel {
    border-radius: 18px;
  }

  .admin-page {
    padding-top: 0.8rem;
  }

  .admin-brand {
    align-items: center;
  }

  .admin-logo {
    height: 60px;
    width: 60px;
  }

  .admin-nav {
    position: sticky;
    top: 0.35rem;
    z-index: 20;
    backdrop-filter: blur(9px);
  }

  .admin-nav-link {
    min-height: 42px;
    padding: 0.55rem 0.9rem;
    font-size: 0.9rem;
  }

  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .admin-stats article {
    padding: 0.75rem;
  }

  .admin-stats strong {
    font-size: 1.35rem;
  }

  .localized-field-grid {
    grid-template-columns: 1fr;
  }

  .admin-product-main {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .admin-product-thumb {
    width: 64px;
    height: 64px;
  }

  .order-head {
    display: grid;
  }

  .order-status-wrap {
    min-width: 0;
  }
}

@media (max-width: 420px) {
  :root {
    --topbar-offset: 66px;
  }

  .storefront-body .topbar {
    width: 100%;
    max-width: none;
    gap: 0.3rem;
    padding: 0.48rem 0.52rem;
    border-radius: 0;
  }

  .brand img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .storefront-body .topbar.is-at-top .brand img {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .product-detail-image {
    aspect-ratio: 1 / 1;
    border-radius: 20px;
  }

  .product-detail-image img {
    padding: 0.72rem;
  }

  .product-detail-card {
    padding: 0.8rem;
    border-radius: 19px;
  }

  .product-detail-card h1 {
    font-size: clamp(1.8rem, 11vw, 2.35rem);
  }

  .product-detail-facts,
  .product-detail-assurance {
    gap: 0.3rem;
  }

  .product-detail-facts span {
    min-height: 54px;
    padding: 0.4rem 0.2rem;
    font-size: 0.7rem;
  }

  .product-detail-assurance span {
    font-size: 0.66rem;
  }

  .hero-search {
    grid-template-columns: 1fr;
  }

  .hero-search input,
  .hero-search select,
  html[dir="ltr"] .hero-search input,
  html[dir="ltr"] .hero-search select {
    grid-column: 1;
    grid-row: auto;
  }
  .topbar-links {
    grid-template-columns: 1fr 1fr;
  }

  .topbar-links a:last-child {
    grid-column: auto;
  }

  .lang-btn {
    padding: 0.35rem 0.43rem;
    font-size: 0.74rem;
  }

  .cart-shortcut {
    width: 56px;
    min-height: 40px;
  }

  .mobile-menu-toggle {
    width: 42px;
    min-width: 42px;
    min-height: 40px;
  }

  .mobile-menu-toggle::before {
    font-size: 1.08rem;
  }

  .product-card img {
    height: 100%;
  }

  .product-name {
    font-size: 0.9rem;
  }

  .cart-item-head {
    display: grid;
  }
}

@media (max-width: 360px) {
  .lang-btn {
    width: 36px;
    padding-inline: 0;
    font-size: 0;
  }

  .lang-btn::after {
    font-size: 0.72rem;
  }

  .lang-btn[data-lang="ar"]::after {
    content: "AR";
  }

  .lang-btn[data-lang="fr"]::after {
    content: "FR";
  }
}
