/*
 Theme Name: mycopon
 Theme URI: https://example.com/mycopon-lite
 Author: You
 Description: Clean RTL coupon theme with sticky header, search, modal code reveal, stores grid, contact, and account pages.
 Version: 1.4.9
 Text Domain: mycopon
 License: GPLv2 or later
*/

/* Vars & Base */
:root {
  /* ===== Brand ===== */
  --brand: #EB0B14;
  --brand-hover: #c10910;
  --brand-alt: #e52333;
  --brand-dark: #d10a10;
  --accent: var(--brand);

  /* ===== Core text/surfaces ===== */
  --white: #ffffff;
  --black: #000000;
  --ink: #111827;
  --ink-deep: #111111;
  --ink-strong: #222222;
  --ink-alt: #333333;
  --ink-soft: #374151;
  --text-soft: #4b5563;
  --text-secondary: #666666;
  --text-secondary-strong: #555555;
  --muted: #6b7280;
  --muted-light: #9ca3af;
  --muted-faint: #aaaaaa;
  --muted-header: #999999;
  --slate-900: #0f172a;
  --slate-600: #475569;
  --slate-500: #64748b;

  --bg: var(--white);
  --surface: var(--white);
  --surface-soft: #f9fafb;
  --surface-subtle: #f8fafc;
  --surface-muted: #f3f4f6;
  --surface-faint: #fafafa;
  --surface-panel: #f7f8fa;
  --surface-bluegray: #f5f7fb;
  --surface-neutral: #f5f5f5;
  --surface-warm: #faf7ef;

  /* ===== Lines ===== */
  --line: #e5e7eb;
  --line-strong: #d1d5db;
  --line-soft: #eeeeee;
  --line-alt: #dddddd;
  --line-muted: #dcdcdc;
  --line-gray: #cccccc;
  --line-bluegray: #eef2f7;
  --line-slate: #cbd5e1;

  /* ===== States ===== */
  --success: #00a859;
  --success-hover: #00914c;
  --success-active: #008043;
  --success-message: #10b981;
  --success-bg: #f6fff9;
  --error: #dc2626;
  --error-soft: #ef4444;
  --error-dark: #b91c1c;
  --error-bg: #fff1f2;
  --error-line: #fecaca;
  --warning-bg: #fff3cd;
  --warning-text: #7c5a00;
  --info: #1ab1b7;

  /* ===== Disabled ===== */
  --disabled-text: #8a8a8a;
  --disabled-line: #dcdcdc;
  --disabled-bg: #e5e7eb;

  /* ===== Category avatar palette ===== */
  --avatar-1: #2563eb;
  --avatar-2: #16a34a;
  --avatar-3: #dc2626;
  --avatar-4: #7c3aed;
  --avatar-5: #ea580c;
  --avatar-6: #0891b2;
  --avatar-7: #ca8a04;
  --avatar-8: #0ea5e9;

  /* ===== Transparent colors / shadows ===== */
  --overlay-45: rgba(0,0,0,.45);
  --overlay-32: rgba(0,0,0,.32);
  --overlay-25: rgba(0,0,0,.25);
  --shadow-12: rgba(0,0,0,.12);
  --shadow-10: rgba(0,0,0,.10);
  --shadow-08: rgba(0,0,0,.08);
  --shadow-07: rgba(0,0,0,.07);
  --shadow-06: rgba(0,0,0,.06);
  --shadow-04: rgba(0,0,0,.04);
  --shadow-015: rgba(0,0,0,.015);
  --slate-shadow-10: rgba(15,23,42,.10);
  --slate-shadow-08: rgba(15,23,42,.08);
  --slate-shadow-06: rgba(15,23,42,.06);
  --slate-shadow-05: rgba(15,23,42,.05);
  --slate-shadow-04: rgba(15,23,42,.04);
  --white-98: rgba(255,255,255,.98);
  --white-90: rgba(255,255,255,.9);
  --white-70: rgba(255,255,255,.7);
  --white-25: rgba(255,255,255,.25);
  --white-0: rgba(255,255,255,0);
  --blue-focus-08: rgba(37,99,235,.08);
  --blue-focus-60: rgba(37,99,235,.6);
  --error-bg-alpha: rgba(220,38,38,.12);
  --error-line-alpha: rgba(220,38,38,.32);

  /* ===== Global component tokens ===== */
  --button-bg: var(--brand);
  --button-bg-hover: var(--brand-hover);
  --button-text: var(--white);
  --button-radius: 12px;
  --card-radius: 14px;
  --field-radius: 10px;

  /* Offset for sticky elements below the sticky desktop header. */
  --sticky-header-offset: 82px;
}

/* Mobile tap feedback: remove the temporary grey/blue box without hiding keyboard focus. */
@media (hover: none) and (pointer: coarse) {
  a,
  button,
  [role="button"],
  input[type="button"],
  input[type="submit"] {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  a:focus:not(:focus-visible),
  button:focus:not(:focus-visible),
  [role="button"]:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
  }

  a img {
    -webkit-touch-callout: none;
    user-select: none;
  }
}

/* لینک‌های داخل محتوای نوشته (single post) */
.mc-content a,
.mc-content a:link,
.mc-content a:visited {
  color: var(--brand) !important;   /* قرمز برند */
  font-weight: 500;
}

.mc-content a:hover {
  color: var(--brand-hover) !important;         /* کمی تیره‌تر برای هاور، یا هر رنگی خواستی */
}

html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font-family:'IRANSansX',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,'Noto Sans',sans-serif;line-height:1.6}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
.container{max-width:1200px;margin-inline:auto;padding:0 16px}
.site-branding img{height:36px}

/* Mobile viewport guard: prevent page-level sideways dragging while keeping
   intentional horizontal rails scrollable inside their own containers. */
@media (max-width: 768px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    overscroll-behavior-x: none;
  }

  @supports (overflow: clip) {
    html,
    body {
      overflow-x: clip !important;
    }
  }
}


/* Accessibility utility */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ===== Global CTA system ===== */
.btn-coupon,
.btn-coupon-link,
.mc-use-code,
.mc-use-code-single {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 44px;
  padding: 9px 20px;
  border: 0;
  border-radius: var(--button-radius);
  background-color: var(--button-bg);
  color: var(--button-text) !important;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease;
}
.btn-coupon:hover,
.btn-coupon-link:hover,
.mc-use-code:hover,
.mc-use-code-single:hover {
  background-color: var(--button-bg-hover);
  color: var(--button-text) !important;
}

/* CTA خروجی فروشگاه: جمع‌وجور و یکدست در مودال و تک‌کوپن */
.mc-use-code,
.mc-use-code-single {
  width: auto;
  min-width: 170px;
  max-width: 220px;
}

/* Feedback message states: JS only toggles classes; colors live here. */
.mc-fb-msg.is-success { color: var(--success-message) !important; }
.mc-fb-msg.is-error { color: var(--error-soft) !important; }

/* ========================================================================
   Today's deals — all component styles stay in this central stylesheet.
   ======================================================================== */
.mc-deals-section {
  margin-block: 34px 38px;
}

.mc-deals-section--store {
  margin-block-start: 42px;
}

/* Home deals: pale gray outer canvas; cards remain on a clean white shell. */
.mc-deals-section--home {
  position: relative;
  isolation: isolate;
  overflow: visible;
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  padding: 28px 0;
  border: 0;
  border-radius: 0;
  background: var(--surface-faint);
  background: color-mix(in srgb, var(--surface-faint) 38%, var(--surface));
  box-shadow: 0 0 0 100vmax var(--surface-faint);
  box-shadow: 0 0 0 100vmax color-mix(in srgb, var(--surface-faint) 38%, var(--surface));
  clip-path: inset(0 -100vmax);
  --mc-deals-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='720' height='360' viewBox='0 0 720 360'%3E%3Cg fill='none' stroke='black' stroke-width='2.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='translate(28 24) rotate(-13 28 28)'%3E%3Ccircle cx='9' cy='9' r='6'/%3E%3Ccircle cx='43' cy='43' r='6'/%3E%3Cpath d='M2 50 50 2'/%3E%3C/g%3E%3Cg transform='translate(205 12) rotate(8 34 34)'%3E%3Crect x='5' y='20' width='58' height='45' rx='5'/%3E%3Cpath d='M0 20h68V7H0v13ZM34 7v58M34 7C31-5 14-5 14 3c0 6 8 7 20 4Zm0 0C37-5 54-5 54 3c0 6-8 7-20 4Z'/%3E%3C/g%3E%3Cg transform='translate(430 38) rotate(-8 31 31)'%3E%3Ccircle cx='26' cy='26' r='21'/%3E%3Cpath d='m42 42 20 20'/%3E%3C/g%3E%3Cg transform='translate(621 72) rotate(12 34 34)'%3E%3Cpath d='M8 3h31l23 23-39 39L1 43V10a7 7 0 0 1 7-7Z'/%3E%3Ccircle cx='19' cy='17' r='4'/%3E%3C/g%3E%3Cg transform='translate(92 224) rotate(7 42 30)'%3E%3Cpath d='M0 4h13l8 32h49l9-25H17M29 51a5 5 0 1 1-10 0M71 51a5 5 0 1 1-10 0'/%3E%3C/g%3E%3Cg transform='translate(282 198) rotate(-8 44 30)'%3E%3Cpath d='M3 1h82v17a10 10 0 0 0 0 20v19H3V38a10 10 0 0 0 0-20V1Z'/%3E%3Cpath d='M31 10v38' stroke-dasharray='4 6'/%3E%3Ccircle cx='51' cy='16' r='4'/%3E%3Ccircle cx='69' cy='43' r='4'/%3E%3Cpath d='m47 47 26-35'/%3E%3C/g%3E%3Cg transform='translate(505 236) rotate(6 30 34)'%3E%3Cpath d='M7 18h48l5 48H2l5-48Z'/%3E%3Cpath d='M17 19V12a14 14 0 0 1 28 0v7'/%3E%3C/g%3E%3Cg transform='translate(641 270) rotate(-10 31 31)'%3E%3Cpath d='m31 2 9 19 21 3-15 15 4 21-19-10-19 10 4-21L1 24l21-3 9-19Z'/%3E%3C/g%3E%3Cg transform='translate(158 116) rotate(10 22 22)'%3E%3Cellipse cx='22' cy='8' rx='20' ry='7'/%3E%3Cpath d='M2 8v27c0 4 9 7 20 7s20-3 20-7V8M2 21c0 4 9 7 20 7s20-3 20-7'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  --mc-deals-pattern-extra: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='720' height='360' viewBox='0 0 720 360'%3E%3Cg fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='translate(45 142) rotate(-7 34 24)'%3E%3Crect x='2' y='5' width='66' height='44' rx='7'/%3E%3Cpath d='M3 18h64M12 38h19'/%3E%3C/g%3E%3Cg transform='translate(325 92) rotate(9 30 29)'%3E%3Cpath d='M30 54S4 39 4 19C4 7 19 1 30 14 41 1 56 7 56 19c0 20-26 35-26 35Z'/%3E%3C/g%3E%3Cg transform='translate(548 152) rotate(-11 38 28)'%3E%3Cpath d='M4 25h20L58 7v43L24 32H4V25ZM24 32l7 21H17l-6-21M65 19c7 5 7 14 0 19'/%3E%3C/g%3E%3Cg transform='translate(225 286) rotate(-6 31 28)'%3E%3Cpath d='M4 16 31 3l27 13v35L31 64 4 51V16Z'/%3E%3Cpath d='m4 16 27 14 27-14M31 30v34'/%3E%3C/g%3E%3Cg transform='translate(432 274) rotate(8 31 31)'%3E%3Cpath d='m31 3 8 7 11-1 3 11 9 6-5 10 2 11-11 3-7 9-10-5-10 5-7-9-11-3 2-11-5-10 9-6 3-11 11 1 8-7Z'/%3E%3Cpath d='m19 31 8 8 17-18'/%3E%3C/g%3E%3Cg transform='translate(651 18) rotate(10 25 31)'%3E%3Cpath d='M9 27h32v31H9V27ZM4 27h42M16 27c0-10 4-18 9-18s9 8 9 18'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

body.home,
body.front-page {
  overflow-x: clip;
}

.mc-deals-section--home::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset-block: 0;
  inset-inline: auto;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--brand);
  opacity: .065;
  pointer-events: none;
  -webkit-mask-image: var(--mc-deals-pattern), var(--mc-deals-pattern-extra);
  -webkit-mask-repeat: repeat;
  -webkit-mask-size: 760px 380px, 760px 380px;
  -webkit-mask-position: 0 0, 90px 55px;
  mask-image: var(--mc-deals-pattern), var(--mc-deals-pattern-extra);
  mask-repeat: repeat;
  mask-size: 760px 380px, 760px 380px;
  mask-position: 0 0, 90px 55px;
}

.mc-deals-section--home > .mc-deals-section__inner {
  position: relative;
  z-index: 1;
}

.mc-deals-section--home .mc-deals-section__inner {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 16px;
}

.mc-deals-section--home .mc-deals-widget-shell {
  background: var(--surface);
}

.mc-deals-section__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.mc-deals-section__title {
  flex: 0 0 auto;
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.5;
}

.mc-deals-section__line {
  flex: 1 1 auto;
  min-width: 24px;
  border-top: 1px dashed var(--line);
}

.mc-deals-section__more {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  min-height: 38px;
  padding-inline: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  transition: color .18s ease;
}

.mc-deals-section__more:hover,
.mc-deals-section__more:focus-visible {
  color: var(--brand);
}

.mc-deals-section__more svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mc-deals-section__note {
  margin: -5px 0 14px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.9;
}

.mc-deals-widget-shell {
  position: relative;
  min-height: 0;
  padding: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--surface);
  box-shadow: none;
}

.mc-deals-products {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 14px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.mc-deal-card {
  display: flex;
  min-width: 0;
  min-height: 390px;
  flex-direction: column;
  scroll-snap-align: start;
  overflow: hidden;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--surface);
}

/* Filtering must always win over card grid/flex display rules. */
[data-mc-deals-location] .mc-deal-card[hidden] {
  display: none !important;
}

.mc-deal-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: calc(var(--card-radius) - 4px);
  background: var(--surface-subtle);
}

.mc-deal-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mc-deal-card__discount {
  position: absolute;
  inset-block-start: 8px;
  inset-inline-start: 8px;
  display: inline-flex;
  min-width: 38px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--white);
  font-size: 13px;
  font-weight: 900;
}

.mc-deal-card__title {
  display: -webkit-box;
  min-height: 50px;
  margin: 12px 2px 8px;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.9;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mc-deal-card__store {
  display: flex;
  min-height: 24px;
  align-items: center;
  gap: 7px;
  margin: 10px 2px 0;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
}

.mc-deal-card__store img {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  object-fit: contain;
}

/* Homepage rail: equal cards, more offers, arrow navigation and no scrollbar. */
[data-mc-deals-location="home"] .mc-deals-rail {
  position: relative;
}

[data-mc-deals-location="home"] .mc-deals-products {
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 42px) / 4);
  grid-template-columns: none;
  grid-template-rows: none;
  overflow-x: auto;
  padding: 2px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

[data-mc-deals-location="home"] .mc-deals-products::-webkit-scrollbar {
  display: none;
}

[data-mc-deals-location="home"] .mc-deal-card {
  min-height: 390px;
}

.mc-deals-nav {
  position: absolute;
  z-index: 3;
  inset-block-start: 50%;
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transform: translateY(-50%);
  transition: border-color .18s ease, color .18s ease, background-color .18s ease;
}

.mc-deals-nav[hidden] {
  display: none !important;
}

.mc-deals-nav:hover,
.mc-deals-nav:focus-visible {
  border-color: var(--brand);
  color: var(--brand);
}

.mc-deals-nav--prev {
  inset-inline-start: -9px;
}

.mc-deals-nav--next {
  inset-inline-end: -9px;
}

.mc-deals-nav svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mc-deal-card__title a:hover,
.mc-deal-card__title a:focus-visible {
  color: var(--brand);
}

.mc-deal-card__prices {
  display: flex;
  min-height: 44px;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  margin: auto 2px 10px;
}

.mc-deal-card__old-price {
  color: var(--muted-light);
  font-size: 11px;
}

.mc-deal-card__price {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.mc-deal-card__price small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.mc-deal-card__button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: var(--button-radius);
  background: var(--button-bg);
  color: var(--button-text) !important;
  font-size: 13px;
  font-weight: 800;
  transition: background-color .18s ease, transform .18s ease;
}

.mc-deal-card__button:hover,
.mc-deal-card__button:focus-visible {
  background: var(--button-bg-hover);
  color: var(--button-text) !important;
}

.mc-deals-widget-message {
  margin: 0;
  padding: 36px 16px;
  border-radius: calc(var(--card-radius) - 3px);
  background: var(--surface-subtle);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.mc-deals-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.mc-deals-filters::-webkit-scrollbar {
  display: none;
}

.mc-deals-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.mc-deals-controls .mc-deals-filters {
  min-width: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.mc-deals-sort {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
}

.mc-deals-filter,
.mc-deals-sort__button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-soft);
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.mc-deals-filter:hover,
.mc-deals-filter:focus-visible,
.mc-deals-sort__button:hover,
.mc-deals-sort__button:focus-visible {
  border-color: var(--brand);
  color: var(--brand);
}

.mc-deals-filter.is-active,
.mc-deals-sort__button.is-active {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--white);
}

[data-mc-deals-location="archive"] .mc-deals-products {
  grid-auto-flow: row;
  grid-auto-columns: auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: visible;
  padding-bottom: 2px;
}

[data-mc-deals-location="archive"] .mc-deal-card {
  min-height: 410px;
}

.mc-deals-page {
  padding-block: 24px 58px;
}

.mc-deals-page__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: center;
  gap: 24px;
  margin: 16px 0 26px;
  padding: 28px 34px;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--surface-subtle);
  overflow: hidden;
}

.mc-deals-page__eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  margin-bottom: 10px;
  padding-inline: 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.mc-deals-page__title {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: clamp(25px, 3vw, 38px);
  font-weight: 950;
  line-height: 1.45;
}

.mc-deals-page__lead {
  max-width: 760px;
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 2;
}

.mc-deals-orbit {
  position: relative;
  width: 270px;
  aspect-ratio: 1;
  justify-self: end;
}

.mc-deals-orbit__track {
  position: absolute;
  inset: 22px;
  border: 1px dashed var(--line-strong);
  border-radius: 50%;
}

.mc-deals-orbit__track::before,
.mc-deals-orbit__track::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--brand);
}

.mc-deals-orbit__track::before {
  inset-block-start: -4px;
  inset-inline-start: 50%;
  width: 8px;
  height: 8px;
}

.mc-deals-orbit__track::after {
  inset-block-end: -3px;
  inset-inline-end: 50%;
  width: 6px;
  height: 6px;
}

.mc-deals-orbit__core {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 2;
  display: flex;
  width: 106px;
  aspect-ratio: 1;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--brand);
  box-shadow: 0 12px 28px var(--shadow-12);
  transform: translate(-50%, -50%);
}

.mc-deals-orbit__core svg {
  width: 30px;
  height: 30px;
  margin-bottom: 3px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mc-deals-orbit__core b {
  color: var(--ink);
  font-size: 13px;
}

.mc-deals-orbit__core small {
  color: var(--muted);
  font-size: 9px;
}

.mc-deals-orbit__shops {
  position: absolute;
  inset: 0;
  animation: mc-deals-spin 30s linear infinite;
}

.mc-deals-orbit__shop {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  width: 48px;
  height: 48px;
  margin: -24px;
}

.mc-deals-orbit__shop > span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--brand);
  box-shadow: 0 7px 18px var(--shadow-08);
  animation: mc-deals-counter-spin 30s linear infinite;
}

.mc-deals-orbit__shop img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.mc-deals-orbit__shop b {
  font-size: 17px;
}

.mc-deals-orbit__shop--1 { transform: translateY(-112px); }
.mc-deals-orbit__shop--2 { transform: rotate(60deg) translateY(-112px) rotate(-60deg); }
.mc-deals-orbit__shop--3 { transform: rotate(120deg) translateY(-112px) rotate(-120deg); }
.mc-deals-orbit__shop--4 { transform: rotate(180deg) translateY(-112px) rotate(-180deg); }
.mc-deals-orbit__shop--5 { transform: rotate(240deg) translateY(-112px) rotate(-240deg); }
.mc-deals-orbit__shop--6 { transform: rotate(300deg) translateY(-112px) rotate(-300deg); }

@keyframes mc-deals-spin {
  to { transform: rotate(360deg); }
}

@keyframes mc-deals-counter-spin {
  to { transform: rotate(-360deg); }
}

.mc-deals-page__content {
  margin-top: 30px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--surface);
  color: var(--text-soft);
  line-height: 2;
}

.mc-deals-page__content h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 20px;
}

.mc-deals-page__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: mc-deal-step;
}

.mc-deals-page__steps li {
  position: relative;
  min-width: 0;
  padding: 18px 54px 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--surface);
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.9;
  counter-increment: mc-deal-step;
}

.mc-deals-page__steps li::before {
  content: counter(mc-deal-step);
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--brand);
  font-weight: 900;
}

.mc-deals-page__disclosure {
  margin: 18px 0 0;
  padding: 13px 15px;
  border-inline-start: 3px solid var(--brand);
  border-radius: var(--field-radius);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.9;
}

.mc-deals-empty {
  margin: 0;
  padding: 28px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--card-radius);
  background: var(--surface-subtle);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 768px) {
  .mc-deals-section {
    margin-block: 27px 32px;
  }

  .mc-deals-section--home {
    padding: 20px 0;
  }

  .mc-deals-section--home::before {
    opacity: .05;
    -webkit-mask-size: 610px 305px, 610px 305px;
    -webkit-mask-position: 0 0, 70px 42px;
    mask-size: 610px 305px, 610px 305px;
    mask-position: 0 0, 70px 42px;
  }

  .mc-deals-section__header {
    gap: 9px;
    margin-bottom: 13px;
  }

  .mc-deals-section__title {
    font-size: 16px;
  }

  .mc-deals-section__more {
    min-height: 34px;
    padding-inline: 2px;
    font-size: 11.5px;
  }

  .mc-deals-widget-shell {
    margin-inline: -4px;
    padding: 10px;
    border-radius: 12px;
  }

  .mc-deals-products {
    grid-auto-columns: minmax(205px, 78vw);
    gap: 10px;
  }

  [data-mc-deals-location="home"] .mc-deals-products {
    grid-auto-columns: minmax(205px, 78vw);
    gap: 10px;
  }

  [data-mc-deals-location="home"] .mc-deal-card {
    min-height: 370px;
  }

  .mc-deals-nav {
    width: 36px;
    height: 36px;
  }

  .mc-deals-nav--prev {
    inset-inline-start: -6px;
  }

  .mc-deals-nav--next {
    inset-inline-end: -6px;
  }

  .mc-deals-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .mc-deals-sort {
    overflow-x: auto;
  }

  .mc-deal-card {
    min-height: 370px;
  }

  [data-mc-deals-location="archive"] .mc-deals-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  [data-mc-deals-location="archive"] .mc-deal-card {
    min-height: 360px;
  }

  .mc-deals-page {
    padding-block: 14px 38px;
  }

  .mc-deals-page__hero {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-block: 10px 20px;
    padding: 21px 18px;
  }

  .mc-deals-orbit {
    width: 230px;
    margin-block: 4px 2px;
    justify-self: center;
  }

  .mc-deals-orbit__shop {
    width: 42px;
    height: 42px;
    margin: -21px;
  }

  .mc-deals-orbit__shop--1 { transform: translateY(-94px); }
  .mc-deals-orbit__shop--2 { transform: rotate(60deg) translateY(-94px) rotate(-60deg); }
  .mc-deals-orbit__shop--3 { transform: rotate(120deg) translateY(-94px) rotate(-120deg); }
  .mc-deals-orbit__shop--4 { transform: rotate(180deg) translateY(-94px) rotate(-180deg); }
  .mc-deals-orbit__shop--5 { transform: rotate(240deg) translateY(-94px) rotate(-240deg); }
  .mc-deals-orbit__shop--6 { transform: rotate(300deg) translateY(-94px) rotate(-300deg); }

  .mc-deals-page__title {
    font-size: 25px;
  }

  .mc-deals-page__lead {
    font-size: 13.5px;
  }

  .mc-deals-page__steps {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .mc-deals-page__content {
    padding: 19px 16px;
  }
}

/* ========================================================================
   Deals refinement v1.3.8 — central overrides only.
   ======================================================================== */
.mc-deals-controls__all {
  width: auto;
  align-self: center;
  gap: 7px;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.mc-deals-controls__all svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[data-mc-deals-location="home"] .mc-deals-nav {
  inset-block-start: 34%;
}

.mc-deals-finder {
  position: relative;
  overflow: hidden;
}

.mc-deals-finder::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 14px;
  bottom: 14px;
  left: 16px;
  width: 2px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--brand) 32%, transparent);
  animation: mc-deals-scan 5.5s ease-in-out infinite;
  pointer-events: none;
}

.mc-deals-finder > * {
  position: relative;
  z-index: 2;
}

@keyframes mc-deals-scan {
  0%, 100% { transform: translateX(0); opacity: 0; }
  12%, 88% { opacity: 1; }
  50% { transform: translateX(338px); opacity: 1; }
}

[data-mc-deals-location="archive"].mc-deals-widget-shell {
  overflow: visible;
}

.mc-deals-archive-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}

.mc-deals-sidebar.mc-deals-controls {
  position: sticky;
  top: 92px;
  display: block;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--surface);
}

.mc-deals-sidebar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.mc-deals-sidebar__head strong {
  color: var(--ink);
  font-size: 14px;
}

.mc-deals-sidebar__head button {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: var(--button-radius);
  background: var(--surface-subtle);
  color: var(--ink);
}

.mc-deals-sidebar__head svg,
.mc-deals-mobile-filter-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mc-deals-sidebar__group {
  padding-block: 15px;
  border-top: 1px solid var(--line-soft);
}

.mc-deals-sidebar__group h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 12.5px;
}

.mc-deals-filters--sidebar {
  display: flex;
  width: 100%;
  align-items: stretch;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  overflow: visible;
  padding: 0;
}

.mc-deals-filters--sidebar .mc-deals-filter {
  width: 100%;
  min-height: 42px;
  justify-content: flex-start;
  padding: 6px 8px;
  border: 0;
  border-radius: var(--button-radius);
  background: transparent;
  color: var(--text-soft);
}

.mc-deals-filters--sidebar .mc-deals-filter.is-active {
  background: var(--surface-subtle);
  color: var(--brand);
}

.mc-deals-filters--sidebar .mc-deals-filter__logo {
  width: 32px;
  height: 32px;
  padding: 4px;
}

.mc-deals-sidebar__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.mc-deals-sidebar__options button {
  min-height: 38px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: var(--button-radius);
  background: var(--surface);
  color: var(--text-soft);
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
}

.mc-deals-sidebar__options button.is-active {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--white);
}

.mc-deals-sidebar__count {
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 11.5px;
}

.mc-deals-sidebar__count b {
  color: var(--brand);
  font-size: 16px;
}

.mc-deals-results {
  min-width: 0;
}

[data-mc-deals-location="archive"] .mc-deals-results .mc-deals-products {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mc-deals-mobile-filter-toggle,
.mc-deals-filter-backdrop {
  display: none;
}

@media (min-width: 769px) and (max-width: 1100px) {
  .mc-deals-archive-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  [data-mc-deals-location="archive"] .mc-deals-results .mc-deals-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .mc-deals-finder::after {
    animation: none;
    opacity: 0;
  }
}

@media (max-width: 768px) {
  [data-mc-deals-location="home"] .mc-deals-filters {
    width: calc(100% + 24px);
    max-width: none;
    margin-inline-end: -24px;
    padding-inline-end: 42px;
  }

  [data-mc-deals-location="home"] .mc-deals-controls__all {
    width: auto;
    align-self: flex-start;
    padding-inline: 2px;
  }

  .mc-deals-mobile-filter-toggle {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: var(--button-radius);
    background: var(--surface);
    color: var(--ink);
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
  }

  .mc-deals-archive-layout {
    display: block;
  }

  .mc-deals-sidebar.mc-deals-controls {
    position: fixed;
    z-index: 100002;
    top: 0;
    right: 0;
    bottom: 70px;
    width: min(88vw, 360px);
    margin: 0;
    overflow-y: auto;
    border-width: 0 0 0 1px;
    border-radius: 0;
    transform: translateX(105%);
    visibility: hidden;
    transition: transform .22s ease, visibility .22s ease;
  }

  .mc-deals-sidebar__head button {
    display: inline-flex;
  }

  .mc-deals-filter-backdrop {
    position: fixed;
    z-index: 100001;
    top: 0;
    right: 0;
    bottom: 70px;
    left: 0;
    border: 0;
    background: color-mix(in srgb, var(--ink) 38%, transparent);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
  }

  [data-mc-deals-location="archive"].is-filter-open .mc-deals-sidebar {
    transform: translateX(0);
    visibility: visible;
  }

  [data-mc-deals-location="archive"].is-filter-open .mc-deals-filter-backdrop {
    display: block;
    opacity: 1;
    visibility: visible;
  }

  body.mc-deals-filter-open {
    overflow: hidden;
  }

  [data-mc-deals-location="archive"] .mc-deals-results .mc-deals-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  [data-mc-deals-location="archive"] .mc-deals-results .mc-deals-products {
    grid-template-columns: 1fr;
  }
}

/* ========================================================================
   Deals refinement v1.3.7 — central overrides only.
   ======================================================================== */
.mc-deals-controls {
  padding-bottom: 0;
  border-bottom: 0;
}

.mc-deals-controls__all {
  min-height: 36px;
  padding: 5px 4px;
  border: 0;
  background: transparent;
  font-size: 14px;
}

.mc-deals-controls__all:hover,
.mc-deals-controls__all:focus-visible {
  border-color: transparent;
  color: var(--brand-dark);
}

.mc-deals-filter__logo {
  border: 0;
}

.store-pagination .page-numbers,
.store-pagination .prev,
.store-pagination .next,
.navigation.pagination .page-numbers,
.navigation.pagination .prev.page-numbers,
.navigation.pagination .next.page-numbers,
.mc-pagination .page-numbers {
  border-radius: var(--button-radius);
}

.store-pagination .prev,
.store-pagination .next {
  box-shadow: none;
}

.mc-deals-pagination__button--arrow {
  width: 40px;
  min-width: 40px;
  padding: 0;
}

.mc-deals-page-arrow {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
}

.mc-deals-page-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-top: 1.8px solid currentColor;
  border-right: 1.8px solid currentColor;
}

.mc-deals-page-arrow--prev::before {
  transform: translate(-65%, -50%) rotate(45deg);
}

.mc-deals-page-arrow--next::before {
  transform: translate(-35%, -50%) rotate(-135deg);
}

.mc-deals-page__hero {
  grid-template-columns: minmax(0, 1fr) 390px;
  min-height: 390px;
  padding: 38px 44px;
}

.mc-deals-finder {
  display: grid;
  width: min(100%, 390px);
  min-height: 300px;
  grid-template-columns: 116px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  align-items: stretch;
  gap: 14px;
  justify-self: end;
  box-sizing: border-box;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--surface);
}

.mc-deals-finder__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-radius: calc(var(--card-radius) - 4px);
  background: var(--surface-subtle);
  color: var(--brand);
  text-align: center;
}

.mc-deals-finder__brand svg {
  width: 40px;
  height: 40px;
  margin-bottom: 7px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mc-deals-finder__brand b {
  color: var(--ink);
  font-size: 15px;
}

.mc-deals-finder__brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9.5px;
}

.mc-deals-finder__shops {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mc-deals-finder__shop {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 9px;
  border-radius: calc(var(--card-radius) - 6px);
  background: var(--surface-subtle);
}

.mc-deals-finder__shop img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mc-deals-finder__shop b {
  color: var(--brand);
  font-size: 20px;
}

.mc-deals-finder__status {
  display: flex;
  grid-column: 1 / -1;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: calc(var(--card-radius) - 6px);
  background: var(--surface-subtle);
  color: var(--text-soft);
  font-size: 11.5px;
  font-weight: 800;
}

.mc-deals-finder__status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

@media (max-width: 768px) {
  [data-mc-deals-location="home"] .mc-deals-products {
    grid-auto-columns: 100%;
  }

  .mc-deals-page__hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 27px 20px;
  }

  .mc-deals-finder {
    width: 100%;
    min-height: 260px;
    grid-template-columns: 96px minmax(0, 1fr);
    justify-self: stretch;
    padding: 14px;
  }

  .mc-deals-finder__shops {
    gap: 8px;
  }

  .mc-deals-finder__shop {
    padding: 7px;
  }
}

@media (min-width: 769px) and (max-width: 1100px) {
  [data-mc-deals-location="home"] .mc-deals-products {
    grid-auto-columns: calc((100% - 28px) / 3);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mc-deals-orbit__shops,
  .mc-deals-orbit__shop > span {
    animation: none;
  }
}

@media (max-width: 520px) {
  [data-mc-deals-location="archive"] .mc-deals-products {
    grid-template-columns: 1fr;
  }

  [data-mc-deals-location="archive"] .mc-deal-card {
    min-height: 390px;
  }
}

/* ========================================================================
   Deals refinement v1.3.6 — central overrides only.
   ======================================================================== */
.mc-deal-card {
  min-height: 340px;
}

.mc-deal-card__media {
  aspect-ratio: 4 / 3;
  background: var(--surface);
}

.mc-deal-card__image {
  box-sizing: border-box;
  padding: 8px;
}

.mc-deal-card__store img {
  box-sizing: border-box;
  width: 42px;
  height: 42px;
  padding: 6px;
}

.mc-deal-card__old-price {
  font-size: 12px;
}

.mc-deal-card__price {
  font-size: 18px;
}

.mc-deal-card__price small {
  font-size: 12px;
}

[data-mc-deals-location="home"] .mc-deal-card,
[data-mc-deals-location="archive"] .mc-deal-card {
  min-height: 350px;
}

.mc-deals-controls__all {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: var(--button-radius);
  background: var(--surface);
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.mc-deals-controls__all:hover,
.mc-deals-controls__all:focus-visible {
  border-color: var(--brand);
}

.mc-deals-filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.mc-deals-filter__logo {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
}

.mc-deals-filter__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mc-deals-page__hero {
  min-height: 330px;
  padding: 30px 38px;
  background: var(--surface-subtle);
}

.mc-deals-page__hero-content {
  position: relative;
  z-index: 2;
}

.mc-deals-page__search {
  display: flex;
  max-width: 620px;
  min-height: 52px;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-inline: 16px;
  border: 1px solid var(--line);
  border-radius: var(--field-radius);
  background: var(--surface);
}

.mc-deals-page__search svg {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.mc-deals-page__search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
}

.mc-deals-orbit__core,
.mc-deals-orbit__shop > span {
  box-shadow: none;
}

.mc-deals-page__steps li {
  padding-inline-start: 68px;
}

.mc-deals-page__steps li::before {
  width: 38px;
  height: 38px;
  font-size: 19px;
}

.mc-deals-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 26px 0 4px;
}

.mc-deals-pagination[hidden] {
  display: none !important;
}

.mc-deals-pagination__button {
  display: inline-flex;
  min-width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--button-radius);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.mc-deals-pagination__button:hover,
.mc-deals-pagination__button:focus-visible {
  border-color: var(--brand);
  color: var(--brand);
}

.mc-deals-pagination__button.is-current {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--white);
}

.navigation.pagination .page-numbers,
.navigation.pagination .prev.page-numbers,
.navigation.pagination .next.page-numbers,
.mc-pagination .page-numbers {
  border-radius: var(--button-radius);
}

.mc-smart-search-store-logo {
  width: 58px;
  height: 58px;
  padding: 7px;
}

.mc-smart-search-result-logo {
  flex-basis: 42px;
  width: 42px;
  height: 42px;
  padding: 5px;
  box-sizing: border-box;
}

.mc-smart-search-result-logo img,
.mc-smart-search-store-logo img {
  object-fit: contain;
}

@media (max-width: 768px) {
  [data-mc-deals-location="home"] .mc-deal-card,
  [data-mc-deals-location="archive"] .mc-deal-card {
    min-height: 335px;
  }

  .mc-deals-page__hero {
    min-height: 0;
    padding: 24px 18px;
  }

  .mc-deals-page__search {
    min-height: 48px;
  }

  .mc-deals-controls__all {
    width: 100%;
  }
}

/* v1.3.7 final cascade */
.mc-deals-controls__all {
  min-height: 36px;
  padding: 5px 4px;
  border: 0;
  background: transparent;
  font-size: 14px;
}

.mc-deals-controls__all:hover,
.mc-deals-controls__all:focus-visible {
  border-color: transparent;
  color: var(--brand-dark);
}

.mc-deals-filter__logo {
  border: 0;
}

.mc-deals-page__hero {
  grid-template-columns: minmax(0, 1fr) 390px;
  min-height: 390px;
  padding: 38px 44px;
}

@media (max-width: 768px) {
  [data-mc-deals-location="home"] .mc-deals-products {
    grid-auto-columns: 100%;
  }

  .mc-deals-page__hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 27px 20px;
  }
}

/* v1.3.8 final cascade */
.mc-deals-controls__all {
  width: auto;
  align-self: center;
  gap: 7px;
  white-space: nowrap;
}

@media (max-width: 768px) {
  [data-mc-deals-location="home"] .mc-deals-controls__all {
    width: auto;
    align-self: flex-start;
    padding-inline: 2px;
  }
}

/* ========================================================================
   Deals archive alignment v1.3.9 — central overrides only.
   ======================================================================== */
.mc-deals-page__hero {
  grid-template-columns: minmax(0, 1fr) 280px;
  min-height: 260px;
  gap: 18px;
  margin-block: 4px 18px;
  padding: 4px 0 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.mc-deals-page__title {
  font-size: clamp(25px, 2.6vw, 34px);
}

.mc-deals-page__lead {
  max-width: 700px;
  line-height: 1.9;
}

.mc-deals-orbit {
  width: 250px;
  justify-self: end;
}

.mc-deals-orbit__shop--1 { transform: translateY(-103px); }
.mc-deals-orbit__shop--2 { transform: rotate(60deg) translateY(-103px) rotate(-60deg); }
.mc-deals-orbit__shop--3 { transform: rotate(120deg) translateY(-103px) rotate(-120deg); }
.mc-deals-orbit__shop--4 { transform: rotate(180deg) translateY(-103px) rotate(-180deg); }
.mc-deals-orbit__shop--5 { transform: rotate(240deg) translateY(-103px) rotate(-240deg); }
.mc-deals-orbit__shop--6 { transform: rotate(300deg) translateY(-103px) rotate(-300deg); }

.mc-deals-archive-layout {
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 22px;
}

.mc-deals-sidebar.mc-deals-controls {
  top: 92px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--surface);
}

.mc-deals-sidebar__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding-bottom: 12px;
}

.mc-deals-sidebar__title strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
}

.mc-deals-sidebar__title svg,
.mc-deals-sidebar__toggle svg,
.mc-deals-sidebar__search svg,
.mc-deals-sortbar__label svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mc-deals-sidebar__group {
  margin: 0 0 16px;
  padding: 0 0 16px;
  border-top: 0;
  border-bottom: 1px solid var(--line-soft);
}

.mc-deals-sidebar__toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-alt);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.mc-deals-sidebar__toggle svg {
  color: var(--muted);
  transition: transform .2s ease;
}

.mc-deals-sidebar__group:not(.is-open) .mc-deals-sidebar__toggle svg {
  transform: rotate(90deg);
}

.mc-deals-sidebar__body {
  margin-top: 10px;
}

.mc-deals-sidebar__group:not(.is-open) .mc-deals-sidebar__body {
  display: none;
}

.mc-deals-sidebar__search {
  position: relative;
  display: block;
  margin-bottom: 10px;
}

.mc-deals-sidebar__search svg {
  position: absolute;
  top: 50%;
  right: 10px;
  color: var(--muted-light);
  transform: translateY(-50%);
}

.mc-deals-sidebar__search input {
  width: 100%;
  height: 40px;
  box-sizing: border-box;
  padding: 0 36px 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--field-radius);
  outline: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 12px;
}

.mc-deals-sidebar__search input:focus {
  border-color: var(--brand);
}

.mc-deals-filters--sidebar {
  max-height: 300px;
  gap: 0;
  overflow-y: auto;
  padding-inline-end: 2px;
}

.mc-deals-filters--sidebar .mc-deals-filter {
  display: grid;
  grid-template-columns: 16px 28px minmax(0, 1fr);
  min-height: 43px;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border: 0;
  border-bottom: 1px solid var(--surface-soft);
  border-radius: 0;
  background: transparent;
  color: var(--ink-alt);
  text-align: right;
}

.mc-deals-filters--sidebar .mc-deals-filter.is-active {
  background: transparent;
  color: var(--ink-alt);
}

.mc-deals-filters--sidebar .mc-deals-filter > i,
.mc-deals-sidebar__rows button > i {
  position: relative;
  display: block;
  width: 16px;
  height: 16px;
  box-sizing: border-box;
  border: 1.5px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
}

.mc-deals-filters--sidebar .mc-deals-filter.is-active > i,
.mc-deals-sidebar__rows button.is-active > i {
  border-color: var(--brand);
  background: var(--brand);
}

.mc-deals-filters--sidebar .mc-deals-filter.is-active > i::after,
.mc-deals-sidebar__rows button.is-active > i::after {
  content: "";
  position: absolute;
  top: 1px;
  right: 4px;
  width: 4px;
  height: 8px;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(45deg);
}

.mc-deals-filters--sidebar .mc-deals-filter__logo {
  width: 28px;
  height: 28px;
  padding: 3px;
  border-radius: 8px;
  background: var(--surface);
}

.mc-deals-filter__logo--all,
.mc-deals-filter__logo--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-muted) !important;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.mc-deals-filter.is-search-hidden {
  display: none;
}

.mc-deals-sidebar__rows {
  display: grid;
}

.mc-deals-sidebar__rows button {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  min-height: 40px;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border: 0;
  border-bottom: 1px solid var(--surface-soft);
  background: transparent;
  color: var(--ink-alt);
  font-family: inherit;
  font-size: 12px;
  text-align: right;
  cursor: pointer;
}

.mc-deals-sidebar__rows button b {
  color: var(--muted);
  font-size: 11px;
}

.mc-deals-price-range__values {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

.mc-deals-price-range__values b {
  color: var(--ink);
  font-size: 11.5px;
}

.mc-deals-price-range__track {
  position: relative;
  height: 36px;
  margin-block: 8px 2px;
}

.mc-deals-price-range__track::before {
  content: "";
  position: absolute;
  top: 17px;
  right: 0;
  left: 0;
  height: 4px;
  border-radius: 4px;
  background: var(--line);
}

.mc-deals-price-range__track input {
  position: absolute;
  top: 7px;
  right: 0;
  width: 100%;
  height: 24px;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  pointer-events: none;
}

.mc-deals-price-range__track input::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  appearance: none;
  -webkit-appearance: none;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--brand);
  cursor: pointer;
  pointer-events: auto;
}

.mc-deals-price-range__track input::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--brand);
  cursor: pointer;
  pointer-events: auto;
}

.mc-deals-price-range small {
  color: var(--muted);
  font-size: 10px;
}

.mc-deals-sidebar__submit {
  display: none;
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: var(--button-radius);
  background: var(--brand);
  color: var(--white);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
}

.mc-deals-results__toolbar {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}

.mc-deals-results__toolbar strong {
  color: var(--ink);
  font-size: 14px;
}

.mc-deals-sortbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--surface);
}

.mc-deals-sortbar__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-alt);
  font-size: 13px;
  font-weight: 700;
}

.mc-deals-sortbar__chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.mc-deals-sortbar__chips button {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--ink-alt);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.mc-deals-sortbar__chips button.is-active {
  background: color-mix(in srgb, var(--brand) 7%, var(--surface));
  color: var(--brand);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 18%, var(--line));
}

@media (max-width: 980px) and (min-width: 769px) {
  .mc-deals-archive-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .mc-deals-page__hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 8px;
    padding: 0 0 8px;
  }

  .mc-deals-orbit {
    width: 220px;
    justify-self: center;
  }

  .mc-deals-orbit__shop--1 { transform: translateY(-88px); }
  .mc-deals-orbit__shop--2 { transform: rotate(60deg) translateY(-88px) rotate(-60deg); }
  .mc-deals-orbit__shop--3 { transform: rotate(120deg) translateY(-88px) rotate(-120deg); }
  .mc-deals-orbit__shop--4 { transform: rotate(180deg) translateY(-88px) rotate(-180deg); }
  .mc-deals-orbit__shop--5 { transform: rotate(240deg) translateY(-88px) rotate(-240deg); }
  .mc-deals-orbit__shop--6 { transform: rotate(300deg) translateY(-88px) rotate(-300deg); }

  .mc-deals-results__toolbar {
    justify-content: space-between;
  }

  .mc-deals-mobile-filter-toggle {
    margin: 0;
  }

  .mc-deals-sortbar {
    padding: 10px 12px;
    gap: 10px;
  }

  .mc-deals-sortbar__label {
    width: 100%;
  }

  .mc-deals-sortbar__chips {
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .mc-deals-sortbar__chips button {
    flex: 0 0 auto;
  }

  .mc-deals-sidebar.mc-deals-controls {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    max-height: 82vh;
    padding: 0 18px calc(18px + env(safe-area-inset-bottom));
    border: 0;
    border-radius: 20px 20px 0 0;
    transform: translateY(105%);
  }

  .mc-deals-sidebar__head {
    position: sticky;
    top: 0;
    z-index: 3;
    display: flex;
    min-height: 58px;
    margin: 0 -18px 14px;
    padding: 0 18px;
    border-bottom: 1px solid var(--line-soft);
    background: var(--surface);
  }

  .mc-deals-sidebar__title {
    display: none;
  }

  .mc-deals-sidebar__submit {
    display: block;
  }

  .mc-deals-filter-backdrop {
    inset: 0;
  }

  [data-mc-deals-location="archive"].is-filter-open .mc-deals-sidebar {
    transform: translateY(0);
  }
}

/* ========================================================================
   Deals orbit and real-expiry refinement v1.4.0 — central overrides only.
   ======================================================================== */
.mc-deals-page__hero {
  grid-template-columns: minmax(0, 1fr) 300px;
  min-height: 218px;
  gap: 10px;
  margin-block: 0 30px;
  padding: 0;
  overflow: visible;
}

.mc-deals-page__eyebrow {
  min-height: 27px;
  margin-bottom: 7px;
}

.mc-deals-page__title {
  margin-bottom: 5px;
}

.mc-deals-page__lead {
  max-width: 760px;
  line-height: 1.8;
}

.mc-deals-orbit {
  width: 285px;
  margin-block: -25px;
  isolation: isolate;
}

.mc-deals-orbit::before,
.mc-deals-orbit::after {
  content: "";
  position: absolute;
  z-index: 0;
  border: 1px solid color-mix(in srgb, var(--line-strong) 42%, transparent);
  border-radius: 50%;
  pointer-events: none;
}

.mc-deals-orbit::before {
  inset: 4px;
}

.mc-deals-orbit::after {
  inset: 52px;
}

.mc-deals-orbit__track {
  z-index: 0;
  inset: 27px;
  border-color: color-mix(in srgb, var(--line-strong) 55%, transparent);
}

.mc-deals-orbit__track::before {
  inset-block-start: -5px;
  width: 10px;
  height: 10px;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 12%, transparent), 0 0 14px color-mix(in srgb, var(--brand) 55%, transparent);
}

.mc-deals-orbit__track::after {
  inset-block-end: -4px;
  width: 8px;
  height: 8px;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 10%, transparent), 0 0 12px color-mix(in srgb, var(--brand) 50%, transparent);
}

.mc-deals-orbit__shops {
  z-index: 1;
}

.mc-deals-orbit__shop--1 { transform: translateY(-118px); }
.mc-deals-orbit__shop--2 { transform: rotate(60deg) translateY(-118px) rotate(-60deg); }
.mc-deals-orbit__shop--3 { transform: rotate(120deg) translateY(-118px) rotate(-120deg); }
.mc-deals-orbit__shop--4 { transform: rotate(180deg) translateY(-118px) rotate(-180deg); }
.mc-deals-orbit__shop--5 { transform: rotate(240deg) translateY(-118px) rotate(-240deg); }
.mc-deals-orbit__shop--6 { transform: rotate(300deg) translateY(-118px) rotate(-300deg); }

.mc-deals-sidebar.mc-deals-controls {
  position: static;
  top: auto;
}

.mc-deal-card__timer {
  position: absolute;
  z-index: 3;
  inset-block-start: 8px;
  inset-inline-end: 8px;
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding-inline: 8px;
  border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--line));
  border-radius: var(--button-radius);
  background: color-mix(in srgb, var(--brand) 7%, var(--surface));
  color: var(--brand);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

@media (max-width: 768px) {
  .mc-deals-page__hero {
    grid-template-columns: 1fr;
    gap: 0;
    margin-block-end: 16px;
    padding: 0;
  }

  .mc-deals-orbit {
    width: 235px;
    margin-block: -12px -14px;
  }

  .mc-deals-orbit__shop--1 { transform: translateY(-95px); }
  .mc-deals-orbit__shop--2 { transform: rotate(60deg) translateY(-95px) rotate(-60deg); }
  .mc-deals-orbit__shop--3 { transform: rotate(120deg) translateY(-95px) rotate(-120deg); }
  .mc-deals-orbit__shop--4 { transform: rotate(180deg) translateY(-95px) rotate(-180deg); }
  .mc-deals-orbit__shop--5 { transform: rotate(240deg) translateY(-95px) rotate(-240deg); }
  .mc-deals-orbit__shop--6 { transform: rotate(300deg) translateY(-95px) rotate(-300deg); }

  .mc-deals-sidebar.mc-deals-controls {
    position: fixed;
  }
}

/* ========================================================================
   Deals hero color and orbit depth v1.4.1 — central overrides only.
   ======================================================================== */
.mc-deals-page__hero {
  margin-block-end: 44px;
  padding: 10px 22px;
  border-radius: var(--card-radius);
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 16%, var(--surface)) 0%, color-mix(in srgb, var(--brand) 6%, var(--surface)) 58%, var(--surface) 100%);
}

.mc-deals-page__accent,
.mc-deals-page__lead strong {
  color: var(--brand);
}

.mc-deals-page__lead strong {
  font-weight: 900;
}

.mc-deals-orbit::before {
  border-color: color-mix(in srgb, var(--line-strong) 24%, transparent);
}

.mc-deals-orbit::after {
  border-color: color-mix(in srgb, var(--line-strong) 43%, transparent);
}

.mc-deals-orbit__track {
  border-width: 2px;
  border-color: color-mix(in srgb, var(--line-strong) 78%, transparent);
}

.mc-deals-orbit__track::before {
  animation: mc-deals-signal-pulse 1.8s ease-in-out infinite;
}

.mc-deals-orbit__track::after {
  animation: mc-deals-signal-pulse 1.8s .9s ease-in-out infinite;
}

@keyframes mc-deals-signal-pulse {
  0%, 100% { transform: scale(.72); opacity: .65; }
  50% { transform: scale(1.28); opacity: 1; }
}

@media (max-width: 768px) {
  .mc-deals-page__hero {
    margin-block-end: 30px;
    padding: 13px 15px 20px;
  }

  .mc-deals-orbit {
    margin-block-end: -4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mc-deals-orbit__track::before,
  .mc-deals-orbit__track::after {
    animation: none;
  }
}

/* ========================================================================
   Full-bleed deals hero and graduated orbit v1.4.2.
   ======================================================================== */
.mc-deals-page {
  padding-block-start: 0;
}

.mc-deals-page__hero {
  position: relative;
  z-index: 0;
  margin-block-start: 0;
  border-radius: 0;
  background: transparent;
}

.mc-deals-page__hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset-block: 0;
  left: 50%;
  width: 100vw;
  max-width: 100vw;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 16%, var(--surface)) 0%, color-mix(in srgb, var(--brand) 6%, var(--surface)) 58%, var(--surface) 100%);
  transform: translateX(-50%);
  pointer-events: none;
}

.mc-deals-page__hero-content,
.mc-deals-orbit {
  position: relative;
  z-index: 1;
}

.mc-deals-orbit::before,
.mc-deals-orbit::after {
  display: none;
}

.mc-deals-orbit__ring {
  position: absolute;
  z-index: 0;
  border-style: solid;
  border-width: 1px;
  border-radius: 50%;
  pointer-events: none;
}

.mc-deals-orbit__ring--1 {
  inset: 4px;
  border-color: color-mix(in srgb, var(--line-strong) 20%, transparent);
}

.mc-deals-orbit__ring--2 {
  inset: 23px;
  border-color: color-mix(in srgb, var(--line-strong) 34%, transparent);
}

.mc-deals-orbit__track {
  inset: 42px;
  border-width: 1.5px;
  border-color: color-mix(in srgb, var(--line-strong) 49%, transparent);
}

.mc-deals-orbit__ring--3 {
  inset: 61px;
  border-color: color-mix(in srgb, var(--line-strong) 64%, transparent);
}

.mc-deals-orbit__ring--4 {
  inset: 80px;
  border-width: 1.5px;
  border-color: color-mix(in srgb, var(--line-strong) 80%, transparent);
}

@media (max-width: 768px) {
  .mc-deals-page__hero {
    border-radius: 0;
  }
}

/* Deals hero vertical alignment v1.4.3. */
body.page-template-page-deals .mc-breadcrumbs {
  position: relative;
  z-index: 2;
  margin-block-end: 0;
}

body.page-template-page-deals .mc-deals-page__hero {
  margin-block-start: -38px;
  padding-block-start: 28px;
}

@media (max-width: 768px) {
  body.page-template-page-deals .mc-deals-page__hero {
    margin-block-start: -34px;
    padding-block-start: 28px;
  }
}

/* Deals orbit spacing and horizontal overflow fix v1.4.4. */
body.page-template-page-deals {
  overflow-x: clip;
}

body.page-template-page-deals .site-main {
  overflow-x: clip;
}

body.page-template-page-deals .mc-deals-orbit {
  margin-block: -25px;
  transform: translateY(12px);
}

@media (max-width: 768px) {
  body.page-template-page-deals .mc-deals-orbit {
    margin-block: -12px -4px;
    transform: translateY(8px);
  }
}


/* === Deals refinements 2026-09-02 === */
/* Homepage "مشاهده همه" matches the normal-weight section links. */
.mc-deals-section--home .mc-deals-section__more{
  font-weight:400;
}

/* Store deal section: same card language as home, but fixed grid with no horizontal rail. */
[data-mc-deals-location="store"] .mc-deals-products{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  grid-auto-flow:row;
  grid-auto-columns:auto;
  gap:14px;
  overflow:visible;
  padding:2px;
  scroll-snap-type:none;
}
[data-mc-deals-location="store"] .mc-deal-card{
  min-height:390px;
  scroll-snap-align:none;
}
@media(max-width:900px){
  [data-mc-deals-location="store"] .mc-deals-products{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:480px){
  [data-mc-deals-location="store"] .mc-deals-products{
    grid-template-columns:1fr;
    gap:10px;
  }
}


/* Store deals pager: arrows switch fixed card groups; no horizontal scrolling. */
[data-mc-deals-location="store"] .mc-deals-store-rail{
  position:relative;
}
[data-mc-deals-location="store"] .mc-deals-nav--store{
  inset-block-start:46%;
}
[data-mc-deals-location="store"] .mc-deals-nav--prev.mc-deals-nav--store{
  inset-inline-start:6px;
}
[data-mc-deals-location="store"] .mc-deals-nav--next.mc-deals-nav--store{
  inset-inline-end:6px;
}
@media(max-width:768px){
  [data-mc-deals-location="store"] .mc-deals-nav--store{
    width:36px;
    height:36px;
  }
}

/* Store deals arrows: keep buttons cleanly above the rail frame. */
[data-mc-deals-location="store"] .mc-deals-store-rail{
  position:relative;
  overflow:visible;
}
[data-mc-deals-location="store"] .mc-deals-nav--store{
  z-index:12;
  background:var(--surface);
  box-shadow:0 0 0 5px var(--surface), 0 4px 12px var(--shadow-04);
}
[data-mc-deals-location="store"] .mc-deals-nav--prev.mc-deals-nav--store{
  inset-inline-start:-10px;
}
[data-mc-deals-location="store"] .mc-deals-nav--next.mc-deals-nav--store{
  inset-inline-end:-10px;
}
@media(max-width:768px){
  [data-mc-deals-location="store"] .mc-deals-nav--prev.mc-deals-nav--store{
    inset-inline-start:-6px;
  }
  [data-mc-deals-location="store"] .mc-deals-nav--next.mc-deals-nav--store{
    inset-inline-end:-6px;
  }
}
/* Store special offers: one-card step + homepage arrow styling. */
[data-mc-deals-location="store"] .mc-deals-nav--store{
  inset-block-start:34% !important;
  width:42px;
  height:42px;
  z-index:13;
  background:var(--surface);
  border:1px solid var(--line-strong);
  border-radius:50%;
  box-shadow:none;
}
[data-mc-deals-location="store"] .mc-deals-nav--prev.mc-deals-nav--store{
  inset-inline-start:-9px;
  inset-inline-end:auto;
}
[data-mc-deals-location="store"] .mc-deals-nav--next.mc-deals-nav--store{
  inset-inline-end:-9px;
  inset-inline-start:auto;
}

/* Mobile special-offers alignment fix. */
@media(max-width:768px){
  .mc-deals-section--home .mc-deals-section__inner{
    box-sizing:border-box;
  }

  .mc-deals-section--home .mc-deals-widget-shell{
    width:calc(100% + 28px);
    max-width:none;
    margin-inline:-14px;
    box-sizing:border-box;
  }

  [data-mc-deals-location="home"] .mc-deals-controls{
    width:100%;
    max-width:100%;
    box-sizing:border-box;
  }

  [data-mc-deals-location="home"] .mc-deals-filters{
    width:100%;
    max-width:100%;
    margin-inline:0;
    padding:0 3px 4px;
    box-sizing:border-box;
    scroll-padding-inline:3px;
  }

  [data-mc-deals-location="home"] .mc-deals-rail{
    position:relative;
    isolation:isolate;
    overflow:visible;
  }

  [data-mc-deals-location="home"] .mc-deals-products{
    position:relative;
    z-index:1;
  }

  [data-mc-deals-location="home"] .mc-deals-nav,
  [data-mc-deals-location="store"] .mc-deals-nav--store{
    width:36px;
    height:36px;
    z-index:20;
    background:var(--surface);
    box-shadow:0 3px 12px var(--shadow-10);
  }

  [data-mc-deals-location="home"] .mc-deals-nav--prev,
  [data-mc-deals-location="store"] .mc-deals-nav--prev.mc-deals-nav--store{
    inset-inline-start:2px;
  }

  [data-mc-deals-location="home"] .mc-deals-nav--next,
  [data-mc-deals-location="store"] .mc-deals-nav--next.mc-deals-nav--store{
    inset-inline-end:2px;
  }
}
