/* Ilumaailm look (spec 2026-11-18-ilumaailm-maailmad §7, §9.2, D-180): purple-pink primary button, black tags, Plus banner,
   «+», brand link and Lisainfo icon, pink delivery and trust boxes, no green. Loaded only when <body class="world-ilu">;
   every rule is under body.world-ilu, Elamused never change. */
body.world-ilu {
  --ilu-grad: linear-gradient(110deg, #7B3FE4 0%, #C13BB0 48%, #F0528F 100%);
  --ilu-grad-hover: linear-gradient(110deg, #6C33D2 0%, #AF30A0 48%, #E5437F 100%);
  --ilu-grad-active: linear-gradient(110deg, #5F2BBC 0%, #9C2890 48%, #D63871 100%);
  --ilu-press: inset 0 2px 6px rgba(0, 0, 0, .28), inset 0 -1px 0 rgba(255, 255, 255, .35);
  --ilu-tint-bg: #FAF4F7;
  --ilu-tint-border: #EEDFE7;
}

/* primary button (Vaata, Osta, every .btn-success on the page): gradient, 15px corners, pressed-in, no outer glow */
body.world-ilu .btn-success,
body.world-ilu .btn-green,
body.world-ilu .btn-green-primary {
  background: var(--ilu-grad) !important; background-color: #C13BB0 !important; border: 0 !important; border-radius: 15px !important;
  color: #fff !important; box-shadow: var(--ilu-press) !important;
}
body.world-ilu .btn-success:hover, body.world-ilu .btn-success:focus-visible,
body.world-ilu .btn-green:hover, body.world-ilu .btn-green-primary:hover { background: var(--ilu-grad-hover) !important; color: #fff !important; }
body.world-ilu .btn-success:active, body.world-ilu .btn-green:active, body.world-ilu .btn-green-primary:active { background: var(--ilu-grad-active) !important; }
body.world-ilu .btn-success:focus-visible { outline: 2px solid #7B3FE4; outline-offset: 2px; }
body.world-ilu .home-hero .home-hero__view { box-shadow: var(--ilu-press) !important; }

/* black: discount labels, the title tag, Plus banner, quantity +, brand link, Lisainfo icon */
body.world-ilu .discount,
body.world-ilu .listing-hero-price-row .discount,
body.world-ilu .offer-hero-row .listing-hero-price-row .discount { background: #111 !important; color: #fff !important; }
body.world-ilu .shop-head h1 { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; }
body.world-ilu .shop-head h1 .discount-tag {
  display: inline-flex; align-items: center; height: 1.15em; padding: 0 .3em; border-radius: 8px; background: #111; color: #fff;
  font-size: .8em; font-weight: 800; line-height: 1; letter-spacing: -.01em; white-space: nowrap;
}
body.world-ilu .plus-deal-detail-banner { background: linear-gradient(135deg, #000 0%, #3A3A3A 100%) !important; border-color: transparent !important; color: #fff !important; }
body.world-ilu .plus-deal-detail-banner :is(.plus-text, .plus-cta, .plus-cta-text, a, i, strong, b, span) { color: #fff !important; }
body.world-ilu .offer-step__btn { border-color: #111; color: #111; --ring: #111; }
body.world-ilu .offer-step__btn:disabled { border-color: #D6D6D6; color: #BDBDBD; opacity: 1; --ring: #D6D6D6; }
body.world-ilu .offer-step.is-on .offer-step__ctl { border-color: #111; }
body.world-ilu .offer-step__btn.offer-step__cart { background: var(--ilu-grad); box-shadow: var(--ilu-press); color: #fff; }
body.world-ilu .offer-step__life i { background: var(--ilu-grad); }
body.world-ilu .shop-head__brand { color: #111 !important; }
body.world-ilu h2.d-flex > svg path { fill: #111; }
body.world-ilu h2.d-flex > svg path + path { fill: #fff; }

/* delivery box and trust icons: pale pink, black text and icons */
body.world-ilu .shop-delivery { background: var(--ilu-tint-bg); border-color: var(--ilu-tint-border); }
body.world-ilu .shop-delivery__logo { border-color: var(--ilu-tint-border); }
body.world-ilu .shop-delivery__text { color: #111; }
body.world-ilu .offer-trust__ico { background: var(--ilu-tint-bg); border: 1px solid var(--ilu-tint-border); color: #111; }

/* B6 dark theme (chilli.ee follows prefers-color-scheme): black would vanish on black, Ilumaailm gets its own light-on-plum tones */
[data-bs-theme="dark"] body.world-ilu {
  /* ux-mobiil 20.11 (F3): no pale pink on dark tags: discount tags light grey; price tags dark grey (rule below) */
  --ilu-tag-bg: #D4D4D8; --ilu-tag-fg: #111;
  --ilu-tint-bg: #2A0B1E; --ilu-tint-border: rgba(240, 82, 143, .45);
}
[data-bs-theme="dark"] body.world-ilu :is(.discount, .listing-hero-price-row .discount, .offer-hero-row .listing-hero-price-row .discount,
  .cards-track .price, .listing-card .price, .sidebar-card .price.price--image-discount, .offer-sticky-buy__pct),
[data-bs-theme="dark"] body.world-ilu .shop-head h1 .discount-tag,
[data-bs-theme="dark"] body.world-ilu .quantity-remaining.qty-pill--dark { background: var(--ilu-tag-bg) !important; color: var(--ilu-tag-fg) !important; }
[data-bs-theme="dark"] body.world-ilu .plus-deal-detail-banner { background: #2A0B1E !important; border: 1px solid rgba(240, 82, 143, .45) !important; }
[data-bs-theme="dark"] body.world-ilu .offer-step__btn { border-color: #F3E4EC; color: #F3E4EC; --ring: #F3E4EC; }
[data-bs-theme="dark"] body.world-ilu .offer-step.is-on .offer-step__ctl { border-color: #F3E4EC; }
[data-bs-theme="dark"] body.world-ilu .shop-head__brand { color: #F3E4EC !important; }
[data-bs-theme="dark"] body.world-ilu .shop-delivery__logo { background: #fff; }
[data-bs-theme="dark"] body.world-ilu .shop-delivery__text,
[data-bs-theme="dark"] body.world-ilu .offer-trust__ico { color: #F3E4EC; }
[data-bs-theme="dark"] body.world-ilu h2.d-flex > svg path { fill: #F3E4EC; }
[data-bs-theme="dark"] body.world-ilu h2.d-flex > svg path + path { fill: #2A0B1E; }

/* C11: every Ilumaailm page has the dark plum header with the white logo (home: transparent over the showcase until it sticks) */
body.world-ilu .nh-header {
  --nh-pill: rgba(255, 255, 255, .12); --nh-pill-hover: rgba(255, 255, 255, .22);
  --nh-pill-active-bg: rgba(255, 255, 255, .92); --nh-pill-active: #160711; --nh-icon-hover: rgba(255, 255, 255, .14);
  background-color: #160711; color: #fff; border-bottom-color: rgba(255, 255, 255, .08);
}
body.world-ilu.home-hero-page.home-header-stuck .app-header,
body.world-ilu.home-hero-page.home-header-stuck .app-header.-pane { background-color: #160711 !important; }
/* 25.11: scripts.js adds .-pane on any scroll; app.css paints it white (light) / black (dark) over the plum header */
html body.world-ilu:not(.home-hero-page):not(.offer-hero-page) .app-header.-pane { background-color: #160711 !important; }
/* 25.11: brand showcase home: the header scrolls with the page and sticks once the row after the logo strip reaches it
   (home-hero-ilu-brands.js toggles .ilu-header-stuck; the spacer holds its place so nothing jumps) */
.ilu-hdr-spacer { display: none; }
body.world-ilu.ilu-header-stuck .ilu-hdr-spacer { display: block; height: var(--ilu-hdr-h, 0px); }
body.world-ilu.ilu-header-stuck .app-header,
body.world-ilu.ilu-header-stuck .app-header.-pane {
  position: fixed !important; top: 0 !important; left: 0; right: 0; margin-left: 0 !important; margin-right: 0 !important;
  background-color: #160711 !important; box-shadow: 0 6px 20px rgba(0, 0, 0, .18) !important;
  animation: ilu-hdr-drop .22s ease-out;
}
@keyframes ilu-hdr-drop { from { transform: translateY(-100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { body.world-ilu.ilu-header-stuck .app-header { animation: none; } }
body.world-ilu .nh-header .nh-search.open { background: #241020; color: #fff; border-color: rgba(255, 255, 255, .25); }
body.world-ilu .nh-header .nh-searchbox #search-input::placeholder { color: #fff; opacity: .7; }

/* A4: the sticky buy bar on scroll: purple-pink Osta, black tag; «Samast kategooriast» tags black */
body.world-ilu .offer-sticky-buy__btn { background: var(--ilu-grad) !important; color: #fff !important; border: 0 !important; border-radius: 15px !important; box-shadow: var(--ilu-press) !important; }
body.world-ilu .offer-sticky-buy__pct { background: #111 !important; color: #fff !important; }
body.world-ilu .sidebar-card .price.price--image-discount { background: #111 !important; color: #fff !important; }

/* B8 cards: thin Ilumaailm gradient instead of the green stock bar, plum Chilli+ line */
body.world-ilu .rating-and-progress .progress { height: 3px !important; --bs-progress-bg: rgba(193, 59, 176, .16); }
body.world-ilu .rating-and-progress .progress .progress-bar { background: var(--ilu-grad) !important; }
body.world-ilu .listing-card-plus-line { color: #9C1F63 !important; }
[data-bs-theme="dark"] body.world-ilu .listing-card-plus-line { color: #F58CBF !important; }
[data-bs-theme="dark"] body.world-ilu .rating-and-progress .progress { --bs-progress-bg: rgba(240, 82, 143, .2); }

/* desktop: the buy box starts at the title's height next to the gallery, never over it */
@media (min-width: 992px) {
  body.world-ilu.offer-hero-page .offer-layout--card .offer-buy { margin-top: 6px; }
}

/* Ilumaailm rails and listing: square packshots on white, black tags */
body.world-ilu .ilu-rail .card-img-top,
body.world-ilu .category-listing .card-img-top { object-fit: contain; background: #fff; }
body.world-ilu .cards-track .price,
body.world-ilu .listing-card .price { background: #111 !important; color: #fff !important; }

/* Liquid Glass card for other Ilumaailm places (spec 9.2) */
body.world-ilu .ilu-glass-card {
  border-radius: 20px; border: 1px solid rgba(255, 255, 255, .38);
  background: linear-gradient(160deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .05));
  -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65), 0 12px 30px rgba(20, 4, 14, .38);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  body.world-ilu .ilu-glass-card { background: rgba(20, 8, 16, .72); }
}

/* B9 + lihviring 3 (4): brand logo tiles on the Ilumaailm home (square, white or the logo's own background, one scrolling row) */
body.world-ilu .ilu-brands__row { display: flex; flex-wrap: nowrap; gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 10px; scroll-snap-type: x proximity; }
body.world-ilu .ilu-brands__row::-webkit-scrollbar { display: none; }
body.world-ilu .ilu-brand-tile {
  flex: 0 0 120px; width: 120px; height: 120px; box-sizing: border-box; border-radius: 16px; scroll-snap-align: start;
  /* the logo has 18 % of the tile around it (px: a % padding would follow the row width) */
  display: flex; align-items: center; justify-content: center; padding: 22px; overflow: hidden;
  background: var(--ilu-brand-bg, #fff); border: 1px solid #E6E6E6; color: #111; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
body.world-ilu .ilu-brand-tile img { display: block; width: 100%; height: 100%; object-fit: contain; }
body.world-ilu .ilu-brand-tile--name { padding: 10px; }
body.world-ilu .ilu-brand-tile--name span {
  font-size: 14px; font-weight: 800; line-height: 1.2; text-align: center; letter-spacing: -.01em; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
body.world-ilu .ilu-brand-tile:hover, body.world-ilu .ilu-brand-tile:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 0, 0, .12); border-color: #D6D6D6; color: #111; }
/* dark theme: logos are made for white, the tile stays white with a softer edge */
[data-bs-theme="dark"] body.world-ilu .ilu-brand-tile { border-color: rgba(255, 255, 255, .12); }
@media (max-width: 767.98px) {
  body.world-ilu .ilu-brands__row { margin: 0 -12px; padding: 4px 12px 10px; gap: 10px; }
  body.world-ilu .ilu-brand-tile { flex-basis: 96px; width: 96px; height: 96px; border-radius: 16px; padding: 17px; }
  body.world-ilu .ilu-brand-tile--name { padding: 8px; }
  body.world-ilu .ilu-brand-tile--name span { font-size: 12.5px; }
}
body.world-ilu .search-all-chilli { margin-left: 12px; font-weight: 600; color: #9C1F63; }
[data-bs-theme="dark"] body.world-ilu .search-all-chilli { color: #F58CBF; }

/* lihviring 2 (6): on narrow two-column cards the Chilli+ line wraps instead of cutting the amount («säästab lisaks … 13.25€») */
body.world-ilu .listing-card-plus-line { align-items: flex-start; }
body.world-ilu .listing-card-plus-line span { white-space: normal; overflow: visible; text-overflow: clip; }
body.world-ilu .listing-card-plus-line strong { white-space: nowrap; }
body.world-ilu .listing-card-plus-line__logo { margin-top: 2px; }

/* ux-taiendused 20.11 (3): on the Ilumaailm home the stock pill stays white on card pictures, also at 3 or fewer */
body.world-ilu.home-hero-page .listing-card .listing-card-media-meta .quantity-remaining.qty-pill--urgent { background: rgba(255, 255, 255, .8) !important; color: #212529 !important; }
/* ux-taiendused 20.11 (7): black list chevrons in Ilumaailm texts, Elamused keep the red ones */
body.world-ilu .listing-description li::before { background-image: url("data:image/svg+xml;utf8,%3Csvg%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cpath%20d%3D%22M5%2015a1%201%200%200%201-.707-1.707L9.586%208%204.293%202.707a1%201%200%200%201%201.414-1.414l6%206a1%201%200%200%201%200%201.414l-6%206A1%201%200%200%201%205%2015Z%22%20fill%3D%22%23111111%22%2F%3E%3C%2Fsvg%3E"); }
[data-bs-theme="dark"] body.world-ilu .listing-description li::before { background-image: url("data:image/svg+xml;utf8,%3Csvg%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cpath%20d%3D%22M5%2015a1%201%200%200%201-.707-1.707L9.586%208%204.293%202.707a1%201%200%200%201%201.414-1.414l6%206a1%201%200%200%201%200%201.414l-6%206A1%201%200%200%201%205%2015Z%22%20fill%3D%22%23F3E4EC%22%2F%3E%3C%2Fsvg%3E"); }

/* ux-mobiil 20.11 (B10): a brand = the logo tile + its name under it; logos fill at most 72 % of the tile height, so tall and
   wide logos look closer in size; scroll snapping keeps the row's side padding (the first tile was cut at the screen edge) */
body.world-ilu .ilu-brands__row { scroll-padding-inline: 2px; }
body.world-ilu .ilu-brands__row > .ilu-brand {
  flex: 0 0 auto; width: 120px; display: flex; flex-direction: column; align-items: center; gap: 7px;
  color: inherit; text-decoration: none; scroll-snap-align: start;
}
body.world-ilu .ilu-brand .ilu-brand-tile { scroll-snap-align: none; }
body.world-ilu .ilu-brand .ilu-brand-tile img { width: auto; height: auto; max-width: 100%; max-height: 72%; }
body.world-ilu .ilu-brand__name {
  max-width: 100%; font-size: 12.5px; font-weight: 700; line-height: 1.2; color: var(--bs-secondary-color);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
body.world-ilu .ilu-brand:hover .ilu-brand-tile, body.world-ilu .ilu-brand:focus-visible .ilu-brand-tile {
  transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 0, 0, .12); border-color: #D6D6D6;
}
body.world-ilu .ilu-brand:hover .ilu-brand__name { color: var(--bs-body-color); }
@media (max-width: 767.98px) {
  body.world-ilu .ilu-brands__row { scroll-padding-inline: 12px; }
  body.world-ilu .ilu-brands__row > .ilu-brand { width: 96px; gap: 6px; }
  body.world-ilu .ilu-brand__name { font-size: 11.5px; }
}

/* ux-mobiil 20.11 (E1): dark theme: the showcase under the header stays dark (no plum-to-pale-mauve band), header plum to black */
[data-bs-theme="dark"] body.world-ilu .bh { background: linear-gradient(180deg, #160711 0, var(--bh-surface, #000) 120px); }

/* U652 (Martin 25.11 «hinnalipikud peaks olema mustad nagu mujal»): dark theme card tags black like the light theme and the
   stock pill: the -% tag on the picture and the price tag in the title row (a thin light ring keeps it off the dark card).
   The offer page's own big tags keep the light grey (--ilu-tag-bg): black would vanish on the black page. */
[data-bs-theme="dark"] body.world-ilu :is(.listing-card, .top-card, .cards-track) .price.price--image-discount { background: #111 !important; color: #fff !important; }
[data-bs-theme="dark"] body.world-ilu .listing-card .titlerow .discount.discount--price,
[data-bs-theme="dark"] body.world-ilu .top-card .titlerow .discount.discount--price { background: #111 !important; color: #fff !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
/* ux-mobiil 20.11 (F1): on small deal cards the goods stock pill is black at any count (not red at 3 or fewer, not white on
   the Ilumaailm home), both themes and both looks; the offer page keeps its red pill */
.listing-card .listing-card-media-meta .quantity-remaining.quantity-remaining--pill,
.listing-card .listing-card-media-meta .quantity-remaining.quantity-remaining--pill.qty-pill--urgent,
body.world-ilu.home-hero-page .listing-card .listing-card-media-meta .quantity-remaining.quantity-remaining--pill.qty-pill--urgent,
[data-bs-theme="dark"] body.world-ilu .listing-card .listing-card-media-meta .quantity-remaining.quantity-remaining--pill { background: #111 !important; color: #fff !important; }
