/*
 * Black Week 2026 (classes/sd-campaign.php, template-parts/sd/home/campaign.php; docs/black-week-2026.md). Loaded while
 * the campaign is on (teaser or live), not at all after it. The colours of the owner's campaign posts: dark navy, Sante
 * orange, Sante green and light confetti; no image of the posts is used (they carry prices that are not final).
 * Teaser: the strip above the header and the home card (first under the navigation). During the week (body.sd-bw) also
 * the tags of the campaign's analyses; the rest of the site keeps its look (the owner's call of 2026-11-18).
 * Contrast on the navy: white 16:1, orange 5.8:1, green 5:1, the light text 11.7:1; navy on orange 5.8:1.
 */
:root {
  --sd-bw-navy: #13213a;
  --sd-bw-text: #d6dcea;
  --sd-bw-line: linear-gradient(90deg, var(--sd-orange), var(--sd-green));
}

/* ---------- The strip above the header (every page) ---------- */
.sd-bw-strip { background: var(--sd-bw-navy); color: #fff; border-style: solid; border-width: 0 0 3px; border-image: var(--sd-bw-line) 1; font-family: 'Raleway', sans-serif; }
.sd-bw-strip__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 14px; min-height: 40px; padding-top: 6px; padding-bottom: 6px; color: #fff; font-size: 14px; font-weight: 600; line-height: 1.35; text-align: center; text-decoration: none; }
a.sd-bw-strip__in:hover, a.sd-bw-strip__in:focus { color: #fff; text-decoration: none; }
a.sd-bw-strip__in:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }
a.sd-bw-strip__in:hover .sd-bw-strip__go { background: #fff; }
.sd-bw-name { color: var(--sd-orange); font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.sd-bw-count { color: var(--sd-bw-text); font-weight: 500; }
.sd-bw-count[hidden] { display: none; }
.sd-bw-count b { color: #fff; font-weight: 800; white-space: nowrap; }
.sd-bw-strip__go { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--sd-orange); color: var(--sd-bw-navy); font-weight: 800; white-space: nowrap; transition: background-color .15s; }
/* Friday 27 November: the posts' "CRNI PETAK" sticker, small */
.sd-bw-friday { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border: 2px solid var(--sd-orange); border-radius: 8px; background: #0b1426; color: #fff; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; transform: rotate(-2deg); }

/* ---------- The home card (the first section, right under the navigation; the hero's own top space follows it) ---------- */
.sd-home .sd-bw-sec { padding: 20px 0 0; }
.sd-bw-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; overflow: hidden; padding: 32px 36px 36px; border-radius: var(--sd-radius); color: #fff;
  background: var(--sd-bw-navy) url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 200'><g fill='%23ef7d00'><rect x='300' y='18' width='14' height='6' rx='2' transform='rotate(28 307 21)'/><rect x='214' y='52' width='10' height='5' rx='2' transform='rotate(-35 219 54)'/><rect x='332' y='104' width='12' height='5' rx='2' transform='rotate(62 338 106)'/><rect x='150' y='16' width='9' height='4' rx='2' transform='rotate(12 154 18)'/></g><g fill='%2300a651'><rect x='262' y='30' width='12' height='5' rx='2' transform='rotate(-20 268 32)'/><rect x='318' y='64' width='10' height='5' rx='2' transform='rotate(40 323 66)'/><rect x='190' y='94' width='9' height='4' rx='2' transform='rotate(70 194 96)'/><rect x='286' y='150' width='11' height='5' rx='2' transform='rotate(-48 291 152)'/></g><g fill='%23ffffff' opacity='.5'><rect x='240' y='12' width='8' height='4' rx='2' transform='rotate(50 244 14)'/><rect x='344' y='40' width='9' height='4' rx='2' transform='rotate(-15 348 42)'/><rect x='250' y='118' width='8' height='4' rx='2' transform='rotate(22 254 120)'/></g><g fill='%23f6a04d' opacity='.7'><circle cx='276' cy='84' r='3'/><circle cx='176' cy='48' r='2.5'/><circle cx='340' cy='170' r='3'/></g></svg>") right top / 360px auto no-repeat; }
.sd-bw-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--sd-bw-line); }
.sd-bw-sticker { display: inline-flex; gap: .3em; margin: 0 0 4px; padding: 8px 16px; border: 3px solid var(--sd-orange); border-radius: 14px; background: #0b1426; color: #fff; font: 900 26px/1 'Raleway', sans-serif; letter-spacing: .02em; text-transform: uppercase; transform: rotate(-3deg); box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
.sd-bw-sticker span + span { color: var(--sd-orange); }
.sd-home .sd-bw-card__title { margin: 0; color: #fff; font-size: 30px; font-weight: 800; line-height: 1.2; text-wrap: balance; }
.sd-bw-card__title .sd-bw-name { letter-spacing: 0; text-transform: none; } /* the sticker above already shouts it */
.sd-bw-card__text, .sd-bw-card__soon { max-width: 720px; margin: 0; color: var(--sd-bw-text); font-size: 16px; line-height: 1.5; }
.sd-bw-card__soon { color: #fff; font-weight: 700; }
.sd-bw-card .sd-bw-count { margin: 0; font-size: 15px; }
.sd-bw-card .sd-bw-count b { color: var(--sd-orange); font-size: 20px; }
.sd-bw-card__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; width: 100%; margin: 8px 0 0; padding: 0; list-style: none; }
.sd-bw-card__list > li { display: flex; margin: 0; }
.sd-bw-card .sd-pcard { flex: 1; min-width: 0; color: var(--sd-ink); }
.sd-home a.sd-bw-card__all { margin-top: 4px; }
@media (pointer: coarse) { /* the cards' name links get a touch area of about 40 px, as the theme's short links do */
  .sd-bw-card .sd-pcard__name { position: relative; }
  .sd-bw-card .sd-pcard__name::after { content: ""; position: absolute; inset: -8px -4px; }
}

/* ---------- The campaign's tags (during the week only; SdCampaign::tag) ---------- */
.sd-bw-tags { display: none; flex-wrap: wrap; align-items: center; gap: 6px; }
.sd-bw .sd-bw-tags { display: flex; }
.sd-bw-tag { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border: 2px solid var(--sd-orange); border-radius: 6px; background: var(--sd-bw-navy); color: #fff; font: 800 12px/1 'Raleway', sans-serif; letter-spacing: .06em; text-transform: uppercase; box-sizing: border-box; white-space: nowrap; }
.sd-bw-save { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: #e6f7ee; color: #00703a; font: 700 12px/1 'Raleway', sans-serif; white-space: nowrap; }
.sd-shop-row__name .sd-bw-tags { margin-top: 6px; }
.sd-home-best .sd-pcard .sd-bw-tags { grid-column: 1 / -1; }

/* ---------- The week (body.sd-bw) ----------
   Black Week stays in its own parts: the strip, the home card, the tags and the campaign's list. The rest of the site
   keeps its look during the week, the orange navigation (white text) included (the owner's call of 2026-11-18, after
   seeing a version that dressed the navigation, the hero, the footer and every button in navy). */

/* ---------- Phones ---------- */
@media (max-width: 900px) {
  .sd-bw-card__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .sd-bw-strip__in { gap: 2px 10px; font-size: 13px; }
  .sd-bw-strip[data-sd-bw="live"] .sd-bw-count { display: none; } /* the home card counts down; the strip stays two lines */
  .sd-bw-friday, .sd-bw-strip__go { order: 1; } /* Friday's sticker beside the button, not on a line of its own */
}
@media (max-width: 767px) {
  .sd-home .sd-bw-sec { padding-top: 12px; } /* as the hero's top space on phones */
}
@media (max-width: 640px) {
  .sd-bw-card { padding: 24px 16px 28px; background-size: 260px auto; }
  .sd-bw-sticker { font-size: 20px; }
  .sd-home .sd-bw-card__title { font-size: 22px; }
  .sd-bw-card__text { font-size: 15px; }
  .sd-bw-card__list { grid-template-columns: minmax(0, 1fr); }
  .sd-home a.sd-bw-card__all { width: 100%; }
}
