/*
Theme Name: CarAudio
Theme URI: https://caraudio.md
Author: CarAudio Team
Author URI: https://caraudio.md
Description: Покращена професійна тема (v2.3.5 - Mobile Grid Fix) для інтернет-магазину автозвуку з підтримкою WooCommerce, багатомовності (RU/UA/RO) та 4 кольорових схем
Version: 2.3.5
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: caraudio
Tags: e-commerce, woocommerce, automotive, multilingual, custom-colors, responsive-layout
*/

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.4s ease;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== COLOR SCHEME SELECTOR ===== */
.scheme-selector {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1000;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
}

.scheme-selector.collapsed .scheme-content {
    display: none;
}

.scheme-toggle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    background: transparent;
}

.scheme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}

.scheme-toggle .icon {
    width: 22px;
    height: 22px;
}

.scheme-content {
    margin-top: 12px;
    border-radius: 16px;
    padding: 16px;
    max-width: 260px;
    animation: slideDown 0.3s ease;
    background: linear-gradient(135deg, #1C1C1Ef2, #1C1C1Ee6);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 138, 43, 0.25);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scheme-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.scheme-selector-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scheme-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
    opacity: 0.6;
}

.scheme-close:hover {
    opacity: 1;
    background: rgba(0,0,0,0.1);
}

.scheme-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 4px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    background: transparent;
    border: 1px solid transparent;
}

.scheme-btn:hover {
    transform: translateX(4px);
}

.scheme-btn.active {
    border-width: 2px;
}

.scheme-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    flex-shrink: 0;
}

.scheme-name {
    font-size: 12px;
    font-weight: 600;
}

.scheme-desc {
    font-size: 9px;
}

/* ===== TOP BAR ===== */
.top-bar {
    padding: 8px 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.top-bar-icon {
    width: 16px;
    height: 16px;
}

/* ===== CURRENCY DISPLAY ===== */
.currency-display {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 14px;
}

.currency-display .icon {
    width: 16px;
    height: 16px;
}

/* ===== HEADER ===== */
header {
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

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

.logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    text-decoration: none;
}


/* Logo images */
.logo-container img.site-logo {
    height: 50px;
    width: auto;
    display: block;
}
.mobile-logo img.site-logo-mobile {
    height: 36px;
    width: auto;
    display: block;
}
.footer-logo img.footer-site-logo {
    height: 45px;
    width: auto;
    display: block;
}
/* Mobile logo - hidden by default on desktop */
.mobile-logo {
    display: none;
}

.logo-container {
    height: 60px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    border-radius: 12px;
    transition: all 0.3s;
}


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

.mobile-logo img.site-logo-mobile {
    height: 36px;
    width: auto;
    display: block;
}

.footer-logo img.footer-site-logo {
    height: 45px;
    width: auto;
    display: block;
}

.logo-svg {
    width: 50px;
    height: 50px;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* ========================================
   BURGER MENU / CATALOG BUTTON - v2.3.0
   Redesigned for all devices (350px - desktop)
   ======================================== */
.burger-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--primary, #FF8C2B);
    border: none;
    cursor: pointer;
    padding: 10px 16px;
    margin: 0;
    z-index: 101;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(255, 140, 43, 0.3);
    position: relative;
    overflow: hidden;
}

.burger-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.burger-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 140, 43, 0.4);
}

.burger-btn:hover::before {
    opacity: 1;
}

.burger-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 140, 43, 0.3);
}

.burger-btn.active {
    background: var(--primary-hover, #e67d25);
}

.burger-btn-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 20px;
    height: 14px;
    flex-shrink: 0;
    position: relative;
}

.burger-btn-icon span {
    width: 100%;
    height: 2px;
    background: #FFFFFF;
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.burger-btn-icon span:nth-child(1) {
    width: 100%;
}

.burger-btn-icon span:nth-child(2) {
    width: 75%;
}

.burger-btn-icon span:nth-child(3) {
    width: 100%;
}

/* Animated X when active */
.burger-btn.active .burger-btn-icon span:nth-child(1) {
    transform: rotate(45deg) translateY(4px) translateX(4px);
    width: 100%;
}

.burger-btn.active .burger-btn-icon span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.burger-btn.active .burger-btn-icon span:nth-child(3) {
    transform: rotate(-45deg) translateY(-4px) translateX(4px);
    width: 100%;
}

.burger-btn-text {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    color: #FFFFFF;
    letter-spacing: 0.3px;
    display: none; /* Hidden on mobile by default */
}

/* ===== NAVIGATION ===== */
/* Navigation */
nav, #nav {
    padding: 14px 24px 0;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
    background: transparent;
}

.nav-link:hover {
    opacity: 0.8;
}

.nav-link.active,
.nav-link.catalog-btn {
    color: #FFF;
}

.icon {
    width: 14px;
    height: 14px;
}

/* ========================================
   SEARCH BAR - v2.3.0 Redesigned
   Full-featured search with live results
   ======================================== */
.search-bar, .search-box {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 14px 50px 14px 18px;
    border-radius: 12px;
    border: 2px solid var(--border, #E0E0E0);
    font-size: 14px;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    background: var(--surface, #fff);
    color: var(--text-primary, #1C1C1E);
}

.search-input::placeholder {
    color: var(--text-muted, #9CA3AF);
    transition: opacity 0.2s;
}

.search-input:focus {
    border-color: var(--primary, #FF8C2B);
    box-shadow: 0 0 0 4px rgba(255, 140, 43, 0.15);
}

.search-input:focus::placeholder {
    opacity: 0.6;
}

.search-icon, .search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    background: var(--primary, #FF8C2B);
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-icon:hover, .search-btn:hover {
    background: var(--primary-hover, #e67d25);
    transform: translateY(-50%) scale(1.05);
}

.search-icon:active, .search-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.search-icon svg {
    width: 18px;
    height: 18px;
    stroke: #FFFFFF;
}

.search-btn {
    padding: 8px;
}

.search-btn:hover {
    background: var(--primary-hover, #e67d25);
}

.search-btn .icon {
    width: 18px;
    height: 18px;
    stroke: #FFFFFF;
}

/* ===== HEADER ACTIONS ===== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.phone-block {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.phone-block > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.phone-block:hover {
    opacity: 0.9;
}

.phone-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.phone-label {
    font-size: 11px;
    opacity: 0.7;
    font-weight: 500;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.phone-number {
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.cart-btn {
    position: relative;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #FFF;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
    font-family: inherit;
    transition: all 0.2s;
}

.cart-btn:hover {
    opacity: 0.9;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 18px;
    margin-bottom: 32px;
    line-height: 1.6;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary, .hero-btn-primary {
    color: #FFF;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary:hover, .hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.btn-secondary, .hero-btn-secondary {
    background: transparent;
    padding: 14px 28px;
    border-radius: 12px;
    border: 2px solid;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    font-family: inherit;
}

.btn-secondary:hover, .hero-btn-secondary:hover {
    transform: translateY(-2px);
}

/* ===== CAR PICKER ===== */
.car-picker {
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.car-picker-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.car-picker-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
}

.form-select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 2px solid;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
    font-family: inherit;
}

.form-select:focus {
    border-width: 3px;
}

.form-select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.search-car-btn {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: none;
    color: #FFF;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
    transition: all 0.3s;
}

.search-car-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* ===== CATALOG SECTION ===== */
.catalog-section {
    padding: 80px 0;
}

.categories {
    padding: 50px 0;
}

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

.section-title {
    font-size: 36px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-badge, .badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.view-all {
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    transition: all 0.2s;
}

.view-all:hover {
    gap: 10px;
}

/* ===== CATEGORIES GRID ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.category-card {
    border-radius: 14px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    min-height: 160px;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

/* Category card with thumbnail */
.category-card.has-thumbnail {
    padding: 0;
    min-height: 200px;
}

.category-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.category-card.has-thumbnail:hover .category-thumbnail {
    transform: scale(1.08);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
    transition: background 0.3s ease;
}

.category-card.has-thumbnail:hover .category-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.2) 100%);
}

.category-content {
    position: relative;
    z-index: 2;
    margin-top: auto;
}

.category-card.has-thumbnail .category-content {
    padding: 20px;
    color: #fff;
}

.category-card.has-thumbnail .category-name {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.category-card.has-thumbnail .category-count {
    color: rgba(255,255,255,0.85);
}

.category-bg-icon {
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 70px;
    opacity: 0.08;
}

.category-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.category-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
}

.category-count {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.7;
}

/* ===== PRODUCTS GRID ===== */
.products {
    padding: 50px 0;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ===== UNIFIED PRODUCT CARDS (used by front-page, shop, related products) ===== */
.product-card {
    background: var(--surface, #FFFFFF);
    border: 2px solid var(--border, #E0E0E0);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.product-card:hover {
    border-color: var(--primary, #FF8C2B);
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #EF4444;
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    z-index: 10;
    line-height: 1;
}

.product-badge.out-of-stock-badge {
    background: #9CA3AF;
    left: auto;
    right: 16px;
}

.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    margin-bottom: 16px;
    background: var(--bg, #F0F0EC);
    overflow: hidden;
}

.product-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 4px 0 0 0;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-secondary, #6B7280);
}

.product-rating svg {
    flex-shrink: 0;
}

.product-rating-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary, #1C1C1E);
}

.product-reviews {
    font-size: 12px;
    color: var(--text-secondary, #6B7280);
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary, #1C1C1E);
    margin: 0 0 auto 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Product category (shown only on homepage & related products) */
.product-category {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text-secondary, #6B7280);
    margin: 0 0 6px 0;
}

.product-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-name a:hover {
    color: var(--primary, #FF8C2B);
}

/* Credit/installment CTA on product cards */
.credit-cta {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border, #E0E0E0);
}

.credit-btn {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 140, 43, 0.12);
    border: 1px solid rgba(255, 140, 43, 0.25);
    text-decoration: none;
    color: var(--text-primary, #1C1C1E);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.credit-btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 140, 43, 0.16);
    box-shadow: 0 10px 22px rgba(0,0,0,0.08);
}

.credit-btn__title {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
}

.credit-btn__sub {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary, #6B7280);
}

.credit-btn.is-demo,
.credit-btn[aria-disabled="true"] {
    cursor: default;
    pointer-events: none;
    opacity: 0.9;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 0;
    padding-top: 12px;
}

.product-pricing {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary, #FF8C2B);
    line-height: 1.2;
}

.product-old-price {
    font-size: 14px;
    text-decoration: line-through;
    color: var(--text-muted, #9CA3AF);
}

/* В корзину Button - Circle Style */
.add-to-cart {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF;
    background: var(--primary, #FF8C2B);
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.add-to-cart:hover {
    background: var(--primary-hover, #E67A20);
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(255, 140, 43, 0.35);
}

.add-to-cart.loading {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.add-to-cart.loading svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.add-to-cart.added {
    background: #10B981;
}

.add-to-cart.added svg {
    stroke: white;
}

.add-to-cart.out-of-stock {
    background: #9CA3AF;
    cursor: default;
}

.add-to-cart.out-of-stock:hover {
    transform: none;
    box-shadow: none;
}

/* ===== BENEFITS SECTION ===== */
.benefits-section {
    padding: 60px 0;
}

.benefits {
    padding: 60px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    max-width: 100%;
}

.benefit-card {
    padding: 32px 24px;
    border-radius: 16px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: all 0.3s;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.benefit-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.benefit-desc {
    font-size: 13px;
    line-height: 1.5;
}

/* ===== FOOTER ===== */
footer {
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    text-decoration: none;
}

.social-link:hover {
    transform: translateY(-2px);
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.footer-link:hover {
    opacity: 0.7;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.contact-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-info {
    font-size: 14px;
    line-height: 1.6;
}

.footer-bottom {
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-content h1 {
        font-size: 42px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    /* Product card tablet adjustments */
    .product-card {
        padding: 16px;
    }
    
    .product-image {
        margin-bottom: 12px;
    }
    
    .product-name {
        font-size: 14px;
    }
    
    .product-price {
        font-size: 18px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .car-picker-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav, #nav {
        display: none !important;
    }
    
    .top-bar-left {
        flex-direction: column;
        gap: 8px;
    }
    
    /* Hide logo on mobile */
    .logo {
        display: none;
    }
    
    /* Mobile header - 2 rows: Row 1: Logo + Burger + Search; Row 2: Phone + Cart */
    .header-inner {
        display: grid;
        grid-template-columns: auto auto 1fr;
        grid-template-rows: auto auto;
        gap: 10px 8px;
        align-items: center;
    }
    
    /* Row 1: Mobile Logo (first) */
    .mobile-logo {
        grid-column: 1;
        grid-row: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        justify-self: start;
        transition: opacity 0.2s ease;
    }
    
    /* Row 1: Burger (second) */
    .burger-btn {
        grid-column: 2;
        grid-row: 1;
        margin: 0;
        padding: 10px 12px;
        justify-self: start;
        width: fit-content;
        min-width: 44px;
        min-height: 44px;
        border-radius: 10px;
    }
    
    /* Row 1: Search (third) */
    .search-box {
        grid-column: 3;
        grid-row: 1;
        width: 100%;
        max-width: 100%;
    }
    
    .burger-btn-icon {
        width: 18px;
        height: 12px;
    }
    
    .burger-btn-text {
        display: none !important; /* Hide text on mobile */
    }
    
    .search-input {
        padding: 10px 44px 10px 14px;
        font-size: 14px;
        border-radius: 10px;
    }
    
    .search-icon {
        right: 4px;
        width: 34px;
        height: 34px;
        border-radius: 8px;
    }
    
    .search-icon svg {
        width: 16px;
        height: 16px;
    }
    
    /* Row 2: Phone + Cart - span full width and use flexbox */
    .phone-block {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: start;
    }
    
    .cart-btn {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: end;
        padding: 10px 16px;
    }
    
    .search-bar {
        max-width: 100%;
    }
    
    /* Compact phone block on mobile */
    .phone-block {
        font-size: 12px;
        gap: 10px;
        min-width: auto;
    }
    
    .phone-block > div {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    
    .phone-icon-box {
        width: 38px;
        height: 38px;
        flex-shrink: 0;
    }
    
    .phone-label {
        font-size: 10px;
        display: block;
        white-space: nowrap;
        line-height: 1.2;
        text-transform: uppercase;
    }
    
    .phone-number {
        font-size: 14px;
        font-weight: 700;
        white-space: nowrap;
        line-height: 1.2;
    }
    
    /* Cart button on mobile - show text */
    .cart-btn {
        font-size: 14px;
        gap: 8px;
    }
    
    .cart-btn svg {
        width: 20px;
        height: 20px;
    }
    
    /* Show cart text on mobile */
    #cartText {
        display: inline;
    }
    
    /* Reduce section padding on mobile */
    .hero {
        padding: 30px 0;
    }
    
    .categories,
    .products,
    .benefits {
        padding: 30px 0;
    }
    
    .section-header,
    .products-header {
        margin-bottom: 20px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .scheme-selector {
        top: auto;
        bottom: 20px;
        right: 20px;
    }
    
    .scheme-toggle {
        width: 44px;
        height: 44px;
    }
    
    .scheme-toggle .icon {
        width: 20px;
        height: 20px;
    }
    
    .scheme-content {
        max-width: 240px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 32px;
    }
    
    .categories-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }
/* ========================================
   IMPROVEMENTS v2.0.2 - ACCESSIBILITY & FIXES
   ======================================== */

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100000;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}

/* Screen reader text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Fix minimum font sizes */
.scheme-desc {
    font-size: 12px !important;
    line-height: 1.5;
}

/* Focus indicators */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #FF8C2B;
    outline-offset: 2px;
}

/* Touch targets for mobile */
@media (hover: none) and (pointer: coarse) {
    .scheme-toggle,
    .burger-btn,
    .action-btn,
    .nav-link,
    button,
    .button {
        min-width: 44px !important;
        min-height: 44px !important;
    }
}

/* Tablet and Desktop - Show "Каталог" text */
@media (min-width: 768px) {
    .burger-btn-text {
        display: block !important;
    }
    
    .burger-btn {
        padding: 12px 20px;
        gap: 10px;
    }
    
    .burger-btn-icon {
        width: 20px;
        height: 14px;
    }
    
    /* Reduce spacing in header */
    .header-inner {
        gap: 16px !important;
    }
    
    .logo {
        margin-right: 0 !important;
    }
    
    .burger-btn {
        margin-right: 0 !important;
    }
    
    /* Show cart text */
    #cartText {
        display: inline;
    }
}

/* Desktop - Further optimize spacing */
@media (min-width: 1024px) {
    .header-inner {
        gap: 24px !important;
    }
    
    .burger-btn {
        padding: 12px 24px;
        gap: 12px;
    }
    
    .burger-btn-icon {
        width: 22px;
        height: 16px;
    }
    
    .burger-btn-text {
        font-size: 15px;
    }
    
    .search-input {
        padding: 14px 54px 14px 20px;
        font-size: 15px;
    }
    
    .search-icon {
        width: 40px;
        height: 40px;
        right: 6px;
    }
}

/* Very narrow screens - optimize for 320px-350px */
@media (max-width: 350px) {
    .header-inner {
        gap: 6px 8px !important;
        padding: 10px 8px;
    }
    
    .logo svg {
        width: 140px !important;
        height: 40px !important;
    }
    
    .burger-btn {
        padding: 8px 10px !important;
        min-width: 40px !important;
        border-radius: 8px;
    }
    
    .burger-btn-icon {
        width: 16px !important;
        height: 11px !important;
    }
    
    .search-input {
        padding: 8px 38px 8px 10px !important;
        font-size: 13px !important;
        border-radius: 8px;
    }
    
    .search-icon {
        width: 30px !important;
        height: 30px !important;
        right: 3px;
        border-radius: 6px;
    }
    
    .search-icon svg {
        width: 14px !important;
        height: 14px !important;
    }
    
    .phone-block {
        gap: 8px;
    }
    
    .phone-icon-box {
        width: 32px !important;
        height: 32px !important;
    }
    
    .phone-number {
        font-size: 12px !important;
    }
    
    .phone-label {
        font-size: 8px !important;
    }
    
    .cart-btn {
        padding: 8px 10px !important;
        font-size: 12px !important;
        border-radius: 8px;
    }
    
    .cart-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .cart-badge {
        width: 18px;
        height: 18px;
        font-size: 9px;
        top: -4px;
        right: -4px;
    }
    
    /* Search results on very small screens */
    .search-results {
        left: 8px;
        right: 8px;
        max-height: 50vh;
    }
    
    .search-result-item {
        padding: 10px 12px;
        gap: 10px;
    }
    
    .search-result-image,
    .search-result-image-placeholder {
        width: 36px;
        height: 36px;
    }
    
    .search-result-title {
        font-size: 13px;
    }
    
    .search-result-price {
        font-size: 13px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Fix filter backdrop for mobile */
.filter-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.filter-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ========================================
   CATALOG MEGA MENU - Desktop/Tablet Version
   Multi-column layout with visible subcategories
   ======================================== */

.catalog-mega {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--surface, #fff);
    box-shadow: 0 8px 40px rgba(0,0,0,0.15);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 80vh;
    overflow: hidden;
    display: none;
}

.catalog-mega.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.catalog-mega-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    max-height: 80vh;
}

.catalog-mega-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    overflow-y: auto;
    padding-bottom: 16px;
}

.catalog-mega-column {
    min-width: 0;
}

.catalog-mega-title {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary, #1C1C1E);
    text-decoration: none;
    padding: 8px 0;
    margin-bottom: 8px;
    border-bottom: 2px solid var(--primary, #FF8C2B);
    transition: color 0.2s;
}

.catalog-mega-title:hover {
    color: var(--primary, #FF8C2B);
}

.catalog-mega-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.catalog-mega-list li {
    margin: 0;
}

.catalog-mega-link {
    display: block;
    font-size: 13px;
    color: var(--text-secondary, #666);
    text-decoration: none;
    padding: 6px 0;
    padding-left: 12px;
    border-left: 2px solid transparent;
    transition: all 0.15s;
}

.catalog-mega-link:hover {
    color: var(--primary, #FF8C2B);
    border-left-color: var(--primary, #FF8C2B);
    padding-left: 16px;
}

.catalog-mega-footer {
    padding-top: 16px;
    border-top: 1px solid var(--border, #eee);
    display: flex;
    justify-content: center;
}

.catalog-mega-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: var(--primary, #FF8C2B);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.catalog-mega-all-btn:hover {
    background: var(--primary-hover, #e67d25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 140, 43, 0.3);
}

/* 3 columns for tablet */
@media (max-width: 1200px) {
    .catalog-mega-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

/* 2 columns for smaller tablets */
@media (max-width: 900px) {
    .catalog-mega-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .catalog-mega-inner {
        padding: 20px;
    }
}

/* Hide mega menu on mobile - use mobile catalog instead */
@media (max-width: 768px) {
    .catalog-mega {
        display: none !important;
    }
}

/* Show mega menu on tablet/desktop */
@media (min-width: 769px) {
    .catalog-mega {
        display: block;
    }
}

/* ========================================
   CATALOG MOBILE - Fullscreen with Static Subcategories
   ======================================== */

.catalog-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: none;
}

.catalog-mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.catalog-mobile {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--surface, #fff);
    z-index: 1001;
    transform: translateY(-100%);
    transition: transform 0.35s ease;
    display: none;
    flex-direction: column;
}

.catalog-mobile.active {
    transform: translateY(0);
}

.catalog-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--primary, #FF8C2B);
    color: #fff;
    flex-shrink: 0;
}

.catalog-mobile-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.catalog-mobile-title svg {
    stroke: #fff;
}

.catalog-mobile-close {
    background: rgba(255,255,255,0.2);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.catalog-mobile-close:hover {
    background: rgba(255,255,255,0.3);
}

.catalog-mobile-close svg {
    stroke: #fff;
}

.catalog-mobile-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.catalog-mobile-nav {
    padding: 0;
}

.catalog-mobile-item {
    display: block;
    width: 100%;
    border-bottom: 1px solid var(--border, #eee);
}

.catalog-mobile-item:last-child {
    border-bottom: none;
}

.catalog-mobile-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    text-decoration: none;
    color: var(--text-primary, #1C1C1E);
    background: var(--surface, #fff);
    width: 100%;
    box-sizing: border-box;
}

.catalog-mobile-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.catalog-mobile-icon-placeholder {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: var(--bg, #f5f5f5);
    border-radius: 8px;
    flex-shrink: 0;
}

.catalog-mobile-text {
    flex: 1;
    font-weight: 600;
    font-size: 15px;
}

.catalog-mobile-count {
    font-size: 12px;
    color: var(--text-secondary, #888);
    background: var(--bg, #f5f5f5);
    padding: 4px 10px;
    border-radius: 12px;
    flex-shrink: 0;
}

/* Static children (subcategories) - always visible */
.catalog-mobile-children {
    background: var(--bg, #f8f8f8);
    border-top: 1px solid var(--border, #eee);
    width: 100%;
}

.catalog-mobile-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px 12px 68px;
    text-decoration: none;
    color: var(--text-primary, #1C1C1E);
    font-size: 14px;
    border-bottom: 1px solid var(--border, #eee);
    transition: background 0.15s;
    width: 100%;
    box-sizing: border-box;
}

.catalog-mobile-child:last-child {
    border-bottom: none;
}

.catalog-mobile-child:active {
    background: var(--primary-light, rgba(255,140,43,0.1));
}

.catalog-mobile-child-text {
    flex: 1;
}

.catalog-mobile-child-count {
    font-size: 11px;
    color: var(--text-secondary, #888);
    flex-shrink: 0;
}

.catalog-mobile-footer {
    padding: 16px;
    border-top: 1px solid var(--border, #eee);
    background: var(--surface, #fff);
    flex-shrink: 0;
    /* Safe area for mobile navigation buttons */
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

.catalog-mobile-all-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 20px;
    background: var(--primary, #FF8C2B);
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s;
}

.catalog-mobile-all-btn:active {
    transform: scale(0.98);
    background: var(--primary-hover, #e67d25);
}

/* Show mobile version only on mobile */
@media (max-width: 768px) {
    .catalog-mobile-overlay,
    .catalog-mobile {
        display: flex;
    }
}

/* Responsive categories grid */
@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .category-card {
        min-height: 140px;
        padding: 16px;
    }
    
    .category-card.has-thumbnail {
        min-height: 160px;
    }
    
    .category-icon {
        font-size: 28px;
        margin-bottom: 8px;
    }
    
    .category-name {
        font-size: 13px;
    }
    
    .category-count {
        font-size: 11px;
    }
    
    .category-bg-icon {
        font-size: 50px;
        top: -10px;
        right: -10px;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .category-card {
        min-height: 120px;
        padding: 14px;
    }
    
    .category-card.has-thumbnail {
        min-height: 140px;
    }
    
    .category-card.has-thumbnail .category-content {
        padding: 14px;
    }
    
    .category-icon {
        font-size: 24px;
    }
    
    .category-name {
        font-size: 12px;
    }
}

/* ========================================
   Header logo consistency fix (v2.3.2)
   ----------------------------------------
   Reason: ".logo" and ".mobile-logo" are very common class names.
   On inner pages (shop, product, regular pages) some plugins can enqueue
   additional CSS that overrides generic selectors like ".logo".
   To keep the header logo stable everywhere, we scope the key logo rules
   to the theme header (#header) and raise specificity.
   ======================================== */

body.caraudio-theme #header a.logo,
body.caraudio-theme #header a.mobile-logo {
    line-height: 0; /* prevent extra baseline space */
}

body.caraudio-theme #header a.logo {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
}

body.caraudio-theme #header a.mobile-logo {
    display: none !important; /* default: hidden on desktop */
    align-items: center !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
}

body.caraudio-theme #header .logo-container {
    display: flex !important;
    align-items: center !important;
}

body.caraudio-theme #header .logo-container img.site-logo {
    height: 50px !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain;
}

body.caraudio-theme #header a.mobile-logo img.site-logo-mobile {
    height: 36px !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain;
}

@media (max-width: 768px) {
    body.caraudio-theme #header a.logo {
        display: none !important;
    }

    body.caraudio-theme #header a.mobile-logo {
        display: flex !important;
    }
}
