/*
Theme Name: Default
Theme URI: https://example.com
Description: Temă implicită Price Compare — header, footer și layout comun.
Version: 1.0.0
Author: Price Compare
*/

/* --- Shell & layout --- */
html {
    -webkit-text-size-adjust: 100%;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
}

.site-main {
    flex: 1;
    width: 100%;
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}

.site-main--admin {
    padding-top: 1.25rem;
}

/* --- Top header bar --- */
.site-header-bar {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4rem;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.site-brand__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), #6610f2);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

.site-brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.site-brand__text strong {
    font-size: 1rem;
}

.site-brand__text small {
    font-size: 0.75rem;
    color: var(--muted);
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 1rem;
}

.site-nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.site-nav a:hover {
    color: var(--accent);
}

.site-nav__logout {
    color: var(--muted) !important;
}

/* --- Hero --- */
.site-hero {
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    color: #fff;
    padding: 2rem 0 2.25rem;
    margin-bottom: 0.25rem;
}

.site-hero--product {
    padding: 1.5rem 0 1.75rem;
}

.site-hero--offline {
    padding: 1.25rem 0;
}

.site-hero__title {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.2;
}

.site-hero__tagline {
    margin: 0.5rem 0 0;
    opacity: 0.92;
    font-size: 1.05rem;
}

.site-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.site-breadcrumb a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
}

.site-breadcrumb a:hover {
    text-decoration: underline;
}

.site-breadcrumb .sep {
    opacity: 0.6;
}

.site-breadcrumb span:last-child {
    opacity: 0.85;
}

/* --- Footer --- */
.site-footer-bar {
    margin-top: auto;
    background: #111827;
    color: #e5e7eb;
    padding: 2rem 0;
}

.site-footer-bar--admin {
    padding: 1rem 0;
    background: #1f2937;
}

.site-footer-bar__grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .site-footer-bar__grid {
        grid-template-columns: 2fr 1fr 1fr;
        align-items: start;
    }
}

.site-footer-bar__brand p {
    margin: 0.35rem 0 0;
    color: #9ca3af;
    font-size: 0.9rem;
}

.site-footer-bar__nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.site-footer-bar__nav a {
    color: #d1d5db;
    text-decoration: none;
}

.site-footer-bar__nav a:hover {
    color: #fff;
}

.site-footer-bar__copy {
    color: #9ca3af;
}

/* --- Admin header --- */
/* --- Admin Header & Navigation Styling --- */
/* ==========================================================================
   Retractable Vertical Sidebar Admin Layout (Expanded 256px / Rail 68px / Hidden 0px)
   ========================================================================== */

:root {
    --admin-sidebar-width: 256px;
    --admin-sidebar-rail-width: 68px;
}

body.admin-body {
    background-color: #f0f2f5;
    margin: 0;
    padding: 0;
}

.wp-admin-layout {
    display: flex;
    min-height: 100vh;
    background: #f0f2f5;
}

/* Left Vertical Sidebar (Dark #1d2327) */
.wp-admin-sidebar {
    width: var(--admin-sidebar-width);
    background: #1d2327;
    color: #f0f6fc;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 14px rgba(0, 0, 0, 0.14);
    transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1), transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Floating Edge Handle on the right border of the sidebar */
.wp-admin-rail-handle {
    position: absolute;
    top: 16px;
    right: -12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #2271b1;
    color: #ffffff;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1065;
    padding: 0;
    transition: transform 0.2s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.wp-admin-rail-handle:hover {
    background: #135e96;
    transform: scale(1.08);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.wp-admin-rail-handle__icon {
    transition: transform 0.22s ease;
}

.wp-admin-sidebar__header {
    padding: 0.85rem 1rem;
    min-height: 56px;
    background: #101517;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.wp-admin-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: #ffffff;
    min-width: 0;
}

.wp-admin-brand__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    min-width: 34px;
    background: linear-gradient(135deg, #2271b1, #135e96);
    color: #ffffff;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.wp-admin-brand__mark--compact {
    display: none;
}

.wp-admin-brand__text {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.wp-admin-brand__text strong {
    display: block;
    font-size: 0.94rem;
    color: #ffffff;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wp-admin-brand__text small {
    font-size: 0.68rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

.wp-admin-sidebar__close {
    display: none;
    background: transparent;
    border: none;
    color: #a7aaad;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

/* Search Box inside Sidebar */
.wp-admin-sidebar__search {
    padding: 0.65rem 0.75rem 0.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.wp-admin-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 7px;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.wp-admin-search-box:focus-within {
    background: rgba(255, 255, 255, 0.11);
    border-color: #3582c4;
}

.wp-admin-search-box__icon {
    background: transparent;
    border: none;
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 32px;
    flex-shrink: 0;
    cursor: pointer;
    padding: 0;
}

.wp-admin-search-box__icon:hover {
    color: #ffffff;
}

.wp-admin-search-box__input {
    width: 100%;
    background: transparent;
    border: none;
    color: #f0f6fc;
    font-size: 0.8rem;
    padding: 0.38rem 1.6rem 0.38rem 0;
    outline: none;
}

.wp-admin-search-box__input::placeholder {
    color: #8c939a;
}

.wp-admin-search-box__clear {
    position: absolute;
    right: 6px;
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 1rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.wp-admin-search-box__clear:hover {
    color: #ffffff;
}

.wp-admin-sidebar__nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.45rem 0 0.75rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.wp-admin-sidebar__nav::-webkit-scrollbar {
    width: 4px;
}

.wp-admin-sidebar__nav::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
}

.wp-admin-menu-empty {
    padding: 1.25rem 1rem;
    text-align: center;
    color: #9ca3af;
    font-size: 0.8rem;
}

/* Vertical Menu List */
.wp-admin-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wp-admin-menu__section {
    padding: 0.7rem 1.1rem 0.28rem;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7c848c;
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
}

.wp-admin-menu__section:first-child {
    padding-top: 0.3rem;
}

.wp-admin-menu__group {
    margin: 2px 0.5rem;
    position: relative;
    border-radius: 7px;
}

.wp-admin-menu__row {
    display: flex;
    align-items: stretch;
    border-radius: 7px;
    overflow: hidden;
    transition: background-color 0.15s ease;
}

.wp-admin-menu__row:hover {
    background: rgba(255, 255, 255, 0.06);
}

.wp-admin-menu__group.is-active-branch > .wp-admin-menu__row {
    background: #262d33;
}

.wp-admin-menu__item {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.56rem 0.75rem;
    color: #c3c6ca;
    text-decoration: none;
    font-size: 0.855rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.wp-admin-menu__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.wp-admin-menu__item svg {
    stroke: #9ca3af;
    flex-shrink: 0;
    transition: stroke 0.15s ease-in-out, transform 0.15s ease;
}

.wp-admin-menu__label {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wp-admin-menu__item:hover {
    color: #72aee6;
}

.wp-admin-menu__item:hover svg {
    stroke: #72aee6;
}

.wp-admin-menu__item.is-active {
    color: #ffffff;
    border-left-color: #3582c4;
    font-weight: 600;
}

.wp-admin-menu__item.is-active svg {
    stroke: #72aee6;
}

/* Badges in Menu */
.wp-admin-menu__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 19px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    background: #3582c4;
    color: #ffffff;
    line-height: 1;
    flex-shrink: 0;
}

.wp-admin-menu__badge--warning {
    background: #d97706;
    color: #ffffff;
}

.wp-admin-menu__badge--danger {
    background: #dc2626;
    color: #ffffff;
}

/* Submenu Toggle Button */
.wp-admin-submenu-toggle {
    background: transparent;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.04);
    color: #9ca3af;
    width: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.wp-admin-submenu-toggle:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.wp-admin-chevron {
    transition: transform 0.2s ease;
}

.wp-admin-menu__group.is-expanded .wp-admin-chevron,
.wp-admin-menu__group.is-search-open .wp-admin-chevron {
    transform: rotate(180deg);
}

/* Accordion Submenu in Sidebar */
.wp-admin-submenu {
    list-style: none;
    padding: 0.25rem 0.4rem 0.35rem 2.15rem;
    margin: 2px 0 4px;
    background: #14181b;
    border-radius: 6px;
    display: none;
}

.wp-admin-menu__group.is-expanded > .wp-admin-submenu,
.wp-admin-menu__group.is-search-open > .wp-admin-submenu {
    display: block;
}

.wp-admin-submenu li {
    margin: 1px 0;
}

.wp-admin-submenu__item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.38rem 0.65rem;
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 5px;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.wp-admin-submenu__item::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    flex-shrink: 0;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.wp-admin-submenu__item:hover {
    color: #72aee6;
    background: rgba(255, 255, 255, 0.04);
}

.wp-admin-submenu__item:hover::before {
    background: #72aee6;
}

.wp-admin-submenu__item.is-active {
    color: #ffffff;
    font-weight: 600;
    background: rgba(53, 130, 196, 0.18);
}

.wp-admin-submenu__item.is-active::before {
    background: #72aee6;
    transform: scale(1.25);
}

/* Floating Flyout Card for Retracted Mode (Icon Rail) */
.wp-admin-flyout {
    display: none;
    position: fixed;
    left: 74px;
    top: 60px;
    min-width: 215px;
    max-width: 260px;
    background: #1d2327;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    z-index: 2000;
    overflow: hidden;
}

.wp-admin-flyout--simple {
    min-width: auto;
    white-space: nowrap;
}

.wp-admin-flyout__header {
    padding: 0.6rem 0.85rem;
    background: #101517;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wp-admin-flyout--simple .wp-admin-flyout__header {
    border-bottom: none;
    padding: 0.48rem 0.75rem;
}

.wp-admin-flyout__list {
    list-style: none;
    margin: 0;
    padding: 0.35rem;
}

.wp-admin-flyout__list li {
    margin: 1px 0;
}

/* Sidebar Footer */
.wp-admin-sidebar__footer {
    padding: 0.65rem 0.75rem;
    background: #101517;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wp-admin-collapse-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.65rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #c3c4c7;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
}

.wp-admin-collapse-btn:hover {
    background: rgba(53, 130, 196, 0.22);
    border-color: rgba(114, 174, 230, 0.4);
    color: #ffffff;
}

.wp-admin-collapse-btn__icon {
    flex-shrink: 0;
    transition: transform 0.22s ease;
}

.wp-admin-collapse-btn__label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wp-admin-collapse-btn__kbd {
    font-family: monospace;
    font-size: 0.68rem;
    padding: 0.05rem 0.35rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.wp-admin-footer-actions {
    display: flex;
    gap: 0.45rem;
}

.wp-admin-footer-link {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.42rem 0.55rem;
    background: rgba(255, 255, 255, 0.07);
    color: #c3c4c7;
    text-decoration: none;
    font-size: 0.76rem;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
}

.wp-admin-footer-link:hover {
    background: #2271b1;
    color: #ffffff;
}

.wp-admin-footer-link--logout:hover {
    background: #d63638;
    color: #ffffff;
}

/* Main Wrapper (Right side) */
.wp-admin-wrapper {
    flex: 1;
    margin-left: var(--admin-sidebar-width);
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #f0f2f5;
    transition: margin-left 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Top App Bar */
.wp-admin-topbar {
    min-height: 54px;
    background: #ffffff;
    border-bottom: 1px solid #dcdcde;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 1.35rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    gap: 1rem;
}

.wp-admin-topbar__left {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.wp-admin-toggle,
.wp-admin-zen-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    cursor: pointer;
    padding: 0;
    border-radius: 7px;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.wp-admin-toggle:hover,
.wp-admin-zen-toggle:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.wp-admin-zen-toggle.is-active {
    background: #1e40af;
    border-color: #1e40af;
    color: #ffffff;
}

.wp-admin-topbar__heading {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    margin-left: 0.2rem;
}

.wp-admin-topbar__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1d2327;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wp-admin-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
    flex-shrink: 0;
}

.wp-admin-status-pill__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.wp-admin-status-pill--online {
    background: #dcfce7;
    color: #166534;
}

.wp-admin-status-pill--online .wp-admin-status-pill__dot {
    background: #16a34a;
}

.wp-admin-status-pill--offline {
    background: #fef3c7;
    color: #92400e;
}

.wp-admin-status-pill--offline .wp-admin-status-pill__dot {
    background: #d97706;
}

.wp-admin-topbar__right {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
}

.wp-admin-quick-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.wp-admin-topbar-btn {
    color: #334155;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.34rem 0.68rem;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.wp-admin-topbar-btn:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.wp-admin-topbar-link {
    color: #2271b1;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    background: #f0f6fc;
    transition: background 0.15s ease;
    white-space: nowrap;
}

.wp-admin-topbar-link:hover {
    background: #e2e8f0;
}

.wp-admin-topbar-link--logout {
    color: #d63638;
    background: #fcf0f0;
}

.wp-admin-topbar-link--logout:hover {
    background: #f8d7da;
}

/* ==========================================================================
   Desktop Lateral Retracted State 1: Compact Icon Rail (68px)
   ========================================================================== */
@media (min-width: 992px) {
    html.admin-sidebar-collapsed .wp-admin-sidebar {
        width: var(--admin-sidebar-rail-width);
    }

    html.admin-sidebar-collapsed .wp-admin-wrapper {
        margin-left: var(--admin-sidebar-rail-width);
    }

    html.admin-sidebar-collapsed .wp-admin-rail-handle__icon {
        transform: rotate(180deg);
    }

    html.admin-sidebar-collapsed .wp-admin-sidebar__header {
        padding: 0.85rem 0.5rem;
        justify-content: center;
    }

    html.admin-sidebar-collapsed .wp-admin-brand {
        justify-content: center;
    }

    html.admin-sidebar-collapsed .wp-admin-brand__text,
    html.admin-sidebar-collapsed .wp-admin-brand__img {
        display: none !important;
    }

    html.admin-sidebar-collapsed .wp-admin-brand__mark--compact {
        display: inline-flex;
    }

    html.admin-sidebar-collapsed .wp-admin-sidebar__search {
        padding: 0.55rem 0.5rem 0.3rem;
        display: flex;
        justify-content: center;
    }

    html.admin-sidebar-collapsed .wp-admin-search-box {
        width: 40px;
        height: 36px;
        justify-content: center;
    }

    html.admin-sidebar-collapsed .wp-admin-search-box__input,
    html.admin-sidebar-collapsed .wp-admin-search-box__clear {
        display: none !important;
    }

    html.admin-sidebar-collapsed .wp-admin-menu__section {
        height: 1px;
        padding: 0;
        margin: 0.55rem 0.85rem;
        background: rgba(255, 255, 255, 0.1);
        text-indent: -9999px;
    }

    html.admin-sidebar-collapsed .wp-admin-menu__group {
        margin: 3px 0.45rem;
    }

    html.admin-sidebar-collapsed .wp-admin-menu__item {
        justify-content: center;
        padding: 0.65rem 0;
        border-left-width: 0;
        position: relative;
    }

    html.admin-sidebar-collapsed .wp-admin-menu__item.is-active {
        background: #2271b1;
        border-radius: 7px;
    }

    html.admin-sidebar-collapsed .wp-admin-menu__item.is-active svg {
        stroke: #ffffff;
    }

    html.admin-sidebar-collapsed .wp-admin-menu__label,
    html.admin-sidebar-collapsed .wp-admin-submenu-toggle,
    html.admin-sidebar-collapsed .wp-admin-submenu {
        display: none !important;
    }

    html.admin-sidebar-collapsed .wp-admin-menu__badge {
        position: absolute;
        top: 4px;
        right: 6px;
        min-width: 15px;
        height: 15px;
        font-size: 0.6rem;
        padding: 0 3px;
    }

    html.admin-sidebar-collapsed .wp-admin-menu__group.is-flyout-open > .wp-admin-flyout {
        display: block;
    }

    html.admin-sidebar-collapsed .wp-admin-sidebar__footer {
        padding: 0.55rem 0.45rem;
        align-items: center;
    }

    html.admin-sidebar-collapsed .wp-admin-collapse-btn {
        justify-content: center;
        padding: 0.5rem 0;
    }

    html.admin-sidebar-collapsed .wp-admin-collapse-btn__icon {
        transform: rotate(180deg);
    }

    html.admin-sidebar-collapsed .wp-admin-collapse-btn__label,
    html.admin-sidebar-collapsed .wp-admin-collapse-btn__kbd {
        display: none !important;
    }

    html.admin-sidebar-collapsed .wp-admin-footer-actions {
        flex-direction: column;
        width: 100%;
    }

    html.admin-sidebar-collapsed .wp-admin-footer-link span {
        display: none !important;
    }

    html.admin-sidebar-collapsed .wp-admin-footer-link {
        padding: 0.48rem 0;
    }

    /* ==========================================================================
       Desktop Lateral Retracted State 2: Hidden / Fullscreen Workspace (0px)
       ========================================================================== */
    html.admin-sidebar-hidden .wp-admin-sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }

    html.admin-sidebar-hidden .wp-admin-rail-handle {
        display: none;
    }

    html.admin-sidebar-hidden .wp-admin-wrapper {
        margin-left: 0;
    }
}

/* Mobile responsive sidebar drawer */
@media (max-width: 991px) {
    .wp-admin-sidebar {
        transform: translateX(-100%);
        width: 260px;
    }

    .wp-admin-sidebar.is-open {
        transform: translateX(0);
    }

    .wp-admin-rail-handle,
    .wp-admin-zen-toggle,
    .wp-admin-quick-actions,
    .wp-admin-collapse-btn__kbd {
        display: none !important;
    }

    .wp-admin-sidebar__close {
        display: block;
    }

    .wp-admin-wrapper {
        margin-left: 0 !important;
    }

    .wp-admin-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
    }

    .wp-admin-overlay.is-open {
        display: block;
    }
}

/* --- Auth pages (login) --- */
.auth-page {
    max-width: 420px;
    margin: 0 auto;
    padding: 2rem 0 3rem;
}

.auth-page .admin-card {
    margin-bottom: 0;
}

/* --- Offline --- */
.offline-layout .site-main {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
}

.offline-card {
    max-width: 520px;
    width: 100%;
    text-align: center;
    background: var(--card);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.offline-card__message {
    font-size: 1.05rem;
    color: var(--muted);
    margin: 0;
}

@media (max-width: 768px) {
    .site-header-bar__inner {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0.65rem 0;
        gap: 0.6rem;
    }

    .site-brand {
        margin: 0 auto;
        justify-content: center;
    }

    .burger-menu-toggle {
        display: none !important;
    }

    .site-nav {
        display: none !important;
    }

    .site-nav {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 0.15rem;
    }

    .site-nav::-webkit-scrollbar {
        display: none;
    }

    .site-nav a {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .site-hero {
        padding: 1.35rem 0 1.5rem;
    }

    .site-hero__tagline {
        font-size: 0.95rem;
    }

    .site-footer-bar {
        padding: 1.5rem 0;
    }
}

@media (max-width: 480px) {
    .site-brand__text small {
        display: none;
    }

    .site-brand__mark {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 1rem;
    }
}

/* --- Pagină produs (stil compari) --- */
.product-page--compari .site-main {
    padding-top: 1rem;
}

.pc-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.pc-breadcrumb a {
    color: var(--accent);
    text-decoration: none;
}

.pc-breadcrumb a:hover {
    text-decoration: underline;
}

.pc-breadcrumb__home {
    display: inline-flex;
    color: var(--text);
}

.pc-breadcrumb__sep {
    color: #cbd5e1;
}

.pc-breadcrumb__current {
    color: var(--text);
    font-weight: 500;
}

.pc-hero-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem 1.75rem;
    margin-bottom: 0;
}

.pc-hero-card__media {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pc-hero-card__image {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
}

.pc-hero-card__placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px dashed var(--border);
}

.pc-hero-card__thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
    justify-content: center;
}

.pc-hero-card__thumbs img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.pc-hero-card__title {
    margin: 0 0 1rem;
    font-size: clamp(1.25rem, 2.5vw, 1.65rem);
    line-height: 1.3;
    font-weight: 700;
}

.pc-quick-specs {
    margin: 0 0 1rem;
    font-size: 0.9rem;
}

.pc-quick-specs__row {
    display: grid;
    grid-template-columns: 7rem 1fr;
    gap: 0.5rem;
    padding: 0.2rem 0;
}

.pc-quick-specs dt {
    margin: 0;
    color: var(--muted);
    font-weight: 400;
}

.pc-quick-specs dd {
    margin: 0;
    color: var(--text);
}

.pc-link-anchor {
    display: inline-block;
    margin-bottom: 1.25rem;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.95rem;
}

.pc-link-anchor:hover {
    text-decoration: underline;
}

.pc-hero-card__actions {
    margin-bottom: 1rem;
}

.pc-hero-card__price {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.pc-hero-card__price-label {
    font-size: 0.8rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pc-hero-card__price strong {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.1;
}

.pc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: filter 0.15s, background 0.15s;
}

.pc-btn--outline {
    background: #fff;
    border-color: #7c3aed;
    color: #7c3aed;
}

.pc-btn--outline:hover {
    background: #f5f3ff;
}

.pc-btn--primary {
    background: #7c3aed;
    color: #fff;
    white-space: nowrap;
}

.pc-btn--primary:hover {
    filter: brightness(1.08);
}

.pc-tabs {
    display: flex;
    gap: 4px;
    background: #f1f5f9;
    padding: 5px;
    border-radius: 14px;
    margin-top: 1.25rem;
    overflow-x: auto;
    border: 1px solid var(--border);
}

.pc-tabs__item {
    flex: 1;
    text-align: center;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 10px;
    border-bottom: none;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.pc-tabs__item:hover {
    background: rgba(255, 255, 255, 0.6);
    color: var(--text);
}

.pc-tabs__item.is-active {
    background: #ffffff;
    color: var(--accent);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    font-weight: 700;
}

.pc-panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 1.5rem 1.75rem 1.75rem;
    margin-top: 0.75rem;
    margin-bottom: 2rem;
}

.pc-panel__head {
    margin-bottom: 1.25rem;
}

.pc-panel__head h2 {
    margin: 0 0 0.25rem;
    font-size: 1.35rem;
}

.pc-panel__sub {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.pc-offers-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.pc-offer-row {
    display: grid;
    grid-template-columns: 180px 1fr auto auto;
    gap: 1rem 1.25rem;
    align-items: center;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: #fff;
}

.pc-offer-row:last-child {
    border-bottom: none;
}

.pc-offer-row.is-best {
    background: #faf8ff;
}

.pc-offer-row__shop {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pc-offer-row__avatar {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.pc-offer-row__store {
    display: block;
    font-size: 0.95rem;
}

.pc-offer-row__feed {
    display: block;
    font-size: 0.75rem;
    color: var(--muted);
}

.pc-offer-row__name {
    margin: 0 0 0.35rem;
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.4;
}

.pc-offer-row__badge {
    display: inline-block;
    margin-top: 0.35rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #15803d;
    background: #dcfce7;
}

.pc-offer-row__badge--stale {
    background: #fef3c7;
    color: #92400e;
}

.pc-offer-row.is-stale {
    opacity: 0.82;
    background: #fffbeb;
}

.pc-stale-notice {
    margin: 0 1rem 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-size: 0.9rem;
}

.pc-offer-row__price {
    font-size: 1.35rem;
    font-weight: 800;
    color: #c026d3;
    white-space: nowrap;
}

.pc-offer-row__no-link {
    font-size: 0.85rem;
}

.pc-panel__note {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.pc-panel__note h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.pc-panel__note p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.55;
}

.pc-specs-body {
    font-size: 0.95rem;
    line-height: 1.6;
}

.pc-specs-text {
    margin-bottom: 1.5rem;
}

.pc-specs-group-title {
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text, #1e293b);
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.35rem;
    border-bottom: 2px solid var(--accent, #3b82f6);
}

.pc-specs-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: 1px solid var(--border, #e2e8f0) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    margin-top: 0.75rem !important;
    margin-bottom: 1.5rem !important;
    font-size: 0.9rem !important;
}

.pc-specs-table tr:nth-child(even) {
    background-color: #f8fafc !important;
}

.pc-specs-table tr:nth-child(odd) {
    background-color: #ffffff !important;
}

.pc-specs-table tr:hover {
    background-color: #f1f5f9 !important;
}

.pc-specs-table th,
.pc-specs-table td {
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid var(--border, #edf2f7) !important;
    text-align: left !important;
    vertical-align: top !important;
    line-height: 1.5 !important;
}

.pc-specs-table tr:last-child th,
.pc-specs-table tr:last-child td {
    border-bottom: none !important;
}

.pc-specs-table th,
.pc-specs-table td:first-child {
    width: 35% !important;
    font-weight: 500 !important;
    color: var(--text-muted, #64748b) !important;
    background: transparent !important;
    border-right: 1px solid var(--border, #edf2f7) !important;
}

.pc-specs-table td:last-child {
    font-weight: 600 !important;
    color: var(--text, #0f172a) !important;
}

.pc-history-table {
    margin-top: 0;
}

@media (max-width: 900px) {
    .pc-hero-card {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 1.15rem;
    }

    .pc-hero-card__media {
        max-width: 320px;
        margin: 0 auto;
    }

    .pc-offer-row {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 0.75rem 1rem;
        padding: 1rem;
    }

    .pc-offer-row__product {
        grid-column: 1 / -1;
    }

    .pc-offer-row__cta {
        grid-column: 1 / -1;
    }

    .pc-offer-row__cta .pc-btn {
        width: 100%;
        text-align: center;
    }

    .pc-panel {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .pc-stale-notice {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 520px) {
    .pc-breadcrumb {
        font-size: 0.8rem;
    }

    .pc-hero-card {
        padding: 1rem;
    }

    .pc-hero-card__title {
        font-size: 1.2rem;
    }

    .pc-quick-specs {
        padding: 0.75rem;
    }

    .pc-tabs__item {
        padding: 0.75rem 1rem;
        font-size: 0.88rem;
    }

    .pc-offer-row {
        grid-template-columns: 1fr;
    }

    .pc-offer-row__price {
        font-size: 1.2rem;
    }

    .pc-quick-specs__row {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }

    .pc-specs-table th,
    .pc-specs-table td {
        display: block;
        width: 100%;
    }

    .pc-specs-table th {
        border-bottom: none;
        padding-bottom: 0.25rem;
    }

    .pc-specs-table td {
        padding-top: 0;
        padding-bottom: 0.75rem;
    }
}

/* Header search form styles */
.header-search-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    max-width: 600px;
    margin: 0 1.5rem;
}
.header-search-form .search-wrapper {
    position: relative;
    flex: 1;
    min-width: 150px;
}
.header-search-form .search-wrapper input[type="search"] {
    width: 100%;
    padding: 0.6rem 1.2rem;
    border-radius: 24px;
    border: 1px solid var(--border);
    background: var(--body-bg);
    color: var(--text);
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-size: 0.95rem;
}
.header-search-form .search-wrapper input[type="search"]:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--card);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.header-search-submit {
    padding: 0.6rem 1.2rem;
    border-radius: 24px;
    border: none;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease;
}
.header-search-submit:hover {
    background: #1d4ed8;
}

/* Sidebar Drawer & Overlay Styles */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.sidebar-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* Modern Off-Canvas Category Drawer & Hierarchical Dropdown Menu */
.sidebar-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 390px;
    max-width: 92vw;
    height: 100%;
    height: 100dvh;
    background: #ffffff;
    border-left: 1px solid #e2e8f0;
    box-shadow: -12px 0 40px rgba(15, 23, 42, 0.16);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    transform: translateX(105%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    visibility: hidden;
}

.sidebar-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
}

.sidebar-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.sidebar-drawer__title-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-drawer__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #2563eb;
    flex-shrink: 0;
}

.sidebar-drawer__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.sidebar-drawer__subtitle {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
    margin-top: 0.1rem;
}

.sidebar-close-btn {
    border: none;
    background: #f1f5f9;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
}

.sidebar-close-btn:hover {
    background: #fee2e2;
    color: #dc2626;
    transform: rotate(90deg);
}

/* Căutare rapidă categorii */
.sidebar-drawer__search {
    padding: 0.75rem 1.25rem;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
}

.category-search-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.category-search-icon {
    position: absolute;
    left: 0.75rem;
    color: #94a3b8;
    pointer-events: none;
}

.category-search-box input {
    width: 100%;
    padding: 0.55rem 2rem 0.55rem 2.25rem;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-size: 0.86rem;
    color: #0f172a;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.category-search-box input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

#category-filter-clear {
    position: absolute;
    right: 0.5rem;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.2rem;
    line-height: 1;
}

#category-filter-clear:hover {
    color: #0f172a;
}

/* Navigare principală din sertar */
.sidebar-drawer__nav {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.25rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.sidebar-drawer__nav::-webkit-scrollbar {
    width: 5px;
}
.sidebar-drawer__nav::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

/* Buton Hero Toate Categoriile */
.cat-menu-item--all {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none;
    color: #1e293b;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.cat-menu-item--all:hover {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #bfdbfe;
    color: #1d4ed8;
    transform: translateY(-1px);
}

.cat-menu-item--all.is-active {
    background: #eff6ff;
    border-color: #2563eb;
    color: #2563eb;
}

.cat-menu-item__icon--all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #ffffff;
    color: #2563eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.cat-menu-item__badge {
    margin-left: auto;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #e2e8f0;
    color: #475569;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
}

/* Arbore categorii acordeon / dropdown */
.cat-tree-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.cat-accordion-group {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cat-accordion-group:hover {
    border-color: #cbd5e1;
}

.cat-accordion-group.is-expanded {
    border-color: #93c5fd;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.06);
}

.cat-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 0.5rem 0.45rem 0.75rem;
    transition: background-color 0.15s;
}

.cat-accordion-header:hover {
    background-color: #f8fafc;
}

.cat-accordion-header.is-active {
    background-color: #eff6ff;
}

.cat-accordion-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: #1e293b;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.35rem 0;
}

.cat-accordion-link:hover {
    color: #2563eb;
}

.cat-accordion-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: #f1f5f9;
    color: #3b82f6;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.cat-accordion-icon svg {
    width: 18px;
    height: 18px;
}

.cat-accordion-group:hover .cat-accordion-icon {
    transform: scale(1.08);
}

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

.cat-accordion-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: transparent;
    border: none;
    padding: 0.4rem 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s ease;
}

.cat-accordion-toggle:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.cat-count-badge {
    font-size: 0.72rem;
    font-weight: 700;
    background: #f1f5f9;
    color: #475569;
    padding: 0.1rem 0.4rem;
    border-radius: 12px;
}

.cat-chevron {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cat-accordion-group.is-expanded .cat-chevron {
    transform: rotate(180deg);
    color: #2563eb;
}

/* Conținut Dropdown Nivel 1 */
.cat-accordion-dropdown {
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
}

.cat-dropdown-inner {
    padding: 0.4rem 0.5rem 0.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.cat-dropdown-sublink {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.65rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.83rem;
    font-weight: 500;
    color: #334155;
    transition: all 0.15s ease;
}

.cat-dropdown-sublink:hover {
    background: #ffffff;
    color: #2563eb;
    padding-left: 0.85rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.cat-dropdown-sublink.is-active {
    background: #ffffff;
    color: #2563eb;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.1);
}

.cat-dropdown-sublink--all {
    color: #2563eb;
    font-weight: 600;
    background: rgba(37, 99, 235, 0.05);
    margin-bottom: 0.25rem;
    justify-content: space-between;
}

.cat-dropdown-sublink--all:hover {
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
}

.cat-sublink-arrow {
    font-size: 0.95rem;
    transition: transform 0.15s;
}

.cat-dropdown-sublink--all:hover .cat-sublink-arrow {
    transform: translateX(3px);
}

.cat-bullet {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #94a3b8;
    flex-shrink: 0;
    transition: background 0.15s, transform 0.15s;
}

.cat-dropdown-sublink:hover .cat-bullet,
.cat-dropdown-sublink.is-active .cat-bullet {
    background: #2563eb;
    transform: scale(1.4);
}

/* Acordeon / Dropdown Nivel 2 (Sub-subcategorii) */
.cat-sub-accordion {
    border-radius: 6px;
    margin: 0.1rem 0;
    overflow: hidden;
}

.cat-sub-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 6px;
    transition: background 0.15s;
}

.cat-sub-header:hover {
    background: #ffffff;
}

.cat-sub-header.is-active {
    background: #ffffff;
}

.cat-sub-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.65rem;
    text-decoration: none;
    font-size: 0.83rem;
    font-weight: 500;
    color: #334155;
    flex: 1;
}

.cat-sub-link:hover {
    color: #2563eb;
}

.cat-sub-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem 0.5rem;
    border-radius: 4px;
    color: #64748b;
}

.cat-sub-count {
    font-size: 0.68rem;
    font-weight: 700;
    background: #e2e8f0;
    padding: 0.05rem 0.35rem;
    border-radius: 10px;
}

.cat-sub-chevron {
    transition: transform 0.2s ease;
}

.cat-sub-accordion.is-expanded .cat-sub-chevron {
    transform: rotate(180deg);
    color: #2563eb;
}

.cat-sub-dropdown {
    padding: 0.2rem 0.5rem 0.4rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    border-left: 2px solid #cbd5e1;
    margin-left: 1.25rem;
}

.cat-sub-sublink {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.5rem;
    text-decoration: none;
    font-size: 0.8rem;
    color: #475569;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.cat-sub-sublink:hover {
    color: #2563eb;
    background: #ffffff;
    padding-left: 0.7rem;
}

.cat-sub-sublink.is-active {
    color: #2563eb;
    font-weight: 700;
    background: #ffffff;
}

.cat-sub-bullet {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #cbd5e1;
}

.cat-sub-sublink:hover .cat-sub-bullet,
.cat-sub-sublink.is-active .cat-sub-bullet {
    background: #2563eb;
}

/* Buton Header Burger Modern */
.burger-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 0.55rem 1rem;
    border-radius: 24px;
    cursor: pointer;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.burger-menu-toggle:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #f8fafc;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
    transform: translateY(-1px);
}

.burger-menu-toggle__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
}

.burger-menu-toggle__chevron {
    color: #94a3b8;
    transition: transform 0.2s;
}

.burger-menu-toggle:hover .burger-menu-toggle__chevron {
    color: #2563eb;
    transform: translateY(1px);
}


@media (max-width: 768px) {
    .header-search-form {
        width: 100%;
        max-width: 100%;
        margin: 0.15rem 0 0.25rem;
    }
}

/* Homepage Slider Styles */
.homepage-slider-container {
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
    overflow: hidden;
}
.homepage-slider {
    position: relative;
    width: 100%;
    height: 400px;
    background: #1e293b;
    border-radius: var(--radius);
    overflow: hidden;
}
.homepage-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    display: flex;
    align-items: center;
}
.homepage-slide.is-active {
    opacity: 1;
    visibility: visible;
}
.homepage-slide__content {
    color: #fff;
    max-width: 800px;
    padding: 0 3rem;
    z-index: 2;
}
.homepage-slide__title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    line-height: 1.2;
}
.homepage-slide__subtitle {
    font-size: 1.25rem;
    margin: 0 0 1.5rem 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    opacity: 0.9;
}
.homepage-slide__btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
    transition: all 0.2s ease;
}
.homepage-slide__btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37,99,235,0.4);
}

/* Slider Controls */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.slider-arrow:hover {
    background: rgba(15, 23, 42, 0.7);
    color: var(--accent);
}
.slider-arrow--prev {
    left: 1.5rem;
}
.slider-arrow--next {
    right: 1.5rem;
}
.slider-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}
.slider-dot {
    width: 12px;
    height: 12px;
    margin: 4px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.2s ease;
}
.slider-dot.is-active {
    background: #fff;
    transform: scale(1.3);
}

@media (max-width: 768px) {
    .homepage-slider {
        height: 300px;
    }
    .homepage-slide__content {
        padding: 0 1.5rem;
    }
    .homepage-slide__title {
        font-size: 1.75rem;
    }
    .homepage-slide__subtitle {
        font-size: 1rem;
    }
    .slider-arrow {
        width: 2.75rem;
        height: 2.75rem;
        font-size: 1.1rem;
    }
    .slider-arrow--prev {
        left: 0.75rem;
    }
    .slider-arrow--next {
        right: 0.75rem;
    }
}

/* Blog Post Content Formatting */
.blog-post-content p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
}
.blog-post-content h2, .blog-post-content h3 {
    color: var(--text);
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}
.blog-post-content h2 {
    font-size: 1.5rem;
}
.blog-post-content h3 {
    font-size: 1.25rem;
}
.blog-post-content ul, .blog-post-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}
.blog-post-content ul {
    list-style-type: disc;
}
.blog-post-content ol {
    list-style-type: decimal;
}
.blog-post-content li {
    margin-bottom: 0.5rem;
}
.blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1.25rem 0;
}
.blog-post-content blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 1rem;
    font-style: italic;
    color: #4a5568;
    margin: 1.5rem 0;
}

/* --- Site Categories Strip (Homepage Grid Design Matching Screenshot) --- */
.site-categories-strip {
    background: #e9ecef;
    padding: 1.25rem 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.site-categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.65rem;
}

.site-category-card {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 0.75rem 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: #212529;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease-in-out;
    min-height: 48px;
}

.site-category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #ced4da;
    color: #000000;
}

.site-category-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: #495057;
}

.site-category-card__icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
}

.site-category-card__icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.site-category-card__name {
    font-weight: 600;
    font-size: 0.88rem;
    line-height: 1.25;
    color: #343a40;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1200px) {
    .site-categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 840px) {
    .site-categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 540px) {
    .site-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .site-category-card {
        padding: 0.65rem 0.75rem;
    }
}

/* ==========================================================================
   Modern Native Mobile App Styling (UI Overhaul)
   ========================================================================== */

/* Glassmorphism Header Bar */
.site-header-bar {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Mobile Bottom App Navigation Bar */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    z-index: 999;
    align-items: center;
    justify-content: space-around;
    padding: 0 0.5rem;
}

.mobile-bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1;
    height: 100%;
    background: transparent;
    border: none;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-bottom-nav__item svg {
    stroke-width: 2;
    transition: transform 0.2s ease, stroke 0.2s ease;
}

.mobile-bottom-nav__item:active {
    transform: scale(0.92);
}

.mobile-bottom-nav__item.is-active,
.mobile-bottom-nav__item:hover {
    color: var(--accent);
}

.mobile-bottom-nav__item.is-active svg {
    stroke: var(--accent);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }

    body {
        padding-bottom: 64px;
    }

    .site-footer-bar {
        padding-bottom: 5.5rem;
    }

    /* Mobile Header & Search Bar Pill */
    .header-search-form .search-wrapper input[type="search"] {
        border-radius: 999px;
        padding-left: 2.25rem;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: 0.75rem center;
        background-size: 16px 16px;
    }

    .header-search-submit {
        border-radius: 999px;
        padding: 0.6rem 1.25rem;
    }

    /* Raise GDPR Cookie trigger & banner above mobile bottom nav */
    #gdpr-cookie-trigger {
        bottom: 74px !important;
        left: 16px !important;
    }

    #gdpr-banner {
        bottom: 74px !important;
        left: 16px !important;
        right: 16px !important;
    }

    /* Mobile Product Page Offer Cards */
    .pc-offer-row {
        border-radius: 14px;
        border: 1px solid var(--border);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
        margin-bottom: 0.75rem;
    }

    .pc-offer-row__avatar {
        width: 2.75rem;
        height: 2.75rem;
        border-radius: 10px;
        font-size: 1.1rem;
    }

    /* Mobile Category Cards */
    .site-category-card {
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    }
}

/* --- Lazy Load & Load More Infinite Scroll Animation --- */
.is-lazy-hidden {
    display: none !important;
}

@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.load-more-btn.pulse-attention {
    animation: btnPulse 1.8s infinite ease-in-out;
}

@keyframes btnPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.45);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(59, 130, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

/* --- Google Ads Responsive Containers & Anti-Flicker Scroll Protection --- */
.google-ad-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 1.5rem auto;
    text-align: center;
    clear: both;
    position: relative;
    z-index: 1;
}

.google-ad-container {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
    box-sizing: border-box;
}

.google-ad-label {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin-bottom: 0.35rem;
    text-align: center;
    user-select: none;
}

.google-ad-content {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
    box-sizing: border-box;
    min-height: 50px;
    contain: layout paint;
}

.google-ad-content ins.adsbygoogle {
    display: block !important;
    margin: 0 auto !important;
    max-width: 100% !important;
}

@media (max-width: 640px) {
    .google-ad-wrapper {
        margin: 1rem auto;
        padding: 0 0.5rem;
    }
    .google-ad-content {
        min-height: 50px;
    }
}
