/* ==========================================================================
   ENTERPRISE E-COMMERCE & CLASSIFIEDS DESIGN SYSTEM (CORE FRAMEWORK v2.0)
   Modern, Clean, High-Performance Vanilla CSS Architecture
   ========================================================================== */

/* ==========================================================================
   1. FONT DEFINITIONS & PERFORMANCE OPTIMIZATIONS
   ========================================================================== */
@font-face {
    font-family: 'Phosphor';
    src: url('https://cdn.jsdelivr.net/npm/@phosphor-icons/web@2.0.3/src/regular/Phosphor.woff2') format('woff2');
    font-display: swap !important;
}
@font-face {
    font-family: 'Phosphor-Bold';
    src: url('https://cdn.jsdelivr.net/npm/@phosphor-icons/web@2.0.3/src/bold/Phosphor-Bold.woff2') format('woff2');
    font-display: swap !important;
}
@font-face {
    font-family: 'Phosphor-Fill';
    src: url('https://cdn.jsdelivr.net/npm/@phosphor-icons/web@2.0.3/src/fill/Phosphor-Fill.woff2') format('woff2');
    font-display: swap !important;
}

/* CLS apsauga: rezervuojame plotį piktogramoms prieš joms užsikraunant */
.main-header i,
.sidebar-cat-list i,
.listing-category-badge i,
.category-title-text i,
.listing-img-overlay i,
.listing-footer-row i,
.meta-item i {
    display: inline-block;
    width: 1.1em;
    min-width: 1.1em;
    line-height: 1;
    text-align: center;
    vertical-align: middle;
}

/* ==========================================================================
   2. DESIGN TOKENS & CSS CUSTOM PROPERTIES (DEFAULT FALLBACKS)
   ========================================================================== */
:root {
    /* Brand & Layout Colors */
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary: #475569;
    --dark: #0f172a;
    --light: #f8fafc;
    --white: #ffffff;
    --danger: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;
    --border: #e2e8f0;
    --input-bg: #ffffff;

    /* Theme Layout Tokens (Dinamiškai perrašomi per header.php) */
    --header-bg: #ffffff;
    --header-text: #0f172a;
    --header-icon: #2563eb;
    --body-bg: #f8fafc;
    --body-text: #334155;
    --footer-bg: #0f172a;
    --footer-title: #ffffff;
    --footer-text: #94a3b8;
    --footer-about: #94a3b8;
    --footer-menu: #94a3b8;
    --footer-contacts: #94a3b8;
    --footer-copyright: #94a3b8;

    /* E-Commerce Product Card Tokens */
    --prod-card-bg: #ffffff;
    --prod-card-border: #e2e8f0;
    --prod-card-title: #0f172a;
    --prod-card-price: #2563eb;
    --prod-card-old-price: #94a3b8;
    --prod-card-cat: #2563eb;
    --prod-card-text: #64748b;
    --prod-card-icon: #64748b;
    --prod-card-btn-bg: #2563eb;
    --prod-card-btn-icon: #ffffff;
    --prod-card-sale-bg: #ef4444;
    --prod-card-sale-text: #ffffff;
    --prod-stock-in-bg: #dcfce7;
    --prod-stock-in-text: #166534;
    --prod-stock-low-bg: #fef9c3;
    --prod-stock-low-text: #854d0e;
    --prod-stock-out-bg: #fee2e2;
    --prod-stock-out-text: #991b1b;

    /* Classified Ads Tokens */
    --ads-card-bg: #ffffff;
    --ads-card-border: #e2e8f0;
    --ads-card-title: #0f172a;
    --ads-card-price: #ef4444;
    --ads-card-icon: #64748b;
    --ads-card-text: #64748b;
    --vip-bg: #ffffff;
    --vip-border: #fbbf24;
    --highlighted-bg: #fdf2f8;
    --highlighted-border: #fce7f3;

    /* Blog Card Tokens */
    --blog-card-bg: #ffffff;
    --blog-card-border: #e2e8f0;
    --blog-card-title: #0f172a;
    --blog-card-cat: #2563eb;
    --blog-card-text: #64748b;
    --blog-card-icon: #64748b;

    /* Typography & Sizing */
    --font-main: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --header-height: 80px;
    --radius: 16px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 15px 30px -5px rgba(15, 23, 42, 0.12);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   3. RESET & BASE TYPOGRAPHY
   ========================================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--body-bg);
    color: var(--body-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

ul {
    list-style: none;
}

/* ==========================================================================
   4. GLOBAL CONTAINERS & GRID SYSTEM
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.mb-20 { margin-bottom: 20px; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.hidden { display: none !important; }

/* Page Builder Responsive Column Engine */
.builder-grid-container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

.builder-column {
    flex: 0 0 100%;
    max-width: 100%;
    box-sizing: border-box;
    order: var(--order-desktop, 1);
}

@media (min-width: 993px) {
    .builder-column.col-1-1 { flex: 0 0 100%; max-width: 100%; }
    .builder-column.col-1-2 { flex: 0 0 calc(50% - 15px); max-width: calc(50% - 15px); }
    .builder-column.col-1-3 { flex: 0 0 calc(33.333% - 20px); max-width: calc(33.333% - 20px); }
    .builder-column.col-2-3 { flex: 0 0 calc(66.666% - 10px); max-width: calc(66.666% - 10px); }
    .builder-column.col-1-4 { flex: 0 0 calc(25% - 22.5px); max-width: calc(25% - 22.5px); }
}

/* ==========================================================================
   5. BUTTON & BADGE COMPONENTS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: var(--transition);
    text-decoration: none;
    box-sizing: border-box;
    line-height: 1.2;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff !important;
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

.btn-outline {
    background: transparent;
    border-color: var(--border);
    color: var(--dark);
}
.btn-outline:hover {
    background: var(--light);
    border-color: var(--secondary);
    color: var(--dark);
}

.btn-icon {
    padding: 10px;
    border-radius: 50%;
    min-width: 44px;
    min-height: 44px;
}

/* Badges & Status Pills */
.badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    line-height: 1.2;
}

.badge-sale { background: var(--danger); color: #ffffff; }
.badge-new { background: var(--success); color: #ffffff; }
.badge-discount {
    background: #dc2626;
    color: #ffffff;
    font-weight: 800;
    border-radius: 6px;
    padding: 4px 8px;
}

.pill {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.pill-new { background: #eff6ff; color: #1e40af; }
.pill-vip { background: #fef9c3; color: #854d0e; }
.pill-highlighted { background: #fce7f3; color: #9d174d; }
.pill-popular { background: #e0f7fa; color: #0f766e; }

.status {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.status-published, .status-active, .status-completed { background: #dcfce7; color: #166534; }
.status-draft, .status-pending { background: #fef3c7; color: #92400e; }
.status-cancelled, .status-inactive, .status-hidden { background: #fee2e2; color: #991b1b; }

/* ==========================================================================
   6. FORM CONTROLS & INPUT SYSTEM
   ========================================================================== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 10px 16px;
    background: var(--input-bg, #ffffff);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--dark);
    transition: var(--transition);
    box-sizing: border-box;
}
[data-theme="dark"] .form-control {
    color: #f8fafc !important;
    background-color: var(--input-bg) !important;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* ==========================================================================
   7. SURFACE & CARD ARCHITECTURE
   ========================================================================== */
.card {
    background: var(--card-bg, #ffffff);
    color: var(--body-text);
    border-radius: var(--radius);
    padding: 24px;
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow-sm);
    box-sizing: border-box;
}

.card-table {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}
.card-table table {
    width: 100%;
    border-collapse: collapse;
}
.card-table th, .card-table td {
    text-align: left;
    padding: 14px 18px;
}

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 0.92rem;
}
.alert-success { background: #dcfce7; color: #166534; border: 1.5px solid #bbf7d0; }
.alert-danger { background: #fee2e2; color: #991b1b; border: 1.5px solid #fecaca; }
/* ==========================================================================
   FOOTER COMPONENT ARCHITECTURE (DYNAMIC THEME COMPLIANT)
   ========================================================================== */
.main-footer {
    background-color: var(--footer-bg, #0f172a) !important;
    color: var(--footer-text, #94a3b8) !important;
    padding: 60px 0 30px 0;
    margin-top: auto;
    width: 100%;
}

.main-footer .footer-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    gap: 30px !important;
    width: 100% !important;
}

.main-footer .footer-column {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* 1. Antraštės */
.main-footer .footer-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--footer-title, #ffffff) !important;
    letter-spacing: -0.3px;
}

/* 2. Apie mus tekstas */
.main-footer .footer-about-text {
    color: var(--footer-about, var(--footer-text, #94a3b8)) !important;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* 3. Meniu nuorodos */
.main-footer .footer-links {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.main-footer .footer-links li a {
    color: var(--footer-menu, var(--footer-text, #94a3b8)) !important;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}

.main-footer .footer-links li a:hover {
    color: var(--primary-hover, #ffffff) !important;
    padding-left: 4px;
}

/* 4. Kontaktai */
.main-footer .footer-contact-list {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.main-footer .footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--footer-contacts, var(--footer-text, #94a3b8)) !important;
}

.main-footer .footer-contact-list li a {
    color: var(--footer-contacts, var(--footer-text, #94a3b8)) !important;
    text-decoration: none;
    transition: color 0.2s;
}

.main-footer .footer-contact-list li a:hover {
    color: var(--primary-hover, #ffffff) !important;
}

.main-footer .footer-contact-list li i {
    color: var(--footer-contacts, var(--footer-text, #94a3b8));
    font-size: 1.15rem;
    flex-shrink: 0;
}

/* 5. Socialiniai tinklai */
.main-footer .footer-socials {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.main-footer .footer-socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.25s ease;
    text-decoration: none;
}

.main-footer .footer-socials a:hover {
    background: var(--primary, #2563eb);
    color: #ffffff !important;
    border-color: var(--primary, #2563eb);
    transform: translateY(-3px);
}

/* 6. Custom HTML blokas */
.main-footer .footer-custom-html {
    color: var(--footer-text, #94a3b8) !important;
    font-size: 0.9rem;
    line-height: 1.7;
}

.main-footer .footer-custom-html a {
    color: var(--primary, #2563eb);
    text-decoration: underline;
}

/* 7. Bottom Bar & Copyright */
.main-footer .footer-bottom {
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.main-footer .footer-copyright {
    font-size: 0.85rem;
    color: var(--footer-copyright, var(--footer-text, #94a3b8)) !important;
}

.main-footer .footer-payments {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.main-footer .ssl-secure {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    letter-spacing: 0.5px;
}
/* ==========================================================================
   8. HEADER & NAVIGATION ARCHITECTURE
   ========================================================================== */
.main-header {
    background-color: var(--header-bg);
    color: var(--header-text);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    gap: 20px;
}

.logo {
    display: inline-flex;
    align-items: center;
    height: 100%;
    min-height: 44px;
    max-height: var(--header-height);
}

.logo img {
    max-width: 100%;
    height: auto;
    max-height: 70px;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes logoElasticPop {
    0% { transform: scale(1); }
    40% { transform: scale(1.12); }
    70% { transform: scale(1.06); }
    100% { transform: scale(1.08); }
}

@media (hover: hover) {
    .logo:hover img {
        animation: logoElasticPop 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 24px;
}

.main-nav .nav-link {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--header-text);
    padding: 8px 0;
    position: relative;
}
.main-nav .nav-link:hover {
    color: var(--primary-hover);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-actions .action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--header-text);
    gap: 4px;
    cursor: pointer;
}

.header-actions .action-btn i {
    font-size: 1.4rem;
    color: var(--header-icon);
}

.header-actions .action-btn .label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Nav Drawer & Overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.5);
    z-index: 99998;
    display: none;
}
.nav-overlay.active { display: block; }

/* ==========================================================================
   9. BREADCRUMB NAVIGATION
   ========================================================================== */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
    margin: 20px 0;
    padding: 0;
    background: transparent;
}
.breadcrumb a {
    color: var(--secondary);
}
.breadcrumb a:hover {
    color: var(--primary);
}
.breadcrumb i {
    font-size: 0.75rem;
    color: #94a3b8;
}
.breadcrumb span {
    color: var(--dark);
    font-weight: 700;
}
.breadcrumb span::after { display: none !important; }

/* ==========================================================================
   10. E-COMMERCE PRODUCT CARDS & MATRICES
   ========================================================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    width: 100%;
    margin: 30px 0;
}

.product-card,
.product-card-enterprise,
.product-card-unified {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--prod-card-bg);
    border: 1.5px solid var(--prod-card-border);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.02);
    cursor: pointer;
    width: 100%;
}

.product-card:hover,
.product-card-enterprise:hover,
.product-card-unified:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.08);
}

.product-image-wrapper,
.product-image-container,
.listing-image-container {
    width: 100%;
    aspect-ratio: 16/10;
    position: relative;
    overflow: hidden;
    background: #f8fafc;
    flex-shrink: 0;
    border-bottom: 1.5px solid var(--border);
}

.product-img-zoom,
.listing-img-zoom {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover .product-img-zoom,
.product-card-unified:hover .listing-img-zoom {
    transform: scale(1.06);
}

/* 1. Standalone Wishlist mygtukas (kai nėra overlay konteinerio) */
.wishlist-btn {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    border: 1px solid var(--border) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 10 !important;
    transition: all 0.2s ease !important;
    color: var(--secondary) !important;
}
.wishlist-btn:hover {
    transform: scale(1.1) !important;
    color: var(--danger) !important;
    background: #ffffff !important;
}
.wishlist-btn.active {
    color: var(--danger) !important;
}

/* 2. Mygtukai virš nuotraukos (Konteineryje .listing-img-overlay - greta vienas kito) */
.listing-img-overlay {
    position: absolute !important;
    inset: 0 !important;
    background: rgba(15, 23, 42, 0.25) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    z-index: 10 !important;
    pointer-events: none !important;
}

.listing-card-premium:hover .listing-img-overlay,
article.listing-card-premium:hover .listing-img-overlay,
.product-card:hover .listing-img-overlay,
.product-card-unified:hover .listing-img-overlay {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.listing-overlay-btn {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    border: 1px solid var(--border) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: var(--dark) !important;
    font-size: 1.2rem !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    flex-shrink: 0 !important;
}

.listing-overlay-btn:hover {
    transform: scale(1.12) !important;
    background: #ffffff !important;
    color: var(--primary) !important;
}

.listing-overlay-btn.active,
.listing-overlay-btn:hover i.ph-heart {
    color: var(--danger) !important;
}

/* Product Info */
.product-content-container,
.listing-content-area {
    padding: 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-main-title a,
.listing-title-text a {
    color: var(--prod-card-title);
    font-weight: 800;
    font-size: 1.05rem;
    line-height: 1.35;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price-current,
.listing-price-val {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--prod-card-price);
    letter-spacing: -0.5px;
}

/* ==========================================================================
   11. CLASSIFIED ADS CARDS (UNIFIED)
   ========================================================================== */
.listing-card-premium {
    display: flex;
    background: var(--ads-card-bg, #ffffff);
    border: 1.5px solid var(--ads-card-border, #e2e8f0);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    min-height: 190px;
    width: 100%;
}

.listing-card-premium:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.08);
}

/* 1. NUOTRAUKOS PRITRAUKIMAS UŽVEDUS PELĘ (HOVER ZOOM) */
.listing-card-premium .listing-img-zoom,
article.listing-card-premium .listing-img-zoom {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.listing-card-premium:hover .listing-img-zoom,
article.listing-card-premium:hover .listing-img-zoom {
    transform: scale(1.08) !important;
}

/* 2. VIP IR PREMIUM ŽENKLELIS ANT NUOTRAUKOS (TOP-LEFT) */
.listing-premium-badge {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #ffffff !important;
    font-size: 0.7rem !important;
    font-weight: 900 !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    z-index: 5 !important;
    line-height: 1.2 !important;
}

/* 3. PERŽIŪROS IR ŠIRDELĖS MYGTUKŲ UŽSLINKIMAS ANT NUOTRAUKOS */
.listing-img-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 4;
}

.listing-card-premium:hover .listing-img-overlay,
article.listing-card-premium:hover .listing-img-overlay {
    opacity: 1;
}

/* 4. STATUSŲ UŽSKLANDOS */
.listing-card-premium.is-vip {
    background: var(--vip-bg, #ffffff);
    border: 2px solid var(--vip-border, #fbbf24);
}
.listing-card-premium.is-highlighted {
    background: var(--highlighted-bg, #fdf2f8);
    border: 2px solid var(--highlighted-border, #fce7f3);
}

.sold-overlay, .reserved-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 8;
    backdrop-filter: blur(2px);
}
.sold-overlay { background: rgba(15, 23, 42, 0.6); }
.reserved-overlay { background: rgba(15, 23, 42, 0.5); }

/* ==========================================================================
   12. CART & CHECKOUT SYSTEMS
   ========================================================================== */
.cart-table {
    width: 100%;
    border-collapse: collapse;
}
.cart-table th {
    text-align: left;
    padding: 16px;
    border-bottom: 2px solid var(--border);
    color: var(--secondary);
    font-size: 0.82rem;
    text-transform: uppercase;
}
.cart-table td {
    padding: 20px 16px;
    border-bottom: 1px solid var(--border);
}

.quantity-picker {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: #ffffff;
    overflow: hidden;
}
.quantity-picker button {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: bold;
    color: var(--secondary);
    transition: background 0.2s;
}
.quantity-picker button:hover {
    background: var(--light);
}
.quantity-picker input {
    width: 45px;
    text-align: center;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    outline: none;
}

.checkout-grid,
.checkout-layout-grid {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 35px;
    align-items: start;
}

.interactive-option-card {
    display: block;
    cursor: pointer;
    user-select: none;
}
.interactive-option-card input {
    display: none;
}
.option-card-body {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    border-radius: 14px;
    border: 2px solid var(--border);
    background: #ffffff;
    transition: all 0.2s ease;
}
.interactive-option-card:hover .option-card-body {
    border-color: #cbd5e1;
    background: #f8fafc;
}
.interactive-option-card input:checked + .option-card-body,
.interactive-option-card.selected .option-card-body {
    border-color: var(--primary);
    background: #eff6ff;
}

/* ==========================================================================
   13. CUSTOMER ACCOUNT AREA
   ========================================================================== */
.account-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

.account-sidebar-card {
    background: #ffffff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    position: sticky;
    top: 100px;
    box-shadow: var(--shadow-sm);
}

.messenger-box {
    display: grid;
    grid-template-columns: 340px 1fr;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    background: white;
    height: 620px;
    box-shadow: var(--shadow-md);
}

/* Order timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: #e2e8f0;
}
.timeline-item {
    position: relative;
    padding-bottom: 25px;
}
.timeline-marker {
    position: absolute;
    left: -30px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #cbd5e1;
    border: 3px solid #fff;
    z-index: 1;
    box-shadow: 0 0 0 1px #e2e8f0;
}
.timeline-marker.status-completed { background: var(--success); }
.timeline-marker.status-pending { background: #f59e0b; }
.timeline-marker.status-cancelled { background: var(--danger); }

/* ==========================================================================
   14. PAGE BUILDER & DYNAMIC MODULES BASE
   ========================================================================== */
.page-layout-with-sidebar {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    width: 100%;
}
.page-layout-with-sidebar.sidebar-right {
    grid-template-columns: minmax(0, 1fr) 360px;
}

.page-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.page-main-content {
    min-width: 0;
    width: 100%;
}

.entry-content {
    line-height: 1.8;
    color: var(--body-text);
    font-size: 1.05rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.entry-content ul { list-style: disc; padding-left: 25px; margin: 12px 0 18px; }
.entry-content ol { list-style: decimal; padding-left: 25px; margin: 12px 0 18px; }
.entry-content p { margin-bottom: 16px; }

/* ==========================================================================
   15. GLOBAL LIGHTBOX ENGINE (ZOOM TOOLS & STABLE ARROWS)
   ========================================================================== */
.glb-modal {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(10, 15, 30, 0.97) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    z-index: 9999999 !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    user-select: none !important;
    overflow: hidden !important;
}

.glb-stage {
    position: relative !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 85vh !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.glb-image {
    max-width: 90vw !important;
    max-height: 82vh !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 12px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8) !important;
    display: block !important;
}

.glb-caption {
    color: #ffffff !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    margin-top: 14px !important;
    text-align: center !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8) !important;
}

/* Baziniai Lightbox mygtukai */
.glb-btn {
    position: absolute !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    width: 48px !important;
    height: 48px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 10000100 !important;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease !important;
    padding: 0 !important;
}

.glb-btn i {
    font-size: 1.4rem !important;
    line-height: 1 !important;
    pointer-events: none !important;
}

.glb-close { 
    top: 20px !important; 
    right: 20px !important; 
}
.glb-close:hover { 
    background: var(--danger, #ef4444) !important; 
    border-color: var(--danger, #ef4444) !important;
    transform: scale(1.08) !important; 
}

/* RODYKLIŲ CENTRAVIMAS IR HOVER FIKSAS (Nebenušoka žemyn!) */
.glb-prev { 
    top: 50% !important; 
    left: 25px !important; 
    transform: translateY(-50%) !important; 
}
.glb-prev:hover { 
    background: var(--primary) !important; 
    border-color: var(--primary) !important; 
    transform: translateY(-50%) scale(1.1) !important; 
}

.glb-next { 
    top: 50% !important; 
    right: 25px !important; 
    transform: translateY(-50%) !important; 
}
.glb-next:hover { 
    background: var(--primary) !important; 
    border-color: var(--primary) !important; 
    transform: translateY(-50%) scale(1.1) !important; 
}

/* Priartinimo (Zoom) įrankių juosta apačioje dešinėje */
.glb-zoom-bar {
    position: absolute !important;
    bottom: 20px !important;
    right: 25px !important;
    display: flex !important;
    gap: 8px !important;
    background: rgba(15, 23, 42, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 6px 10px !important;
    border-radius: 12px !important;
    z-index: 10000100 !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

.glb-zoom-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    font-size: 1.15rem !important;
    width: 36px !important;
    height: 36px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
}

.glb-zoom-btn:hover {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    transform: scale(1.05) !important;
}

/* ==========================================================================
   16. CONSOLIDATED RESPONSIVE MATRIX
   ========================================================================== */

/* --------------------------------------------------------------------------
   16.1 TABLETS & SMALL DESKTOPS (769px - 1024px)
   -------------------------------------------------------------------------- */
@media (min-width: 769px) and (max-width: 1024px) {
    .checkout-grid,
    .checkout-layout-grid,
    .account-grid,
    .page-layout-with-sidebar {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }

    .page-sidebar {
        position: static;
        width: 100%;
        max-width: 100%;
    }

    .listing-card-premium {
        flex-direction: row !important;
    }
    .listing-image-container {
        width: 240px !important;
        height: auto !important;
        min-height: 180px !important;
    }
}

/* --------------------------------------------------------------------------
   16.2 MOBILE PHONES (<= 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .container {
        padding: 0 15px !important;
    }

    /* Header Mobile Adjustments */
    .main-header .nav-wrapper {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        height: auto !important;
        padding: 8px 0 !important;
    }
    .main-header .logo {
        height: 48px !important;
    }
    .main-header .header-actions .label {
        display: none !important;
    }

    /* Product & Listing Cards */
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        margin: 20px 0 !important;
    }

    .listing-card-premium {
        flex-direction: column !important;
        width: 100% !important;
    }
    .listing-image-container {
        width: 100% !important;
        height: 200px !important;
        max-height: 200px !important;
        border-right: none !important;
        border-bottom: 1.5px solid var(--border) !important;
    }
    .listing-image-container img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* Product Detail Page */
    .product-detail-grid {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }
    .product-gallery .main-product-stage {
        height: 350px !important;
    }

    /* Checkout & Cart */
    .checkout-grid,
    .checkout-layout-grid,
    .account-grid,
    .page-layout-with-sidebar {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }
    .checkout-summary-column {
        order: -1;
    }
    .form-row-2 {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    /* Account Messenger */
    .messenger-box {
        display: flex !important;
        flex-direction: column !important;
        height: 600px !important;
    }
    .messenger-box > div:first-child {
        height: 180px !important;
        border-right: none !important;
        border-bottom: 1.5px solid var(--border) !important;
    }

    /* Footer Mobile */
    .main-footer .footer-grid {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 30px !important;
    }
    .main-footer .footer-column {
        width: 100% !important;
        align-items: center !important;
    }
}

/* --------------------------------------------------------------------------
   16.3 SMALL MOBILE SCREENS (<= 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr !important;
    }
    .btn {
        width: 100%;
    }
}
/* ============================================================
   GDPR COOKIE BANNER & MODAL SUITE (RESPONSIVE)
   ============================================================ */
.gdpr-banner {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: #ffffff !important;
    border-top: 1.5px solid var(--border, #e2e8f0) !important;
    box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.12) !important;
    padding: 16px 0 !important;
    z-index: 99999999 !important;
    box-sizing: border-box !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease !important;
    animation: gdprSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes gdprSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.gdpr-banner.hide {
    transform: translateY(100%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.gdpr-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 24px !important;
    width: 100% !important;
    max-width: 1480px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
}

.gdpr-content {
    flex: 1 1 500px !important;
    min-width: 0 !important;
}

.gdpr-content h3 {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    color: var(--dark, #0f172a) !important;
    margin: 0 0 4px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    line-height: 1.3 !important;
}

.gdpr-content h3 i {
    color: #f59e0b !important;
    font-size: 1.25rem !important;
}

.gdpr-content p {
    font-size: 0.88rem !important;
    color: var(--secondary, #475569) !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

.gdpr-actions {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-shrink: 0 !important;
}

.gdpr-actions .btn {
    height: 42px !important;
    padding: 0 22px !important;
    border-radius: 10px !important;
    font-size: 0.88rem !important;
    font-weight: 800 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
}

.gdpr-actions .btn-primary {
    background: var(--primary, #2563eb) !important;
    color: #ffffff !important;
    border: 1.5px solid var(--primary, #2563eb) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
}

.gdpr-actions .btn-primary:hover {
    background: var(--primary-hover, #1d4ed8) !important;
    border-color: var(--primary-hover, #1d4ed8) !important;
    transform: translateY(-2px) !important;
}

.gdpr-actions .btn-outline {
    background: #ffffff !important;
    color: var(--dark, #0f172a) !important;
    border: 1.5px solid var(--border, #cbd5e1) !important;
}

.gdpr-actions .btn-outline:hover {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
}

/* GDPR MODALINIS LANGAS */
.gdpr-modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(15, 23, 42, 0.75) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 100000000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

.gdpr-modal.card {
    background: #ffffff !important;
    border-radius: 20px !important;
    max-width: 520px !important;
    width: 100% !important;
    padding: 28px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35) !important;
    border: 1.5px solid var(--border, #e2e8f0) !important;
    position: relative !important;
    box-sizing: border-box !important;
}

.gdpr-modal-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 20px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid var(--border, #f1f5f9) !important;
}

.gdpr-modal-header h2 {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: var(--dark, #0f172a) !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.gdpr-modal-close {
    background: none !important;
    border: none !important;
    font-size: 1.8rem !important;
    line-height: 1 !important;
    color: var(--secondary, #64748b) !important;
    cursor: pointer !important;
    padding: 0 !important;
}

.gdpr-options {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-bottom: 24px !important;
}

.gdpr-option {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 12px 14px !important;
    background: #f8fafc !important;
    border: 1.5px solid var(--border, #e2e8f0) !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.gdpr-option:hover {
    border-color: var(--primary, #2563eb) !important;
    background: #eff6ff !important;
}

.gdpr-option input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    margin-top: 2px !important;
    accent-color: var(--primary, #2563eb) !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
}

.gdpr-option label {
    cursor: pointer !important;
    font-size: 0.88rem !important;
    color: var(--dark, #0f172a) !important;
    line-height: 1.4 !important;
    user-select: none !important;
}

.gdpr-option label small {
    color: var(--secondary, #64748b) !important;
    font-size: 0.78rem !important;
}

.gdpr-modal-footer {
    display: flex !important;
    gap: 10px !important;
}

/* PRITAIKYMAS TELEFONAMS */
@media (max-width: 768px) {
    .gdpr-banner {
        padding: 14px 0 !important;
    }

    .gdpr-container {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 14px !important;
        padding: 0 16px !important;
    }

    .gdpr-content {
        flex: 1 1 auto !important;
    }

    .gdpr-content h3 {
        font-size: 0.98rem !important;
    }

    .gdpr-content p {
        font-size: 0.82rem !important;
        line-height: 1.4 !important;
    }

    .gdpr-actions {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    .gdpr-actions .btn {
        width: 100% !important;
        height: 42px !important;
        font-size: 0.82rem !important;
        padding: 0 10px !important;
        justify-content: center !important;
    }

    .gdpr-modal.card {
        padding: 20px !important;
    }

    .gdpr-modal-footer {
        flex-direction: column !important;
    }

    .gdpr-modal-footer .btn {
        width: 100% !important;
    }
}
/* ============================================================
   PORAŠTĖS (FOOTER) APAČIOS CENTRAVIMAS TELEFONUOSE
   ============================================================ */
@media (max-width: 768px) {
    .main-footer .footer-bottom {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 16px !important;
        margin-top: 35px !important;
    }

    .main-footer .footer-copyright {
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
    }

    .main-footer .footer-copyright a {
        justify-content: center !important;
        text-align: center !important;
    }

    .main-footer .footer-payments {
        justify-content: center !important;
        width: 100% !important;
    }
}
/* ============================================================
   ENTERPRISE DARK MODE SYSTEM ADAPTERS
   ============================================================ */
[data-theme="dark"] body {
    background-color: var(--body-bg) !important;
    color: var(--body-text) !important;
}

[data-theme="dark"] .main-header {
    border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .header-search .search-form {
    background: #1e293b !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .header-search .search-form input {
    color: #f8fafc !important;
}

[data-theme="dark"] .main-nav .nav-dropdown-mobile,
[data-theme="dark"] .main-nav ul.nav-dropdown-mobile {
    background: #111827 !important;
    border-color: #1f2937 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .main-nav .nav-dropdown-mobile li a {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .main-nav .nav-dropdown-mobile li a:hover {
    background: #1f2937 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .account-sidebar-card,
[data-theme="dark"] .messenger-box,
[data-theme="dark"] .option-card-body,
[data-theme="dark"] .quantity-picker {
    background: var(--card-bg) !important;
    border-color: var(--border) !important;
}

[data-theme="dark"] .quantity-picker input {
    background: transparent !important;
    color: #ffffff !important;
}

[data-theme="dark"] .breadcrumb {
    color: #94a3b8 !important;
}

[data-theme="dark"] .breadcrumb span {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .table tr,
[data-theme="dark"] .card-table tr {
    background: transparent !important;
    border-color: var(--border) !important;
}

[data-theme="dark"] .table th,
[data-theme="dark"] .card-table th {
    background: #111827 !important;
    color: #94a3b8 !important;
    border-color: var(--border) !important;
}

[data-theme="dark"] .table td,
[data-theme="dark"] .card-table td {
    border-color: var(--border) !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .gdpr-banner,
[data-theme="dark"] .gdpr-modal.card {
    background: #0f172a !important;
    border-color: #1e293b !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .gdpr-option {
    background: #1e293b !important;
    border-color: #334155 !important;
}