/**
Theme Name: ncl
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ncl
Template: astra
*/

/* ========================================
   TEMA PERSONALIZATĂ - CULORI ȘI TIPOGRAFIE
   ======================================== */

@media screen and (min-width: 769px) {
    #mobile { display: none; }
    #desktop {display: block; }
}

@media screen and (max-width: 769px) {
    #mobile { display: block; }
    #desktop {display: none; }	
}

.shadow {
    padding: 20px;
    box-shadow: 1px 1px 5px 5px #f2f2f2;
}

.ncl-text {
  font-size: 70px;
  font-weight: 300;
  text-align: center;
}

@media (max-width: 768px) {
  .ncl-text {
    font-size: 30px;
  }
}

.ncl-text .next {
  color: #AF8324;
}

.ncl-text .car {
  color: #FFFFFF;
}

.ncl-text .lease {
  color: #AF8324;
}

/* ========================================
   SECȚIUNI CU FUNDAL ÎNTUNECAT
   ======================================== */

/* Setari generale pentru textul din interiorul sectiunii */
.dark-section * {
    color: #f5f5f5; /* Gri mediu pentru tot textul */
}

/* Stiluri pentru headinguri */
.dark-section h1, 
.dark-section h2, 
.dark-section h3, 
.dark-section h4, 
.dark-section h5, 
.dark-section h6 {
    color: #d5d5d5; /* Gri deschis pentru headinguri */
    margin-bottom: 20px;
}

/* Stil special pentru h2 */
.dark-section h2 {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Paragrafe cu spatiere buna */
.dark-section p {
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Linkuri cu hover effect */
.dark-section a {
    color: #b8b8b8; /* Gri pentru link-uri */
    transition: color 0.3s ease;
}

.dark-section a:hover {
    color: #ffffff; /* Alb la hover */
    text-decoration: none;
}

/* Stiluri pentru liste */
.dark-section ul, 
.dark-section ol {
    color: #b0b0b0;
    padding-left: 20px;
}

/* Daca folosesti butoane in sectiune */
.dark-section .btn {
    background-color: transparent;
    border: 1px solid #b0b0b0;
    color: #b0b0b0;
    transition: all 0.3s ease;
}

.dark-section .btn:hover {
    background-color: #b0b0b0;
    color: #222222; /* Culoare inchisa pentru contrast */
}

/* ========================================
   CATEGORII PRODUSE / MĂRCI AUTO
   ======================================== */

/* Ascunde numarul de produse */
.woocommerce-loop-category__title {
    display: none;
}

/* Redimensioneaza logo-urile/imaginile */
.woocommerce-js ul.products li.product.product-category img {
    max-width: 120px;  /* Redus de la 150px la 120px */
    height: auto;
    margin: 0 auto;
}

/* Centreaza continutul */
.product-category {
    text-align: center;
}

/* Modifica dimensiunea casetelor */
.woocommerce-js ul.products li.product.product-category {
    width: 180px;  /* Seteaza latimea casetei */
    margin: 0 15px 30px;  /* Ajusteaza marginea */
}

/* Optional: Adauga un border subtil */
.product-category a {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;  /* Redus de la 15px la 10px */
    display: block;
    background-color: transparent;
}

/* ========================================
   BANNER SINGLE ENTRY
   ======================================== */

.ast-single-entry-banner {
    background: #af8324;
}

/* ========================================
   COMPATIBILITATE CU SHORTCODE RECENT CARS
   ======================================== */

/* Asigură că shortcode-ul nostru nu intră în conflict cu tema */
.recent-cars-shortcode-wrapper {
    width: 100%;
    clear: both;
}

/* Stiluri pentru pagina shop - când NU folosim shortcode-ul */
.woocommerce.woocommerce-page:not(.recent-cars-shortcode-wrapper) .car-specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 10px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.woocommerce.woocommerce-page:not(.recent-cars-shortcode-wrapper) .car-spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.woocommerce.woocommerce-page:not(.recent-cars-shortcode-wrapper) .car-spec-item svg {
    width: 20px;
    height: 20px;
    fill: #666;
    margin-bottom: 4px;
}

.woocommerce.woocommerce-page:not(.recent-cars-shortcode-wrapper) .spec-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}

.woocommerce.woocommerce-page:not(.recent-cars-shortcode-wrapper) .spec-value {
    font-size: 13px;
    color: #333;
    font-weight: 700;
}

/* Preț pe shop page - STANDARD */
.woocommerce.woocommerce-page:not(.recent-cars-shortcode-wrapper) .car-price {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    margin: 15px 0;
    color: #333;
}

/* ========================================
   STILURI PENTRU TVA NEDEDUCTIBIL - NOU!
   ======================================== */

/* Container pentru prețul cu TVA inclus pe lista de produse */
.woocommerce.woocommerce-page:not(.recent-cars-shortcode-wrapper) .car-price-tva-inclus {
    text-align: center;
    margin: 15px 0;
}

.woocommerce.woocommerce-page:not(.recent-cars-shortcode-wrapper) .car-price-tva-inclus .price-amount {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.woocommerce.woocommerce-page:not(.recent-cars-shortcode-wrapper) .car-price-tva-inclus .price-tva-notice {
    font-size: 11px;
    color: #AF8324;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #AF8324;
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    background: rgba(175, 131, 36, 0.1);
}

/* Stiluri generale pentru TVA nedeductibil în orice context */
.car-price-tva-inclus {
    text-align: center;
    margin: 15px 0;
}

.car-price-tva-inclus .price-amount {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.car-price-tva-inclus .price-tva-notice {
    font-size: 11px;
    color: #AF8324;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #AF8324;
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    background: rgba(175, 131, 36, 0.1);
}

/* ========================================
   BUTOANE PE SHOP PAGE
   ======================================== */

/* Butoane pe shop page */
.woocommerce.woocommerce-page:not(.recent-cars-shortcode-wrapper) .details-button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    margin-top: 5px;
    background-color: #B8860B; 
    color: white;
    text-transform: none;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s;
    text-decoration: none;
}

.woocommerce.woocommerce-page:not(.recent-cars-shortcode-wrapper) .details-button:hover {
    background-color: #996D00;
    color: white;
}

/* ========================================
   SHORTCODE BRANDS LIST (BONUS)
   ======================================== */

.car-brands-grid {
    display: grid;
    gap: 20px;
    margin: 30px 0;
}

.car-brands-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.car-brands-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.car-brands-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.car-brands-grid.columns-5 {
    grid-template-columns: repeat(5, 1fr);
}

.brand-item {
    text-align: center;
    padding: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.brand-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #AF8324;
}

.brand-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.brand-item img {
    max-width: 80px;
    height: auto;
    margin-bottom: 10px;
}

.brand-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.brand-count {
    color: #666;
    font-size: 12px;
    margin-left: 5px;
}

/* ========================================
   REVOLUTION SLIDER SUPPORT
   ======================================== */

.rs-car-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 15px;
    border-radius: 6px;
    backdrop-filter: blur(10px);
}

.rs-car-specs span {
    font-size: 14px;
    color: #333;
    white-space: nowrap;
}

.rs-car-specs strong {
    color: #AF8324;
    margin-right: 3px;
}

/* ========================================
   RESPONSIVE PENTRU TEMA
   ======================================== */

/* Tablete */
@media screen and (max-width: 768px) {
    .car-brands-grid.columns-3,
    .car-brands-grid.columns-4,
    .car-brands-grid.columns-5 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Shop page responsive */
    .woocommerce.woocommerce-page:not(.recent-cars-shortcode-wrapper) .car-specs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .woocommerce.woocommerce-page:not(.recent-cars-shortcode-wrapper) .car-price {
        font-size: 20px;
        margin: 12px 0;
    }
    
    /* TVA nedeductibil responsive pe tabletă */
    .woocommerce.woocommerce-page:not(.recent-cars-shortcode-wrapper) .car-price-tva-inclus .price-amount,
    .car-price-tva-inclus .price-amount {
        font-size: 20px;
    }
    
    .woocommerce.woocommerce-page:not(.recent-cars-shortcode-wrapper) .car-price-tva-inclus .price-tva-notice,
    .car-price-tva-inclus .price-tva-notice {
        font-size: 10px;
        padding: 2px 5px;
    }
    
    .rs-car-specs {
        flex-direction: column;
        gap: 8px;
        padding: 8px 12px;
    }
    
    .rs-car-specs span {
        font-size: 13px;
    }
}

/* Mobile */
@media screen and (max-width: 576px) {
    .car-brands-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .brand-item {
        padding: 15px;
    }
    
    .brand-item img {
        max-width: 60px;
    }
    
    /* Shop page mobile */
    .woocommerce.woocommerce-page:not(.recent-cars-shortcode-wrapper) .car-specs-grid {
        grid-template-columns: 1fr;
        gap: 6px;
        text-align: left;
        border-bottom: none;
        padding-bottom: 10px;
    }
    
    .woocommerce.woocommerce-page:not(.recent-cars-shortcode-wrapper) .car-spec-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        padding: 8px 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .woocommerce.woocommerce-page:not(.recent-cars-shortcode-wrapper) .car-spec-item svg {
        margin-bottom: 0;
        margin-right: 8px;
    }
    
    .woocommerce.woocommerce-page:not(.recent-cars-shortcode-wrapper) .spec-label {
        margin-bottom: 0;
    }
    
    .woocommerce.woocommerce-page:not(.recent-cars-shortcode-wrapper) .car-price {
        font-size: 22px;
        margin: 15px 0;
    }
    
    /* TVA nedeductibil responsive pe mobile */
    .woocommerce.woocommerce-page:not(.recent-cars-shortcode-wrapper) .car-price-tva-inclus .price-amount,
    .car-price-tva-inclus .price-amount {
        font-size: 22px;
        margin-bottom: 6px;
    }
    
    .woocommerce.woocommerce-page:not(.recent-cars-shortcode-wrapper) .car-price-tva-inclus .price-tva-notice,
    .car-price-tva-inclus .price-tva-notice {
        font-size: 9px;
        padding: 2px 4px;
        letter-spacing: 0.3px;
    }
    
    .rs-car-specs span {
        font-size: 12px;
    }
}

/* ========================================
   OPTIMIZĂRI PERFORMANCE
   ======================================== */

/* Preload placeholders pentru imagini */
.car-image-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Optimizare pentru fonts */
@font-display: swap;

/* ========================================
   UTILITIES ȘI HELPER CLASSES
   ======================================== */

/* Clearfix pentru compatibilitate */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Hide on mobile */
@media screen and (max-width: 767px) {
    .hidden-mobile {
        display: none;
    }
}

/* Hide on desktop */
@media screen and (min-width: 768px) {
    .hidden-desktop {
        display: none;
    }
}

/* Text utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Margin utilities */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .recent-cars-shortcode-wrapper,
    .car-brands-grid,
    .rs-car-specs {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .brand-item:hover,
    .recent-cars-grid .car-card:hover {
        transform: none;
        box-shadow: none;
    }
    
    .car-details-button,
    .details-button {
        background: #666 !important;
        color: white !important;
    }
    
    /* Print pentru TVA nedeductibil */
    .car-price-tva-inclus .price-tva-notice {
        border: 1px solid #666 !important;
        background: #f0f0f0 !important;
        color: #333 !important;
    }
}