/* All deals page (/deals). Phone first; from 992px the filters sit in a left column and the
   cards run four across. Colours are the site's: pink #E61B77, amber #F5B21E, green #3E7A28. */
.dl-page { --dl-pink: #E61B77; --dl-amber: #F5B21E; --dl-green: #3E7A28; --dl-ink: #19121A; --dl-line: #E6E7EB; --dl-soft: #F6F7F9;
    padding-top: 8px; padding-bottom: 32px; color: var(--dl-ink); }
.dl-page [hidden] { display: none !important; }
.dl-busy .dl-grid { opacity: .55; transition: opacity .15s; }

/* Hero with countdown */
.dl-hero { background: var(--dl-ink); color: #fff; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; margin: 4px 0 14px; }
.dl-hero__title { font-family: "Figtree-Bold", sans-serif; font-size: 26px; margin: 0; color: #fff; }
.dl-hero__sub { margin: 4px 0 0; font-size: 13px; color: #D9D4DB; }
.dl-count { display: flex; flex-direction: column; gap: 6px; }
.dl-count__label { font-family: "Figtree-SemiBold", sans-serif; font-size: 14px; }
.dl-count__boxes { display: flex; gap: 8px; }
.dl-count__box { flex: 1; min-width: 0; background: #fff; color: var(--dl-ink); border-radius: 10px; padding: 6px 4px; text-align: center; line-height: 1.1; }
.dl-count__box b { display: block; font-family: "Figtree-Bold", sans-serif; font-size: 22px; }
.dl-count__box small { font-size: 11px; }
.dl-count__box--pink { background: var(--dl-pink); color: #fff; }
.dl-count__box--amber { background: var(--dl-amber); }
.dl-count__note { font-size: 12px; color: #D9D4DB; }

/* Chips: tabs, saving levels */
.dl-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: none; }
.dl-tabs::-webkit-scrollbar { display: none; }
.dl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dl-chips--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dl-chip { flex: 0 0 auto; border: 1px solid var(--dl-line); background: #fff; color: var(--dl-ink); border-radius: 999px; padding: 8px 14px;
    font-family: "Figtree-SemiBold", sans-serif; font-size: 13px; min-height: 40px; white-space: nowrap; cursor: pointer; }
.dl-chip.is-on { background: var(--dl-ink); border-color: var(--dl-ink); color: #fff; }
.dl-chips .dl-chip.is-on, .dl-chips--grid .dl-chip.is-on { background: #FDE7F1; border-color: var(--dl-pink); color: var(--dl-pink); }
.dl-chip__n { opacity: .75; margin-left: 2px; }

/* Phone shortcuts above the list */
.dl-qblock { margin-bottom: 14px; }
.dl-qhead { display: flex; align-items: baseline; justify-content: space-between; }
.dl-qlabel { font-family: "Figtree-Bold", sans-serif; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #6B7280; margin: 0 0 8px; }
.dl-qlabel--big { font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--dl-ink); }
.dl-cattiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.dl-cattile { border: 2px solid transparent; border-radius: 12px; padding: 10px 6px; min-height: 72px; display: flex; flex-direction: column; justify-content: flex-end;
    align-items: center; text-align: center; gap: 2px; cursor: pointer; font-size: 12px; line-height: 1.2; }
.dl-cattile__name { font-family: "Figtree-SemiBold", sans-serif; }
.dl-cattile__n { color: #6B7280; font-size: 11px; }
.dl-cattile--0 { background: #FDE7F1; } .dl-cattile--1 { background: #E8F3E3; } .dl-cattile--2 { background: #FEF3D7; } .dl-cattile--3 { background: #EEF0F4; }
.dl-cattile.is-on { border-color: var(--dl-pink); }
/* Brand deals tab: one row of brand tiles above the list, scrolling sideways when it runs over */
.dl-brandrow { margin-bottom: 12px; min-width: 0; }
.dl-brandtiles { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.dl-brandtile { flex: 0 0 148px; scroll-snap-align: start; border: 1px solid var(--dl-line); background: #fff; border-radius: 12px; padding: 10px 12px;
    text-align: left; cursor: pointer; font-size: 12px; line-height: 1.3; min-height: 76px; display: flex; flex-direction: column; gap: 2px; color: var(--dl-ink); }
.dl-brandtile b { display: block; font-family: "Figtree-Bold", sans-serif; font-size: 14px; text-transform: uppercase;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-brandtile__n { color: #6B7280; }
.dl-brandtile__off { color: var(--dl-pink); font-family: "Figtree-SemiBold", sans-serif; margin-top: auto; }
.dl-brandtile.is-on { border-color: var(--dl-pink); background: #FDE7F1; }
.dl-link { background: none; border: 0; padding: 0; color: var(--dl-pink); font-family: "Figtree-SemiBold", sans-serif; font-size: 13px; cursor: pointer; text-decoration: underline; }

/* Result bar */
.dl-bar { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--dl-line); padding: 12px 0; margin-bottom: 4px; }
.dl-bar__count { margin: 0 auto 0 0; font-size: 14px; }
.dl-bar__count span { color: #6B7280; }
.dl-sort select { border: 1px solid var(--dl-line); border-radius: 999px; padding: 8px 12px; font-size: 13px; min-height: 40px; background: #fff; max-width: 150px; }
.dl-sort { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; }
.dl-filterbtn { background: var(--dl-ink); color: #fff; border: 0; border-radius: 999px; padding: 8px 14px; min-height: 40px; font-family: "Figtree-SemiBold", sans-serif; font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }
.dl-filterbtn__n { background: var(--dl-pink); border-radius: 999px; min-width: 18px; height: 18px; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }

/* Cards: the site's product card, two across on a phone */
.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dl-grid .product-card { height: 100%; margin: 0; }
.dl-dealline { display: inline-block; background: #EEF0F4; color: var(--dl-ink); border-radius: 6px; padding: 2px 7px; font-size: 11px; font-family: "Figtree-SemiBold", sans-serif; margin-bottom: 4px; }
.dl-dealline--hot { background: var(--dl-ink); color: #fff; }
.dl-yousave { color: var(--dl-green); font-family: "Figtree-Bold", sans-serif; font-size: 12px; margin: -4px 0 6px; }
.dl-empty { text-align: center; padding: 28px 8px; color: #4B5563; }
.dl-more { text-align: center; margin: 16px 0 8px; }
.dl-more__shown { font-size: 12px; color: #6B7280; margin-bottom: 8px; }
.dl-foot { text-align: center; font-size: 12px; color: #6B7280; margin: 8px 0 0; }

.dl-btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 10px 18px; min-height: 44px; font-family: "Figtree-SemiBold", sans-serif; font-size: 14px; cursor: pointer; text-decoration: none; border: 1px solid transparent; }
.dl-btn--outline { background: #fff; border-color: var(--dl-ink); color: var(--dl-ink); min-width: 220px; }
.dl-btn--green { background: var(--dl-green); color: #fff; }
.dl-btn--pink { background: var(--dl-pink); color: #fff; width: 100%; }
.dl-btn--pink:hover { color: #fff; }

/* Filters: a sheet on phones */
.dl-filters { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1060; background: #fff; border-radius: 18px 18px 0 0; max-height: 86vh;
    display: flex; flex-direction: column; transform: translateY(105%); transition: transform .25s ease; box-shadow: 0 -8px 30px rgba(0,0,0,.15); }
.dl-sheet-open .dl-filters { transform: translateY(0); }
.dl-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 1059; }
.dl-sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 6px; }
.dl-sheet__title { font-family: "Figtree-Bold", sans-serif; font-size: 18px; margin: 0; }
.dl-sheet__close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--dl-line); background: #fff; font-size: 22px; line-height: 1; }
.dl-sheet__body { overflow-y: auto; padding: 4px 16px 12px; }
.dl-sheet__foot { display: flex; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--dl-line); }
.dl-sheet__foot .dl-btn { flex: 1; min-width: 0; }
.dl-fgroup { padding: 10px 0; border-bottom: 1px solid var(--dl-line); }
.dl-flabel { font-family: "Figtree-Bold", sans-serif; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #6B7280; margin: 0 0 8px; }
.dl-checks { display: flex; flex-direction: column; }
.dl-checks--scroll { max-height: 220px; overflow-y: auto; }
.dl-check { display: flex; align-items: center; gap: 10px; min-height: 40px; margin: 0; cursor: pointer; font-size: 14px; }
.dl-check input { width: 18px; height: 18px; accent-color: var(--dl-pink); flex: 0 0 auto; }
.dl-check__name { flex: 1; text-transform: capitalize; }
.dl-check__n { color: #6B7280; font-size: 13px; }
.dl-brandsearch { width: 100%; border: 1px solid var(--dl-line); border-radius: 10px; padding: 9px 12px; font-size: 14px; margin-bottom: 6px; }
.dl-stock { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 4px; margin: 0; font-family: "Figtree-SemiBold", sans-serif; font-size: 14px; cursor: pointer; }
.dl-stock input { width: 20px; height: 20px; accent-color: var(--dl-green); }
.dl-none { font-size: 13px; color: #6B7280; margin: 6px 0; }

/* Screen 4: ended campaign */
.dl-ended { padding: 8px 0; }
.dl-ended__from { font-family: "Figtree-Bold", sans-serif; font-size: 16px; margin: 0 0 10px; text-transform: capitalize; }
.dl-ended__box { background: #FDE7F1; border-radius: 16px; padding: 18px; margin-bottom: 18px; }
.dl-ended__title { font-family: "Figtree-Bold", sans-serif; font-size: 22px; margin: 0 0 6px; }
.dl-ended__text { margin: 0 0 14px; color: #374151; }
.dl-h2 { font-family: "Figtree-Bold", sans-serif; font-size: 16px; margin: 0 0 10px; }
.dl-grid--two { max-width: 560px; }

/* Cart bar, above the phone bottom bar */
.dl-cartbar { position: fixed; left: 12px; right: 12px; bottom: calc(72px + env(safe-area-inset-bottom)); z-index: 1040; background: var(--dl-ink); color: #fff;
    border-radius: 14px; padding: 10px 14px; display: flex; flex-direction: column; gap: 6px; text-decoration: none !important; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.dl-cartbar:hover { color: #fff; }
.dl-cartbar__row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.dl-cartbar__view { color: var(--dl-amber); font-family: "Figtree-SemiBold", sans-serif; }
.dl-cartbar__track { height: 4px; border-radius: 2px; background: rgba(255,255,255,.2); overflow: hidden; }
.dl-cartbar__fill { display: block; height: 100%; background: var(--dl-amber); width: 0; transition: width .3s; }
.dl-cartbar__note { font-size: 12px; color: #D9D4DB; }
.dl-cartbar__note:empty { display: none; }
.dl-has-cartbar { padding-bottom: 120px; }
/* The WhatsApp button floats above the cart bar instead of over "View cart" (it only steps aside
   for buttons, and the bar is a link) */
@media (max-width: 991.98px) { body:has(.dl-has-cartbar) .wa-float-btn { bottom: 170px !important; } }
/* Phones only: on a computer the header's Cart already shows the count, and a dark bar at the
   bottom read as the phone's bottom bar (UAT feedback, 10 Nov 2026) */
@media (min-width: 992px) {
    .dl-cartbar { display: none !important; }
    .dl-has-cartbar { padding-bottom: 32px; }
}

@media (min-width: 768px) {
    .dl-hero { flex-direction: row; align-items: center; justify-content: space-between; padding: 22px 26px; }
    .dl-hero__title { font-size: 34px; }
    .dl-count { min-width: 300px; }
    .dl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}

@media (min-width: 992px) {
    .dl-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 24px; align-items: start; }
    .dl-filters { position: sticky; top: 190px; transform: none; border-radius: 0; box-shadow: none; max-height: calc(100vh - 210px); z-index: auto; }
    .dl-sheet__head, .dl-sheet__foot, .dl-fgroup--sheetonly { display: none; }
    .dl-sheet__body { padding: 0 4px 0 0; }
    .dl-fgroup:first-of-type { padding-top: 0; }
    .dl-quick, .dl-filterbtn, .dl-scrim { display: none !important; }
    .dl-bar { border-top: 0; padding-top: 0; }
    .dl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
