/* ============================================================
   KOP.in.ua — Styles v12.0
   Оранжева тема за замовчуванням + професійний каталог
   ============================================================ */

/* === ТЕМИ === */
:root,
[data-theme="light"] {
    --bg-body: #f5f5f5;
    --bg-card: #ffffff;
    --bg-alt: #f9f9f9;
    --bg-header: #ffffff;
    --bg-footer: #2c2c2c;
    --text-main: #333333;
    --text-secondary: #555555;
    --muted: #888888;
    --accent: #4a4a4a;
    --accent-hover: #333333;
    --accent-light: #666666;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --border: #e0e0e0;
    --border-light: #eeeeee;
    --shadow: 0 2px 4px rgba(0,0,0,.08);
    --shadow-lg: 0 4px 12px rgba(0,0,0,.12);
    --radius: 4px;
    --radius-lg: 8px;
    --transition: .2s ease;
}

[data-theme="dark"] {
    --bg-body: #1a1a1a;
    --bg-card: #2d2d2d;
    --bg-alt: #252525;
    --bg-header: #2d2d2d;
    --bg-footer: #0f0f0f;
    --text-main: #f5f5f5;
    --text-secondary: #cccccc;
    --muted: #999999;
    --accent: #64b5f6;
    --accent-hover: #42a5f5;
    --accent-light: #90caf9;
    --border: #404040;
    --border-light: #333333;
    --shadow: 0 2px 4px rgba(0,0,0,.3);
    --shadow-lg: 0 4px 12px rgba(0,0,0,.5);
}

[data-theme="ocean"] {
    --bg-body: #e3f2fd;
    --bg-card: #ffffff;
    --bg-alt: #f5f9ff;
    --bg-header: #ffffff;
    --bg-footer: #0d47a1;
    --text-main: #0d47a1;
    --text-secondary: #1565c0;
    --muted: #5c6bc0;
    --accent: #1976d2;
    --accent-hover: #1565c0;
    --accent-light: #42a5f5;
    --border: #bbdefb;
    --border-light: #e3f2fd;
    --shadow: 0 2px 4px rgba(13,71,161,.1);
    --shadow-lg: 0 4px 12px rgba(13,71,161,.2);
}

[data-theme="forest"] {
    --bg-body: #e8f5e9;
    --bg-card: #ffffff;
    --bg-alt: #f1f8e9;
    --bg-header: #ffffff;
    --bg-footer: #1b5e20;
    --text-main: #1b5e20;
    --text-secondary: #2e7d32;
    --muted: #558b2f;
    --accent: #388e3c;
    --accent-hover: #2e7d32;
    --accent-light: #66bb6a;
    --border: #c8e6c9;
    --border-light: #e8f5e9;
    --shadow: 0 2px 4px rgba(27,94,32,.1);
    --shadow-lg: 0 4px 12px rgba(27,94,32,.2);
}

[data-theme="sunset"] {
    --bg-body: #fff8f0;
    --bg-card: #ffffff;
    --bg-alt: #fff3e0;
    --bg-header: #ffffff;
    --bg-footer: #bf360c;
    --text-main: #3e2723;
    --text-secondary: #5d4037;
    --muted: #8d6e63;
    --accent: #f4511e;
    --accent-hover: #e64a19;
    --accent-light: #ff7043;
    --border: #ffccbc;
    --border-light: #fbe9e7;
    --shadow: 0 2px 4px rgba(244,81,30,.1);
    --shadow-lg: 0 4px 12px rgba(244,81,30,.15);
}

/* === RESET === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    font-size: 14px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background var(--transition), color var(--transition);
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    font-family: inherit;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

main {
    flex: 1;
}

/* === КНОПКИ === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    font-family: inherit;
    line-height: 1.4;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: #fff;
}

.btn-secondary {
    background: var(--bg-alt);
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border-light);
}

.btn-lg {
    padding: 12px 28px;
    font-size: 15px;
}

.btn-load-more {
    padding: 12px 36px;
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-weight: 500;
}

.btn-load-more:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* === HEADER === */
.header {
    background: var(--bg-header);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background var(--transition);
}

.header-top {
    background: var(--bg-alt);
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--border-light);
}

.header-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.header-contacts {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.header-phone {
    color: var(--text-main);
    font-weight: 600;
    font-size: 14px;
}

.header-phone:hover {
    color: var(--accent);
}

.header-schedule {
    color: var(--muted);
    font-size: 12px;
}

.header-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-links a {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

.header-links a:hover {
    color: var(--accent);
}

.header-feedback-link {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 13px;
    font-weight: 500;
    padding: 0;
    font-family: inherit;
}

.header-feedback-link:hover {
    color: var(--accent-hover);
}

.header-main {
    padding: 16px 0;
}

.header-main-inner {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* === LOGO === */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-main);
    flex-shrink: 0;
}

.logo:hover {
    color: var(--accent);
}

.logo-svg {
    height: 32px;
    width: auto;
    display: block;
}

.logo-light {
    color: #fff;
}

.logo-light:hover {
    color: #fff;
    opacity: 0.9;
}

/* === КАТАЛОГ DROPDOWN === */
.catalog-dropdown {
    position: relative;
}

.btn-catalog {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 14px;
    transition: background var(--transition);
}

.btn-catalog:hover {
    background: var(--accent-hover);
}

.catalog-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 300px;
    max-width: 360px;
    max-height: 600px;
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 0;
    display: none;
    z-index: 50;
}

.catalog-menu.open {
    display: block;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.catalog-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-main);
    transition: all var(--transition);
    z-index: 10;
}

.catalog-close-btn:hover {
    background: var(--danger);
    color: #fff;
    border-color: var(--danger);
}

.catalog-title {
    padding: 16px 16px 12px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-light);
}

.catalog-list {
    padding: 8px;
}

.catalog-category-item {
    border-bottom: 1px solid var(--border-light);
}

.catalog-category-item:last-child {
    border-bottom: none;
}

.catalog-item-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
    border-radius: 4px;
}

.catalog-item-link:hover {
    background: var(--bg-alt);
    color: var(--accent);
}

.catalog-item-name {
    flex: 1;
}

.catalog-item-count {
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
    background: var(--bg-alt);
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
}

.catalog-submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    transition: all var(--transition);
    flex-shrink: 0;
}

.catalog-submenu-toggle:hover {
    color: var(--accent);
    background: var(--bg-alt);
}

.catalog-submenu-toggle.active {
    transform: rotate(180deg);
    color: var(--accent);
}

.catalog-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--bg-alt);
}

.catalog-submenu.open {
    max-height: 500px;
}

.catalog-submenu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px 10px 28px;
    color: var(--text-secondary);
    font-size: 13px;
    transition: all var(--transition);
}

.catalog-submenu-item:hover {
    background: var(--border-light);
    color: var(--accent);
}

.catalog-loading {
    padding: 24px 16px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

.catalog-menu::-webkit-scrollbar {
    width: 6px;
}

.catalog-menu::-webkit-scrollbar-track {
    background: var(--bg-alt);
}

.catalog-menu::-webkit-scrollbar-thumb {
    background: var(--muted);
    border-radius: 3px;
}

.catalog-menu::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* === ПОШУК === */
.search-bar {
    flex: 1;
    max-width: 500px;
}

.search-form {
    display: flex;
    gap: 0;
}

.search-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: 14px;
    outline: none;
    background: var(--bg-card);
    color: var(--text-main);
    transition: border-color var(--transition);
}

.search-form input:focus {
    border-color: var(--accent);
}

.btn-search {
    padding: 10px 16px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}

.btn-search:hover {
    background: var(--accent-hover);
}

/* === HEADER ACTIONS === */
.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.header-action-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 14px;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.header-action-btn:hover {
    background: var(--bg-alt);
    color: var(--accent);
}

.action-icon-svg {
    stroke: currentColor;
}

.action-label {
    font-weight: 500;
}

.action-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* === ВИПАДАЮЧЕ МЕНЮ МОВИ === */
.header-lang {
    position: relative;
}

.lang-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: all var(--transition);
}

.lang-dropdown-btn:hover {
    background: var(--border-light);
    border-color: var(--accent);
}

.lang-dropdown-btn::after {
    content: '▼';
    font-size: 10px;
    margin-left: 4px;
    transition: transform var(--transition);
}

.lang-dropdown-btn.open::after {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 160px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 1000;
    overflow: hidden;
}

.lang-dropdown-menu.open {
    display: block;
    animation: slideDown 0.2s ease;
}

.lang-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.lang-dropdown-item:hover {
    background: var(--bg-alt);
    color: var(--accent);
}

.lang-dropdown-item.active {
    background: var(--accent);
    color: #fff;
}

.lang-dropdown-item .flag {
    font-size: 16px;
}

/* === БУРГЕР === */
.burger-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
}

.burger-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: .3s;
}

.burger-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger-btn.active span:nth-child(2) {
    opacity: 0;
}

.burger-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* === МОБІЛЬНЕ МЕНЮ === */
.mobile-nav {
    display: none;
    flex-direction: column;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 16px 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s;
}

.mobile-nav.nav-open {
    display: flex;
    max-height: 100vh;
    overflow-y: auto;
}

.nav-link {
    padding: 12px 20px;
    color: var(--text-main);
    font-size: 15px;
    border-bottom: 1px solid var(--border-light);
}

.nav-link:hover {
    background: var(--bg-alt);
    color: var(--accent);
}

.mobile-nav-divider {
    height: 8px;
    background: var(--bg-alt);
    margin: 8px 0;
}

/* === SECTION HEADER === */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.section-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

.section-header .section-title {
    margin-bottom: 0;
}

/* === CATALOG SECTION === */
.catalog-section {
    padding: 32px 0 60px;
}

/* === FILTER BAR === */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    flex-wrap: wrap;
}

.filter-bar select {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    background: var(--bg-card);
    color: var(--text-main);
    cursor: pointer;
    outline: none;
    font-family: inherit;
}

.filter-bar select:focus {
    border-color: var(--accent);
}

.products-count {
    color: var(--muted);
    font-size: 13px;
}

/* === PRODUCTS GRID === */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--muted);
}

/* === КАРТКА ТОВАРУ === */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-light);
}

.product-card-img {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border-light);
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
    display: block;
}

.product-card:hover .product-card-img img {
    transform: scale(1.03);
}

.product-card-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card-title {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.4;
    min-height: 36px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-title a {
    color: var(--text-main);
    text-decoration: none;
    transition: color var(--transition);
}

.product-card-title a:hover {
    color: var(--accent);
}

.product-card-price {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.old-price {
    text-decoration: line-through;
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
    margin-left: 8px;
}

.product-card-actions {
    display: flex;
    gap: 6px;
    margin-top: auto;
}

.product-card-btn {
    flex: 1;
    padding: 8px 10px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    transition: background var(--transition);
    border: none;
    font-family: inherit;
}

.product-card-btn:hover {
    background: var(--accent-hover);
    color: #fff;
}

.btn-icon {
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 15px;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    color: var(--text-main);
}

.btn-icon:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* === FOOTER === */
.footer {
    background: var(--bg-footer);
    color: #fff;
    padding: 40px 0 0;
    margin-top: auto;
    transition: background var(--transition);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}

.footer-brand p {
    color: rgba(255,255,255,.6);
    font-size: 13px;
    margin-top: 12px;
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    color: rgba(255,255,255,.5);
    font-weight: 600;
}

.footer-links a {
    display: block;
    color: rgba(255,255,255,.8);
    padding: 4px 0;
    font-size: 13px;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: #fff;
}

.footer-links p {
    color: rgba(255,255,255,.6);
    font-size: 13px;
    padding: 4px 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 16px 0;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,.5);
}

/* === TOAST === */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 380px;
}

.toast {
    background: var(--bg-card);
    border-left: 4px solid var(--success);
    padding: 12px 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    animation: toastIn .25s ease;
    font-size: 13px;
    color: var(--text-main);
}

.toast-error {
    border-left-color: var(--danger);
}

.toast-info {
    border-left-color: var(--info);
}

.toast-warning {
    border-left-color: var(--warning);
}

.toast-hide {
    opacity: 0;
    transform: translateX(100%);
    transition: .25s;
}

.toast-close {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--muted);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-alt);
}

::-webkit-scrollbar-thumb {
    background: var(--muted);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* === BREADCRUMBS === */
.breadcrumbs {
    background: var(--bg-alt);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.breadcrumb-list {
    display: flex;
    gap: 8px;
    list-style: none;
    font-size: 13px;
    color: var(--muted);
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    align-items: center;
}

.breadcrumb-list li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '›';
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb-list a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition);
}

.breadcrumb-list a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.breadcrumb-list li:last-child {
    color: var(--text-main);
    font-weight: 500;
}

/* === МОБІЛЬНИЙ КАТАЛОГ === */
@media (max-width: 768px) {
    .catalog-dropdown {
        position: static;
        width: auto;
    }

    .btn-catalog {
        display: flex;
        padding: 10px 16px;
        font-size: 14px;
    }

    .catalog-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        min-width: 100%;
        max-height: 100%;
        background: var(--bg-card);
        z-index: 9999;
        overflow-y: auto;
        padding: 0;
        box-shadow: none;
        border: none;
        border-radius: 0;
        display: none;
    }

    .catalog-menu.open {
        display: block;
    }

    .catalog-close-btn {
        position: fixed;
        top: 16px;
        right: 16px;
        z-index: 10001;
        width: 40px;
        height: 40px;
        background: var(--danger);
        color: #fff;
        border: none;
    }

    .catalog-title {
        padding: 16px 16px 12px 16px;
        padding-right: 70px;
        font-size: 18px;
        border-bottom: 1px solid var(--border-light);
        position: sticky;
        top: 0;
        background: var(--bg-card);
        z-index: 10000;
    }

    .catalog-list {
        padding: 0;
    }

    .catalog-item-link {
        padding: 16px 20px;
        font-size: 16px;
        border-bottom: 1px solid var(--border-light);
        border-radius: 0;
    }

    .catalog-submenu-item {
        padding: 14px 20px 14px 36px;
        font-size: 14px;
    }

    .catalog-submenu-toggle {
        width: 40px;
        height: 40px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .catalog-menu {
        min-width: 280px;
        max-width: 320px;
    }
}

/* === ЗАГАЛЬНИЙ RESPONSIVE === */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-top {
        display: none;
    }

    .header-main-inner {
        flex-wrap: wrap;
        gap: 12px;
    }

    .search-bar {
        order: 3;
        flex: 1 1 100%;
        max-width: 100%;
    }

    .burger-btn {
        display: flex;
    }

    .action-label {
        display: none;
    }

    .header-action-btn {
        padding: 8px;
    }

    .header-actions {
        gap: 8px;
    }

    .section-title {
        font-size: 22px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 10px;
    }

    .product-card-title {
        font-size: 12px;
        min-height: 34px;
    }

    .product-card-price {
        font-size: 15px;
    }

    .product-card-body {
        padding: 10px;
    }

    .product-card-btn {
        padding: 7px 8px;
        font-size: 11px;
    }

    .btn-icon {
        width: 32px;
        height: 32px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .toast-container {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .product-card-title {
        font-size: 11px;
        min-height: 30px;
    }

    .product-card-price {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .product-card-actions {
        flex-direction: column;
    }

    .product-card-btn {
        width: 100%;
    }

    .btn-icon {
        width: 100%;
        height: 32px;
    }

    .logo-svg {
        height: 28px;
    }

    .section-title {
        font-size: 20px;
    }
}

/* === МОДАЛКИ === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.modal-overlay[aria-hidden="false"] {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 24px;
    animation: slideUp 0.3s ease;
}

.modal-large {
    max-width: 700px;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition);
    z-index: 10;
}

.modal-close:hover {
    background: var(--bg-alt);
    color: var(--danger);
}

.modal-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
    padding-right: 40px;
}

.modal-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* === КОШИК === */
.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.cart-empty p {
    margin-bottom: 12px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius);
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent);
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-main);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.qty-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.cart-item-qty input {
    width: 40px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 4px;
    font-size: 14px;
    background: var(--bg-card);
    color: var(--text-main);
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--danger);
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.cart-item-remove:hover {
    background: var(--danger);
    color: #fff;
}

.cart-summary {
    padding: 16px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.summary-row.total {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    border-top: 2px solid var(--border);
    margin-top: 8px;
    padding-top: 12px;
}

.cart-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* === ПОРІВНЯННЯ === */
.compare-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 8px;
}

.compare-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 8px;
    min-height: 36px;
}

.compare-remove {
    background: var(--danger);
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: var(--radius);
    font-size: 12px;
    cursor: pointer;
    transition: all var(--transition);
}

.compare-remove:hover {
    background: var(--accent-hover);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.compare-table th,
.compare-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid var(--border);
    vertical-align: top;
}

.compare-table th {
    background: var(--bg-alt);
    font-weight: 600;
    color: var(--text-main);
}

.compare-table td {
    color: var(--text-secondary);
}

/* === ФОРМА ЗВОРОТНОГО ЗВ'ЯЗКУ === */
.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
}

.form-group label .required {
    color: var(--danger);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    background: var(--bg-card);
    color: var(--text-main);
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(244, 81, 30, 0.1);
}

.btn-feedback-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-feedback-submit:hover {
    background: var(--accent-hover);
}

.btn-feedback-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-loader {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === RESPONSIVE МОДАЛОК === */
@media (max-width: 768px) {
    .modal-content {
        padding: 20px;
        max-height: 85vh;
    }

    .modal-title {
        font-size: 18px;
    }

    .cart-item {
        flex-wrap: wrap;
    }

    .cart-item-img {
        width: 50px;
        height: 50px;
    }

    .cart-actions {
        flex-direction: column;
    }

    .cart-actions .btn {
        width: 100%;
    }

    .compare-table {
        font-size: 12px;
    }

    .compare-img {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .modal-overlay {
        padding: 10px;
    }

    .modal-content {
        padding: 16px;
    }

    .cart-item-qty {
        width: 100%;
        justify-content: center;
        margin-top: 8px;
    }
}

/* === МЕНЮ МОВИ НА МОБІЛЬНОМУ === */
@media (max-width: 768px) {
    .lang-dropdown-menu {
        right: -10px;
        min-width: 140px;
        max-width: 180px;
    }

    .lang-dropdown-item {
        padding: 12px 14px;
        font-size: 14px;
    }

    .lang-dropdown-item .flag {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .lang-dropdown-menu {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        min-width: 160px;
    }

    .lang-dropdown-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
