/* ==========================================================================
   landing.css — модерна landing страница за промоции (landing.php)
   Изцяло CSS дизайн (без легаси фонови изображения), responsive grid/flex.
   ========================================================================== */

:root {
    --brand-red: #d51f22;
    --brand-red-dark: #a8181b;
    --brand-blue: #2d2669;
    --text-dark: #232323;
    --text-muted: #6b6b6b;
    --bg-light: #f7f7f9;
    --card-bg: #ffffff;
    --radius: 14px;
    --shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 10px 28px rgba(0, 0, 0, 0.14);
    --max-width: 1280px;
}

* {
    box-sizing: border-box;
}

body.landing_page {
    margin: 0;
    font-family: 'PT Sans', Verdana, Arial, sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
}

.landing-wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Hero ---------- */
.landing-hero {
    position: relative;
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-red) 100%);
    color: #fff;
    padding: 56px 0 80px;
    text-align: center;
    overflow: hidden;
}

/* декоративен акцент (емоджи) в горния десен ъгъл - чисто CSS, без изображения */
.landing-hero::before {
    content: attr(data-accent);
    position: absolute;
    top: -10px;
    right: 4%;
    font-size: 110px;
    opacity: 0.18;
    line-height: 1;
    pointer-events: none;
}

.landing-hero__title {
    position: relative;
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.15;
}

.landing-hero__subtitle {
    position: relative;
    font-size: clamp(15px, 2.2vw, 19px);
    max-width: 640px;
    margin: 0 auto 28px;
    opacity: 0.92;
}

.landing-hero__cta {
    position: relative;
    display: inline-block;
    background: #fff;
    color: var(--brand-red-dark);
    font-weight: 700;
    font-size: 17px;
    padding: 14px 36px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: transform .15s ease, box-shadow .15s ease;
}

.landing-hero__cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* ---------- Кампанийни варианти на hero фона ----------
   Смяната става автоматично по дата (виж includes/landing_campaigns_config.php),
   без нужда от нови изображения - всеки вариант е чист CSS градиент. */
.landing-hero--back-to-school {
    background: linear-gradient(135deg, #1f7a4d 0%, #f2a900 100%);
}

.landing-hero--autumn {
    background: linear-gradient(135deg, #7a2f05 0%, #d4791a 100%);
}

.landing-hero--black-friday {
    background: linear-gradient(135deg, #111111 0%, #3a3a3a 100%);
}

.landing-hero--black-friday .landing-hero__cta {
    color: #111111;
}

.landing-hero--christmas {
    background: linear-gradient(135deg, #0b6e3a 0%, #c21807 100%);
}

/* ---------- Quick category nav ---------- */
.landing-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.landing-nav__list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    list-style: none;
    margin: 0;
    padding: 12px 20px;
    max-width: var(--max-width);
    margin: 0 auto;
    -webkit-overflow-scrolling: touch;
}

.landing-nav__list::-webkit-scrollbar {
    height: 4px;
}

.landing-nav__link {
    display: inline-block;
    white-space: nowrap;
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--bg-light);
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background .15s ease, color .15s ease;
}

.landing-nav__link:hover,
.landing-nav__link:focus-visible {
    background: var(--brand-red);
    color: #fff;
}

/* ---------- Category sections ---------- */
.landing-section {
    padding: 48px 0 12px;
    scroll-margin-top: 70px;
}

.landing-section__title {
    font-size: 26px;
    font-weight: 700;
    color: var(--brand-blue);
    margin: 0 0 24px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--brand-red);
    display: inline-block;
}

.landing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* ---------- Product card ---------- */
.product-card {
    position: relative;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .15s ease, box-shadow .15s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.product-card__media {
    position: relative;
    display: block;
    padding: 18px;
    text-align: center;
    background: #fdfdfd;
}

.product-card__media img {
    max-width: 100%;
    height: 140px;
    object-fit: contain;
}

.product-card__discount {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--brand-red);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding: 5px 10px;
    border-radius: 999px;
    z-index: 2;
}

.product-card__flag {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 999px;
    z-index: 2;
    color: #fff;
}

.product-card__flag--soldout {
    background: #6b6b6b;
}

.product-card__flag--limited {
    background: #e08e00;
}

.product-card__body {
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.product-card__title {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    line-height: 1.35;
    min-height: 38px;
}

.product-card__title a {
    color: var(--text-dark);
    text-decoration: none;
}

.product-card__title a:hover {
    color: var(--brand-red);
}

.product-card__prices {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.product-card__price-old {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 13px;
}

.product-card__price-new {
    color: var(--brand-red);
    font-weight: 700;
    font-size: 18px;
}

/* Стил за десетичните цифри на цената (span.decimals идва от currencies::style_format()).
   Без него цената се показва като едно цяло число, без визуално разграничение
   на стотинките/центовете (напр. 19.99 изглежда като 1999). */
.product-card__prices .decimals {
    font-size: 60%;
    padding: 0 1px;
    text-decoration: underline;
    vertical-align: text-top;
}

.product-card__cta {
    margin-top: auto;
    display: inline-block;
    text-align: center;
    background: var(--brand-blue);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    padding: 10px 12px;
    border-radius: 8px;
    transition: background .15s ease;
}

.product-card__cta:hover {
    background: var(--brand-red);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Empty state ---------- */
.landing-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
    font-size: 18px;
}

/* ---------- Footer ---------- */
.landing-footer {
    background: var(--brand-blue);
    color: #fff;
    margin-top: 40px;
    font-size: 14px;
}

.landing-footer a {
    color: #fff;
    text-decoration: none;
}

.landing-footer a:hover {
    text-decoration: underline;
}

.landing-footer__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    padding: 40px 0 24px;
}

.landing-footer__col h3 {
    margin: 0 0 14px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #fff;
    border-bottom: 2px solid var(--brand-red);
    padding-bottom: 8px;
}

.landing-footer__col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.landing-footer__col ul li {
    opacity: .9;
}

.landing-footer__addresses li {
    opacity: .85;
    line-height: 1.4;
}

.landing-footer__socials {
    display: flex;
    gap: 14px;
    margin-top: 16px;
}

.landing-footer__socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    transition: background .15s ease;
}

.landing-footer__socials a:hover {
    background: var(--brand-red);
    text-decoration: none;
}

.landing-footer__bottom {
    background: rgba(0, 0, 0, .15);
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.landing-footer__bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 0;
    text-align: center;
}

.landing-footer__payments {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.landing-footer__payments img {
    height: 26px;
    background: #fff;
    border-radius: 3px;
    padding: 2px 4px;
}

.landing-footer__copy {
    margin: 0;
    opacity: .8;
    font-size: 13px;
}

.landing-footer__back {
    font-weight: 600;
    white-space: nowrap;
}

@media screen and (max-width: 900px) {
    .landing-footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 600px) {
    .landing-footer__grid {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 32px 0 16px;
    }

    .landing-footer__socials {
        justify-content: center;
    }

    .landing-footer__bottom-inner {
        flex-direction: column;
    }
}

@media screen and (max-width: 600px) {
    .landing-hero {
        padding: 28px 0 50px;
    }

    .landing-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 14px;
    }

    .product-card__media img {
        height: 110px;
    }
}
