﻿:root {
    --lyu-bg: #fbf6ef; /* крем */
    --lyu-surface: #ffffff; /* card */
    --lyu-text: #2b2b2b;
    --lyu-accent: #c96b3c; /* теракота */
    --lyu-accent-2: #6b7b4f; /* маслено зелено */
    --lyu-warm: #f3e3d2; /* беж */
    --lyu-border: rgba(0,0,0,.08);
}

html, body {
    height: 100%;
}

body {
    background: var(--lyu-bg);
    color: var(--lyu-text);
}

/* Navbar */
.navbar {
    background: linear-gradient(180deg, #fff7ee, #ffffff);
    border-bottom: 1px solid var(--lyu-border) !important;
}

.navbar-brand {
    letter-spacing: .2px;
}

.nav-link {
    border-radius: 999px;
    padding: .45rem .85rem !important;
}

    .nav-link:hover {
        background: rgba(201,107,60,.10);
    }

    .nav-link.active {
        background: rgba(201,107,60,.14);
    }

/* Buttons */
.btn-primary {
    background: var(--lyu-accent) !important;
    border-color: var(--lyu-accent) !important;
}

    .btn-primary:hover {
        filter: brightness(.95);
    }

/* Generic surfaces */
.surface, .card, .admin-card, .details-card {
    background: var(--lyu-surface);
    border: 1px solid var(--lyu-border);
    border-radius: 18px;
    box-shadow: 0 10px 26px rgba(0,0,0,.05);
}

.soft-panel {
    background: linear-gradient(180deg, rgba(243,227,210,.65), rgba(255,255,255,.85));
    border: 1px solid var(--lyu-border);
    border-radius: 18px;
}

/* Warm badge */
.badge-warm {
    background: rgba(201,107,60,.12);
    color: var(--lyu-accent);
    border: 1px solid rgba(201,107,60,.18);
    border-radius: 999px;
    padding: .45rem .75rem;
    font-weight: 700;
}

/* HERO / CAROUSEL */
#homeCarousel {
    overflow: hidden;
    border-radius: 22px;
}

/* Важно: позициониране за badge/текст */
.hero-slide {
    position: relative;
    min-height: 420px;
    width: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: 22px;
}

/* overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.35);
    pointer-events: none;
    z-index: 1;
}

/* базов контент слой */
.hero-content {
    position: relative;
    z-index: 3;
    padding-top: 72px;
    padding-bottom: 72px;
}

/* НОВО: badge горе-ляво */
.hero-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 4;
}

/* НОВО: текст/бутон долу-център */
.hero-bottom {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 26px;
    width: min(920px, 92%);
    text-align: center;
    z-index: 3;
    padding-top: 0;
    padding-bottom: 0;
}

    /* малко по-четим текст върху снимка */
    .hero-bottom .lead,
    .hero-bottom h1,
    .hero-bottom h2 {
        text-shadow: 0 2px 12px rgba(0,0,0,.35);
    }

/* стрелки – да се виждат и да са кликаеми */
.carousel-control-prev,
.carousel-control-next {
    width: 8%;
    opacity: .9;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: drop-shadow(0 2px 10px rgba(0,0,0,.35));
}

/* Fix: allow carousel arrows to be clickable even with overlays */
#homeCarousel .carousel-control-prev,
#homeCarousel .carousel-control-next {
    z-index: 5;
    pointer-events: auto;
}

#homeCarousel .hero-overlay {
    pointer-events: none;
}

/* Responsive за слайдера */
@media (max-width: 768px) {
    .hero-slide {
        min-height: 360px;
    }

    .hero-badge {
        top: 12px;
        left: 12px;
    }

    .hero-bottom {
        bottom: 16px;
        width: min(680px, 92%);
    }

        .hero-bottom .display-5 {
            font-size: 2rem;
        }

        .hero-bottom .lead {
            font-size: 1rem;
        }
}

/* Feature cards */
.feature-card {
    border-radius: 18px;
    border: 1px solid var(--lyu-border);
    background: #fff;
    box-shadow: 0 10px 24px rgba(0,0,0,.04);
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201,107,60,.12);
}

/* Availability badges */
.badge-available {
    background: rgba(107,123,79,.14);
    color: var(--lyu-accent-2);
    border: 1px solid rgba(107,123,79,.25);
    border-radius: 999px;
    padding: .35rem .6rem;
    font-weight: 800;
    font-size: .78rem;
}

.badge-order {
    background: rgba(201,107,60,.12);
    color: var(--lyu-accent);
    border: 1px solid rgba(201,107,60,.20);
    border-radius: 999px;
    padding: .35rem .6rem;
    font-weight: 800;
    font-size: .78rem;
}

/* Products page */
.products-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
}

@media (max-width: 992px) {
    .products-layout {
        grid-template-columns: 1fr;
    }
}

.filter-box {
    background: linear-gradient(180deg, rgba(243,227,210,.65), rgba(255,255,255,.90));
    border: 1px solid var(--lyu-border);
    border-radius: 18px;
    box-shadow: 0 10px 26px rgba(0,0,0,.04);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

.product-card {
    background: #fff;
    border: 1px solid var(--lyu-border);
    border-radius: 18px;
    box-shadow: 0 10px 26px rgba(0,0,0,.05);
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
    height: 100%;
}

    .product-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 18px 34px rgba(0,0,0,.08);
    }

.product-img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}

.product-body {
    padding: 14px 14px 16px 14px;
}

.product-title {
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
}

.product-meta {
    color: #6c757d;
    font-size: .9rem;
    margin-top: 6px;
}

.price {
    font-weight: 900;
    color: var(--lyu-accent);
    font-size: 1.05rem;
}

/* Details page */
.details-image-wrap {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--lyu-border);
    background: #fff;
    box-shadow: 0 10px 26px rgba(0,0,0,.04);
}

.details-image {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

@media (max-width: 992px) {
    .details-image {
        height: 320px;
    }
}

.details-price {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--lyu-accent);
}

.details-desc {
    line-height: 1.6;
    color: #3b3b3b;
}

.details-note {
    background: rgba(243,227,210,.50);
    border: 1px solid var(--lyu-border);
    border-radius: 16px;
    padding: 12px 14px;
}

/* Contact page */
.contact-item {
    display: flex;
    gap: 14px;
    align-items: center;
}

.contact-icon {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201,107,60,.12);
    border: 1px solid rgba(201,107,60,.18);
}

.contact-link {
    color: var(--lyu-accent);
    text-decoration: none;
}

    .contact-link:hover {
        text-decoration: underline;
    }

/* Footer */
footer {
    background: linear-gradient(180deg, #ffffff, #fff7ee);
    border-top: 1px solid var(--lyu-border);
}

/* Empty state */
.empty-state {
    background: linear-gradient(180deg, rgba(243,227,210,.65), rgba(255,255,255,.92));
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 18px;
    box-shadow: 0 10px 26px rgba(0,0,0,.04);
}

.empty-icon {
    width: 60px;
    height: 60px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background: rgba(201,107,60,.12);
    border: 1px solid rgba(201,107,60,.18);
    font-size: 28px;
}

/* Admin cards & tables */
.admin-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 1rem;
    box-shadow: 0 6px 18px rgba(0,0,0,.04);
}

.admin-title {
    font-weight: 800;
    letter-spacing: .2px;
}

.admin-table th {
    font-size: .9rem;
    color: #6c757d;
    font-weight: 700;
}

.admin-table td {
    vertical-align: middle;
}

/* Cart */
.cart-table th {
    font-size: .9rem;
    color: #6c757d;
    font-weight: 800;
    border-bottom: 1px solid rgba(0,0,0,.08) !important;
}

.cart-table td {
    border-top: 1px solid rgba(0,0,0,.06);
}

.cart-thumb {
    width: 62px;
    height: 62px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,.08);
}

.qty-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.qty-select {
    width: 70px;
    border-radius: 12px;
}

.cart-total {
    color: var(--lyu-accent);
    font-size: 1.25rem;
}

.cart-note {
    background: rgba(243,227,210,.50);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 16px;
    padding: 12px 14px;
}

/* Checkout */
.checkout-total {
    color: var(--lyu-accent);
    font-size: 1.25rem;
}

.checkout-note {
    background: rgba(243,227,210,.50);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 16px;
    padding: 12px 14px;
}

/* Orders */
.orders-table th {
    font-size: .9rem;
    color: #6c757d;
    font-weight: 800;
    border-bottom: 1px solid rgba(0,0,0,.08) !important;
}

.orders-table td {
    border-top: 1px solid rgba(0,0,0,.06);
}

.order-total {
    color: var(--lyu-accent);
    font-size: 1.25rem;
}

.order-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,.06);
    background: rgba(255,255,255,.85);
}

.order-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,.08);
}

