/* ============================================================
   Offers — dreamer theme palette
   ============================================================ */

.offers-page {
  --bg-0:        #f0f2f5;
  --bg-1:        #ffffff;
  --bg-2:        #f1f3f5;
  --bg-3:        #e9ecef;
  --line:        #dee2e8;
  --line-soft:   #e8ebef;
  --fg-0:        #1a1d23;
  --fg-1:        #3d4451;
  --fg-2:        #606b7a;
  --fg-3:        #8b96a5;
  --accent:      #285ccc;
  --accent-soft: rgba(40, 92, 204, 0.10);
  --success:     #27ae60;
  --danger:      #e74c3c;
  --upcoming:    #2563eb;
  --accent-dark: #3749bb;
  --r-sm:        4px;
  --r-md:        8px;
  --r-lg:        14px;
  --r-xl:        18px;
  padding-bottom: 40px;
  color: var(--fg-0);
}

.offers-page .breadcrumb {
  margin-bottom: 18px;
}

/* ── Meta utils ──────────────────────────────────────────── */

.meta-lbl {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
}

/* ── Offer list: uniform 3-col grid ─────────────────────── */

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.offer-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-1);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.offer-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.offer-card__img {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-2);
}

.offer-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
}

.offer-visual-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-0));
}

.offer-card__body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.offer-card__meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.offer-meta-date,
.offer-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--fg-2);
}

.offer-card__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--fg-0);
  line-height: 1.2;
}

.offer-card__sub {
  margin: 0;
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.4;
}

.offer-card__btn {
  display: block;
  text-align: center;
  margin-top: auto;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--r-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: background 120ms ease;
}

.offer-card__btn:hover {
  background: var(--accent-dark);
}

/* ── Detail: top bar ─────────────────────────────────────── */

.offer-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.offer-topbar__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--fg-0);
  text-decoration: none;
}

.offer-topbar__back:hover {
  color: var(--accent);
}

.offer-topbar__countdown {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.otc-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-2);
  white-space: nowrap;
}

/* ── Countdown blocks: red style ─────────────────────────── */

.offer-hero-countdown {
  display: flex;
  gap: 6px;
  align-items: flex-start;
}

.ohc-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.ohc-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: #e74c3c;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.ohc-lbl {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-3);
}

/* ── Detail: hero image ──────────────────────────────────── */

.offer-hero-img {
  margin-bottom: 20px;
  border-radius: var(--r-lg);
  overflow: hidden;
}

.offer-hero-img img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: center bottom;
  display: block;
}

/* ── Detail: head section ────────────────────────────────── */

.offer-detail-head {
  margin-bottom: 20px;
}

.offer-detail-title {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 700;
  color: var(--fg-0);
}

.offer-detail-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

/* ── Coupon ──────────────────────────────────────────────── */

.coupon-row {
  padding-top: 8px;
}

.coupon {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.coupon-code {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 200px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  background: var(--accent-dark);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.coupon-code:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(40, 92, 204, 0.22);
}

.offer-coupon__status {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Rich text / terms / gallery ─────────────────────────── */

.offer-richtext,
.offer-terms,
.offer-gallery-strip {
  margin-bottom: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-1);
}

.terms-head {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}

.terms-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 20px;
}

.terms-list li {
  color: var(--fg-2);
  padding-left: 18px;
  position: relative;
  font-size: 14px;
}

.terms-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.offer-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.offer-gallery__item {
  overflow: hidden;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
}

.offer-gallery__item img {
  width: 100%;
  display: block;
}

/* ── Upcoming block ──────────────────────────────────────── */

.offer-upcoming-block {
  margin-bottom: 24px;
  padding: 32px 20px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-1);
}

.offer-upcoming-block .offer-hero-countdown {
  justify-content: center;
}

.offer-upcoming-block .ohc-num {
  width: 56px;
  height: 56px;
  font-size: 24px;
}

.offer-upcoming-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--fg-1);
  margin: 0 0 12px;
}

.offer-upcoming-block .otc-label {
  display: block;
  margin-bottom: 10px;
}

/* ── Products section ────────────────────────────────────── */

.products-section {
  padding: 0 0 40px;
}

.products-title {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 700;
  color: var(--fg-0);
}

.products-section__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px;
}

.products-section__head .products-title {
  margin: 8px 0 0;
}

#offer-detail .offer-product-search {
  position: relative;
  flex: 0 1 380px;
  margin: 0;
  z-index: 5;
}

#offer-detail .offer-product-search__control {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0 10px 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

#offer-detail .offer-product-search__control:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(55, 73, 187, 0.12);
}

#offer-detail .offer-product-search__control .fa {
  flex: 0 0 auto;
  color: var(--fg-3);
}

#offer-detail .offer-product-search input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fg-0);
  outline: 0;
  font-size: 14px;
}

#offer-detail .offer-product-search__clear {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--fg-2);
  cursor: pointer;
  font-size: 18px;
  line-height: 24px;
  padding: 0;
}

#offer-detail .offer-product-search__clear:hover {
  background: var(--danger);
  color: #fff;
}

#offer-detail .offer-product-search__status {
  min-height: 18px;
  margin-top: 5px;
  font-size: 12px;
  color: var(--fg-2);
}













#offer-detail .offer-category-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(8px);
}

#offer-detail .offer-category-nav__title {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--fg-0);
  white-space: nowrap;
}

#offer-detail .offer-category-nav__list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}

#offer-detail .offer-category-nav__item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--fg-1);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

#offer-detail .offer-category-nav__item small {
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--fg-2);
  font-size: 11px;
  font-weight: 700;
}

#offer-detail .offer-category-nav__item:hover,
#offer-detail .offer-category-nav__item.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

#offer-detail .offer-category-nav__item:hover small,
#offer-detail .offer-category-nav__item.active small {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

@media (max-width: 640px) {
  #offer-detail .offer-category-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  #offer-detail .offer-category-nav__list {
    width: 100%;
  }
}

#offer-detail .offer-products-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
  align-items: stretch;
  width: 100%;
}

.product-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-1);
  color: var(--fg-0);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.product-card:hover,
.product-card:focus {
  color: var(--fg-0);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.10);
}

.product-img {
  position: relative;
  aspect-ratio: 1;
  background: var(--bg-1);
}

.product-img a {
  display: block;
  width: 100%;
  height: 100%;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.offer-save {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Global badge stack (top-right of product image) ──────── */

.product-badge-stack {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.product-badge--text {
  display: inline-block;
  max-width: min(120px, 44vw);
  padding: 3px 8px;
  border-radius: 4px;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-badge--img {
  max-width: 56px;
  height: auto;
  display: block;
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 14px 16px;
  flex: 1;
}

.product-name {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  min-height: 2.7em;
  overflow-wrap: anywhere;
}

.product-name a {
  color: var(--fg-0);
  text-decoration: none;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.price-now {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.price-was {
  font-size: 13px;
  color: var(--fg-3);
  text-decoration: line-through;
}

.price-stock {
  font-size: 13px;
  color: var(--fg-3);
}

/* ── Product actions ─────────────────────────────────────── */

.offer-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

.btn-cart,
.offer-link-inline {
  flex: 1;
  min-height: 38px;
  padding: 0 12px;
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-cart {
  background: var(--accent);
  color: #fff;
}

.btn-cart:hover {
  background: var(--accent-dark);
}

.offer-link-inline {
  background: transparent;
  border-color: var(--line);
  color: var(--fg-1);
}

.offer-link-inline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── State messages ──────────────────────────────────────── */

.offer-message {
  margin-bottom: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-1);
}

.offer-message--expired {
  border-left: 4px solid var(--danger);
}

.offers-empty {
  padding: 40px 20px;
  text-align: center;
}

.offers-empty a.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--r-md);
  text-decoration: none;
  font-weight: 600;
  margin-top: 12px;
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 1100px) {


#offer-detail .offer-products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}

@media (max-width: 860px) {
  .offer-grid { grid-template-columns: repeat(2, 1fr); }


#offer-detail .offer-products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .offer-gallery { grid-template-columns: repeat(2, 1fr); }
  .terms-list { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .offer-grid,
  .offer-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }


#offer-detail .offer-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .offer-topbar { flex-direction: column; align-items: flex-start; }
  .products-section__head { align-items: stretch; flex-direction: column; }
  #offer-detail .offer-product-search { flex-basis: auto; width: 100%; }
  .ohc-num { width: 38px; height: 38px; font-size: 16px; }
}

@media (max-width: 380px) {


#offer-detail .offer-products-grid { grid-template-columns: 1fr !important; }
}

/* ── Offer detail redesign — header, meta, coupon/terms row ── */

.offer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px 0 10px;
  gap: 12px;
  background: var(--bg-1);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  margin-bottom: 0;
}

.offer-header__left {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.offer-header__back {
  flex-shrink: 0;
  color: var(--fg-1);
  text-decoration: none;
  display: flex;
  align-items: center;
  margin-top: 2px;
}

.offer-header__back:hover {
  color: var(--accent);
}

.offer-header__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--fg-0);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.offer-header__pill {
  display: inline-flex;
  flex-shrink: 0;
  max-width: 100%;
  background: var(--danger);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
  align-self: flex-start;
  margin-top: 2px;
}

.offer-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 10px 0 14px;
  font-size: 13px;
  color: var(--fg-2);
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 0;
}

.offer-ct-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 0;
}

.offer-coupon-col {}

.offer-coupon-col .coupon-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 12px 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--r-md);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 6px;
  transition: background 120ms ease;
}

.offer-coupon-col .coupon-code:hover {
  background: var(--accent-dark);
}

.offer-coupon-col .coupon-code span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: left;
}

.offer-coupon-col .offer-coupon__status {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.85;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.offer-terms-col .terms-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.offer-terms-col .terms-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 16px;
}

.offer-terms-col .terms-list li {
  min-width: 0;
  font-size: 13px;
  color: var(--fg-1);
  display: flex;
  align-items: flex-start;
  gap: 5px;
  overflow-wrap: anywhere;
  padding-left: 0;
}

.offer-terms-col .terms-list li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
  position: static;
}

.offer-ct-row.offer-ct-row--coupon-only,
.offer-ct-row.offer-ct-row--terms-only {
  grid-template-columns: 1fr;
}

@media (max-width: 768px) {
  .offer-ct-row {
    grid-template-columns: 1fr;
  }
  .offer-header {
    align-items: stretch;
  }
  .offer-header__pill {
    font-size: 10px;
    padding: 5px 9px;
    white-space: normal;
  }
}

@media (max-width: 420px) {
  .offer-coupon-col .coupon-code {
    align-items: flex-start;
    flex-direction: column;
  }

  .offer-coupon-col .offer-coupon__status {
    flex-shrink: 1;
  }

  .offer-terms-col .terms-list {
    grid-template-columns: 1fr;
  }
}

/* Offer detail uses the storefront product-card visual language, trimmed for campaign browsing. */
.offer-countdown-block {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 0;
}

.offer-countdown-block .offer-hero-countdown {
  flex-wrap: wrap;
}

/* Shortcode-injected countdown: center the widget regardless of editor wrapping */
.offer-richtext .offer-countdown-block {
  justify-content: center;
  flex-wrap: wrap;
}
.offer-richtext .offer-countdown-block .offer-hero-countdown {
  justify-content: center;
}

#offer-detail .offer-products-grid > .offer-product-layout {
  display: block !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
  grid-column: auto !important;
}

#offer-detail .offer-products-grid .product-thumb {
  width: 100%;
  height: 100%;
  background: #fff;
}

.offer-product-thumb .caption {
  flex: 0 0 auto;
}

.offer-product-thumb .price {
  margin-top: auto;
  min-height: 28px;
}

.offer-product-thumb .image {
  background: #fff;
}

@media (max-width: 540px) {
  .offer-countdown-block {
    align-items: flex-start;
    flex-direction: column;
  }
  .offer-richtext .offer-countdown-block {
    align-items: center;
  }
}

/* ── Two-column layout ── */
.offer-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding-top: 20px;
  padding-bottom: 40px;
}

/* ── Sidebar ── */
.offer-sidebar {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: 16px;
}
.offer-sidebar__inner {
  background: #fff;
  border: 1px solid #e2e6ef;
  border-radius: 6px;
  padding: 14px;
}
.offer-sidebar__heading {
  font-size: 13px;
  font-weight: 700;
  color: #333;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid #e8ecf8;
}
.offer-sidebar__cats { display: flex; flex-direction: column; gap: 2px; margin-bottom: 16px; }
.offer-sidebar__cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 13px;
  color: #333;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s;
}
.offer-sidebar__cat-item:hover,
.offer-sidebar__cat-item.active {
  background: #edf0ff;
  color: #3749bb;
}
.offer-sidebar__cat-count {
  font-size: 11px;
  color: #888;
  background: #f0f2f8;
  border-radius: 10px;
  padding: 1px 6px;
}
.offer-sidebar__coupon {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #eee;
}
.offer-sidebar__coupon-label { font-size: 11px; color: #888; margin-bottom: 4px; }
.offer-sidebar__coupon-btn {
  width: 100%;
  border: 1px dashed #3749bb;
  border-radius: 4px;
  background: #f8f9ff;
  color: #3749bb;
  padding: 6px;
  font-size: 13px;
  font-family: monospace;
  font-weight: 700;
  letter-spacing: .08em;
  cursor: pointer;
  text-align: center;
}
.offer-sidebar__dates {
  margin-top: 12px;
  font-size: 11px;
  color: #888;
}

/* ── Main content area ── */
.offer-main { flex: 1; min-width: 0; }

/* ── Filter sidebar (category page) ── */
.offer-filter-sidebar .offer-sidebar__inner { padding: 12px; }
.offer-filter-section { margin-bottom: 16px; }
.offer-filter-section__title {
  font-size: 12px;
  font-weight: 700;
  color: #444;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 6px;
}
.offer-filter-price-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.offer-filter-price-row input { width: 80px; }
.offer-filter-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: normal;
  cursor: pointer;
  margin-bottom: 4px;
}
.offer-filter-count { color: #999; }
.offer-filter-clear-link { color: #888; text-decoration: none; }
.offer-filter-clear-link:hover { text-decoration: underline; }

/* ── Category page banner ── */
.offer-cat-breadcrumb { font-size: 12px; color: #888; padding-top: 12px; padding-bottom: 8px; }
.offer-cat-breadcrumb a { color: #3749bb; text-decoration: none; }
.offer-cat-banner {
  background: linear-gradient(90deg, #3749bb, #6c63ff);
  color: #fff;
  border-radius: 6px;
  padding: 14px 20px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.offer-cat-banner__title { font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.offer-cat-banner__count { font-size: 12px; opacity: .8; }
.offer-cat-banner__right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.offer-cat-banner__countdown { background: rgba(255,255,255,.15); border-radius: 20px; padding: 4px 10px; font-size: 13px; font-weight: 700; }
.offer-cat-banner__coupon { text-align: center; }
.offer-cat-banner__coupon-label { font-size: 10px; opacity: .75; margin-bottom: 2px; }
.offer-cat-banner .coupon-code {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 4px;
  color: #fff;
  font-family: monospace;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .1em;
  padding: 4px 10px;
  cursor: pointer;
}

/* ── Category controls bar ── */
.offer-cat-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 10px;
}
.offer-cat-count { font-size: 13px; color: #667085; }
.offer-cat-sort { width: auto; }

/* ── Responsive ── */
@media (max-width: 991px) {
  .offer-layout { flex-direction: column; }
  .offer-sidebar {
    width: 100%;
    position: static;
    overflow-x: auto;
  }
  .offer-sidebar__inner { padding: 10px; }
  .offer-sidebar__cats {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 4px;
  }
  .offer-sidebar__cat-item { white-space: nowrap; flex-shrink: 0; }
  .offer-filter-sidebar .offer-sidebar__cats { flex-direction: column; }
}
@media (max-width: 575px) {
  .offer-products-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
}
