/* ==========================================================================
   GESIB.RO - Storefront Stylesheet (WIDE Display + Light & Dark Themes)
   ========================================================================== */

:root,
[data-theme="light"] {
    color-scheme: light;
    --bg-page: #F6F7F9;
    --bg-surface: #FFFFFF;
    --bg-elevated: #FFFFFF;
    --bg-subtle: #F9FAFB;
    --bg-input: #F8F9FB;
    --text-primary: #14181F;
    --text-secondary: #4B5563;
    --text-muted: #6B7280;
    --border-color: #E5E7EB;
    --border-hover: #D1D5DB;

    --brand-red: #D91C24;
    --brand-red-hover: #B8141B;
    --brand-red-soft: #FCECEF;
    --brand-red-text: #D91C24;

    /* Hero Banner & Podium (Light Mode) */
    --hero-bg: linear-gradient(120deg, #FBE9EC 0%, #F7D4DA 55%, #F2C2CB 100%);
    --hero-border: #F3C8D0;
    --podium-top: #F7D7DC;
    --podium-front: #EBBEC6;
    --podium-top-main: #F9DCE1;
    --podium-front-main: #E6B5BE;

    /* Side Promo Cards (Light Mode) */
    --promo-1-bg: linear-gradient(135deg, #FAEAEC 0%, #F4D2D7 100%);
    --promo-1-border: #F1C7CE;
    --promo-2-bg: linear-gradient(135deg, #F6EFEA 0%, #EBDDD5 100%);
    --promo-2-border: #E5D4C9;
    --promo-arrow-bg: #FFFFFF;
    --promo-arrow-color: #D91C24;

    /* B2B Bottom Banner (Light Mode) */
    --b2b-banner-bg: linear-gradient(90deg, #FCEBEF 0%, #F9DCE2 62%, #EFE6E8 100%);
    --b2b-banner-border: #F3C6CE;
    --b2b-title-color: #C81B22;
    --b2b-btn-bg: #FFFFFF;

    /* Footer */
    --footer-bg: #12151C;
    --footer-text: #9CA3AF;
    --footer-heading: #FFFFFF;

    --shadow-card: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-hover: 0 8px 22px rgba(15, 23, 42, 0.09);
    --shadow-modal: 0 20px 45px rgba(15, 23, 42, 0.22);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

[data-theme="dark"] {
    color-scheme: dark;
    --bg-page: #0D1016;
    --bg-surface: #151921;
    --bg-elevated: #1A1F29;
    --bg-subtle: #1D232E;
    --bg-input: #1E2430;
    --text-primary: #F3F4F6;
    --text-secondary: #D1D5DB;
    --text-muted: #9CA3AF;
    --border-color: #262C3A;
    --border-hover: #384152;

    --brand-red: #D91C24;
    --brand-red-hover: #E6252E;
    --brand-red-soft: rgba(217, 28, 36, 0.15);
    --brand-red-text: #FF545B;

    /* Hero Banner & Podium (Dark Mode) */
    --hero-bg: linear-gradient(120deg, #3C161B 0%, #28151A 52%, #191B22 100%);
    --hero-border: #4A2128;
    --podium-top: #2B2E37;
    --podium-front: #1F2229;
    --podium-top-main: #31343E;
    --podium-front-main: #23262E;

    /* Side Promo Cards (Dark Mode) */
    --promo-1-bg: linear-gradient(135deg, #2D181D 0%, #1D181D 100%);
    --promo-1-border: #43232A;
    --promo-2-bg: linear-gradient(135deg, #281E23 0%, #1B1B22 100%);
    --promo-2-border: #3B2B32;
    --promo-arrow-bg: #FFFFFF;
    --promo-arrow-color: #D91C24;

    /* B2B Bottom Banner (Dark Mode) */
    --b2b-banner-bg: linear-gradient(90deg, #2F151B 0%, #24141A 62%, #191C24 100%);
    --b2b-banner-border: #4C212A;
    --b2b-title-color: #FF5C63;
    --b2b-btn-bg: rgba(255, 255, 255, 0.04);

    /* Footer */
    --footer-bg: #090B10;
    --footer-text: #9CA3AF;
    --footer-heading: #F9FAFB;

    --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-hover: 0 10px 26px rgba(0, 0, 0, 0.45);
    --shadow-modal: 0 24px 50px rgba(0, 0, 0, 0.65);
}

/* ================= Reset & Base ================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-page);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background-color 0.2s ease, color 0.2s ease;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, select, textarea {
    font-family: inherit;
    color: inherit;
}

/* Container WIDE (1540px) */
.container {
    width: 100%;
    max-width: 1540px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ================= 1. Top Red Bar ================= */
.top-bar {
    background-color: #D31B22;
    color: #FFFFFF;
    font-size: 13px;
    padding: 7px 0;
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 500;
}

.top-icon {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.top-b2b-status {
    background: rgba(0, 0, 0, 0.22);
    padding: 2px 10px;
    border-radius: 99px;
    font-size: 11.5px;
    margin-left: 6px;
}
.top-b2b-status:empty {
    display: none;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Price Mode Pill in Top Bar */
.price-toggle-pill {
    display: inline-flex;
    background: rgba(0, 0, 0, 0.22);
    border-radius: 99px;
    padding: 2px;
}

.price-toggle-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 99px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.price-toggle-btn.active {
    background: #FFFFFF;
    color: #D31B22;
    font-weight: 700;
}

/* Theme Toggle Button (Light / Dark) */
.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #FFFFFF;
    padding: 3px 11px;
    border-radius: 99px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}

.theme-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.38);
}

.theme-toggle-btn svg {
    width: 14px;
    height: 14px;
}

[data-theme="light"] .theme-toggle-btn .icon-sun {
    display: none;
}
[data-theme="dark"] .theme-toggle-btn .icon-moon {
    display: none;
}

.top-phone-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.top-admin-link {
    font-size: 11.5px;
    opacity: 0.82;
    padding-left: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}
.top-admin-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ================= 2. Main Header Bar ================= */
.header-main {
    background-color: var(--bg-surface);
    padding: 16px 0 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.2s ease;
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.header-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.header-logo img {
    height: 50px;
    width: auto;
    display: block;
}

/* Search Bar */
.header-search {
    flex: 1;
    max-width: 740px;
    position: relative;
}

.header-search-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.16);
    z-index: 950;
    overflow: hidden;
}

.live-search-list {
    max-height: 410px;
    overflow-y: auto;
}

.live-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-subtle);
    text-decoration: none;
    color: var(--text-primary);
    transition: background 0.15s ease;
}

.live-search-item.active,
.live-search-item:hover {
    background: var(--bg-surface-alt);
}

.live-search-thumb {
    width: 44px;
    height: 44px;
    object-fit: contain;
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 3px;
    flex-shrink: 0;
}

.live-search-info {
    flex: 1;
    min-width: 0;
}

.live-search-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}

.live-search-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    color: var(--text-muted);
}

.live-search-sku {
    font-family: monospace;
    background: var(--bg-surface-alt);
    padding: 1px 6px;
    border-radius: 4px;
}

.live-search-stock.in-stock {
    color: #16A34A;
    font-weight: 600;
}

.live-search-stock.out-stock {
    color: #64748B;
    font-weight: 600;
}

.live-search-stock.low-stock {
    color: #C2410C;
    font-weight: 600;
}

.live-search-stock.last-stock {
    color: #DC2626;
    font-weight: 600;
}

[data-theme="dark"] .live-search-stock.low-stock { color: #FB923C; }
[data-theme="dark"] .live-search-stock.last-stock { color: #F87171; }
[data-theme="dark"] .live-search-stock.out-stock { color: #94A3B8; }

.live-search-price {
    text-align: right;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.live-search-price strong {
    font-size: 14px;
    font-weight: 800;
    color: var(--brand-red);
}

.live-search-price small {
    font-size: 10.5px;
    color: var(--text-muted);
}

.live-search-footer {
    display: block;
    text-align: center;
    padding: 10px 14px;
    background: var(--bg-surface-alt);
    color: var(--brand-red);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s ease;
}

.live-search-footer:hover {
    background: var(--brand-red-soft);
}

.live-search-empty {
    padding: 18px 16px;
    text-align: center;
    font-size: 13.5px;
    color: var(--text-secondary);
}

.search-form {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 46px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-form:focus-within {
    border-color: var(--brand-red);
    box-shadow: 0 0 0 3px var(--brand-red-soft);
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0 18px;
    font-size: 14.5px;
    color: var(--text-primary);
    outline: none;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    width: 60px;
    background: var(--brand-red);
    color: #FFFFFF;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease;
}

.search-btn:hover {
    background: var(--brand-red-hover);
}

/* Header Right Actions (Contul meu, Favorite, Coș) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}

.header-action-btn {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: var(--text-primary);
    padding: 4px 6px;
    border-radius: var(--radius-sm);
    transition: color 0.15s ease;
}

.header-action-btn:hover {
    color: var(--brand-red-text);
}

.header-action-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-action-label {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

.action-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: var(--brand-red);
    color: #FFFFFF;
    font-size: 10.5px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 99px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ================= 3. Secondary Navigation Bar ================= */
.subnav-bar {
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 6px 0 14px 0;
}

.subnav-inner {
    display: flex;
    align-items: center;
    gap: 32px;
}

.all-categories-btn {
    width: 264px;
    height: 42px;
    background: var(--brand-red);
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease;
}

.all-categories-btn:hover {
    background: var(--brand-red-hover);
}

.subnav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
}
.subnav-links::-webkit-scrollbar {
    display: none;
}

.subnav-links a {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    transition: color 0.15s ease;
}

.subnav-links a:hover {
    color: var(--brand-red-text);
}

@media (max-width: 1320px) {
    .subnav-links { gap: 20px; }
    .subnav-links a { font-size: 13.5px; }
}

@media (max-width: 1180px) {
    .subnav-links { gap: 14px; }
}

/* ================= 4. 3-Column Bento Hero Section ================= */
.bento-hero-section {
    padding: 18px 0 16px 0;
}

.bento-grid {
    display: grid;
    grid-template-columns: 264px 1fr 305px;
    gap: 18px;
    align-items: stretch;
}

/* Column 1: Left Category Sidebar Card (Compact Top-9 + Mega-Menu Trigger) */
.cat-sidebar-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 40;
}

.cat-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border-color);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.cat-sidebar-title {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-secondary);
}

.cat-sidebar-all-btn {
    background: none;
    border: none;
    color: var(--brand-red-text);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}
.cat-sidebar-all-btn:hover {
    text-decoration: underline;
}

.cat-sidebar-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.cat-sidebar-item {
    position: relative;
}

.cat-sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    border-bottom: 1px solid var(--border-color);
}

.cat-sidebar-item:last-child .cat-sidebar-link {
    border-bottom: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.cat-sidebar-link:hover,
.cat-sidebar-link.active {
    background: var(--bg-subtle);
    color: var(--brand-red-text);
}

.cat-sidebar-more-link {
    width: 100%;
    background: var(--brand-red-soft);
    color: var(--brand-red-text);
    border: none;
    font-weight: 700;
    text-align: left;
}
.cat-sidebar-more-link:hover {
    background: var(--brand-red);
    color: #ffffff;
}
.cat-sidebar-more-link:hover .cat-link-icon,
.cat-sidebar-more-link:hover .cat-link-chevron {
    color: #ffffff;
}

.cat-link-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.cat-link-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cat-link-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.cat-sidebar-count {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    padding: 1px 6px;
    border-radius: 99px;
}

.cat-sidebar-link:hover .cat-sidebar-count {
    background: var(--brand-red-soft);
    color: var(--brand-red-text);
    border-color: transparent;
}

.cat-link-icon {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.cat-sidebar-link:hover .cat-link-icon,
.cat-sidebar-link.active .cat-link-icon {
    color: var(--brand-red-text);
}

.cat-link-chevron {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* Multi-Column Mega-Flyout Submenu on Hover */
.cat-flyout {
    position: absolute;
    top: -4px;
    left: 100%;
    margin-left: 8px;
    width: 560px;
    max-height: 440px;
    overflow-y: auto;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-modal);
    padding: 16px 18px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s ease, visibility 0s linear 0.18s;
    z-index: 120;
}

/* Pod invizibil între sidebar și flyout (pe item, nu pe flyout, ca să nu fie tăiat de overflow) */
.cat-sidebar-item::after {
    content: "";
    position: absolute;
    top: 0;
    right: -14px;
    width: 14px;
    height: 100%;
    display: none;
    z-index: 121;
}

.cat-sidebar-item:hover::after {
    display: block;
}

.cat-sidebar-item:hover .cat-flyout {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition-delay: 0s;
}

/* Ultimele rânduri: flyout ancorat jos, ca să nu depășească viewport-ul */
.cat-sidebar-item:nth-last-child(-n+3) .cat-flyout {
    top: auto;
    bottom: -4px;
}

.cat-flyout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.cat-flyout-title {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--text-primary);
}
.cat-flyout-title:hover {
    color: var(--brand-red-text);
}

.cat-flyout-badge {
    display: inline-block;
    margin-left: 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--brand-red-text);
    background: var(--brand-red-soft);
    padding: 2px 8px;
    border-radius: 99px;
}

.cat-flyout-all-link {
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-red-text);
    white-space: nowrap;
}
.cat-flyout-all-link:hover {
    text-decoration: underline;
}

.cat-flyout-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 12px;
}

.cat-flyout-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 10px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}

.cat-flyout-link span:first-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cat-flyout-link-count {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    flex-shrink: 0;
}

.cat-flyout-link:hover {
    background: var(--bg-subtle);
    color: var(--brand-red-text);
}

/* Column 2: Center Hero Banner */
.hero-main-banner {
    background: var(--hero-bg);
    border: 1px solid var(--hero-border);
    border-radius: var(--radius-lg);
    padding: 36px 32px 24px 42px;
    display: grid;
    grid-template-columns: 48% 52%;
    align-items: center;
    position: relative;
    overflow: hidden;
    min-height: 410px;
    box-shadow: var(--shadow-card);
}

.hero-banner-text {
    z-index: 2;
    padding-right: 10px;
}

.hero-kicker {
    display: inline-block;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--brand-red-text);
    margin-bottom: 14px;
}

.hero-headline {
    font-size: clamp(28px, 2.6vw, 42px);
    font-weight: 800;
    line-height: 1.12;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.hero-lead {
    font-size: 16.5px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-weight: 400;
}

.hero-cta-btn {
    background: var(--brand-red);
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    padding: 14px 26px;
    font-size: 15.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
    box-shadow: 0 4px 12px rgba(217, 28, 36, 0.28);
}

.hero-cta-btn:hover {
    background: var(--brand-red-hover);
    transform: translateY(-1px);
}

.hero-banner-visual {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.hero-studio-svg {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
}

.podium-top { fill: var(--podium-top); transition: fill 0.2s; }
.podium-front { fill: var(--podium-front); transition: fill 0.2s; }
.podium-top-main { fill: var(--podium-top-main); transition: fill 0.2s; }
.podium-front-main { fill: var(--podium-front-main); transition: fill 0.2s; }

/* Column 3: Right 2 Stacked Promo Cards */
.hero-side-promos {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 18px;
}

.side-promo-card {
    border-radius: var(--radius-lg);
    padding: 22px 18px 14px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-card);
}

.side-promo-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.promo-organizare {
    background: var(--promo-1-bg);
    border: 1px solid var(--promo-1-border);
}

.promo-culoare {
    background: var(--promo-2-bg);
    border: 1px solid var(--promo-2-border);
}

.side-promo-content {
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
}

.side-promo-content h3 {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
}

.side-promo-arrow {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--promo-arrow-bg);
    color: var(--promo-arrow-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    transition: transform 0.15s ease;
}

.side-promo-card:hover .side-promo-arrow {
    transform: translateX(3px);
}

.side-promo-art {
    width: 155px;
    height: 140px;
    flex-shrink: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.side-promo-art svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ================= 5. 4-Column Benefits Strip ================= */
.benefits-section {
    padding: 4px 0 22px 0;
}

.benefits-strip {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    box-shadow: var(--shadow-card);
}

.benefit-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 4px 18px;
    border-right: 1px solid var(--border-color);
}

.benefit-item:last-child {
    border-right: none;
}

.benefit-icon {
    color: var(--brand-red-text);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-text {
    display: flex;
    flex-direction: column;
    font-size: 13.5px;
    line-height: 1.35;
}

.benefit-text strong {
    color: var(--text-primary);
    font-weight: 700;
}

.benefit-text span {
    color: var(--text-muted);
    font-size: 12.5px;
}

/* ================= 6. Popular Categories (6 Columns) ================= */
.popular-categories-section {
    padding: 8px 0 26px 0;
}

.section-heading {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    margin-bottom: 16px;
}

.popular-cat-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.popular-cat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 12px 14px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-card);
}

.popular-cat-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover);
}

.popular-cat-thumb {
    width: 100%;
    height: 112px;
    border-radius: 6px;
    overflow: hidden;
    background: #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popular-cat-thumb svg,
.popular-cat-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.popular-cat-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

/* ================= 7. "Esențiale pentru biroul tău" (4 Columns Split Cards) ================= */
.essentials-section {
    padding: 6px 0 24px 0;
}

.section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.section-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.section-title-group .section-heading {
    margin-bottom: 0;
}

.catalog-active-filter {
    background: var(--brand-red-soft);
    color: var(--brand-red-text);
    font-size: 12.5px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 99px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.section-actions-group {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.catalog-controls {
    display: flex;
    align-items: center;
    gap: 14px;
}

.stock-check-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
}

.catalog-sort-select {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px;
    color: var(--text-primary);
    outline: none;
}

.see-all-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-red-text);
}

.see-all-link:hover {
    text-decoration: underline;
}

/* 4-Column Grid of Horizontal Split Product Cards */
.essentials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.essential-product-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px 18px;
    display: grid;
    grid-template-columns: 42% 58%;
    gap: 14px;
    align-items: center;
    position: relative;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.essential-product-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover);
}

.fav-heart-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
    z-index: 3;
}

.fav-heart-btn:hover,
.fav-heart-btn.active {
    color: var(--brand-red-text);
    transform: scale(1.1);
}

.fav-heart-btn.active svg {
    fill: var(--brand-red);
    stroke: var(--brand-red);
}

.essential-thumb {
    width: 100%;
    height: 185px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
}

.essential-thumb img,
.essential-thumb svg {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.essential-product-card:hover .essential-thumb img,
.essential-product-card:hover .essential-thumb svg {
    transform: scale(1.04);
}

.essential-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-right: 4px;
    padding-top: 16px;
}

.essential-title {
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: pointer;
}

.essential-title:hover {
    color: var(--brand-red-text);
}

.essential-specs {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.essential-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.essential-price {
    font-size: 21px;
    font-weight: 800;
    color: var(--brand-red-text);
    letter-spacing: -0.3px;
}

.essential-old-price {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.essential-vat-label {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.essential-cart-btn {
    width: 100%;
    background: var(--brand-red);
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.essential-cart-btn:hover {
    background: var(--brand-red-hover);
}

/* ================= 8. Bottom B2B Banner ("Cumperi pentru companie?") ================= */
.b2b-banner-section {
    padding: 6px 0 38px 0;
}

.b2b-bottom-banner {
    background: var(--b2b-banner-bg);
    border: 1px solid var(--b2b-banner-border);
    border-radius: var(--radius-lg);
    padding: 20px 28px;
    display: grid;
    grid-template-columns: 1.2fr auto 360px;
    align-items: center;
    gap: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.b2b-banner-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.b2b-building-icon {
    color: var(--brand-red-text);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.b2b-banner-copy h3 {
    font-size: 21px;
    font-weight: 800;
    color: var(--b2b-title-color);
    margin-bottom: 3px;
}

.b2b-banner-copy p {
    font-size: 14px;
    color: var(--text-secondary);
}

.b2b-outline-btn {
    background: var(--b2b-btn-bg);
    color: var(--b2b-title-color);
    border: 1.5px solid var(--brand-red-text);
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 13.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.b2b-outline-btn:hover {
    background: var(--brand-red);
    color: #FFFFFF;
    border-color: var(--brand-red);
}

.b2b-banner-visual {
    height: 82px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.b2b-banner-visual svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ================= 9. Footer Wide ================= */
.footer-wide {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 48px 0 24px 0;
    font-size: 13.5px;
    border-top: 3px solid var(--brand-red);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-col h4 {
    color: var(--footer-heading);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul a:hover {
    color: #FFFFFF;
}

.footer-couriers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-couriers span {
    background: rgba(255, 255, 255, 0.08);
    color: #E5E7EB;
    padding: 5px 11px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12.5px;
}

/* ================= 10. Side Drawers & Modals ================= */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -460px;
    width: 430px;
    max-width: 100vw;
    height: 100vh;
    background: var(--bg-elevated);
    color: var(--text-primary);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.35);
    z-index: 1100;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border-color);
}

.cart-drawer.open {
    right: 0;
}

.cart-drawer-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item-row {
    display: flex;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 4px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 3px;
}

.cart-item-price {
    font-size: 13.5px;
    color: var(--brand-red-text);
    font-weight: 800;
}

.cart-qty-ctrl {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

.cart-qty-btn {
    width: 24px;
    height: 24px;
    border: 1px solid var(--border-color);
    background: var(--bg-subtle);
    color: var(--text-primary);
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
}

.cart-drawer-footer {
    padding: 20px;
    background: var(--bg-subtle);
    border-top: 1px solid var(--border-color);
}

.cart-summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 6px;
}

.cart-summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 800;
    color: var(--brand-red-text);
    margin: 12px 0;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(9, 12, 18, 0.68);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1200;
    padding: 20px;
}

.modal-box {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 820px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-modal);
    position: relative;
    padding: 28px;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-muted);
}
.modal-close:hover {
    color: var(--brand-red-text);
}

.auth-tabs-bar {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.auth-tab-btn {
    flex: 1;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 10px 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
}

.auth-tab-btn.active {
    color: var(--brand-red-text);
    border-bottom-color: var(--brand-red);
    font-weight: 700;
}

.form-field {
    margin-bottom: 12px;
}

.form-field label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13.5px;
    color: var(--text-primary);
    outline: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--brand-red);
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

.btn-primary-full {
    width: 100%;
    background: var(--brand-red);
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    padding: 12px 18px;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
    margin-top: 6px;
}

.btn-primary-full:hover {
    background: var(--brand-red-hover);
}

.anaf-info-box {
    background: var(--brand-red-soft);
    color: var(--text-primary);
    border-left: 3px solid var(--brand-red);
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 12.5px;
    margin-bottom: 12px;
}

.anaf-lookup-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.anaf-lookup-row input {
    flex: 1;
    padding: 10px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
}

.btn-anaf-lookup {
    background: var(--bg-subtle);
    border: 1px solid var(--brand-red);
    color: var(--brand-red-text);
    padding: 0 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

.matrix-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 13px;
}
.matrix-table th,
.matrix-table td {
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    text-align: left;
}
.matrix-table th {
    background: var(--bg-subtle);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #14181F;
    color: #FFFFFF;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-left: 4px solid var(--brand-red);
}
.toast.success { border-left-color: #16A34A; }

/* ================= Responsive Breakpoints (Fără Overflow Orizontal) ================= */
@media (max-width: 1320px) {
    .bento-grid {
        grid-template-columns: 240px 1fr 270px;
    }
    .all-categories-btn {
        width: 240px;
    }
    .essentials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .popular-cat-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .cat-sidebar-card {
        display: none;
    }
    .cat-sidebar-card.mobile-open {
        display: flex;
    }
    .hero-side-promos {
        grid-template-rows: 1fr;
        grid-template-columns: 1fr 1fr;
    }
    .benefits-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .benefit-item {
        border-right: none;
        justify-content: flex-start;
    }
    .b2b-bottom-banner {
        grid-template-columns: 1fr auto;
    }
    .b2b-banner-visual {
        display: none;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .container {
        padding: 0 14px;
    }
    .top-bar-inner {
        justify-content: center;
        text-align: center;
    }
    .header-row {
        flex-wrap: wrap;
        gap: 12px;
    }
    .header-search {
        order: 3;
        max-width: 100%;
        width: 100%;
        flex: 1 1 100%;
    }
    .subnav-inner {
        gap: 14px;
    }
    .all-categories-btn {
        width: auto;
        padding: 0 14px;
    }
    .hero-main-banner {
        grid-template-columns: 1fr;
        padding: 24px 20px;
    }
    .hero-side-promos {
        grid-template-columns: 1fr;
    }
    .benefits-strip {
        grid-template-columns: 1fr;
    }
    .popular-cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .essentials-grid {
        grid-template-columns: 1fr;
    }
    .b2b-bottom-banner {
        grid-template-columns: 1fr;
        text-align: left;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .form-row-2,
    .form-row-3 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   13. Carduri Verticale Catalog & Pagini Categorii / Produse (.essential-card)
   ========================================================================== */
.essential-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.essential-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover);
}

.essential-card .essential-thumb {
    width: 100%;
    height: 190px;
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 12px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.essential-card:hover .essential-thumb img {
    transform: scale(1.05);
}

.card-badge-b2b {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--brand-red);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 2;
}

.card-badge-stock {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(22, 163, 74, 0.92);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 99px;
    z-index: 2;
}

.card-badge-stock.low {
    background: rgba(194, 65, 12, 0.92);
}

.card-badge-stock.last {
    background: rgba(220, 38, 38, 0.92);
}

.card-badge-stock.out {
    background: rgba(71, 85, 105, 0.9);
}

.card-fav-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: rgba(255, 255, 255, 0.92);
    color: #64748B;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: all 0.15s ease;
}

.card-fav-btn:hover,
.card-fav-btn.active {
    color: var(--brand-red);
    border-color: var(--brand-red);
    transform: scale(1.08);
}

.card-fav-btn.active svg {
    fill: var(--brand-red);
    stroke: var(--brand-red);
}

.essential-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-breadcrumbs {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    line-height: 1.3;
}

.card-breadcrumbs .bc-link {
    color: var(--text-secondary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s;
}

.card-breadcrumbs .bc-link.bc-sub {
    color: var(--brand-red-text);
    font-weight: 700;
}

.card-breadcrumbs .bc-link:hover {
    color: var(--brand-red);
    text-decoration: underline;
}

.card-breadcrumbs .bc-sep {
    opacity: 0.5;
}

.essential-card .essential-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
    margin-bottom: 6px;
    min-height: 38px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}

.essential-card .essential-title:hover {
    color: var(--brand-red-text);
}

.essential-card .essential-specs {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.essential-price-wrap {
    margin-top: auto;
    margin-bottom: 12px;
}

.essential-price-main {
    font-size: 20px;
    font-weight: 800;
    color: var(--brand-red-text);
    line-height: 1.15;
}

.essential-price-main small {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 3px;
}

.essential-price-sub {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 2px;
}

.btn-add-essential {
    width: 100%;
    height: 38px;
    background: var(--brand-red);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

.btn-add-essential:hover {
    background: var(--brand-red-hover);
}

.btn-add-essential:active {
    transform: scale(0.98);
}

.btn-add-essential:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Schelet de încărcare pentru grila de produse de pe homepage */
.essential-skeleton {
    min-height: 360px;
    background: linear-gradient(100deg, var(--bg-subtle) 30%, var(--bg-elevated) 50%, var(--bg-subtle) 70%);
    background-size: 200% 100%;
    border: 1px solid var(--border-color);
    box-shadow: none;
    animation: essential-shimmer 1.3s linear infinite;
}

.essential-skeleton:hover {
    transform: none;
    border-color: var(--border-color);
    box-shadow: none;
}

@keyframes essential-shimmer {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

.catalog-select {
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.btn-hero-cta {
    padding: 11px 24px;
    background: var(--brand-red);
    color: #ffffff;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-hero-cta:hover {
    background: var(--brand-red-hover);
}

/* ==========================================================================
   14. Global Mega-Menu Popover ("Toate categoriile" în Subnav Bar)
   ========================================================================== */
.mega-cat-wrapper {
    position: relative;
    flex-shrink: 0;
}

.all-categories-btn {
    justify-content: space-between;
}

.mega-btn-chevron {
    margin-left: auto;
    transition: transform 0.2s ease;
}

.all-categories-btn.active .mega-btn-chevron {
    transform: rotate(180deg);
}

.mega-cat-popover {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: min(1100px, calc(100vw - 48px));
    height: min(540px, calc(100vh - 180px));
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-modal);
    display: none;
    grid-template-columns: 300px 1fr;
    overflow: hidden;
    z-index: 950;
}

.mega-cat-popover.open {
    display: grid;
}

.mega-cat-sidebar {
    background: var(--bg-subtle);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

.mega-cat-sidebar-header {
    padding: 12px 16px;
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mega-cat-sidebar-header a {
    color: var(--brand-red-text);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 700;
}

.mega-cat-master-list {
    list-style: none;
    overflow-y: auto;
    flex: 1;
    padding: 6px 0;
}

.mega-master-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: all 0.15s ease;
}

.mega-master-item:hover,
.mega-master-item.active {
    background: var(--bg-surface);
    color: var(--brand-red-text);
    border-left-color: var(--brand-red);
}

.mega-master-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.mega-master-icon {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.mega-master-item:hover .mega-master-icon,
.mega-master-item.active .mega-master-icon {
    color: var(--brand-red-text);
}

.mega-master-name {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.25;
}

.mega-master-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.mega-master-count {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 1px 7px;
    border-radius: 99px;
}

.mega-master-item.active .mega-master-count {
    background: var(--brand-red-soft);
    color: var(--brand-red-text);
    border-color: transparent;
}

.mega-cat-content {
    padding: 22px 26px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mega-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.mega-detail-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.mega-detail-title:hover {
    color: var(--brand-red-text);
}

.mega-detail-badge {
    font-size: 11.5px;
    font-weight: 700;
    background: var(--brand-red-soft);
    color: var(--brand-red-text);
    padding: 3px 10px;
    border-radius: 99px;
}

.mega-detail-sub {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 3px;
}

.mega-detail-all-btn {
    background: var(--brand-red);
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 8px;
    white-space: nowrap;
    transition: background 0.15s;
}
.mega-detail-all-btn:hover {
    background: var(--brand-red-hover);
}

.mega-detail-cta {
    color: var(--brand-red-text);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}
.mega-detail-cta:hover {
    text-decoration: underline;
}

.mega-subcat-list {
    list-style: none;
    columns: 3;
    column-gap: 28px;
    margin: 0;
    padding: 0;
}

.mega-subcat-list li {
    break-inside: avoid;
}

.mega-subcat-link {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-primary);
    transition: background 0.15s ease, color 0.15s ease;
}

.mega-subcat-link:hover {
    background: var(--bg-subtle);
    color: var(--brand-red-text);
}

.mega-subcat-name {
    white-space: normal;
    line-height: 1.3;
    min-width: 0;
}

.mega-subcat-count {
    font-size: 11.5px;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* Nivelul 3 (Departament › Categorie › Subcategorie): categoria ca titlu, subcategoriile sub ea */
.mega-subcat-list li.has-grand { margin-bottom: 8px; }
.mega-subcat-list li.has-grand > .mega-subcat-link { font-weight: 700; }
.mega-grand-list { list-style: none; margin: 0 0 2px; padding: 0 0 0 10px; border-left: 2px solid var(--border-color); }
.mega-grand-link {
    display: block;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 12.5px;
    line-height: 1.3;
    color: var(--text-secondary);
}
.mega-grand-link:hover { background: var(--bg-subtle); color: var(--brand-red-text); }
.cat-flyout-group { display: flex; flex-direction: column; min-width: 0; }
.cat-flyout-group-title { font-weight: 700; }
.cat-flyout-sublink {
    display: block;
    padding: 3px 10px 3px 18px;
    font-size: 12px;
    color: var(--text-muted);
    border-radius: 5px;
}
.cat-flyout-sublink:hover, .cat-flyout-sublink.active { background: var(--bg-subtle); color: var(--brand-red-text); }

@media (max-width: 1100px) {
    .mega-subcat-list { columns: 2; }
}

@media (max-width: 700px) {
    .mega-subcat-list { columns: 1; }
}

.mega-detail-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    color: var(--text-muted);
}

.mega-detail-footer a {
    color: var(--brand-red-text);
    font-weight: 700;
}

/* ==========================================================================
   15. Hero Trust Pills, Dual CTAs & Side Promo Upgrades
   ========================================================================== */
.hero-trust-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.hero-trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--text-primary);
    border: 1px solid rgba(217, 28, 36, 0.18);
}

[data-theme="dark"] .hero-trust-pill {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
}

.hero-trust-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #16A34A;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-secondary-btn {
    background: rgba(255, 255, 255, 0.85);
    color: var(--text-primary);
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    padding: 13px 20px;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

[data-theme="dark"] .hero-secondary-btn {
    background: rgba(255, 255, 255, 0.07);
}

.hero-secondary-btn:hover {
    border-color: var(--brand-red);
    color: var(--brand-red-text);
}

.side-promo-badge {
    display: inline-block;
    align-self: flex-start;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 3px 9px;
    border-radius: 99px;
    background: rgba(217, 28, 36, 0.12);
    color: var(--brand-red-text);
}

.side-promo-bottom {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.side-promo-cta-label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--brand-red-text);
}

/* ==========================================================================
   16. 8-Card Department Showcase Grid (.dept-grid-8)
   ========================================================================== */
.section-heading-bar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.section-heading-bar .section-heading {
    margin-bottom: 4px;
}

.section-sublead {
    font-size: 14px;
    color: var(--text-muted);
}

.dept-grid-8 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.dept-showcase-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.dept-showcase-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover);
}

.dept-card-visual {
    position: relative;
    width: 100%;
    height: 118px;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: block;
}

.dept-card-visual svg {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.25s ease;
}

.dept-showcase-card:hover .dept-card-visual svg {
    transform: scale(1.03);
}

.dept-count-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(20, 24, 31, 0.78);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 99px;
    backdrop-filter: blur(4px);
}

.dept-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.dept-card-title {
    font-size: 15.5px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.25;
    display: block;
}

.dept-card-title:hover {
    color: var(--brand-red-text);
}

.dept-sublinks {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px dashed var(--border-color);
}

.dept-sublinks a {
    font-size: 12.5px;
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 0;
    transition: color 0.15s, transform 0.15s;
}

.dept-sublinks a:hover {
    color: var(--brand-red-text);
    transform: translateX(3px);
}

.dept-sublinks .dept-sublink-more {
    color: var(--brand-red-text);
    font-weight: 700;
    margin-top: 2px;
}

/* ==========================================================================
   17. Quick Category Filter Tabs & Catalog Bottom CTA Bar
   ========================================================================== */
.home-cat-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 18px;
    scrollbar-width: none;
}
.home-cat-tabs::-webkit-scrollbar {
    display: none;
}

.home-cat-tab {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 99px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.15s ease;
}

.home-cat-tab:hover {
    border-color: var(--brand-red);
    color: var(--brand-red-text);
}

.home-cat-tab.active {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(217, 28, 36, 0.22);
}

.home-catalog-more-bar {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

.home-catalog-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 28px;
    border-radius: 99px;
    background: var(--bg-surface);
    border: 2px solid var(--brand-red);
    color: var(--brand-red-text);
    font-size: 14px;
    font-weight: 800;
    transition: all 0.18s ease;
    box-shadow: var(--shadow-card);
}

.home-catalog-more-btn:hover {
    background: var(--brand-red);
    color: #ffffff;
    transform: translateY(-1px);
}

/* ==========================================================================
   18. Top Brands Strip (.brands-section)
   ========================================================================== */
.brands-section {
    padding: 4px 0 24px 0;
}

.brands-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    box-shadow: var(--shadow-card);
}

.brands-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.brands-kicker {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--text-primary);
}

.brands-strip-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 10px;
}

.brand-pill-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-align: center;
    transition: all 0.15s ease;
}

.brand-pill-card strong {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.4px;
    color: var(--text-primary);
}

.brand-pill-card span {
    font-size: 10.5px;
    color: var(--text-muted);
    font-weight: 500;
}

.brand-pill-card:hover {
    border-color: var(--brand-red);
    background: var(--bg-surface);
    transform: translateY(-2px);
}
.brand-pill-card:hover strong {
    color: var(--brand-red-text);
}

@media (max-width: 1320px) {
    .dept-grid-8 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .brands-strip-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .mega-cat-popover {
        grid-template-columns: 1fr;
        height: 75vh;
    }
    .mega-cat-content {
        display: none;
    }
    .dept-grid-8 {
        grid-template-columns: 1fr;
    }
    .brands-strip-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ==========================================================================
   === MOBILE (≤1024px) ===
   Versiune mobilă / tabletă. Desktop (>1024px) rămâne neschimbat:
   toate regulile de mai jos sunt în media query-uri max-width, iar elementele
   noi de markup mobil (.m-*) sunt ascunse implicit și afișate doar în ≤768px.
   Culorile folosesc variabilele existente (mod întunecat prin [data-theme]).
   ========================================================================== */

/* --- Elemente exclusiv mobile: ascunse implicit (desktop) --- */
.m-hamburger,
.m-search-trigger,
.m-overlay,
.m-drawer,
.m-search,
.m-bottomnav,
.m-toolbar,
.m-sheet-overlay,
.m-sheet,
.m-buybar,
.m-gallery,
.m-dot-more {
    display: none;
}

.m-nav-badge[hidden],
.m-filter-count[hidden],
.m-search-clear[hidden] {
    display: none !important;
}

/* --------------------------------------------------------------------------
   TABLETĂ (769–1024px): grile cu 3 coloane, fără overflow
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) and (min-width: 769px) {
    .essentials-grid:not([style]) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .essentials-grid[style] {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

/* --------------------------------------------------------------------------
   ≤1024px: cauze reale de overflow (coloane "1fr" = minmax(auto,1fr) lăsau conținutul să lărgească pagina)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .bento-grid { grid-template-columns: minmax(0, 1fr); }
    .hero-side-promos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .benefits-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .b2b-bottom-banner { grid-template-columns: minmax(0, 1fr) auto; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bento-grid > *,
    .hero-main-banner > *,
    .footer-grid > *,
    .b2b-bottom-banner > * { min-width: 0; }
}

/* --------------------------------------------------------------------------
   MOBIL (≤768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {

    /* ===== Global: overflow, input-uri, atingere ===== */
    html {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    html,
    body {
        overflow-x: hidden;
        max-width: 100%;
    }
    body {
        /* clip nu creează container de scroll => header-ul sticky funcționează */
        overflow-x: clip;
    }
    html.m-lock,
    html.m-lock body {
        overflow: hidden;
    }
    * {
        -webkit-tap-highlight-color: transparent;
    }
    img,
    svg,
    video {
        max-width: 100%;
    }
    h1, h2, h3, h4,
    .essential-title,
    .cart-item-title,
    .dept-card-title {
        overflow-wrap: anywhere;
    }
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
    select,
    textarea {
        font-size: 16px !important;
    }
    .container {
        padding-left: 14px;
        padding-right: 14px;
    }
    button:focus-visible,
    a:focus-visible,
    input:focus-visible,
    select:focus-visible,
    [role="button"]:focus-visible,
    [role="switch"]:focus-visible {
        outline: 2px solid var(--brand-red);
        outline-offset: 2px;
    }
    .matrix-table,
    .tier-matrix-table,
    .acc-table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
    }

    /* ===== 1. Header ===== */
    .top-bar {
        padding: 0;
        height: 30px;
        font-size: 12px;
        line-height: 30px;
        overflow: hidden;
    }
    .top-bar .top-bar-inner {
        height: 30px;
        padding: 0 12px;
        justify-content: center;
        flex-wrap: nowrap;
        gap: 0;
    }
    .top-bar-left {
        min-width: 0;
        max-width: 100%;
        gap: 6px;
        justify-content: center;
    }
    .top-bar-left > span:not(.top-b2b-status) {
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .top-icon {
        width: 15px;
        height: 15px;
    }
    .top-bar-right,
    .top-bar .top-b2b-status {
        display: none !important;
    }

    /* Rândul principal sticky (56px). Rândul de căutare iese din flux și alunecă sub el. */
    .header-main {
        padding: 0;
        margin-bottom: 54px; /* loc rezervat pentru rândul de căutare când pagina e sus */
        position: sticky;
        top: 0;
        z-index: 100;
        box-shadow: 0 1px 0 var(--border-color);
    }
    .header-main .header-row {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr) auto;
        align-items: center;
        column-gap: 4px;
        row-gap: 0;
        height: 56px;
        padding: 0 8px;
        background: var(--bg-surface);
        position: relative;
        z-index: 2;
    }
    .m-hamburger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border: 0;
        border-radius: 10px;
        background: none;
        color: var(--text-primary);
        cursor: pointer;
    }
    .header-logo {
        justify-self: center;
        min-width: 0;
    }
    .header-logo img {
        height: 32px;
        max-width: 100%;
    }
    .header-actions {
        gap: 0;
    }
    .header-action-fav {
        display: none;
    }
    .header-action-btn {
        width: 44px;
        height: 44px;
        padding: 0;
        justify-content: center;
    }
    .header-action-label {
        display: none;
    }
    .header-action-btn .action-badge {
        top: -7px;
        right: -9px;
        min-width: 17px;
        height: 17px;
        font-size: 10px;
    }
    .action-badge.m-zero {
        display: none;
    }

    .header-main .header-search {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        width: auto;
        max-width: none;
        flex: none;
        padding: 0 12px 10px;
        background: var(--bg-surface);
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 6px 10px -6px rgba(15, 23, 42, 0.18);
        transition: transform 0.25s ease, opacity 0.2s ease, visibility 0s linear 0s;
    }
    .header-main.is-search-hidden .header-search {
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.25s ease, opacity 0.2s ease, visibility 0s linear 0.25s;
    }
    .header-search .search-form {
        height: 44px;
        border-radius: 22px;
    }
    .header-search .search-input {
        padding: 0 16px;
    }
    .header-search .search-btn {
        width: 52px;
    }
    .m-search-trigger {
        display: block;
        position: absolute;
        left: 12px;
        right: 12px;
        top: 0;
        height: 44px;
        border: 0;
        border-radius: 22px;
        background: transparent;
        cursor: text;
        z-index: 3;
    }

    /* Funcția subnav / mega-meniu se mută în sertar și în bara de jos */
    .subnav-bar {
        display: none;
    }

    /* ===== 2. Bara de navigare jos ===== */
    .m-bottomnav {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 960;
        height: calc(64px + env(safe-area-inset-bottom, 0px));
        padding-bottom: env(safe-area-inset-bottom, 0px);
        background: var(--bg-surface);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 -4px 14px rgba(15, 23, 42, 0.06);
    }
    .m-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        min-height: 64px;
        padding: 0;
        border: 0;
        background: none;
        color: var(--text-muted);
        font-size: 11.5px;
        font-weight: 600;
        line-height: 1.1;
        text-decoration: none;
        cursor: pointer;
        transition: color 0.15s ease;
    }
    .m-nav-item.is-active {
        color: var(--brand-red-text);
    }
    .m-nav-icon {
        position: relative;
        display: inline-flex;
    }
    .m-nav-badge {
        position: absolute;
        top: -6px;
        right: -10px;
        min-width: 17px;
        height: 17px;
        padding: 0 4px;
        border-radius: 99px;
        background: var(--brand-red);
        color: #FFFFFF;
        font-size: 10px;
        font-weight: 800;
        line-height: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    /* Pe pagina de produs bara sticky de cumpărare înlocuiește navigarea jos */
    body.has-buybar .m-bottomnav {
        display: none;
    }
    .footer-wide {
        padding-bottom: calc(24px + 64px + env(safe-area-inset-bottom, 0px));
    }
    body.has-buybar .footer-wide {
        padding-bottom: calc(24px + 92px + env(safe-area-inset-bottom, 0px));
    }
    .toast-container {
        left: 12px;
        right: 12px;
        bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    }
    body.has-buybar .toast-container {
        bottom: calc(92px + env(safe-area-inset-bottom, 0px));
    }

    /* ===== 3. Sertar meniu (off-canvas) ===== */
    .m-icon-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 44px;
        height: 44px;
        border: 0;
        border-radius: 10px;
        background: none;
        color: var(--text-primary);
        cursor: pointer;
    }
    .m-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1300;
        background: rgba(9, 12, 18, 0.55);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease, visibility 0s linear 0.25s;
    }
    .m-overlay.is-open {
        opacity: 1;
        visibility: visible;
        transition-delay: 0s;
    }
    .m-drawer {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(88vw, 380px);
        z-index: 1310;
        background: var(--bg-surface);
        color: var(--text-primary);
        transform: translateX(-102%);
        visibility: hidden;
        transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.28s;
    }
    .m-drawer.is-open {
        transform: none;
        visibility: visible;
        transition-delay: 0s;
        box-shadow: 8px 0 30px rgba(0, 0, 0, 0.3);
    }
    .m-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-shrink: 0;
        padding: 8px 8px 8px 16px;
        border-bottom: 1px solid var(--border-color);
    }
    .m-drawer-logo img {
        height: 32px;
        width: auto;
        display: block;
    }
    .m-drawer-body {
        flex: 1;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    }
    .m-drawer-account {
        padding: 16px;
        background: var(--bg-subtle);
        border-bottom: 1px solid var(--border-color);
    }
    .m-acct-hello strong {
        display: block;
        font-size: 17px;
        font-weight: 800;
        overflow-wrap: anywhere;
    }
    .m-acct-mail {
        display: block;
        margin-top: 2px;
        font-size: 12.5px;
        color: var(--text-muted);
        overflow-wrap: anywhere;
    }
    .m-acct-actions {
        display: flex;
        gap: 8px;
        margin-top: 12px;
    }
    .m-btn-primary,
    .m-btn-ghost {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 44px;
        padding: 0 16px;
        border-radius: 10px;
        font-size: 14.5px;
        font-weight: 700;
        text-decoration: none;
        cursor: pointer;
    }
    .m-btn-primary {
        background: var(--brand-red);
        border: 1px solid var(--brand-red);
        color: #FFFFFF;
    }
    .m-btn-ghost {
        background: var(--bg-surface);
        border: 1px solid var(--border-color);
        color: var(--text-primary);
    }
    .m-btn-sm {
        flex: 1 1 0;
        min-width: 0;
    }
    .m-drawer-section {
        padding: 14px 16px 6px;
    }
    .m-drawer-section + .m-drawer-section {
        border-top: 1px solid var(--border-color);
    }
    .m-drawer-title {
        margin: 0 0 6px;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.6px;
        text-transform: uppercase;
        color: var(--text-muted);
    }

    /* Acordeon categorii */
    .m-acc-item {
        border-bottom: 1px solid var(--border-color);
    }
    .m-acc-item:last-child {
        border-bottom: 0;
    }
    .m-acc-head {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        min-height: 48px;
        padding: 6px 2px;
        border: 0;
        background: none;
        text-align: left;
        text-decoration: none;
        color: var(--text-primary);
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
    }
    .m-acc-name {
        flex: 1;
        min-width: 0;
        overflow-wrap: anywhere;
    }
    .m-acc-count {
        flex-shrink: 0;
        font-size: 11.5px;
        font-weight: 600;
        color: var(--text-muted);
    }
    .m-acc-chev {
        display: inline-flex;
        flex-shrink: 0;
        color: var(--text-muted);
        transition: transform 0.25s ease;
    }
    .m-acc-item.is-open > .m-acc-head {
        color: var(--brand-red-text);
    }
    .m-acc-item.is-open .m-acc-chev {
        transform: rotate(180deg);
    }
    .m-acc-panel {
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows 0.25s ease;
    }
    .m-acc-item.is-open .m-acc-panel {
        grid-template-rows: 1fr;
    }
    .m-acc-panel-inner {
        min-height: 0;
        overflow: hidden;
        visibility: hidden;
        transition: visibility 0s linear 0.25s;
    }
    .m-acc-item.is-open .m-acc-panel-inner {
        visibility: visible;
        transition-delay: 0s;
    }
    .m-acc-list {
        list-style: none;
        padding: 0 0 8px 10px;
    }
    .m-acc-list a {
        display: flex;
        align-items: center;
        gap: 8px;
        min-height: 44px;
        padding: 6px 8px;
        border-radius: 8px;
        font-size: 14px;
        color: var(--text-secondary);
        text-decoration: none;
    }
    .m-acc-list a.m-acc-all {
        font-weight: 700;
        color: var(--brand-red-text);
    }
    .m-acc-list a.m-acc-sub-parent { font-weight: 700; }
    .m-acc-grand {
        list-style: none;
        margin: 0 0 4px 6px;
        padding: 0 0 0 12px;
        border-left: 2px solid var(--border-color);
    }
    .m-acc-list .m-acc-grand a { min-height: 40px; font-size: 14px; }

    .m-quick-links {
        list-style: none;
    }
    .m-quick-links a,
    .m-quick-links button {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 48px;
        padding: 6px 2px;
        border: 0;
        border-bottom: 1px solid var(--border-color);
        background: none;
        text-align: left;
        color: var(--text-primary);
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        text-decoration: none;
    }
    .m-quick-links li:last-child a,
    .m-quick-links li:last-child button {
        border-bottom: 0;
    }

    .m-setting-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-height: 52px;
    }
    .m-setting-label {
        font-size: 14.5px;
        font-weight: 600;
    }
    .m-seg {
        display: inline-flex;
        padding: 3px;
        border-radius: 99px;
        background: var(--bg-subtle);
        border: 1px solid var(--border-color);
    }
    .m-seg .price-toggle-btn {
        min-height: 38px;
        padding: 0 12px;
        border-radius: 99px;
        background: transparent;
        color: var(--text-secondary);
        font-size: 12.5px;
        font-weight: 600;
        white-space: nowrap;
    }
    .m-seg .price-toggle-btn.active {
        background: var(--brand-red);
        color: #FFFFFF;
        font-weight: 700;
    }
    .m-switch {
        position: relative;
        flex-shrink: 0;
        width: 52px;
        height: 30px;
        border: 0;
        border-radius: 99px;
        background: var(--border-hover);
        cursor: pointer;
        transition: background 0.2s ease;
    }
    .m-switch::before {
        content: "";
        position: absolute;
        inset: -8px -2px; /* zonă de atingere de 44px */
    }
    .m-switch-knob {
        position: absolute;
        top: 3px;
        left: 3px;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: #FFFFFF;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
        transition: transform 0.2s ease;
    }
    .m-switch[aria-checked="true"] {
        background: var(--brand-red);
    }
    .m-switch[aria-checked="true"] .m-switch-knob {
        transform: translateX(22px);
    }
    .m-drawer-contact {
        padding-bottom: 10px;
    }
    .m-contact-link {
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 44px;
        color: var(--text-primary);
        font-size: 14.5px;
        font-weight: 600;
        text-decoration: none;
        overflow-wrap: anywhere;
    }
    .m-contact-link svg {
        color: var(--brand-red-text);
        flex-shrink: 0;
    }

    /* ===== 5. Overlay căutare ===== */
    .m-search {
        --bg-card: var(--bg-surface);
        --border-subtle: var(--border-color);
        --bg-surface-alt: var(--bg-subtle);
        display: flex;
        flex-direction: column;
        position: fixed;
        inset: 0;
        z-index: 1290;
        background: var(--bg-page);
        opacity: 0;
        transform: translateY(8px);
        visibility: hidden;
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
    }
    .m-search.is-open {
        opacity: 1;
        transform: none;
        visibility: visible;
        transition-delay: 0s;
    }
    .m-search-bar {
        display: flex;
        align-items: center;
        gap: 2px;
        flex-shrink: 0;
        padding: calc(8px + env(safe-area-inset-top, 0px)) 8px 8px;
        background: var(--bg-surface);
        border-bottom: 1px solid var(--border-color);
    }
    .m-search-input {
        flex: 1;
        min-width: 0;
        height: 44px;
        padding: 0 16px;
        border: 1px solid var(--border-color);
        border-radius: 22px;
        background: var(--bg-input);
        color: var(--text-primary);
        outline: none;
        -webkit-appearance: none;
        appearance: none;
    }
    .m-search-input:focus,
    .m-search-input:focus-visible {
        border-color: var(--brand-red);
        outline: none;
    }
    .m-search-input::-webkit-search-cancel-button {
        display: none;
    }
    .m-search-go {
        color: var(--brand-red-text);
    }
    .m-search-body {
        flex: 1;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 14px 14px calc(20px + env(safe-area-inset-bottom, 0px));
    }
    .m-search.has-query .m-search-suggest {
        display: none;
    }
    .m-chips {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    .m-chip {
        display: inline-flex;
        align-items: center;
        min-height: 40px;
        padding: 0 14px;
        border: 1px solid var(--border-color);
        border-radius: 99px;
        background: var(--bg-surface);
        color: var(--text-primary);
        font-size: 13.5px;
        font-weight: 600;
        text-decoration: none;
    }
    /* Dropdown-ul existent (#headerSearchDropdown) este mutat aici de JS cât timp overlay-ul e deschis */
    .m-search-results .header-search-dropdown {
        position: static;
        width: 100%;
        background: var(--bg-surface);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        box-shadow: none;
    }
    .m-search-results .live-search-list {
        max-height: none;
        overflow: visible;
    }
    .m-search-results .live-search-item {
        min-height: 60px;
        padding: 10px 12px;
    }
    .m-search-results .live-search-title {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        white-space: normal;
        overflow: hidden;
    }
    .m-search-results .live-search-footer {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
    }

    /* ===== 4. Pagina principală ===== */
    .bento-hero-section {
        padding: 12px 0 8px;
    }
    .bento-grid {
        gap: 12px;
    }
    .hero-main-banner {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        min-height: 0;
        padding: 18px 16px 14px;
    }
    .hero-banner-text {
        min-width: 0;
        padding-right: 0;
    }
    .hero-kicker {
        font-size: 11.5px;
        margin-bottom: 8px;
    }
    .hero-headline {
        font-size: 26px;
        line-height: 1.15;
        margin-bottom: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .hero-lead {
        font-size: 14.5px;
        margin-bottom: 14px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .hero-trust-pills {
        gap: 6px;
        margin-bottom: 14px;
    }
    .hero-cta-group {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .hero-cta-btn,
    .hero-secondary-btn {
        width: 100%;
        min-height: 48px;
        padding: 12px 18px;
        justify-content: center;
        font-size: 15px;
        text-align: center;
    }
    .hero-banner-visual {
        max-height: 190px;
        overflow: hidden;
        justify-content: center;
    }
    .hero-studio-svg {
        width: auto;
        max-width: 100%;
        max-height: 190px;
    }
    /* Carduri promo: rând orizontal cu scroll-snap */
    .hero-side-promos {
        display: flex;
        grid-template-rows: none;
        gap: 10px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .hero-side-promos::-webkit-scrollbar {
        display: none;
    }
    .side-promo-card {
        flex: 0 0 82%;
        min-width: 0;
        padding: 14px 12px 12px 16px;
        scroll-snap-align: start;
    }
    .side-promo-card:hover {
        transform: none;
    }
    .side-promo-content {
        gap: 10px;
        min-width: 0;
    }
    .side-promo-content h3 {
        font-size: 17px;
    }
    .side-promo-art {
        width: 100px;
        height: 90px;
    }
    /* Rând de încredere 2x2 */
    .benefits-section {
        padding: 4px 0 14px;
    }
    .benefits-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 12px;
    }
    .benefit-item {
        align-items: flex-start;
        gap: 8px;
        padding: 4px;
        min-width: 0;
    }
    .benefit-icon svg {
        width: 26px;
        height: 26px;
    }
    .benefit-text {
        min-width: 0;
        font-size: 12px;
        overflow-wrap: anywhere;
    }
    .benefit-text span {
        font-size: 11.5px;
    }
    .section-heading {
        font-size: 20px;
    }
    /* Departamente: tile-uri compacte 2 coloane */
    .popular-categories-section {
        padding: 6px 0 16px;
    }
    .dept-grid-8 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .dept-showcase-card {
        padding: 8px;
        gap: 8px;
        min-width: 0;
        border-radius: 12px;
    }
    .dept-showcase-card:hover {
        transform: none;
    }
    .dept-card-visual {
        height: auto;
        aspect-ratio: 4 / 3;
        background: #F3F4F6;
    }
    .dept-card-visual svg {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }
    .dept-count-badge {
        top: 6px;
        right: 6px;
        font-size: 10px;
        padding: 2px 7px;
    }
    .dept-card-title {
        margin-bottom: 0;
        font-size: 13.5px;
        line-height: 1.25;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .dept-sublinks {
        display: none;
    }
    .essentials-section {
        padding: 4px 0 18px;
    }
    .section-header-row {
        gap: 10px;
    }
    .section-actions-group {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }
    .catalog-controls {
        gap: 10px;
        min-width: 0;
    }
    .stock-check-label {
        min-height: 44px;
        font-size: 13px;
    }
    .catalog-sort-select,
    .catalog-select {
        min-height: 44px;
    }
    .home-cat-tab {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }
    .home-catalog-more-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 13px 16px;
        font-size: 13.5px;
        min-height: 48px;
    }
    .brands-section {
        padding: 2px 0 16px;
    }
    .brands-box {
        padding: 14px;
    }
    .brand-pill-card {
        min-height: 44px;
    }
    .b2b-banner-section {
        padding: 2px 0 20px;
    }
    .b2b-bottom-banner {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        padding: 16px;
    }
    .b2b-banner-left {
        align-items: flex-start;
        gap: 12px;
        min-width: 0;
    }
    .b2b-banner-copy h3 {
        font-size: 17px;
    }
    .b2b-banner-copy p {
        font-size: 13px;
    }
    .b2b-outline-btn {
        width: 100%;
        min-height: 48px;
        justify-content: center;
    }

    /* ===== 6. Carduri produs + grile (home, categorie, căutare, similare) ===== */
    .essentials-grid:not([style]),
    #productsGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .essential-card {
        min-width: 0;
        padding: 10px;
        border-radius: 12px;
    }
    .essential-card:hover {
        transform: none;
    }
    .essential-card:hover .essential-thumb img {
        transform: none;
    }
    .essential-card .essential-thumb {
        height: auto;
        aspect-ratio: 1 / 1;
        padding: 8px;
        margin-bottom: 8px;
    }
    .essential-card .essential-thumb img,
    .essential-card .essential-thumb svg {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    .card-badge-stock {
        top: 6px;
        bottom: auto;
        left: 6px;
        max-width: calc(100% - 52px);
        padding: 2px 7px;
        font-size: 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .card-badge-b2b {
        top: auto;
        bottom: 6px;
        left: 6px;
        padding: 2px 6px;
        font-size: 10px;
    }
    .card-fav-btn {
        top: 6px;
        right: 6px;
        width: 36px;
        height: 36px;
    }
    .card-fav-btn:hover,
    .card-fav-btn.active {
        transform: none;
    }
    .essential-card .card-breadcrumbs,
    .essential-card .essential-specs,
    .essential-card .essential-price-sub {
        display: none;
    }
    .essential-card .essential-title {
        min-height: 36px;
        margin-bottom: 6px;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.3;
    }
    .essential-card .card-variants {
        flex-wrap: nowrap !important;
        gap: 4px !important;
        margin: 0 0 6px !important;
        overflow: hidden;
    }
    .essential-card .card-variant-dot {
        flex-shrink: 0;
    }
    .essential-card .card-variant-dot.m-dot-extra {
        display: none !important;
    }
    .m-dot-more {
        display: inline;
        flex-shrink: 0;
        font-size: 11px;
        font-weight: 700;
        color: var(--text-muted);
    }
    .essential-card .card-variants-label {
        font-size: 11px !important;
        white-space: nowrap;
    }
    .m-lbl-rest {
        display: none;
    }
    .essential-price-wrap {
        margin-bottom: 8px;
    }
    .essential-price-main {
        font-size: 17px;
    }
    .essential-price-main small {
        font-size: 11px;
    }
    .btn-add-essential {
        height: 40px;
        gap: 5px;
        padding: 0 6px;
        font-size: 13px;
    }
    .btn-add-essential svg {
        width: 15px;
        height: 15px;
        flex-shrink: 0;
    }
    .essential-skeleton {
        min-height: 230px;
    }

    /* ===== 7. Pagina categorie / căutare ===== */
    body .category-page-wrapper {
        padding: 10px 0 24px;
    }
    body .cat-breadcrumbs-bar {
        flex-wrap: nowrap;
        gap: 6px;
        margin-bottom: 10px;
        padding: 8px 12px;
        overflow-x: auto;
        white-space: nowrap;
        font-size: 12.5px;
        scrollbar-width: none;
    }
    body .cat-breadcrumbs-bar::-webkit-scrollbar {
        display: none;
    }
    body .cat-breadcrumbs-bar > * {
        flex: 0 0 auto;
    }
    body .category-layout-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }
    /* main devine coloană flex ca să putem ordona: titlu -> toolbar sticky -> chip-uri -> grilă */
    body .category-layout-grid > main {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }
    body .cat-header-box {
        display: contents;
    }
    body .cat-header-top {
        display: block;
        order: 1;
        margin-bottom: 8px;
    }
    body .cat-title-group {
        gap: 8px;
        align-items: center;
    }
    body .cat-title-group h1 {
        font-size: 20px;
        overflow-wrap: anywhere;
    }
    body .cat-total-badge {
        padding: 3px 10px;
        font-size: 11.5px;
    }
    body .cat-controls-group {
        display: none;
    }
    body .m-toolbar {
        display: flex;
        align-items: center;
        gap: 10px;
        order: 2;
        position: sticky;
        top: 56px;
        z-index: 90;
        margin: 0 -14px 6px;
        padding: 8px 14px;
        background: var(--bg-page);
        border-bottom: 1px solid var(--border-color);
    }
    body .subcats-pills-wrap {
        order: 3;
        flex-wrap: nowrap;
        gap: 8px;
        margin-top: 0;
        padding: 6px 0 10px;
        border-top: 0;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    body .subcats-pills-wrap::-webkit-scrollbar {
        display: none;
    }
    body .subcat-pill {
        flex: 0 0 auto;
        min-height: 40px;
        padding: 0 14px;
        scroll-snap-align: start;
        white-space: nowrap;
        font-size: 13px;
    }
    body .category-layout-grid > main > :not(.cat-header-box):not(.m-toolbar) {
        order: 5;
    }
    body #loadMoreWrap {
        margin-top: 20px !important;
    }
    body #loadMoreBtn {
        width: 100%;
        min-height: 48px;
    }
    .m-filter-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
        height: 44px;
        padding: 0 16px;
        border: 1px solid var(--border-color);
        border-radius: 12px;
        background: var(--bg-surface);
        color: var(--text-primary);
        font-size: 14.5px;
        font-weight: 700;
        cursor: pointer;
    }
    .m-filter-count {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 20px;
        height: 20px;
        padding: 0 5px;
        border-radius: 10px;
        background: var(--brand-red);
        color: #FFFFFF;
        font-size: 11.5px;
        font-weight: 800;
    }
    .m-sort-select {
        flex: 1;
        min-width: 0;
        height: 44px;
        padding: 0 12px;
        border: 1px solid var(--border-color);
        border-radius: 12px;
        background: var(--bg-surface);
        color: var(--text-primary);
        font-weight: 600;
    }
    /* Bottom-sheet filtre */
    .m-sheet-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1180;
        background: rgba(9, 12, 18, 0.55);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease, visibility 0s linear 0.25s;
    }
    .m-sheet-overlay.is-open {
        opacity: 1;
        visibility: visible;
        transition-delay: 0s;
    }
    .m-sheet {
        display: flex;
        flex-direction: column;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1190;
        max-height: 86vh;
        max-height: 86dvh;
        background: var(--bg-elevated);
        color: var(--text-primary);
        border-radius: 18px 18px 0 0;
        box-shadow: var(--shadow-modal);
        transform: translateY(105%);
        visibility: hidden;
        transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.28s;
    }
    .m-sheet.is-open {
        transform: none;
        visibility: visible;
        transition-delay: 0s;
    }
    .m-sheet-handle {
        flex-shrink: 0;
        width: 40px;
        height: 4px;
        margin: 8px auto 0;
        border-radius: 2px;
        background: var(--border-hover);
    }
    .m-sheet-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-shrink: 0;
        padding: 2px 8px 2px 18px;
    }
    .m-sheet-head h2 {
        font-size: 18px;
        font-weight: 800;
    }
    .m-sheet-body {
        flex: 1;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 4px 18px 12px;
    }
    .m-check-row,
    .m-radio-row {
        display: flex;
        align-items: center;
        gap: 12px;
        min-height: 48px;
        border-bottom: 1px solid var(--border-color);
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
    }
    .m-check-row input,
    .m-radio-row input {
        width: 22px;
        height: 22px;
        flex-shrink: 0;
        accent-color: var(--brand-red);
    }
    .m-radio-group {
        margin-top: 12px;
        border: 0;
    }
    .m-radio-group legend {
        margin-bottom: 2px;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.6px;
        text-transform: uppercase;
        color: var(--text-muted);
    }
    .m-sheet-foot {
        display: flex;
        gap: 10px;
        flex-shrink: 0;
        padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid var(--border-color);
        background: var(--bg-elevated);
    }
    .m-sheet-foot .m-btn-ghost {
        flex: 0 0 34%;
    }
    .m-sheet-foot .m-btn-primary {
        flex: 1;
        min-width: 0;
    }

    /* ===== 8. Pagina produs ===== */
    body .product-page-wrapper {
        padding: 10px 0 20px;
    }
    body .prod-breadcrumbs-bar {
        flex-wrap: nowrap;
        gap: 6px;
        margin-bottom: 10px;
        padding: 8px 12px;
        overflow-x: auto;
        white-space: nowrap;
        font-size: 12.5px;
        scrollbar-width: none;
    }
    body .prod-breadcrumbs-bar::-webkit-scrollbar {
        display: none;
    }
    body .prod-breadcrumbs-bar > * {
        flex: 0 0 auto;
    }
    body .prod-breadcrumbs-bar .bc-current {
        max-width: 60vw;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    /* Ordine mobilă prin CSS (DOM-ul desktop rămâne neschimbat): galerie -> preț/cumpărare -> detalii */
    body .product-layout {
        display: flex;
        flex-direction: column;
        align-items: stretch; /* inline-ul desktop avea align-items:start: fără stretch cardurile ar lua lățimea conținutului */
        gap: 12px;
        min-width: 0;
    }
    body .prod-left-col {
        display: contents;
    }
    body .prod-main-img-card {
        order: 1;
        max-height: none;
        margin: 0;
        padding: 12px;
    }
    body .m-gallery {
        order: 1;
    }
    body .prod-gallery-carousel-wrap {
        order: 2;
        margin-top: 0;
    }
    body .product-layout.has-m-gallery .prod-main-img-card,
    body .product-layout.has-m-gallery .prod-gallery-carousel-wrap {
        display: none;
    }
    body .prod-right-card {
        order: 3;
        padding: 14px;
        border-radius: 14px;
        min-width: 0;
    }
    body .prod-details-card {
        order: 4;
        margin-top: 0;
        padding: 14px;
        min-width: 0;
    }
    .m-gallery {
        display: block;
        position: relative;
        overflow: hidden;
        border: 1px solid var(--border-color);
        border-radius: 14px;
        background: #FFFFFF;
    }
    .m-gallery-track {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .m-gallery-track::-webkit-scrollbar {
        display: none;
    }
    .m-gallery-slide {
        flex: 0 0 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        aspect-ratio: 1 / 1;
        padding: 14px 14px 26px;
        scroll-snap-align: center;
    }
    .m-gallery-slide img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        cursor: zoom-in;
    }
    .m-gallery-dots {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        justify-content: center;
        gap: 8px;
        padding-bottom: 10px;
        pointer-events: none;
    }
    .m-gallery-dots.is-counter {
        left: auto;
        right: 12px;
        bottom: 12px;
        padding: 4px 10px;
        border-radius: 999px;
        background: rgba(17, 17, 17, 0.62);
        color: #fff;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.4;
    }
    .m-gallery-dot {
        position: relative;
        width: 8px;
        height: 8px;
        padding: 0;
        border: 0;
        border-radius: 4px;
        background: rgba(100, 116, 139, 0.4);
        pointer-events: auto;
        transition: width 0.2s ease, background 0.2s ease;
    }
    .m-gallery-dot::before {
        content: "";
        position: absolute;
        inset: -9px -3px;
    }
    .m-gallery-dot.is-active {
        width: 18px;
        background: var(--brand-red);
    }
    body .prod-meta-top {
        gap: 6px;
        margin-bottom: 8px;
    }
    body .product-page-title {
        margin-bottom: 12px;
        font-size: 21px;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }
    body .price-breakdown-bar {
        gap: 10px;
        margin-bottom: 14px;
        padding: 12px;
    }
    body .price-primary-val {
        font-size: 26px;
    }
    body .price-total-live-box {
        padding: 8px 12px;
    }
    body .tier-matrix-wrap {
        margin-bottom: 14px;
    }
    body .tier-matrix-title {
        flex-wrap: wrap;
        gap: 4px;
    }
    body .tier-matrix-table {
        font-size: 12px;
    }
    body .tier-matrix-table th,
    body .tier-matrix-table td {
        padding: 7px 8px;
    }
    body .color-variants-box {
        margin-bottom: 14px;
        padding: 12px;
    }
    body .color-swatch-pill {
        min-height: 40px;
    }
    body .sibling-item {
        max-width: 100%;
        min-height: 44px;
    }
    body .prod-actions-row {
        gap: 10px;
        margin-bottom: 14px;
    }
    body .qty-stepper {
        order: 1;
        flex: 1 1 0;
        min-width: 0;
    }
    body .qty-stepper button {
        width: 48px;
        height: 48px;
    }
    body .qty-stepper input {
        flex: 1;
        min-width: 0;
        width: auto;
        height: 48px;
    }
    body .btn-prod-fav {
        order: 2;
        flex: 0 0 52px;
        width: 52px;
        height: 52px;
    }
    body .btn-prod-add-cart {
        order: 3;
        flex: 1 1 100%;
        min-width: 0;
        height: 52px;
    }
    body .prod-benefits-box {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        padding-top: 14px;
    }
    body .specs-table {
        table-layout: fixed;
        font-size: 12.5px;
    }
    body .specs-table th {
        width: 40%;
        padding: 8px;
        overflow-wrap: anywhere;
    }
    body .specs-table td {
        padding: 8px;
        overflow-wrap: anywhere;
    }
    body .prod-desc-list {
        margin-left: 18px;
        font-size: 13.5px;
        overflow-wrap: anywhere;
    }
    /* „Detalii & Specificații” colapsabil (doar când JS e activ) */
    .m-js .prod-details-card.m-collapsible h3 {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 44px;
        margin: 0;
        padding: 0;
        border-bottom: 0;
        cursor: pointer;
    }
    .m-js .prod-details-card.m-collapsible h3::after {
        content: "";
        flex-shrink: 0;
        width: 9px;
        height: 9px;
        margin: -4px 4px 0 10px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        transition: transform 0.2s ease;
    }
    .m-js .prod-details-card.m-collapsible.is-open h3 {
        margin-bottom: 12px;
        border-bottom: 1px solid var(--border-color);
    }
    .m-js .prod-details-card.m-collapsible.is-open h3::after {
        margin-top: 4px;
        transform: rotate(-135deg);
    }
    .m-js .prod-details-card.m-collapsible:not(.is-open) > :not(h3) {
        display: none;
    }
    /* Produse similare: rând orizontal cu scroll-snap (~44vw pe card) */
    body .product-page-wrapper section[style] {
        margin-top: 28px !important;
        padding-top: 20px !important;
    }
    body .product-page-wrapper section[style] h2 {
        font-size: 19px !important;
    }
    .essentials-grid[style] {
        display: flex !important;
        gap: 10px !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
    }
    .essentials-grid[style]::-webkit-scrollbar {
        display: none;
    }
    .essentials-grid[style] > .essential-card {
        flex: 0 0 44vw;
        scroll-snap-align: start;
    }
    /* Bară sticky de cumpărare */
    .m-buybar {
        display: flex;
        align-items: center;
        gap: 10px;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 970;
        padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
        background: var(--bg-surface);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 -6px 18px rgba(15, 23, 42, 0.1);
        transform: translateY(110%);
        visibility: hidden;
        transition: transform 0.25s ease, visibility 0s linear 0.25s;
    }
    .m-buybar.is-visible {
        transform: none;
        visibility: visible;
        transition-delay: 0s;
    }
    .m-buybar-info {
        flex: 0 0 38%;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    .m-buybar-price {
        font-size: 17px;
        font-weight: 800;
        line-height: 1.1;
        color: var(--brand-red-text);
        white-space: nowrap;
    }
    .m-buybar-price small {
        font-size: 11px;
        font-weight: 600;
        color: var(--text-muted);
    }
    .m-buybar-qty {
        display: inline-flex;
        align-items: center;
        align-self: flex-start;
        border: 1px solid var(--border-color);
        border-radius: 10px;
        background: var(--bg-input);
        overflow: hidden;
    }
    .m-buybar-qty button {
        width: 40px;
        height: 36px;
        border: 0;
        background: transparent;
        color: var(--text-primary);
        font-size: 19px;
        font-weight: 700;
        cursor: pointer;
    }
    .m-buybar-qty button:disabled {
        opacity: 0.4;
    }
    .m-buybar-qty span {
        min-width: 28px;
        text-align: center;
        font-size: 15px;
        font-weight: 800;
    }
    .m-buybar-cta {
        flex: 1;
        min-width: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        height: 52px;
        border: 0;
        border-radius: 12px;
        background: var(--brand-red);
        color: #FFFFFF;
        font-size: 15px;
        font-weight: 800;
        cursor: pointer;
    }
    .m-buybar-cta:disabled {
        background: var(--border-hover);
        color: var(--text-muted);
        cursor: not-allowed;
    }

    /* ===== Footer: coloane tip acordeon ===== */
    .footer-wide {
        padding-top: 24px;
    }
    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        margin-bottom: 18px;
    }
    .footer-col {
        min-width: 0;
        padding: 14px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        overflow-wrap: anywhere;
    }
    .footer-col h4 {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 44px;
        margin: 0;
    }
    .footer-col ul li {
        margin-bottom: 0;
    }
    .footer-col ul li a {
        display: inline-block;
        padding: 8px 0;
    }
    .m-js .footer-col:not(.footer-col-brand) h4 {
        cursor: pointer;
    }
    .m-js .footer-col:not(.footer-col-brand) h4::after {
        content: "";
        flex-shrink: 0;
        width: 8px;
        height: 8px;
        margin-right: 4px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        transition: transform 0.2s ease;
    }
    .m-js .footer-col.is-open h4 {
        margin-bottom: 6px;
    }
    .m-js .footer-col.is-open h4::after {
        transform: rotate(-135deg);
    }
    .m-js .footer-col:not(.footer-col-brand):not(.is-open) > :not(h4) {
        display: none;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    /* ===== 9. Coș, favorite, modale ===== */
    .cart-drawer {
        right: -100%;
        width: 100%;
        max-width: 100%;
        height: 100vh;
        height: 100dvh;
        border-left: 0;
        box-shadow: none;
        visibility: hidden;
        transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.3s;
    }
    .cart-drawer.open {
        visibility: visible;
        transition-delay: 0s;
    }
    .cart-drawer-header {
        min-height: 56px;
        padding: 6px 8px 6px 16px;
    }
    .cart-drawer-header h3 {
        font-size: 17px;
    }
    .cart-drawer-header .modal-close {
        position: static;
        width: 44px;
        height: 44px;
        font-size: 22px;
    }
    .cart-drawer-body {
        padding: 14px 16px;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }
    .cart-item-details {
        min-width: 0;
    }
    .cart-item-title {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 14px;
    }
    .cart-qty-btn {
        width: 40px;
        height: 40px;
        border-radius: 8px;
        font-size: 18px;
    }
    .cart-qty-ctrl button[onclick*="removeFromCart"],
    .cart-qty-ctrl button[onclick*="toggleFavorite"] {
        min-height: 40px;
        padding: 0 8px;
    }
    .cart-qty-ctrl .essential-cart-btn {
        min-height: 40px;
    }
    /* Totaluri + „Finalizează comanda” rămân lipite jos în panou */
    .cart-drawer-footer {
        flex-shrink: 0;
        max-height: 52vh;
        max-height: 52dvh;
        overflow-y: auto;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -6px 14px rgba(15, 23, 42, 0.07);
    }
    #cartCouponInput {
        min-height: 44px;
    }
    .cart-summary-line .cart-qty-btn {
        height: 44px;
    }
    .cart-drawer-footer .btn-primary-full {
        min-height: 50px;
    }

    .modal-overlay {
        padding: 0;
    }
    .modal-box > .modal-close {
        position: sticky;
        top: 0;
        right: auto;
        z-index: 5;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        margin: 0 -8px 0 auto;
        border-radius: 50%;
        background: var(--bg-elevated);
        font-size: 22px;
    }
    /* Autentificare + Finalizare comandă: ecran complet */
    #authModal,
    #checkoutModal {
        align-items: stretch;
        backdrop-filter: none;
    }
    #authModal .modal-box,
    #checkoutModal .modal-box {
        max-width: none !important;
        width: 100%;
        height: 100%;
        max-height: 100%;
        padding: 8px 16px calc(24px + env(safe-area-inset-bottom, 0px));
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
    #authModal .auth-tabs-bar {
        flex-wrap: nowrap;
        gap: 4px;
        overflow-x: auto;
        scrollbar-width: none;
    }
    #authModal .auth-tabs-bar::-webkit-scrollbar {
        display: none;
    }
    #authModal .auth-tab-btn {
        flex: 0 0 auto;
        min-height: 44px;
        padding: 10px 14px;
        white-space: nowrap;
    }
    .form-field input,
    .form-field select,
    .form-field textarea {
        min-height: 48px;
        padding: 12px;
    }
    .form-field textarea {
        min-height: 84px;
    }
    .btn-primary-full {
        min-height: 50px;
    }
    .anaf-lookup-row {
        flex-direction: column;
    }
    .anaf-lookup-row input {
        min-height: 48px;
    }
    .btn-anaf-lookup {
        min-height: 46px;
        padding: 10px 14px;
    }
    #checkoutForm .btn-primary-full {
        position: sticky;
        bottom: 0;
        z-index: 2;
        margin-top: 12px;
        box-shadow: 0 0 0 10px var(--bg-elevated);
    }
    /* Vizualizare rapidă: bottom-sheet */
    #quickViewModal {
        align-items: flex-end;
    }
    #quickViewModal .modal-box {
        max-width: none;
        max-height: 92vh;
        max-height: 92dvh;
        padding: 8px 16px calc(20px + env(safe-area-inset-bottom, 0px));
        border-bottom: 0;
        border-radius: 18px 18px 0 0;
    }
    #quickViewContent > div[style*="grid-template-columns"] {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 14px !important;
    }
    #quickViewContent nav {
        overflow-x: auto;
    }
}

/* Mișcare redusă: fără tranziții/animații la elementele mobile */
@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .m-overlay,
    .m-drawer,
    .m-search,
    .m-sheet-overlay,
    .m-sheet,
    .m-buybar,
    .m-acc-panel,
    .m-acc-panel-inner,
    .m-acc-chev,
    .m-switch,
    .m-switch-knob,
    .m-gallery-dot,
    .m-nav-item,
    .header-main .header-search,
    .cart-drawer,
    .footer-col h4::after,
    .prod-details-card h3::after {
        transition: none !important;
    }
    .m-gallery-track {
        scroll-behavior: auto;
    }
}


/* ==========================================================================
   HERO SLIDER
   Bannere din admin (Marketing > Bannere). Inlocuieste .hero-main-banner in aceeasi celula
   a grilei .bento-grid cand exista bannere active; altfel ramane hero-ul static.
   Desktop: acelasi card (raza, umbra, inaltime minima 410px). Mobil: latime completa,
   raport fix (1:1 daca toate bannerele au imagine de mobil, altfel 4:3), fara overflow orizontal.
   ========================================================================== */
.hero-slider {
    position: relative;
    min-width: 0;
    min-height: 410px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--hero-border);
    box-shadow: var(--shadow-card);
    background: var(--hero-bg);
    overflow: hidden;
    isolation: isolate;
}

.hero-slider [hidden] {
    display: none !important;
}

.hero-slider-h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hero-slider-viewport {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
}

.hero-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: var(--slide-bg, #2b2623);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
    transition: opacity 0.5s ease, visibility 0s linear 0s;
}

.hero-slide-media {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    color: inherit;
    text-decoration: none;
}

.hero-slide-media picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-slide-media img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    -webkit-user-drag: none;
}

/* Text suprapus (doar cand bannerul are titlu) */
.hero-slide-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    width: min(60%, 600px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 12px;
    padding: 36px 32px 60px 42px;
    color: var(--slide-fg, #ffffff);
    background: linear-gradient(90deg, rgba(var(--slide-scrim, 0, 0, 0), 0.58) 0%, rgba(var(--slide-scrim, 0, 0, 0), 0.34) 62%, rgba(var(--slide-scrim, 0, 0, 0), 0) 100%);
    pointer-events: none;
}

.hero-slide-overlay > * {
    pointer-events: auto;
    max-width: 100%;
    min-width: 0;
}

.hero-slide-title {
    margin: 0;
    font-size: clamp(24px, 2.6vw, 42px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.5px;
    color: inherit;
    overflow-wrap: anywhere;
}

.hero-slide-subtitle {
    margin: 0;
    font-size: 16.5px;
    line-height: 1.45;
    color: inherit;
    overflow-wrap: anywhere;
}

.hero-slide-cta {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px;
    border-radius: 8px;
    background: var(--brand-red);
    color: #ffffff;
    font-size: 15.5px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(217, 28, 36, 0.28);
    transition: background 0.15s ease, transform 0.15s ease;
}

.hero-slide-cta:hover {
    background: var(--brand-red-hover);
    transform: translateY(-1px);
}

/* Sageti */
.hero-slider-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 42px;
    height: 42px;
    margin-top: -21px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #1f1a17;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transition: opacity 0.2s ease, background 0.15s ease;
}

.hero-slider-prev { left: 12px; }
.hero-slider-next { right: 12px; }

.hero-slider:hover .hero-slider-arrow,
.hero-slider:focus-within .hero-slider-arrow {
    opacity: 1;
}

.hero-slider-arrow:hover {
    background: #ffffff;
}

/* Puncte + pauza */
.hero-slider-controls {
    position: absolute;
    left: 50%;
    bottom: 14px;
    z-index: 3;
    transform: translateX(-50%);
    max-width: calc(100% - 24px);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.42);
}

.hero-slider-dots {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.hero-slider-dot {
    width: 24px;
    height: 24px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.hero-slider-dot span {
    display: block;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    transition: width 0.25s ease, background 0.2s ease;
}

.hero-slider-dot.is-active span {
    width: 24px;
    background: #ffffff;
}

.hero-slider-pause {
    width: 26px;
    height: 26px;
    margin-left: 2px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
}

.hero-slider-pause .icon-play { display: none; }
.hero-slider.is-user-paused .hero-slider-pause .icon-play { display: block; }
.hero-slider.is-user-paused .hero-slider-pause .icon-pause { display: none; }

.hero-slider-arrow:focus-visible,
.hero-slider-dot:focus-visible,
.hero-slider-pause:focus-visible,
.hero-slide-cta:focus-visible,
.hero-slide-media:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 0;
    box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.65);
}

/* Tableta (769-1024px): o singura coloana, raport apropiat de cel al imaginii de desktop */
@media (max-width: 1024px) {
    .hero-slider {
        min-height: 240px;
        aspect-ratio: 2.2 / 1;
    }
}

/* Mobil (<=768px): latime completa, imaginea de mobil */
@media (max-width: 768px) {
    .hero-slider {
        min-height: 0;
        aspect-ratio: 4 / 3;
        width: 100%;
        max-width: 100%;
    }
    .hero-slider.hero-slider--m-square {
        aspect-ratio: 1 / 1;
    }
    .hero-slide-overlay {
        top: auto;
        width: 100%;
        gap: 8px;
        justify-content: flex-end;
        padding: 18px 16px 52px;
        background: linear-gradient(0deg, rgba(var(--slide-scrim, 0, 0, 0), 0.72) 0%, rgba(var(--slide-scrim, 0, 0, 0), 0.46) 60%, rgba(var(--slide-scrim, 0, 0, 0), 0) 100%);
    }
    .hero-slide-title {
        font-size: 22px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .hero-slide-subtitle {
        font-size: 14px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .hero-slide-cta {
        min-height: 44px;
        margin-top: 2px;
        padding: 10px 20px;
        font-size: 15px;
    }
    .hero-slide-cta:hover {
        transform: none;
    }
    .hero-slider-arrow {
        display: none;
    }
    .hero-slider-controls {
        bottom: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide,
    .hero-slide.is-active,
    .hero-slider-dot span,
    .hero-slider-arrow,
    .hero-slide-cta {
        transition: none !important;
    }
}

@media (hover: none) {
    .hero-slider-arrow {
        opacity: 0.9;
    }
}


/* ==========================================================================
   === SEARCH === sugestii live (Categorii / Branduri / Produse) + banner "Ai căutat ...?"
   ========================================================================== */
.live-search-section {
    padding: 7px 14px 5px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--bg-surface-alt);
    border-bottom: 1px solid var(--border-subtle);
}
.live-search-link-row {
    justify-content: space-between;
    min-height: 40px;
    padding: 8px 14px;
}
.live-search-link-name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13.5px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.live-search-link-count {
    flex: 0 0 auto;
    font-size: 11.5px;
    color: var(--text-muted);
}
.live-search-dym {
    padding: 9px 14px;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--text-secondary);
    background: var(--brand-red-soft);
    border-bottom: 1px solid var(--border-subtle);
    overflow-wrap: anywhere;
}
.live-search-meta {
    flex-wrap: wrap;
}
.search-notice {
    margin: 0 0 16px;
    padding: 11px 16px;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--text-secondary);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--brand-red);
    border-radius: var(--radius-md, 10px);
    overflow-wrap: anywhere;
}
.search-notice b,
.search-notice a {
    color: var(--text-primary);
}
.search-notice a {
    text-decoration: underline;
}
@media (max-width: 1024px) {
    .m-search-results .live-search-link-row {
        min-height: 48px;
        padding: 10px 12px;
    }
    .m-search-results .live-search-section,
    .m-search-results .live-search-dym {
        padding-left: 12px;
        padding-right: 12px;
    }
    .search-notice {
        padding: 10px 12px;
        font-size: 13px;
    }
}
@media (max-width: 360px) {
    .live-search-link-count {
        display: none;
    }
}
/* =============================================================================
   PACHET CONVERSIE B2C: bară transport gratuit, alertă stoc, "Întreabă despre produs", WhatsApp
   ============================================================================= */
.ship-bar {
    margin: 0 0 14px;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-subtle, rgba(0, 0, 0, 0.03));
    font-size: 13px;
    color: var(--text-primary);
}
.ship-bar[hidden] {
    display: none !important;
}
.ship-bar--product {
    margin: 0 0 20px;
}
.ship-bar-msg {
    margin-bottom: 7px;
    font-weight: 600;
    line-height: 1.35;
}
.ship-bar-msg strong {
    color: var(--brand-red-text, var(--brand-red));
}
.ship-bar-track {
    height: 8px;
    border-radius: 99px;
    background: var(--border-color);
    overflow: hidden;
}
.ship-bar-track > span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 99px;
    background: var(--brand-red);
    transition: width 0.35s ease;
}
.ship-bar.is-free {
    border-color: #86EFAC;
}
.ship-bar.is-free .ship-bar-msg {
    color: #15803D;
}
.ship-bar.is-free .ship-bar-track > span {
    background: #16A34A;
}

.engage-box,
.ask-panel {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-subtle, rgba(0, 0, 0, 0.03));
    padding: 16px;
}
.engage-box {
    margin: 0 0 20px;
}
.engage-box-title {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 4px;
}
.engage-box-text {
    margin: 0 0 12px;
    font-size: 13px;
    color: var(--text-muted);
}
.engage-form {
    display: grid;
    gap: 10px;
}
.engage-form[hidden] {
    display: none !important;
}
.engage-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.engage-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.engage-field--grow {
    flex: 1 1 180px;
}
.engage-field--qty {
    flex: 0 0 120px;
}
.engage-field label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary, var(--text-muted));
}
.engage-field input,
.engage-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-input);
    color: var(--text-primary);
    font: inherit;
    font-size: 14px;
}
.engage-field input[readonly] {
    opacity: 0.75;
}
.engage-field textarea {
    resize: vertical;
    min-height: 90px;
}
.engage-btn {
    justify-self: start;
    padding: 11px 22px;
    border: 0;
    border-radius: 10px;
    background: var(--brand-red);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}
.engage-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}
.engage-msg {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
}
.engage-msg:empty {
    display: none;
}
.engage-msg.is-ok {
    color: #15803D;
}
.engage-msg.is-err {
    color: #DC2626;
}
/* câmp-capcană anti-bot: invizibil pentru oameni, dar nu display:none (boții îl completează) */
.engage-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.ask-wrap {
    margin: 0 0 20px;
}
.ask-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.ask-toggle:hover,
.ask-toggle[aria-expanded="true"] {
    border-color: var(--brand-red);
    color: var(--brand-red-text, var(--brand-red));
}
.ask-panel {
    margin-top: 12px;
}
.ask-panel[hidden],
.ask-overlay[hidden] {
    display: none !important;
}
.ask-overlay {
    display: none;
}
.ask-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}
.ask-close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
}

.wa-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #FFFFFF;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.wa-float:hover {
    transform: scale(1.06);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.34);
}
a.m-buybar-alert {
    text-decoration: none;
    background: #1F2937;
    color: #FFFFFF;
}

@media (max-width: 1024px) {
    /* WhatsApp: mic, deasupra barei de navigare (64px) sau a barei sticky de cumpărare pe pagina de produs */
    .wa-float {
        right: 12px;
        width: 44px;
        height: 44px;
        bottom: calc(64px + 14px + env(safe-area-inset-bottom, 0px));
    }
    .wa-float svg {
        width: 24px;
        height: 24px;
    }
    body.has-buybar .wa-float {
        bottom: calc(68px + 14px + env(safe-area-inset-bottom, 0px));
    }
    .engage-field input,
    .engage-field textarea {
        font-size: 16px; /* fără zoom automat în iOS */
    }
    .engage-btn {
        justify-self: stretch;
        min-height: 46px;
    }
    .engage-field--qty {
        flex: 1 1 100%;
    }
    .ask-toggle {
        width: 100%;
        justify-content: center;
        min-height: 46px;
    }
    /* bottom-sheet */
    .ask-overlay.is-open {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1005;
        background: rgba(9, 12, 18, 0.55);
    }
    .ask-panel.is-open {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1010;
        margin: 0;
        max-height: 88vh;
        overflow-y: auto;
        border-radius: 16px 16px 0 0;
        background: var(--bg-surface);
        padding: 16px 16px calc(20px + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.25);
        animation: askSheetUp 0.22s ease-out;
    }
}
@keyframes askSheetUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .ask-panel.is-open { animation: none; }
    .ship-bar-track > span { transition: none; }
}
/* Căutare: departamentul subcategoriei în sugestii */
.live-search-link-parent { color: var(--text-muted, #6b7280); font-weight: 400; font-size: 12px; }

/* =============================================================================
   B2B PACK: Comandă rapidă, Comandă din nou, Cerere de ofertă, Liste salvate
   Mobil (≤768px): tabelele devin carduri suprapuse, fără scroll orizontal (verificat de la 320px).
   ============================================================================= */
.b2b-wrap { max-width: 1180px; margin: 24px auto 56px; padding: 0 16px; box-sizing: border-box; }
.b2b-wrap *, .b2b-wrap *::before, .b2b-wrap *::after { box-sizing: border-box; }
.b2b-head h1 { font-size: 26px; font-weight: 900; margin: 0 0 6px; }
.b2b-lead { color: var(--text-muted); margin: 0 0 16px; max-width: 760px; line-height: 1.5; }
.b2b-h2 { font-size: 17px; font-weight: 800; margin: 18px 0 10px; }
.b2b-card > .b2b-h2:first-child { margin-top: 0; }
.b2b-card { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 12px; padding: 18px; margin: 0 0 16px; }
.b2b-card[hidden], .b2b-card--done[hidden], .b2b-reorder-panel[hidden], .list-save-panel[hidden], .b2b-cart-listbox[hidden] { display: none !important; }
.b2b-note { border: 1px solid var(--border-color); background: var(--bg-subtle); border-radius: 10px; padding: 12px 14px; margin: 0 0 16px; font-size: 14px; line-height: 1.5; }
.b2b-note--ok { border-color: #86EFAC; background: rgba(22, 163, 74, 0.08); }
.b2b-note--warn { border-color: #FDBA74; background: rgba(245, 158, 11, 0.1); margin: 10px 0; }
.b2b-note-actions { display: inline-block; margin-left: 4px; }
.b2b-link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--brand-red-text); text-decoration: underline; cursor: pointer; }
.b2b-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.b2b-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; margin-bottom: 4px; }
.b2b-label { display: block; font-size: 12.5px; font-weight: 700; color: var(--text-secondary); margin-bottom: 4px; }
.b2b-input, .b2b-textarea, .b2b-file {
    width: 100%; max-width: 100%; padding: 10px 12px; border: 1px solid var(--border-color); border-radius: 8px;
    background: var(--bg-input); color: var(--text-primary); font: inherit; font-size: 14px;
}
.b2b-textarea { resize: vertical; min-height: 110px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; line-height: 1.45; }
#rfqNotes.b2b-textarea { font-family: inherit; }
.b2b-input:focus, .b2b-textarea:focus { outline: none; border-color: var(--brand-red); box-shadow: 0 0 0 3px var(--brand-red-soft); }
.b2b-hint { font-size: 12.5px; color: var(--text-muted); margin: 6px 0 0; line-height: 1.45; }
.b2b-muted { font-size: 12.5px; color: var(--text-muted); overflow-wrap: anywhere; }
.b2b-ok { color: #15803D; font-weight: 700; }
.b2b-bad { color: #DC2626; font-weight: 700; }
.b2b-warn { font-size: 12.5px; color: #B45309; margin-top: 3px; }
.b2b-b2b { font-size: 11.5px; color: #15803D; font-weight: 700; }
.b2b-inline { display: flex; gap: 8px; align-items: stretch; }
.b2b-inline .b2b-input { flex: 1 1 auto; min-width: 0; }
.b2b-inline .b2b-btn { flex: 0 0 auto; }
.b2b-chips { margin-top: 4px; }
.b2b-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 4px; }
.b2b-actions--start { justify-content: flex-start; }
.b2b-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; min-height: 40px;
    border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-surface); color: var(--text-primary);
    font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none;
}
.b2b-btn:hover { border-color: var(--brand-red); color: var(--brand-red-text); }
.b2b-btn--primary { background: var(--brand-red); border-color: var(--brand-red); color: #FFFFFF; }
.b2b-btn--primary:hover { background: var(--brand-red-hover); border-color: var(--brand-red-hover); color: #FFFFFF; }
.b2b-btn--lg { min-height: 46px; padding: 11px 24px; font-size: 15px; }
.b2b-btn--danger { background: #DC2626; border-color: #DC2626; color: #FFFFFF; }
.b2b-btn--danger:hover { background: #B91C1C; border-color: #B91C1C; color: #FFFFFF; }
.b2b-btn--danger-o { color: #DC2626; }
.b2b-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.b2b-msg { margin-top: 8px; font-size: 13.5px; font-weight: 600; }
.b2b-msg:empty { display: none; }
.b2b-msg.is-ok { color: #15803D; }
.b2b-msg.is-err { color: #DC2626; }
.b2b-foot { color: var(--text-muted); font-size: 14px; }
.b2b-foot a { color: var(--brand-red-text); font-weight: 700; }
.b2b-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.b2b-empty { padding: 18px; text-align: center; color: var(--text-muted); border: 1px dashed var(--border-color); border-radius: 10px; font-size: 14px; }

/* rezumat + total */
.b2b-sum { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.b2b-chip { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--bg-subtle); border: 1px solid var(--border-color); color: var(--text-secondary); }
.b2b-chip--ok { background: rgba(22, 163, 74, 0.1); border-color: #86EFAC; color: #15803D; }
.b2b-chip--bad { background: rgba(220, 38, 38, 0.08); border-color: #FCA5A5; color: #DC2626; }
.b2b-totals { margin-top: 14px; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-size: 14.5px; text-align: right; }
.b2b-totals strong { font-size: 16px; }

/* tabele */
.b2b-table-wrap { width: 100%; overflow-x: auto; }
.b2b-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.b2b-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.3px; color: var(--text-muted); padding: 8px 8px; border-bottom: 2px solid var(--border-color); white-space: nowrap; }
.b2b-table td { padding: 10px 8px; border-bottom: 1px solid var(--border-color); vertical-align: top; }
.b2b-row--not_found td, .b2b-row--inactive td, .b2b-row--out_of_stock td { background: rgba(220, 38, 38, 0.03); }
.b2b-row--ambiguous td { background: rgba(245, 158, 11, 0.06); }
.b2b-code { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; overflow-wrap: anywhere; margin-bottom: 4px; }
.b2b-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.b2b-badge--found { background: rgba(22, 163, 74, 0.12); color: #15803D; }
.b2b-badge--ambiguous { background: rgba(245, 158, 11, 0.16); color: #B45309; }
.b2b-badge--not_found, .b2b-badge--out_of_stock, .b2b-badge--inactive { background: rgba(220, 38, 38, 0.1); color: #DC2626; }
.b2b-prod { display: flex; gap: 10px; align-items: center; min-width: 0; }
.b2b-prod-txt { min-width: 0; }
.b2b-prod-name { font-weight: 700; color: var(--text-primary); overflow-wrap: anywhere; }
.b2b-prod-name:hover { color: var(--brand-red-text); }
.b2b-thumb { width: 44px; height: 44px; object-fit: contain; border-radius: 6px; background: #FFFFFF; border: 1px solid var(--border-color); flex: 0 0 44px; }
.b2b-thumb--empty { display: inline-block; }
.b2b-qty { width: 84px; max-width: 100%; padding: 8px 8px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-input); color: var(--text-primary); font: inherit; text-align: center; font-weight: 700; }
.b2b-x { width: 34px; height: 34px; border: 1px solid var(--border-color); border-radius: 50%; background: var(--bg-surface); color: var(--text-muted); font-size: 20px; line-height: 1; cursor: pointer; }
.b2b-x:hover { border-color: #DC2626; color: #DC2626; }
.b2b-cell-act { text-align: right; width: 44px; }
.b2b-alts { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.b2b-alt { display: flex; flex-direction: column; gap: 1px; text-align: left; max-width: 100%; padding: 6px 10px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-surface); color: var(--text-primary); font: inherit; font-size: 13px; cursor: pointer; margin-top: 4px; }
.b2b-alt:hover { border-color: var(--brand-red); }
.b2b-alt-name { font-weight: 700; overflow-wrap: anywhere; }

/* cerere de ofertă */
.b2b-addline { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin: 12px 0 0; padding: 12px; border: 1px dashed var(--border-color); border-radius: 10px; }
.b2b-field--code { flex: 1 1 150px; }
.b2b-field--desc { flex: 3 1 220px; }
.b2b-field--qty { flex: 0 0 110px; }
.b2b-rfq-items { margin-top: 12px; }
.b2b-card--done { border-color: #86EFAC; }

/* comandă din nou (cont) */
.b2b-reorder-panel { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border-color); }
.b2b-ro-list { list-style: none; margin: 0; padding: 0; }
.b2b-ro-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1.2fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border-color); align-items: start; font-size: 14px; }
.b2b-ro-row--bad { background: rgba(220, 38, 38, 0.03); }
.b2b-ro-name a { font-weight: 700; color: var(--text-primary); overflow-wrap: anywhere; }

/* liste salvate (cont) */
.acc-head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.acc-list-new { margin: 0 0 16px; max-width: 520px; }
.acc-list-head { padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; }
.acc-list-title { overflow-wrap: anywhere; }
.acc-list-actions, .acc-list-confirm { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.acc-list-confirm { color: #DC2626; font-weight: 600; font-size: 14px; }
.acc-list-rename { display: flex; gap: 8px; flex-wrap: wrap; }
.acc-list-rename input { flex: 1 1 200px; min-width: 0; }
.acc-list-body { padding: 0 18px 16px; border-top: 1px solid var(--border-color); }
.acc-list-items { list-style: none; margin: 0; padding: 0; }
.acc-list-item { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr) minmax(0, 1fr) 96px 44px; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border-color); font-size: 14px; }
.acc-list-item.is-bad { opacity: 0.75; }
.acc-lists .acc-card { background: var(--bg-surface); border-color: var(--border-color); }

/* butoane din coș + pagina de produs */
.b2b-cart-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.b2b-cart-act { flex: 1 1 auto; text-align: center; padding: 9px 10px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-surface); color: var(--text-primary); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; text-decoration: none; }
.b2b-cart-act:hover { border-color: var(--brand-red); color: var(--brand-red-text); }
.b2b-cart-listbox { margin-top: 10px; padding: 10px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-subtle); }
.list-save-wrap { margin: 0 0 12px; }
.list-save-panel { margin-top: 10px; padding: 14px; border: 1px solid var(--border-color); border-radius: 12px; background: var(--bg-subtle); }
.list-save-title { font-weight: 800; margin-bottom: 8px; }
.list-save-lists { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.list-save-item { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-surface); color: var(--text-primary); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-align: left; }
.list-save-item:hover { border-color: var(--brand-red); }
.list-save-mark { font-size: 12.5px; color: var(--brand-red-text); white-space: nowrap; font-weight: 700; }

@media (max-width: 1024px) {
    .b2b-ro-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 768px) {
    .b2b-wrap { margin: 14px auto 32px; padding: 0 14px; }
    .b2b-head h1 { font-size: 21px; overflow-wrap: anywhere; }
    .b2b-card { padding: 14px; }
    .b2b-grid-2 { grid-template-columns: minmax(0, 1fr); }
    .b2b-inline { flex-wrap: wrap; }
    .b2b-inline .b2b-input { flex: 1 1 100%; }
    .b2b-inline .b2b-btn { flex: 1 1 100%; }
    .b2b-btn { min-height: 46px; }
    .b2b-actions .b2b-btn { flex: 1 1 100%; }
    .b2b-totals { align-items: stretch; text-align: left; }
    .b2b-field--qty { flex: 1 1 100%; }
    .b2b-addline > .b2b-btn { flex: 1 1 100%; }
    .b2b-textarea { min-height: 150px; }

    /* tabele => carduri suprapuse */
    .b2b-table-wrap { overflow-x: visible; }
    .b2b-table, .b2b-table tbody, .b2b-table tr, .b2b-table td { display: block; width: 100%; }
    .b2b-table thead { display: none; }
    .b2b-table tr { position: relative; border: 1px solid var(--border-color); border-radius: 10px; margin: 0 0 10px; padding: 8px 12px; background: var(--bg-surface); }
    .b2b-table td { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; border: 0; background: transparent !important; padding: 6px 0; min-width: 0; text-align: right; }
    .b2b-table td::before { content: attr(data-label); flex: 0 0 34%; max-width: 34%; text-align: left; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; color: var(--text-muted); padding-top: 2px; }
    .b2b-table td > * { min-width: 0; max-width: 100%; }
    .b2b-table td[data-label="Produs"] { flex-direction: column; align-items: stretch; gap: 4px; text-align: left; }
    .b2b-table td[data-label="Produs"]::before { flex: 0 0 auto; max-width: 100%; }
    .b2b-table td[data-label="Produs"] > * { text-align: left; width: 100%; }
    .b2b-table td.b2b-cell-act { position: absolute; top: 4px; right: 6px; width: auto; padding: 0; }
    .b2b-table td.b2b-cell-act::before { display: none; }
    .b2b-table td[data-label="Cod introdus"] { padding-right: 44px; }
    .b2b-table td[data-label="Cod"] { padding-right: 44px; }
    .b2b-code { display: inline-block; margin: 0 6px 0 0; }
    .b2b-alts, .b2b-alt { align-items: stretch; width: 100%; }
    .b2b-x { width: 40px; height: 40px; }

    .b2b-ro-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .acc-list-head { padding: 12px 14px; }
    .acc-list-actions .b2b-btn { flex: 1 1 calc(50% - 8px); }
    .acc-list-body { padding: 0 14px 14px; }
    .acc-list-item { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; }
    .acc-list-item .acc-li-prod { grid-column: 1 / -1; }
    .acc-list-item .acc-li-act { grid-column: 2; grid-row: 2; justify-self: end; }
    .acc-list-new { max-width: none; }
    .acc-head-actions { width: 100%; }
    .acc-head-actions .acc-btn { flex: 1 1 auto; justify-content: center; }
    .list-save-item { min-height: 46px; }
    .b2b-cart-act { flex: 1 1 100%; min-height: 44px; display: flex; align-items: center; justify-content: center; }
}
[data-theme="dark"] .b2b-note--ok { background: rgba(22, 163, 74, 0.14); }
[data-theme="dark"] .b2b-ok, [data-theme="dark"] .b2b-msg.is-ok, [data-theme="dark"] .b2b-b2b { color: #4ADE80; }
[data-theme="dark"] .b2b-warn { color: #FBBF24; }
[data-theme="dark"] .b2b-badge--found { color: #4ADE80; }
[data-theme="dark"] .b2b-badge--ambiguous { color: #FBBF24; }
[data-theme="dark"] .b2b-badge--not_found, [data-theme="dark"] .b2b-badge--out_of_stock, [data-theme="dark"] .b2b-badge--inactive, [data-theme="dark"] .b2b-bad { color: #F87171; }


/* Text produs generat cu AI (aprobat în admin): p, ul, li, strong */
.prod-desc-ai { font-size: 14.5px; line-height: 1.65; color: var(--text-secondary); margin-bottom: 14px; }
.prod-desc-ai p { margin: 0 0 10px; }
.prod-desc-ai ul { margin: 0 0 12px 20px; padding: 0; }
.prod-desc-ai li { margin: 0 0 4px; }

/* Listă școlară (link din categoria „Articole pentru școală”) */
.cat-school-cta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0 0 14px;
    padding: 12px 16px;
    border: 1px solid var(--hero-border);
    border-left: 4px solid var(--brand-red);
    border-radius: var(--radius-md);
    background: var(--brand-red-soft);
    color: var(--text-primary);
    text-decoration: none;
}
.cat-school-cta strong { font-size: 15px; }
.cat-school-cta span { font-size: 13.5px; color: var(--text-secondary); }
.cat-school-cta:hover { border-color: var(--brand-red); }

/* ==========================================================================
   PAGINI INFO: Despre noi (/despre-noi) și Contact (/contact)
   ========================================================================== */
.info-wrap { max-width: 1100px; margin: 24px auto 56px; padding: 0 16px; box-sizing: border-box; color: var(--text-primary); }
.info-wrap *, .info-wrap *::before, .info-wrap *::after { box-sizing: border-box; }
.info-head h1 { margin: 0 0 6px; font-size: 28px; line-height: 1.2; }
.info-lead { margin: 0 0 18px; color: var(--text-secondary); max-width: 760px; }
.info-card { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 12px; padding: 20px 22px; margin: 0 0 16px; }
.info-card h2 { margin: 0 0 10px; font-size: 20px; }
.info-card h3 { margin: 18px 0 6px; font-size: 15px; }
.info-card p { margin: 0 0 10px; line-height: 1.65; }
.info-card p:last-child { margin-bottom: 0; }
.info-facts { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.info-facts li { background: var(--bg-surface); border: 1px solid var(--border-color); border-left: 4px solid var(--brand-red); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.info-facts b { font-size: 20px; }
.info-facts span { font-size: 13px; color: var(--text-secondary); }
.info-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.info-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border-radius: 8px; border: 1px solid var(--border-color); background: var(--bg-surface); color: var(--text-primary); font-weight: 700; font-size: 14.5px; text-decoration: none; cursor: pointer; }
.info-btn:hover { border-color: var(--brand-red); }
.info-btn--primary { background: var(--brand-red); border-color: var(--brand-red); color: #fff; }
.info-btn--primary:hover { filter: brightness(.95); color: #fff; }
.info-btn[disabled] { opacity: .6; cursor: default; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; align-items: start; }
.contact-list { margin: 0; display: grid; gap: 10px; }
.contact-list > div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 10px; }
.contact-list dt { font-weight: 700; color: var(--text-secondary); font-size: 13.5px; padding-top: 1px; }
.contact-list dd { margin: 0; line-height: 1.55; overflow-wrap: anywhere; }
.contact-list a, .contact-links a { color: var(--brand-red-text); font-weight: 600; }
.contact-note { color: var(--text-secondary); font-size: 13px; }
.contact-company { color: var(--text-secondary); }
.contact-links { font-size: 14px; color: var(--text-secondary); margin-top: 14px !important; }
.contact-form { display: grid; gap: 12px; }
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 700; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form input[type=tel], .contact-form textarea {
    width: 100%; padding: 10px 12px; border: 1px solid var(--border-color); border-radius: 8px; font: inherit; font-weight: 400; font-size: 15px;
    background: var(--bg-surface); color: var(--text-primary);
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--brand-red); outline-offset: 0; border-color: transparent; }
.contact-form .contact-gdpr { flex-direction: row; align-items: flex-start; gap: 8px; font-weight: 400; font-size: 13.5px; color: var(--text-secondary); }
.contact-gdpr input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 auto; }
.contact-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.contact-msg { margin: 0; font-size: 14px; }
.contact-msg.is-ok { color: #15803D; }
.contact-msg.is-err { color: var(--brand-red-text); }
@media (max-width: 860px) {
    .contact-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
    .info-wrap { margin: 14px auto 32px; padding: 0 14px; }
    .info-head h1 { font-size: 24px; }
    .info-card { padding: 16px; }
    .contact-row { grid-template-columns: minmax(0, 1fr); }
    .contact-list > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .info-cta .info-btn, .contact-actions .info-btn { flex: 1 1 100%; }
}
