/* Stiluri generale ale site-ului (mutate din resources/views/frontend/inc/css.blade.php ca să fie cache-uite de browser) */
    /* Custom Theme Colors */
    .btn-primary {
        background-color: #E6502D !important;
        border-color: #E6502D !important;
        transition: all 0.3s ease;
    }

    .btn-primary:hover,
    .btn-primary:focus {
        background-color: #cf692f !important;
        border-color: #cf692f !important;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(138, 90, 63, 0.3);
    }

    .text-primary {
        color: #E6502D !important;
    }

    .bg-primary {
        background-color: #cf692f !important;
    }

    .btn-secondary {
        background-color: #000 !important;
        border-color: #000 !important;
    }

    .btn-secondary:hover,
    .btn-secondary:focus {
        background-color: #cf692f !important;
        border-color: #cf692f !important;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(138, 90, 63, 0.3);
    }

    .btn-outline-danger {
        border-color: #E6502D;
        color: #E6502D;

    }

    .btn-outline-danger:hover {
        background: #E6502D;
        color: white;
    }

    .form-control:focus {
        border-color: #E6502D;
    }

    /* Generic watermark background helper */
    .section-watermark {
        position: relative;
        overflow: hidden;
    }

    .section-watermark::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: url('../banners/watermark.png');
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
        opacity: var(--watermark-opacity, 0.02);
        pointer-events: none;
        z-index: 0;
    }

    .section-watermark>* {
        position: relative;
        z-index: 1;
    }

    /* Home hero */
    .hero-section {
        position: relative;
        padding: 100px 0;
        background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
            url('../banners/hero.jpg') no-repeat center center;
        background-size: cover;
        min-height: 80vh;
        display: flex;
        align-items: center;
        margin: 0;
    }

    .home-hero-section {
        overflow: hidden;
    }

    /* Background Image Slider */
    .hero-bg-slider {
        position: absolute;
        inset: 0;
        z-index: 0;
    }

    .hero-bg-slide {
        position: absolute;
        inset: 0;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        opacity: 0;
        transition: opacity 1.2s ease-in-out;
        z-index: 1;
    }

    .hero-bg-slide.active {
        opacity: 1;
        z-index: 2;
    }

    /* Minimal overlay for text readability */
    .hero-bg-overlay {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.35);
        z-index: 3;
        pointer-events: none;
    }

    /* Ensure content stays above slider and overlay */
    .home-hero-section .container-lg {
        position: relative;
        z-index: 4;
    }

    .home-hero-section::after {
        content: '';
        position: absolute;
        inset: 0;
        background-repeat: repeat;
        background-size: 160px;
        opacity: 0.03;
        pointer-events: none;
        z-index: 5;
    }

    .home-hero-header,
    .home-hero-title {
        color: #ffffff;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .home-hero-subtitle {
        color: #ffffff;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    }

    .home-hero-card {
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: 1px solid rgba(17, 24, 39, 0.08);
        box-shadow: 0 18px 40px rgba(17, 24, 39, 0.08);
        color: #111827;
    }

    .home-hero-card:hover {
        background: #fff;
        box-shadow: 0 24px 48px rgba(17, 24, 39, 0.12);
    }

    .home-hero-card h3,
    .home-hero-card p {
        color: inherit;
    }

    .home-hero-card h3 {
        color: #111827;
    }

    .home-hero-card p {
        color: #4b5563;
    }

    .home-hero-card p {
        opacity: 0.82;
    }

    .hero-subtitle {
        max-width: 700px;
        font-size: 1.1rem;
        line-height: 1.6;
        opacity: 0.9;
    }

    /* Glassmorphism Card Design */
    .glass-card {
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 15px;
        padding: 30px;
        height: 100%;
        transition: transform 0.3s ease, background 0.3s ease;
        color: white;
    }

    .glass-card:hover {
        transform: translateY(-10px);
        background: rgba(255, 255, 255, 0.1);
    }

    .icon-box {
        background-color: #E6502D;
        width: 60px;
        height: 60px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 20px;
    }

    .icon-box img {
        width: 35px;
        height: 35px;
        filter: brightness(0) invert(1);
    }

    .glass-card h3 {
        font-size: 1.25rem;
        font-weight: 700;
        margin-bottom: 10px;
    }

    .glass-card p {
        font-size: 0.95rem;
        opacity: 0.8;
        margin-bottom: 25px;
    }

    .btn-link {
        color: #E6502D;
        text-decoration: none;
        font-weight: 600;
        font-size: 0.9rem;
    }

    .btn-link:hover {
        color: #ff8a65;
        text-decoration: underline;
    }

    @media (min-width: 768px) {
        .hero-section {
            padding: 100px 0;
        }
    }

    @media (min-width: 992px) {
        .hero-title {
            font-size: 3.25rem;
        }
    }

    @media (max-width: 576px) {
        .glass-card {
            padding: 25px 20px;
            text-align: center;
            align-items: center;
        }

        .icon-box {
            margin-left: auto;
            margin-right: auto;
        }

        .hero-title {
            font-size: 1.8rem;
        }
    }

    /* Product card */
    .product-card-spacing {
        margin-top: 6rem;
    }

    .product-card-wrapper {
        transition: transform 0.3s ease;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .product-card-wrapper:hover {
        transform: translateY(-5px);
    }

    .product-img-wrapper {
        position: relative;
        border: 1px solid #e0e0e0;
        border-radius: 15px;
        aspect-ratio: 4 / 3;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .product-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .badge-discount {
        position: absolute;
        top: 15px;
        left: 15px;
        background-color: #e64a19;
        color: white;
        font-size: 0.75rem;
        font-weight: 700;
        padding: 4px 10px;
        border-radius: 6px;
    }

    .product-info {
        padding: 15px 5px;
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    .product-title {
        font-size: 1.05rem;
        font-weight: 700;
        line-height: 1;
        color: #212529;
        margin-bottom: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .price-box {
        display: flex;
        flex-direction: column;
    }

    .old-price {
        font-size: 1rem;
        text-decoration: line-through;
        color: #9e9e9e;
        margin-bottom: -2px;
    }

    .current-price {
        font-size: 1rem;
        font-weight: 800;
        color: #212529;
    }

    .product-meta-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        flex-wrap: nowrap;
    }

    .product-meta-row .price {
        min-width: 0;
    }

    .product-meta-row .product-pricing {
        background-color: #e64a19;
        color: #fff;
        border-radius: 12px;
        padding: 4px 10px;
        white-space: nowrap;
    }

    .product-meta-row .product-pricing .fw-bold,
    .product-meta-row .product-pricing .text-danger1 {
        color: #fff !important;
    }

    .product-meta-row .product-pricing .text-muted1 {
        color: rgba(255, 255, 255, 0.8) !important;
    }

    .product-meta-row .product-pricing .text-secondary {
        color: rgba(255, 255, 255, 0.92) !important;
    }

    .product-meta-row .direct-add-to-cart-form {
        margin: 0;
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }

    .btn-add-cart {
        width: 34px;
        height: 34px;
        border: 1px solid #212529;
        background: transparent;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.8rem;
        transition: all 0.2s;
    }

    .btn-add-cart:hover {
        background-color: #212529;
        color: white;
    }

    @media (max-width: 576px) {
        .product-title {
            font-size: 0.9rem;
        }

        .product-img-wrapper {
            padding: 0;
            aspect-ratio: 4 / 3;
        }

        .product-img-wrapper img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .current-price {
            font-size: 0.85rem;
        }

        .old-price {
            font-size: 0.7rem;
        }

        .product-meta-row {
            flex-direction: row;
            align-items: center;
            justify-content: space-between;
            gap: 0.5rem;
        }

        .product-meta-row .price {
            min-width: 0;
            flex-shrink: 1;
        }

        .product-meta-row .product-pricing {
            max-width: 100%;
            white-space: nowrap;
            display: inline-flex;
            flex-wrap: nowrap;
            gap: 0.2rem 0.4rem;
            line-height: 1.2;
            font-size: 0.8rem;
            padding: 0.35rem 0.75rem;
        }

        .product-meta-row .product-pricing .fw-bold,
        .product-meta-row .product-pricing .text-danger1 {
            font-size: 0.8rem;
        }

        .product-meta-row .product-pricing .text-muted1 {
            margin-left: 0 !important;
            font-size: 0.75rem;
        }

        .product-meta-row .direct-add-to-cart-form {
            flex-shrink: 0;
        }

        .product-meta-row .btn-add-cart {
            width: 32px;
            height: 32px;
        }
    }

    /* Home banner services */
    .services-banner {
        background-color: #E6502D;
        background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
        background-size: 30px 30px;
        position: relative;
    }

    .banner-title {
        font-size: clamp(1.53rem, 3.4vw, 2.55rem);
        font-weight: 800 !important;
        line-height: 1.1;
    }

    .banner-intro-text {
        font-size: 1.2rem;
        line-height: 1.5;
        opacity: 0.95;
        font-weight: 400;
    }

    .btn-command {
        display: inline-flex;
        align-items: center;
        background-color: #1a1a1a;
        color: white;
        padding: 16px 36px;
        border-radius: 50px;
        text-decoration: none;
        font-weight: 700;
        font-size: 1.1rem;
        transition: all 0.3s ease;
    }

    .btn-command:hover {
        background-color: #000;
        transform: translateY(-2px);
        color: white;
    }

    .stat-number {
        font-size: 2.5rem;
        font-weight: 900;
        color: #fff;
        margin-bottom: 0;
        line-height: 1;
    }

    .stat-label {
        font-size: 2.5rem;
        font-weight: 900;
        color: #fff;
        margin-bottom: 20px;
        line-height: 1;
        letter-spacing: -1px;
    }

    .stat-desc {
        color: rgba(255, 255, 255, 0.9);
        font-size: 1rem;
        line-height: 1.4;
        max-width: 320px;
    }

    @media (max-width: 768px) {
        .stat-number {
            font-size: 2.5rem;
        }

        .stat-label {
            font-size: 1.8rem;
        }

        .banner-title {
            font-size: 1.87rem;
        }


    }

    /* Winter Holidays Mode - Dark Theme */

/* Pagina produsului: cantitate + „Adaugă în coș” + „Solicită ofertă” — pe ecrane înguste
   „Solicită ofertă” trece pe rândul următor, ca textul butoanelor să încapă pe un rând. */
.product-actions .add-to-cart-btn,
.product-actions .product-inquiry-btn {
    white-space: nowrap;
    min-height: 44px;
}

@media (max-width: 575.98px) {
    .product-actions {
        flex-wrap: wrap;
    }

    .product-actions .add-to-cart-btn {
        flex: 1 1 0% !important;
        min-width: 0;
        padding-left: 12px;
        padding-right: 12px;
        height: 48px !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .product-actions .product-inquiry-btn {
        flex: 1 1 100% !important;
        height: 48px;
    }
}

/* Galeria produsului: miniatura selectată = cea afișată mare (fără loop/clonare). */
.product-thumbnail-slider .product-thumb-single {
    cursor: pointer;
    border-color: #dfdfdf;
    transition: border-color .2s ease, opacity .2s ease;
    opacity: .75;
}

.winter-mode .product-thumbnail-slider .product-thumb-single {
    border-color: #3a3a3a !important;
}

.product-thumbnail-slider .product-thumb-single:hover {
    opacity: 1;
}

.product-thumbnail-slider .product-thumb-single.swiper-slide-thumb-active,
.winter-mode .product-thumbnail-slider .product-thumb-single.swiper-slide-thumb-active {
    border-color: #E6502D !important;
    opacity: 1;
}
