/*
|--------------------------------------------------------------------------
| STILURI GLOBALE ȘI VARIABILE (BASE)
| - Definirea culorilor, fonturilor și reset-uri de bază.
|--------------------------------------------------------------------------
*/
:root {
    /* Gradient principal pentru branding */
    --action-gradient: linear-gradient(to right, rgb(0, 0, 0) 0%, rgb(31, 11, 48) 60%, rgb(83, 52, 109) 100%);
    --action-color: #53346d; /* Culoarea principală (Purple/Indigo închis) */
    --text-dark: #0F1729;    /* Culoarea principală a textului */
    --color-success: #2ecc71; /* Verde elegant pentru trend crescător */
    --color-danger: #e74c3c;  /* Roșu pentru trend descrescător/reduceri */
    --color-warning: #f1c40f; /* Galben/Auriu pentru trend neutru */
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-optical-sizing: none;
}

/* Elimină culoarea Bootstrap / browser pentru linkuri */
a,
a:visited,
a:hover,
a:active,
a:focus {

    text-decoration: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Elimină highlight-ul albastru pe iOS/Android */
a, button, input, textarea {
    -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
}

a {
    color: var(--text-dark) !important; /* sau orice altă culoare */
}
a:hover {
    color: var(--action-color) !important;
}



/* CLASA ANTI-JUMP: Dezactivează toate tranzițiile în timpul redimensionării */
.no-transition {
    transition: none !important;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: #ffffff;
    color: var(--text-dark);
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
}

.body-no-scroll {
    overflow: hidden;
    height: 100vh;
}

/* Tipografie și efecte de text */
.logo {
    font-size: 2.1rem;
    font-family: 'MONTSERAT', sans-serif;
    line-height: 1;
}

.brand-link {
    display: inline-flex;
    align-items: center;      /* aliniază ALERT perfect vertical */
    gap: 6px;                 /* spațiu mic între cuvinte */
    font-family: 'Montserrat', sans-serif;
    font-weight: 900 !important;         /* pentru PRICE */
}

.alert-text {
    font-size: 1rem;
    font-family: 'MONTSERAT', sans-serif;
    font-weight: 300 !important;         /* light pentru ALERT */
    position: relative;
    top: 1px;            /* micro-fix pentru center optic */
    letter-spacing: 0.05em;
}

.alert-gradient {
    background: var(--action-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.action-color {
    color: var(--action-color);
}

@media (min-width: 992px) {
  .logo {
    font-size: 2.4rem;
    font-family: 'MONTSERAT', sans-serif;
    line-height: 1;
    }
    .alert-text {
        font-size: 1.2rem;
    }
}

/* Link-uri și Navigare */
.nav-link {
    color: var(--text-dark);
    font-weight: 500;
}

.nav-link.active,
.nav-link:hover {
    color: var(--action-color);
}

.nav-link:active {
    color: var(--action-color);
}

.small-xs {
    font-size: .775em;
}

.subnav {
    display: flex;
    gap: 32px; /* vezi tu distanța perfectă */
}

.subnav .nav-link {
    padding: 6px 0 !important;
}


/*
|--------------------------------------------------------------------------
| LAYOUT GENERAL (HEADER, FOOTER, Meniuri Desktop & Mobile)
| - Elemente structurale care definesc scheletul paginii.
|--------------------------------------------------------------------------
*/

/* --- Header & Navigație --- */
.site-header {
    background: #f0f0f0;
    position: relative; 
   
}

.py-2-5 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.subheader .nav-link {
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
}

/* --- Search Bar --- */
.form-control.search {
    border-radius: 50px;
    padding: 7px 20px;
    border: 1px solid #ddd;
    position: relative; 
    z-index: 1501; /* Z-index mai mare decât overlay-ul, dar mai mic decât panoul (1600) */
}

.search-section {
    padding-top: 4px;
}

.search-ai-btn {
    border: 1px solid #ddd;
    background: #fafafa;
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 600;
    transition: 0.2s;
}

.search-ai-btn:hover {
    background: #f0f0f0;
}

.section-title {
    font-weight: 600;
    color: #666;
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    padding: 6px 12px;
    background: #ffffff;
    border-radius: 50px;
    border: 1px solid #e5e5e5;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s;
}

.tag:hover {
    background: #e9e9e9;
}

/* CONTROLLER (labelul mare) */
.ai-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

/* Ascundem input-ul */
.ai-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Sliderul */
.ai-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0;
    right: 0; bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 34px;
}

/* Minge (thumb) */
.ai-switch .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* ON */
.ai-switch input:checked + .slider {
    /*background: linear-gradient(90deg, #a93582, #3d045b);*/
    background: linear-gradient(to right, rgb(109, 70, 142) 0%, rgb(62, 23, 95) 60%, rgb(0, 0, 0) 100%);
}

/* Thumb ON position */
.ai-switch input:checked + .slider:before {
    transform: translateX(22px);
}


/* Stiluri specifice pentru componentele din panoul de căutare */
.search-panel-header-mobile .input-group-text {
    border-radius: 30px!important;
}
.search-panel-header-mobile .form-control {
    border-radius: 30px!important;
    width: 85%;
    padding-left: 20px !important;
}
#searchCloseBtn i {
    line-height: 1;
}
.bi-stars {
    color: blue;
}


/* --- Pictograme (Icons) --- */
.icon svg {
    stroke: var(--text-dark);
    transition: 0.3s;
    cursor: pointer;
}

.icon svg:hover {
    stroke: var(--action-color);
}
.icon .bi-search {
    color: var(--text-dark);
    transition: 0.3s;
    cursor: pointer;
}

.status-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background-color: #28a745; /* Verde succes */
    border: 2px solid #fff; /* Contrast cu header-ul */
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(40, 167, 69, 0.5);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(40, 167, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

.over-header {
    z-index: 1502;
}
/* ===========================
   NOTIFICATIONS PANEL - SEARCH
   =========================== */

.notif-panel, .search-panel {
    position: absolute;
    top: 45px;          /* sub input / icon */
    right: 0;
    width: 550px;
    max-height: 91vh;
    background: #f4f4f4; 
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.15);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease;

}



/* HEADER FIX, NE-SCROLLABIL */
.notif-header {
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 2; /* deasupra scroll-ului */
}

/* conținut scrollabil */
.notif-scroll {
    overflow-y: auto;
    max-height: calc(91vh - 100px); 
    scrollbar-width: thin;
    scrollbar-color: #bbb transparent;
    padding-bottom: 120px;
}

/* Chrome scrollbar */
.notif-scroll::-webkit-scrollbar {
    width: 8px;
}
.notif-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}
.notif-scroll::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* Iteme notificări */
.notif-item img.notif-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
}


.notif-panel.active, .search-panel.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.notif-thumb {
    width: 48px;
    height: 64px;
    object-fit: cover;
}

.notifications-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ff3b30;
    color: #fff;
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    cursor: pointer;
}

/* titluri subtile */
.notif-section .section-title {
    font-weight: 600;
    color: #555;
}

.notif-item {
    padding: 8px;
    border-radius: 6px;
    background-color: #f8f9fa;
}

.notif-item:hover {
    background-color: #ffffff;
}

/* MOBILE: fullscreen ca search */
@media (max-width: 767.98px) {
    .notif-panel, .search-panel {
        position: fixed;
        inset: 0;
        width: 100%;
        max-height: 100%;
        border-radius: 0;
        padding: 16px 16px 24px;
        top: 56px;
        right: 0;
        left: 0;
        bottom: 0;
    }

    .notif-scroll {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #bbb transparent;
    padding-bottom: 120px;
}
}

/* OVERLAYS (menuOverlay & filterOverlay) */
.menu-overlay { z-index: 1500; }
.filter-overlay { z-index: 1520; }

/* Panou Căutare (Search Panel) - Trebuie să fie deasupra Overlay-ului (1500) */
.search-panel { z-index: 1600 !important; }

/* Panou Notificări (Notifications) - Trebuie să fie cel mai de sus */
.notif-panel { z-index: 1700 !important; }


/* --- Burger Menu --- */
.burger {
    width: 32px;
    height: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    z-index: 1502;
}

.burger span {
    display: block;
    height: 2px;
    background: #000;
    border-radius: 2px;
    transition: 0.3s;
    margin-top: 1px;
}

.burger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background: var(--action-gradient);
}

.burger.open span:nth-child(2) {
    opacity: 0;
}

.burger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background: var(--action-gradient);
}
.burger.open {
    z-index: 1501;

}

/* --- Meniu Mobil (Overlay & Side Menu) --- */
.menu-overlay, .filter-overlay {
    background: rgba(0, 0, 0, 0.12);
    position: fixed;
    inset: 0;
    display: none;
    transition: opacity 0.25s ease;
    opacity: 0;
}

.filter-overlay { background: rgba(0, 0, 0, 0.42);}

.menu-overlay.active, .filter-overlay.active {
    display: block;
    opacity: 1;
}

.menu-overlay.activep {
    display: block;
    opacity: 1;
    z-index: 1520;
}

@media (min-width: 768px) {
.menu-overlay, .filter-overlay {
    background: rgba(0, 0, 0, 0.20);
    position: fixed;
    inset: 0;
    backdrop-filter: blur(2px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    display: none;
    transition: opacity 0.25s ease;
    opacity: 0;
}
}


.mobile-menu {
    position: fixed;
    top: 56px;
    left: 0;
    width: 100%;
    height: calc(100% - 56px);
    background: #f4f4f4;
    /*background: rgb(255 255 255 / 94%);*/
    backdrop-filter: blur(2px) saturate(140%);
    z-index: 2000;
    transform: translateX(-100%);
    transition: 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Top Level Buttons (Femei, Barbati, Copii) */
.top-cats {
    display: flex;
    gap: 10px;
    padding: 1rem;
}

.top-cats button {
    flex: 1;
    padding: 0.5rem;
    border-radius: 30px;
    border: 1px solid #ddd;
    background: #e9e9e9;
    font-weight: 600;
}

.top-cats button.active {
    background: #ffffff;
    color: var(--action-color);
    border: none;
    box-shadow: 0px 3px rgba(0, 0, 0, 0.12);
}

/* Submenu Level 1 */
.submenu {
    padding: 1rem;
    border-top: 1px solid #eee;
}

.submenu a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0.5rem;
    font-size: 0.95rem;
    text-decoration: none;
    color: var(--text-dark);
    border-bottom: 1px solid #f5f5f5;
}

.submenu a span.chevron {
    font-size: 1.2rem;
}

.submenu a:hover,
.sub-submenu a:hover {
    background: #fff;
    border-radius: 10px;
}

/* Sub-Submenu Level 2 (Slide In) */
.sub-submenu {
    position: fixed;
    top: 56px;
    left: 100%;
    width: 100%;
    height: calc(100% - 56px);
    background: #f4f4f4;
    z-index: 2100;
    transition: 0.3s ease;
    padding: 1rem;
    overflow-y: auto;
}

.sub-submenu.active {
    left: 0;
}

.sub-submenu a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.5rem;
    font-size: 0.95rem;
    text-decoration: none;
    color: var(--text-dark);
    border-bottom: 1px solid #e5e5e5;
}

.sub-submenu a:last-child {
    border-bottom: none;
}

.back-btn {
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 1rem;
    display: inline-block;
    cursor: pointer;
    border: 1px solid #999;
    color: #404040;
    border-radius: 20px;
    padding: 3px 12px;
}

/*
|--------------------------------------------------------------------------
| COMPONENTE REUTILIZABILE (BUTTONS, CHECKBOX, COLOR SWATCHES)
| - Stiluri care se aplică modulelor de conținut folosite în mai multe locuri.
|--------------------------------------------------------------------------
*/

/* --- Butoane --- */
.btn-gradient {
    background: linear-gradient(to right, rgb(0, 0, 0) 0% ,rgb(83, 52, 109) 51%, rgb(31, 11, 48) 100% );
    background-size: 200% auto;
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 0.6rem 1.6rem;
    font-weight: 600;
    transition: background-position 0.4s ease;
}

.btn-gradient:hover {
    background-position: right center;
    color: #fff;
}

.btn-outline-pa {
    /* Am mutat culoarea de fundal la action-gradient */
    background: transparent;
    border: 1px solid var(--action-color);
    color: var(--action-color)
}

.btn-outline-pa:hover {
    /* Am mutat culoarea de fundal la action-gradient */
    background: var(--action-gradient);
    color: #fff;
}

.btn-gradient.btn-lg {
    padding: 1rem 2.4rem;
    font-size: 1.15rem;
}

.btn-radius-30 {
    border-radius: 30px;
}


.border-action {
    border: 1px solid var(--action-color) !important;
}

/* --- Butoane/Filtre Resetare --- */
.single-filter-reset,
.reset-all-filters {
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 6px 12px;
    border-radius: 50px;
    margin-bottom: 12px;
    font-size: 13px;
    cursor: pointer;
}

.reset-all-filters {
    margin-bottom: 0px;
}

.single-filter-reset:hover {
    background: #eee;
}

/* --- Checkbox Premium --- */
.filter-check {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 4px 5px;
    font-size: 0.95rem;
}

.filter-check input {
    position: absolute;
    opacity: 0;
}

.filter-check span {
    padding-left: 26px;
    position: relative;
    letter-spacing: 0.2px;
    color: #222;
}

/* Box */
.filter-check span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1px solid #bbb;
    background: #fff;
    transition: 0.2s;
}

/* Checked state */
.filter-check input:checked + span::before {
    background: #111827;
    border-color: #111827;
}

/* Checkmark */
.filter-check span::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 7px;
    width: 8px;
    height: 4px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
    opacity: 0;
    transition: 0.2s;
}

.filter-check input:checked + span::after {
    opacity: 1;
}

/* Search Input în Filtre */
#brandSearchInput,
.filter-search {
    border-radius: 30px !important;
    padding: 8px 12px !important;
    width: 96%;
    margin-left: 3px;
}

/* Color Swatches */
.color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.color-option {
    width: 55px;
    height: 55px;
    border-radius: 10px;
    border: 2px solid transparent;
    border-bottom: 8px solid transparent;
    cursor: pointer;
}

.color-option.active {
    border-color: var(--action-color);
}


/*
|--------------------------------------------------------------------------
| SECȚIUNI DE CONȚINUT / CATEGORIE (LISTARE PRODUSE, BREADCRUMB, DROPDOWN)
|--------------------------------------------------------------------------
*/

.category-banner img {
    border-radius: 0;
}

.breadcrumb a {
    text-decoration: none;
    color: #555;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #777;
}

.dropdown-menu {
    border-radius: 12px;
    padding: 10px 0;
    max-height: 400px;
    overflow: auto;
}

.dropdown-item {
    padding: 8px 18px;
    font-size: 0.95rem;
}

.dropdown-item:hover {
    background: #f4f4f4;
}

/* === Stiluri pentru Listarea Produselor === */

/* --- Produse (Product Listing - V1) --- */
.product-item {
    transition: 0.3s;
    background: #fff;
}

.product-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.product-item h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.product-item .brand {
    color: var(--action-color);
}

/* --- Card Produs (Product Listing - V2) --- */
.product-card {
    background: #fff;
    border-radius: 14px;
    transition: 0.2s ease;
}

.product-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.btn-fav {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-fav i {
    font-size: 1.2rem;
    color: #222;
}

.product-brand {
    letter-spacing: 0.05em;
}

.product-name {
    font-size: 0.95rem;
    line-height: 1.2rem;
    min-height: 38px;
    /* 2 line safety */
}

.product-price .old-price {
    font-size: 0.85rem;
}

/* --- Trend Preț --- */
.price-trend {
    padding-top: 4px;
}

.trend-arrow {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--color-success);
} /* verde implicit */

.trend-arrow.text-warning {
    color: var(--color-warning);
}

.trend-arrow.text-danger {
    color: var(--color-danger);
}

.trend-text {
    color: #555;
}


/*
|--------------------------------------------------------------------------
| PAGINĂ PRODUS (PRODUCT PAGE)
| - Stiluri specifice pentru galeria de imagini, detalii, magazine și preț.
|--------------------------------------------------------------------------
*/

/* --- Galeria de imagini --- */
.product-gallery .thumb-small {
    width: 100px;
    height: 120px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.product-gallery .thumb-small:hover {
    border-color: #ccc;
}

/* 3. Dots/Indicatori de imagine */
.img-dot {
    width: 8px;
    height: 8px;
    background-color: #ccc;
    border-radius: 50%;
    margin: 0 4px;
    transition: background-color 0.2s;
}

.img-dot.active {
    background-color: var(--text-dark);
}

/* --- Secțiunea de detalii (sticky pe desktop) --- */
@media (min-width: 768px) {
    .sticky-md-top {
        position: sticky;
        top: 80px; /* Offset pentru header */
        align-self: flex-start;
    }
}

/* --- Butoane de Acțiune (1. Dimensiune buton principal și 2. Buton Wishlist/Bell) */

/* 1. Buton Principal (Merg la magazin) */
.product-action-btn {
    width: 100%; /* Default Full Width pe mobil */
}

@media (min-width: 992px) {
    /* Pe Desktop, butonul principal este jumătate din lățimea containerului flex */
    .product-action-btn {
        width: 100%;
        max-width: 50%;
    }
}

/* 2. Buton Wishlist (Inimă) */
.btn-wishlist-circle {
    /* Anulează padding-ul implicit de la btn-lg */
    width: 50px;
    height: 50px;
    border-radius: 50% !important;
    padding-top: 12px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--action-color) !important;
}

/* 4. Hoverul la wishlist e alb pe icon */
.btn-wishlist-circle:hover {
    border-color: var(--action-color) !important;
    background-color: var(--action-color); /* Fundal colorat la hover */
}
.btn-wishlist-circle:hover i {
    color: white !important; /* Icon alb la hover */
}
.btn-wishlist-circle i {
    color: var(--text-dark);
    transition: color 0.2s;
}


/* 3. Butonul de Alertă (Bell) - text mai mic și fără border */
.btn-bell-alert {
    border: none !important; /* Fără border */
    background: transparent !important; /* Fără fundal */
    color: var(--text-dark) !important; /* Culoarea textului */
    box-shadow: none !important;
    padding: 0.5rem 1.2rem;
    font-weight: 500;
}
.btn-bell-alert i {
    font-size: 1.15rem;
}
.btn-bell-alert:hover {
    color: var(--action-color) !important;
    background: #f0f0f0 !important;
}
.btn-bell-alert .small-text-btn-bell {
    font-size: 0.95rem; /* Text mai mic, dar lizibil */
}


/* --- Listarea Magazinelor (Store List) --- */
.product-stores-section {
    border-top: 1px solid #eee;
}

.store-item {
    transition: box-shadow 0.2s;
    border-top: 1px solid #ddd !important;
}

.store-info {
    max-width: 60%;
}

.store-promo {
    font-weight: 600;
}

/* Stil pentru Butonul de Acțiune din listă (Merg la magazin) */
.store-price .btn {
    white-space: nowrap;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 30px;
}

/* --- Taburi/Accordion Detalii --- */
.accordion-item {
    border-color: #eee;
}

.accordion-button {
    background-color: transparent;
    border-radius: 0;
}

.accordion-button:not(.collapsed) {
     font-weight: bold;
     background-color: #ffffff !important;
     color: #000 !important;
}

.accordion-button:focus {
    box-shadow: none !important;
    outline: none !important;
}

/* ascundem iconița default a Bootstrap */
.accordion-button::after {
    display: none !important;
}

/* adaugăm iconul nostru */
.accordion-button::before {
    content: "+";
    font-size: 25px;
    font-weight: 400;
    margin-right: 10px;
    transition: transform 0.25s ease;
}

/* când e deschis -> rotire 45° (devine X sau minus stilizat) */
.accordion-button:not(.collapsed)::before {
    transform: rotate(45deg);
}


/* --- Zona de Rating / Producator --- */
.product-details-header {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 5px;
}


/*


/*
|--------------------------------------------------------------------------
| PAGINĂ CATEGORIE MAINS)
| - Stiluri specifice pentru galeria de imagini, detalii, magazine și preț.
|--------------------------------------------------------------------------
*/

    .subcategory-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, 1fr); /* 2 pe mobil */
    }

    /* 4 pe desktop */
    @media (min-width: 992px) {
    .subcategory-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    }

    .subcategory-card {
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 15px 16px;
    text-align: left;
    transition: 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    }

    .category-arrow {
        color: #555 !important;
    }

    .subcategory-card {
    display: flex;
    align-items: center;
    gap: 10px;
    }

    .subcategory-card img.subcategory-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    }

    /* Badge minimalist */


    .subcategory-card:hover {
    transform: translateY(-1px);

    }


    .subcategory-card span {
    font-weight: 500;
    font-size: 0.90rem;
    color: #111;

    }

    /* ——————————————————————————————
   AFIȘARE LIMITATĂ IMPLICIT
   —————————————————————————————— */

/* MOBILE: afișează DOAR primele 2 carduri */
.subcategory-card:nth-child(n+5) {
    display: none;
}

/* DESKTOP: afișează primele 5 carduri */
@media (min-width: 768px) {
    
    /* Resetează ascunderea de pe mobil */
    .subcategory-card {
        display: flex !important;
    }

    /* Ascunde tot ce este peste cardul 5 */
    .subcategory-card:nth-child(n+11) {
        display: none !important;
    }
}


/* ——————————————————————————————
   EXPAND — ARATĂ TOT
   —————————————————————————————— */

.subcategory-grid-wrapper.expanded .subcategory-card {
    display: flex !important;
}


/* ——————————————————————————————
   SLIDE-DOWN ANIMATION (via max-height)
   —————————————————————————————— */

.subcategory-grid-wrapper {
    position: relative;
    overflow: hidden;
    max-height: 0; /* START INVISIBLE */
    transition: max-height 0.95s ease-in-out;
}

/* Starea implicită (restrâns) – mobil */
.subcategory-grid-wrapper:not(.expanded) {
    max-height: 340px;
}

/* Desktop restrâns */
@media (min-width: 768px) {
    .subcategory-grid-wrapper:not(.expanded) {
        max-height: 220px;
    }
}

/* EXPAND – destul de mare ca să cuprindă tot */
.subcategory-grid-wrapper.expanded {
    max-height: 2000px;
}



/* ——————————————————————————————
   GRADIENT FADE (hint că mai este conținut jos)
   —————————————————————————————— */

.subcategory-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0),
        #ffffff 85%
    );
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* La expandare gradientul dispare */
.subcategory-grid-wrapper.expanded .subcategory-fade {
    opacity: 0;
}
/*
|--------------------------------------------------------------------------
| PAGINĂ ACCOUNT (PRODUCT PAGE)
| - Stiluri specifice pentru galeria de imagini, detalii, magazine și preț.
|--------------------------------------------------------------------------
*/

*/
.account-sidebar {
    padding: 10px 0;
}

.account-sidebar .sidebar-link {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    border-radius: 8px;
    transition: 0.2s;
}

.account-sidebar .sidebar-link:hover {
    background: #f4f4f4;
}

.account-sidebar .sidebar-link.active {
    background: #f4f4f4;
    color: var(--action-color);
    font-weight: 600;
}

.account-sidebar .sidebar-link i.ms-auto {
    color: var(--action-color);
}

.wishlist-card {
    /* Stil de bază, reutilizează cardul de produs */
    text-align: center;
}
.wishlist-card .product-name, .wishlist-card .product-brand {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wishlist-card .product-info {
    padding-top: 10px;
}


/* Wrapper imagine pentru control */
.review-img-wrapper {
    width: 110px;
    flex-shrink: 0;
}

.review-img {
    border-radius: 8px;
}

/* Desktop-only: imagine mai mică */
@media (min-width: 768px) {
    .review-img-wrapper {
        width: 140px;
    }
}

/* Icon minimalist pentru fav */
.btn-icon {
    background: transparent;
    border: none;
    padding: 4px;
    font-size: 18px;
}

/* Titlul produsului */
.review-product-title {
    font-size: 15px;
    line-height: 1.3;
}

/* Mobile: text mai aerisit */
@media (max-width: 576px) {
    .review-card {
        padding: 1rem;
    }
    .review-text {
        font-size: 14px;
        line-height: 1.45;
    }
    .review-product-title {
        font-size: 16px;
    }
}

/* Card styling */
.review-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
}



/* Formulare Cont */
.form-input {
    border-radius: 12px;
    padding: 10px 15px;
}
.form-save-btn {
    width: 100%;
    max-width: 200px;
}

/* Paginare Recenzii */
.review-pagination-btn {
    background: var(--action-color);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
}

/*
|--------------------------------------------------------------------------
| PANOURILE DE LOGIN (MOBILE - BOTTOM SLIDE / DESKTOP - LEFT SLIDE)
|--------------------------------------------------------------------------
*/

.login-register-card {
    width: 100%;
    max-width: 500px;
    background: #fff;
    border-radius: 16px;
}

.form-title {
    color: var(--text-dark);
    font-size: 1.8rem;
}

.form-link {
    color: var(--action-color);
    transition: 0.2s;
}

.form-link:hover {
    color: var(--text-dark);
}

/*
|--------------------------------------------------------------------------
| HP CAROUSEL
|--------------------------------------------------------------------------
*/

.hero-carousel .carousel-item {
    aspect-ratio: 2 / 1; /* desktop ratio */
}

@media (max-width: 576px) {
    .hero-carousel .carousel-item {
        aspect-ratio: 500 / 650; /* mobile ratio */
    }
}

/*
|--------------------------------------------------------------------------
| PANOURILE DE FILTRE (MOBILE - BOTTOM SLIDE / DESKTOP - LEFT SLIDE)
|--------------------------------------------------------------------------
*/

/* --- Panoul Principal de Filtrare (Filter Main) --- */
.filter-panel-main {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 70vh;
    background: #fafafa;
    z-index: 3000;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
    border-radius: 22px 22px 0 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 16px;
}

.filter-panel-main.active {
    transform: translateY(0);
}

.filter-main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid #eee;
    font-size: 1rem;
}

.filter-main-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px 8px 0 8px;
}

.filter-main-footer {
    text-align: left;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

/* --- Lista de Filtre --- */
.filter-item {
    width: 100%;
    background: #fafafa;
    border: none;
    padding: 14px 2px;
    font-size: 1rem;
    border-bottom: 1px solid #eee;
    text-align: left;
    cursor: pointer;
    transition: 0.2s;
    font-weight: 400;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-item:hover {
    background: #fff;
}

.filter-item span:first-child {
    flex: 1;
}

/* --- Badges Active (Filtre Aplicat) --- */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-badge {
    background: #f1f1f1;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-badge .remove-badge {
    cursor: pointer;
    opacity: 0.5;
}

.filter-badge .remove-badge:hover {
    opacity: 1;
}

/* --- Butoane de Close/Back --- */
#filterMainClose,
#filterSubClose,
#filterSubBack {
    font-size: 1.4rem !important;
    opacity: 0.9;
    color: #333 !important;
    transition: 0.2s;
    text-decoration: none;
}

/* --- Panoul Secundar de Filtrare (Filter Sub Panel) --- */
.filter-panel-sub {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fafafa;
    z-index: 3500;
    height: 70vh;
    border-radius: 18px 18px 0 0;
    transform: translateY(100%);
    transition: transform 0.35s ease;
    display: flex;
    flex-direction: column;
    padding: 16px;
}

.filter-panel-sub.active {
    transform: translateY(0);
}

.filter-sub-header {
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.filter-sub-body {
    flex: 1;
    overflow-y: auto;
    padding-top: 14px;
}

.filter-sub-footer {
    padding-top: 12px;
    border-top: 1px solid #eee;
}

/* Price Range */
.filter-sub-body input[type=range],
.filter-main-body input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 7px;
    border-radius: 30px;
    background: #e5e7eb;
    outline: none;
    margin-bottom: 6px;
}

.filter-sub-body input[type=range]::-webkit-slider-thumb,
.filter-main-body input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #111827;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.10);
    cursor: pointer;
    margin-top: -7px;
}

/* Filter Count */
.filter-count {
    background: #111;
    color: #fff;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    display: none;
}

.filter-count.active-count {
    display: inline-flex;
}

/* Quick Filters (Banda orizontală) */
.sub-badges,
.local-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.small-badge {
    padding: 4px 10px;
    font-size: 12px;
}

.small-badge .remove {
    cursor: pointer;
}

.quick-filters-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

/* Custom Scrollbar pentru Quick Filters */
.quick-filters-scroll::-webkit-scrollbar {
    height: 4px;
}

.quick-filters-scroll::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 999px;
}

.quick-filter-btn {
    border: 1px solid #e5e5e5;
    background: #fff;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.1s;
}

.quick-filter-btn:hover {
    background: #f0f0f0;
    border-color: var(--action-color);
}

.quick-filter-count {
    font-size: 0.60rem;
    background: var(--action-gradient);
    color: #fff;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.quick-filter-count:empty {
    display: none;
}


/*
|--------------------------------------------------------------------------
| MEDIA QUERIES (RESPONSIVITATE)
| - Ajustări pentru ecrane desktop și mobile.
|--------------------------------------------------------------------------
*/

/* 5. Breadcrumb pe mobil: text mai mic */
@media (max-width: 767.98px) {
    .product-page .breadcrumb {
        font-size: 0.75rem !important; /* Facem textul mai mic pe mobil */
    }
}

/* --- Product Action Buttons pe mobil (Product Page) --- */
@media (max-width: 767.98px) {
    /* 1. Pe mobil, butonul principal este full width (stabilit direct în HTML/Bootstrap), dar asigurăm că flex-ul se rupe */
    .action-buttons .flex-wrap {
        flex-wrap: nowrap !important; /* Forțăm rămânerea pe o singură linie pe mobil */
        width: 100%;
        justify-content: space-between;
    }
    .product-action-btn {
        flex-grow: 1; /* Permite butonului principal să umple spațiul rămas */
    }
    .action-buttons .btn-wishlist-circle {
        flex-grow: 0; /* Menținem butonul de wishlist fix */
        max-width: 50px; 
    }
    
    /* 2. Ascundem Wishlist-ul din action-buttons pe mobil, pentru a-l avea doar lângă preț */
    .action-buttons .btn-wishlist-circle {
        display: none !important;
    }
}

/* Desktop: Ajustări Meniu Mobil & Filtre */
@media (min-width: 576px) {
    /* Ajustare Meniu Mobil pe lățime medie (tabletă) */
    .mobile-menu {
        top: 0;
        left: 0;
        height: 100%;
        width: 45%;
        left: -45%;
    }

    .mobile-menu.active {
        left: 0;
    }

    /* Sub-submeniul vine peste meniul principal */
    .sub-submenu {
        top: 0;
        height: 100%;
        width: 45%;
        left: -45%;
        /* poziție ascunsă în stânga */
    }

    .sub-submenu.active {
        left: 0;
        /* intră din STÂNGA */
    }
}

@media (min-width: 992px) {
    /* Ajustare Meniu Mobil pe desktop */
    .mobile-menu {
        width: 30%;
        left: -30%;
    }

    .mobile-menu.active {
        left: 0;
    }

    /* Sub-submeniul pe desktop */
    .sub-submenu {
        width: 30%;
        left: -30%;
    }

    .sub-submenu.active {
        left: 0;
    }

    /* Filtrele pe Desktop: Panelul stă în stânga, nu pe fundul ecranului */
    .filter-panel-main {
        top: 0;
        bottom: 0;
        width: 30%;
        height: 100vh;
        transform: translateX(-100%);
        border-radius: 0;
    }

    .filter-panel-main.active {
        transform: translateX(0);
    }

    .filter-panel-sub {
        top: 0;
        bottom: 0;
        width: 30%;
        height: 100vh;
        border-radius: 0;
        transform: translateX(-100%);
    }

    .filter-panel-sub.active {
        transform: translateX(0);
    }
}

/* Mobile: Reguli specifice pentru scrollbar (ascunde) */
@media (max-width: 576px) {
    .hide-scrollbar {
        scrollbar-width: none !important;
        /* Firefox */
        -ms-overflow-style: none !important;
        /* IE 10+ */
    }

    .hide-scrollbar::-webkit-scrollbar {
        display: none !important;
        /* Chrome, Safari */
    }

    .filters-toolbar {
        flex-wrap: nowrap;
    }
}

/* Suprascriem culorile active pentru TOATE dropdown-urile din site */
.dropdown-menu {
    --bs-dropdown-link-active-bg: #f8f9fa; /* Un gri foarte deschis (sau transparent) */
    --bs-dropdown-link-active-color: #212529; /* Text închis la culoare / negru */
}

/* Dacă vrei să se aplice DOAR la dropdown-ul tău de sortare, folosește o clasă specifică */
.sort-dropdown .dropdown-menu {
    --bs-dropdown-link-active-bg: transparent; 
    --bs-dropdown-link-active-color: #000;
}

/* END CSS */