.erdokan-offer-main {
  padding-bottom: 3rem;
}

.erdokan-offer-hero {
  padding-top: 1.25rem;
}

.erdokan-offer-banner {
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 1rem;
  background: #0f172a;
}

.erdokan-offer-banner img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}

.erdokan-offer-slider {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 2.5 / 1;
  background: #0f172a;
  margin-bottom: 0.5rem;
}

.erdokan-offer-slider__track {
  position: absolute;
  inset: 0;
}

.erdokan-offer-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 700ms ease, visibility 700ms ease;
}

.erdokan-offer-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.erdokan-offer-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.erdokan-offer-slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.erdokan-offer-slider__btn--prev { left: 12px; }
.erdokan-offer-slider__btn--next { right: 12px; }

.erdokan-offer-slider__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.erdokan-offer-slider__dots button {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
}

.erdokan-offer-slider__dots button.is-active {
  background: #fff;
  width: 18px;
}

.erdokan-offer-intro {
  padding-top: 1.5rem;
  padding-bottom: 1rem;
}

.erdokan-offer-dates {
  font-weight: 600;
  color: var(--pb-brand, #2563eb);
}

.erdokan-offer-note {
  color: #b45309;
  font-size: 0.95rem;
}

/* Upcoming countdown — brand-linked, animated */
.erdokan-offer-countdown-wrap {
  padding: 1.25rem 0 0.5rem;
}

.erdokan-offer-countdown {
  --eo-count-from: var(--pb-brand-primary, #1e4fd6);
  --eo-count-mid: var(--pb-brand-mid, #3b82f6);
  --eo-count-to: var(--pb-brand-deep, #1d4ed8);
  --eo-count-action: var(--pb-action-blue, #2563eb);
  --eo-count-rgb: var(--pb-theme-rgb, 37, 99, 235);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 80% at 10% 0%, rgba(255, 255, 255, 0.22) 0%, transparent 55%),
    radial-gradient(90% 70% at 90% 100%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
    linear-gradient(125deg, var(--eo-count-from) 0%, var(--eo-count-action) 48%, var(--eo-count-to) 100%);
  border-radius: 22px;
  padding: 1.85rem 1.25rem 1.6rem;
  text-align: center;
  color: #fff;
  box-shadow:
    0 16px 36px rgba(var(--eo-count-rgb), 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: background 320ms ease, box-shadow 320ms ease;
}

.erdokan-offer-countdown::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  z-index: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.18) 48%,
    transparent 66%
  );
  transform: translateX(-30%);
  animation: eo-countdown-sheen 5.5s ease-in-out infinite;
  pointer-events: none;
}

.erdokan-offer-countdown > * {
  position: relative;
  z-index: 1;
}

@keyframes eo-countdown-sheen {
  0%, 40% { transform: translateX(-40%); opacity: 0; }
  55% { opacity: 1; }
  100% { transform: translateX(40%); opacity: 0; }
}

.erdokan-offer-countdown__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--eo-count-from);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 0.38rem 0.95rem;
  border-radius: 999px;
  margin-bottom: 0.8rem;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
  animation: eo-badge-pop 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes eo-badge-pop {
  from { transform: translateY(6px) scale(0.92); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.erdokan-offer-countdown__title {
  margin: 0 0 1.15rem;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(15, 23, 42, 0.18);
  animation: eo-title-in 650ms cubic-bezier(0.22, 1, 0.36, 1) 80ms both;
}

@keyframes eo-title-in {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.erdokan-offer-countdown__grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem 0.4rem;
}

.erdokan-offer-countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 4.5rem;
}

.erdokan-offer-countdown__value {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 4.6rem;
  height: 4.6rem;
  padding: 0 0.55rem;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #0f172a;
  border-radius: 16px;
  font-size: clamp(1.65rem, 4vw, 2.2rem);
  font-weight: 800;
  line-height: 1;
  box-shadow:
    0 10px 22px rgba(15, 23, 42, 0.16),
    inset 0 1px 0 #fff;
  overflow: hidden;
  perspective: 240px;
}

.erdokan-offer-countdown__value.is-seconds {
  color: var(--eo-count-action);
  box-shadow:
    0 10px 22px rgba(var(--eo-count-rgb), 0.22),
    inset 0 1px 0 #fff,
    0 0 0 2px rgba(255, 255, 255, 0.35);
  animation: eo-seconds-glow 1.2s ease-in-out infinite;
}

@keyframes eo-seconds-glow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1px); }
}

.erdokan-offer-countdown__digit {
  display: inline-block;
  transform-origin: 50% 50%;
}

.erdokan-offer-countdown__digit.is-flip {
  animation: eo-digit-flip 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes eo-digit-flip {
  0% { transform: translateY(45%) rotateX(-70deg); opacity: 0.15; filter: blur(1px); }
  55% { transform: translateY(-6%) rotateX(8deg); opacity: 1; filter: none; }
  100% { transform: none; opacity: 1; }
}

.erdokan-offer-countdown__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.erdokan-offer-countdown__sep {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 1.4rem;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
  animation: eo-sep-pulse 1.2s ease-in-out infinite;
}

@keyframes eo-sep-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.erdokan-offer-countdown__note {
  margin: 1.2rem 0 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 8px rgba(15, 23, 42, 0.15);
}

@media (prefers-reduced-motion: reduce) {
  .erdokan-offer-countdown::before,
  .erdokan-offer-countdown__badge,
  .erdokan-offer-countdown__title,
  .erdokan-offer-countdown__value.is-seconds,
  .erdokan-offer-countdown__digit.is-flip,
  .erdokan-offer-countdown__sep {
    animation: none !important;
  }
}

/* Rules cards */
.erdokan-offer-rules {
  padding: 1.75rem 0 0.5rem;
}

.erdokan-offer-rules__title {
  margin: 0 0 1rem;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 800;
  color: #0f172a;
}

.erdokan-offer-rules__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.erdokan-offer-rule {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.1rem 1rem 1.15rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.erdokan-offer-rule__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
}

.erdokan-offer-rule h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}

.erdokan-offer-rule p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #6b7280;
}

.erdokan-offer-products-wrap {
  margin-top: 1rem;
}

.erdokan-offer-lock-note {
  --eo-lock-from: var(--pb-brand-primary, #1e4fd6);
  --eo-lock-mid: var(--pb-brand-mid, #3b82f6);
  --eo-lock-action: var(--pb-action-blue, #2563eb);
  --eo-lock-rgb: var(--pb-theme-rgb, 37, 99, 235);
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin: 0 0 1.15rem;
  padding: 1rem 1.15rem;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, 0.18) 0%, transparent 55%),
    linear-gradient(120deg, var(--eo-lock-from) 0%, var(--eo-lock-action) 55%, var(--eo-lock-mid) 100%);
  box-shadow:
    0 12px 28px rgba(var(--eo-lock-rgb), 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: eo-lock-in 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.erdokan-offer-lock-note::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.erdokan-offer-lock-note--open {
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, 0.2) 0%, transparent 55%),
    linear-gradient(120deg, var(--eo-lock-action) 0%, var(--eo-lock-mid) 60%, #22c55e 130%);
}

.erdokan-offer-lock-note__icon {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  color: var(--eo-lock-from);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
  position: relative;
  z-index: 1;
}

.erdokan-offer-lock-note--open .erdokan-offer-lock-note__icon {
  color: #15803d;
}

.erdokan-offer-lock-note__body {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.erdokan-offer-lock-note__title {
  display: block;
  margin: 0 0 0.2rem;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.3;
  color: #fff;
}

.erdokan-offer-lock-note__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}

@keyframes eo-lock-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .erdokan-offer-lock-note { animation: none; }
}

/* Theme forces ul.products to 4 cols with !important — beat it here. */
body.erdokan-offer-page .erdokan-offer-products-wrap ul.products,
body.erdokan-offer-page .erdokan-offer-products ul.products,
.erdokan-offer-products-wrap ul.products,
.erdokan-offer-products ul.products {
  display: grid !important;
  grid-template-columns: repeat(var(--erdokan-offer-cols, 5), minmax(0, 1fr)) !important;
  gap: 1rem !important;
  list-style: none;
  margin: 0 !important;
  padding: 0;
  float: none !important;
  width: 100% !important;
}

body.erdokan-offer-cols-2 .erdokan-offer-products ul.products { --erdokan-offer-cols: 2; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
body.erdokan-offer-cols-3 .erdokan-offer-products ul.products { --erdokan-offer-cols: 3; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
body.erdokan-offer-cols-4 .erdokan-offer-products ul.products { --erdokan-offer-cols: 4; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
body.erdokan-offer-cols-5 .erdokan-offer-products ul.products { --erdokan-offer-cols: 5; grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
body.erdokan-offer-cols-6 .erdokan-offer-products ul.products { --erdokan-offer-cols: 6; grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }

/* Same-page category filter (Midmart-style cards) */
.erdokan-offer-cats {
  margin: 0 0 1.5rem;
}

.erdokan-offer-cats__title {
  margin: 0 0 0.9rem;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-weight: 800;
  color: #0f172a;
}

.erdokan-offer-cats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 0.75rem;
}

.erdokan-offer-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.85rem 0.55rem 0.75rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  cursor: pointer;
  text-align: center;
  color: #0f172a;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.erdokan-offer-cat:hover {
  border-color: #fda4af;
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.08);
  transform: translateY(-2px);
}

.erdokan-offer-cat.is-active {
  border-color: #e11d48;
  box-shadow: 0 0 0 2px rgba(225, 29, 72, 0.15);
}

.erdokan-offer-cat__thumb {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #ffe4e6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.erdokan-offer-cat__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.erdokan-offer-cat__thumb .pb-icon {
  width: 28px;
  height: 28px;
  color: #e11d48;
}

.erdokan-offer-cat__fallback {
  font-weight: 800;
  color: #e11d48;
}

.erdokan-offer-cat__name {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.erdokan-offer-product.is-cat-hidden {
  display: none !important;
}

/* Special offer sale badge + price treatment */
.erdokan-offer-products .pb-card__media .pb-badge--sale,
.erdokan-offer-page .erdokan-offer-products .pb-badge.pb-badge--sale {
  --eo-sale-from: var(--pb-brand-primary, #1e4fd6);
  --eo-sale-action: var(--pb-action-blue, #2563eb);
  --eo-sale-mid: var(--pb-brand-mid, #3b82f6);
  --eo-sale-rgb: var(--pb-theme-rgb, 37, 99, 235);
  top: 0.55rem;
  left: 0.55rem;
  min-width: 3.1rem;
  justify-content: center;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #fff !important;
  background:
    radial-gradient(120% 120% at 20% 0%, rgba(255, 255, 255, 0.35) 0%, transparent 55%),
    linear-gradient(135deg, var(--eo-sale-from) 0%, var(--eo-sale-action) 55%, var(--eo-sale-mid) 100%) !important;
  box-shadow:
    0 8px 18px rgba(var(--eo-sale-rgb), 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.35);
  transform-origin: left top;
  animation: eo-sale-badge-in 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.erdokan-offer-products .pb-card__media .pb-badge--sale::after {
  content: "OFF";
  display: block;
  margin-top: 0.12rem;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  opacity: 0.92;
}

@keyframes eo-sale-badge-in {
  from { opacity: 0; transform: scale(0.7) translateY(-4px); }
  to { opacity: 1; transform: none; }
}

.erdokan-offer-products li.product:hover .pb-badge--sale {
  animation: eo-sale-badge-pulse 900ms ease-in-out infinite;
}

@keyframes eo-sale-badge-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.erdokan-offer-products ul.products li.product .price,
.erdokan-offer-products .pb-card .price {
  display: flex !important;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem !important;
  margin: 0.3rem 0 0.2rem !important;
}

.erdokan-offer-products .price ins {
  order: 1;
  text-decoration: none !important;
  color: var(--pb-action-blue, #2563eb) !important;
  font-size: 1.22rem !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.erdokan-offer-products .price ins .woocommerce-Price-amount {
  background: linear-gradient(120deg, var(--pb-brand-primary, #1e4fd6), var(--pb-action-blue, #2563eb));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
}

.erdokan-offer-products .price del {
  order: 2;
  font-size: 0.78rem !important;
  color: #94a3b8 !important;
  font-weight: 600 !important;
  opacity: 0.95;
  position: relative;
}

.erdokan-offer-products .price del::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 52%;
  height: 1.5px;
  background: #94a3b8;
  transform: rotate(-8deg);
  opacity: 0.85;
  pointer-events: none;
}

.erdokan-offer-save {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0.15rem 0 0.35rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #166534;
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  border: 1px solid #86efac;
  box-shadow: 0 4px 10px rgba(22, 101, 52, 0.1);
  width: fit-content;
}

.erdokan-offer-save .woocommerce-Price-amount {
  color: inherit !important;
  font-weight: 900;
}

.erdokan-offer-save__label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.62rem;
  opacity: 0.9;
}

@media (prefers-reduced-motion: reduce) {
  .erdokan-offer-products .pb-card__media .pb-badge--sale,
  .erdokan-offer-products li.product:hover .pb-badge--sale {
    animation: none !important;
  }
}

.erdokan-offer-filter-empty {
  padding: 1.5rem 0;
  text-align: center;
  color: #6b7280;
}

/* FAQ accordion */
.erdokan-offer-faq {
  padding: 2rem 0 0.5rem;
}

.erdokan-offer-faq__title {
  margin: 0 0 1rem;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 800;
  color: #0f172a;
}

.erdokan-offer-faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 820px;
}

.erdokan-offer-faq__item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
}

.erdokan-offer-faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 1rem 1.1rem;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}

.erdokan-offer-faq__icon {
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
  position: relative;
}

.erdokan-offer-faq__icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: translateY(-15%) rotate(45deg);
  transition: transform 160ms ease;
}

.erdokan-offer-faq__item.is-open .erdokan-offer-faq__icon::before {
  transform: translateY(25%) rotate(-135deg);
}

.erdokan-offer-faq__a {
  padding: 0 1.1rem 1rem;
}

.erdokan-offer-faq__a p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #6b7280;
}

@media (max-width: 1024px) {
  .erdokan-offer-rules__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.erdokan-offer-page .erdokan-offer-products-wrap ul.products,
  body.erdokan-offer-page .erdokan-offer-products ul.products,
  body.erdokan-offer-cols-2 .erdokan-offer-products ul.products,
  body.erdokan-offer-cols-3 .erdokan-offer-products ul.products,
  body.erdokan-offer-cols-4 .erdokan-offer-products ul.products,
  body.erdokan-offer-cols-5 .erdokan-offer-products ul.products,
  body.erdokan-offer-cols-6 .erdokan-offer-products ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  body.erdokan-offer-page .erdokan-offer-products-wrap ul.products,
  body.erdokan-offer-page .erdokan-offer-products ul.products,
  body.erdokan-offer-cols-2 .erdokan-offer-products ul.products,
  body.erdokan-offer-cols-3 .erdokan-offer-products ul.products,
  body.erdokan-offer-cols-4 .erdokan-offer-products ul.products,
  body.erdokan-offer-cols-5 .erdokan-offer-products ul.products,
  body.erdokan-offer-cols-6 .erdokan-offer-products ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .erdokan-offer-slider {
    aspect-ratio: 16 / 9;
  }
  .erdokan-offer-banner img {
    max-height: 220px;
  }
  .erdokan-offer-countdown {
    padding: 1.35rem 1rem 1.25rem;
  }
  .erdokan-offer-countdown__unit {
    min-width: 3.5rem;
  }
  .erdokan-offer-countdown__value {
    min-width: 3.5rem;
    height: 3.5rem;
  }
  .erdokan-offer-countdown__sep {
    margin-bottom: 1.1rem;
  }
  .erdokan-offer-rules__grid {
    grid-template-columns: 1fr;
  }
}

/* —— Site popup (Midmart-style: page underneath stays usable) —— */
.erdokan-popup {
  position: fixed;
  inset: 0;
  z-index: 140; /* below .pb-bottom-nav (150) so mobile nav stays clickable */
  display: grid;
  place-items: center;
  padding: 1rem;
  padding-bottom: calc(1rem + var(--pb-bottom-nav-h, 64px));
  /* Clicks pass through dimmed area to the page / bottom nav. */
  pointer-events: none;
}
.erdokan-popup[hidden] {
  display: none !important;
}
.erdokan-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 33, 28, 0.45);
  pointer-events: none;
}
.erdokan-popup__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 400px);
  max-height: min(78vh, 680px);
  overflow: auto;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.38);
  pointer-events: auto;
}
.erdokan-popup__close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 3;
  width: 2.15rem;
  height: 2.15rem;
  border: 0;
  border-radius: 999px;
  background: rgba(55, 65, 81, 0.88);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.erdokan-popup__media {
  display: block;
  background: #f3f4f6;
  text-align: center;
}
.erdokan-popup__media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: cover;
  margin-inline: auto;
}
.erdokan-popup__media--auto img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}
.erdokan-popup__media--fixed img {
  max-width: 100%;
  max-height: none;
  object-fit: fill;
}
.erdokan-popup__body {
  padding: 1.2rem 1.25rem 1.35rem;
  text-align: center;
}
.erdokan-popup__title {
  margin: 0 0 0.55rem;
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.25;
  color: #111827;
  letter-spacing: -0.02em;
}
.erdokan-popup__desc {
  margin: 0 auto 1rem;
  max-width: 34ch;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #6b7280;
}
.erdokan-popup__countdown {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.erdokan-popup__cd-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #374151;
  margin-right: 0.15rem;
}
.erdokan-popup__cd-unit {
  display: inline-grid;
  justify-items: center;
  gap: 0.1rem;
  min-width: 2.4rem;
  padding: 0.3rem 0.35rem;
  border-radius: 8px;
  background: #111827;
  color: #fff;
}
.erdokan-popup__cd-unit strong {
  font-size: 0.95rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.erdokan-popup__cd-unit small {
  font-size: 0.58rem;
  font-weight: 700;
  opacity: 0.75;
}
.erdokan-popup__actions {
  display: grid;
  gap: 0.65rem;
}
.erdokan-popup--promo .erdokan-popup__actions {
  grid-template-columns: 1fr;
}
.erdokan-popup--sale .erdokan-popup__actions {
  grid-template-columns: 1fr 1fr;
}
.erdokan-popup__later,
.erdokan-popup__shop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.erdokan-popup__later {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #111827;
  order: 1;
}
.erdokan-popup__later:hover {
  background: #f9fafb;
}
.erdokan-popup__shop {
  order: 2;
}
.erdokan-popup--promo .erdokan-popup__shop {
  order: 0;
}
.erdokan-popup--promo .erdokan-popup__later {
  order: 1;
}
.erdokan-popup__shop--dark {
  border: 0;
  background: #111827;
  color: #fff;
}
.erdokan-popup__shop--dark:hover {
  background: #000;
  color: #fff;
}
.erdokan-popup__shop--brand {
  border: 0;
  background: #e11d48;
  color: #fff;
}
.erdokan-popup__shop--brand:hover {
  background: #be123c;
  color: #fff;
}
.erdokan-popup__shop--image {
  display: flex;
  padding: 0;
  border: 0;
  background: transparent;
  min-height: 0;
}
.erdokan-popup__shop--image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 64px;
  object-fit: contain;
}
.erdokan-popup--sale .erdokan-popup__body {
  text-align: left;
}
.erdokan-popup--sale .erdokan-popup__desc {
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}
.erdokan-popup--sale .erdokan-popup__countdown {
  justify-content: flex-start;
}
@media (max-width: 420px) {
  .erdokan-popup__dialog {
    width: min(100%, 360px);
    border-radius: 18px;
  }
  .erdokan-popup__media img {
    max-height: 220px;
  }
  .erdokan-popup--sale .erdokan-popup__actions {
    grid-template-columns: 1fr 1fr;
  }
}
