:root {
    --bg-dark: #0b0b0b;
    --bg-card: #161616;
    --bg-soft: #f3f0eb;
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.82);
    --text-dark: #1b1b1b;
    --accent: #f27a32;
    --accent-hover: #df6a25;
    --border-soft: rgba(255, 255, 255, 0.08);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.28);
    --shadow-md: 0 14px 34px rgba(0, 0, 0, 0.18);
    --shadow-sm: 0 6px 16px rgba(0, 0, 0, 0.16);
    --radius-xl: 26px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --container: 1240px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--text-main);
    background: var(--bg-dark);
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
}

.container {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

/* HEADER */
.home-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;
    padding: 22px 0;
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand img {
    height: 72px !important;
    width: auto;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 34px;
}

    .main-nav a {
        color: rgba(255, 255, 255, 0.92);
        font-size: 17px;
        font-weight: 600;
        transition: opacity 0.2s ease;
    }

        .main-nav a:hover {
            opacity: 0.78;
        }

.cta-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 26px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    transition: background 0.2s ease, transform 0.2s ease;
}

    .cta-top:hover {
        background: var(--accent-hover);
        transform: translateY(-1px);
    }

/* HERO SECTION */
.hero-section {
    position: relative;
    min-height: 760px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.66) 38%, rgba(0, 0, 0, 0.26) 100%), url("/images/home/hero-bg.jpg") center center / cover no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at left center, rgba(255, 120, 40, 0.14), transparent 40%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 2;
    min-height: 760px;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 620px;
    padding-top: 110px;
}

    .hero-copy h1 {
        margin: 0 0 20px;
        font-size: clamp(44px, 7vw, 78px);
        line-height: 0.97;
        font-weight: 900;
        letter-spacing: -0.03em;
    }

    .hero-copy p {
        margin: 0 0 34px;
        max-width: 560px;
        font-size: 24px;
        line-height: 1.45;
        color: var(--text-muted);
    }

.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 62px;
    padding: 0 28px;
    border-radius: 18px;
    background: var(--accent);
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    box-shadow: var(--shadow-lg);
    transition: background 0.2s ease, transform 0.2s ease;
}

    .btn-primary:hover {
        background: var(--accent-hover);
        transform: translateY(-1px);
    }

.btn-icon {
    font-size: 18px;
}

/* CATEGORIES SECTION */
.categories-section {
    padding: 68px 0 48px;
    background: #efebe6;
    color: var(--text-dark);
}

.section-heading {
    margin-bottom: 24px;
}

    .section-heading.center {
        text-align: center;
    }

    .section-heading h2 {
        margin: 0 0 8px;
        font-size: clamp(30px, 4vw, 44px);
        line-height: 1.08;
        font-weight: 900;
        color: #000;
    }

    .section-heading p {
        margin: 0;
        font-size: 18px;
        color: #5e5a56;
    }

.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.category-card {
    position: relative;
    min-height: 180px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transform: translateZ(0);
    height: 180px;
}

    .category-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.35s ease;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.74) 100%);
    }

    .category-card:hover img {
        transform: scale(1.04);
    }

.category-card__overlay {
    position: absolute;
    inset: latency: hidden;
    background: linear-gradient(180deg, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0.74) 100%);
}

.category-card__content {
    position: absolute;
    inset-inline: 16px;
    bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2;
}

.category-card__badge {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex: 0 0 auto;
}

.category-card__content h3 {
    margin: 0;
    color: #fff;
    font-size: 24px;
    font-weight: 800;
}

/* OFFERS SECTION — TOP предложения */
.offers-section {
    padding: 44px 0 76px;
    background: linear-gradient(180deg, rgba(10,10,10,0.98), rgba(16,16,16,1));
}

.offers-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 24px;
    align-items: start;
}

.offers-left {
    min-width: 0;
    background: linear-gradient(180deg, #111111 0%, #1a1a1a 100%);
    border-radius: 20px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,0.08);
}
    .offers-left .section-heading h2 {
        color: #fff;
    }
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* HERO карта за първия продукт */
.products-grid {
    grid-template-columns: repeat(2, 1fr);
}

.product-card {
    background: #fefaf6;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}

    .product-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 20px 50px rgba(0,0,0,0.24);
    }

.product-card--hero {
    grid-column: span 2;
    background: linear-gradient(180deg, #fefaf6, #f7f4ef);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 22px 60px rgba(0,0,0,0.22);
    padding: 10px;
}

.product-card__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.product-card__image-wrap {
    aspect-ratio: 1.45 / 1;
    overflow: hidden;
    background: #ddd;
}

    .product-card__image-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.74) 100%);
    }

.product-card__body {
    background: #fefaf6;
    padding: 14px 14px 16px;
    color: var(--text-dark);
}

    .product-card__body h3 {
        margin: 0 0 8px;
        font-size: 22px;
        line-height: 1.15;
        font-weight: 800;
    }

.product-card--hero .product-card__body h3 {
    font-size: 24px;
}

.product-card__desc {
    margin: 0 0 14px;
    min-height: 44px;
    font-size: 14px;
    line-height: 1.45;
    color: #595551;
    overflow: hidden;
}

.product-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.product-card__price {
    font-size: 20px;
    font-weight: 900;
    color: #111;
}

.product-card__btn {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #fff;
    font-weight: 800;
    transition: background 0.2s ease, transform 0.2s ease;
}

    .product-card__btn:hover {
        background: var(--accent-hover);
        transform: translateY(-1px);
    }

.product-card--hero .product-card__btn {
    min-height: 52px;
    font-size: 18px;
}

/* HOW IT WORKS CARD */
.how-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    background: #141414;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-soft);
    padding: 2px;
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

    .how-card::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 24px;
        pointer-events: none;
        border: 1px solid rgba(255,120,40,0.12);
        z-index: -1;
    }

.how-card__content {
    padding: 28px 28px 14px;
    background: #141414;
}

    .how-card__content h2 {
        margin: 0 0 8px;
        font-size: 38px;
        font-weight: 900;
        line-height: 1.04;
    }

    .how-card__content > p {
        margin: 0 0 22px;
        color: rgba(255,255,255,0.72);
        font-size: 17px;
    }

.how-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 0;
}

.how-step__number {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    flex: 0 0 auto;
    margin-top: 2px;
}

.how-step h4 {
    margin: 0 0 4px;
    font-size: 19px;
    font-weight: 800;
    color: #fff;
}

.how-step p {
    margin: 0;
    color: rgba(255,255,255,0.8);
    line-height: 1.45;
    font-size: 15px;
}

.how-card__image {
    padding: 0 18px 18px;
}

    .how-card__image img {
        width: 100%;
        border-radius: 20px;
        object-fit: cover;
        box-shadow: var(--shadow-md);
    }

/* FOOTER */
.site-footer {
    padding: 38px 0;
    background: #0f0f0f;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 26px;
}

    .footer-grid h4 {
        margin: 0 0 12px;
        font-size: 20px;
        font-weight: 900;
    }

    .footer-grid p {
        margin: 0 0 8px;
        color: rgba(255,255,255,0.76);
        line-height: 1.5;
    }

/* МОБИЛЕН РЕЖИМ */
@media (max-width: 1180px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .offers-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .main-nav {
        display: none;
    }

    .hero-section,
    .hero-grid {
        min-height: 447px;
    }

    .hero-copy {
        max-width: 100%;
        padding-top: 120px;
    }

        .hero-copy p {
            font-size: 18px;
        }

    .categories-grid,
    .products-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        min-height: 220px;
    }

    .cta-top {
        min-height: 46px;
        padding: 0 18px;
        font-size: 15px;
    }
}


/* ================= FIX PRODUCTS (SAFE OVERRIDE) ================= */

/* 3 на ред */
.products-grid {
    grid-template-columns: repeat(3, 1fr) !important;
}

/* махаме старото body layout */
.product-card__desc,
.product-card__meta {
    display: none;
}

/* IMAGE като category */
.product-card__image-wrap {
    position: relative;
    height: 180px;
}

    /* overlay */
    .product-card__image-wrap::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.75));
    }

/* име върху снимката */
.product-card__body {
    position: absolute;
    bottom: 10px;
    left: 12px;
    right: 12px;
    z-index: 2;
    padding: 0 !important;
    background: none !important;
}

    /* име */
    .product-card__body h3 {
        color: #fff !important;
        font-size: 18px;
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

/* долна част (цена + бутон) */
.product-card__price,
.product-card__btn {
    position: static;
}
.section-heading h2
/* контейнер под картата */
.product-card__body {
    display: flex;
    flex-direction: column;
}

/* добавяме долен блок */
.product-card::after {
    content: "";
    display: block;
    height: 60px;
    background: #fefaf6;
}

/* footer */
.product-card__meta {
    display: flex !important;
    justify-content: space-between;
    padding: 10px;
}

/* бутон */
.product-card__btn {
    width: auto !important;
    padding: 6px 12px;
    font-size: 14px;
}




/* FIX: показване на името върху снимката */
.product-card__image-wrap {
    position: relative;
}

/* контейнер за името */
.product-card__title {
    position: absolute;
    bottom: 12px;
    left: 14px;
    right: 14px;
    z-index: 5; /* 🔥 над overlay */
}

/* име */
.product-card__name {
    color: #fff !important;
    font-size: 18px;
    font-weight: 800;
    margin: 0;
    /* за четимост */
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
    /* clamp */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}





/* ================= PRODUCTS ================= */

/* 🔥 DESKTOP → 3 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

/* CARD */
.product-card {
    background: #fefaf6;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
}

/* IMAGE */
.product-card__image-wrap {
    position: relative;
    height: 180px;
}

    .product-card__image-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* overlay */
    .product-card__image-wrap::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(0,0,0,0.1), rgba(0,0,0,0.7));
    }

/* TITLE */
.product-card__body {
    position: absolute;
    bottom: 10px;
    left: 12px;
    right: 12px;
}

    .product-card__body h3 {
        color: #fff;
        font-size: 18px;
        font-weight: 800;
    }

/* FOOTER */
.product-card__meta {
    display: flex;
    justify-content: space-between;
    padding: 10px;
}

.product-card__btn {
    background: var(--accent);
    color: #fff;
    padding: 6px 12px;
    border-radius: 10px;
}

/* ================= HOW ================= */
.how-card {
    background: #141414;
    border-radius: 24px;
    padding: 20px;
}

/* ================= FOOTER ================= */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

/* ================= RESPONSIVE ================= */

/* TABLET */
@media (max-width: 1024px) {

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* 🔥 2 на ред */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .offers-layout {
        grid-template-columns: 1fr;
    }
}

/* MOBILE */
@media (max-width: 768px) {

    .main-nav {
        display: none;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-card__image-wrap {
        height: 150px;
    }
}

/* SMALL MOBILE */
@media (max-width: 480px) {

    .categories-grid {
        grid-template-columns: 1fr;
    }

    /* 🔥 пак 2 */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }

    .product-card__image-wrap {
        height: 130px;
    }

    .product-card__btn {
        font-size: 12px;
    }
}

.contact-info a {
    color: white;
    text-decoration: none;
}

    .contact-info a:hover {
        text-decoration: underline;
    }

.contact-link:visited {
    color: white;
}

.cta-top,
.cta-top i,
.cta-top svg {
    color: white !important;
    fill: white !important;
    margin-right: 6px;
    text-align: center;
}

  