/* Black Week theme (12.11.2026, owner chose direction B "Night fishing"). Loaded only while the theme is on: output.php bw(),
   admin Разширения > Модули > Сезонни теми (patch 070). Brand olive deepened to a night green, a CSS-only moon and water
   ripples, brand gold accents, a soft lime glow on the countdown. No images, no extra fonts. */
html.tc-bw{--bw-night:#03140C;--bw-deep:#0A2A1A;--bw-gold:#F8C830;--bw-lime:#C8F59A;--bw-moon:#F3F0DC;--bw-mist:#C3D6C9}

/* ---------- top bar ---------- */
html.tc-bw .tc-topbar{background:linear-gradient(90deg,var(--bw-night),var(--bw-deep) 50%,var(--bw-night));color:var(--bw-gold);border-bottom:1px solid rgba(248,200,48,.22);white-space:nowrap;overflow:hidden}
html.tc-bw .tc-topbar svg{stroke:var(--bw-gold)}
html.tc-bw .tc-topbar>span:first-of-type{min-width:0;overflow:hidden;text-overflow:ellipsis}
html.tc-bw .tc-topbar b{color:#fff}
html.tc-bw .tc-bw-hi{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;margin-left:6px;padding-left:12px;border-left:1px solid rgba(248,200,48,.4);color:var(--bw-gold)}
html.tc-bw .tc-bw-hi b{color:var(--bw-gold);letter-spacing:.06em}
html.tc-bw .tc-bw-hi::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--bw-lime);box-shadow:0 0 6px 1px rgba(200,245,154,.7);order:-1}
@media (max-width:760px){
 html.tc-bw .tc-topbar{padding:0 10px}
 html.tc-bw .tc-bw-hi{margin-left:2px;padding-left:8px;gap:5px}
}
/* narrow phones: keep only "BLACK WEEK" (the end date is in the hero), then drop the truck icon */
@media (max-width:440px){
 html.tc-bw .tc-topbar{font-size:11px;gap:5px}
 html.tc-bw .tc-bw-hi{font-size:0;gap:0;margin-left:4px;padding-left:7px}
 html.tc-bw .tc-bw-hi::before{display:none}
 html.tc-bw .tc-bw-hi b{font-size:11px;letter-spacing:.04em}
}
@media (max-width:380px){html.tc-bw .tc-topbar svg{display:none}html.tc-bw .tc-topbar{gap:4px;padding:0 8px}html.tc-bw .tc-bw-hi{margin-left:3px;padding-left:7px}}
@media (max-width:350px){html.tc-bw .tc-topbar{font-size:10px;padding:0 6px;letter-spacing:-.015em}html.tc-bw .tc-bw-hi{padding-left:6px}html.tc-bw .tc-bw-hi b{font-size:10px;letter-spacing:.02em}}

/* ---------- hero ---------- */
html.tc-bw .tc-bw-hero{position:relative;overflow:hidden;isolation:isolate;color:#fff;border-bottom:2px solid rgba(248,200,48,.55);
 background:
  radial-gradient(ellipse 60% 90% at 70% 26%,rgba(200,245,154,.10),transparent 70%),
  radial-gradient(ellipse 120% 80% at 50% 120%,rgba(0,83,45,.55),transparent 70%),
  linear-gradient(180deg,var(--bw-night) 0%,#06200F 55%,var(--bw-deep) 100%)}
/* moon: a lit disc with a soft halo, top right */
html.tc-bw .tc-bw-hero::before{content:"";position:absolute;z-index:-1;top:26px;left:calc(50% + 44px);width:70px;height:70px;border-radius:50%;
 background:radial-gradient(circle at 64% 58%,rgba(160,150,110,.22) 0 11%,transparent 12%),radial-gradient(circle at 34% 66%,rgba(160,150,110,.17) 0 7%,transparent 8%),radial-gradient(circle at 52% 28%,rgba(160,150,110,.15) 0 6%,transparent 7%),radial-gradient(circle at 36% 34%,#FFFDF0 0,var(--bw-moon) 50%,#CFC8A2 100%);
 box-shadow:0 0 26px 6px rgba(243,240,220,.22),0 0 110px 44px rgba(200,245,154,.08);opacity:.88}
/* water: faint ripple lines in the lower half and the moon's broken reflection (tapered dashes under the moon) */
html.tc-bw .tc-bw-hero::after{content:"";position:absolute;z-index:-1;left:0;right:0;bottom:0;height:52%;pointer-events:none;--rx:79px;--bw-refl:rgba(243,240,220,.42);
 background:
  linear-gradient(90deg,transparent,var(--bw-refl) 50%,transparent) calc(50% + var(--rx)) 6px/46px 2px no-repeat,
  linear-gradient(90deg,transparent,var(--bw-refl) 50%,transparent) calc(50% + var(--rx)) 15px/30px 2px no-repeat,
  linear-gradient(90deg,transparent,var(--bw-refl) 50%,transparent) calc(50% + var(--rx)) 25px/56px 2px no-repeat,
  linear-gradient(90deg,transparent,var(--bw-refl) 50%,transparent) calc(50% + var(--rx)) 36px/22px 2px no-repeat,
  linear-gradient(90deg,transparent,var(--bw-refl) 50%,transparent) calc(50% + var(--rx)) 47px/40px 2px no-repeat,
  linear-gradient(90deg,transparent,var(--bw-refl) 50%,transparent) calc(50% + var(--rx)) 59px/16px 2px no-repeat,
  linear-gradient(90deg,transparent,var(--bw-refl) 50%,transparent) calc(50% + var(--rx)) 72px/28px 2px no-repeat,
  repeating-linear-gradient(180deg,transparent 0 9px,rgba(195,214,201,.07) 9px 10px);
 -webkit-mask-image:linear-gradient(180deg,transparent,#000 35%,#000 70%,transparent);mask-image:linear-gradient(180deg,transparent,#000 35%,#000 70%,transparent)}
html.tc-bw .tc-bw-in{position:relative;max-width:1328px;margin:0 auto;padding:44px 24px 46px;box-sizing:border-box;
 display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"k c" "t c" "s a";column-gap:48px;align-items:center}
html.tc-bw .tc-bw-kicker{grid-area:k;margin:0 0 10px;font:700 13px/1 Montserrat,sans-serif;letter-spacing:.16em;text-transform:uppercase;color:var(--bw-lime)}
html.tc-bw .tc-bw-title{grid-area:t;margin:0;font:800 68px/1 Montserrat,sans-serif;letter-spacing:.01em;color:#fff;text-transform:uppercase}
html.tc-bw .tc-bw-title span+span{color:var(--bw-gold);text-shadow:0 0 28px rgba(248,200,48,.25)}
html.tc-bw .tc-bw-sub{grid-area:s;align-self:start;margin:14px 0 0;max-width:46ch;min-height:3em;font:400 17px/1.5 Roboto,sans-serif;color:var(--bw-mist);overflow-wrap:anywhere;text-wrap:pretty}
html.tc-bw .tc-bw-count{grid-area:c;display:flex;gap:10px;justify-content:flex-end}
html.tc-bw .tc-bw-count[hidden]{display:none}
html.tc-bw .tc-bw-count>span{display:flex;flex-direction:column;align-items:center;justify-content:center;width:76px;height:80px;box-sizing:border-box;border-radius:var(--tc-radius,12px);
 background:linear-gradient(180deg,rgba(255,255,255,.10),rgba(255,255,255,.03));border:1px solid rgba(200,245,154,.24);box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 8px 24px rgba(0,0,0,.35);
 -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
html.tc-bw .tc-bw-count b{display:block;width:100%;text-align:center;font:800 32px/1 Montserrat,sans-serif;font-variant-numeric:tabular-nums;font-feature-settings:"tnum";color:#EFFFE0;text-shadow:0 0 14px rgba(200,245,154,.55)}
html.tc-bw .tc-bw-count i{margin-top:6px;font:600 11px/1 Montserrat,sans-serif;font-style:normal;letter-spacing:.1em;text-transform:uppercase;color:var(--bw-mist)}
html.tc-bw .tc-bw-cta{grid-area:a;justify-self:end;align-self:start;margin-top:18px;display:inline-flex;align-items:center;gap:10px;padding:14px 26px;border-radius:999px;
 background:var(--bw-gold);color:var(--bw-night);font:800 15px/1 Montserrat,sans-serif;letter-spacing:.02em;text-decoration:none;box-shadow:0 6px 22px rgba(248,200,48,.25);transition:background-color .2s,box-shadow .2s}
html.tc-bw .tc-bw-cta::after{content:"\2192";font-weight:700}
html.tc-bw .tc-bw-cta:hover{background:#FFD95A;color:var(--bw-night);text-decoration:none;box-shadow:0 6px 28px rgba(248,200,48,.4)}
html.tc-bw .tc-bw-cta:focus-visible{outline:3px solid #fff;outline-offset:3px;color:var(--bw-night)}
/* the offers page has no CTA: centre the countdown on the title + text block */
html.tc-bw .tc-bw-in:not(:has(.tc-bw-cta)){grid-template-areas:"k c" "t c" "s c"}
/* moonlight shimmer on the reflection (opacity only) */
@media (prefers-reduced-motion:no-preference){
 html.tc-bw .tc-bw-hero::after{animation:tc-bw-glint 5s ease-in-out infinite alternate}
}
@keyframes tc-bw-glint{from{opacity:.7}to{opacity:1}}

@media (max-width:1023px){
 html.tc-bw .tc-bw-title{font-size:54px}
 html.tc-bw .tc-bw-count>span{width:66px;height:72px}
 html.tc-bw .tc-bw-count b{font-size:27px}
 html.tc-bw .tc-bw-in{column-gap:28px}
 html.tc-bw .tc-bw-hero::before{top:16px;left:calc(50% + 4px);width:44px;height:44px}
 html.tc-bw .tc-bw-hero::after{--rx:26px}
 html.tc-bw .tc-bw-sub{max-width:min(46ch,calc(50vw - 40px))}
}
@media (max-width:760px){
 html.tc-bw .tc-bw-in{grid-template-columns:minmax(0,1fr);grid-template-areas:"k" "t" "s" "c" "a";justify-items:center;text-align:center;padding:24px 16px 26px}
 html.tc-bw .tc-bw-in:not(:has(.tc-bw-cta)){grid-template-areas:"k" "t" "s" "c"}
 html.tc-bw .tc-bw-hero::before{top:10px;left:auto;right:12px;width:34px;height:34px}
 html.tc-bw .tc-bw-hero::after{height:46%;background:repeating-linear-gradient(180deg,transparent 0 9px,rgba(195,214,201,.07) 9px 10px)}
 html.tc-bw .tc-bw-kicker{font-size:12px;margin-bottom:8px}
 html.tc-bw .tc-bw-title{font-size:44px}
 html.tc-bw .tc-bw-sub{margin-top:10px;font-size:15px;max-width:36ch;text-wrap:balance}
 html.tc-bw .tc-bw-count{justify-content:center;gap:8px;margin-top:16px}
 html.tc-bw .tc-bw-count>span{width:64px;height:60px}
 html.tc-bw .tc-bw-count b{font-size:25px}
 html.tc-bw .tc-bw-count i{font-size:10px;margin-top:5px}
 html.tc-bw .tc-bw-cta{justify-self:center;margin-top:16px}
}
@media (max-width:350px){
 html.tc-bw .tc-bw-title{font-size:38px}
 html.tc-bw .tc-bw-count>span{width:58px}
}

/* ---------- product cards and product page (not cart / checkout / account) ---------- */
html.tc-bw:not([class*=route-checkout]):not([class*=route-account]) .product-label-28 b{background:var(--bw-deep)!important;color:var(--bw-gold)!important;box-shadow:0 0 0 1px rgba(248,200,48,.45),0 2px 8px rgba(3,20,12,.3)}
html.tc-bw:not([class*=route-checkout]):not([class*=route-account]) .product-thumb .price-new{display:inline-block;padding:3px 9px;border-radius:7px;background:var(--bw-deep);color:var(--bw-gold)!important;line-height:1.25}
html.tc-bw:not([class*=route-checkout]):not([class*=route-account]) .product-thumb .price-old{color:#56615A!important;text-decoration:line-through!important}
html.tc-bw.route-product-product .product-details .product-price-new{display:inline-block;margin-bottom:8px;padding:3px 14px;border-radius:10px;background:var(--bw-deep);color:var(--bw-gold)!important;line-height:1.2}
html.tc-bw.route-product-product .product-details .product-price-old{text-decoration:line-through}
@media (max-width:360px){html.tc-bw:not([class*=route-checkout]):not([class*=route-account]) .product-thumb .price-new{font-size:15px;padding:2px 7px;margin-bottom:2px}}

/* ---------- the sale button, phone menu entry and home tile: BLACK WEEK, black with a glowing red dot (17.11.2026) ---------- */
@keyframes tc-bw-pulse{0%,100%{box-shadow:0 0 4px 1px rgba(255,45,45,.75)}50%{box-shadow:0 0 10px 3px rgba(255,45,45,.95)}}
html.tc-bw body #main-menu>.j-menu>.main-menu-item>a[href*="namaleniya"]{display:inline-flex!important;align-items:center;gap:8px!important;background:#0b0b0b!important;color:#fff!important;letter-spacing:.06em!important;font-weight:800!important;padding:0 12px 0 11px!important;box-shadow:0 0 0 1px rgba(255,45,45,.55),0 2px 12px rgba(255,30,30,.28)!important}
html.tc-bw body #main-menu>.j-menu>.main-menu-item>a[href*="namaleniya"]::before{content:""!important;display:inline-block!important;position:static!important;flex:0 0 auto;width:9px!important;height:9px!important;margin:0!important;border-radius:50%;background:#ff2d2d!important;font-size:0!important;transform:none!important;animation:tc-bw-pulse 1.6s ease-in-out infinite}
html.tc-bw body #main-menu>.j-menu>.main-menu-item>a[href*="namaleniya"]::after{content:none!important;display:none!important}
html.tc-bw body #main-menu>.j-menu>.main-menu-item>a[href*="namaleniya"]:hover{background:#000!important;box-shadow:0 0 0 1px rgba(255,45,45,.8),0 2px 14px rgba(255,30,30,.4)!important}
/* phone menu */
html.tc-bw .mobile-main-menu-wrapper .main-menu .j-menu>li.main-menu-item-49>a,html.tc-bw .mobile-main-menu-wrapper .j-menu>li>a[href*="namaleniya"]{display:flex!important;align-items:center;box-sizing:border-box!important;width:auto!important;max-width:calc(100% - 24px)!important;min-height:46px;margin:6px 12px!important;padding:0 14px 0 6px!important;background:#0b0b0b!important;color:#fff!important;border-radius:10px;letter-spacing:.06em;font-weight:800!important;box-shadow:0 0 0 1px rgba(255,45,45,.45)}
html.tc-bw .mobile-main-menu-wrapper .j-menu>li>a[href*="namaleniya"] .links-text{color:#fff!important}
html.tc-bw div.main-menu.main-menu-3>.j-menu .menu-item.main-menu-item-49>a::before,html.tc-bw .mobile-main-menu-wrapper .j-menu>li>a[href*="namaleniya"]::before{content:""!important;font-size:0!important;min-width:0!important;width:10px!important;height:10px!important;margin:0 14px 0 7px!important;border-radius:50%;background:#ff2d2d!important;animation:tc-bw-pulse 1.6s ease-in-out infinite}
/* home tile */
html.tc-bw .tc-banner-sale{background:radial-gradient(120% 90% at 50% 0,#1a1a1a,#050505)!important;box-shadow:inset 0 0 0 1px rgba(255,45,45,.45)}
html.tc-bw .tc-banner-sale .tc-banner-pct{font-size:0!important;width:14px;height:14px;border-radius:50%;background:#ff2d2d;animation:tc-bw-pulse 1.6s ease-in-out infinite;margin:6px 0 auto 2px}
html.tc-bw .tc-banner-sale .tc-banner-t{color:#fff!important;letter-spacing:.06em}

/* ---------- the offers page (/namaleniya) in the Black Week look, top to bottom ---------- */
html.tc-bw-offers body,html.tc-bw-offers #content,html.tc-bw-offers .site-wrapper,html.tc-bw-offers .container-wrapper{background:var(--bw-night)!important}
html.tc-bw-offers body{background:linear-gradient(180deg,var(--bw-deep) 0,var(--bw-night) 520px,var(--bw-night) 100%)!important}
/* the header keeps its light background (logo and icons are drawn for it); the menu bar inside keeps its own green */
html.tc-bw-offers .header .mid-bar{background:#f8f8f8!important;box-shadow:0 0 0 100vmax #f8f8f8;clip-path:inset(0 -100vmax)}
html.tc-bw-offers .breadcrumb,html.tc-bw-offers .breadcrumb a,html.tc-bw-offers .breadcrumb li,html.tc-bw-offers .breadcrumb li:last-child a,html.tc-bw-offers .breadcrumb li:last-child a span,html.tc-bw-offers .breadcrumb>li>a>span{color:var(--bw-mist)!important;background:transparent!important}
html.tc-bw-offers .breadcrumb li:first-child a{background:rgba(255,255,255,.9)!important}
html.tc-bw-offers .breadcrumb a:hover{color:var(--bw-gold)!important}
html.tc-bw-offers h1.page-title,html.tc-bw-offers .page-title span{color:#fff!important}
html.tc-bw-offers h1.page-title::after{background:var(--bw-gold)!important}
html.tc-bw-offers .category-description,html.tc-bw-offers .category-description *,html.tc-bw-offers .tc-cat-text,html.tc-bw-offers .tc-cat-text *{color:var(--bw-mist)!important;background:transparent!important}
html.tc-bw-offers .category-description a,html.tc-bw-offers .tc-cat-text a{color:var(--bw-gold)!important}
/* sort bar, filters and the side column: dark cards with a thin gold edge */
html.tc-bw-offers .products-filter,html.tc-bw-offers .tc-cat-text{background:rgba(255,255,255,.04)!important;border:1px solid rgba(248,200,48,.18)!important;border-radius:14px}
html.tc-bw-offers .products-filter *{color:#fff!important}
html.tc-bw-offers .products-filter select{background:#0e2a1c!important;color:#fff!important;border-color:rgba(248,200,48,.3)!important}
html.tc-bw-offers .products-filter select option{background:#fff!important;color:#173d2a!important}
html.tc-bw-offers .products-filter select option:checked{background:#0e2a1c!important;color:#F8C830!important}
/* the filter column on desktop (on phones it opens as its own light panel and keeps its colours) */
@media (min-width:1025px){
 html.tc-bw-offers #column-left .module{background:rgba(255,255,255,.04)!important;border:1px solid rgba(248,200,48,.18)!important;border-radius:14px}
 html.tc-bw-offers #column-left .module-title,html.tc-bw-offers #column-left .title,html.tc-bw-offers #column-left .panel-heading .panel-title a,html.tc-bw-offers #column-left a.accordion-toggle{color:#fff!important}
 html.tc-bw-offers #column-left input[type=text],html.tc-bw-offers #column-left input[type=number]{background:#0e2a1c!important;color:#fff!important;border-color:rgba(248,200,48,.3)!important}
}
html.tc-bw-offers .products-filter .grid-list .view-btn{color:var(--bw-mist)!important}
html.tc-bw-offers .products-filter .grid-list .view-btn.active{color:var(--bw-gold)!important}
/* product cards stay light (photos and prices read best on white) but float on the night with a soft glow */
html.tc-bw-offers .product-layout .product-thumb{box-shadow:0 0 0 1px rgba(248,200,48,.22),0 10px 28px rgba(0,0,0,.45)!important;border-color:transparent!important}
html.tc-bw-offers .product-layout .product-thumb:hover{box-shadow:0 0 0 1px rgba(248,200,48,.55),0 12px 32px rgba(0,0,0,.55)!important}
/* pagination and the result count under the products */
html.tc-bw-offers .pagination-results,html.tc-bw-offers .pagination-results .text-right,html.tc-bw-offers .pagination>li>a,html.tc-bw-offers .pagination>li>span{color:var(--bw-mist)!important;background:transparent!important;border-color:rgba(248,200,48,.25)!important}
html.tc-bw-offers .pagination>li.active>span,html.tc-bw-offers .pagination>li>a:hover{background:var(--bw-gold)!important;color:var(--bw-night)!important}

/* the biggest discount next to the title, "до −45%" (owner 18.11.2026) */
html.tc-bw .tc-bw-pct{display:inline-flex;align-items:baseline;gap:.3em;margin-left:.35em;padding:.16em .5em .2em;border-radius:14px;vertical-align:middle;
 background:#E0262F;color:#fff;font:700 .36em/1 Montserrat,sans-serif;letter-spacing:.04em;text-transform:none;text-shadow:none;box-shadow:0 0 0 1px rgba(255,255,255,.12),0 6px 22px rgba(224,38,47,.45);
 transform:rotate(-3deg) translateY(-.12em)}
html.tc-bw .tc-bw-pct b{font-size:1.75em;font-weight:800;letter-spacing:0;color:#fff}
@media (max-width:760px){
 html.tc-bw .tc-bw-pct{display:flex;width:max-content;margin:10px auto 0;font-size:16px;transform:rotate(-2deg)}
 html.tc-bw .tc-bw-pct b{font-size:30px}
}
/* 19.11.2026: long prices on phones: the old price wrapped flush under the pill. Price row wraps with a real gap */
html.tc-bw:not([class*=route-checkout]):not([class*=route-account]) .product-thumb .price>div{display:flex;flex-wrap:wrap;align-items:center;gap:5px 8px}
html.tc-bw:not([class*=route-checkout]):not([class*=route-account]) .product-thumb .price-old{line-height:1.3!important;white-space:nowrap}
html.tc-bw:not([class*=route-checkout]):not([class*=route-account]) .product-thumb .price-new{white-space:nowrap}
