/* RupBaz Offers page — v2.2.0 (design approved 26 Oct 2026) */
body.rbd-offers-page .entry-header,
body.rbd-offers-page h1.entry-title { display: none !important; }

.rbd-of {
	--n: #140958; --o: #F16522; --o2: #C8490A; --mut: #5F5C75; --line: #ECEAF3; --line2: #DCD9E8;
	font-family: 'Plus Jakarta Sans', system-ui, sans-serif; color: var(--n);
	display: flex; flex-direction: column; gap: 24px; margin: 8px 0 48px;
}
.rbd-of *, .rbd-of *::before, .rbd-of *::after { box-sizing: border-box; }
.rbd-of h1, .rbd-of h2, .rbd-of p { margin: 0; }
.rbd-of a, .rbd-of a:hover, .rbd-of a:focus { text-decoration: none !important; box-shadow: none; }
.rbd-of h1::before, .rbd-of h2::before { display: none !important; }

.rbd-of-hero { background: var(--n); color: #fff; border-radius: 24px; padding: 34px 40px; display: flex; gap: 28px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.rbd-of-hero-text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.rbd-of-pill { background: var(--o); color: var(--n); border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; }
.rbd-of-hero h1 { font-size: 36px; font-weight: 800; letter-spacing: -.5px; color: #fff; line-height: 1.2; }
.rbd-of-hero p { font-size: 16px; line-height: 1.6; color: #D8D4F2; max-width: 600px; }
.rbd-of-stat { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 18px; padding: 16px 22px; display: flex; flex-direction: column; gap: 2px; }
.rbd-of-stat b { font-size: 30px; font-weight: 800; color: #fff; }
.rbd-of-stat span { font-size: 13px; color: #D8D4F2; }

.rbd-of-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(250px, calc((100% - 36px) / 3)), 1fr)); gap: 18px; }
.rbd-of-tile { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: flex; gap: 16px; align-items: center; color: var(--n) !important; transition: box-shadow .2s, transform .2s, border-color .2s; }
.rbd-of-tile:hover { box-shadow: 0 12px 28px rgba(20,9,88,.10); transform: translateY(-2px); border-color: var(--line2); }
.rbd-of-tile-ic { width: 60px; height: 60px; border-radius: 18px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; background: #FFF1EA; color: var(--o2); }
.rbd-of-tile-gift .rbd-of-tile-ic { background: #ECEAF8; color: var(--n); }
.rbd-of-tile-star .rbd-of-tile-ic { background: #E6F4EC; color: #0F6B43; }
.rbd-of-tile-text { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.rbd-of-tile-text b { font-size: 17px; font-weight: 800; line-height: 1.3; }
.rbd-of-tile-text span { font-size: 13px; color: var(--mut); }

.rbd-of-bar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.rbd-of-bar h2 { font-size: 22px; font-weight: 800; }
.rbd-of-sort { margin: 0; }
.rbd-of-sort label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--mut); margin: 0; font-weight: 500; }
.rbd-of-sort select { height: 46px; padding: 0 34px 0 14px; border: 1px solid var(--line2); border-radius: 12px; background-color: #fff; font: 600 14px 'Plus Jakarta Sans', sans-serif; color: var(--n); cursor: pointer; }

/* Product cards come from the shop template; only the grid is set here. */
.rbd-of-items ul.products { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(max(190px, calc((100% - 60px) / 4)), 1fr)); gap: 20px; margin: 0 !important; padding: 0 !important; }
.rbd-of-items ul.products::before, .rbd-of-items ul.products::after { display: none !important; }
.rbd-of-items ul.products > li.product { width: auto !important; max-width: none !important; margin: 0 !important; float: none !important; padding: 0 !important; flex: none !important; }

.rbd-of-pager { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.rbd-of-pager .page-numbers { min-width: 44px; height: 44px; padding: 0 10px; border-radius: 12px; background: #fff; border: 1px solid var(--line2); color: var(--n); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.rbd-of-pager .page-numbers.current { background: var(--n); border-color: var(--n); color: #fff; }

.rbd-of-empty { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 56px 24px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.rbd-of-empty-ic { width: 80px; height: 80px; border-radius: 26px; background: #FFF1EA; color: var(--o2); display: flex; align-items: center; justify-content: center; }
.rbd-of-empty h2 { font-size: 26px; font-weight: 800; }
.rbd-of-empty p { font-size: 15px; line-height: 1.6; color: var(--mut); max-width: 460px; }
.rbd-of-empty-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.rbd-of-btn { height: 48px; padding: 0 22px; border-radius: 12px; font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; transition: background .2s, border-color .2s; }
.rbd-of-btn-orange { background: var(--o); color: var(--n) !important; font-weight: 800; }
.rbd-of-btn-orange:hover { background: var(--o2); color: #fff !important; }
.rbd-of-btn-ghost { background: #fff; border: 1px solid var(--line2); color: var(--n) !important; }
.rbd-of-btn-ghost:hover { border-color: var(--n); }

@media (max-width: 640px) {
	.rbd-of { gap: 16px; }
	.rbd-of-hero { padding: 22px 20px; border-radius: 20px; gap: 14px; }
	.rbd-of-hero h1 { font-size: 26px; }
	.rbd-of-hero p { font-size: 14px; }
	.rbd-of-stat { padding: 10px 14px; flex-direction: row; align-items: baseline; gap: 8px; }
	.rbd-of-stat b { font-size: 20px; }
	.rbd-of-tile { padding: 14px; border-radius: 16px; gap: 14px; }
	.rbd-of-tile-ic { width: 48px; height: 48px; border-radius: 14px; }
	.rbd-of-tile-ic svg { width: 22px; height: 22px; }
	.rbd-of-tile-text b { font-size: 15px; }
	.rbd-of-bar { flex-direction: column; align-items: stretch; gap: 10px; }
	.rbd-of-bar h2 { font-size: 19px; }
	.rbd-of-sort label > span { display: none; }
	.rbd-of-sort select { width: 100%; }
	.rbd-of-items ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.rbd-of-empty { padding: 40px 20px; }
	.rbd-of-empty h2 { font-size: 22px; }
}

/* 2.2.1 fixes (staging check 26 Oct) */
.rbd-of > * { margin: 0 !important; }
.rbd-of-sort label > span { white-space: nowrap; }
body.rbd-offers-page .e-con-boxed > .e-con-inner:has(.rbd-of) { max-width: 100% !important; }