:root {
  --bg: #fff7f4;
  --surface: #ffffff;
  --surface-2: #fff2ea;
  --surface-3: #fdf4ff;
  --text: #2b2330;
  --muted: #7d7185;
  --line: #f1ddd4;
  --orange: #ff6a00;
  --orange-2: #ff8a1d;
  --red: #ff445d;
  --purple: #7b4dff;
  --pink: #ff4ea3;
  --violet: #9f52ff;
  --green: #27c38b;
  --dark: #241a29;
  --shadow-lg: 0 22px 60px rgba(131, 62, 41, .14);
  --shadow-md: 0 12px 30px rgba(136, 69, 46, .11);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Vazirmatn", sans-serif;
  background: linear-gradient(180deg, #fff8f2 0%, #fff7fb 46%, #fff7f4 100%);
  color: var(--text);
  overflow-x: hidden;
  padding-bottom: 102px;
}
a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }
button { cursor: pointer; }
.container { width: min(1180px, calc(100% - 28px)); margin: 0 auto; }

.topbar {
  background: linear-gradient(90deg, var(--orange), var(--red), var(--purple));
  color: #fff;
  font-size: 12px;
}
.topbar__inner {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar__notice,
.topbar__links { display: flex; align-items: center; gap: 16px; }
.topbar__notice i { font-size: 14px; }
.topbar__links a { opacity: .92; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(18px);
  background: rgba(255, 250, 247, .86);
  border-bottom: 1px solid rgba(255, 130, 74, .08);
}
.header-main {
  min-height: 84px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 14px;
  align-items: center;
}
.mobile-menu-btn {
  width: 48px;
  height: 48px;
  border: 0;
  display: none;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  color: var(--orange);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand__logo {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: #fff;
  box-shadow: 0 14px 30px rgba(255, 90, 59, .28);
  font-size: 21px;
}
.brand__text strong {
  display: block;
  font-size: 18px;
  letter-spacing: .4px;
}
.brand__text small { color: var(--muted); font-size: 12px; }

.header-search {
  height: 56px;
  background: var(--surface);
  border: 1px solid #f8dacd;
  border-radius: 22px;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  box-shadow: var(--shadow-md);
}
.header-search i { color: var(--muted); }
.header-search input {
  border: 0;
  background: transparent;
  outline: 0;
  width: 100%;
  font-size: 14px;
  color: var(--text);
}
.search-category {
  min-height: 40px;
  padding: 0 15px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff2eb, #fcefff);
  color: var(--text);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.circle-action {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  border: 0;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  position: relative;
  font-size: 18px;
  color: var(--dark);
}
.badge {
  position: absolute;
  top: -5px;
  left: -2px;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  border: 2px solid #fff;
}

.nav-row {
  min-height: 62px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
}
.all-categories,
.header-promo-pill {
  min-height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.all-categories {
  padding: 0 16px;
  border: 0;
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: #fff;
  box-shadow: 0 14px 32px rgba(255, 102, 0, .28);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.main-nav a {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  color: #53475b;
  font-size: 13px;
}
.main-nav a.active,
.main-nav a:hover { background: #fff; box-shadow: var(--shadow-md); color: var(--dark); }
.header-promo-pill {
  padding: 0 16px;
  background: linear-gradient(135deg, #f5ecff, #ffe8f0);
  color: var(--purple);
  font-size: 12px;
  font-weight: 700;
}

.mega-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .32s ease;
}
.mega-menu.open { max-height: 460px; }
.mega-grid {
  background: #fff;
  border: 1px solid #f5d9cd;
  box-shadow: var(--shadow-lg);
  border-radius: 28px;
  padding: 18px;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 16px;
  margin-bottom: 14px;
}
.mega-sidebar {
  background: linear-gradient(180deg, #fff4eb, #fff6fa);
  border-radius: 24px;
  padding: 10px;
  display: grid;
  gap: 10px;
}
.mega-side-item {
  min-height: 54px;
  border-radius: 18px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #4e4354;
}
.mega-side-item span { display: inline-flex; align-items: center; gap: 10px; }
.mega-side-item.active,
.mega-side-item:hover {
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: #fff;
}
.mega-content {
  background: #fffaf8;
  border-radius: 24px;
  padding: 16px;
  min-height: 280px;
}
.mega-panel { display: none; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mega-panel.active { display: grid; }
.mega-column h4,
.mega-promo strong { margin: 0 0 14px; font-size: 16px; }
.mega-column a,
.mega-promo p,
.mega-promo span { display: block; margin-bottom: 10px; color: var(--muted); font-size: 13px; }
.mega-promo {
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(123, 77, 255, .09), rgba(255, 98, 72, .11));
}
.mega-promo a { color: var(--orange); font-weight: 800; }

/* Desktop hover bridge: the last category must remain reachable while the
   pointer crosses the small gap between the trigger/sidebar and the panel. */
@media (min-width: 901px) {
  .mega-menu { position: relative; z-index: 80; }
  .mega-menu.open { max-height: 760px; overflow: visible; }
  .mega-menu.open::before { content: ""; position: absolute; right: 0; left: 0; top: -14px; height: 18px; }
  .mega-grid { position: relative; z-index: 1; }
  .mega-sidebar { align-content: start; min-height: 280px; }
  .mega-side-item { position: relative; z-index: 2; }
}

.sticky-categories {
  padding: 0 0 12px;
  transition: padding .25s ease, box-shadow .25s ease;
}
.sticky-categories__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 0 2px;
  scrollbar-width: none;
}
.sticky-categories__track::-webkit-scrollbar { display: none; }
.sticky-cat {
  min-width: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(255, 128, 76, .12);
  transition: .24s ease;
  flex-shrink: 0;
}
.sticky-cat:hover,
.sticky-cat.active { background: #fff; box-shadow: var(--shadow-md); }
.sticky-cat__icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 20px;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  transition: .24s ease;
}
.sticky-cat__label {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: .24s ease;
}
body.scrolled-cats .sticky-categories {
  padding-bottom: 8px;
  box-shadow: 0 10px 28px rgba(0,0,0,.04);
}
body.scrolled-cats .sticky-cat {
  min-width: auto;
  flex-direction: row;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 16px;
}
body.scrolled-cats .sticky-cat__icon {
  width: 0;
  opacity: 0;
  transform: scale(.4);
  margin: 0;
  overflow: hidden;
}
body.scrolled-cats .sticky-cat__label { font-size: 13px; }

.hero-compact { padding: 28px 0 16px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr .95fr;
  gap: 18px;
}
.hero-card,
.mini-promo,
.offer-banner,
.custom-order-card,
.guide-panel,
.article-card,
.product-card,
.circle-card,
.round-cat,
.footer-grid > div {
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255, 134, 79, .12);
  box-shadow: var(--shadow-md);
}
.hero-card--main {
  padding: 34px;
  border-radius: 34px;
  background: linear-gradient(135deg, #ffffff 0%, #fff7ee 55%, #f9f0ff 100%);
  position: relative;
  overflow: hidden;
}
.hero-card--main::before,
.hero-card--main::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
}
.hero-card--main::before {
  width: 220px;
  height: 220px;
  left: -50px;
  top: -50px;
  background: rgba(255, 112, 48, .10);
}
.hero-card--main::after {
  width: 180px;
  height: 180px;
  left: 70px;
  bottom: -60px;
  background: rgba(130, 86, 255, .12);
}
.hero-kicker,
.section-badge,
.product-chip,
.block-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.hero-kicker,
.section-badge { background: #fff; color: var(--orange); border: 1px solid #ffe2d3; }
.section-badge.bright { background: rgba(255,255,255,.24); color: #fff; border-color: rgba(255,255,255,.28); }
.hero-card h1 { font-size: clamp(28px, 3vw, 46px); line-height: 1.25; margin: 18px 0 12px; }
.hero-card p { margin: 0; color: var(--muted); line-height: 1.9; font-size: 14px; max-width: 90%; }
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.btn {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  font-weight: 800;
  font-size: 13px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: #fff;
  box-shadow: 0 14px 28px rgba(255, 102, 0, .25);
}
.btn-secondary { background: #fff; color: var(--purple); }
.btn-light { background: rgba(255,255,255,.2); color: #fff; border: 1px solid rgba(255,255,255,.32); }
.btn-white { background: #fff; color: var(--dark); }
.btn.full { width: 100%; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 28px;
}
.hero-stats strong { display: block; font-size: 22px; }
.hero-stats span { display: block; color: var(--muted); font-size: 12px; }
.hero-side-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.mini-promo {
  border-radius: 28px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  min-height: 180px;
}
.mini-promo.wide { grid-column: 1 / -1; min-height: 160px; }
.mini-promo span { display: block; color: rgba(255,255,255,.78); font-size: 12px; margin-bottom: 12px; }
.mini-promo strong { color: #fff; font-size: 20px; line-height: 1.55; max-width: 78%; display: block; }
.mini-promo i {
  position: absolute;
  left: 22px;
  bottom: 18px;
  font-size: 52px;
  color: rgba(255,255,255,.28);
}
.promo-orange { background: linear-gradient(135deg, var(--orange), #ff9650); }
.promo-purple { background: linear-gradient(135deg, var(--purple), #9d66ff); }
.promo-red { background: linear-gradient(135deg, var(--red), #ff7d50); }

.quick-circles-section,
.special-offers,
.products-section,
.icon-categories-section,
.custom-order-section,
.articles-section,
.guides-section { padding: 24px 0; }
.section-head,
.section-head--simple {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.section-head h2,
.section-head--simple h2,
.custom-order-card h2,
.guide-panel h3 { margin: 10px 0 0; font-size: 28px; }
.carousel-controls { display: flex; gap: 8px; }
.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  border: 0;
  background: #fff;
  box-shadow: var(--shadow-md);
  color: var(--dark);
}

.quick-circles,
.products-carousel,
.round-categories,
.articles-carousel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  cursor: grab;
}
.quick-circles.dragging,
.products-carousel.dragging,
.round-categories.dragging,
.articles-carousel.dragging,
.sticky-categories__track.dragging { cursor: grabbing; }
.quick-circles::-webkit-scrollbar,
.products-carousel::-webkit-scrollbar,
.round-categories::-webkit-scrollbar,
.articles-carousel::-webkit-scrollbar { display: none; }
.circle-card {
  flex: 0 0 170px;
  border-radius: 28px;
  padding: 16px 14px;
  text-align: center;
}
.circle-card__media {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 32px;
}
.circle-card strong { display: block; font-size: 15px; }
.circle-card small { display: block; margin-top: 7px; color: var(--muted); line-height: 1.7; }

.offers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.offer-banner {
  min-height: 230px;
  border-radius: 34px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  overflow: hidden;
}
.offer-copy { max-width: 58%; }
.offer-copy span { color: rgba(43, 35, 48, .65); font-size: 12px; }
.offer-copy h3 { font-size: 29px; line-height: 1.45; margin: 10px 0 16px; }
.btn-inline {
  min-width: 112px;
  min-height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  color: #fff;
  font-weight: 700;
}
.btn-inline.light { background: #fff; color: var(--red); }
.banner-olive { background: linear-gradient(135deg, #dff0b3, #c6e66f); }
.banner-red { background: linear-gradient(135deg, #ff3a48, #ff6a52); color: #fff; }
.banner-red .offer-copy span { color: rgba(255,255,255,.8); }
.banner-red .offer-copy h3 { color: #fff; }
.offer-figure { display: flex; align-items: center; gap: 12px; }
.fake-pack {
  width: 120px;
  height: 150px;
  border-radius: 26px;
  background: linear-gradient(180deg, #fff, rgba(255,255,255,.62));
  box-shadow: 0 18px 32px rgba(92, 103, 50, .18);
}
.fake-pack.small { width: 74px; height: 110px; margin-top: 30px; }
.figure-tools { font-size: 62px; color: rgba(255,255,255,.88); display: flex; gap: 18px; }

.vibrant-card {
  flex: 0 0 290px;
  border-radius: 30px;
  overflow: hidden;
}
.product-card__media {
  height: 180px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-icon { font-size: 66px; color: rgba(255,255,255,.94); }
.shade-1 { background: linear-gradient(135deg, var(--orange), #ff9c48); }
.shade-2 { background: linear-gradient(135deg, var(--purple), #9b73ff); }
.shade-3 { background: linear-gradient(135deg, var(--red), #ff7d74); }
.shade-4 { background: linear-gradient(135deg, #ff8a1d, #ff4ea3); }
.shade-5 { background: linear-gradient(135deg, #6c63ff, #b35dff); }
.product-chip {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255,255,255,.2);
  color: #fff;
  backdrop-filter: blur(8px);
}
.product-chip.alt { background: rgba(255,255,255,.85); color: var(--purple); }
.product-chip.danger { background: rgba(34, 22, 35, .18); }
.wishlist-btn {
  position: absolute;
  left: 14px;
  top: 14px;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  border: 0;
  background: rgba(255,255,255,.22);
  color: #fff;
}
.product-card__body { padding: 18px 18px 20px; }
.meta { color: var(--muted); font-size: 12px; }
.product-card__body h3 { margin: 10px 0 10px; font-size: 18px; }
.product-card__body p { margin: 0; color: var(--muted); line-height: 1.85; font-size: 12px; min-height: 44px; }
.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}
.price strong { display: block; font-size: 18px; }
.price span { color: var(--muted); font-size: 12px; }
.mini-add {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 0;
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: #fff;
}
.progress-line {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #f8e5dc;
  margin-top: 16px;
  overflow: hidden;
}
.progress-line span {
  display: block;
  width: 28%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), var(--purple));
  transform-origin: right center;
  transition: transform .12s linear, width .12s linear;
}

.round-categories { padding-top: 6px; }
.round-cat {
  flex: 0 0 150px;
  text-align: center;
  padding: 14px 10px 18px;
  border-radius: 26px;
}
.round-cat__media {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  font-size: 38px;
  color: #5a5162;
}
.round-cat strong { display: block; font-size: 14px; line-height: 1.6; }
.soft-blue { background: #e9f4ff; }
.soft-red { background: #ffe8ee; }
.soft-cream { background: #fff2d8; }
.soft-purple { background: #efe7ff; }
.soft-green { background: #e4f7ef; }
.soft-orange { background: #ffefd8; }

.custom-order-grid {
  display: grid;
  grid-template-columns: 1.2fr .9fr;
  gap: 16px;
}
.custom-order-card {
  padding: 30px;
  border-radius: 34px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff;
}
.custom-order-card p { line-height: 1.95; color: rgba(255,255,255,.84); }
.custom-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.custom-list li { display: flex; align-items: center; gap: 10px; }
.custom-floating-cards {
  display: grid;
  gap: 14px;
}
.floating-order-card {
  border-radius: 28px;
  padding: 22px;
  color: #fff;
  min-height: 132px;
  display: grid;
  align-content: center;
  box-shadow: var(--shadow-md);
}
.floating-order-card i { font-size: 28px; margin-bottom: 12px; }
.floating-order-card strong { font-size: 18px; }
.floating-order-card small { margin-top: 6px; color: rgba(255,255,255,.84); }
.floating-order-card.orange { background: linear-gradient(135deg, var(--orange), #ff9158); }
.floating-order-card.purple { background: linear-gradient(135deg, var(--purple), #9c69ff); }
.floating-order-card.red { background: linear-gradient(135deg, var(--red), #ff7b62); }

.article-card {
  flex: 0 0 280px;
  border-radius: 30px;
  overflow: hidden;
}
.article-card__cover {
  height: 170px;
  display: grid;
  place-items: center;
  font-size: 64px;
  color: rgba(43, 35, 48, .52);
}
.article-card__body { padding: 18px; }
.article-card__body h3 { font-size: 18px; line-height: 1.7; margin: 10px 0 14px; }
.article-link { color: var(--orange); font-weight: 800; font-size: 13px; }
.article-card--peach .article-card__cover { background: #ffe7dd; }
.article-card--lavender .article-card__cover { background: #ece4ff; }
.article-card--pink .article-card__cover { background: #ffe7f1; }
.article-card--orange .article-card__cover { background: #fff0d9; }

.guide-panels {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 16px;
}
.guide-panel {
  border-radius: 32px;
  padding: 26px;
}
.bright-panel {
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: #fff;
}
.bright-panel p { color: rgba(255,255,255,.84); line-height: 1.9; }
.pale-panel {
  background: linear-gradient(135deg, #fff6ec, #fff1f8);
}
.guide-panel__actions { margin-top: 18px; }

.site-footer {
  padding: 20px 0 10px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr .8fr .8fr 1fr;
  gap: 16px;
}
.footer-grid > div {
  border-radius: 28px;
  padding: 22px;
}
.footer-grid p,
.footer-grid a { color: var(--muted); font-size: 13px; line-height: 1.9; }
.footer-grid h4 { margin: 0 0 12px; }
.newsletter {
  display: grid;
  grid-template-columns: 1fr 48px;
  gap: 10px;
  margin-top: 12px;
}
.newsletter input {
  height: 48px;
  border-radius: 16px;
  border: 1px solid #f0dbd0;
  background: #fff;
  padding: 0 14px;
  outline: 0;
}
.newsletter button {
  border-radius: 16px;
  border: 0;
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: #fff;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  padding: 18px 2px 4px;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(35, 20, 27, .35);
  opacity: 0;
  visibility: hidden;
  transition: .25s;
  z-index: 80;
}
.drawer-overlay.show { opacity: 1; visibility: visible; }
.drawer {
  position: fixed;
  top: 0;
  right: -410px;
  width: min(390px, 100%);
  height: 100dvh;
  background: #fff;
  z-index: 82;
  box-shadow: -20px 0 60px rgba(42, 26, 36, .14);
  transition: right .28s ease;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.drawer.open { right: 0; }
.drawer-header,
.drawer-footer { padding: 18px; border-bottom: 1px solid #f3e5dd; }
.drawer-footer { border-bottom: 0; border-top: 1px solid #f3e5dd; }
.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.drawer-header span { display: block; font-size: 19px; font-weight: 800; }
.drawer-header small { color: var(--muted); }
.drawer-close,
.icon-lite {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #fff3ed;
  color: var(--text);
}
.drawer-body { padding: 16px 18px; overflow: auto; }
.drawer-item {
  display: grid;
  grid-template-columns: 60px 1fr 42px;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed #efe0d8;
}
.drawer-thumb {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 24px;
}
    .drawer-thumb img {
        max-width: 100%;
    }
.drawer-info strong { display: block; font-size: 14px; }
.drawer-info span { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; }
.total-box { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-size: 13px; }
.total-box strong { font-size: 16px; }
.drawer-link { color: var(--muted); font-size: 13px; display: inline-block; margin-top: 12px; }
.account-body { display: grid; gap: 24px; }
.auth-block h3 { margin: 10px 0 16px; }
.auth-block label { display: block; font-size: 12px; margin-bottom: 8px; }
.input-shell {
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid #f0dbd0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  margin-bottom: 14px;
}
.input-shell input { flex: 1; border: 0; outline: 0; background: transparent; direction: ltr; text-align: right; }
.logged-block { padding-top: 18px; border-top: 1px dashed #efddd3; }
.user-box { display: flex; align-items: center; gap: 10px; margin: 10px 0 16px; }
.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: #fff;
  font-weight: 800;
}
.user-box small { color: var(--muted); display: block; margin-top: 4px; }
.account-links {
  display: grid;
  border: 1px solid #f0dbd0;
  border-radius: 18px;
  overflow: hidden;
}
.account-links a {
  min-height: 48px;
  padding: 0 14px;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  font-size: 13px;
  border-bottom: 1px solid #f0dbd0;
}
.account-links a:last-child { border-bottom: 0; }

.bottom-dock {
  position: fixed;
  right: 50%;
  transform: translateX(50%);
  bottom: 12px;
  z-index: 70;
  width: min(520px, calc(100% - 18px));
  min-height: 78px;
  background: rgba(255,255,255,.93);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 138, 92, .2);
  border-radius: 28px;
  box-shadow: 0 22px 40px rgba(61, 32, 33, .12);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  padding: 0 8px;
}
.dock-item,
.dock-center {
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 100%;
  color: #918691;
  font-size: 21px;
}
.dock-item span { font-size: 12px; font-weight: 700; }
.dock-item.active,
.dock-item:hover { color: var(--orange); }
.dock-center {
  width: 60px;
  height: 60px;
  justify-self: center;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: #fff;
  position: relative;
  transform: translateY(-18px);
  box-shadow: 0 16px 30px rgba(255, 106, 0, .28);
}
.dock-center .badge { border-color: #fff2ec; }

.grad-orange { background: linear-gradient(135deg, var(--orange), var(--orange-2)); }
.grad-red { background: linear-gradient(135deg, var(--red), #ff7a54); }
.grad-purple { background: linear-gradient(135deg, var(--purple), #9664ff); }
.grad-pink { background: linear-gradient(135deg, var(--pink), #ff7ba0); }
.grad-violet { background: linear-gradient(135deg, var(--violet), #c15dff); }

@media (min-width: 1100px) {
  .bottom-dock { width: 420px; }
}

@media (max-width: 1100px) {
  .hero-grid,
  .custom-order-grid,
  .guide-panels,
  .offers-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .hero-side-grid { grid-template-columns: 1fr 1fr; }
  .offer-copy { max-width: 100%; }
}

@media (max-width: 920px) {
  .topbar__links { display: none; }
  .mobile-menu-btn { display: inline-grid; place-items: center; }
  .header-main { grid-template-columns: auto auto 1fr auto; }
  .nav-row { grid-template-columns: auto 1fr; }
  .header-promo-pill { display: none; }
  .main-nav { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { white-space: nowrap; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 760px) {
  body { padding-bottom: 94px; }
  .container { width: min(100% - 18px, 1180px); }
  .topbar { display: none; }
  .header-main { padding: 10px 0 8px; min-height: auto; grid-template-columns: auto 1fr auto; gap: 10px; }
  .brand__text small { display: none; }
  .brand__logo { width: 46px; height: 46px; border-radius: 16px; }
  .brand__text strong { font-size: 16px; }
  .header-search { grid-column: 1 / -1; order: 5; height: 52px; }
  .search-category { display: none; }
  .circle-action { width: 46px; height: 46px; border-radius: 16px; }
  .nav-row { display: none; }
  .mega-grid { grid-template-columns: 1fr; }
  .mega-panel.active,
  .mega-panel { grid-template-columns: 1fr; }
  .sticky-categories { padding-bottom: 10px; }
  .sticky-cat { min-width: 86px; }
  .sticky-cat__icon { width: 50px; height: 50px; border-radius: 16px; }
  .hero-compact { padding-top: 18px; }
  .hero-card--main { padding: 24px; border-radius: 28px; }
  .hero-card p { max-width: 100%; }
  .hero-side-grid { grid-template-columns: 1fr; }
  .mini-promo, .mini-promo.wide { min-height: 150px; }
  .section-head h2,
  .section-head--simple h2,
  .custom-order-card h2,
  .guide-panel h3 { font-size: 22px; }
  .circle-card { flex-basis: 155px; }
  .offer-banner { min-height: 200px; flex-direction: column; align-items: flex-start; }
  .product-card__body h3,
  .article-card__body h3 { font-size: 17px; }
  .vibrant-card,
  .article-card { flex-basis: 83%; }
  .round-cat { flex-basis: 135px; }
  .custom-order-card, .guide-panel { border-radius: 26px; padding: 22px; }
  .floating-order-card { min-height: 120px; }
  .footer-grid > div { border-radius: 24px; }
  .bottom-dock { width: calc(100% - 12px); border-radius: 24px; }
}

@media (max-width: 460px) {
  .brand__text strong { font-size: 14px; }
  .header-main { grid-template-columns: auto 1fr auto; }
  .header-actions { gap: 8px; }
  .sticky-categories__track { gap: 10px; }
  .sticky-cat { min-width: 80px; padding: 8px 8px; }
  .sticky-cat__label { font-size: 12px; }
  .hero-card h1 { font-size: 26px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { gap: 18px; }
  .offer-copy h3 { font-size: 22px; }
  .circle-card { flex-basis: 145px; }
  .round-cat { flex-basis: 128px; }
  .bottom-dock { min-height: 74px; }
  .dock-item { font-size: 19px; }
  .dock-item span { font-size: 12px; }
}

/* =========================================================
   V3 INDUSTRIAL REFINEMENT
   هدف: پالت صنعتی، هدر کوتاه‌تر، دسته‌بندی پایدار و موبایل تمیزتر
   ========================================================= */
:root {
  --bg: #f4f5f5;
  --surface: #ffffff;
  --surface-2: #eef1f2;
  --surface-3: #f2f4f5;
  --text: #202a32;
  --muted: #6d7880;
  --line: #dfe4e7;
  --orange: #d86a2f;
  --orange-2: #e28a54;
  --red: #a84f3b;
  --purple: #405b70;
  --pink: #7d665d;
  --violet: #587186;
  --green: #507b6c;
  --dark: #19232d;
  --shadow-lg: 0 18px 46px rgba(25, 35, 45, .12);
  --shadow-md: 0 8px 22px rgba(25, 35, 45, .08);
}

body {
  background: linear-gradient(180deg, #f7f8f8 0%, #f3f5f6 54%, #f7f7f6 100%);
  padding-bottom: 0;
}

.topbar {
  background: linear-gradient(90deg, #17232c, #263846 58%, #354c5d);
}

.site-header {
  background: rgba(247, 248, 248, .94);
  border-bottom-color: rgba(25, 35, 45, .08);
}

.header-main {
  min-height: 68px;
  gap: 10px;
}

.brand__logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #223440, #405b70);
  box-shadow: 0 9px 20px rgba(25, 35, 45, .18);
  font-size: 18px;
}

.brand__text strong { font-size: 16px; }
.brand__text small { font-size: 12px; }

.header-search {
  height: 46px;
  border-radius: 15px;
  border-color: #dce2e5;
  box-shadow: none;
  position: relative;
  overflow: visible;
  background: #fff;
}

.search-category-wrap { position: relative; }

.search-category {
  min-height: 34px;
  padding: 0 11px;
  border-radius: 10px;
  background: #eef1f3;
  color: #2f3c46;
}

.search-category-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 190px;
  background: #fff;
  border: 1px solid #dfe4e7;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 7px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: .18s ease;
  z-index: 90;
}

.search-category-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.search-category-menu button {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  padding: 0 11px;
  text-align: right;
  font-size: 12px;
}
.search-category-menu button:hover { background: #f0f3f4; color: var(--orange); }

.circle-action {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  box-shadow: none;
  border: 1px solid #dfe4e7;
}

.nav-row { min-height: 50px; }
.all-categories,
.header-promo-pill { min-height: 38px; border-radius: 12px; }
.all-categories {
  background: linear-gradient(135deg, #253946, #3f5d72);
  box-shadow: none;
  padding: 0 13px;
}
.header-promo-pill {
  background: #f1ece8;
  color: #9b5738;
}
.main-nav a { min-height: 36px; padding: 0 11px; border-radius: 10px; }

/* shorter category carousel */
.sticky-categories { padding: 0 0 7px; }
.sticky-categories__track { gap: 8px; padding: 2px 0; }
.sticky-cat {
  min-width: 82px;
  gap: 5px;
  padding: 5px 7px;
  border-radius: 14px;
  border-color: #e0e5e7;
  background: rgba(255,255,255,.82);
}
.sticky-cat__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 15px;
  box-shadow: none;
}
.sticky-cat__label { font-size: 12px; }

/* Stable collapsed state. JS uses hysteresis so this never chatters near the trigger. */
body.scrolled-cats .sticky-categories { padding-bottom: 5px; }
body.scrolled-cats .sticky-cat {
  min-width: auto;
  min-height: 32px;
  gap: 0;
  padding: 4px 10px;
  border-radius: 10px;
}
body.scrolled-cats .sticky-cat__icon {
  width: 0;
  height: 0;
  opacity: 0;
  transform: none;
  margin: 0;
}
body.scrolled-cats .sticky-cat__label { font-size: 12px; }

/* Industrial palette on decorative blocks */
.promo-orange { background: linear-gradient(135deg, #b45f34, #d9844e); }
.promo-purple { background: linear-gradient(135deg, #314b5c, #526f82); }
.promo-red { background: linear-gradient(135deg, #7f4437, #ad5d46); }
.banner-olive { background: linear-gradient(135deg, #dfe5df, #cfd9d2); }
.banner-red { background: linear-gradient(135deg, #824538, #a85c45); }
.custom-order-card { background: linear-gradient(135deg, #263d4d, #526978); }
.floating-order-card.orange { background: linear-gradient(135deg, #a75b35, #ca7849); }
.floating-order-card.purple { background: linear-gradient(135deg, #344e60, #587285); }
.floating-order-card.red { background: linear-gradient(135deg, #75433a, #9f5946); }
.bright-panel { background: linear-gradient(135deg, #263b49, #526b7d); }
.btn-primary,
.mini-add {
  background: linear-gradient(135deg, #bd6234, #d47b4c);
  box-shadow: none;
}
.grad-orange { background: linear-gradient(135deg, #b86235, #d68250); }
.grad-red { background: linear-gradient(135deg, #82463a, #ad6048); }
.grad-purple { background: linear-gradient(135deg, #324c5e, #587286); }
.grad-pink { background: linear-gradient(135deg, #6d5a53, #8e7368); }
.grad-violet { background: linear-gradient(135deg, #496476, #6e8798); }
.shade-1 { background: linear-gradient(135deg, #a75a33, #c5794d); }
.shade-2 { background: linear-gradient(135deg, #334d5f, #607b8e); }
.shade-3 { background: linear-gradient(135deg, #7f463a, #ad6552); }
.shade-4 { background: linear-gradient(135deg, #8c684f, #6a5960); }
.shade-5 { background: linear-gradient(135deg, #40596a, #6a7e8b); }
.progress-line span { background: linear-gradient(90deg, #bd6234, #405b70); }

/* desktop must not have mobile bottom nav */
.bottom-dock { display: none; }

@media (max-width: 760px) {
  body { padding-bottom: 68px; }

  .header-main {
    min-height: auto;
    padding: 7px 0 7px;
    grid-template-columns: auto 1fr;
    gap: 8px;
  }

  .mobile-menu-btn {
    display: inline-grid;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    box-shadow: none;
    border: 1px solid #dfe4e7;
    color: #344d5f;
  }

  .brand { justify-self: start; }
  .brand__logo { width: 40px; height: 40px; border-radius: 12px; }

  /* User/cart are already present in the bottom bar on mobile. */
  .header-actions { display: none !important; }

  .header-search {
    grid-column: 1 / -1;
    height: 43px;
    margin-top: 0;
    padding: 0 11px;
    grid-template-columns: 20px 1fr auto;
  }
  .search-category { display: inline-flex; min-height: 31px; padding: 0 8px; font-size: 12px; }
  .search-category-menu { min-width: 165px; }

  .sticky-categories { padding-bottom: 5px; }
  .sticky-cat { min-width: 73px; padding: 4px 5px; border-radius: 12px; }
  .sticky-cat__icon { width: 35px; height: 35px; border-radius: 10px; font-size: 13px; }
  .sticky-cat__label { font-size: 12px; }
  body.scrolled-cats .sticky-cat { min-height: 30px; padding: 3px 8px; }
  body.scrolled-cats .sticky-cat__label { font-size: 12px; }

  /* Mobile mega menu: scrollable and complete instead of being clipped at 460px. */
  .mega-menu {
    max-height: 0;
    overflow: hidden;
  }
  .mega-menu.open {
    max-height: calc(100dvh - 118px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .mega-grid {
    width: 100%;
    margin: 0;
    padding: 9px;
    border-radius: 0 0 18px 18px;
    grid-template-columns: 1fr;
    gap: 9px;
    box-shadow: 0 15px 30px rgba(25,35,45,.12);
  }
  .mega-sidebar {
    display: flex;
    overflow-x: auto;
    gap: 7px;
    padding: 7px;
    border-radius: 14px;
    scrollbar-width: none;
  }
  .mega-sidebar::-webkit-scrollbar { display: none; }
  .mega-side-item {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 12px;
  }
  .mega-side-item > i:last-child { display: none; }
  .mega-content { min-height: 0; padding: 11px; border-radius: 14px; }
  .mega-panel,
  .mega-panel.active { grid-template-columns: 1fr; gap: 10px; }
  .mega-column {
    padding: 4px 2px 8px;
    border-bottom: 1px solid #e8ecee;
  }
  .mega-column:last-child { border-bottom: 0; }
  .mega-column h4 { margin-bottom: 8px; }
  .mega-column a { margin-bottom: 7px; font-size: 12px; }
  .mega-promo { padding: 14px; border-radius: 14px; }

  /* mobile bottom bar is flush with viewport edge */
  .bottom-dock {
    display: grid;
    right: 0;
    transform: none;
    bottom: 0;
    width: 100%;
    min-height: 64px;
    border-radius: 18px 18px 0 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    padding: 0 5px;
    box-shadow: 0 -8px 25px rgba(25,35,45,.09);
  }
  .dock-center {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    transform: translateY(-10px);
    background: linear-gradient(135deg, #263d4d, #4d697d);
    box-shadow: 0 9px 22px rgba(25,35,45,.2);
  }
  .dock-item { font-size: 18px; gap: 3px; }
  .dock-item span { font-size: 12px; }
}

@media (max-width: 460px) {
  .brand__text small { display: none; }
  .header-search { height: 41px; }
  .search-category span { max-width: 62px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sticky-categories__track { gap: 6px; }
  .sticky-cat { min-width: 69px; }
}

/* =========================================================
   V4 COMPACT LAYOUT
   The homepage keeps the same structure, but uses less vertical
   space so more useful content is visible above the fold.
   ========================================================= */

.hero-compact { padding: 18px 0 10px; }
.hero-card--main { padding: 26px; border-radius: 26px; }
.hero-card h1 { font-size: clamp(27px, 2.55vw, 39px); margin: 13px 0 8px; line-height: 1.22; }
.hero-card p { line-height: 1.75; font-size: 13px; }
.hero-actions { margin-top: 16px; gap: 9px; }
.btn { min-height: 43px; padding: 0 15px; border-radius: 13px; }
.hero-stats { margin-top: 20px; gap: 22px; }
.hero-stats strong { font-size: 19px; }
.hero-side-grid { gap: 12px; }
.mini-promo { min-height: 145px; padding: 19px; border-radius: 22px; }
.mini-promo.wide { min-height: 126px; }
.mini-promo strong { font-size: 17px; line-height: 1.45; }
.mini-promo span { margin-bottom: 8px; }
.mini-promo i { font-size: 42px; left: 17px; bottom: 14px; }

.quick-circles-section,
.special-offers,
.products-section,
.compact-products-section,
.icon-categories-section,
.custom-order-section,
.articles-section,
.guides-section { padding: 15px 0; }

.section-head,
.section-head--simple { margin-bottom: 13px; }
.section-head h2,
.section-head--simple h2,
.custom-order-card h2,
.guide-panel h3 { font-size: 23px; margin-top: 7px; }
.section-badge,
.hero-kicker { min-height: 26px; padding: 0 10px; font-size: 12px; }
.carousel-btn { width: 38px; height: 38px; border-radius: 12px; }

.circle-card { flex-basis: 145px; padding: 12px 10px; border-radius: 22px; }
.circle-card__media { width: 72px; height: 72px; margin-bottom: 10px; font-size: 26px; }
.circle-card strong { font-size: 13px; }
.circle-card small { margin-top: 4px; font-size: 12px; }

.offers-grid { gap: 12px; }
.offer-banner { min-height: 180px; padding: 19px; border-radius: 26px; }
.offer-copy h3 { font-size: 23px; margin: 7px 0 12px; line-height: 1.4; }
.btn-inline { min-width: 98px; min-height: 37px; font-size: 12px; }
.fake-pack { width: 96px; height: 122px; border-radius: 21px; }
.fake-pack.small { width: 62px; height: 90px; margin-top: 22px; }
.figure-tools { font-size: 49px; }

.vibrant-card { flex-basis: 252px; border-radius: 23px; }
.product-card__media { height: 145px; }
.product-icon { font-size: 54px; }
.product-card__body { padding: 13px 14px 15px; }
.product-card__body h3 { font-size: 15px; margin: 7px 0; }
.product-card__body p { line-height: 1.65; font-size: 12px; min-height: 34px; }
.product-bottom { margin-top: 11px; }
.price strong { font-size: 15px; }
.mini-add { width: 37px; height: 37px; border-radius: 11px; }
.progress-line { height: 6px; margin-top: 11px; }

.round-cat { flex-basis: 125px; padding: 10px 8px 13px; border-radius: 21px; }
.round-cat__media { width: 84px; height: 84px; margin-bottom: 8px; font-size: 31px; }
.round-cat strong { font-size: 12px; }

.custom-order-grid { gap: 12px; }
.custom-order-card { padding: 23px; border-radius: 26px; }
.custom-order-card p { line-height: 1.72; font-size: 12.5px; }
.custom-list { margin-top: 13px; gap: 8px; font-size: 12px; }
.floating-order-card { min-height: 101px; padding: 16px 18px; border-radius: 21px; }
.floating-order-card i { font-size: 23px; margin-bottom: 7px; }
.floating-order-card strong { font-size: 15px; }

.article-card { flex-basis: 245px; border-radius: 23px; }
.article-card__cover { height: 132px; font-size: 50px; }
.article-card__body { padding: 13px 14px 15px; }
.article-card__body h3 { font-size: 15px; line-height: 1.6; margin: 7px 0 10px; }
.article-link { font-size: 12px; }

.guide-panels { gap: 12px; }
.guide-panel { padding: 20px; border-radius: 25px; }
.bright-panel p { line-height: 1.7; font-size: 12px; }
.guide-panel__actions { margin-top: 12px; }

.site-footer { padding-top: 12px; }
.footer-grid { gap: 12px; }
.footer-grid > div { padding: 18px; border-radius: 22px; }
.footer-grid p,
.footer-grid a { font-size: 12px; line-height: 1.75; }
.footer-bottom { padding-top: 12px; }

/* New compact horizontal product carousel */
.compact-head { margin-bottom: 12px; }
.compact-products-carousel {
  display: flex;
  gap: 11px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  cursor: grab;
  padding: 2px 0 4px;
}
.compact-products-carousel::-webkit-scrollbar { display: none; }
.compact-products-carousel.dragging { cursor: grabbing; }
.compact-product-card {
  flex: 0 0 330px;
  min-height: 126px;
  display: grid;
  grid-template-columns: 108px 1fr;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.compact-product-media {
  display: grid;
  place-items: center;
  font-size: 38px;
  color: rgba(255,255,255,.9);
}
.compact-product-media.steel { background: linear-gradient(145deg, #445d6d, #6f8795); }
.compact-product-media.copper { background: linear-gradient(145deg, #9d5939, #c77b50); }
.compact-product-media.slate { background: linear-gradient(145deg, #33434d, #566b77); }
.compact-product-media.rust { background: linear-gradient(145deg, #75463a, #9e6150); }
.compact-product-media.blue { background: linear-gradient(145deg, #315568, #4f778b); }
.compact-product-info { padding: 12px 13px; display: flex; flex-direction: column; justify-content: center; }
.compact-product-info > span { font-size: 12px; color: var(--muted); }
.compact-product-info h3 { margin: 5px 0 11px; font-size: 13.5px; line-height: 1.55; }
.compact-product-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.compact-product-footer strong { font-size: 12px; }
.compact-add {
  width: 33px;
  height: 33px;
  border: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #eef1f3;
  color: #344d5f;
}

@media (max-width: 760px) {
  .hero-compact { padding-top: 12px; }
  .hero-card--main { padding: 19px; border-radius: 22px; }
  .hero-card h1 { font-size: 24px; }
  .hero-actions { margin-top: 13px; }
  .hero-stats { margin-top: 16px; gap: 14px; }
  .hero-side-grid { gap: 9px; }
  .mini-promo,
  .mini-promo.wide { min-height: 116px; padding: 16px; border-radius: 19px; }
  .mini-promo strong { font-size: 15px; max-width: 84%; }

  .quick-circles-section,
  .special-offers,
  .products-section,
  .compact-products-section,
  .icon-categories-section,
  .custom-order-section,
  .articles-section,
  .guides-section { padding: 11px 0; }

  .section-head h2,
  .section-head--simple h2,
  .custom-order-card h2,
  .guide-panel h3 { font-size: 19px; }
  .circle-card { flex-basis: 128px; }
  .circle-card__media { width: 64px; height: 64px; font-size: 23px; }
  .offer-banner { min-height: 155px; padding: 16px; border-radius: 22px; }
  .offer-copy h3 { font-size: 19px; }
  .vibrant-card { flex-basis: 72%; }
  .product-card__media { height: 132px; }
  .round-cat { flex-basis: 112px; }
  .round-cat__media { width: 74px; height: 74px; font-size: 27px; }
  .custom-order-card { padding: 19px; border-radius: 22px; }
  .floating-order-card { min-height: 88px; }
  .article-card { flex-basis: 72%; }
  .article-card__cover { height: 118px; }
  .guide-panel { padding: 18px; border-radius: 22px; }

  .compact-product-card {
    flex-basis: 285px;
    min-height: 112px;
    grid-template-columns: 92px 1fr;
    border-radius: 18px;
  }
  .compact-product-media { font-size: 32px; }
  .compact-product-info { padding: 10px 11px; }
  .compact-product-info h3 { margin-bottom: 8px; font-size: 12.5px; }
  .compact-product-footer strong { font-size: 12px; }
}

@media (max-width: 460px) {
  .hero-card h1 { font-size: 22px; }
  .circle-card { flex-basis: 118px; }
  .vibrant-card,
  .article-card { flex-basis: 76%; }
  .compact-product-card { flex-basis: 270px; }
}


/* =========================================================
   FINAL INTEGRATION FIXES
   State only; does not alter approved page/carousel geometry.
   ========================================================= */
.drawer{
  --fp-drawer-drag-x:0px;
  right:0!important;
  transform:translateX(calc(100% + 28px))!important;
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
  transition:transform .25s ease,opacity .18s ease,visibility .18s ease!important;
  will-change:transform;
}
.drawer[aria-hidden="true"]{
  transform:translateX(calc(100% + 28px))!important;
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
}
.drawer.open,.drawer.is-open,.drawer[aria-hidden="false"]{
  right:0!important;
  transform:translateX(var(--fp-drawer-drag-x,0px))!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
}
.drawer.fp-swipe-ready{touch-action:pan-y;overscroll-behavior-x:contain}
.drawer.fp-swiping{transition:none!important;user-select:none}
.drawer.fp-swipe-settle{transition:transform .21s ease,opacity .18s ease,visibility .18s ease!important}
.drawer-overlay{pointer-events:none!important}
.drawer-overlay.show,.drawer-overlay.open{pointer-events:auto!important}
body.drawer-open{overflow:hidden!important}
.drawer-item{align-items:center}
.drawer-info{min-width:0;flex:1}
.drawer-price-line{display:block!important}
.drawer-qty{display:flex;align-items:center;gap:6px;margin-top:8px}
.drawer-qty button{width:27px;height:27px;border:1px solid var(--line);border-radius:8px;background:var(--surface-2,#fafafa);color:var(--text);display:grid;place-items:center;font-size:12px;cursor:pointer;transition:.15s}
.drawer-qty button:hover{border-color:var(--purple,#7c4dff);color:var(--purple,#7c4dff)}
.drawer-qty b{min-width:26px;text-align:center;font-size:12px;font-weight:800}
.drawer-empty{min-height:200px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:var(--muted);gap:7px;padding:22px}
.drawer-empty i{font-size:27px}.drawer-empty strong{font-size:13px;color:var(--text)}.drawer-empty span{font-size:12px}
@media(max-width:760px){.drawer{width:min(91vw,360px)!important;max-width:100%!important}}

/* Mobile category dropdown, responsive branding and interactive carousels. */
.mobile-category-menu { display: none; }
.mobile-header-menus { display: none; align-items: center; gap: 6px; }
.site-header .brand picture { display: flex; align-items: center; }
.site-header .brand__image {
  width: clamp(135px, 15vw, 190px);
  height: 48px;
  object-fit: contain;
  object-position: right center;
}
.carousel-link-card { cursor: pointer; }
.carousel-link-card:focus-visible { outline: 3px solid rgba(64,91,112,.35); outline-offset: 3px; }
.carousel-progress span { will-change: width, transform; }

@media (max-width: 920px) {
  .mobile-header-menus { display: flex; }
  .mobile-category-menu.open {
    display: block;
    border-top: 1px solid rgba(64,91,112,.09);
    border-bottom: 1px solid rgba(64,91,112,.12);
    background: rgba(255,255,255,.98);
    box-shadow: 0 18px 36px rgba(25,35,45,.09);
  }
  .mobile-category-menu__grid {
    max-height: min(58vh, 430px);
    padding-block: 10px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 7px;
    overscroll-behavior: contain;
  }
  .mobile-category-menu__grid a {
    min-height: 43px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(64,91,112,.1);
    border-radius: 12px;
    background: #fff;
    font-size: 12px;
    font-weight: 750;
  }
  .mobile-category-menu__grid a i {
    width: 25px;
    color: var(--orange);
    text-align: center;
  }
}

@media (max-width: 760px) {
  .site-header .header-main {
    direction: ltr;
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    grid-template-rows: auto auto;
    gap: 7px 9px;
    padding: 7px 0 6px;
  }
  .site-header .mobile-header-menus {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }
  .site-header .mobile-menu-btn {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }
  .site-header .mobile-menu-btn--sticky {
    color: var(--orange);
    background: #fff8f3;
  }
  .site-header .brand {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    direction: rtl;
  }
  .site-header .header-actions {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    direction: rtl;
  }
  .site-header .header-search {
    grid-column: 1 / -1;
    grid-row: 2;
    direction: rtl;
    height: 43px;
  }
  .site-header .brand__image {
    width: min(40vw, 145px);
    height: 42px;
  }
  .sticky-categories { display: none; }
}

@media (max-width: 420px) {
  .site-header .header-actions .circle-action:nth-child(-n+2) { display: none; }
  .site-header .mobile-header-menus { gap: 4px; }
  .site-header .mobile-menu-btn { width: 38px; height: 38px; border-radius: 11px; }
  .mobile-category-menu__grid { grid-template-columns: 1fr; }
}

/* Recovery 12: small readability increase across public views. */
body{font-size:15px}.topbar{font-size:13px}.mega-column a,.footer-grid a{font-size:13px}.meta{font-size:12px}.product-card__body p{font-size:12px}.round-cat strong{font-size:13px}.article-link{font-size:12px}.compact-product-info>span{font-size:12px}.compact-product-info h3{font-size:14px}.compact-product-footer strong{font-size:13px}
@media(max-width:760px){body{font-size:14.5px}.sticky-cat__label{font-size:12px}.dock-item span{font-size:12px}.product-card__body p{font-size:12px}.compact-product-info h3{font-size:13.5px}.compact-product-footer strong{font-size:12px}}
.user-notification-badge{position:absolute;top:-5px;right:-5px;min-width:18px;height:18px;padding:0 4px;border-radius:999px;background:#d9485f;color:#fff;font:700 10px/18px Tahoma,Arial,sans-serif;text-align:center;box-shadow:0 0 0 2px #fff}.circle-action{position:relative}.drawer-notification-count{display:inline-block;margin-right:7px;padding:2px 7px;border-radius:999px;background:#fff0f2;color:#b4233c;font-size:11px}
.fp-public-notification{display:none;position:relative;z-index:70;align-items:center;gap:14px;margin:10px auto 0;padding:11px 16px;max-width:1200px;border:1px solid #f2c3a9;border-radius:14px;background:linear-gradient(135deg,#fff6ed,#fff0f4);box-shadow:0 8px 24px rgba(92,55,35,.08);color:#553b36}.fp-public-notification.is-visible{display:flex}.fp-public-notification>div{min-width:0;flex:1}.fp-public-notification strong,.fp-public-notification p{display:block}.fp-public-notification p{margin:2px 0 0;color:#765e58;white-space:pre-wrap}.fp-public-notification a{padding:6px 10px;border-radius:7px;background:#b7464f;color:#fff;text-decoration:none;font-size:13px}.fp-public-notification button{width:28px;height:28px;border:0;border-radius:50%;background:transparent;color:#765e58;font-size:22px;cursor:pointer}@media(max-width:700px){.fp-public-notification{margin:8px 10px 0;padding:10px 12px;align-items:flex-start}.fp-public-notification p{font-size:13px}.fp-public-notification a{align-self:center}}
.cart-empty > i, .cart-empty > strong, .cart-empty > span, .cart-empty > a { display: block; text-align: center; line-height: 1.6; }
.cart-empty> i { font-size: 3rem; } .article-card__cover img{width: -webkit-fill-available; height: inherit;}