/* ================================================= 
   Theme Name: Best M Custom Theme 
   Theme URI: https://bestm.ro 
   Description: Temă custom optimizată și ușor de întreținut pentru bestm.ro 
   Version: 2.4 
   Text Domain: bestm-theme 
   ================================================= */

/* ================================================= 
   1. RESET ȘI STILURI GLOBALE DE BAZĂ 
   ================================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #2b2b2b;
    background-color: #ffffff;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Containerul general care ține totul centrat și la aceeași lățime */
.container, .site-header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Blocarea selecției textului pe tot site-ul */
body {
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* Internet Explorer/Edge */
    user-select: none;         /* Standard modern */
}

/* ================================================= 
   2. ANTETUL SITE-ULUI (HEADER) & ELEMENTE PE UN SINGUR RÂND 
   ================================================= */
.site-header {
    border-bottom: 1px solid #eaeaea;
    padding: 12px 0;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 20px;
}

/* Controlul și adaptarea automată a logo-ului */
.site-logo {
    display: flex;
    align-items: center;
}

.logo-link-image {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-logo-img {
    height: auto;
    max-height: 48px; /* Înălțime maximă pe desktop */
    width: auto;
    display: block;
    object-fit: contain;
}

/* Meniul principal (Acasă, Produse, Despre noi, Contact) - Setat pe Montserrat */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul, 
.main-navigation .menu-list {
    display: flex;
    list-style: none;
    gap: 24px;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #333333;
    position: relative;
    padding-bottom: 6px;
    transition: color 0.2s ease;
}

.main-navigation a:hover, 
.main-navigation a.active, 
.main-navigation .current-menu-item > a {
    color: #1976d2;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #1976d2;
    transition: width 0.25s ease-in-out;
    border-radius: 2px;
}

.main-navigation a:hover::after, 
.main-navigation a.active::after, 
.main-navigation .current-menu-item > a::after {
    width: 100%;
}

/* Bara de Căutare Produse */
.header-search {
    position: relative;
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 6px;
    padding: 6px 12px;
    width: 280px;
    transition: border-color 0.2s ease;
}

.header-search:hover, 
.header-search:focus-within {
    border-color: #1976d2;
}

.header-search form {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.search-btn-icon {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #718096;
}

.search-btn-icon:hover {
    color: #1976d2;
}

.header-search input[type="text"],
.header-search input[type="search"] {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 13px;
    color: #333;
    font-family: 'Outfit', sans-serif;
}

.header-search input[type="text"]::placeholder,
.header-search input[type="search"]::placeholder {
    color: #718096;
}

/* ================================================= 
   MENIUL HAMBURGER (ASCUNS PE DESKTOP) 
   ================================================= */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    z-index: 101;
}

.hamburger-bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #1a365d;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* Animația butonului hamburger când devine "X" */
.menu-toggle.is-active .hamburger-bar:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.menu-toggle.is-active .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active .hamburger-bar:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* ================================================= 
   RESPONSIVE MEDIA QUERIES (PENTRU ECRANE MICI) 
   ================================================= */

/* Pentru tablete și ecrane sub 992px */
@media screen and (max-width: 992px) {
    .site-header-container {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 12px;
        padding: 0 15px;
    }

    .main-navigation ul, 
    .main-navigation .menu-list {
        gap: 15px;
    }

    .main-navigation a {
        font-size: 14px;
    }

    .header-search {
        width: 100%;
        max-width: 100%;
    }
}

/* Pentru telefoane mobile (sub 768px) */
@media screen and (max-width: 768px) {
    .site-header {
        padding: 10px 0;
    }

    .site-header-container {
        flex-wrap: wrap;
        position: relative;
    }

    .site-logo-img {
        max-height: 34px !important;
        width: auto !important;
    }

    /* Afișăm butonul hamburger pe mobil */
    .menu-toggle {
        display: flex;
    }

    .header-search {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin-top: 5px;
    }

    /* Ascundem meniul clasic și îl pregătim pentru toggle prin JavaScript */
    .main-navigation {
        display: none;
        width: 100%;
        order: 4;
        background: #ffffff;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
        border-top: 1px solid #eaeaea;
        margin-top: 10px;
        padding: 15px 0;
        border-radius: 0 0 8px 8px;
    }

    /* Când meniul este deschis */
    .main-navigation.is-open {
        display: block;
    }

    .main-navigation ul, 
    .main-navigation .menu-list {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
        padding: 0 10px;
    }

    .main-navigation a {
        font-size: 16px;
        width: 100%;
        display: block;
        padding: 6px 0;
    }
}

/* Pentru telefoane foarte înguste (sub 400px) */
@media screen and (max-width: 400px) {
    .site-logo-img {
        max-height: 30px;
    }
}

/* ================================================= 
   3. HERO SECTION (BANNER PRINCIPAL) 
   ================================================= */
.hero-section {
    position: relative;
    padding: 40px 0;
    background: #ffffff;
    overflow: hidden;
}

.hero-swiper .swiper-slide {
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-swiper .swiper-slide-active {
    opacity: 1;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}

/* Asigurăm ordinea: Textul în stânga, Imaginea în dreapta */
.hero-content {
    flex: 1;
    order: 1;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    order: 2;
}

/* Fix pentru ca imaginile din slider să aibă aceeași înălțime și să nu mai iasă din cadru */
.hero-image img {
    width: 100%;
    max-width: 600px;
    height: 380px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    color: #1a365d;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-content h1 span {
    color: #1976d2;
}

.hero-content p {
    font-size: 15px;
    color: #4a5568;
    margin-bottom: 12px;
    line-height: 1.5;
}

.hero-features-list {
    list-style: none;
    margin: 20px 0;
    padding: 0;
}

.hero-features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #2d3748;
    margin-bottom: 10px;
}

/* Stil modern pentru cercul verde din dreptul bifelor */
.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background-color: #e6f4ea;
    color: #137333;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.hero-buttons {
    margin-top: 20px;
}

/* Designul butonului principal */
.btn-primary {
    background: #1976d2;
    color: #ffffff !important;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
    display: inline-block;
}

.btn-primary:hover {
    background: #115293;
}

/* Responsiv pentru ecrane mobile */
@media screen and (max-width: 768px) {
    .hero-container {
        flex-direction: column-reverse;
        gap: 20px;
    }
    .hero-content {
        order: 2;
    }
    .hero-image {
        order: 1;
    }
    .hero-image img {
        height: 250px; /* Înălțime mai mică pe telefoane */
    }
    .hero-content h1 {
        font-size: 26px;
    }
}
/* ================================================= 
   4. USP SECTION (BARA DE AVANTAJE) 
   ================================================= */
.usp-section {
    background-color: #f8fafc;
    padding: 30px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.usp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: center;
}

.usp-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.usp-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06);
}

.usp-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: #e3f2fd;
    color: #1976d2;
    border-radius: 10px;
    flex-shrink: 0;
}

.usp-svg-icon {
    width: 24px;
    height: 24px;
    stroke: #1976d2;
}

.usp-text h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #1a365d;
    margin: 0 0 4px 0;
}

.usp-text p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

/* Responsiv pentru tablete și telefoane */
@media screen and (max-width: 992px) {
    .usp-grid {
        grid-template-columns: repeat(2, 1fr);
    }
} 

@media screen and (max-width: 576px) {
    .usp-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================================= 
   5. CATEGORIES SECTION (PORTOFOLIU CATEGORII) 
   ================================================= */
.categories-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    color: #1a365d;
    margin-bottom: 10px;
    font-weight: 700;
}

.section-title p {
    font-size: 15px;
    color: #64748b;
    margin: 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.category-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
    background: #ffffff;
}

.category-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    color: #1a365d;
    margin-top: 0;
    margin-bottom: 12px;
    font-weight: 600;
}

.category-card p {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 20px;
}

.card-link {
    font-size: 14px;
    font-weight: 600;
    color: #1976d2;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.card-link:hover {
    color: #115293;
}

/* Responsiv pentru tablete și telefoane */
@media screen and (max-width: 992px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 576px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================================= 
   6. FOOTER SECTION 
   ================================================= */
.site-footer {
    background-color: #0f172a; /* Un albastru-închis foarte modern */
    color: #94a3b8;
    padding-top: 60px;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding-bottom: 40px;
    border-bottom: 1px solid #1e293b;
}

.footer-col h3 {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 15px;
}

.footer-col h3 span {
    color: #1976d2;
}

.footer-col h4 {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-col p {
    line-height: 1.6;
    margin: 0 0 10px 0;
    color: #94a3b8;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-col ul li a:hover {
    color: #ffffff;
}

.footer-contact-info {
    color: #ffffff !important;
    font-weight: 500;
    margin-bottom: 5px !important;
}

.footer-schedule {
    font-size: 13px;
    color: #64748b !important;
}

/* Partea de jos (Copyright & ANPC/SOL) */
.footer-bottom {
    padding: 20px 0;
    background-color: #090d16;
    font-size: 13px;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    margin: 0;
    color: #64748b;
}

.footer-legal-links {
    display: flex;
    gap: 20px;
}

.footer-legal-links a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal-links a:hover {
    color: #ffffff;
}

.footer-legal-banners {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-legal-banners img {
    display: block;
    transition: opacity 0.2s ease;
}

.footer-legal-banners img:hover {
    opacity: 0.85;
}

/* Responsiv pentru tablete și telefoane */
@media screen and (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom-flex {
        flex-direction: column;
        text-align: center;
    }
    .footer-legal-links {
        justify-content: center;
    }
}