/* FIXIT public theme — layout inspired by a professional medical-equipment catalog */
:root {
    --sidebar-width: 280px;
    --max-content-width: 1500px;
    --fx-blue: #233D7F;
    --fx-red: #EA252A;
    --fx-blue-bright: #0651A8;
    --fx-bg: #e0edfb;
    --primary-spacing: .5rem;
    --primary-border-radius: 1rem;
    --product-min-width: 250px;
}

* { box-sizing: border-box; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body.fx-public {
    margin: 0;
    min-height: 100vh;
    background-color: var(--fx-bg);
    font-family: 'Roboto', Arial, sans-serif;
    color: #222;
    display: flex;
    flex-direction: column;
}

body.fx-public ul { list-style: none; margin: 0; padding: 0; }

.fx-skip {
    position: absolute;
    left: -999px;
    top: 0;
}

/* Top menu */
.top-menu-wrapper,
body.fx-public .top-nav {
    background: linear-gradient(90deg, #002B7F 0%, #1a4a9e 22%, #FCD116 50%, #E23D28 78%, #CE1126 100%) !important;
    color: #fff;
    justify-content: flex-end !important;
    min-height: 2.5rem;
    padding: 0 1rem !important;
}

.top-menu,
body.fx-public .top-nav {
    margin-inline: auto;
    max-width: var(--max-content-width);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    padding: 0 1rem;
    min-height: 2.5rem;
}

.top-menu ul {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .25rem;
    height: 2.5rem;
    font-size: .8rem;
    width: 100%;
}

.top-menu a,
body.fx-public .top-nav a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    height: 2.5rem;
    padding: 0 .6rem;
    white-space: nowrap;
    font-size: .8rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,.35);
    transition: background-color .25s;
}

.top-menu a:hover,
.top-menu a.active,
body.fx-public .top-nav a:hover {
    background-color: rgba(255,255,255,.12);
}

/* Header */
.header-wrapper,
body.fx-public .header {
    background: #fff;
    box-shadow: 0 0 10px 0 rgba(35, 61, 127, .2);
    position: sticky;
    top: 0;
    z-index: 50;
}

.site-header,
body.fx-public header.header {
    align-items: center;
    display: grid;
    gap: 1rem;
    grid-template-columns: auto 1fr auto auto;
    margin-inline: auto;
    max-width: var(--max-content-width);
    min-height: 72px;
    padding: .6rem 1rem;
    width: 100%;
}

.fx-logo {
    display: flex;
    align-items: center;
    gap: .45rem;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    line-height: 1;
}

.fx-logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--fx-blue) 0%, var(--fx-blue-bright) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 2px 8px rgba(35,61,127,.25);
}

.fx-logo-word {
    display: flex;
    flex-direction: column;
}

.fx-logo-name {
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: 900;
    font-size: 1.55rem;
    letter-spacing: .12em;
    color: var(--fx-blue);
    text-transform: uppercase;
}

.fx-logo-name span {
    color: var(--fx-red);
}

.fx-logo-tag {
    font-size: .68rem;
    letter-spacing: .18em;
    color: var(--fx-red);
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 1px;
}

/* Keep old futurist logo readable if still present */
body.fx-public .logo.futurist {
    display: flex;
    align-items: center;
    color: var(--fx-blue) !important;
    text-shadow: none !important;
    filter: none !important;
    letter-spacing: .08em;
    font-size: 1.45rem !important;
}

body.fx-public .fixit-logo-x-circle {
    background: var(--fx-red) !important;
    box-shadow: none !important;
}

.fx-search {
    position: relative;
    max-width: 520px;
    width: 100%;
    justify-self: center;
}

.fx-search-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-width: 0;
    width: 100%;
    max-width: 520px;
    justify-self: center;
}
.fx-search-row .fx-search,
.fx-search-row .search-box {
    flex: 1;
    min-width: 0;
    max-width: none;
    justify-self: stretch;
}

.fx-search input,
body.fx-public .search-box input {
    width: 100%;
    border: 1px solid #d5dbe8;
    border-radius: 2rem;
    padding: .65rem 2.6rem .65rem 1.1rem;
    font-size: .95rem;
    font-family: inherit;
    background: #f7f9fd;
}

.fx-search input:focus,
body.fx-public .search-box input:focus {
    outline: 2px solid rgba(35,61,127,.25);
    background: #fff;
}

.fx-search button,
body.fx-public .search-box i {
    position: absolute;
    right: .55rem;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #4a4a4a;
    width: 28px;
    height: 28px;
    border-radius: 0;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.fx-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

body.fx-public .header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-self: end;
}

.fx-icon-btn {
    color: #111;
    text-decoration: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 1.15rem;
}

.fx-icon-btn:hover { color: var(--fx-blue); }

.fx-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    background: var(--fx-blue);
    color: #fff;
    border-radius: .5rem;
    font-size: .7rem;
    min-width: 1.25rem;
    height: 1.25rem;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 .35rem;
}

/* Content layout */
.fx-content-wrap {
    padding-inline: var(--primary-spacing);
    flex: 1;
}

.fx-content {
    display: grid;
    gap: var(--primary-spacing);
    margin: 0 auto;
    max-width: var(--max-content-width);
    width: 100%;
}

.fx-content.has-sidebar {
    grid-template-columns: calc(var(--sidebar-width) + var(--primary-spacing)) 1fr;
}

body.fx-public .main-container {
    display: grid;
    grid-template-columns: calc(var(--sidebar-width) + var(--primary-spacing)) 1fr;
    gap: var(--primary-spacing);
    margin: 0 auto;
    max-width: var(--max-content-width);
    width: 100%;
    padding-inline: var(--primary-spacing);
    min-height: calc(100vh - 180px);
    background: transparent;
}

/* Sidebar */
.fx-sidebar,
body.fx-public .sidebar {
    background: #fff;
    border-radius: 1rem 0 1rem 1rem;
    margin-block: var(--primary-spacing);
    overflow: hidden;
    padding: 0 0 .75rem;
    width: auto !important;
    border: 0 !important;
}

.fx-sidebar-title,
body.fx-public .sidebar-title {
    display: block;
    background: linear-gradient(90deg, #002B7F 0%, #1a4a9e 22%, #FCD116 50%, #E23D28 78%, #CE1126 100%) !important;
    color: #fff !important;
    font-size: .95rem;
    font-weight: 700;
    padding: .85rem 1.25rem !important;
    margin: 0 !important;
    text-transform: uppercase;
    letter-spacing: .04em;
    text-shadow: 0 1px 2px rgba(0,0,0,.35);
}

.fx-clase,
body.fx-public .product-categories {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fx-clase > li,
body.fx-public .product-categories > li {
    border-top: 1px solid rgba(0,0,0,.05);
}

.fx-clase a,
body.fx-public .product-categories a {
    display: block;
    padding: .7rem 1.25rem;
    color: #222 !important;
    text-decoration: none;
    font-size: .92rem;
    font-weight: 500;
    transition: background .2s, color .2s;
}

.fx-clase a:hover,
body.fx-public .product-categories a:hover,
body.fx-public .product-categories a.sterilizare-link:hover {
    background: #f7f4eb !important;
    color: var(--fx-blue) !important;
    padding-left: 1.25rem !important;
    border-left: 0 !important;
}

body.fx-public .sterilizare-link {
    color: #222 !important;
    font-weight: 500 !important;
}

/* Main */
.fx-main,
body.fx-public .main-content {
    min-width: 0;
    padding: .5rem 0 2rem;
}

.fx-section {
    background: #fff;
    border-radius: 0 1rem 1rem 0;
    margin-block-start: .5rem;
    padding: 1rem 1.25rem 1.4rem;
}

.fx-section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: .6rem;
}

.fx-section-head h2,
body.fx-public .section-title {
    margin: 0;
    font-size: 1.35rem;
    color: var(--fx-blue);
    font-weight: 700;
}

.fx-section-head a,
body.fx-public .section-link {
    color: var(--fx-red);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}

/* Events / hero */
.fx-events {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1rem;
}

.fx-event-card {
    background: linear-gradient(135deg, var(--fx-blue) 0%, var(--fx-blue-bright) 70%);
    color: #fff;
    border-radius: 1rem;
    min-height: 220px;
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
}

.fx-event-card::after {
    content: '';
    position: absolute;
    inset: auto -20% -40% auto;
    width: 220px;
    height: 220px;
    background: rgba(255,255,255,.08);
    border-radius: 50%;
}

.fx-event-card h3 {
    margin: 0 0 .4rem;
    font-size: 1.35rem;
    position: relative;
    z-index: 1;
}

.fx-event-card p {
    margin: 0;
    opacity: .92;
    position: relative;
    z-index: 1;
}

.fx-event-side {
    background: #fff;
    border-radius: 1rem;
    padding: 1.2rem 1.3rem;
    box-shadow: 0 2px 10px rgba(35,61,127,.08);
}

.fx-event-side h3 {
    color: var(--fx-blue);
    margin: 0 0 .8rem;
}

.fx-event-side li {
    padding: .45rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: .92rem;
}

body.fx-public .banner {
    background: linear-gradient(135deg, var(--fx-blue) 0%, var(--fx-blue-bright) 70%) !important;
    border-radius: 1rem !important;
}

body.fx-public .banner-btn {
    color: var(--fx-blue) !important;
}

/* Product cards — catalog style */
.lista-produse,
body.fx-public .products-grid,
body.fx-public .products-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--product-min-width), 1fr));
    gap: .75rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.produs,
.modern-product-card,
.subcategory-product-card,
body.fx-public .product-card {
    background: #f9f9f9;
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 0;
    box-shadow: none;
    transition: box-shadow .25s;
    max-width: none;
    width: 100%;
    margin: 0;
    text-align: left;
}

.produs:hover,
.modern-product-card:hover,
.subcategory-product-card:hover {
    box-shadow: 0 8px 24px rgba(35,61,127,.16);
    transform: none;
}

.produs .imagine-produs,
.modern-product-card .product-image-container,
.subcategory-product-card img {
    background: #fff;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    height: auto;
    border-radius: 0;
}

.produs .imagine-produs img,
.modern-product-card .product-image,
.subcategory-product-card img {
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
    transition: transform .25s;
}

.produs:hover .imagine-produs img,
.modern-product-card:hover .product-image {
    transform: scale(1.08);
}

.produs .product-labels {
    position: absolute;
    top: .75rem;
    left: .75rem;
    z-index: 2;
}

.label-nou::before {
    content: 'Nou';
    background: var(--fx-blue);
    color: #fff;
    font-size: .7rem;
    text-transform: uppercase;
    padding: .2rem .5rem;
    border-radius: .4rem;
}

.nume-produs,
.modern-product-card .product-title,
.subcategory-product-title,
body.fx-public .product-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--fx-blue) !important;
    margin: .85rem 1rem .35rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cod-produs,
.subcategory-product-code {
    color: var(--fx-blue);
    font-size: .8rem;
    padding: 0 1rem;
}

.cod-produs strong { font-size: .95rem; }

.produs .descriere-produs,
.modern-product-card .product-description,
.subcategory-product-desc {
    color: #555;
    font-size: .85rem;
    padding: .4rem 1rem;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.produs-actions,
.modern-product-card .product-card-footer,
.subcategory-product-btns {
    display: flex;
    gap: .5rem;
    padding: .75rem 1rem 1rem;
    background: transparent;
    border: 0;
    align-items: stretch;
}

.buton-cere-oferta,
.request-quote-btn,
.add-to-cart-btn,
.subcategory-product-btns button:first-child {
    appearance: none;
    background: var(--fx-blue) !important;
    background-image: none !important;
    border: 0;
    border-radius: .5rem;
    color: #fff !important;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    padding: .55rem .75rem;
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    text-decoration: none;
}

.buton-cere-oferta:hover,
.request-quote-btn:hover,
.add-to-cart-btn:hover {
    background: #4285F4 !important;
}

.cere-informatii,
.subcategory-product-btns button:last-child,
.quick-view-btn {
    appearance: none;
    background: linear-gradient(to right, #aaaab7, #aaaab7) !important;
    border: 0;
    border-radius: .5rem;
    color: #fff !important;
    cursor: pointer;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: .55rem .75rem;
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.cere-informatii:hover,
.quick-view-btn:hover {
    background: #676767 !important;
}

.modern-product-card .product-card-header,
.modern-product-card .product-overlay,
.modern-product-card .product-specs,
.modern-product-card .product-badge,
.modern-product-card .product-stock-indicator {
    /* keep functional, restyle */
}

.modern-product-card .product-badge {
    background: var(--fx-blue);
    border-radius: .4rem;
}

.modern-product-card .product-card-body { padding: 0; }
.modern-product-card .price-value { color: var(--fx-red); }

/* Page interiors (despre, contact, etc) */
.fx-page {
    background: #fff;
    border-radius: 1rem;
    margin: .75rem auto 1.5rem;
    max-width: 1100px;
    padding: 2rem 2rem 2.5rem;
}

.fx-page h1 {
    color: var(--fx-blue);
    font-size: 2rem;
    margin: 0 0 .4rem;
}

.fx-page .lead {
    color: #555;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.fx-page h2 {
    color: var(--fx-blue);
    font-size: 1.25rem;
    margin: 1.6rem 0 .6rem;
}

.fx-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.fx-card {
    background: #f7f9fd;
    border-radius: 1rem;
    padding: 1.2rem;
}

.fx-card i {
    color: var(--fx-red);
    font-size: 1.4rem;
    margin-bottom: .5rem;
}

.fx-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.fx-stat {
    background: var(--fx-blue);
    color: #fff;
    border-radius: 1rem;
    padding: 1.3rem 1rem;
    text-align: center;
}

.fx-stat strong {
    display: block;
    font-size: 2rem;
}

.fx-form label {
    display: block;
    font-weight: 600;
    color: var(--fx-blue);
    margin: .7rem 0 .25rem;
}

.fx-form input,
.fx-form textarea,
.fx-form select {
    width: 100%;
    border: 1px solid #d5dbe8;
    border-radius: .5rem;
    padding: .65rem .8rem;
    font-family: inherit;
    font-size: 1rem;
}

.fx-form button,
.fx-btn {
    background: var(--fx-blue);
    color: #fff;
    border: 0;
    border-radius: .5rem;
    padding: .7rem 1.4rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.fx-btn-red { background: var(--fx-red); }

.fx-alert-ok {
    background: #e8f5e8;
    color: #2e7d32;
    padding: .8rem 1rem;
    border-radius: .5rem;
    margin-bottom: 1rem;
}

.fx-alert-err {
    background: #ffebee;
    color: #c62828;
    padding: .8rem 1rem;
    border-radius: .5rem;
    margin-bottom: 1rem;
}

.fx-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Footer */
.footer-wrapper,
body.fx-public .footer {
    background: var(--fx-blue);
    color: #fff;
    margin-top: 1rem;
    text-align: left;
}

.fx-footer,
body.fx-public footer.footer {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    margin: 0 auto;
    max-width: var(--max-content-width);
    padding: 2rem 2rem 1.5rem;
    color: #fff;
}

.fx-footer a,
body.fx-public .footer a {
    color: #fff;
    text-decoration: none;
}

.fx-footer a:hover { text-decoration: underline; }

.fx-footer h3 {
    margin: 0 0 .6rem;
    font-size: 1rem;
}

.fx-footer li { margin: .25rem 0; font-size: .9rem; }

.fx-copy {
    width: 100%;
    opacity: .85;
    font-size: .85rem;
    border-top: 1px solid rgba(255,255,255,.15);
    padding-top: 1rem;
}

.fx-search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: .75rem;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
    z-index: 80;
    max-height: 360px;
    overflow-y: auto;
    display: none;
}

.fx-search-results a {
    display: block;
    padding: .7rem 1rem;
    color: #222;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    font-size: .9rem;
}

.fx-search-results a:hover { background: #f7f9fd; }
.fx-search-results small { color: #777; display: block; }

.menu-toggle {
    display: none;
    background: var(--fx-blue);
    color: #fff;
    border: 0;
    border-radius: .4rem;
    padding: .45rem .7rem;
    cursor: pointer;
    align-items: center;
    gap: .4rem;
    font-size: .85rem;
    font-weight: 700;
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
}
.menu-link-toggle,
.fx-mobile-cats-link {
    display: none;
}
.fx-close-menu {
    display: none;
}
.fx-menu-overlay {
    display: none;
}
.fx-mobile-sub {
    display: none;
}

@media (max-width: 1023px) {
    .fx-content.has-sidebar,
    body.fx-public .main-container {
        grid-template-columns: 1fr;
    }
    .fx-events,
    .fx-contact-grid {
        grid-template-columns: 1fr;
    }
    .site-header,
    body.fx-public header.header {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "logo actions"
            "search search";
        gap: .65rem 1rem;
    }
    .site-header .fx-logo,
    body.fx-public header.header .fx-logo {
        grid-area: logo;
    }
    .fx-search-row {
        grid-area: search;
        max-width: none;
        justify-self: stretch;
    }
    .fx-header-actions,
    body.fx-public header.header .header-right {
        grid-area: actions;
        flex: 0 0 auto;
        min-width: 0;
        justify-self: end;
    }
    .fx-search,
    body.fx-public .search-box {
        min-width: 0;
        max-width: none;
    }
    .fx-header-actions,
    body.fx-public .header-icons {
        flex-shrink: 0;
    }
    .menu-toggle {
        display: inline-flex;
    }
    .fx-search input,
    body.fx-public .search-box input {
        font-size: 16px;
        padding: .75rem 2.6rem .75rem 1.1rem;
    }
    .fx-sidebar,
    body.fx-public .sidebar {
        display: none !important;
    }
    body.fx-public.mobile-menu-open {
        overflow: hidden;
    }
    .fx-menu-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, .45);
        z-index: 120;
    }
    body.fx-public.mobile-menu-open .fx-menu-overlay {
        display: block;
    }
    body.fx-public.mobile-menu-open .sidebar,
    body.fx-public.mobile-menu-open .fx-sidebar {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: auto !important;
        bottom: 0 !important;
        width: min(88vw, 340px) !important;
        max-width: 340px !important;
        height: 100% !important;
        z-index: 130;
        margin: 0 !important;
        padding: 0 0 1.5rem !important;
        border-radius: 0 !important;
        overflow-x: hidden;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        box-shadow: 8px 0 24px rgba(0,0,0,.25);
        background: #fff !important;
    }
    .fx-close-menu {
        display: flex;
        align-items: center;
        justify-content: center;
        position: sticky;
        top: 0;
        z-index: 2;
        width: 100%;
        height: 44px;
        border: 0;
        background: #f4f6fb;
        color: #233D7F;
        font-size: 1.6rem;
        line-height: 1;
        cursor: pointer;
    }
    .fx-mega {
        display: none !important;
    }
    .fx-clase > li > a,
    body.fx-public .product-categories > li > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: .6rem;
    }
    .fx-clase > li > a::after,
    body.fx-public .product-categories > li > a::after {
        content: '\f054';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: .65rem;
        color: #8a93a6;
        flex-shrink: 0;
    }
    .fx-clase > li.active > a::after,
    body.fx-public .product-categories > li.active > a::after {
        transform: rotate(90deg);
    }
    .fx-clase > li.active,
    body.fx-public .product-categories > li.active {
        background: #f7f4eb;
        box-shadow: inset 3px 0 0 var(--fx-red);
    }
    .fx-mobile-sub {
        display: none;
        padding: .2rem 1rem .9rem 1.25rem;
        background: #f7f9fd;
        border-top: 1px solid rgba(0,0,0,.05);
    }
    .fx-clase > li.active > .fx-mobile-sub,
    body.fx-public .product-categories > li.active > .fx-mobile-sub {
        display: block;
    }
    .fx-mobile-sub .fx-mega-head {
        flex-wrap: wrap;
        gap: .35rem;
        margin-bottom: .6rem;
    }
    .fx-mobile-sub .fx-mega-head h3 {
        font-size: .95rem;
    }
    .fx-mobile-sub .fx-mega-cols {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .top-menu ul,
    body.fx-public .top-nav {
        justify-content: flex-start;
        overflow-x: auto;
    }
}

@media (max-width: 600px) {
    .fx-logo-name { font-size: 1.15rem; }
    .fx-logo-tag { display: none; }
    .fx-page { padding: 1.2rem; }
    .fx-footer { flex-direction: column; gap: 1.5rem; }
}

/* Header icons — photo 2 */
.fx-header-actions,
body.fx-public .header-icons {
    display: flex;
    align-items: center;
    gap: 1.15rem;
}
.fx-icon-btn {
    color: #233D7F;
    background: none;
    border: 0;
    width: 28px;
    height: 28px;
    font-size: 1.2rem;
    position: relative;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.fx-icon-btn:hover { color: var(--fx-red); }
.fx-icon-btn[title]:hover::after,
.fx-icon-btn .fx-tip {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #222;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: .25rem .5rem;
    font-size: .75rem;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
    pointer-events: none;
    z-index: 80;
}
.fx-icon-btn[data-tip]:hover::after {
    content: attr(data-tip);
}
.fx-cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--fx-blue);
    color: #fff;
    border-radius: .4rem;
    min-width: 1.1rem;
    height: 1.1rem;
    font-size: .65rem;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 .25rem;
}

/* Mega menu (no modal) */
.fx-content.has-sidebar,
body.fx-public .main-container {
    position: relative;
}
.fx-mega {
    display: none;
    position: absolute;
    left: calc(var(--sidebar-width) + var(--primary-spacing));
    top: var(--primary-spacing);
    right: 0;
    bottom: 0;
    background: #fff;
    border-radius: 0 1rem 1rem 0;
    z-index: 25;
    padding: 1rem 1.5rem 1.5rem;
    overflow: auto;
    box-shadow: 8px 10px 24px rgba(0,0,0,.08);
}
.fx-mega.open { display: block; }
.fx-mega-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: .6rem;
    margin-bottom: 1rem;
}
.fx-mega-head h3 {
    margin: 0;
    color: var(--fx-blue);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: .02em;
}
.fx-mega-head a { color: #555; font-size: .8rem; text-decoration: none; }
.fx-mega-head a:hover { color: var(--fx-red); }
.fx-mega-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 3rem;
    align-items: start;
}
.fx-mega-col h4,
.fx-mega-group h4 {
    margin: .55rem 0 .1rem;
    color: var(--fx-blue);
    font-size: .95rem;
    font-weight: 700;
}
.fx-mega-col h4 a,
.fx-mega-group h4 a {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    padding: 0;
}
.fx-mega-col a,
.fx-mega-group a {
    display: block;
    color: #222;
    text-decoration: none;
    font-size: .82rem;
    font-weight: 400;
    padding: .12rem 0 .12rem .15rem;
    line-height: 1.35;
}
.fx-mega-group a.fx-mega-l4 { padding-left: .85rem; color: #444; }
.fx-mega-col a:hover,
.fx-mega-group a:hover { color: var(--fx-red); }
.fx-clase > li.hovered,
body.fx-public .product-categories > li.hovered {
    background: #f7f4eb;
    box-shadow: inset 3px 0 0 var(--fx-red);
}
.fx-subcat-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: .6rem;
    padding: .5rem 0 1.5rem;
}
.fx-subcat-card {
    display: block;
    background: #fff;
    border-radius: .7rem;
    padding: .85rem 1rem;
    color: var(--fx-blue);
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(35,61,127,.08);
}
.fx-subcat-card:hover { color: var(--fx-red); }

/* Category listing */
.zona-titlu {
    background: #fff;
    border-radius: 0 1rem 0 1rem;
    padding: 1rem 1.5rem .8rem;
    margin-top: .5rem;
}
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    font-size: .85rem;
    padding: 0;
    margin: 0 0 .6rem;
    list-style: none;
}
.breadcrumbs li { color: #666; }
.breadcrumbs li:not(:last-child)::after { content: '›'; margin-left: .35rem; color: #999; }
.breadcrumbs a { color: var(--fx-blue); text-decoration: none; }
.zona-titlu h1 {
    color: var(--fx-blue);
    font-size: 1.25rem;
    margin: 0;
}
.zona-titlu > div:first-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 1rem;
    flex-wrap: wrap;
}
.display-style {
    display: flex;
    gap: .35rem;
    margin-left: auto;
}
.display-style button {
    background: none;
    border: 0;
    color: #9aa3b5;
    cursor: pointer;
    font-size: 1.05rem;
    padding: .15rem;
}
.display-style button.active,
.display-style button:hover { color: var(--fx-blue); }
.statut-disponibilitate {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .35rem 1rem;
    font-size: .78rem;
    color: #555;
}
.statut-disponibilitate strong {
    display: block;
    color: var(--fx-blue);
    text-transform: uppercase;
    font-size: .82rem;
}
.pret-stoc-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: .5rem;
    padding: .25rem 1rem .1rem;
}
.produs .pret-produs {
    color: var(--fx-red);
    font-size: .78rem;
}
.produs .pret-produs strong {
    display: block;
    font-size: 1.05rem;
}
.produs .pret-produs sup { font-size: .65em; }
.stoc-produs { font-size: .78rem; color: #555; text-align: right; }
.lista-produse.lista-lista {
    grid-template-columns: 1fr;
}
.lista-produse.lista-lista .produs {
    display: grid;
    grid-template-columns: 180px 1fr;
}
.lista-produse.lista-lista .card-produs {
    display: contents;
}
.zona-filtre {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: .6rem;
}
.sortare { font-size: .85rem; color: #666; }
.sortare .filtru { color: var(--fx-blue); cursor: pointer; }
.sortare .filtru.filtru-activ { font-weight: 700; }
.category-seo-description {
    background: #fff;
    padding: .8rem 1.5rem;
    color: #555;
    font-size: .95rem;
}
.category-seo-description h2 { font-size: 1rem; font-weight: 500; margin: 0; color: #444; }

/* Product detail */
.product-name-wrapper.zona-titlu { border-radius: 0 1rem 1rem 1rem; }
.product-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    background: #fff;
    border-radius: 1rem;
    padding: 1.25rem;
    margin-top: .5rem;
}
.product-gallery {
    background: #fafafa;
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.product-gallery .main-image {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: contain;
    background: #fff;
    border-radius: .75rem;
}
.product-info .descriere-produs {
    padding: 0;
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
}
.product-info .descriere-titlu {
    color: var(--fx-blue);
    font-weight: 700;
    margin-bottom: .5rem;
}
.product-info .descriere-content { color: #333; font-size: .95rem; line-height: 1.55; }
.product-info .origine-produs { margin-top: 1rem; }
.product-info .cod-produs,
.product-info .furnizor,
.product-info .disponibilitate {
    padding: .45rem 0;
    border-top: 1px solid #eee;
    font-size: .9rem;
    color: var(--fx-blue);
}
.product-info .statut-disponibilitate {
    padding: 1rem 0 .4rem;
    border-top: 1px solid #eee;
}
.product-info .pret-produs {
    margin: .8rem 0;
    color: var(--fx-red);
    font-size: 1.05rem;
}
.product-info .pret-produs strong { font-size: 1.35rem; }
.product-info .buton-cere-oferta {
    width: 100%;
    height: 2.6rem;
    font-size: .85rem;
}
.date-tehnice-produs {
    background: #fff;
    margin-top: .5rem;
    padding: 1rem 1.5rem;
    border-radius: 1rem 1rem 0 0;
}
.date-tehnice-produs h2 { color: var(--fx-blue); font-size: 1.15rem; margin: 0; }
.product-specifications {
    background: #fff;
    padding: 0 1.5rem 1.5rem;
    border-radius: 0 0 1rem 1rem;
}
.specification-types {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    border-bottom: 1px solid #eee;
    margin-bottom: 1rem;
}
.specification-types li {
    padding: .6rem .9rem;
    cursor: pointer;
    color: var(--fx-blue);
    font-weight: 600;
    font-size: .9rem;
}
.specification-types li.active { border-bottom: 3px solid var(--fx-red); }
.specification-panels .specificatie { display: none; }
.specification-panels .specificatie.active { display: block; color: #333; line-height: 1.55; }
.specification-panels .specificatie h3 {
    color: var(--fx-blue);
    font-size: 1.15rem;
    margin: 0 0 .75rem;
}
.spec-subtitle {
    color: var(--fx-blue);
    font-size: .95rem;
    margin: 0 0 .6rem;
    font-weight: 600;
}
.tech-spec-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}
.tech-spec-table th,
.tech-spec-table td {
    padding: .65rem .85rem;
    border-bottom: 1px solid #e6eef5;
    text-align: left;
    vertical-align: top;
}
.tech-spec-table th {
    width: 42%;
    color: var(--fx-blue);
    font-weight: 600;
    background: #f7fbff;
}
.tech-spec-table td { color: #222; }
.delivery-set-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}
.delivery-set-table th,
.delivery-set-table td {
    padding: .7rem .8rem;
    border-bottom: 1px solid #e6eef5;
    text-align: left;
    vertical-align: middle;
}
.delivery-set-table thead th {
    color: var(--fx-blue);
    font-weight: 700;
    border-bottom: 2px solid #cfe3f5;
}
.delivery-name-cell {
    display: flex;
    align-items: center;
    gap: .75rem;
}
.delivery-name-cell img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    background: #f7f7f7;
    border-radius: .35rem;
}
.delivery-name-cell small {
    display: block;
    color: #666;
    font-weight: 400;
    font-size: .8rem;
}
.btn-descarca-brosura {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin: 1rem 0 .25rem;
    padding: .55rem .95rem;
    border: 1px solid #1565c0;
    background: #fff;
    color: #1565c0;
    border-radius: .2rem;
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
}
.btn-descarca-brosura:hover { background: #f3f8ff; color: #0d47a1; }
.btn-descarca-brosura i { color: #d32f2f; font-size: 1.25rem; }
.exam-list { margin: 0; padding-left: 1.2rem; color: #333; }
.exam-list li { margin: .35rem 0; }
.related-group-title {
    margin: 1.25rem 0 .6rem;
    color: #1565c0;
    font-size: .85rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.related-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}
.related-card {
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: .5rem;
    padding: .85rem;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}
.related-card-cat {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #555;
}
.related-card-img {
    display: block;
    background: #fafafa;
    border-radius: .35rem;
}
.related-card-img img {
    width: 100%;
    height: 140px;
    object-fit: contain;
}
.related-card h4 { margin: 0; font-size: .95rem; }
.related-card h4 a { color: #1565c0; text-decoration: none; }
.related-code { font-size: .75rem; color: #666; }
.related-desc { margin: 0; font-size: .8rem; color: #555; line-height: 1.4; }
.related-card-actions {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    margin-top: auto;
}
.related-card-actions .buton-cere-oferta {
    width: 100%;
    height: 2.2rem;
    font-size: .78rem;
}
.related-info {
    display: block;
    text-align: center;
    background: #9e9e9e;
    color: #fff;
    padding: .45rem .6rem;
    border-radius: .25rem;
    text-decoration: none;
    font-size: .78rem;
    font-weight: 600;
}

/* Cart page */
.produse-cos { background: #fff; border-radius: 1rem; padding: .5rem 0; }
.produse-cos > li {
    display: grid;
    grid-template-columns: auto 1fr auto auto auto;
    gap: 1rem;
    align-items: center;
    padding: .9rem 1.2rem;
    border-bottom: 1px solid #eee;
}
.produse-cos img { width: 50px; height: 50px; object-fit: contain; background: #f7f7f7; border-radius: .4rem; }
.nume-produs-cos { color: var(--fx-blue); font-weight: 600; }
.nume-produs-cos span { display: block; font-weight: 400; color: #666; font-size: .8rem; }
.nr-bucati { display: flex; align-items: center; gap: .35rem; }
.nr-bucati button {
    width: 28px; height: 28px; border: 1px solid #ccc; background: #fff; cursor: pointer; border-radius: 4px;
}
.nr-bucati input { width: 52px; text-align: center; padding: .3rem; }
.sterge-produs { cursor: pointer; color: #777; font-size: 1.1rem; }
.sterge-produs:hover { color: var(--fx-red); }
.pret-total-cos {
    display: flex !important;
    justify-content: space-between;
    padding: 1rem 1.2rem;
    font-weight: 700;
    color: var(--fx-blue);
}
.goleste-cosul {
    background: none;
    border: 0;
    color: var(--fx-red);
    cursor: pointer;
    font-weight: 600;
}
.solicitare-wrapper { display: flex; justify-content: space-between; align-items: center; margin: 1rem 0; }
.solicitare-wrapper button, .fx-btn-offer {
    background: var(--fx-blue);
    color: #fff;
    border: 0;
    border-radius: .5rem;
    padding: .7rem 1.3rem;
    font-weight: 700;
    cursor: pointer;
}
.cos-gol { background: #fff; border-radius: 1rem; padding: 2rem; }
.date-contact-client {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
}
.date-contact-client .form-row { margin-bottom: .8rem; }
.date-contact-client label { display: block; font-weight: 600; color: var(--fx-blue); margin-bottom: .25rem; }
.date-contact-client input,
.date-contact-client select,
.date-contact-client textarea {
    width: 100%;
    padding: .55rem .7rem;
    border: 1px solid #d5dbe8;
    border-radius: .4rem;
    font-family: inherit;
}
.date-contact-client .tip-client {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin: 0 1rem .8rem 0;
    font-weight: 500;
    color: #333;
}
.date-contact-client .tip-client input,
.date-contact-client .check-row input {
    width: auto;
    margin-right: .4rem;
}
.mandatory { color: var(--fx-red); }
.page-content {
    background: #fff;
    border-radius: 1rem;
    padding: 1rem 1.5rem 1.5rem;
    margin-bottom: 1rem;
}
.page-referrer a { color: var(--fx-blue); font-weight: 600; text-decoration: none; }
.fx-cart-toast {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    background: #fff;
    color: #222;
    border: 1px solid #d5dbe8;
    box-shadow: 0 8px 24px rgba(35,61,127,.18);
    border-radius: .6rem;
    padding: .8rem 1rem;
    z-index: 200;
    opacity: 0;
    transform: translateY(8px);
    transition: .25s;
}
.fx-cart-toast.show { opacity: 1; transform: none; }
.fx-cart-toast a { color: var(--fx-blue); font-weight: 700; }

.fx-admin-btn {
    background: #CE1126;
    color: #fff;
    border: 0;
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 12px;
    white-space: nowrap;
    font-family: inherit;
}
.fx-admin-btn:hover { background: #a80e1e; }
.fx-admin-btn-out { background: #5a6268; }
.fx-admin-btn-out:hover { background: #444; }
.fx-user-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--fx-blue);
    font-weight: 600;
    font-size: .85rem;
    max-width: 180px;
}
.fx-user-chip #clientName {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fx-logout-btn {
    background: none;
    border: 0;
    color: var(--fx-red);
    cursor: pointer;
    padding: 0 .2rem;
    font-size: .95rem;
}

.auth-modal[hidden] { display: none !important; }
.auth-modal {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.5);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}
.auth-modal.show { display: flex; }
.auth-content {
    background: #fff;
    border-radius: 12px;
    max-width: 460px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.auth-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.4rem;
    background: linear-gradient(90deg, #002B7F 0%, #FCD116 50%, #CE1126 100%);
    color: #fff;
    border-radius: 12px 12px 0 0;
}
.auth-title { margin: 0; font-size: 1.3rem; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.close-modal {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}
.auth-tabs { display: flex; background: #f4f6f8; }
.tab-btn {
    flex: 1;
    padding: 12px;
    background: none;
    border: 0;
    font-weight: 600;
    cursor: pointer;
    color: #666;
    font-family: inherit;
}
.tab-btn.active { background: #fff; color: #002B7F; border-bottom: 3px solid #CE1126; }
.tab-content { display: none; padding: 1.4rem; }
.tab-content.active { display: block; }
.auth-form { display: flex; flex-direction: column; gap: .9rem; }
.auth-form .form-group { display: flex; flex-direction: column; gap: .3rem; }
.auth-form label { font-weight: 600; font-size: .9rem; }
.auth-form input {
    padding: .7rem .8rem;
    border: 1px solid #d5dbe8;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
}
.auth-btn {
    background: #002B7F;
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: .75rem 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}
.auth-btn:hover { background: #001f5c; }
#loginMessage, #registerMessage { margin-top: .8rem; font-size: .9rem; }
.auth-msg-ok { background: #d4edda; color: #155724; padding: 10px; border-radius: 6px; }
.auth-msg-err { background: #f8d7da; color: #721c24; padding: 10px; border-radius: 6px; }

@media (max-width: 1023px) {
    .product-wrapper { grid-template-columns: 1fr; }
    .fx-mega-cols { grid-template-columns: 1fr; }
    .produse-cos > li { grid-template-columns: auto 1fr auto; }
}
