/* =====================================================================
   HOOAJATEEMAD (jõulud jt) - kategooria teema ja üleveebiline hooajarežiim
   Värvid tulevad CSS muutujatest --sz-primary / --sz-secondary / --sz-accent,
   mille PHP paneb konkreetsele elemendile (vt includes/functions/season.php).
   ===================================================================== */

/* --- Osakeste lõuend (lumi, sädelus jne) --- */
.sz-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 890; }

/* --- Riba päise kohal --- */
.sz-ribbon {
    position: relative; color: #fff; font-size: 14px; line-height: 1.4;
    background: linear-gradient(90deg, var(--sz-secondary) 0%, var(--sz-primary) 60%, var(--sz-secondary) 100%);
    background-size: 200% 100%; animation: szRibbonShift 14s ease-in-out infinite alternate;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.sz-ribbon-inner {
    max-width: 1280px; margin: 0 auto; padding: 9px 56px 9px 20px;
    display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; text-align: center;
}
.sz-ribbon-icon { color: var(--sz-accent); font-size: 18px; line-height: 1; }
.sz-ribbon-text { font-weight: 500; letter-spacing: .01em; }
.sz-ribbon-days {
    display: inline-flex; align-items: baseline; gap: 4px; background: var(--sz-accent); color: var(--sz-secondary);
    font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 13px; padding: 3px 11px; border-radius: 30px;
}
.sz-ribbon-days small { font-weight: 600; font-size: 11px; opacity: .8; }
.sz-ribbon-cta {
    color: #fff; font-weight: 700; text-decoration: none; border: 1.5px solid rgba(255,255,255,0.55); padding: 4px 14px; border-radius: 30px;
    transition: background .2s ease, color .2s ease;
}
.sz-ribbon-cta:hover { background: #fff; color: var(--sz-primary); }
.sz-ribbon-close {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.7);
    font-size: 18px; line-height: 1; cursor: pointer; padding: 4px; background: none; border: 0;
}
.sz-ribbon-close:hover { color: #fff; }
@keyframes szRibbonShift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* --- Kategooria lehe hero --- */
.sz-hero {
    position: relative; overflow: hidden; border-radius: 20px; color: #fff;
    background: linear-gradient(135deg, var(--sz-secondary) 0%, var(--sz-primary) 100%);
    padding: 64px 56px 56px; margin-bottom: 40px; min-height: 320px;
    display: flex; align-items: flex-end;
    box-shadow: 0 24px 60px -30px rgba(0,0,0,0.5);
}
.sz-hero::before {
    /* Peen valgussära ülanurgas */
    content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -160px; top: -260px;
    background: radial-gradient(circle, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0) 70%); pointer-events: none;
}
.sz-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.02); }
.sz-hero-bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.45) 45%, rgba(0,0,0,0.05) 100%);
}
.sz-hero-bottom {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
    background: linear-gradient(90deg, var(--sz-accent), transparent);
}
.sz-hero .sz-ornament { position: absolute; right: 36px; top: 24px; width: 220px; height: 220px; color: var(--sz-accent); opacity: .5; pointer-events: none; }
.sz-hero-content { position: relative; z-index: 2; max-width: 660px; }
.sz-chip {
    display: inline-flex; align-items: center; gap: 7px; background: var(--sz-accent); color: var(--sz-secondary);
    font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
    padding: 7px 14px; border-radius: 30px; margin-bottom: 18px;
}
.sz-hero h1 { color: #fff; font-size: 46px; line-height: 1.08; margin: 0 0 10px; letter-spacing: -0.01em; }
.sz-hero .sz-tagline { font-family: 'Montserrat', sans-serif; font-size: 21px; font-weight: 600; color: var(--sz-accent); margin: 0 0 14px; }
.sz-hero .sz-desc, .sz-hero .sz-desc p { color: rgba(255,255,255,0.85); font-size: 15px; line-height: 1.65; max-width: 560px; margin: 0; }
.sz-hero .sz-desc p + p { margin-top: 8px; }
.sz-hero-meta { position: relative; z-index: 2; margin-left: auto; align-self: flex-end; text-align: right; }
.sz-hero-count { font-family: 'Montserrat', sans-serif; font-size: 13px; color: rgba(255,255,255,0.75); }
.sz-hero-count strong { display: block; font-size: 34px; color: #fff; line-height: 1; margin-bottom: 4px; }

/* Sorteerimine teemaga kategoorias */
.sz-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.sz-toolbar .sz-toolbar-title { font-size: 14px; color: #888; }

/* --- Tootekaardid teemaga kategoorias --- */
.sz-card-badge {
    position: absolute; top: 14px; left: 14px; z-index: 3;
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--sz-primary); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em;
    padding: 5px 11px; border-radius: 30px; box-shadow: 0 4px 12px rgba(0,0,0,0.18); pointer-events: none;
}
.sz-card-badge i { color: var(--sz-accent); font-size: 13px; }
.sz-themed .curated-card { position: relative; }
.sz-themed .curated-card:hover { box-shadow: 0 18px 36px -12px color-mix(in srgb, var(--sz-primary) 35%, transparent); }
.sz-themed .add-btn-floating { background: var(--sz-primary); }

/* --- Kategooria kaart (kataloogi esileht, avaleht) --- */
.cat-card.sz-cat { position: relative; }
.cat-card.sz-cat .cat-image-wrapper { position: relative; }
.cat-card.sz-cat .cat-image-wrapper::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 55%, color-mix(in srgb, var(--sz-secondary) 75%, transparent) 100%);
    pointer-events: none;
}
.cat-card.sz-cat .sz-cat-badge {
    position: absolute; top: 14px; left: 14px; z-index: 2;
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--sz-accent); color: var(--sz-secondary); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
    padding: 6px 12px; border-radius: 30px; box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.cat-card.sz-cat .sz-cat-tagline {
    position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; color: #fff; text-align: left;
    font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 600; line-height: 1.3; text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.cat-card.sz-cat:hover { border-color: var(--sz-accent); }

/* --- Külgmenüü --- */
.sidebar-menu .sz-side-icon { color: var(--sz-primary); margin-right: 6px; font-size: 14px; vertical-align: -2px; }

/* --- Avalehe promo --- */
.sz-promo {
    position: relative; overflow: hidden; border-radius: 22px; color: #fff;
    background: linear-gradient(135deg, var(--sz-secondary) 0%, var(--sz-primary) 100%);
    display: grid; grid-template-columns: 1.05fr .95fr; min-height: 340px;
    box-shadow: 0 30px 70px -35px rgba(0,0,0,0.55);
}
.sz-promo::before {
    content: ''; position: absolute; width: 600px; height: 600px; border-radius: 50%; left: -200px; bottom: -380px;
    background: radial-gradient(circle, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0) 70%); pointer-events: none;
}
.sz-promo-text { position: relative; z-index: 2; padding: 60px 56px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.sz-promo-text h2 { color: #fff; font-size: 40px; line-height: 1.1; margin: 0 0 12px; }
.sz-promo-text .sz-tagline { font-family: 'Montserrat', sans-serif; font-size: 19px; font-weight: 600; color: var(--sz-accent); margin: 0 0 18px; }
.sz-promo-text p.sz-promo-desc { color: rgba(255,255,255,0.85); font-size: 15px; line-height: 1.65; max-width: 460px; margin: 0 0 28px; }
.sz-promo-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.sz-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 14px 30px; border-radius: 50px;
    font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 15px; text-decoration: none;
    background: var(--sz-accent); color: var(--sz-secondary); transition: transform .2s ease, box-shadow .2s ease;
}
.sz-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.25); }
.sz-btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.5); }
.sz-btn-ghost:hover { background: rgba(255,255,255,0.1); box-shadow: none; }
.sz-promo-media { position: relative; min-height: 300px; background-size: cover; background-position: center; }
.sz-promo-media::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--sz-secondary) 0%, rgba(0,0,0,0) 35%); opacity: .9; }
.sz-promo-media .sz-ornament { position: absolute; right: 30px; bottom: 20px; width: 200px; height: 200px; color: var(--sz-accent); opacity: .6; }
.sz-promo-media.sz-promo-noimg { background: radial-gradient(circle at 60% 40%, color-mix(in srgb, var(--sz-primary) 70%, #fff 0%) 0%, var(--sz-secondary) 70%); }
.sz-promo-media.sz-promo-noimg .sz-ornament { width: 320px; height: 320px; right: 60px; bottom: 30px; opacity: .45; }
.sz-promo-deadline {
    display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 14px; border-radius: 30px; font-size: 13px; margin-bottom: 20px; backdrop-filter: blur(4px);
}
.sz-promo-deadline strong { font-family: 'Montserrat', sans-serif; color: var(--sz-accent); font-size: 16px; }

/* --- Vähendatud liikumine --- */
@media (prefers-reduced-motion: reduce) {
    .sz-ribbon { animation: none; }
}

/* --- Mobiil --- */
@media (max-width: 900px) {
    .sz-promo { grid-template-columns: 1fr; }
    .sz-promo-media { min-height: 220px; order: -1; }
    .sz-promo-media::before { background: linear-gradient(0deg, var(--sz-secondary) 0%, rgba(0,0,0,0) 45%); }
    .sz-promo-text { padding: 36px 26px 40px; }
    .sz-promo-text h2 { font-size: 30px; }
}
@media (max-width: 768px) {
    .sz-hero { padding: 40px 24px 32px; min-height: 240px; border-radius: 16px; flex-wrap: wrap; gap: 16px; }
    .sz-hero h1 { font-size: 30px; }
    .sz-hero .sz-tagline { font-size: 17px; }
    .sz-hero .sz-ornament { width: 130px; height: 130px; right: 10px; top: 10px; opacity: .35; }
    .sz-hero-meta { margin-left: 0; text-align: left; flex-basis: 100%; }
    .sz-hero-count strong { display: inline; font-size: 22px; margin-right: 6px; }
    .sz-ribbon-inner { padding: 8px 44px 8px 14px; font-size: 13px; gap: 8px; }
    .sz-ribbon-cta { display: none; }
    .sz-ribbon-days { font-size: 12px; padding: 2px 9px; }
}
