/* Benda Daily Deals */
:root { --bdd-accent: #44d62c; }
.bdd-slot.is-empty, .bdd-slot:empty { display: none; }
.bdd-hero, .bdd-pop, .bdd-strip, .bdd-offer { --bdd-bg: #0c0c0c; --bdd-card: #141414; --bdd-line: #262626; --bdd-text: #fff; --bdd-muted: #a8a8a8; direction: rtl; font-family: inherit; box-sizing: border-box; }
.bdd-hero *, .bdd-pop *, .bdd-strip *, .bdd-offer * { box-sizing: border-box; }

/* ---------- shared ---------- */
.bdd-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--bdd-accent); text-transform: none; line-height: 1.2; }
.bdd-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--bdd-accent); box-shadow: 0 0 0 0 var(--bdd-accent); animation: bdd-pulse 1.8s infinite; }
@keyframes bdd-pulse { 0% { box-shadow: 0 0 0 0 rgba(68,214,44,.6); } 70% { box-shadow: 0 0 0 8px rgba(68,214,44,0); } 100% { box-shadow: 0 0 0 0 rgba(68,214,44,0); } }
.bdd-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 8px; background: var(--bdd-accent); color: #000 !important; font-weight: 800; font-size: 16px; text-decoration: none !important; white-space: nowrap; transition: filter .15s, transform .15s; cursor: pointer; border: 0; }
.bdd-btn:hover { filter: brightness(1.08); }
.bdd-btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.bdd-btn--block { display: flex; width: 100%; }
.bdd-value { display: inline-block; font-size: 13px; font-weight: 600; color: var(--bdd-text); background: rgba(68,214,44,.14); border: 1px solid rgba(68,214,44,.35); padding: 3px 10px; border-radius: 999px; }
.bdd-value .amount, .bdd-value bdi { color: inherit !important; }

/* ---------- timer ---------- */
.bdd-timer { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.bdd-timer--center { align-items: center; display: flex; }
.bdd-timer__label { font-size: 13px; font-weight: 600; color: var(--bdd-muted); }
.bdd-timer__boxes { display: inline-flex; align-items: flex-start; gap: 6px; direction: ltr; }
.bdd-timer__box { display: flex; flex-direction: column; align-items: center; min-width: 58px; padding: 8px 6px 6px; border-radius: 10px; background: rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.12); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.bdd-timer__box b { font-size: 28px; line-height: 1; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.bdd-timer__box small { margin-top: 4px; font-size: 11px; color: var(--bdd-muted); }
.bdd-timer__sep { font-style: normal; font-size: 24px; font-weight: 800; color: var(--bdd-accent); line-height: 1.3; }
.bdd-timer.no-days .bdd-u-d, .bdd-timer.no-days .bdd-sep-h { display: none; }
.bdd-timer--sm .bdd-timer__box { min-width: 40px; padding: 5px 4px 4px; border-radius: 7px; }
.bdd-timer--sm .bdd-timer__box b { font-size: 17px; }
.bdd-timer--sm .bdd-timer__box small { font-size: 9px; margin-top: 2px; }
.bdd-timer--sm .bdd-timer__sep { font-size: 16px; }
.bdd-timer--sm .bdd-timer__label { font-size: 11px; }

/* ---------- product pair (auto visual) ---------- */
.bdd-pair { display: flex; align-items: center; justify-content: center; gap: 10px; }
.bdd-pair img { display: block; width: 100%; height: 100%; object-fit: contain; margin: 0; }
.bdd-pair__main, .bdd-pair__gift { position: relative; display: block; aspect-ratio: 1; }
.bdd-pair__main { width: 58%; }
.bdd-pair__gift { width: 34%; }
.bdd-pair__plus { font-size: 34px; font-weight: 300; color: var(--bdd-accent); line-height: 1; }
.bdd-pair__gift em { position: absolute; top: 0; inset-inline-start: 0; font-style: normal; font-size: 11px; font-weight: 800; background: var(--bdd-accent); color: #000; padding: 2px 8px; border-radius: 999px; }

/* ---------- hero ---------- */
.bdd-slot--hero { width: 100%; }
.bdd-hero { position: relative; width: 100%; overflow: hidden; background: var(--bdd-bg); color: var(--bdd-text); }
.bdd-hero__link { position: absolute; inset: 0; z-index: 2; }
.bdd-hero__pic, .bdd-hero__pic img { display: block; width: 100%; height: auto; margin: 0; }
.bdd-hero__ov { position: absolute; inset: 0; z-index: 3; pointer-events: none; display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; padding: clamp(16px, 3vw, 44px); }
.bdd-hero__ov a, .bdd-hero__ov .bdd-btn { pointer-events: auto; }
.bdd-hero.has-img .bdd-hero__ov { background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0) 45%); }
.bdd-hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; max-width: 620px; }
.bdd-hero__title { margin: 0 !important; font-size: clamp(24px, 3vw, 40px) !important; line-height: 1.12 !important; font-weight: 800 !important; color: #fff !important; }
.bdd-hero__sub { margin: 0 !important; font-size: clamp(14px, 1.3vw, 18px); color: #d4d4d4; line-height: 1.5; }
.bdd-hero__act { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.bdd-pos-bottom .bdd-hero__act { justify-content: center; align-self: center; }
.bdd-pos-bottom .bdd-hero__act .bdd-timer { align-items: center; }
.bdd-pos-start .bdd-hero__act { align-self: flex-start; }
.bdd-pos-end .bdd-hero__act { align-self: flex-end; }
/* auto design (no image uploaded) */
.bdd-hero.is-auto { min-height: clamp(380px, 34vw, 520px); background: radial-gradient(ellipse 60% 80% at 22% 55%, rgba(68,214,44,.22), transparent 70%), radial-gradient(ellipse at 80% 10%, #1b1b1b, #070707 70%); }
.bdd-hero.is-auto .bdd-hero__ov { position: relative; inset: auto; min-height: inherit; justify-content: center; width: 52%; padding-inline-end: 0; }
.bdd-hero.is-auto .bdd-hero__act { align-self: flex-start; }
.bdd-hero.is-auto .bdd-hero__act .bdd-timer { align-items: flex-start; }
.bdd-hero__pair { position: absolute; top: 50%; inset-inline-end: 3%; transform: translateY(-50%); width: 44%; z-index: 1; }
.bdd-hero__glyph { position: absolute; top: 50%; inset-inline-end: 6%; transform: translateY(-50%); width: 34%; max-width: 380px; color: var(--bdd-accent); opacity: .85; filter: drop-shadow(0 0 30px rgba(68,214,44,.45)); }
.bdd-hero__glyph svg { width: 100%; height: auto; display: block; }
@media (max-width: 767px) {
	.bdd-timer__box { min-width: 48px; }
	.bdd-timer__box b { font-size: 22px; }
	.bdd-hero__ov { padding: 14px; gap: 12px; }
	.bdd-hero.has-img .bdd-hero__act { justify-content: center; align-self: stretch; }
	.bdd-hero.has-img .bdd-hero__act .bdd-timer { align-items: center; }
	.bdd-hero.has-img .bdd-hero__act .bdd-btn { display: none; }
	.bdd-hero.is-auto { display: flex; flex-direction: column; min-height: 0; }
	.bdd-hero__pair, .bdd-hero__glyph { position: relative; top: auto; inset-inline-end: auto; transform: none; width: 78%; margin: 22px auto 0; }
	.bdd-hero__glyph { width: 46%; }
	.bdd-hero.is-auto .bdd-hero__ov { width: 100%; padding: 16px 18px 26px; align-items: center; text-align: center; }
	.bdd-hero.is-auto .bdd-hero__text { align-items: center; }
	.bdd-hero.is-auto .bdd-hero__act { flex-direction: column; align-items: center; align-self: stretch; }
	.bdd-hero.is-auto .bdd-hero__act .bdd-timer { align-items: center; }
	.bdd-hero.is-auto .bdd-hero__act .bdd-btn { width: 100%; }
}

/* ---------- popup (never scrolls: the image shrinks to fit) ---------- */
.bdd-pop { position: fixed; inset: 0; z-index: 999999; display: flex; align-items: center; justify-content: center; padding: 3vh 3vw; opacity: 0; transition: opacity .25s; }
.bdd-pop[hidden] { display: none; }
.bdd-pop.is-open { opacity: 1; }
.bdd-pop__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.72); }
.bdd-pop__card { position: relative; display: flex; flex-direction: column; width: min(420px, 94vw); max-height: 94vh; overflow: hidden; background: #101010; color: var(--bdd-text); border: 1px solid rgba(68,214,44,.4); border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 60px rgba(68,214,44,.12); transform: translateY(14px) scale(.98); transition: transform .25s; }
.bdd-pop.is-open .bdd-pop__card { transform: none; }
.bdd-pop__x { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: 20px; line-height: 32px; padding: 0; cursor: pointer; }
.bdd-pop__media { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; color: inherit; text-decoration: none; background: #0a0a0a; overflow: hidden; }
.bdd-pop__media img { display: block; width: auto; max-width: 100%; height: auto; max-height: 52vh; object-fit: contain; margin: 0 auto; }
.bdd-pop__pair { width: 100%; padding: 22px 30px 6px; }
.bdd-pop__body { flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 20px 14px; text-align: center; }
.bdd-pop__title { margin: 0 !important; font-size: 19px !important; line-height: 1.3 !important; font-weight: 800 !important; color: #fff !important; }
.bdd-pop__sub { margin: 0 !important; color: var(--bdd-muted); font-size: 13px; line-height: 1.4; }
.bdd-pop__body .bdd-timer__box { min-width: 46px; padding: 6px 4px 4px; }
.bdd-pop__body .bdd-timer__box b { font-size: 21px; }
.bdd-pop__body .bdd-timer__sep { font-size: 18px; }
.bdd-pop__body .bdd-btn { min-height: 44px; margin-top: 2px; }
.bdd-pop__no { background: none; border: 0; color: var(--bdd-muted); font-size: 12px; text-decoration: underline; cursor: pointer; padding: 0; }
/* wide screens: image beside the text */
@media (min-width: 900px) {
	.bdd-pop__card { flex-direction: row; width: min(860px, 92vw); max-height: 86vh; }
	.bdd-pop__media { flex: 0 0 52%; }
	.bdd-pop__media img { max-height: 86vh; }
	.bdd-pop__body { flex: 1; justify-content: center; padding: 28px 26px; gap: 12px; }
	.bdd-pop__title { font-size: 24px !important; }
	.bdd-pop__body .bdd-timer__box b { font-size: 26px; }
	.bdd-pop__body .bdd-timer__box { min-width: 56px; }
}
@media (max-width: 767px) {
	.bdd-pop { align-items: flex-end; padding: 0; }
	.bdd-pop__card { width: 100%; border-radius: 18px 18px 0 0; border-bottom: 0; transform: translateY(40px); max-height: 92vh; }
	.bdd-pop__media img { max-height: 48vh; }
	@media (max-height: 700px) { .bdd-pop__media img { max-height: 40vh; } .bdd-pop__sub { display: none; } }
}

/* ---------- category strip ---------- */
.bdd-slot--category { margin: 0 0 22px; }
.bdd-strip { display: flex; align-items: center; gap: 18px; padding: 14px 20px; border-radius: 14px; background: linear-gradient(100deg, #0f160e, #101010 55%); border: 1px solid rgba(68,214,44,.35); color: var(--bdd-text) !important; text-decoration: none !important; transition: border-color .2s; }
.bdd-strip:hover { border-color: var(--bdd-accent); }
.bdd-strip__pair { flex: 0 0 150px; }
.bdd-strip__pair .bdd-pair__main { width: 62%; }
.bdd-strip__pair .bdd-pair__gift { width: 30%; }
.bdd-strip__pair .bdd-pair__plus { font-size: 20px; }
.bdd-strip__pair .bdd-pair__gift em { display: none; }
.bdd-strip__text { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.bdd-strip__title { font-size: 17px; line-height: 1.35; font-weight: 800; color: #fff; }
.bdd-strip__act { display: flex; align-items: center; gap: 14px; }
@media (max-width: 767px) {
	.bdd-strip { flex-wrap: wrap; gap: 12px; padding: 12px 14px; }
	.bdd-strip__pair { flex-basis: 96px; }
	.bdd-strip__text { flex-basis: calc(100% - 110px); }
	.bdd-strip__title { font-size: 15px; }
	.bdd-strip__act { flex-basis: 100%; justify-content: space-between; }
}

/* ---------- product page offer ---------- */
.bdd-slot--product { margin: 18px 0 12px; }
.bdd-offer { display: block; padding: 14px; border-radius: 12px; background: linear-gradient(160deg, #0f170e, #111 60%); border: 1px solid rgba(68,214,44,.45); color: var(--bdd-text) !important; text-decoration: none !important; }
.bdd-offer__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.bdd-offer__head .bdd-timer { flex-direction: row; align-items: center; gap: 8px; }
.bdd-offer__items { display: flex; align-items: stretch; gap: 8px; }
.bdd-offer__plus { align-self: center; font-size: 22px; color: var(--bdd-accent); }
.bdd-item { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; background: #181818; border: 1px solid var(--bdd-line); }
.bdd-item img { width: 52px; height: 52px; flex: none; object-fit: contain; margin: 0; border-radius: 8px; background: #222; }
.bdd-item__name { font-size: 13px; line-height: 1.35; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bdd-item--gift { border-color: rgba(68,214,44,.5); position: relative; }
.bdd-item__gift { position: absolute; top: -9px; inset-inline-start: 8px; font-size: 11px; font-weight: 800; background: var(--bdd-accent); color: #000; padding: 1px 8px; border-radius: 999px; }
.bdd-item__gift s, .bdd-item__gift .amount, .bdd-item__gift bdi { color: #000 !important; opacity: .7; font-weight: 600; }
.bdd-offer__row { display: flex; align-items: center; gap: 12px; }
.bdd-offer__gimg { width: 54px; height: 54px; object-fit: contain; border-radius: 8px; background: #222; margin: 0; flex: none; }
.bdd-offer__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: #cfcfcf; line-height: 1.4; }
.bdd-offer__txt strong { font-size: 15px; color: #fff; }
.bdd-offer__note { margin: 0 !important; font-size: 14px; color: #d0d0d0; line-height: 1.5; }
.bdd-offer--ended { border-color: var(--bdd-line); background: #121212; }
@media (max-width: 480px) {
	.bdd-offer__items { flex-direction: column; }
	.bdd-offer__plus { margin: -4px 0; }
}

/* Gift-over-99 box of Benda Product Page becomes a compact secondary line when a deal is shown. */
.bpp .bpp-gift.bdd-compact { padding: 10px 12px; gap: 10px; margin-top: 0; border-style: dashed; background: transparent; }
.bpp .bpp-gift.bdd-compact .bpp-gift__img { width: 40px; height: 40px; }
.bpp .bpp-gift.bdd-compact .bpp-gift__badge { display: none; }
.bpp .bpp-gift.bdd-compact .bpp-gift__title { font-size: 13px; }
.bpp .bpp-gift.bdd-compact .bpp-gift__text { font-size: 12px; }

/* ---------- WPC Product Bundles restyle ---------- */
.woosb-wrap.bdd-wpc { direction: rtl; margin: 0 0 14px; }
.woosb-wrap.bdd-wpc .woosb-products { display: grid; gap: 8px; border: 0 !important; margin: 0; }
.woosb-wrap.bdd-wpc .woosb-product { display: flex !important; align-items: center; gap: 12px; padding: 8px 10px !important; margin: 0 !important; border: 1px solid #262626 !important; border-radius: 10px; background: #141414; }
.woosb-wrap.bdd-wpc .woosb-thumb { width: 52px !important; flex: 0 0 52px; }
.woosb-wrap.bdd-wpc .woosb-thumb img { width: 52px !important; height: 52px !important; object-fit: contain; border-radius: 8px; background: #222; margin: 0 !important; }
.woosb-wrap.bdd-wpc .woosb-title { flex: 1; min-width: 0; padding: 0 !important; }
.woosb-wrap.bdd-wpc .woosb-name, .woosb-wrap.bdd-wpc .woosb-name a { font-size: 14px; font-weight: 600; color: #fff !important; text-decoration: none; line-height: 1.35; }
.woosb-wrap.bdd-wpc .woosb-availability { display: none; }
.woosb-wrap.bdd-wpc .woosb-price { flex: none; width: auto !important; font-size: 13px; color: #bdbdbd; text-align: end; }
.woosb-wrap.bdd-wpc .woosb-price .amount, .woosb-wrap.bdd-wpc .woosb-price bdi { color: inherit !important; }
.woosb-wrap.bdd-wpc .woosb-product.bdd-wpc-gift { border-color: rgba(68,214,44,.55) !important; background: linear-gradient(160deg, #0f170e, #141414); }
.woosb-wrap.bdd-wpc .bdd-wpc-gift .woosb-price-ori { text-decoration: line-through; opacity: .65; }
.bdd-wpc-badge { display: inline-block; margin-inline-start: 8px; font-size: 11px; font-weight: 800; background: var(--bdd-accent); color: #000; padding: 1px 8px; border-radius: 999px; vertical-align: middle; }
.woosb-wrap.bdd-wpc .woosb-total, .woosb-wrap.bdd-wpc .woosb-text { color: #cfcfcf; font-size: 13px; }

/* ---------- preview badge ---------- */
.bdd-sim { position: fixed; bottom: 12px; left: 12px; z-index: 1000000; background: #ffd400; color: #000; font: 700 12px/1.2 system-ui, sans-serif; padding: 8px 12px; border-radius: 8px; direction: rtl; box-shadow: 0 6px 20px rgba(0,0,0,.4); }

/* ---------- bundle card (product page) ---------- */
.bdd-tiles { display: flex; align-items: stretch; gap: 10px; }
.bdd-tiles__plus { flex: none; align-self: center; width: 30px; height: 30px; border-radius: 50%; background: var(--bdd-accent); color: #000; font-size: 20px; font-weight: 800; line-height: 30px; text-align: center; }
.bdd-tile { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 10px 12px; border-radius: 12px; background: #181818; border: 1px solid var(--bdd-line); text-align: center; }
.bdd-tile__img { display: block; width: 100%; max-width: 120px; aspect-ratio: 1; border-radius: 10px; background: radial-gradient(circle at 50% 60%, #262626, #161616); overflow: hidden; }
.bdd-tile__img img { width: 100%; height: 100%; object-fit: contain; margin: 0; }
.bdd-tile__name { font-size: 13px; line-height: 1.35; font-weight: 600; color: #fff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bdd-tile__price { font-size: 14px; font-weight: 700; color: #fff; }
.bdd-tile__price s { color: #8a8a8a; font-weight: 500; margin-inline-end: 4px; }
.bdd-tile__price .amount, .bdd-tile__price bdi { color: inherit !important; }
.bdd-tile--gift { border-color: rgba(68,214,44,.6); background: linear-gradient(170deg, #12200f, #161616 70%); }
.bdd-tile--gift .bdd-tile__price b { color: var(--bdd-accent); }
.bdd-tile__ribbon { position: absolute; top: 10px; inset-inline-start: 10px; font-size: 11px; font-weight: 800; background: var(--bdd-accent); color: #000; padding: 2px 9px; border-radius: 999px; }
.bdd-sum { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--bdd-line); font-size: 13px; color: #cfcfcf; }
.bdd-sum s { color: #8a8a8a; }
.bdd-sum b { color: #fff; }
.bdd-sum .amount, .bdd-sum bdi { color: inherit !important; }
.bdd-sum__save { font-weight: 800; color: #000; background: var(--bdd-accent); padding: 3px 10px; border-radius: 999px; }
.bdd-sum__save .amount, .bdd-sum__save bdi { color: #000 !important; }
.bdd-offer--soon .bdd-offer__note, .bdd-offer--ended .bdd-offer__note { margin-top: 12px !important; font-size: 13px; color: var(--bdd-muted); }
.bdd-offer--soon .bdd-tiles, .bdd-offer--ended .bdd-tiles { opacity: .85; }
.bdd-offer__gimg { position: relative; flex: none; width: 64px; height: 64px; border-radius: 10px; background: #222; }
.bdd-offer__gimg img { width: 100%; height: 100%; object-fit: contain; margin: 0; }
.bdd-offer__gimg em { position: absolute; bottom: -7px; inset-inline-start: 50%; transform: translateX(50%); font-style: normal; font-size: 10px; font-weight: 800; background: var(--bdd-accent); color: #000; padding: 0 7px; border-radius: 999px; white-space: nowrap; }
/* our card already lists the bundle contents → hide WPC's own list (the add-to-cart form stays) */
body.bdd-has-bundle-card .woosb-wrap .woosb-products { display: none !important; }
@media (max-width: 480px) {
	.bdd-tile__img { max-width: 92px; }
	.bdd-offer__row { flex-wrap: wrap; }
	.bdd-offer__row .bdd-btn { width: 100%; }
}
