:root { --primary: #475569; --accent: #e67e22; --bg: #fcfaf8; --text: #1e293b; --border: #eeeeee; --white: #ffffff; }
* { box-sizing: border-box; }
body { margin: 0; padding: 0; font-family: 'Inter', sans-serif; color: var(--text); line-height: 1.6; text-align: center; width: 100%; overflow-x: hidden; }

/* CONTAINERS */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; text-align: center; position: relative; width: 100%; }

/* HEADER & NAV */
header { 
    border-bottom: 1px solid var(--border); 
    position: sticky; 
    top: 0; 
    z-index: 9999; 
    padding: 10px 0; 
    min-height: 70px; 
    display: flex; 
    align-items: center; 
    width: 100%;
    max-width: 1100px; /* Constângem lățimea la fel ca restul secțiunilor */
    margin: 0 auto; /* Centrăm header-ul pe mijlocul ecranului */
    border-bottom-left-radius: 12px; /* Rotunjire colț stânga jos */
    border-bottom-right-radius: 12px; /* Rotunjire colț dreapta jos */
}
.header-container { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; text-align: left; }
.logo-link { text-decoration: none; display: flex; align-items: center; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; align-items: center; }
nav ul li { position: relative; }
nav ul li a { text-decoration: none; color: var(--text); font-weight: 600; padding: 10px 5px; display: block; font-size: 0.95rem; transition: color 0.2s ease; }

/* CORECȚIE: Efect de hover pentru elementele principale din meniu + menținere culoare activă la deschiderea dropdown-ului */
nav ul li a:hover,
nav ul li:hover > a {
    color: var(--accent) !important;
}

/* DROPDOWN */
.dropdown { position: absolute; top: 100%; left: 0; background: var(--white); min-width: 200px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); display: none; flex-direction: column; padding: 5px 0; border-radius: 8px; border: 1px solid var(--border); z-index: 10000; text-align: left; }

/* CORECȚIE: Forțăm casetele dropdown-ului și link-urile din interior să ocupe 100% din spațiul disponibil */
.dropdown li {
    width: 100%;
    display: block;
}
.dropdown li a { 
    display: block !important;
    width: 100% !important;
    padding: 10px 20px !important; /* Mărim padding-ul pentru o zonă mai mare de hover */
    font-size: 0.85rem; 
    border-bottom: none; 
    box-sizing: border-box; /* Previne overflow-ul orizontal */
    transition: background-color 0.2s ease, color 0.2s ease; 
}

/* CORECȚIE: Fundal deschis și text accent la hover pe întreaga lățime a casetei */
.dropdown li a:hover { 
    background-color: #f1f5f9 !important; 
    color: var(--accent) !important; 
}
nav ul li:hover .dropdown { display: flex; }

/* HERO */
.hero-home-wrapper { 
    width: 100%; 
    max-width: 1100px; /* Aliniem lățimea maximă la fel ca restul secțiunilor */
    margin: 0 auto 40px auto; /* Centrăm secțiunea pe desktop și păstrăm marginea de jos */
    border-radius: 12px; /* Rotunjire elegantă a colțurilor fundalului */
    overflow: hidden; /* Asigură că imaginea de fundal nu iese din colțurile rotunjite */
    display: flex; 
    align-items: center; 
    justify-content: center; 
}
.hero-content { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; text-align: center; }
.hero-title { font-size: 2.8rem; margin: 0; line-height: 1.2; width: 100%; max-width: 850px; text-align: center !important; }

/* AVANTAJE */
.advantages { padding: 20px 0; width: 100%; }
.advantages-grid { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; margin: 0 auto; width: 100%; }
.adv-card { flex: 1; min-width: 160px; max-width: 200px; text-align: center; background: white; padding: 15px; border-radius: 12px; border: 1px solid #e2e8f0; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
.adv-card span { font-size: 1.2rem; display: block; margin-bottom: 8px; }
.adv-card p { font-size: 0.85rem; font-weight: 700; margin: 0; color: var(--primary); }

/* GRID & CARDS */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 25px; padding: 30px 0; width: 100%; }
.centered-info-grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 25px; width: 100%; }
.info-card-item { flex: 1; min-width: 280px; max-width: 320px; padding: 30px; text-align: center !important; }
.info-card-item span { font-size: 2rem; margin-bottom: 15px; display: block; }

.card { background: var(--white); border-radius: 12px; border: 1px solid var(--border); text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: 0.3s; overflow: hidden; position: relative; }
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }

/* SQUARE IMAGE 1:1 */
.square-container { position: relative; width: 100%; aspect-ratio: 1/1; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.square-container img { max-width: 90%; max-height: 90%; object-fit: contain; }

.card-shop { height: 100%; }
.card-shop .card-body { padding: 15px; text-align: center; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.card-shop h3 { margin: 0; font-size: 0.95rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; height: 2.8em; text-align: center; }

/* CATEGORY OVERLAY */
.cat-card-premium { height: 250px; width: 100%; }
.cat-overlay-premium { position: absolute; inset: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; padding: 20px; transition: 0.3s; z-index: 2; width: 100%; }
.cat-overlay-premium h3 { color: white !important; font-size: 1.3rem !important; margin: 0 !important; text-align: center; width: 100%; height: auto !important; -webkit-line-clamp: unset !important; }
.cat-card-premium:hover .cat-overlay-premium { background: rgba(0,0,0,0.55); }

/* ABOUT PAGE FIX */
.about-page-layout { display: flex; gap: 40px; align-items: center; text-align: left; flex-wrap: wrap; padding: 40px 0; }
.about-img-box, .about-text-box { flex: 1; min-width: 320px; }
.about-img-box img { width: 100%; border-radius: 15px; }

/* PRODUCT PAGE */
.product-flex { display: flex; gap: 40px; padding: 40px 0; flex-wrap: wrap; text-align: left; align-items: flex-start; }
.product-img, .product-details { flex: 1; min-width: 320px; }
.product-meta-data { margin-top: 25px; padding-top: 20px; border-top: 1px solid #eee; font-size: 0.9rem; line-height: 1.8; color: #64748b; }
.product-meta-data a { color: var(--accent); text-decoration: none; font-weight: 600; }
.long-description { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--border); text-align: left; }

/* BUTTONS REPARATE - PUNCTUL 1 & 2 */
.btn-quote { 
    border: none; 
    padding: 16px 32px; 
    font-weight: 700; /* Boldat */
    border-radius: 8px; /* Rotunjit conform cerinței */
    width: 100%; 
    cursor: pointer; 
    transition: 0.3s; 
    margin: 0 auto; 
    display: block; 
    text-decoration: none !important; /* Elimină Underline */
    text-align: center;
}
.btn-quote:hover { filter: brightness(1.1); transform: scale(1.02); }

/* Special pentru Hero CTA (pentru a fi sigur de no-underline și dimensiune corectă) */
.hero-cta-btn { 
    display: inline-block !important; 
    text-decoration: none !important;
    width: auto !important; /* CORECȚIE: Previne întinderea pe toată lățimea */
}

#quoteFormContainer { display: none; background: #fff; margin-top: 20px; border: 1px solid var(--border); padding: 20px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
#quoteFormContainer.open { display: block !important; }
.contact-box-form { text-align: left; width: 100%; }
.form-group { margin-bottom: 15px; text-align: left; width: 100%; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 700; margin-bottom: 5px; color: var(--primary); }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 1rem; font-family: inherit; }
.success-msg { display: none; background: #dcfce7; color: #166534; padding: 15px; border-radius: 8px; text-align: center; margin-top: 15px; border: 1px solid #10b981; font-weight: bold; }

/* LIGHTBOX */
.lightbox { display: none; position: fixed; z-index: 10001; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); align-items: center; justify-content: center; cursor: zoom-out; }
.lightbox-content { max-width: 90%; max-height: 90%; object-fit: contain; }
.lightbox .close { position: absolute; top: 20px; right: 35px; color: #fff; font-size: 40px; font-weight: bold; cursor: pointer; }

/* MEDIA QUERIES */
@media (max-width: 768px) {
    body { padding: 0; }
    /* CORECȚIE: Resetăm colțurile rotunjite pe mobil pentru a rămâne lipit de margini */
    header { border-bottom-left-radius: 0 !important; border-bottom-right-radius: 0 !important; }
    .container { padding: 0 15px !important; }
    .mobile-toggle { display: flex; flex-direction: column; gap: 5px; cursor: pointer; z-index: 10001; }
    .mobile-toggle span { width: 25px; height: 3px; background: var(--text); }
    nav { position: fixed; top: 0; right: -100%; width: 80%; height: 100vh; background: white; padding-top: 80px; transition: 0.3s; z-index: 9998; box-shadow: -5px 0 15px rgba(0,0,0,0.1); }
    nav.active { right: 0; }
    nav ul { flex-direction: column; gap: 0; text-align: left; }
    nav ul li { width: 100%; border-bottom: 1px solid #f1f5f9; }
    nav ul li a { padding: 20px; width: 100%; }
    .dropdown { position: static; display: block; box-shadow: none; border: none; background: #f8fafc; padding-left: 20px; opacity: 1; visibility: visible; transform: none; }
    .hero-home-wrapper { height: auto !important; padding: 40px 0; border-radius: 0; margin-top: 0; }
    .hero-content h1 { font-size: 1.6rem !important; padding: 0 10px; text-align: center !important; }
    .advantages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0; }
    .adv-card { min-width: 0; padding: 10px; max-width: none; }
    .adv-card span { font-size: 1.1rem; }
    .adv-card p { font-size: 0.7rem; }
    .product-flex, .about-page-layout { flex-direction: column; text-align: center; }
    .product-img, .product-details, .about-img-box, .about-text-box { min-width: 100%; }
    .content-format { text-align: left; }
    .long-description { text-align: left; }
}