/* === ГЛОБАЛЬНІ ЗМІННІ === */
:root {
    --primary-color: #2d6a4f;
    --primary-hover: #1a4d2e;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-bg: #f8f9fa;
    --dark-bg: #212529;
    --border-color: #dee2e6;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --border-radius: 0.375rem;
    --border-radius-lg: 0.5rem;
    
    /* Додаткові змінні для уніфікації */
    --padding-section: 1.25rem 1.5rem;
    --padding-section-sm: 1rem;
    --heading-font-size: 1.5rem;
    --heading-font-weight: 600;
    --button-padding: 0.75rem 1.5rem;
    --button-gap: 0.5rem;
    --card-margin-bottom: 1.5rem;
    --primary-light: rgba(0, 123, 255, 0.1);
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* === ЗАГАЛЬНІ СТИЛІ === */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--light-bg);
    font-family: 'Roboto', sans-serif;
    color: #333;
}

/* === БАЗОВІ КОМПОНЕНТИ === */

/* === КАТЕГОРІЇ ТОВАРІВ === */

/* Використовуємо існуючий стиль карток для категорій */
.subcategories-card {
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    background-color: #fff;
    transition: all 0.3s ease-in-out;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.subcategories-list {
    margin: 0;
    padding: 0;
}

.subcategory-link {
    display: block;
    padding: 0.5rem 0;
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.subcategory-link:hover {
    color: #007bff;
}

/* Хлібні крихти */
.breadcrumb {
    background-color: transparent;
    padding: 0.75rem 0;
    margin-bottom: 1.5rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
}

/* Стилі для фільтра */
.filter-card {
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    background-color: #fff;
    transition: all 0.3s ease-in-out;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.filter-card .card-header {
    background-color: rgba(0,123,255,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    padding: 1rem;
}

.filter-card .card-body {
    max-height: 300px;
    overflow-y: auto;
}

/* Заголовок категорії */
.category-header {
    margin-bottom: 1.5rem;
}

.category-title {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.category-count {
    color: #6c757d;
    margin-bottom: 0;
}

/* Теги категорій на сторінці продукту */
.product-categories {
    margin-top: 1rem;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.category-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: rgba(0,123,255,0.1);
    border-radius: 20px;
    color: #007bff;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}
/* Багаторівневе меню для категорій */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
    display: none;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

.dropdown-submenu > a:after {
    display: block;
    content: " ";
    float: right;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
    border-width: 5px 0 5px 5px;
    border-left-color: #cccccc;
    margin-top: 5px;
    margin-right: -10px;
}

/* Забезпечення достатньої ширини для вкладених меню на мобільних пристроях */
@media (max-width: 991px) {
    .dropdown-menu {
        width: 100%;
    }
    
    .dropdown-submenu .dropdown-menu {
        left: 0;
        margin-left: 20px;
        border: none;
        box-shadow: none;
    }
}

.category-tag:hover {
    background-color: #007bff;
    color: #fff;
}

/* Сортування */
.sorting-controls {
    display: flex;
    align-items: center;
}

/* Адаптивність для категорій */
@media (max-width: 768px) {
    .filter-card {
        margin-bottom: 1rem;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .sorting-controls {
        margin-top: 1rem;
    }
    
    .category-tags {
        gap: 0.3rem;
    }
}

/* Базова картка */
.card-base {
    border: none;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-bottom: var(--card-margin-bottom);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    background-color: white;
}

.card-base:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Базовий заголовок секції */
.section-header {
    padding: var(--padding-section);
    border-radius: var(--border-radius-lg);
    margin-bottom: var(--card-margin-bottom);
    box-shadow: var(--shadow);
    color: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-header h2, 
.section-header h3, 
.section-header h4 {
    margin: 0;
    font-size: var(--heading-font-size);
    font-weight: var(--heading-font-weight);
    color: white;
}

/* Варіанти заголовків за кольором */
.section-header-primary {
    background: linear-gradient(135deg, #2d6a4f, #1a4d2e);
}

.section-header-secondary {
    background: linear-gradient(135deg, var(--secondary-color), #495057);
}

.section-header-danger {
    background: linear-gradient(135deg, var(--danger-color), #c82333);
}

/* Іконка заголовка */
.header-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* Базова кнопка з контуром */
.btn-outline {
    padding: var(--button-padding);
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: var(--border-radius);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: var(--button-gap);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Варіанти кнопок з контуром */
.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
}

.btn-outline-success {
    border-color: var(--success-color);
    color: var(--success-color);
}

.btn-outline-success:hover {
    background-color: var(--success-color);
}

.btn-outline-danger {
    border-color: var(--danger-color);
    color: var (--danger-color);
}

.btn-outline-danger:hover {
    background-color: var(--danger-color);
}

.btn-outline-info {
    border-color: var(--info-color);
    color: var(--info-color);
}

.btn-outline-info:hover {
    background-color: var(--info-color);
}

/* Базова кнопка-дія */
.btn-action {
    padding: var(--button-padding);
    background-color: var(--primary-color);
    border: none;
    color: white;
    border-radius: var(--border-radius);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: var(--button-gap);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-action:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    color: white;
}

/* Варіанти кнопок-дій */
.btn-action-primary {
    background-color: var(--primary-color);
}

.btn-action-primary:hover {
    background-color: var(--primary-hover);
}

.btn-action-success {
    background-color: var(--success-color);
}

.btn-action-success:hover {
    background-color: #218838;
}

.btn-action-danger {
    background-color: var(--danger-color);
}

.btn-action-danger:hover {
    background-color: #c82333;
}

.btn-action-info {
    background-color: var(--info-color);
}

.btn-action-info:hover {
    background-color: #138496;
}

/* === НАВІГАЦІЯ === */
.navbar {
    box-shadow: var(--shadow);
}

.navbar-brand img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.nav-link i {
    font-size: 1.2rem;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--danger-color, #dc3545);
  color: #fff;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}
.nav-link:focus-visible,
.btn:focus-visible {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}
/* Стабільне співвідношення сторін для зображень */
.product-img-container {
  aspect-ratio: 4 / 3;
  height: auto;
}
.product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* === ФУТЕР === */
/* .footer стили переопределены в public-base.css через .improved-footer */
.footer:not(.improved-footer) {
    margin-top: auto;
    padding: 2rem 0;
    background-color: var(--light-bg);
    border-top: 1px solid var(--border-color);
}

.footer:not(.improved-footer) h5 {
    color: var(--dark-bg);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer:not(.improved-footer) a {
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.footer:not(.improved-footer) a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.social-links a {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

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

/* === СПОВІЩЕННЯ === */
.alert {
    border-radius: 8px;
    border: none;
    box-shadow: var(--shadow);
}

/* === КАРТКИ === */
.card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* === КНОПКИ === */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

.btn-secondary:disabled {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    opacity: 0.85;
    cursor: not-allowed;
}

/* === АНІМАЦІЇ === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* === АДАПТИВНІСТЬ === */
@media (max-width: 768px) {
    .navbar-brand img {
        height: 40px;
    }
    
    .container {
        padding: 1rem;
    }
    
    .footer {
        text-align: center;
    }

    .section-header {
        padding: var(--padding-section-sm);
    }
    
    .section-header h2,
    .section-header h3 {
        font-size: 1.25rem;
    }
    
    .btn-outline, .btn-action {
        width: 100%;
        justify-content: center;
    }
    
    .cart-table thead,
    .orders-table thead,
    .items-table thead {
        display: none;
    }
    
    .cart-table tbody tr,
    .orders-table tr {
        display: block;
        padding: 0.5rem;
        margin-bottom: 1rem;
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
    }
    
    .cart-table tbody td,
    .orders-table td {
        display: block;
        text-align: right;
        padding: 0.5rem;
        border: none;
        position: relative;
        padding-left: 40%;
    }
    
    .cart-table tbody td::before,
    .orders-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0.5rem;
        width: 35%;
        font-weight: 600;
        text-align: left;
        color: var(--secondary-color);
        font-size: 0.85rem;
    }
    
    .quantity-input {
        width: 60px !important;
    }
    
    .checkout-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-continue, .btn-place-order {
        width: 100%;
        justify-content: center;
    }
    
    .order-header {
        padding: 1.25rem;
    }
    
    .btn-back {
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
    }
    
    .order-number {
        display: block;
        margin: 0.5rem 0 0 0;
        text-align: center;
    }
    
    .items-table th, .items-table td {
        padding: 0.75rem;
    }
    
    .items-table .d-none-mobile {
        display: none;
    }
    
    .orders-table, 
    .orders-table tbody, 
    .orders-table tr, 
    .orders-table td {
        display: block;
        width: 100%;
    }

    .orders-table td {
        text-align: right;
        padding: 0.75rem 1rem;
        position: relative;
        padding-left: 50%;
    }
    
    .orders-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 1rem;
        width: 45%;
        white-space: nowrap;
        font-weight: 600;
        text-align: left;
        text-transform: uppercase;
        font-size: 0.8rem;
        color: var(--secondary-color);
    }
    
    .order-id, .order-date, .order-items, .order-total {
        justify-content: flex-end;
    }
    
    .brand-list {
        grid-template-columns: 1fr;
    }
    
    .not-found-body {
        padding: 1.5rem;
    }
    
    .search-icon {
        font-size: 4rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .welcome-header {
        padding: 1rem;
    }
    
    .welcome-header h1 {
        font-size: 1.25rem;
    }
    
    .welcome-body, .search-body, .info-card .card-body {
        padding: 1.25rem;
    }
    
    .product-img-container {
        height: 180px;
        padding: 0.75rem;
    }
    
    .product-title {
        font-size: 1rem;
        min-height: 35px;
    }
    
    .product-description {
        min-height: 35px;
    }
    
    .btn-search, .btn-learn-more {
        width: 100%;
        justify-content: center;
    }
    
    .product-container {
        padding: 1rem;
        margin: 1rem auto;
    }
    
    .image-section {
        height: 300px;
    }
    
    .product-info-header h1 {
        font-size: 1.25rem;
    }
    
    .image-nav {
        width: 32px;
        height: 32px;
    }
    
    .cart-form {
        flex-direction: column;
    }
    
    .quantity-input {
        width: 100% !important;
    }
    
    .btn-add-to-cart {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .btn-view {
        width: 100%;
        justify-content: center;
    }
    
    .product-img-container {
        height: 160px;
    }
    
    .welcome-header h1 {
        font-size: 1.1rem;
    }
    
    .image-section {
        height: 250px;
    }
}

/* === ЗАГОЛОВОК СТОРІНКИ === */
.page-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.page-header h2 {
    color: var(--dark-bg);
    font-weight: 600;
}

/* === ТАБЛИЦЯ КОШИКА === */
.cart-table {
    width: 100%;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
}

.cart-table thead {
    background: linear-gradient(135deg, var(--primary-color), #0d6efd);
    color: white;
}

.cart-table th {
    padding: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border: none;
}

.cart-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.cart-table tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

.cart-table td {
    padding: 1rem;
    vertical-align: middle;
    border-top: none;
    border-bottom: 1px solid var(--border-color);
}

.cart-table tfoot {
    background-color: #f8f9fa;
}

.cart-table tfoot tr td {
    padding: 1rem;
    font-weight: 500;
}

/* Артикул бейдж */
.article-badge {
    background: var(--light-bg);
    padding: 0.35rem 0.65rem;
    border-radius: 4px;
    font-family: monospace;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark-bg);
    display: inline-block;
}

/* Ціна */
.price-value {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.total-value {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.25rem;
}

/* Форма кількості */
.quantity-input {
    width: 70px !important;
    text-align: center;
    margin-right: 0.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 0.375rem 0.75rem;
}

/* Кнопки дії */
.btn-update {
    padding: 0.375rem 0.75rem;
    background-color: var(--info-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
}

.btn-update:hover {
    background-color: #138496;
    transform: translateY(-2px);
}

.btn-remove {
    padding: 0.375rem 0.75rem;
    background-color: var(--danger-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
}

.btn-remove:hover {
    background-color: #c82333;
    transform: translateY(-2px);
}

/* === КАРТКА ДОСТАВКИ === */
.delivery-card {
    background-color: white;
    border: none;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.delivery-card .card-header {
    background: linear-gradient(135deg, var(--primary-color), #0d6efd);
    color: white;
    padding: 1rem 1.5rem;
    border-bottom: none;
}

.delivery-card .card-body {
    padding: 1.5rem;
}

/* Заголовки секцій */
.section-title {
    color: var(--dark-bg);
    margin-bottom: 1rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

/* Роздільник секцій */
.section-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 2rem 0;
    opacity: 0.5;
}

/* Картки адрес */
.address-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    transition: all 0.2s ease;
    background-color: white;
}

.address-card.selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.address-card:hover {
    border-color: var(--primary-color);
}

.address-card .card-body {
    padding: 1rem;
}

.address-name {
    display: block;
    font-weight: 600;
    color: var(--dark-bg);
    margin-bottom: 0.5rem;
}

.address-info {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    margin-left: 1.5rem;
}

.phone-badge {
    display: inline-block;
    background-color: rgba(0, 123, 255, 0.1);
    color: var(--primary-color);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-top: 0.5rem;
    font-weight: 500;
    font-family: monospace;
}

.vat-badge {
    display: inline-block;
    background-color: rgba(40, 167, 69, 0.1);
    color: var (--success-color);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
    font-family: monospace;
}

/* Перемикач інвойсу */
.invoice-toggle {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

.invoice-toggle .form-check-label {
    color: var(--dark-bg);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.invoice-toggle .form-check-input {
    margin-right: 0.75rem;
}

/* Кнопки оформлення замовлення */
.checkout-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
}

.btn-place-order {
    padding: 0.75rem 1.5rem;
    background-color: var(--success-color);
    border: none;
    color: white;
    border-radius: var(--border-radius);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-place-order:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* === ПОРОЖНІЙ КОШИК === */

/* === СТОРІНКА ЗАМОВЛЕННЯ === */
.page-order {
    animation: fadeIn 0.5s ease-in-out;
}

/* Шапка замовлення */
.order-header-card {
    border: none;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    background-color: white;
}

.order-header-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.order-header {
    background: linear-gradient(135deg, var(--primary-color), #0d6efd);
    color: white;
    padding: 1.5rem;
    border: none;
}

.order-header h2 {
    margin: 0;
    display: flex;
    align-items: center;
}

.order-number {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: var(--border-radius);
    margin-left: 0.75rem;
    font-weight: 600;
}

.btn-back {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    border-radius: var(--border-radius);
    padding: 0.5rem 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
    text-decoration: none;
}

.btn-back:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Картка зведення замовлення */
.summary-card {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    background-color: white;
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.summary-label {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.summary-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-bg);
}

.total-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Картки адрес і інвойсів для деталей замовлення */
.info-card {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 100%;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    background-color: white;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.info-card-header {
    padding: 1.25rem;
    font-weight: 600;
    font-size: 1.1rem;
    background-color: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-card-header i {
    color: var(--primary-color);
}

.address-details {
    padding: 1.25rem;
    line-height: 1.6;
}

.address-line {
    margin-bottom: 0.25rem;
}

/* Таблиця товарів */
.items-table-card {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    background-color: white;
}

.items-table-card:hover {
    box-shadow: var(--shadow-lg);
}

.items-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.items-table thead th {
    background: linear-gradient(135deg, var(--primary-color), #0d6efd);
    color: white;
    padding: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border: none;
}

.items-table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-color);
}

.items-table tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
    transform: translateY(-2px);
}

.items-table tbody tr:last-child {
    border-bottom: none;
}

.items-table tbody td {
    padding: 1rem;
    vertical-align: middle;
}

.items-table tfoot {
    background-color: rgba(0, 123, 255, 0.08);
}

.items-table tfoot td {
    padding: 1.25rem 1rem;
    font-weight: 600;
}

/* Артикули і товари */
.article-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.article-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

tr:hover .article-badge {
    background-color: #e9f2ff;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

/* === СТОРІНКА СПИСКУ ЗАМОВЛЕНЬ === */
.page-orders {
    animation: fadeIn 0.5s ease-in-out;
}

/* Заголовок сторінки замовлень */

/* Таблиця замовлень */
.orders-table {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 2rem;
    border: none;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.orders-table thead {
    background: linear-gradient(135deg, var(--primary-color), #0d6efd);
}

.orders-table th {
    color: white;
    font-weight: 500;
    padding: 1rem;
    border: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.orders-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.orders-table tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.orders-table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
}

.orders-table tbody tr:last-child td {
    border-bottom: none;
}

/* Стилі для ID замовлення */
.order-id {
    font-family: monospace;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-id-prefix {
    font-size: 0.85rem;
    color: var(--secondary-color);
}

/* Стилі для дати */
.order-date {
    display: flex;
    flex-direction: column;
}

.date-value {
    font-weight: 500;
}

.date-time {
    font-size: 0.85rem;
    color: var(--secondary-color);
}

/* Стилі для кнопок дій */
.btn-view {
    padding: 0.5rem 1rem;
    background-color: var(--info-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-view:hover {
    background-color: #138496;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    color: white;
}

/* Стилі для порожнього результату */
.empty-orders {
    text-align: center;
    padding: 3rem 2rem;
    background-color: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
}

.empty-orders-icon {
    font-size: 5rem;
    color: var(--secondary-color);
    opacity: 0.7;
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.btn-shop-now {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-shop-now:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    color: white;
}

/* === СТОРІНКА ТОВАР НЕ ЗНАЙДЕНО === */
.page-not-found {
    animation: fadeIn 0.5s ease-in-out;
    padding: 2rem 0;
}

/* Картка не знайдено */
.not-found-card {
    border: none;
    box-shadow: var(--shadow);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-bottom: 2рем;
    background-color: white;
    transition: all 0.3s ease;
}

.not-found-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.not-found-body {
    padding: 2.5rem;
    text-align: center;
}

/* Іконка пошуку */
.search-icon-container {
    margin-bottom: 2rem;
}

.search-icon {
    font-size: 5rem;
    color: var(--danger-color);
    opacity: 0.8;
    animation: pulse 2s infinite ease-in-out;
}

/* Особливий бейдж для артикула */
.not-found-card .article-badge {
    background: var(--light-bg);
    padding: 0.5rem 1рем;
    border-radius: 4px;
    font-family: monospace;
    font-weight: 600;
    font-size: 1.2rem;
    color: var (--dark-bg);
    display: inline-block;
    margin: 1rem 0;
    border-left: 3px solid var(--danger-color);
}

/* Пошукова форма */
.search-form {
    max-width: 500px;
    margin: 2rem auto 0;
}

/* Кнопки дій */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

/* Рекомендовані товари */
.recommendations {
    margin-top: 3rem;
}

.recommendations-header {
    background: linear-gradient(135deg, var(--secondary-color), #495057);
    color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.recommendations-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

/* === СТОРІНКА ПРО НАС === */

/* Заголовок */

/* Заголовки карток на сторінці Про нас */

/* Списки брендів */
.brand-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.brand-list li {
    padding: 0.75rem 0;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px dashed var(--border-color);
}

.brand-list li:hover {
    transform: translateX(5px);
    color: var(--primary-color);
}

.brand-list li i {
    color: var(--warning-color);
    font-size: 1.1rem;
}

/* Контакт */
.contact-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background-color: rgba(23, 162, 184, 0.1);
    border-radius: 30px;
    color: var(--info-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--info-color);
    font-weight: 500;
    gap: 0.5rem;
}

.contact-link:hover {
    background-color: var(--info-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.contact-link i {
    font-size: 1.1rem;
}

/* Мапа */
.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

/* === ГОЛОВНА СТОРІНКА === */
/* Секції сторінки */
.page-sections {
    padding-top: 1rem;
    animation: fadeIn 0.5s ease-in-out;
}

/* Вітальна секція */
.welcome-card {
    border: none;
    box-shadow: var(--shadow);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    background-color: white;
}

.welcome-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.welcome-header {
    background: linear-gradient(135deg, var(--primary-color), #0d6efd);
    color: white;
    padding: 1.25rem 1.5rem;
    border: none;
}

.welcome-header h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.welcome-body {
    padding: 1.75rem;
    background-color: white;
}

/* Інформаційні блоки на головній */
.contact-header {
    background: linear-gradient(135deg, var(--info-color), #0f9eb7);
    color: white;
}

.service-header {
    background: linear-gradient(135deg, var(--warning-color), #ffa000);
    color: white;
}

.info-card .card-header h4 {
    margin: 0;
    font-weight: 600;
    font-size: 1.15rem; /* Зменшуємо розмір шрифту */
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.info-card {
    height: auto; /* Замість 100%, щоб картка адаптувалася до контенту */
    display: flex;
    flex-direction: column;
}

.contact-header, .service-header {
    padding: 1rem; /* Зменшуємо відступи для кращого відображення */
}

@media (max-width: 768px) {
    .info-card .card-header h4 {
        font-size: 1rem;
    }
    
    .contact-header, .service-header {
        padding: 0.75rem;
    }
    
    .info-card {
        margin-bottom: 1rem;
    }
}

.info-card .card-header h4 {
    margin: 0;
    font-weight: 600;
    font-size: 1.25rem;
}

.contact-phone {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    background-color: rgba(23, 162, 184, 0.05);
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.contact-phone:hover {
    background-color: rgba(23, 162, 184, 0.1);
    transform: translateY(-3px);
}

.phone-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--info-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.phone-number {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-bg);
    margin-bottom: 0.25rem;
}

.phone-hours {
    font-size: 0.85rem;
    color: var(--secondary-color);
}

.btn-learn-more {
    padding: 0.5rem 1rem; /* Зменшуємо розмір кнопки */
    background-color: transparent;
    border: 1px solid var(--warning-color); /* Тонша рамка */
    color: var(--warning-color);
    border-radius: var(--border-radius);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500; /* Менш жирний шрифт */
    transition: all 0.3s ease;
    cursor: pointer;
    margin-top: 0.5rem;
    font-size: 0.9rem; /* Зменшуємо розмір шрифту */
}

.btn-learn-more:hover {
    background-color: var(--warning-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Секція продуктів на головній */
.products-section {
    margin-top: 3rem;
}

/* Картки продуктів на головній */
.product-card {
    border: none;
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 100%;
    transition: all 0.3s ease;
    background-color: white;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-lg);
}

.product-img-container {
    height: 200px;
    padding: 1rem;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.product-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

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

.product-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--dark-bg);
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta {
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px dashed var(--border-color);
    font-size: 0.9rem;
}

.product-meta-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.meta-label {
    color: var(--secondary-color);
    font-weight: 500;
}

.meta-value {
    font-weight: 600;
}

.product-article {
    background: var(--light-bg);
    padding: 0.2rem 0.4рем;
    border-radius: 3px;
    font-family: monospace;
    font-weight: 600;
    font-size: 0.8rem;
}

.product-price {
    color: var(--primary-color);
}

.product-description {
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}

.btn-details {
    width: 100%;
    padding: 0.5rem 0;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    margin-top: auto;
}

.btn-details:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    color: white;
}

/* Кнопка "Показати більше" */

/* Адаптивність головної сторінки */
@media (max-width: 768px) {
    .welcome-header {
        padding: 1rem;
    }
    
    .welcome-header h1 {
        font-size: 1.25rem;
    }
    
    .welcome-body, .search-body, .info-card .card-body {
        padding: 1.25rem;
    }
    
    .product-img-container {
        height: 180px;
        padding: 0.75рем;
    }
    
    .product-title {
        font-size: 1рем;
        min-height: 35px;
    }
    
    .product-description {
        min-height: 35px;
    }
    
    .btn-search, .btn-learn-more {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .product-img-container {
        height: 160px;
    }
    
    .welcome-header h1 {
        font-size: 1.1рем;
    }
}

/* === СТОРІНКА ДЕТАЛЕЙ ПРОДУКТУ === */
.product-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    animation: fadeIn 0.5s ease-in-out;
}

/* === ЗОБРАЖЕННЯ ПРОДУКТУ === */
.image-section {
    position: relative;
    height: 450px;
    background-color: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.image-section:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.image-container img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

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

.image-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    z-index: 2;
    border: none;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.image-nav:hover {
    background-color: var(--primary-color);
    color: white;
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.image-nav.prev {
    left: 15px;
}

.image-nav.next {
    right: 15px;
}

.image-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    background: rgba(255,255,255,0.8);
    padding: 5px 10px;
    border-radius: 20px;
    z-index: 2;
}

.image-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* === ІНФОРМАЦІЯ ПРО ПРОДУКТ === */
.product-info-card {
    border: none;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-bottom: 1.5рем;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.product-info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-info-header {
    background: linear-gradient(135deg, var(--primary-color), #0d6efd);
    color: white;
    padding: 1.25rem;
    border: none;
}

.product-info-header h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff !important;
}

.product-info-body {
    padding: 1.5rem;
    background-color: white;
}

/* === СЕКЦІЯ ОПИСУ === */
.description-section {
    border: none;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: 1.5rem;
    background-color: white;
    border: 1px solid var(--border-color);
}

.description-header {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var (--info-color), #0dcaf0);
    border-bottom: 1px solid var(--border-color);
    color: white;
}

.description-header h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
}

.description-body {
    padding: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--dark-bg);
}

.description-body p {
    margin-bottom: 0.5rem;
}

/* Для мобільної версії */
@media (max-width: 767px) {
    .description-header {
        padding: 0.75rem 1rem;
    }
    
    .description-body {
        padding: 1rem;
        font-size: 1rem;
    }
}

/* === ЦІНИ === */
.price-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

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

.price-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

/* === ФОРМА ДОДАВАННЯ В КОШИК === */
.cart-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    width: 100%;
}

.btn-add-to-cart {
    background-color: var(--success-color);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    flex-grow: 1;
}

.btn-add-to-cart:hover {
    background-color: #218838;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* === АДАПТИВНІСТЬ ДЛЯ СТОРІНКИ ДЕТАЛЕЙ ПРОДУКТУ === */
@media (max-width: 768px) {
    .product-container {
        padding: 1rem;
        margin: 1rem auto;
    }
    
    .image-section {
        height: 300px;
    }
    
    .product-info-header h1 {
        font-size: 1.25рем;
    }
    
    .image-nav {
        width: 32px;
        height: 32px;
    }
    
    .cart-form {
        flex-direction: column;
    }
    
    .quantity-input {
        width: 100% !important;
    }
    
    .btn-add-to-cart {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .image-section {
        height: 250px;
    }
}

/* === ОПТИМІЗАЦІЯ: Видалення дубльованих медіа-запитів === */
@media (max-width: 768px) {
    /* Об'єднання всіх медіа-запитів для 768px */
    .navbar-brand img {
        height: 40px;
    }
    
    .container {
        padding: 1rem;
    }
    
    .footer {
        text-align: center;
    }
    
    .section-header {
        padding: var(--padding-section-sm);
    }
    
    .section-header h2,
    .section-header h3 {
        font-size: 1.25rem;
    }
    
    .btn-outline, .btn-action {
        width: 100%;
        justify-content: center;
    }
    
    /* Стилі для таблиць в кошику */
    .cart-table thead,
    .orders-table thead,
    .items-table thead {
        display: none;
    }
    
    .cart-table tbody tr,
    .orders-table tr {
        display: block;
        padding: 0.5rem;
        margin-bottom: 1rem;
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
    }
    
    .cart-table tbody td,
    .orders-table td {
        display: block;
        text-align: right;
        padding: 0.5rem;
        border: none;
        position: relative;
        padding-left: 40%;
    }
    
    .cart-table tbody td::before,
    .orders-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0.5rem;
        width: 35%;
        font-weight: 600;
        text-align: left;
        color: var(--secondary-color);
        font-size: 0.85rem;
    }
    
    .quantity-input {
        width: 60px !important;
    }
    
    .checkout-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-continue, .btn-place-order {
        width: 100%;
        justify-content: center;
    }
    
    /* Специфічні для сторінки замовлень */
    .order-header {
        padding: 1.25rem;
    }
    
    .btn-back {
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
    }
    
    .order-number {
        display: block;
        margin: 0.5rem 0 0 0;
        text-align: center;
    }
    
    /* Специфічні для таблиць на сторінці замовлень */
    .items-table th, .items-table td {
        padding: 0.75rem;
    }
    
    .items-table .d-none-mobile {
        display: none;
    }
    
    /* Адаптивність для списку замовлень */
    
    .orders-table, 
    .orders-table tbody, 
    .orders-table tr, 
    .orders-table td {
        display: block;
        width: 100%;
    }

    .orders-table td {
        text-align: right;
        padding: 0.75rem 1rem;
        position: relative;
        padding-left: 50%;
    }
    
    .orders-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 1rem;
        width: 45%;
        white-space: nowrap;
        font-weight: 600;
        text-align: left;
        text-transform: uppercase;
        font-size: 0.8rem;
        color: var(--secondary-color);
    }
    
    .order-id, .order-date, .order-items, .order-total {
        justify-content: flex-end;
    }
    
    /* Для сторінки Про нас */
    
    .brand-list {
        grid-template-columns: 1fr;
    }
    
    /* Для сторінки Не знайдено */
    
    .not-found-body {
        padding: 1.5рем;
    }
    
    .search-icon {
        font-size: 4рем;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    /* Для головної сторінки */
    .welcome-header {
        padding: 1рем;
    }
    
    .welcome-header h1 {
        font-size: 1.25рем;
    }
    
    .welcome-body, .search-body, .info-card .card-body {
        padding: 1.25рем;
    }
    
    .product-img-container {
        height: 180px;
        padding: 0.75рем;
    }
    
    .product-title {
        font-size: 1рем;
        min-height: 35px;
    }
    
    .product-description {
        min-height: 35px;
    }
    
    .btn-search, .btn-learn-more {
        width: 100%;
        justify-content: center;
    }
    
    /* Для сторінки деталей продукту */
    .product-container {
        padding: 1рем;
        margin: 1рем auto;
    }
    
    .image-section {
        height: 300px;
    }
    
    .product-info-header h1 {
        font-size: 1.25рем;
    }
    
    .image-nav {
        width: 32px;
        height: 32px;
    }
    
    .cart-form {
        flex-direction: column;
    }
    
    .quantity-input {
        width: 100% !important;
    }
    
    .btn-add-to-cart {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .btn-view {
        width: 100%;
        justify-content: center;
    }
    
    .product-img-container {
        height: 160px;
    }
    
    .welcome-header h1 {
        font-size: 1.1рем;
    }
    
    .image-section {
        height: 250px;
    }
}

/* === ОПТИМІЗАЦІЯ: Виправлення конфліктів стилів === */

/* Видалити дублікати стилів кнопок - вони вже використовують базові класи */
.btn-continue {
    /* Ці стилі вже визначені через базові класи та використовуються в HTML через:
       class="btn-outline btn-outline-primary" */
}

/* Видалити дублікати стилів заголовків секцій */
 .recommendations-header {
    /* Ці стилі вже визначені через базові класи та використовуються в HTML через:
       class="section-header section-header-secondary" і т.д. */
}

/* Видалити дублікати стилів іконок заголовків */

/* === ОПТИМІЗАЦІЯ: Створення уніфікованого стилю для порожніх станів === */

.empty-icon {
    font-size: 5рем;
    color: var(--secondary-color);
    opacity: 0.7;
    margin-bottom: 1.5рем;
    animation: pulse 2s infinite ease-in-out;
}

/* === ОПТИМІЗАЦІЯ: Уніфікація заголовків для Про нас === */
/* Замість використання окремих класів для заголовків на сторінці "Про нас" */
.info-card-header.section-header-primary {
    /* Загальні стилі для всіх заголовків на сторінці "Про нас" */
    padding: 1.25рем;
    display: flex;
    align-items: center;
    gap: 0.75рем;
}

/* === ОПТИМІЗАЦІЯ: Фіксація пробілу у value === */
.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);  /* Виправлено пробіл */
}

.btn-outline-danger:hover {
    background-color: var(--danger-color);  /* Виправлено пробіл */
}

.order-id-prefix {
    font-size: 0.85рем;
    color: var(--secondary-color);  /* Виправлено пробіл */
}

.empty-orders-icon {
    font-size: 5рем;
    color: var(--secondary-color);  /* Виправлено пробіл */
    opacity: 0.7;
    margin-bottom: 1.5рем;
    animation: pulse 2s infinite ease-in-out;
}

.btn-shop-now:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: var (--shadow);  /* Виправлено пробіл */
    color: white;
}

.product-card:hover {
    transform: translateY(-7px);
    box-shadow: var (--shadow-lg);  /* Виправлено пробіл */
}

.product-price {
    color: var(--primary-color);  /* Виправлено пробіл */
}

/* === ОПТИМІЗАЦІЯ: Видалення трункованих медіа-запитів === */
@media (max-width: 768px) {
    .orders-table td {
        /* Повний стиль вже визначено вище */
    }
    
    .order-id, .order-date, .order-items, .order-total {
        justify-content: flex-end;
    }
}

@media (max-width: 576px) {
    .btn-view {
        width: 100%;
        justify-content: center;
    }
}

/* === ВИПРАВЛЕННЯ ДЛЯ ПОШУКОВОЇ ФОРМИ === */

/* Стилі для пошукової картки */
.search-card {
    margin-bottom: 1.5рем;
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    background-color: white;
    overflow: hidden;
}

.search-body {
    padding: 1.25рем;
    background-color: white;
}

/* Стилі для пошукової форми */
.search-body .input-group {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.search-body .form-control {
    border: none;
    padding: 0.75рем 1рем;
    font-size: 1рем;
}

.search-body .form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

/* Стилі для кнопки пошуку */
.btn-search {
    padding: 0.75рем 1.5рем;
    background-color: var(--primary-color);
    border: none;
    color: white;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5рем;
    transition: all 0.3s ease;
}

.btn-search:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .search-body {
        padding: 1рем;
    }
    
    .search-body .form-control {
        padding: 0.6рем;
        font-size: 0.95рем;
    }
    
    .btn-search {
        padding: 0.6рем 1рем;
    }
}

/* === ЗАГАЛЬНІ ПОКРАЩЕННЯ МАКЕТУ === */

/* Покращуємо сітку для продуктових карток */
@media (min-width: 768px) and (max-width: 991px) {
    .row-cols-md-5 {
        --bs-columns: 3; /* На планшетах показуємо по 3 в ряду замість 5 */
    }
}

@media (max-width: 767px) {
    .row-cols-md-5 {
        --bs-columns: 2; /* На маленьких екранах показуємо по 2 в ряду */
    }
}

@media (max-width: 480px) {
    .row-cols-md-5 {
        --bs-columns: 1; /* На дуже маленьких екранах показуємо по 1 в ряду */
    }
}

/* Покращуємо відступи між секціями на головній */
.page-sections .row {
    --bs-gutter-y: 1рем; /* Додаємо вертикальні відступи в сітці */
}

/* Фіксуємо висоту карток продуктів для однакового вигляду */
.product-card {
    display: flex;
    flex-direction: column;
}

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

.product-body .btn-details {
    margin-top: auto; /* Кнопка завжди внизу картки */
}

/* Покращення пошукової форми на сторінці продукту */
.product-details-search {
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
}

.product-details-search .search-card {
    box-shadow: var(--shadow-sm);
    margin-bottom: 0;
}

.product-details-search .search-body {
    padding: 0.75rem;
}

.product-details-search .form-control-lg {
    height: 3rem;
    font-size: 1rem;
}

.product-details-search .btn-search {
    padding: 0.5rem 1.25rem;
    font-size: 1rem;
}

/* Адаптивність для мобільних пристроїв */
@media (max-width: 768px) {
    .product-details-search .search-body {
        padding: 0.5rem;
    }
    
    .product-details-search .form-control-lg {
        height: 2.5rem;
    }
    
    .product-details-search .btn-search {
        padding: 0.5rem 1рем;
    }
}

/* === ФІЛЬТРИ ПРОДУКТІВ === */

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* === ФІЛЬТР БРЕНДІВ === */
.filter-card {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    background-color: white;
    height: 100%;
}

.filter-body {
    padding: 0.75rem 1rem;
}

.filter-label {
    color: var(--secondary-color);
    font-weight: 500;
    white-space: nowrap;
    margin-bottom: 0;
}

.select-brand {
    min-width: 180px;
    border-color: var(--border-color);
    box-shadow: none;
    font-weight: 500;
}

.select-brand:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
}

/* Розтягуємо селект на мобільних */
@media (max-width: 576px) {
    .filter-body {
        padding: 0.5rem;
    }
    
    .filter-label {
        display: none;
    }
    
    .select-brand {
        flex-grow: 1;
    }
    
    #brandFilterForm {
        width: 100%;
    }
    
    .btn-sm {
        padding: 0.25rem 0.5рем;
        font-size: 0.75рем;
    }
}

/* Виправлення стилю для кнопки "Show More Products" */

/* === ОПТИМІЗАЦІЯ ПОРЯДКУ ВІДОБРАЖЕННЯ НА МОБІЛЬНИХ === */
@media (max-width: 767px) {
    /* Порядок відображення на мобільних пристроях */
    .mobile-first {
        order: 1;
        margin-bottom: 1rem; /* Уніфікований відступ */
    }
    
    .mobile-second {
        order: 2;
        margin-bottom: 1rem; /* Уніфікований відступ */
    }
    
    .mobile-last {
        order: 3;
    }
    
    /* Менші відступи для контейнера продукту */
    .product-container {
        padding: 1rem;
    }
    
    /* Оновлення відступів між секціями до уніфікованого розміру */
    .product-container .row {
        margin-bottom: 1rem;
    }
    
    .product-container .row + .row {
        margin-top: 0; /* Прибираємо подвійні відступи між рядками */
    }
    
    /* Уніфіковані внутрішні відступи для карток */
    .product-info-body, 
    .description-body {
        padding: 1rem;
    }
    
    .product-info-header,
    .description-header {
        padding: 0.75rem 1rem;
    }
    
    /* Зменшуємо висоту зображення для мобільних */
    .image-section {
        height: 250px;
        margin-bottom: 0; /* Прибираємо додатковий нижній відступ */
    }
    
    /* Прибираємо зайві відступи */
    .product-info-card {
        margin-bottom: 0;
    }
    
    .description-section {
        margin-top: 0;
    }
    
    /* Оптимізація форм додавання в кошик */
    .cart-form {
        margin-top: 0.5rem;
    }
    
    /* Зменшуємо відступи між елементами метаданих */
    .product-meta-item {
        margin-bottom: 0.5rem;
    }
    
    /* Зменшуємо відступи карток цін */
    .price-card {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
}

/* Додаткові стилі для дуже малих екранів */
@media (max-width: 480px) {
    .image-section {
        height: 200px;
    }
    
    .product-info-header h1 {
        font-size: 1.25rem;
    }
}

/* === ОПТИМІЗАЦІЯ ПОРЯДКУ ВІДОБРАЖЕННЯ НА МОБІЛЬНИХ === */
@media (max-width: 767px) {
    /* Порядок відображення на мобільних пристроях */
    .mobile-first {
        order: 1;
    }
    
    .mobile-second {
        order: 2;
    }
    
    .mobile-last {
        order: 3;
    }
    
    /* Додаткове поліпшення вигляду на мобільних */
    .product-info-card {
        margin-bottom: 1.5rem;
    }
    
    .image-section {
        margin-bottom: 1.5rem;
    }
    
    .description-section {
        margin-top: 0;
    }
    
    /* Зменшуємо висоту зображення для мобільних */
    .image-section {
        height: 250px;
    }
    
    /* Зменшуємо відступи для економії простору */
    .product-info-body, .description-body {
        padding: 1rem;
    }
    
    .product-info-header, .description-header {
        padding: 0.75rem 1rem;
    }
    
    .product-info-header h1 {
        font-size: 1.25rem;
    }
    
    /* Додаткові оптимізації */
    .product-container {
        padding: 1рем;
        margin: 1рем auto;
    }
    
    /* Зробимо кнопки більш помітними */
    .btn-add-to-cart {
        width: 100%;
        padding: 0.75рем;
    }
    
    .btn.btn-outline-primary {
        width: 100%;
        justify-content: center;
    }
}

/* Для дуже маленьких екранів */
@media (max-width: 480px) {
    .image-section {
        height: 200px;
    }
    
    .product-meta-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .meta-value, .article-badge {
        margin-top: 0.25рем;
    }
}

/* Альтернативний підхід з використанням flexbox */
@media (max-width: 767px) {
    .product-container .row {
        display: flex;
        flex-direction: column;
    }
    
    .product-info-card {
        order: 1; /* Показати першим */
    }
    
    .image-section {
        order: 2; /* Показати другим */
    }
    
    .description-section {
        order: 3; /* Показати третім */
    }
}

/* Невикористані стилі для видалення */

/* Застарілі заголовки - замінені на section-header */

.recommendations-header {
    background: linear-gradient(135deg, var(--secondary-color), #495057);
    color: white;
    padding: 1.5рем;
    border-radius: var(--border-radius-lg);
    margin-bottom: 1.5рем;
    box-shadow: var (--shadow);
    display: flex;
    align-items: center;
    gap: 0.75рем;
}

/* Застарілі іконки заголовків - замінені на header-icon */

/* Застарілі кнопки - замінені базовими класами */

.btn-continue {
    padding: 0.75рем 1.5рем;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: var(--border-radius);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5рем;
    transition: all 0.3s ease;
}

/* Застарілі порожні стани - замінені на empty-state */

.empty-orders {
    text-align: center;
    padding: 3рем 2рем;
    background-color: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var (--shadow);
}

/* Застарілі заголовки сторінок - об'єднані в section-header */

/* Невикористані утиліти */

/* Дублікати медіа-запитів (видалити другі входження) */
@media (max-width: 768px) {
    .orders-table td {
        text-align: right;
        padding: 0.75рем 1рем;
        position: relative;
        padding-left: 50%;
    }

    .order-id, .order-date, .order-items, .order-total {
        justify-content: flex-end;
    }
}

@media (max-width: 576px) {
    .btn-view {
        width: 100%;
        justify-content: center;
    }
}

/* Дублікати стилів, що покращено */
.welcome-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Невикористані анімації */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Стилі що використовуються через shorthand */
.product-body {
    flex: 1;
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px;
    border-top: 1px solid #e9ecef;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.cookie-text {
    flex: 1;
    min-width: 280px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: space-between;
    }
}
/* Додайте це в ваш файл стилів */

/* Стилі для галереї зображень продукту */
.image-section {
    position: relative;
    margin-bottom: 20px;
}

.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 350px;
    overflow: hidden;
    border: 1px solid #e9e9e9;
    border-radius: 5px;
    margin-bottom: 10px;
}

.image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

/* Стилі для контейнера мініатюр */
.thumbnails-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    margin-top: 10px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #007bff #e9e9e9;
}

/* Приховуємо скролбар в Chrome */
.thumbnails-container::-webkit-scrollbar {
    height: 6px;
}

.thumbnails-container::-webkit-scrollbar-thumb {
    background-color: #007bff;
    border-radius: 6px;
}

.thumbnails-container::-webkit-scrollbar-track {
    background-color: #e9e9e9;
}

/* Стилі для окремих мініатюр */
.thumbnail {
    flex: 0 0 70px;
    width: 70px;
    height: 70px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
}

.thumbnail:hover {
    border-color: #0056b3;
    transform: translateY(-2px);
}

.thumbnail.active {
    border-color: #007bff;
    border-width: 3px;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Кнопки навігації */
.image-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    z-index: 5;
}

.image-nav:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.image-nav.prev {
    left: 10px;
}

.image-nav.next {
    right: 10px;
}

/* Стилі для точок (навігація на мобільних) */
.image-dots {
    display: none; /* За замовчуванням приховано, на мобільних відображається */
    justify-content: center;
    margin-top: 10px;
    gap: 8px;
}

.image-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.2s;
}

.image-dot.active {
    background-color: #007bff;
    transform: scale(1.2);
}

/* Медіа запити для адаптивності */
@media (max-width: 768px) {
    .image-container {
        height: 250px;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 576px) {
    .image-container {
        height: 200px;
    }
    
    .thumbnails-container {
        gap: 6px;
    }
    
    .thumbnail {
        width: 50px;
        height: 50px;
    }
    
    .image-dots {
        display: flex;
    }
}

/* Додайте до вашого CSS файлу */
.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: text-bottom;
    border: 0.2em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border .75s linear infinite;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

/* Додайте ці стилі в кінець вашого CSS файлу */

/* Стилі для цінових карток */
.price-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

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

/* Контейнер для інформації про ціну */
.price-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

/* Стилі для мобільних (вертикальне розташування) */
@media (max-width: 991px) {
    .price-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .price-column, .availability-column, .quantity-column, .button-column {
        width: 100%;
        margin-bottom: 0.75rem;
    }
    
    .price-column, .availability-column {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }
    
    .cart-form {
        width: 100%;
    }
    
    .quantity-column {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .quantity-input {
        max-width: 120px;
    }
    
    .btn-add-to-cart {
        width: 100%;
    }
}

/* Стилі для десктопів (горизонтальне розташування) */
@media (min-width: 992px) {
    .price-info {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .price-column, .availability-column {
        display: flex;
        flex-direction: column;
        min-width: 120px;
    }
    
    .price-label, .availability-label, .quantity-label {
        font-size: 0.85rem;
        color: var(--secondary-color);
        margin-bottom: 0.25rem;
    }
    
    .cart-form {
        display: flex;
        align-items: center;
        gap: 1rem;
        flex-grow: 1;
        justify-content: flex-end;
    }
    
    .quantity-column {
        display: flex;
        flex-direction: column;
    }
    
    .quantity-input {
        width: 75px;
    }
    
    .btn-add-to-cart {
        white-space: nowrap;
        height: 40px;
    }
}

/* Спільні стилі для обох варіантів */
.price-value {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.btn-add-to-cart {
    background-color: var(--success-color);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-add-to-cart:hover {
    background-color: #218838;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.quantity-input {
    text-align: center;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 0.375rem 0.75rem;
}

/* Додатковий адаптивний стиль для компактного режиму на планшетах */
@media (min-width: 768px) and (max-width: 991px) {
    .price-info {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .price-column, .availability-column {
        width: auto;
        margin-right: 1.5rem;
    }
    
    .cart-form {
        display: flex;
        width: 100%;
        margin-top: 0.75rem;
        justify-content: space-between;
        align-items: center;
    }
    
    .quantity-column {
        width: auto;
    }
    
    .button-column {
        width: auto;
    }
    
    .btn-add-to-cart {
        white-space: nowrap;
    }
}

/* Медіа-запит для дуже малих екранів */
@media (max-width: 375px) {
    .button-text {
        display: none; /* Приховуємо текст кнопки на дуже малих екранах */
    }
    
    .btn-add-to-cart {
        padding: 0.5rem;
    }
    
    .btn-add-to-cart i {
        margin-right: 0;
    }
}

/* Додайте ці стилі в ваш CSS файл */

/* Стилі для цінових опцій */

.price-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Стилі для всіх контейнерів інформації */

/* Стилі для заголовків */
.price-label,
.availability-label,
.quantity-label {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.25rem;
}

/* Стилі для значень */
.price-value {
    font-weight: 700;
    color: #007bff;
    font-size: 1.1rem;
}

.availability-value {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Стилі для форми */
.cart-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

/* Стилі для кнопки */
.btn-add-to-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 0.25rem;
    padding: 0.5rem 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.btn-add-to-cart:hover {
    background-color: #218838;
}

.quantity-input {
    width: 100%;
    padding: 0.375rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

/* Адаптивність для десктопів (в один рядок) */
@media (min-width: 992px) {
    .price-info {
        flex-direction: row;
        align-items: center;
    }
    
    .cart-form {
        flex-direction: row;
        align-items: center;
        flex: 1;
    }
    
    .quantity-input {
        width: 80px;
    }
}

/* Додаткова оптимізація для планшетів */
@media (min-width: 768px) and (max-width: 991px) {
    .cart-form {
        flex-direction: row;
        align-items: center;
    }
    
    .quantity-input {
        width: 80px;
    }
}

/* Дуже малі екрани - ховаємо текст кнопки */
@media (max-width: 350px) {
    .btn-add-to-cart span {
        display: none;
    }
}

/* Додайте ці стилі до вашого CSS файлу */

/* Стилі для карток з цінами */
.price-card {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.price-card:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.price-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

/* Стилі для контейнерів даних */
.price-column,
.availability-column {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.price-label,
.availability-label,
.quantity-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.price-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #007bff;
}

.availability-value {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
}

.text-success {
    color: #28a745;
}

.text-warning {
    color: #ffc107;
}

/* Форма та кнопка */
.cart-form {
    display: flex;
    width: 100%;
    margin-top: 0.5rem;
    align-items: center;
    justify-content: space-between;
}

.quantity-column {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-input {
    width: 60px;
    padding: 0.25rem 0.5рем;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    text-align: center;
}

.btn-add-to-cart {
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 0.25rem;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-add-to-cart:hover {
    background-color: #218838;
}

.btn-add-to-cart i {
    font-size: 1.25rem;
}

/* Десктоп версія - все в одному рядку */
@media (min-width: 992px) {
    .price-info {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .price-column,
    .availability-column {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        width: auto;
        margin-right: 1rem;
    }
    
    .cart-form {
        flex-grow: 1;
        margin-top: 0;
        margin-left: auto;
        width: auto;
        display: flex;
        justify-content: flex-end;
        gap: 1rem;
    }
    
    .quantity-column {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Планшети */
@media (min-width: 768px) and (max-width: 991px) {
    .price-card {
        padding: 0.75rem 1rem;
    }
    
    .cart-form {
        flex-direction: row;
        gap: 1rem;
    }
}

/* Мобільні пристрої */
@media (max-width: 767px) {
    .price-card {
        padding: 0.75rem;
    }
    
    .cart-form {
        flex-wrap: wrap;
    }
    
    .quantity-column {
        width: 50%;
    }
    
    .button-column {
        width: 50%;
        display: flex;
        justify-content: flex-end;
    }
}
/* Додати в кінець файлу */

/* Фіксована кнопка зв'язку */
.fixed-contact-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .contact-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
  }
  
  .contact-button:hover {
    transform: scale(1.1);
  }
  
  .phone-button {
    background-color: var(--primary-color);
  }
  
  .whatsapp-button {
    background-color: #25D366;
  }
  
  .contact-tooltip {
    position: absolute;
    right: 60px;
    background-color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    transform: translateX(10px);
    width: max-content;
    max-width: 250px;
    z-index: 10;
  }
  
  .contact-button:hover .contact-tooltip {
    opacity: 1;
    transform: translateX(0);
  }
  
  /* Стилі для футера */
  .footer-contact-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
  }
  
  .footer-contact-link:hover {
    color: white;
  }
  
  /* Медіа-запит для адаптивності на мобільних */
  @media (max-width: 576px) {
    .fixed-contact-buttons {
      right: 10px;
      bottom: 10px;
    }
  }

/* Покращення стилів для підвалу */
.footer-contact .footer-link {
    display: inline-block;
    transition: transform 0.2s;
}

.footer-contact .footer-link:hover {
    transform: translateX(3px);
}

/* Додати ці стилі: */
.subcategories-card,
.filter-card {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.filter-card .card-body {
    max-height: 300px;
    overflow-y: auto;
}

/* Додатковий стиль для покращення вигляду списку брендів */
.form-select {
    width: 100%;
}

/* Покращення відображення зображень товарів у категоріях */
.product-img-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 75%; /* Співвідношення сторін 4:3 */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f9fa;
}

.product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Важливо: змінюємо з cover на contain */
    transition: transform 0.3s ease;
}

/* Плавне масштабування при наведенні */
.product-img-container:hover .product-img {
    transform: scale(1.05);
}

/* Стилі для заповнювача, якщо немає зображення */
.no-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #adb5bd;
    font-size: 2rem;
}
/* Покращення відображення зображень товарів */

.product-img-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* Квадратний блок */
    background-color: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Зберігає пропорції зображення */
    padding: 10px; /* Відступ від країв */
    transition: transform 0.3s ease;
}

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

.no-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #adb5bd;
}

/* Додаємо стилі для кращого вигляду карток товарів */
.product-card {
    height: 100%;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.product-body {
    padding: 15px;
}

.product-title {
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.3;
    height: 2.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-meta {
    margin-bottom: 10px;
}

.product-meta-item {
    display: flex;
    margin-bottom: 5px;
    font-size: 0.85rem;
}

.meta-label {
    color: #6c757d;
    margin-right: 5px;
    font-weight: 500;
}

.meta-value {
    color: #212529;
}

.product-price {
    font-size: 1.25rem;
    color: #007bff;
    font-weight: 700;
    margin-bottom: 12px;
}

.product-actions {
    margin-top: auto;
}
/* Стилі для бічної панелі фільтрів */
.filter-sidebar {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    scrollbar-width: thin;
    padding-right: 10px;
}

.filter-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    background-color: #fff;
    transition: all 0.25s ease;
}

.filter-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.filter-header {
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--primary-color, #0d6efd) 0%, #4e8eff 100%);
    color: #fff;
    cursor: pointer;
    position: relative;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    user-select: none;
}

.filter-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-header h5 i {
    transition: transform 0.3s ease;
}

.filter-header[aria-expanded="false"] i {
    transform: rotate(-90deg);
}

.filter-body {
    padding: 15px;
    max-height: 300px;
    overflow-y: auto;
}

/* Стилі для підкатегорій */
.subcategories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.subcategory-link {
    display: block;
    padding: 8px 12px;
    color: #495057;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.2s ease;
    margin-bottom: 5px;
}

.subcategory-link:hover {
    background-color: rgba(13, 110, 253, 0.08);
    color: var(--primary-color, #0d6efd);
    padding-left: 15px;
}

/* Стилі для опцій брендів і сортування */
.brand-options,
.sort-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.brand-option,
.sort-option {
    display: flex;
    align-items: center;
}

.brand-radio,
.sort-radio {
    margin-right: 10px;
}

.brand-label,
.sort-label {
    margin-bottom: 0;
    cursor: pointer;
    flex: 1;
}

/* Стилі для мобільних фільтрів */
@media (max-width: 991.98px) {
    .filter-sidebar {
        display: none;
    }
    
    .offcanvas {
        max-width: 300px;
    }
    
    .offcanvas-body {
        padding: 1rem;
    }
}

/* Кастомізація скролбару */
.filter-body::-webkit-scrollbar {
    width: 4px;
}

.filter-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.filter-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.filter-body::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}
/* Додайте ці стилі: */
.breadcrumb {
    font-size: 0.85rem;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    background: transparent;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #adb5bd;
}

.section-header-compact {
    padding: 0;
    margin-bottom: 0.5rem;
}

.section-header-compact h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
}
/* Покращення відображення карток товарів */
.product-card {
    height: 100%;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.product-img-container {
    position: relative;
    padding-bottom: 75%; /* Співвідношення 4:3 */
    height: 0;
    overflow: hidden;
}

.product-body {
    padding: 0.75rem;
}

.product-title {
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.3;
    height: 2.4em;
    overflow: hidden;
}

.product-meta {
    margin-bottom: 8px;
}

.product-meta-item {
    display: flex;
    margin-bottom: 3px;
    font-size: 0.8rem;
}

.product-price {
    font-size: 1.1rem;
    margin-bottom: 8px;
}
/* Додайте ці стилі для компактнішого відображення */

/* Компактніші хлібні крихти */
.breadcrumb {
    padding: 0.3rem 0;
    margin-bottom: 0.5rem;
    background: transparent;
    font-size: 0.85rem;
}

/* Компактніший заголовок категорії */
.h3 {
    font-size: 1.5rem;
}

/* Кращий формат для блоку категорій */
.filter-sidebar {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

/* Більш компактна сітка товарів */
.row-cols-lg-4 > * {
    padding-right: 8px;
    padding-left: 8px;
}
/* Виправлення стилю для опису товару */
.description-body p {
    color: #333;
    font-size: 1rem;
    line-height: 1.6;
}

.description-section {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.description-header h2 {
    color: #0d6efd;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
/* Виправлення стилю для опису товару */
.description-body p {
    color: #333 !important; /* Перевизначаємо колір тексту */
    font-size: 1rem;
    line-height: 1.6;
}

.description-section {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-top: 1.5rem;
}

.description-header h2 {
    color: #0d6efd;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
/* Стилі для центрування інформації без фото */
.product-container.no-images .col-md-6.mobile-second {
    margin: 0 auto;
    float: none;
}

.image-placeholder {
    height: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #dee2e6;
}

.image-placeholder i {
    font-size: 4rem;
    color: #adb5bd;
    margin-bottom: 1rem;
}

.image-placeholder-content {
    text-align: center;
}

.image-placeholder p {
    color: #6c757d;
    margin-top: 0.5rem;
}
/* Виправлення стилю для опису товару */
.description-body p {
    color: #333 !important; /* Перевизначаємо колір тексту */
    font-size: 1rem;
    line-height: 1.6;
}

/* Стиль для інформації про ПДВ */
.price-value + .text-muted {
    font-size: 0.875rem;
    display: block;
    margin-top: 0.25rem;
}
/* Адаптивне меню з динамічною шириною */
.navbar .navbar-nav .nav-item {
    display: flex;
    align-items: center;
}

.navbar .navbar-nav .nav-link {
    white-space: nowrap;
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
}

/* Стилі для випадаючих меню */
.dropdown-menu {
    min-width: max-content;
    width: auto;
}

.dropdown-item {
    white-space: normal;
    padding: 0.5rem 1rem;
    line-height: 1.2;
}

/* Адаптація при різних розмірах екрану */
@media (min-width: 992px) and (max-width: 1199px) {
    .navbar .navbar-nav .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 0.6rem;
    }
    
    .navbar-brand img {
        max-width: 140px;
    }
}

@media (min-width: 1200px) {
    .navbar .navbar-nav .nav-link {
        padding: 0.5rem 0.9rem;
    }
}

/* Покращення для мобільного вигляду */
@media (max-width: 991px) {
    .navbar .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
    
    .dropdown-menu {
        border: none;
        padding-left: 1.5rem;
    }
    
    .dropdown-item {
        padding: 0.5rem 0;
    }
}

/* Вирівнювання іконок у меню */
.navbar .navbar-nav .nav-link i {
    margin-right: 0.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
/* Стилі для нової кнопки "Додати в кошик" */
.btn-add-to-cart {
    background-color: var(--bs-primary);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-add-to-cart:hover {
    background-color: var(--bs-primary-darker, #0056b3);
    transform: translateY(-2px);
    box-shadow: 0 3px 5px rgba(0,0,0,0.1);
}

.btn-add-to-cart i {
    margin-right: 0.35rem;
}

/* Стилі для блоку з кнопками */
.product-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Покращення стилю для опису товару */
.description-section {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.description-header h2 {
    color: var(--bs-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.description-body p {
    color: #333 !important;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

/* Уведомления при добавлении в корзину */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    z-index: 1050;
    transition: all 0.3s ease;
    animation: slideIn 0.3s forwards;
}

.toast-notification.success {
    border-left: 4px solid var(--bs-success);
}

.toast-notification i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.toast-notification.success i {
    color: var(--bs-success);
}

.toast-notification.hide {
    animation: slideOut 0.5s forwards;
}

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

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}
/* Додайте в файл public.css або створіть <style> блок в index.html */

/* Збільшення горизонтальних відступів між продуктами */
.product-card {
    margin: 0 15px 30px; /* Збільшуємо бічні відступи з 10px до 15px */
    padding: 15px;
}

/* Стилі для блоку з кнопками */
.product-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

/* Стиль для кнопки View Details */
.btn-details {
    background-color: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-grow: 1;
    margin-right: 10px; /* Додаємо відступ між кнопками */
}

.btn-details:hover {
    background-color: #e9ecef;
    text-decoration: none;
    color: #212529;
}

/* Стиль для кнопки Add to Cart */
.btn-add-to-cart {
    background-color: var(--bs-primary);
    color: white;
    border: none;
    border-radius: 4px;
    width: 40px; /* Фіксована ширина для іконки */
    height: 38px; /* Фіксована висота для вирівнювання з іншою кнопкою */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-add-to-cart:hover {
    background-color: var(--bs-primary-darker, #0056b3);
    transform: translateY(-2px);
    box-shadow: 0 3px 5px rgba(0,0,0,0.1);
}

/* Збільшуємо розмір іконки кошика */
.btn-add-to-cart i {
    font-size: 1.2rem;
}
/* Product card spacing and layout */
.product-card {
    margin: 0 0 30px 0; /* Keep bottom margin, reset side margins */
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    height: 100%; /* Make all cards equal height */
    transition: transform 0.2s, box-shadow 0.2s;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

/* Add proper gutters between products */
.row-products {
    margin-left: -20px;
    margin-right: -20px;
}

.product-column {
    padding-left: 20px;
    padding-right: 20px;
    margin-bottom: 30px;
}

/* Button styles */
.product-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-details {
    background-color: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-grow: 1;
    margin-right: 10px; /* Space between buttons */
}

.btn-add-to-cart {
    background-color: var(--bs-primary);
    color: white;
    border: none;
    border-radius: 4px;
    width: 40px; /* Fixed width for icon */
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-add-to-cart:hover {
    background-color: var(--bs-primary-darker, #0056b3);
    transform: translateY(-2px);
}
/* Компактніші та гарніші картки товарів */
.product-card {
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #f0f0f0;
    transition: all 0.25s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.08);
    border-color: #e0e0e0;
}

.product-img-container {
    height: 160px;
    padding: 8px;
    margin-bottom: 10px;
}

.product-body {
    padding: 0;
}

.product-title {
    font-size: 1rem;
    margin-bottom: 8px;
    min-height: 38px;
    line-height: 1.3;
}

.product-meta {
    padding-bottom: 8px;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.product-meta-item {
    margin-bottom: 4px;
}

.product-meta-item .text-muted {
    font-size: 0.75rem;
    display: inline-block;
    margin-left: 4px;
}

.product-actions {
    margin-top: 10px !important;
    gap: 8px;
}

.btn-details {
    padding: 6px 10px;
    font-size: 0.875rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.btn-details:hover {
    background-color: #e9ecef;
    color: #0d6efd;
}

.btn-add-to-cart {
    width: 36px;
    height: 34px;
    border-radius: 4px;
}

/* Покращена сітка товарів */
.product-column {
    padding-left: 10px;
    padding-right: 10px;
}

.row-products {
    margin-left: -10px;
    margin-right: -10px;
    margin-bottom: 10px;
}

/* Оптимізація секції товарів */
.products-section {
    margin-top: 2rem;
}

.section-header {
    padding: 12px 16px;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 1.25rem;
}

/* Стилізація кнопки фільтрації */
.filter-card {
    box-shadow: none;
    border: 1px solid #dee2e6;
    background-color: #f8f9fa;
}

.filter-body {
    padding: 10px;
}

#brandFilterForm .form-select {
    border-color: #ced4da;
    font-size: 0.9rem;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}
/* Покращення для тексту ціни */
.product-price {
    color: #0d6efd;
    font-weight: 600;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
}

.product-price small {
    margin-left: 4px;
    white-space: nowrap;
}

/* Більш чіткий розділювач між метаданими та кнопками */
.product-meta {
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

/* Краща видимість на різних фонах */
.product-article {
    background-color: rgba(0,0,0,0.04);
    padding: 2px 4px;
    border-radius: 3px;
}

/* Анімація кнопки додавання в кошик */
.btn-add-to-cart:hover i {
    transform: scale(1.15);
    transition: transform 0.2s ease;
}

/* Ефект фокусування на зображенні при наведенні */
.product-card:hover .product-img {
    transform: scale(1.08);
    transition: transform 0.3s ease;
}

/* Більш компактний вигляд фільтрів */
.filter-card .filter-body {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Стиль для "Показати більше товарів" */
.text-center.mt-4.mb-4 {
    margin-top: 15px !important;
    margin-bottom: 15px !important;
}

.btn-outline-primary {
    padding: 8px 16px;
    font-size: 0.9rem;
}
/* Add this CSS to your public.css or include it in a <style> tag in index.html */
.cart-updated {
    animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); background-color: var(--bs-primary); }
    100% { transform: scale(1); }
}

.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: white;
    color: #333;
    padding: 12px 18px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    z-index: 9999;
    transition: all 0.3s ease;
    max-width: 80%;
}

.toast-notification.success {
    border-left: 4px solid #28a745;
}

.toast-notification.error {
    border-left: 4px solid #dc3545;
}

.toast-notification.info {
    border-left: 4px solid #17a2b8;
}

.toast-notification i {
    margin-right: 10px;
    font-size: 1.1rem;
}

.toast-notification.success i {
    color: #28a745;
}

.toast-notification.error i {
    color: #dc3545;
}

.toast-notification.info i {
    color: #17a2b8;
}

.toast-notification.hide {
    opacity: 0;
    transform: translateY(20px);
}
/* Стилі для бейджа кошика */
.badge.bg-danger {
    font-size: 0.7rem;
    padding: 0.25rem 0.45rem;
    margin-left: 0.2rem;
    margin-top: -0.5rem;
}

.nav-item.position-relative {
    padding-right: 10px;
}
/* Стиль для бейджа кошика */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #dc3545;
    color: white;
    font-size: 11px;
    padding: 2px 5px;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    text-align: center;
    line-height: 14px;
    font-weight: bold;
    border: 1px solid white;
}

/* Виправлення опечаток змінних */
.btn-outline-danger:hover { background-color: var(--danger-color); }
.product-card:hover { box-shadow: var(--shadow-lg); }

.nav-item .nav-link {
    position: relative;
}
/* Стилі для сторінки кошика */
.cart-table th, .cart-table td {
    vertical-align: middle;
}

.quantity-form {
    max-width: 100px;
    margin: 0 auto;
}

.quantity-input {
    text-align: center;
    min-width: 50px;
}

.cart-total {
    font-weight: bold;
    background-color: rgba(0, 123, 255, 0.05);
}

#invoice_fields, #new_company_fields, #new_address_fields {
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    margin-top: 10px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
}

.saved-addresses, .saved-companies {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 5px;
    background-color: #fff;
}

.form-check {
    padding-left: 1.5rem;
}

.form-check-input {
    margin-left: -1.5rem;
}
/* Стилі для корзини */
.quantity-form .input-group {
    width: 115px;
}

.quantity-form .form-control {
    text-align: center;
}

/* Стилі для форм у корзині */
#new_address_form, #invoice_form, #new_company_form {
    background-color: #f9f9f9;
    border-radius: 0.25rem;
    padding: 1rem;
    margin-top: 0.5rem;
    border: 1px solid #dee2e6;
}

/* Стиль для бейджа кількості товарів */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #dc3545;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
}

.nav-link {
    position: relative;
}
/* Стилі для корзини */
.quantity-form .input-group {
    width: 115px;
}

.quantity-form .form-control {
    text-align: center;
}

/* Стилі для форм у корзині */
#new_address_form, #invoice_form, #new_company_form {
    background-color: #f9f9f9;
    border-radius: 0.25rem;
    padding: 1rem;
    margin-top: 0.5rem;
    border: 1px solid #dee2e6;
}

/* Стиль для бейджа кількості товарів */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #dc3545;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
}

.nav-link {
    position: relative;
}
/* Стили для корзины */
.quantity-form .input-group {
    width: 115px;
}

.quantity-form .form-control {
    text-align: center;
}

/* Стили для форм в корзине */
#new_address_form, #invoice_form, #new_company_form {
    background-color: #f9f9f9;
    border-radius: 0.25rem;
    padding: 1rem;
    margin-top: 0.5rem;
    border: 1px solid #dee2e6;
}

/* Стиль для бейджа количества товаров */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #dc3545;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
}

.nav-link {
    position: relative;
}
/* Фіксуємо випадаючі меню */
.dropdown-menu {
    position: absolute !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    top: 100% !important;
    margin-top: 0 !important;
}

/* Випадаюче меню для мови */
.language-dropdown .dropdown-menu {
    min-width: 100%;
    right: 0;
    left: auto;
}

/* Забезпечуємо, щоб меню не виходило за межі екрану */
@media (max-width: 768px) {
    .dropdown-menu {
        position: absolute !important;
        left: 0 !important;
        right: auto !important;
        max-width: 100vw;
    }
}
/* Стилі для вкладених випадаючих меню */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
    border-radius: 0 6px 6px 6px;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

.dropdown-submenu > a:after {
    display: block;
    content: " ";
    float: right;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
    border-width: 5px 0 5px 5px;
    border-left-color: #ccc;
    margin-top: 5px;
    margin-right: -10px;
}

@media (max-width: 767px) {
    .dropdown-submenu > .dropdown-menu {
        left: 0;
        position: relative;
        margin-left: 15px;
        box-shadow: none;
    }
}
/* Стилі для вкладених випадаючих меню */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
    border-radius: 0 6px 6px 6px;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

.dropdown-submenu > a:after {
    display: block;
    content: " ";
    float: right;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
    border-width: 5px 0 5px 5px;
    border-left-color: #ccc;
    margin-top: 5px;
    margin-right: -10px;
}

/* Виправлення для мобільних пристроїв */
@media (max-width: 991px) {
    .dropdown-submenu .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: transparent;
        border: 0;
        box-shadow: none;
        margin-left: 15px;
    }
    
    .dropdown-submenu > a:after {
        transform: rotate(90deg);
    }
}
/* Стилі для вкладених випадаючих меню */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
    border-radius: 0 6px 6px 6px;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

.dropdown-submenu > a:after {
    display: block;
    content: " ";
    float: right;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
    border-width: 5px 0 5px 5px;
    border-left-color: #ccc;
    margin-top: 5px;
    margin-right: -10px;
}

/* Виправлення для мобільних пристроїв */
@media (max-width: 991px) {
    .dropdown-submenu .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: transparent;
        border: 0;
        box-shadow: none;
        margin-left: 15px;
    }
    
    .dropdown-submenu > a:after {
        transform: rotate(90deg);
    }
}
/* Виправлення випадаючих меню для категорій */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    position: absolute;
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
    border-radius: 0 6px 6px 6px;
    display: none;
    min-width: 200px;
    background: #fff;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

/* Стрілка направо для підменю на десктопі */
.dropdown-submenu > a:after {
    display: block;
    content: " ";
    float: right;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
    border-width: 5px 0 5px 5px;
    border-left-color: #ccc;
    margin-top: 5px;
    margin-right: -10px;
}

/* Медіа-запити для мобільних */
@media (max-width: 991px) {
    .dropdown-submenu .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0;
        background-color: #f8f9fa;
        border: none;
        box-shadow: none;
        padding-left: 20px;
    }
    
    .dropdown-submenu > a:after {
        transform: rotate(90deg);
    }
    
    .show > .dropdown-menu {
        display: block !important;
    }
}
/* Стилі для багаторівневих випадаючих меню */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
    border-radius: 0 6px 6px 6px;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

.dropdown-submenu > a:after {
    display: block;
    content: " ";
    float: right;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
    border-width: 5px 0 5px 5px;
    border-left-color: #ccc;
    margin-top: 5px;
    margin-right: -10px;
}

/* Адаптивність для мобільних */
@media (max-width: 991px) {
    .dropdown-submenu > .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        margin-left: 15px;
        box-shadow: none;
        border: none;
    }
    
    .dropdown-submenu > a:after {
        transform: rotate(90deg);
    }
}
/* Стилі для вкладених випадаючих меню */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
    border-radius: 0 6px 6px 6px;
    min-width: 200px;
    background-color: #fff;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    display: none;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

.dropdown-submenu > a:after {
    display: block;
    content: " ";
    float: right;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
    border-width: 5px 0 5px 5px;
    border-left-color: #ccc;
    margin-top: 5px;
    margin-right: -10px;
}

@media (max-width: 991px) {
    .dropdown-submenu .dropdown-menu {
        position: static !important;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: transparent;
        border: 0;
        box-shadow: none;
        margin-left: 15px;
    }
    
    .dropdown-submenu > a:after {
        transform: rotate(90deg);
    }
}
/* Покращені стилі для фільтрів у категоріях */
.filter-sidebar {
    position: relative;
    top: 0;
}

.filter-card {
    border: none;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.filter-header {
    background-color: #f8f9fa;
    padding: 1rem 1.25rem;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.filter-header h5 {
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
}

.filter-header h5 i {
    transition: transform 0.3s;
}

.filter-header[aria-expanded="false"] i {
    transform: rotate(-90deg);
}

.filter-body {
    padding: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

/* Стилі для радіокнопок фільтрів */
.brand-option, .sort-option {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
}

.brand-radio, .sort-radio {
    margin-right: 0.75rem;
}

.brand-label, .sort-label {
    margin-bottom: 0;
    cursor: pointer;
    font-weight: normal;
    flex-grow: 1;
}

/* Підсвічування при наведенні */
.brand-option:hover, .sort-option:hover {
    background-color: #f8f9fa;
}

/* Стиль вибраного пункту */
.brand-radio:checked + .brand-label,
.sort-radio:checked + .sort-label {
    font-weight: 600;
    color: #007bff;
}

/* Стилі для кнопок у фільтрах */
.filter-card .btn-primary.btn-sm {
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
}

.filter-card .btn-outline-secondary {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* Стилі списку для підкатегорій */
.subcategories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.subcategories-list li {
    margin-bottom: 0.5rem;
}

.subcategory-link {
    display: block;
    padding: 0.5rem 0;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.subcategory-link:hover {
    color: #007bff;
    border-bottom-color: #007bff;
    padding-left: 0.5rem;
}
/* Покращені стилі для фільтрів категорій */
.filter-card {
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    transition: none; /* Прибираємо анімацію для стабільності */
}

/* Заголовок фільтра */
.filter-header {
    background-color: #f8f9fa;
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
}

.filter-header h5 {
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    font-size: 1rem;
}

.filter-body {
    padding: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

/* Стилі для радіокнопок і тексту */
.brand-option, .sort-option {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.brand-option:hover, .sort-option:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* Важливо! Вирівнювання тексту */
.brand-radio, .sort-radio {
    margin-top: 0; /* Виправляє вертикальне вирівнювання */
    margin-right: 0.75rem;
    flex-shrink: 0; /* Запобігає зменшенню */
}

.brand-label, .sort-label {
    margin-bottom: 0; /* Важливо для вертикального вирівнювання */
    cursor: pointer;
    display: inline-block; /* Дозволяє тексту перенесення рядка */
    width: calc(100% - 1.5rem); /* Дає простір для радіокнопки */
    vertical-align: middle;
}

/* Вибраний пункт */
.brand-radio:checked + .brand-label,
.sort-radio:checked + .sort-label {
    font-weight: 500;
    color: #007bff;
}

/* Стабільна висота кнопки застосування фільтра */
.filter-card .btn-primary.btn-sm {
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Стиль для чекбоксів (якщо використовуються) */
.form-check {
    padding-left: 1.75rem;
    margin-bottom: 0.5rem;
}

.form-check-input {
    margin-left: -1.75rem;
    margin-top: 0.25rem;
}

/* Фіксована позиція сайдбару з фільтрами */
.filter-sidebar {
    position: sticky;
    top: 20px;
    z-index: 100;
}

/* Краще відображення підкатегорій */
.subcategories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.subcategories-list li {
    margin-bottom: 0.25rem;
}

.subcategory-link {
    display: block;
    padding: 0.5rem;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.subcategory-link:hover {
    background-color: rgba(0, 123, 255, 0.05);
    color: #007bff;
    padding-left: 0.75rem;
}
/* Просте меню без зайвих стилів */
.dropdown-menu {
    position: absolute;
    display: none;
  }
  
  .dropdown-menu.show {
    display: block;
  }
  
  .dropdown-submenu {
    position: relative;
  }
  
  .dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
  }
  
  .dropdown-submenu:hover > .dropdown-menu {
    display: block;
  }
  /* Стилі для випадаючих меню категорій */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
    border-radius: 0 6px 6px 6px;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

.dropdown-submenu > a:after {
    display: block;
    content: " ";
    float: right;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
    border-width: 5px 0 5px 5px;
    border-left-color: #ccc;
    margin-top: 5px;
    margin-right: -10px;
}

/* Виправлення для мобільних пристроїв */
@media (max-width: 991px) {
    .dropdown-submenu > .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: #f8f9fa;
        border: 0;
        box-shadow: none;
        padding-left: 15px;
    }
    
    .dropdown-submenu > a:after {
        transform: rotate(90deg);
    }
}
/* Додайте це до public.css - це має виправити зміщення */
.filter-body label {
    display: inline;
    width: auto;
    text-align: left;
    margin-left: 8px;
}

.filter-body input[type="radio"] {
    float: none;
    vertical-align: middle;
}

/* Скасування будь-якого flex-вирівнювання в фільтрах */
.filter-body .d-flex {
    display: block !important;
}
/* Виправлення для фільтрів - примусове вирівнювання по лівому краю */
.filter-body label {
    display: inline !important;
    width: auto !important;
    text-align: left !important;
    margin-left: 8px !important;
    float: none !important;
    padding-left: 0 !important;
    white-space: normal !important;
}

.filter-body input[type="radio"] {
    float: none !important;
    vertical-align: middle !important;
    margin-left: 0 !important;
    position: static !important;
}

/* Заборона flex та інших способів вирівнювання для фільтрів */
.filter-body div, .filter-body .mb-2 {
    display: block !important;
    text-align: left !important;
    padding-left: 0 !important;
}

/* Більш специфічні селектори для перекриття інших стилів */
#brandFilterCollapse .filter-body div,
#sortingCollapse .filter-body div {
    text-align: left !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.filter-body .brand-option input,
.filter-body .sort-option input {
    margin-right: 8px !important;
}
.filter-body .d-flex {
    justify-content: flex-start !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
  }
  
  .filter-body input[type="radio"] {
    margin-left: 0 !important;
  }
  
  .filter-body label {
    margin-left: 8px !important;
    text-align: left !important;
  }

/* Стилі для мобільного порядку відображення елементів */
@media (max-width: 767.98px) {
    .mobile-first {
        order: 1;
    }
    .mobile-second {
        order: 2;
    }
    .mobile-last {
        order: 3;
    }
    .row {
        display: flex;
        flex-direction: column;
    }
    .image-section {
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

/* Контактні опції видалено - залишено лише WhatsApp та scroll-to-top */

/* Фіксована кнопка WhatsApp внизу */
.fixed-contact-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1030; 
}

/* Стилі для кнопки WhatsApp */
.whatsapp-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #25D366;
    color: white;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Стилі дляWhatsApp кнопки */
.whatsapp-button i {
    font-size: 24px;
}
/* Стилі для підменю на мобільних пристроях */
@media (max-width: 991.98px) {
    .dropdown-menu {
        border: none;
        margin-left: 1rem;
        background-color: transparent;
    }
    .dropdown-submenu {
        position: relative;
    }
    .dropdown-submenu .dropdown-menu {
        position: static;
        display: none;
        margin-top: 0;
        margin-left: 1rem;
        padding-left: 0.5rem;
        border-left: 2px solid #dee2e6;
    }
    .dropdown-submenu .dropdown-menu.show {
        display: block;
    }
    /* Індикатор для підкатегорій */
    .dropdown-submenu > a::after {
        content: '\F282';
        font-family: 'bootstrap-icons';
        margin-left: 0.5rem;
    }
    .dropdown-submenu > a.show::after {
        content: '\F286';
    }
}
/* Додайте це до вашого файлу static/css/public.css */

/* Стилі для мобільного меню категорій */
@media (max-width: 991.98px) {
    /* Базові стилі для мобільних категорій */
    .mobile-categories-menu {
        width: 100%;
        padding: 0;
        max-height: 80vh; /* Обмежена висота з прокруткою */
        overflow-y: auto;
    }

    /* Елементи першого рівня */
    .mobile-category-item {
        position: relative;
        display: block;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    /* Посилання категорій */
    .mobile-category-link {
        display: block;
        padding: 12px 15px;
        color: #333;
        text-decoration: none;
        width: calc(100% - 46px); /* Залишаємо місце для кнопки */
    }

    /* Кнопка переключення */
    .mobile-toggle-btn {
        position: absolute;
        top: 0;
        right: 0;
        width: 46px;
        height: 46px;
        border: none;
        background: transparent;
        border-left: 1px solid rgba(0, 0, 0, 0.1);
        color: #555;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 3;
    }

    .mobile-toggle-btn.active {
        background-color: rgba(0, 0, 0, 0.05);
    }

    /* Підменю */
    .mobile-submenu {
        display: none;
        width: 100%;
        padding: 0;
        margin: 0;
        list-style: none;
        background-color: #f8f9fa;
    }

    .mobile-submenu.show {
        display: block;
    }

    .mobile-submenu li {
        position: relative;
        display: block;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    /* Посилання в підменю */
    .mobile-submenu a {
        display: block;
        padding: 10px 15px 10px 30px;
        color: #333;
        text-decoration: none;
        width: calc(100% - 46px);
    }

    /* Стилі для вкладених підменю (третій рівень) */
    .mobile-submenu .mobile-submenu a {
        padding-left: 45px;
    }

    /* Вказівник для підменю другого рівня */
    .mobile-submenu .mobile-toggle-btn {
        height: 41px; /* Підлаштовуємо висоту кнопки під висоту рядка */
    }

    /* Анімація для плавного розкриття */
    .mobile-submenu {
        transition: max-height 0.3s ease;
        max-height: 0;
        overflow: hidden;
    }

    .mobile-submenu.show {
        max-height: 1000px; /* Достатньо великий показник для вмісту */
    }
}

/* Стилі для десктопної версії */
@media (min-width: 992px) {
    .mobile-toggle-btn {
        display: none;
    }
    
    .mobile-submenu {
        position: absolute;
        top: 0;
        left: 100%;
        width: 200px;
        display: none;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
        background-color: #fff;
    }
    
    .mobile-category-item:hover > .mobile-submenu {
        display: block;
    }
    
    .mobile-submenu li:hover > .mobile-submenu {
        display: block;
    }
}

/* Стилі для вертикального меню категорій */
.vertical-menu {
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
}

.menu-item {
    border-bottom: 1px solid #eee;
}

.menu-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    background: #fff;
}

.menu-link {
    flex-grow: 1;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    display: block;
}

.menu-link:hover {
    background-color: #f8f9fa;
    color: #333;
}

.expand-btn {
    width: 42px;
    height: 42px;
    padding: 0;
    border: none;
    background: transparent;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.expand-btn.active {
    transform: rotate(45deg);
}

.submenu {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #f8f9fa;
}

.submenu .menu-item {
    border-bottom: none;
    border-top: 1px solid #eee;
}

.submenu .menu-link {
    padding-left: 30px;
}

.submenu .submenu .menu-link {
    padding-left: 45px;
}

.submenu.show {
    display: block;
}

/* Анімація для плавного розкриття */
.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.submenu.show {
    max-height: 1000px;
}

/* Адаптивні стилі */
@media (min-width: 992px) {
    .vertical-menu {
        width: 250px;
    }
}
/* Додайте ці стилі до public.css */
.menu-item {
    width: 100%;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.menu-item-header {
    position: relative;
    display: flex;
    align-items: stretch;
}

.category-link-container {
    display: flex;
    flex-grow: 1;
    align-items: center;
    min-height: 42px;
}

.category-link {
    flex-grow: 1;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
}

.expand-btn {
    width: 42px;
    border: none;
    background: transparent;
    border-left: 1px solid rgba(0,0,0,0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.expand-btn i {
    transition: transform 0.3s;
}

.expand-btn.active i {
    transform: rotate(45deg);
}

.subcategories {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f8f9fa;
}

.subcategories.show {
    display: block;
}

/* Відступи для підкатегорій */
.subcategories .menu-item {
    padding-left: 15px;
}

.subcategories .subcategories .menu-item {
    padding-left: 30px;
}

/* Адаптивність */
@media (max-width: 991.98px) {
    .menu-item-header {
        flex-wrap: nowrap;
    }
    
    .category-link {
        white-space: normal;
        word-break: break-word;
    }
}
/* ...existing code... */
/* НАДВАЖЛИВЕ ВИПРАВЛЕННЯ ДВОКОЛОНКОВОЇ ВІТРИНИ - НЕ ВИДАЛЯТИ! */
@media (max-width: 767px) {
  .row-products {
    /* було: grid-template-columns: repeat(2, 1fr) */
    display: grid !important;
    grid-template-columns: 1fr !important; /* 1 колонка */
    grid-gap: 10px !important;
    width: 100% !important;
    margin: 0 !important;
  }
  .product-column,
  div[class*="col-"].product-column,
  .row-products > div {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }
}
/* Додатковий запобіжник від горизонтального скролу */
@media (max-width: 767px) {
  html, body { overflow-x: hidden; }
}
/* ...existing code... */
.search-card .input-group .form-control {
  border-width: 1px;            /* було 2px */
  padding: .5rem .75rem;        /* компактніше */
  border-radius: 8px;
}
.search-card .btn-search { padding: .5rem .75rem; }
/* Мобільні */
/* Мобільна вітрина: 1 колонка, без скролу */
@media (max-width: 575.98px) {
  html, body { overflow-x: hidden; }

  .row-products { --bs-gutter-x: .5rem; --bs-gutter-y: .75rem; margin: 0 !important; }
  .row-products > [class*="col"] { flex: 0 0 100% !important; max-width: 100% !important; padding: 0 !important; }

  /* Ховаємо великі блоки тільки на головній сторінці */
  .home-page .welcome-card { display: none !important; }

  /* Компактна пошукова форма */
  .search-card .input-group .form-control { border: 1px solid #6f42c1; padding: .5rem .75rem; font-size: .95rem; border-radius: 8px; }
  .search-card .btn-search { padding: .5rem .75rem; }
}

/* Вся картка клікабельна */
.product-card { position: relative; }
.product-card .stretched-link { position: absolute; inset: 0; z-index: 1; }

/* Зображення в картці */
.product-img { width: 100%; height: 180px; object-fit: cover; display: block; }
@media (max-width: 575.98px) { .product-img { height: 160px; } }

/* Прибрати бейдж Override, якщо раптом приходить з бекенду */
.badge-override, .override-badge { display: none !important; }

/* Запобіжник від сторонніх правил, що ламали сітку на мобільному */
@media (max-width: 575.98px) {
  .product-column { width: 100% !important; max-width: 100% !important; }
}

/* ========================================
   AUTH PAGES (Login, Register, Forgot Password) - Mobile Optimization
   ======================================== */
.info-card .card-body {
    padding: 1.5rem;
}

/* Посилання в auth-формах */
.info-card .text-muted a,
.info-card a.text-decoration-none {
    color: var(--primary-color, #2563eb);
    font-weight: 500;
    transition: all 0.2s ease;
}

.info-card .text-muted a:hover,
.info-card a.text-decoration-none:hover {
    color: var(--primary-hover, #1d4ed8);
    text-decoration: underline !important;
}

/* Auth links styled as subtle buttons */
.auth-link {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: #f1f5f9;
    border-radius: 6px;
    color: var(--primary-color, #2563eb) !important;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.auth-link:hover {
    background: #e0e7ff;
    color: var(--primary-hover, #1d4ed8) !important;
}

/* Auth footer section */
.auth-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.auth-footer .btn-action {
    width: 100%;
    justify-content: center;
}

.auth-footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    text-align: center;
}

@media (min-width: 576px) {
    .auth-footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .auth-footer .btn-action {
        width: auto;
    }
    
    .auth-footer-links {
        flex-direction: row;
        gap: 1rem;
        align-items: center;
    }
}

/* Mobile Auth Pages */
@media (max-width: 575.98px) {
    .container.mt-5 {
        margin-top: 1.5rem !important;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .info-card {
        margin-bottom: 1rem;
    }
    
    .info-card .card-body {
        padding: 1rem;
    }
    
    .info-card-header {
        padding: 1rem;
    }
    
    .info-card-header h5 {
        font-size: 1.1rem;
    }
    
    .d-flex.justify-content-between.align-items-center {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch !important;
    }
    
    .d-flex.justify-content-between .btn-action {
        width: 100%;
        justify-content: center;
    }
    
    .d-flex.justify-content-between .text-muted,
    .d-flex.justify-content-between > a {
        text-align: center;
        font-size: 0.9rem;
    }
}