/* ================= RESET ================= */

*{
margin:0;
padding:0;
box-sizing:border-box;
}

:root{
--primary:#21748A;
--secondary:#43A8BC;
--bg:#F2F7F9;
--text:#1f2a2e;
--border:#e3eef1;
}

/* ================= BODY ================= */

body{
    margin: 0;              /* ðŸ”¥ ASTA LIPSEA */
    font-family: Roboto,sans-serif;
    background:var(--bg);
    color:var(--text);
    line-height: 1.5;
}

/* ================= CONTAINER ================= */

.container{
max-width:1200px;
margin:auto;
padding:0 20px;
}

.breadcrumb{
font-size:13px;
margin:15px 0 20px 0;
color:#666;
}

.breadcrumb a{
color:#666;
text-decoration:none;
}

.breadcrumb .sep{
margin:0 6px;
}

.brands-grid{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(160px,1fr));
gap:20px;
margin-top:40px;
}

.brand-item{
background:#fff;
border:1px solid #ddd;
padding:15px;
text-align:center;
border-radius:6px;
}

.brand-item a{
text-decoration:none;
color:#222;
font-weight:600;
}

/* ================= HEADER ================= */

.site-header{
background:var(--primary);
}

.header-inner{
max-width:1200px;
margin:0 auto;
padding: 14px 20px;
display:flex;
align-items:center;
justify-content:space-between;
gap:20px;
}

.logo{
font-weight:700;
font-size:20px;
text-decoration:none;
color:white;
}

.main-nav{
display:flex;
gap:22px;
}

.main-nav a{
text-decoration:none;
color:white;
font-weight:500;
}

.header-actions{
display:flex;
align-items:center;
gap:15px;
}

.search-form input{
padding:8px 12px;
border:1px solid rgba(255,255,255,0.4);
border-radius:4px;
width:220px;
background:white;
}

.cart-link{
text-decoration:none;
font-weight:600;
color:white;
}
.descriere-produs{
user-select:none;
}

.modele-similare {
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:20px;
}

.model-link {
    background:#f1f1f1;
    padding:6px 10px;
    border-radius:6px;
    font-size:13px;
    text-decoration:none;
    color:#333;
}

.model-link:hover {
    background:#ddd;
}

/* ================= TITLURI ================= */

h1{
text-align:center;
color:#145F75;
margin-top:25px;
font-size:32px;
}

h1 + p{
text-align:center;
color:#145F75;
font-size:16px;
margin-top:8px;
}

/* ================= GRID PRODUSE ================= */

.grid{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
gap:28px;
}

/* tablete */

@media(max-width:900px){
.grid{
grid-template-columns:repeat(2,1fr);
}
}

@media(max-width:600px){
.grid{
grid-template-columns:1fr;
gap:20px;
}
}
.catalog-grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:25px;
margin-top:40px;
}

.product-card{
background:#fff;
border:1px solid #ddd;
padding:15px;
text-align:center;
border-radius:6px;
}

.product-card img{
height:180px;
object-fit:contain;
}

.product-card{
transition:all .2s ease;
}

.product-card:hover{
transform:translateY(-4px);
box-shadow:0 6px 16px rgba(0,0,0,0.15);
}

.pagination{
margin-top:40px;
text-align:center;
}

.pagination a,
.pagination span{
display:inline-block;
padding:8px 12px;
margin:3px;
border:1px solid #ccc;
text-decoration:none;
}

.pagination .active{
background:#1f7a8c;
color:#fff;
}

/* ================= CARD PRODUS ================= */

.card{
background:#fff;
border:1px solid var(--border);
padding:18px;
display:flex;
flex-direction:column;
border-radius:8px;
transition:0.2s;
}

.card:hover{
transform:translateY(-4px);
box-shadow:0 8px 20px rgba(0,0,0,0.08);
}

.card img{
width:100%;
height:200px;
object-fit:contain;
margin-bottom:10px;
background:#fff;
}

.card h3{
font-size:16px;
line-height:1.35;
color:var(--primary);
margin-bottom:6px;
}

.price{
font-weight:700;
margin-top:6px;
font-size:18px;
}

.category-card{
background:#f7f7f7;
border:1px solid #e5e5e5;
border-radius:8px;
padding:10px 14px;
text-align:center;
transition:.2s;
}

.category-card a{
text-decoration:none;
font-size:14px;
font-weight:600;
color:#145F75;
display:block;
}

.category-card:hover{
background:#fff;
box-shadow:0 5px 15px rgba(0,0,0,0.05);
}

.category-card h3{
margin:0;
font-size:15px;
}

/* ================= BUTTON ================= */

.btn{
display:block;
background:var(--primary);
color:#fff;
text-align:center;
padding:10px;
margin-top:auto;
text-decoration:none;
border:none;
cursor:pointer;
border-radius:5px;
}

.btn:hover{
background:var(--secondary);
}

/* ================= BREADCRUMB ================= */

.breadcrumb{
max-width:1200px;
margin:40px auto 0 auto;
padding:0 30px;
font-size:13px;
color:#6c7b80;
}

.breadcrumb a{
text-decoration:none;
color:#6c7b80;
}

/* ================= FOOTER ================= */

.site-footer{
background:var(--primary);
color:white;
padding:25px 0;
text-align:center;
margin-top:40px;
}

/* ================= CART ================= */

.cart-table-wrapper{
overflow-x:auto;
}

.cart-table{
width:100%;
border-collapse:collapse;
}

.cart-table th,
.cart-table td{
padding:10px;
border-bottom:1px solid #eee;
}

.qty-controls{
display:flex;
align-items:center;
gap:6px;
}

.cart-table input[type="number"]{
width:60px;
text-align:center;
}

/* Formular checkout â€“ campuri mai inalte */
input,
textarea,
select {
    height: 42px;
    padding: 10px 12px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

textarea {
    height: 80px;
}

.metoda-plata{
display:flex;
align-items:center;
gap:8px;
margin-bottom:8px;
font-size:15px;
}

.metoda-plata input{
margin:0;
}

.metoda-plata{
display:flex;
align-items:center;
gap:8px;
margin-bottom:10px;
cursor:pointer;
}

.metoda-plata input{
margin:0;
}

.card-icons{
margin-left:10px;
display:flex;
gap:6px;
}

.card-icons img{
height:18px;
}

.card-icons img{
height:20px;
width:auto;
margin-left:6px;
vertical-align:middle;
}

.metode-plata{
margin-top:10px;
}

.plata-card{
display:flex;
align-items:center;
gap:12px;
border:1px solid #ddd;
padding:12px;
border-radius:6px;
margin-bottom:10px;
cursor:pointer;
transition:0.2s;
}

.plata-card:hover{
border-color:#21748A;
}

.plata-card input{
margin-top:3px;
}

.plata-content{
display:flex;
flex-direction:column;
}

.plata-content span{
font-size:13px;
color:#666;
}

.card-icons img{
height:18px;
margin-right:6px;
}

/* ================= ORDER SUCCESS ================= */

.order-success{
max-width:600px;
margin:60px auto;
padding:35px;
background:#f0fbff;
border:1px solid #cfeaf2;
border-radius:10px;
text-align:center;
}

.order-success h1{
font-size:28px;
margin-bottom:10px;
}

.order-success p{
font-size:16px;
margin-bottom:15px;
}

.order-success .meta{
margin:15px 0;
font-size:18px;
}

/* ================= MOBILE ================= */

@media(max-width:768px){

.container{
padding:0 12px;
}

/* HEADER */

.header-inner{
flex-direction:column;
align-items:stretch;
gap:12px;
}

.logo{
text-align:center;
}

.header-actions{
flex-direction:column;
gap:10px;
}

.search-form input{
width:100%;
}

.main-nav{
justify-content:center;
flex-wrap:wrap;
gap:16px;
}

/* CATALOG */

.grid{
grid-template-columns:1fr;
gap:18px;
}

.card img{
height:240px;
}

.card h3{
font-size:18px;
}

.price{
font-size:22px;
}

.btn{
font-size:16px;
padding:12px;
}

/* CART STACK */

.cart-table thead{
display:none;
}

.cart-table tr{
display:block;
background:#fff;
border:1px solid #e5e5e5;
border-radius:8px;
padding:12px;
margin-bottom:15px;
}

.cart-table td{
display:block;
padding:6px 0;
border:none;
}

.cart-table td:nth-child(1)::before{content:"Produs";font-weight:600;display:block;}
.cart-table td:nth-child(2)::before{content:"Preț›";font-weight:600;display:block;}
.cart-table td:nth-child(3)::before{content:"Cantitate";font-weight:600;display:block;}
.cart-table td:nth-child(4)::before{content:"Subtotal";font-weight:600;display:block;}

}
/* ================= FIX IMAGINI PRODUSE MOBIL ================= */

@media (max-width:768px){

.card{
padding:18px;
}

/* container imagine */

.card div:first-child{
width:100%;
display:flex;
justify-content:center;
}

/* imagine produs */

.card img{
width:100% !important;
max-width:100% !important;
height:260px !important;
object-fit:contain;
}

/* titlu */

.card h3{
font-size:18px;
line-height:1.35;
}

/* pret */

.price{
font-size:22px;
}

}
.pagination a{
display:inline-block;
padding:6px 10px;
margin:3px;
border:1px solid #ddd;
border-radius:4px;
}

.pagination a:hover{
background:#21748A;
color:white;
}

/* SEARCH AUTOCOMPLETE */

.search-wrapper{
position:relative;
}

#search-results{
position:absolute;
background:#fff;
width:100%;
box-shadow:0 5px 20px rgba(0,0,0,0.15);
z-index:999;
border-radius:6px;
overflow:hidden;
}

.search-item{
display:flex;
align-items:center;
gap:10px;
padding:8px;
border-bottom:1px solid #eee;
text-decoration:none;
color:#333;
}

.search-item img{
width:40px;
height:40px;
height:40px;
object-fit:contain;
}

.search-item:hover{
background:#f5f5f5;
}

.highlight{
background:#ffe066;
color:#000;
padding:2px 4px;
border-radius:3px;
font-weight:600;
}

.hero {
    width: 100%;
    height: 280px; /* ~25% mai mic */

    background: url('/assets/img/Telecomenzi-TV.jpg') no-repeat center right;
    background-size: cover;

    display: flex;
    align-items: center;

    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.search-box{
display:flex;
gap:8px;
max-width:420px;
}

.search-box input{
flex:1;
padding:10px;
border:1px solid #ccc;
border-radius:4px;
}

.search-box button{
background:#e60023;
color:#fff;
border:none;
padding:10px 16px;
cursor:pointer;
border-radius:4px;
}

#search-live-results{
position:absolute;
background:#fff;
width:100%;
box-shadow:0 5px 20px rgba(0,0,0,0.1);
z-index:999;
}

.search-live-item{
display:block;
padding:10px;
border-bottom:1px solid #eee;
text-decoration:none;
color:#333;
}

.search-live-item:hover{
background:#f5f5f5;
}

.product-card h3{
font-size:12px;
font-weight:400;
color:#2f4f5a;
line-height:1.4;
margin:10px 0 6px;

display:-webkit-box;
-webkit-line-clamp:2;
-webkit-box-orient:vertical;
overflow:hidden;
}

/* GRID CATEGORII HOMEPAGE */

.category-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:16px;
}

/* CARD CATEGORIE */

.category-card{
background:#D5E9F2;
border:1px solid #C2C2C2;
border-radius:8px;
padding:10px 12px;
text-align:center;
transition:.2s;
width:100%;
}

.category-card a{
text-decoration:none;
font-size:14px;
font-weight:500;
color:#0c4f5a;
display:block;
}

.category-card:hover{
background:#b8dde0;
}

/* BUTON VEZI PRODUS */

.btn-view{
display:block;
width:100%;
text-align:center;
padding:10px;
background:#21748A;
color:#ffffff;
text-decoration:none;
border-radius:6px;
font-size:14px;
font-weight:600;
transition:0.2s;
}

.btn-view:hover{
background:#145F75;
}

/* CARD CATEGORIE */

.blog-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:25px;
}

.blog-card img{
width:100%;
height:auto;
display:block;
}


.blog-card h2{
font-size:18px;
margin-top:10px;
}

.blog-card h3{
    color:#21748A;
}

.blog-card{
background:#fff;
border-radius:10px;
overflow:hidden;
box-shadow:0 6px 20px rgba(0,0,0,0.08);
transition:transform .2s ease;
}

.blog-card:hover{
transform:translateY(-4px);
}

.blog-card h2{
font-size:18px;
padding:15px;
color:#1f2a2e;
}

.blog-card a{
    text-decoration: none;
}

.blog-card h3{
    color:#21748A;
    margin:12px 15px 15px 15px;
    font-size:15px;
    line-height:1.4;
}

.blog-btn{
    display:inline-block;
    padding:10px 20px;
    background:#21748A;
    color:#fff;
    text-decoration:none;
    border-radius:6px;
    font-size:14px;
    font-weight:600;
}

.blog-btn:hover{
    background:#145F75;
}

/* TABLET */

@media(max-width:900px){

.blog-grid{
grid-template-columns:repeat(2,1fr);
}

}

/* MOBIL */

@media(max-width:600px){

.blog-grid{
grid-template-columns:1fr;
}

}

.article-date{
font-size:14px;
color:#6c7b80;
margin:8px 0 18px 0;
border-bottom:1px solid #e5e5e5;
padding-bottom:8px;
}

/* eliminare butoane vechi contact */

.contact-buttons{
display:none !important;
}

.contact-links{
display:none !important;
}

/* bara contact sub hero */

.contact-bar{
display:flex;
gap:14px;
justify-content:center;
align-items:center;
margin:20px auto 30px auto;
max-width:1200px;
}

.contact-btn{
display:flex;
align-items:center;
justify-content:center;
padding:12px 18px;
font-size:15px;
font-weight:600;
border-radius:8px;
text-decoration:none;
color:#fff;
min-width:180px;
}

.phone-btn{
background:#21748A;
}

.whatsapp-btn{
background:#25D366;
}

@media (max-width:768px){

.contact-bar{
flex-direction:column;
gap:10px;
padding:10px;
}

.contact-btn{
width:100%;
}

}

.trust-bar{
display:flex;
justify-content:center;
gap:50px;
background:#ffffff;
padding:12px;
margin-bottom:0px;
font-size:14px;
color:#21748a;
border-radius:6px;
}

/* mobil */

@media (max-width:768px){

.trust-bar{
flex-direction:column;
align-items:center;
text-align:center;
gap:6px;
font-size:13px;
padding:10px;
}

}

/* =========================
   FIX FINAL ARTICOLE
========================= */

.article-content strong,
.article-content b {
    font-weight: 700 !important;
}

.article-content h2 {
    font-size: 26px !important;
    font-weight: 700 !important;
}

.article-content h3 {
    font-size: 22px !important;
    font-weight: 600 !important;
}

.article-content a {
    color: #0d6efd !important;
    text-decoration: underline !important;
}

/* ================= HERO ================= */

.hero{
    width: 100%;
    height: 280px; /* redus */

    background-image: url('/assets/img/Telecomenzi-TV.jpg');
    background-position: 80% center;
    background-size: cover;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;

    border-radius: 12px;
    overflow: hidden;
    position: relative;

    margin: 0;
}

/* overlay pentru lizibilitate text */
.hero::before{
    content:"";
    position:absolute;
    inset:0;
    background: linear-gradient(to right, rgba(255,255,255,0.75), rgba(255,255,255,0));
    z-index:1;
}

/* conÈ›inut text */
.hero-content{
    position: relative;
    z-index: 2;

    max-width: 520px;
    padding: 30px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* titlu */
.hero h1{
    font-size: 30px;
    margin-bottom: 12px;
}

/* descriere */
.hero p{
    font-size: 15px;
    margin-bottom: 18px;
}

/* buton */
.btn-hero{
    background: #007854;
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: .2s;

    margin-top: 10px;
}

.btn-hero:hover{
    background: #009166;
}

.btn-hero{
    align-self: flex-start;
}
.btn-hero{
    align-self: center;
}

/* ================= MOBILE ================= */

@media(max-width:768px){

    .hero{
        height: 220px;
        background-position: center;
        border-radius: 0;
    }

    .hero-content{
        padding: 20px;
        max-width: 100%;
        text-align: center;
        align-items: center;
    }

    .hero h1{
        font-size: 22px;
    }

    .hero p{
        font-size: 14px;
    }

    .btn-hero{
        width: auto;              /* ðŸ”¥ asta rezolvÄƒ */
        padding: 10px 18px;       /* mai compact */
        font-size: 14px;
    }
}

/* ================= FIX PRODUSE MOBIL FINAL ================= */

@media (max-width:768px){

    .grid,
    .catalog-grid{
        grid-template-columns:1fr !important;
    }

    .product-card,
    .card{
        width:100%;
    }

    .product-card img,
    .card img{
        height:220px;
        object-fit:contain;
    }

    .product-card h3,
    .card h3{
        font-size:16px;
    }

    .price{
        font-size:20px;
    }

    .btn,
    .btn-view{
        width:100%;
        padding:12px;
        font-size:15px;
    }
}

/* ================= HEADER COMPACT MOBIL ================= */

@media (max-width:768px){

    .header-inner{
        padding:10px 12px;
    }

    .main-nav{
        gap:10px;
        font-size:14px;
    }

    .search-box{
        width:100%;
    }

    .search-box input{
        font-size:14px;
        padding:8px;
    }

    .search-box button{
        padding:8px 10px;
        font-size:13px;
    }

    .cart-link{
        font-size:14px;
    }
}

@media (max-width:768px){

    .hero{
        height:180px; /* era 220 */
    }

    .hero h1{
        font-size:20px;
    }

    .hero p{
        font-size:13px;
    }

    .hero-content{
        padding:15px;
    }
}

@media (max-width:768px){

    .contact-btn{
        padding:10px;
        font-size:14px;
    }

    .contact-bar{
        margin:10px auto 15px auto;
    }
}

@media (max-width:768px){

    h1{
        font-size:24px;
        margin-top:15px;
    }

    section{
        margin-bottom:20px;
    }

    .container{
        padding:0 10px;
    }
}

@media (max-width:768px){

    .product-card,
    .card{
        padding:12px;
    }

    .product-card img,
    .card img{
        height:200px;
    }

    .product-card h3,
    .card h3{
        font-size:15px;
        min-height:42px; /* aliniere carduri */
    }

    .price{
        font-size:19px;
    }

    .btn,
    .btn-view{
        padding:11px;
        font-size:15px;
        border-radius:6px;
    }
}

@media (max-width:768px){

    .hero{
        display:none;
    }

}

@media (max-width:768px){

    .category-grid{
        grid-template-columns:1fr 1fr;
        gap:8px;
    }

    .category-card{
        padding:6px;
        font-size:12px;
    }

}
@media (max-width:768px){

    .category-grid,
    .category-grid *{
        display:none !important;
    }

}

@media (max-width:768px){

    h2:has(+ .category-grid){
        display:none !important;
    }

}


/* ================= FIX GLOBAL COS MOBIL ================= */

@media (max-width:768px){

    body{
        padding:0 10px;
    }

}

.cart-container{
margin-top:20px;
}

.checkout-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:15px;
    margin-top:20px;
}

/* 🔥 MOBIL */
@media (max-width:768px){

    .checkout-grid{
        grid-template-columns:1fr;
    }

}

@media (max-width:768px){

    .checkout-grid input,
    .checkout-grid textarea{
        grid-column:auto !important;
    }

}

@media (max-width:768px){

    input,
    textarea,
    select{
        width:100%;
        font-size:16px; /* evită zoom pe iPhone */
    }

}

/* ================= CHECKBOX TERMENI MOBIL FIX ================= */

.termeni-check{
    display:flex;
    align-items:flex-start; /* 🔥 important */
    gap:10px;
    line-height:1.4;
}

.termeni-check input{
    margin-top:3px; /* aliniază cu textul */
    flex-shrink:0;
}

.termeni-check a{
    word-break:break-word;
}

@media (max-width:768px){

    .btn{
        width:100%;
        padding:14px;
        font-size:16px;
        border-radius:8px;
    }

}

.termeni-check{
    display:flex;
    align-items:flex-start;
    gap:10px;
    line-height:1.4;
}

.termeni-check input{
    margin-top:4px;
    flex-shrink:0;
}

label[style*="display:flex"]{
    align-items:flex-start !important;
    gap:10px !important;
}

/* ================= TERMENI FIX ================= */

.termeni-box{
    display:flex;
    align-items:flex-start;
    gap:10px;
    font-size:14px;
    margin:20px 0;
}

.termeni-box input{
    margin-top:4px;
    flex-shrink:0;
}

.termeni-box label{
    line-height:1.4;
}

.termeni-box a{
    word-break:break-word;
}

/* ================= FIX CHECKBOX ================= */

input[type="checkbox"],
input[type="radio"]{
    height:auto !important;
    width:auto !important;
}

.termeni-box{
    display:flex !important;
    align-items:center;
    gap:10px;
    margin:20px 0;
}

.termeni-box label{
    display:inline;
    line-height:1.4;
}