:root {
    --primary-color: #0066cc;
    --primary-dark: #0052cc;
    --primary-light: #006FF9;
    --secondary-color: #2c3e50;
    --accent-color: #27ae60;
    --danger-color: #e74c3c;
    --light-bg: #f8f9fa;
    --dark-bg: #1a1a2e;
    --border-color: #dee2e6;
    --text-muted: #6c757d;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}
.lazy-cat-img { opacity: 0; transition: opacity .3s; }
.lazy-cat-img.loaded { opacity: 1; }
a {
    text-decoration: none;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.container,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
    width: 100%;
    max-width: 1900px !important;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

@media (min-width: 1900px) {
    .container,
    .container-sm,
    .container-md,
    .container-lg,
    .container-xl,
    .container-xxl {
        padding-left: 30px;
        padding-right: 30px;
    }
}

.products-grid .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -8px;
    margin-right: -8px;
}

.products-grid .row > .product-item,
.products-grid .product-item {
    padding: 8px !important;
    box-sizing: border-box;
    flex: 0 0 50% !important;
    max-width: 50% !important;
    width: 50% !important;
}
div#mainSlider {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
}
@media (min-width: 768px) {
    .products-grid .row > .product-item,
    .products-grid .product-item {
        flex: 0 0 33.3333% !important;
        max-width: 33.3333% !important;
        width: 33.3333% !important;
    }
}

@media (min-width: 992px) {
    .products-grid .row > .product-item,
    .products-grid .product-item {
        flex: 0 0 25% !important;
        max-width: 25% !important;
        width: 25% !important;
    }
}

@media (min-width: 1400px) {
    .products-grid .row > .product-item,
    .products-grid .product-item {
        flex: 0 0 20% !important;
        max-width: 20% !important;
        width: 20% !important;
    }
}

.products-grid.list-view .row {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

.products-grid.list-view .row > .product-item,
.products-grid.list-view .product-item {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
}

.product-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px !important;
    overflow: hidden;
    border: 2px solid #f0f0f0 !important;
    height: 100%;
    background: #fff;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
}

.product-card:hover {
    border-color: #006FF9 !important;
    box-shadow: 0 10px 30px rgba(0, 111, 249, 0.15) !important;
    transform: translateY(-4px);
}

.product-card .product-image-wrapper {
    height: 180px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /*background: #fafbfc;*/
    padding: 8px;
    min-width: 0;
    width: 100%;
}

.product-card .product-image-wrapper img {
    max-height: 160px;
    max-width: 95%;
    object-fit: contain;
    transition: transform 0.4s ease;
}



.product-card .product-image-wrapper .image-placeholder {
    max-height: 160px;
    max-width: 90%;
    font-size: 5rem;
}

.product-card .card-body {
    padding: 10px 10px 6px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.product-card .product-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.35;
    height: 54px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin-bottom: 6px;
}

.product-card .product-name a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.product-card .product-name a:hover {
    color: #006FF9;
}

.product-sku-copy {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    color: #95a5a6;
    cursor: pointer;
    transition: all 0.2s;
    padding: 2px 6px;
    border-radius: 6px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    position: relative;
    width: fit-content;
    margin-bottom: 6px;
}

.product-sku-copy:hover {
    color: #006FF9;
    background: #e8f0fe;
    border-color: #006FF9;
}

.product-sku-copy .copy-icon-mini {
    font-size: 0.65rem;
    opacity: 0.7;
}

.product-sku-copy .copy-tooltip-mini {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    white-space: nowrap;
    z-index: 20;
}

.product-sku-copy .copy-tooltip-mini.show {
    opacity: 1;
}

.product-card .product-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 0;
}

.product-card .current-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #006FF9;
}

.product-card .old-price {
    font-size: 0.78rem;
    color: #95a5a6;
    text-decoration: line-through;
}

.stock-indicator-container {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 10px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    transition: all 0.3s;
    margin-top: 6px;
}

.stock-indicator-container:hover {
    border-color: #dee2e6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stock-indicator-icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.stock-indicator-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
    font-size: 11px;
}

.stock-indicator-detail {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: #6c757d;
    line-height: 1.25;
}

.stock-indicator-detail i {
    font-size: 0.65rem;
    opacity: 0.7;
}

.stock-indicator-detail strong {
    font-weight: 600;
    color: #495057;
}

.stock-indicator-container.in-stock-high {
    background: #f0fdf4;
    border-color: #86efac;
}

.stock-indicator-container.in-stock-medium {
    background: #eff6ff;
    border-color: #93c5fd;
}

.stock-indicator-container.in-stock-low {
    background: #fffbeb;
    border-color: #fcd34d;
}

.stock-indicator-container.in-stock-last {
    background: #fef2f2;
    border-color: #fca5a5;
}

.stock-indicator-container.out-of-stock {
    background: #fef2f2;
    border-color: #fca5a5;
}

.product-card .card-footer {
    padding: 0px 10px 6px !important;
    background: transparent !important;
    border: none !important;
}
/* ============================================================
   ЗАМЕНА КНОПКИ НА БЛОК КОЛИЧЕСТВА — ТАКИЕ ЖЕ ГАБАРИТЫ
   ============================================================ */

.product-card .cart-quantity-wrapper {
    width: 100%;
    height: 38px;
    margin: 0;
    animation: none;
}

.product-card .cart-quantity-wrapper .cart-quantity {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.product-card .cart-quantity-wrapper .input-group {
    width: 100%;
    height: 38px;
    border-radius: 10px;
    border: none;
    overflow: hidden;
    margin: 0;
    display: flex;
    flex-wrap: nowrap;
    background: linear-gradient(135deg, #006FF9 0%, #0052cc 100%);
}

.product-card .cart-quantity-wrapper .btn-qty-minus,
.product-card .cart-quantity-wrapper .btn-qty-plus {
    width: 38px !important;
    height: 38px !important;
    background: transparent;
    border: none;
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    padding: 0;
    flex-shrink: 0;
    border-radius: 0;
}

.product-card .cart-quantity-wrapper .btn-qty-minus:hover,
.product-card .cart-quantity-wrapper .btn-qty-plus:hover {
    background: rgba(255, 255, 255, 0.2);
}

.product-card .cart-quantity-wrapper .qty-input {
    flex: 1;
    min-width: 0;
    height: 38px !important;
    text-align: center;
    border: none;
    background: transparent;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.product-card .cart-quantity-wrapper .qty-input:focus {
    outline: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.1);
}

.product-card .cart-quantity-wrapper .qty-input::-webkit-outer-spin-button,
.product-card .cart-quantity-wrapper .qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.product-card .cart-quantity-wrapper .qty-input[type=text] {
    -moz-appearance: textfield;
}
.product-card .btn-add-cart {
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.82rem;
    transition: all 0.3s;
    background: linear-gradient(135deg, #006FF9 0%, #0052cc 100%);
    border: none;
    color: #fff;
    width: 100%;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0;
}

.product-card .btn-add-cart:hover:not(:disabled) {
    box-shadow: 0 5px 15px rgba(0, 111, 249, 0.3);
    transform: translateY(-2px);
}

.product-card .btn-add-cart:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.product-card .cart-quantity-wrapper {
    width: 100%;
}

.product-card .cart-quantity {
    width: 100%;
}

.product-card .input-group {
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #006FF9;
    margin: 0;
    height: 38px;
    display: flex;
    flex-wrap: nowrap;
}

.product-card .btn-qty-minus,
.product-card .btn-qty-plus {
    background: #f8f9fa;
    border: none;
    color: #006FF9;
    font-weight: 700;
    width: 32px !important;
    height: 34px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    flex-shrink: 0;
}

.product-card .btn-qty-minus:hover,
.product-card .btn-qty-plus:hover {
    background: #006FF9;
    color: #fff;
}

.product-card .qty-input {
    text-align: center;
    border: none;
    border-left: 1px solid #e9ecef;
    border-right: 1px solid #e9ecef;
    font-weight: 700;
    color: #ffffff !important;
    background: #006ff9;
    width: 100% !important;
    min-width: 0;
    height: 34px !important;
    padding: 0;
}

.product-card .qty-input:focus {
    outline: none;
    box-shadow: none;
}

.stock-indicator-container.in-stock-low .stock-indicator-icon,
.stock-indicator-container.in-stock-last .stock-indicator-icon {
    animation: stockPulse 2s infinite;
}

@keyframes stockPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.7; transform: scale(1.1); }
}

.stock-indicator-container.in-stock-last .stock-indicator-icon {
    animation: stockPulseDanger 1.5s infinite;
}

@keyframes stockPulseDanger {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.6; transform: scale(1.2); }
}

.btn-wishlist.active i {
    font-weight: bold;
}

.product-item.removing {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

@media (max-width: 575.98px) {
    .product-card .product-name {
        font-size: 0.78rem;
        height: 48px;
    }
    .product-card .current-price { font-size: 0.95rem; }
    .product-card .old-price { font-size: 0.72rem; }
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #006FF9, #4D9AFF);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    color: white;
}

.navbar {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1a252f 100%) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    color: var(--primary-color) !important;
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.nav-link {
    transition: color 0.3s ease;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9) !important;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

@media (max-width: 576px) {
    .navbar-brand img {
        width: 32px !important;
        height: 32px !important;
    }
    .navbar-brand span {
        font-size: 1.1rem;
    }
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0052cc 100%);
    border: none;
    transition: all 0.3s ease;
    color: white !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0052cc 0%, #003d99 100%);
    box-shadow: 0 5px 15px rgba(0, 111, 249, 0.4);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white !important;
}

.hero-slider .carousel-item {
    height: 300px;
    position: relative;
}

.hero-slider .carousel-item img {
    height: 100%;
    object-fit: cover;
}

.hero-slider .slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgb(0 111 249 / 0%) 100%);
    z-index: 1;
}

.hero-slider .carousel-caption {
    z-index: 2;
    bottom: 25%;
}

.hero-slider .carousel-caption h2 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: #fff;
    font-weight: 700;
}

.hero-slider .carousel-indicators [data-bs-target] {
    background-color: var(--primary-color);
}

.hero-slider .carousel-control-prev-icon,
.hero-slider .carousel-control-next-icon {
    background-color: rgba(0, 111, 249, 0.8);
    border-radius: 50%;
    padding: 16px;
    transition: background-color 0.3s ease;
}

.hero-slider .carousel-control-prev-icon:hover,
.hero-slider .carousel-control-next-icon:hover {
    background-color: var(--primary-color);
}

@media (max-width: 768px) {
    .hero-slider .carousel-item {
        height: 400px;
    }
    .hero-slider .carousel-caption {
        bottom: 15%;
    }
    .hero-slider .carousel-caption h2 {
        font-size: 1.5rem;
    }
}

.section-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 15px;
}

.text-white-shadow {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.features-section {
    background: linear-gradient(135deg, #fff 0%, var(--light-bg) 100%);
}

.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
    background: white;
    border: 1px solid #eee !important;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 111, 249, 0.2);
    border-color: var(--primary-color) !important;
}

.feature-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
}

.category-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #eee !important;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 111, 249, 0.25);
    border-color: var(--primary-color) !important;
}

.card-body {
    padding: 15px 15px 0px 15px;
}

.category-icon {
    font-size: 4rem;
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

.badge-new,
.badge-hit,
.badge-discount {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: white;
}

.badge-new {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.badge-hit {
    background: linear-gradient(135deg, #e74c3c 0%, #fd79a8 100%);
}

.badge-discount {
    background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
    font-weight: 800;
}

.btn-wishlist,
.btn-compare {
    position: absolute;
    top: 5px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: white;
    border: 2px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    padding: 0;
}

.btn-wishlist {
    right: 5px;
}

.btn-compare {
    right: 45px;
}

.btn-wishlist:hover,
.btn-compare:hover {
    transform: scale(1.15) rotate(15deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-wishlist.active {
    border-color: #e74c3c;
    color: #e74c3c;
}

button.btn-icon-action.btn-wishlist-text.active {
    border-color: #dc3545 !important;
}

.btn-wishlist.active i {
    animation: heartBeat 0.5s ease;
}

.btn-wishlist-text.active i{
    color: #dc3545 !important
}

.btn-wishlist i,
.btn-compare i {
    font-size: 14px;
}

.product-sku {
    font-size: 0.8rem;
    color: #95a5a6;
    margin-bottom: 6px;
    font-weight: 500;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.stars {
    color: #f1c40f;
    font-size: 0.9rem;
}

.rating-count {
    color: #95a5a6;
    font-size: 0.85rem;
}

.savings {
    font-size: 0.85rem;
    color: #27ae60;
    font-weight: 600;
    margin-bottom: 10px;
}

.savings::before {
    content: '💰 ';
}

.product-stock .badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-stock .badge.bg-success-subtle {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%) !important;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.product-stock .badge.bg-warning-subtle {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%) !important;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.stock-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
    animation: pulse 2s infinite;
}

.stock-indicator.in-stock {
    background: #27ae60;
    box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7);
}

.stock-indicator.low-stock {
    background: #f39c12;
    box-shadow: 0 0 0 0 rgba(243, 156, 18, 0.7);
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(39, 174, 96, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0);
    }
}

.cart-quantity {
    max-width: 150px;
    margin: 0 auto 12px;
}

.cart-quantity .input-group {
    /*border-radius: 0px;*/
    overflow: hidden;
    transition: border-color 0.3s;
    /*margin-top: 6px;*/
}

.cart-quantity .input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 111, 249, 0.1);
}

.input-group>:not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback),
.input-group:not(.has-validation)>.dropdown-toggle:nth-last-child(n+3),
.input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-control,
.input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-select,
.input-group:not(.has-validation)>:not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating) {
    border-radius: 0;
}

.cart-quantity .btn {
    background: #f8f9fa;
    border: none;
    width: 36px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #7f8c8d;
    font-weight: 700;
    padding: 0;
}

.cart-quantity .btn:hover {
    background: var(--primary-color);
    color: white;
}

.cart-quantity .qty-input {
    width: 50px;
    text-align: center;
    border: none;
    border-left: 1px solid #ecf0f1;
    border-right: 1px solid #ecf0f1;
    font-weight: 700;
    color: #2c3e50;
    font-size: 1rem;
}

.cart-quantity .qty-input:focus {
    outline: none;
    box-shadow: none;
    background: #fff8f0;
}

.quick-view {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px;
    text-align: center;
    transition: bottom 0.3s;
    border-top: 1px solid #ecf0f1;
}

.product-card:hover .quick-view {
    bottom: 0;
}

.quick-view-btn {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.card-footer {
    background: white !important;
    border: none !important;
    padding: 0 !important;
}

@media (max-width: 576px) {
    .quick-view {
        display: none;
    }
    .current-price {
        font-size: 1.4rem;
    }
    .btn-add-cart {
        padding: 10px;
        font-size: 0.95rem;
    }
    .cart-quantity {
        max-width: 120px;
    }
    .btn-wishlist i,
    .btn-compare i {
        font-size: 1rem;
    }
}

.about-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0052cc 100%);
}

.stat-card {
    padding: 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-number {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.contact-card {
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid #eee !important;
    height: 100%;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 111, 249, 0.2);
    border-color: var(--primary-color) !important;
}

.contact-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-card a:hover {
    color: var(--primary-dark);
}

.cta-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-bg) 100%);
}

.cta-section .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0052cc 100%);
}

footer {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--secondary-color) 100%);
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color);
}

.comparison-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.15);
    padding: 15px 20px;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.comparison-bar.show {
    transform: translateY(0);
}

.comparison-bar .product-preview {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
    position: relative;
}

.comparison-bar .product-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comparison-bar .product-preview .remove-compare {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--danger-color);
    color: white;
    border: none;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.comparison-bar .count-badge {
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 0.85rem;
    font-weight: 600;
}

.comparison-table {
    overflow-x: auto;
}

.comparison-table table {
    min-width: 800px;
}

.comparison-table th {
    background: var(--secondary-color);
    color: white;
    padding: 15px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.comparison-table th:first-child {
    text-align: left;
    background: #f8f9fa;
    color: #333;
    position: sticky;
    left: 0;
    z-index: 20;
}

.comparison-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.comparison-table td:first-child {
    font-weight: 600;
    background: #f8f9fa;
    position: sticky;
    left: 0;
    z-index: 10;
}

.comparison-table .product-card-mini {
    text-align: center;
}

.comparison-table .product-card-mini img {
    max-height: 120px;
    object-fit: contain;
    margin-bottom: 10px;
}

.comparison-table .price-compare {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.comparison-table .in-stock {
    color: var(--accent-color);
    font-weight: 500;
}

.comparison-table .out-of-stock {
    color: var(--danger-color);
    font-weight: 500;
}

@media (max-width: 768px) {
    .comparison-bar .product-preview {
        width: 50px;
        height: 50px;
    }
    .comparison-table th,
    .comparison-table td {
        padding: 10px 8px;
        font-size: 0.9rem;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.animate-on-scroll {
    animation: fadeInUp 0.6s ease forwards;
}

.toast-container {
    z-index: 9999;
}

.hover-shadow {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.hover-shadow:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.shadow-sm {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
}

.cart-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1010;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: none;
    pointer-events: none;
}

.cart-popup-overlay.show {
    opacity: 1;
    visibility: visible;
    display: block;
    pointer-events: auto;
}

.cart-popup {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    background: white;
    z-index: 1091;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.cart-popup.show {
    right: 0;
}

.cart-popup.full-cart {
    right: 0;
    max-width: 100%;
    width: 100%;
}

.cart-popup .modal-dialog {
    max-width: 100%;
    margin: 0;
    height: 100vh;
}

.cart-popup .modal-content {
    border: none;
    border-radius: 0;
    height: 100vh;
    max-height: 100vh;
    background: #fff;
}

.cart-popup .modal-header {
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0052cc 100%);
    color: white;
    border-radius: 0;
    flex-shrink: 0;
    border-bottom: none;
}

.cart-popup .modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.cart-popup .modal-body {
    padding: 20px 30px;
    overflow-y: auto;
    flex: 1;
}

.cart-popup .modal-footer {
    padding: 15px 30px;
    border-top: 1px solid #e9ecef;
    flex-shrink: 0;
    background: #f8f9fa;
}

.cart-popup.full-cart .cart-popup-body {
    flex: 1;
    overflow-y: auto;
}

.cart-popup.full-cart .cart-popup-header {
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0052cc 100%);
}

.cart-popup.full-cart .cart-popup-full-content {
    max-width: 1400px;
    margin: 0 auto;
}

.cart-popup.full-cart .cart-popup-table-wrapper {
    overflow-x: auto;
}

.cart-popup.full-cart .table {
    min-width: 600px;
}

.cart-popup.full-cart .table td,
.cart-popup.full-cart .table th {
    padding: 10px 12px;
    vertical-align: middle;
}

.cart-popup.full-cart .cart-popup-form-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.cart-popup.full-cart .cart-popup-form-wrapper .card {
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.cart-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    border-bottom: 2px solid #f0f0f0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0052cc 100%);
    color: white;
}

.cart-popup-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.cart-popup-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.cart-popup-body {
    flex: 1;
    overflow-y: auto;
}

.cart-popup-loading,
.cart-popup-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.cart-popup-empty i {
    font-size: 5rem;
    color: #ddd;
    margin-bottom: 20px;
    display: block;
}

.cart-popup-empty p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

button.btn.btn-outline-danger.btn-remove-from-cart {
    border: none;
}

.cart-popup-item {
    display: flex;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    flex-wrap: wrap;
}

.cart-popup-item:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.cart-popup-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    flex-shrink: 0;
}

.cart-popup-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-popup-item-info {
    flex: 1;
    min-width: 0;
    line-height: 20px;
}

.cart-popup-item-name {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.cart-popup-item-name a:hover {
    color: #006FF9 !important;
}

.cart-popup-item-sku {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.cart-popup-item-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.cart-popup-item-qty {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.cart-popup-item-qty .qty-control {
    display: flex;
    align-items: center;
    gap: 4px;
}

.cart-popup-item-qty button {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-popup-item-qty button:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.cart-popup-item-qty span {
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.cart-popup-item-remove {
    align-self: flex-end;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
    transition: all 0.2s;
}

.cart-popup-item-remove:hover {
    color: var(--danger-color);
    transform: scale(1.2);
}

.cart-popup-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.cart-popup-total strong {
    color: var(--primary-color);
    font-size: 1.4rem;
}

.cart-popup-actions {
    display: flex;
    gap: 10px;
}

.cart-popup-actions .btn {
    flex: 1;
    padding: 12px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .cart-popup .modal-header {
        padding: 10px 15px;
    }
    .cart-popup .modal-body {
        padding: 10px 15px;
    }
    .cart-popup .modal-footer {
        padding: 10px 15px;
    }
    .cart-popup.full-cart .cart-popup-header {
        padding: 10px 15px;
    }
    .cart-popup.full-cart .table {
        min-width: 400px;
        font-size: 0.85rem;
    }
    .cart-popup.full-cart .table td,
    .cart-popup.full-cart .table th {
        padding: 6px 8px;
    }
}

@media (max-width: 576px) {
    .cart-popup {
        max-width: 100%;
    }
    .cart-popup-item-image {
        width: 70px;
        height: 70px;
    }
    .cart-popup.full-cart .table {
        min-width: 300px;
        font-size: 0.75rem;
    }
    .cart-popup.full-cart .table td,
    .cart-popup.full-cart .table th {
        padding: 4px 6px;
    }
    .cart-popup.full-cart .qty-control {
        max-width: 90px;
    }
    .cart-popup.full-cart .qty-control .qty-input {
        max-width: 35px;
        font-size: 0.7rem;
    }
}

.cart-popup-body::-webkit-scrollbar {
    width: 6px;
}

.cart-popup-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.cart-popup-body::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.cart-popup-body::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.cart-popup-item-prices {
    display: flex;
    flex-direction: column;
}

.cart-popup-item-unit-price {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.cart-popup-item-line-total {
    font-size: 1.1rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-popup-item-line-total strong {
    font-weight: 700;
}

.cart-popup-item-line-total small {
    font-size: 0.85rem;
    font-weight: 400;
}

.qty-input-manual {
    width: 100px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 0px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--secondary-color);
    height: 28px;
}

.qty-input-manual:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 111, 249, 0.1);
}

.qty-input-manual.error {
    border-color: var(--danger-color);
    background: #fff5f5;
}

.stock-available {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.qty-input-manual::-webkit-outer-spin-button,
.qty-input-manual::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-input-manual[type=number] {
    -moz-appearance: textfield;
}

.btn-qty-minus,
.btn-qty-plus {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-qty-minus:hover:not(:disabled),
.btn-qty-plus:hover:not(:disabled) {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-qty-minus:disabled,
.btn-qty-plus:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cart-quantity-wrapper {
    animation: fadeInUp 0.3s ease;
    width: 100%;
    /*margin-top: 5px;*/
}

.qty-control-cart {
    height: 35px !important;
}

button.btn.btn-outline-secondary.btn-qty-minus,
button.btn.btn-outline-secondary.btn-qty-plus {
    width: 60px;
}

.sticky-top {
    z-index: 1000 !important;
}

button.btn.btn-outline-danger.btn-remove-from-cart {
    height: 35px !important;
    padding: 0 10px;
    width: 60px;
}

#productQuantity {
    border: 1px solid #006FF9;
}

.btn-add-cart.added {
    background: linear-gradient(135deg, #27ae60 0%, #219a52 100%);
    border-color: #27ae60;
}

.btn-add-cart.added::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-add-cart.added:hover::before {
    width: 300px;
    height: 300px;
}

.product-card .cart-quantity {
    max-width: 100%;
    margin: 0;
}

.product-card .cart-quantity .input-group {
    overflow: hidden;
}

.product-card .cart-quantity .btn {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 0.5rem 0.75rem;
}

.product-card .cart-quantity .btn:hover {
    background: var(--primary-dark);
}

.product-card .qty-input {
    background: #0066cc !important;
    border: none !important;
    font-weight: 700;
    font-size: 1rem;
    color: var(--secondary-color);
    text-align: center;
    border: none;
    background: transparent;
}

.product-card .qty-input:focus {
    outline: none;
    box-shadow: none;
    background: #fff8f0;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-input[type=text] {
    -moz-appearance: textfield;
}

.btn-remove-from-cart {
    transition: all 0.3s ease;
}

.btn-remove-from-cart:hover {
    background: var(--danger-color);
    border-color: var(--danger-color);
    color: white;
}

input.form-control.text-center.qty-input {
    color: #fff;
    background: #006FF9;
    box-shadow: 0 4px 15px rgba(0, 111, 249, 0.3);
    border-radius: 0 !important;
}

input.form-control.text-center.qty-input.is-overstock {
    border-color: var(--danger-color, #dc3545);
    background-color: #fff5f5;
    color: var(--danger-color, #dc3545);
    font-weight: 700;
}

input.form-control.text-center.qty-input.is-overstock:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

section.hero-slider.container {
    padding: 0;
    margin-top: 30px;
}

.top-bar {
    background: #f5f5f5;
    padding: 10px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid #e0e0e0;
}

.top-bar-location {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #006FF9;
    font-weight: 500;
}

.top-bar-location i {
    font-size: 1.1rem;
}

.top-bar-contacts {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.top-bar-phone,
.top-bar-email,
.top-bar-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.top-bar-phone:hover,
.top-bar-email:hover,
.top-bar-links a:hover {
    color: #006FF9;
}

.max-link-icon {
    display: flow;
    align-items: baseline;
    margin-left: 8px;
    transition: transform 0.3s;
    min-width: 0;
}

.max-link-icon:hover {
    transform: scale(1.1);
}

.max-link-icon img {
    height: 18px;
    width: auto;
    vertical-align: middle;
}

.main-header {
    background: white;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    transition: transform 0.3s;
}

.logo:hover img {
    transform: scale(1.05);
}

.catalog-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #006FF9;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.catalog-btn:hover {
    background: #0056cc;
}

.catalog-btn i {
    font-size: 18px;
}

@media (max-width: 991.98px) {
    .catalog-btn span {
        display: none;
    }
    .catalog-btn {
        padding: 10px 14px;
    }
}

.search-box {
    flex: 1;
    position: relative;
    width: 100%;
}

.search-box form {
    display: flex;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 14px 45px 14px 15px;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #006FF9;
    box-shadow: 0 0 0 3px rgba(0, 111, 249, 0.1);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #006FF9;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: #0056cc;
}

.header-icons {
    display: flex;
    gap: 30px;
    flex-shrink: 0;
}

.header-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
    position: relative;
}

.header-icon i {
    font-size: 1.5rem;
}

.header-icon:hover {
    color: #006FF9;
}

.wishlist-count,
.cart-count,
.comparison-count {
    font-size: 0.7rem;
    padding: 2px 6px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    top: 8px !important;
    background: #006FF9;
}

.wishlist-count,
.cart-count {
    left: 40px !important;
}

.comparison-count {
    left: 50px !important;
}

@media (max-width: 991px) {
    .top-bar-contacts {
        justify-content: center;
        align-items: baseline;
        gap: 10px;
    }
    .top-bar-contacts a {
        min-height: 0px !important;
    }
    .search-box {
        order: 3;
        width: 100%;
        max-width: 100%;
    }
    .header-icons {
        gap: 15px;
    }
    .header-icon i {
        font-size: 1.3rem;
    }
}

@media (max-width: 767px) {
    .header-icons {
        gap: 10px;
    }
    .header-icon {
        padding: 5px;
    }
}

.catalog-sidebar-wrapper {
    display: flex;
    align-items: center;
    position: static;
}

.catalog-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1088;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    pointer-events: none;
}

.catalog-sidebar-wrapper.active .catalog-sidebar-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.catalog-toggle-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #0066CC;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.catalog-toggle-btn:hover {
    background: #0052a3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.catalog-sidebar-wrapper.active .catalog-sidebar-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.catalog-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, #0066CC 0%, #0052a3 100%);
    color: #fff;
}

.catalog-sidebar-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.catalog-sidebar-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.catalog-sidebar-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.catalog-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.catalog-sidebar-item {
    margin: 2px 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.catalog-sidebar-item:hover,
.catalog-sidebar-item.active {
    background: #f0f7ff;
}

.catalog-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    text-decoration: none;
    color: #212529;
    border-radius: 8px;
}

.catalog-sidebar-link:hover {
    color: #0066CC;
}

.catalog-sidebar-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.catalog-sidebar-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.catalog-sidebar-icon i {
    font-size: 20px;
    color: #0066CC;
}

.catalog-sidebar-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.catalog-sidebar-name {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
    color: #0066CC;
}

.catalog-sidebar-desc {
    font-size: 11px;
    color: #6c757d;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.catalog-sidebar-arrow {
    font-size: 12px;
    color: #adb5bd;
    transition: transform 0.2s;
}

.catalog-sidebar-item:hover .catalog-sidebar-arrow,
.catalog-sidebar-item.active .catalog-sidebar-arrow {
    color: #0066CC;
    transform: translateX(3px);
}

.catalog-subcategories-wrapper {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    display: flex;
    flex-direction: row;
    height: 100%;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.catalog-subcategories-wrapper::-webkit-scrollbar {
    height: 6px;
}

.catalog-subcategories-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.catalog-subcategories-wrapper::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.catalog-subcategories-panel {
    display: none;
    max-width: 300px;
    flex-shrink: 0;
    overflow-y: auto;
    height: 100%;
    background: #fff;
    border-right: 1px solid #e9ecef;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.catalog-subcategories-panel.active {
    display: block;
}

.catalog-sub-panel {
    max-width: 300px;
    flex-shrink: 0;
    height: 100%;
    background: #fff;
    border-right: 1px solid #e9ecef;
    display: none;
    padding: 5px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.catalog-sub-panel.active {
    display: block;
}

.catalog-subcategories-panel::-webkit-scrollbar,
.catalog-sub-panel::-webkit-scrollbar {
    width: 6px;
}

.catalog-subcategories-panel::-webkit-scrollbar-track,
.catalog-sub-panel::-webkit-scrollbar-track {
    background: transparent;
}

.catalog-subcategories-panel::-webkit-scrollbar-thumb,
.catalog-sub-panel::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.catalog-subcategories-panel::-webkit-scrollbar-thumb:hover,
.catalog-sub-panel::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.subcategory-item.active {
    background: #e6f2ff;
    padding-left: 5px;
}

.subcategory-item.active .subcategory-name {
    color: #0066CC;
    font-weight: 600;
}

.subcategory-item.active .subcategory-arrow {
    color: #0066CC;
    transform: translateX(3px);
}

.subcategory-item.active .subcategory-icon {
    background: #f0f7ff;
}

.subcategories-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.subcategory-item {
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
    position: relative;
}

.subcategory-item:hover {
    background: #f0f7ff;
}

.subcategory-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #212529;
}

.subcategory-link:hover {
    color: #0066CC;
}

.subcategory-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e9ecef;
}

.subcategory-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3px;
}

.subcategory-icon i {
    font-size: 18px;
    color: #0066CC;
}

.subcategory-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.subcategory-name {
    font-weight: 500;
    font-size: 13px;
    line-height: 1.3;
}

.subcategory-count {
    font-size: 11px;
    color: #6c757d;
}

.subcategory-arrow {
    font-size: 12px;
    color: #adb5bd;
    transition: transform 0.2s;
    margin-left: auto;
}

.subcategory-item:hover .subcategory-arrow {
    color: #0066CC;
    transform: translateX(3px);
}

.subcategory-children-panel,
.grandchild-children-panel {
    display: none !important;
}

.no-subcategories {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.no-subcategories i {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.4;
    display: block;
}

.mobile-back-btn {
    display: none;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bi-chevron-right::before {
    left: 1px;
    position: relative;
}

.bi-chevron-left::before {
    left: 0px;
    position: relative;
}

.carousel-control-prev {
    left: 10px;
}

.carousel-control-next {
    right: 10px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(0, 111, 249, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev i,
.carousel-control-next i {
    font-size: 20px;
    color: #333;
    transition: color 0.3s ease;
}

.carousel-control-prev:hover i,
.carousel-control-next:hover i {
    color: white;
}

@media (max-width: 768px) {
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    .carousel-control-prev {
        left: 10px;
    }
    .carousel-control-next {
        right: 10px;
    }
    .carousel-control-prev i,
    .carousel-control-next i {
        font-size: 1.2rem;
    }
}

.wrapper-search-icon {
    display: flex;
    width: 100%;
    gap: 30px;
    justify-content: space-between;
    align-items: center;
}

.wrapper-logo-catalog {
    display: flex;
    width: 750px;
    gap: 20px;
    align-items: center;
    justify-content: space-evenly;
}

.breadcrumb-item a {
    color: #333333;
}

.breadcrumb-item.active {
    color: #006FF9;
    font-weight: 600;
}

.breadcrumb-item a:hover {
    color: #006FF9;
}

.view-toggle .btn {
    padding: 4px 12px;
}

.view-toggle .btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination .page-link {
    color: var(--primary-color);
    border-color: #dee2e6;
    margin: 0 2px;
    border-radius: 6px;
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination .page-link:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: white;
}

#filterForm .form-control,
#filterForm .form-select {
    border-color: #dee2e6;
}

#filterForm .form-control:focus,
#filterForm .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 111, 249, 0.25);
}

.frequent-filters {
    border-bottom: 1px solid #dee2e6;
}

.filter-chip {
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.filter-chip:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.sidebar-categories {
    position: sticky;
    top: 100px;
    max-height: 850px;
    overflow: overlay;
}

.sidebar-title {
    font-weight: 700;
    color: var(--secondary-color);
}
.removeFromCartCheck{
    display: flex;
    flex-direction: column;
    justify-content: left !important;
    align-items: baseline !important;
}
.category-tree {
    font-size: 0.95rem;
}

.category-parent {
    margin-bottom: 10px;
}

.category-header {
    transition: all 0.3s;
    font-weight: 600;
}

.category-header:hover {
    background: white;
    color: var(--primary-color);
}

.category-parent.active .category-header {
    background: white;
    color: var(--primary-color);
}

.category-header i {
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.category-children {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.category-children.show {
    max-height: 1000px;
}

.category-children a {
    display: block;
    padding: 6px 12px 6px 32px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s;
    border-radius: 4px;
}

.category-children a:hover,
.category-children a.active {
    background: white;
    color: var(--primary-color);
    padding-left: 36px;
}

.sort-dropdown .form-select {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    font-size: 0.9rem;
    padding: 8px 35px 8px 12px;
}

@media (max-width: 991px) {
    .sidebar-categories {
        position: static;
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .frequent-filters .d-flex {
        gap: 8px !important;
    }
    .filter-chip {
        padding: 5px 12px;
        font-size: 0.85rem;
    }
}

#sortForm .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23006FF9' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

.sort-icon {
    margin-right: 5px;
}

.sort-dropdown-custom {
    position: relative;
    min-width: 300px;
}

.sort-dropdown-btn {
    background: white;
    border: 2px solid #dee2e6;
    color: var(--secondary-color);
    padding: 8px 35px 8px 15px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    width: 100%;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sort-dropdown-btn:hover {
    border-color: var(--primary-color);
    background: #f0f7ff;
    color: #000;
}

.catalog-toolbar .align-items-center {
    justify-content: space-between;
}

.sort-dropdown-btn::after {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    font-family: 'bootstrap-icons' !important;
    content: '\F282';
}

.sort-dropdown-btn[aria-expanded="true"] {
    border-color: var(--primary-color);
    background: #f0f7ff;
    box-shadow: 0 0 0 3px rgba(0, 111, 249, 0.15);
    color: #000;
}

.sort-dropdown-btn[aria-expanded="true"]::after {
    content: '\F286';
}

.sort-dropdown-menu {
    width: 100%;
    border-radius: 8px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 8px 25px rgba(0, 111, 249, 0.15);
    padding: 8px;
    margin-top: 5px;
}

.sort-dropdown-menu .dropdown-item {
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--secondary-color);
    transition: all 0.2s;
    margin-bottom: 2px;
}

.sort-dropdown-menu .dropdown-item:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0052cc 100%);
    color: white;
    transform: translateX(5px);
}

.sort-dropdown-menu .dropdown-item.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0052cc 100%);
    color: white;
    font-weight: 600;
}

.sort-dropdown-menu .dropdown-divider {
    margin: 8px 0;
    border-color: #eee;
}

@media (max-width: 768px) {
    .sort-dropdown-btn {
        font-size: 0.85rem;
        padding: 6px 30px 6px 12px;
    }
    .sort-dropdown-menu {
        max-height: 300px;
        overflow-y: auto;
    }
}

.catalog-pagination-wrapper {
    padding: 20px 0;
}

.pagination-toolbar {
    background: #f8f9fa;
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

.per-page-dropdown .dropdown-toggle {
    background: white;
    border: 2px solid #dee2e6;
    color: var(--secondary-color);
    padding: 6px 30px 6px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    white-space: nowrap;
}

.per-page-dropdown .dropdown-toggle:hover {
    border-color: var(--primary-color);
    background: #f0f7ff;
}

.per-page-dropdown .dropdown-toggle::after {
    position: absolute;
    right: 12px;
    top: 55%;
    transform: translateY(-50%);
    border: none;
    font-family: 'bootstrap-icons' !important;
    content: '\F282';
}

.per-page-dropdown .dropdown-toggle[aria-expanded="true"] {
    border-color: var(--primary-color);
    background: #f0f7ff;
    box-shadow: 0 0 0 3px rgba(0, 111, 249, 0.15);
}

.per-page-dropdown .dropdown-toggle[aria-expanded="true"]::after {
    content: '\F286';
}

.per-page-menu {
    min-width: 180px;
    border-radius: 8px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 8px 25px rgba(0, 111, 249, 0.15);
    padding: 6px;
    margin-top: 5px;
}

.per-page-menu .dropdown-item {
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--secondary-color);
    transition: all 0.2s;
    margin-bottom: 2px;
}

.per-page-menu .dropdown-item:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0052cc 100%);
    color: white;
    transform: translateX(3px);
}

.per-page-menu .dropdown-item.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0052cc 100%);
    color: white;
    font-weight: 600;
}

.pagination.pagination-sm .page-link {
    padding: 6px 12px;
    font-size: 0.9rem;
    color: #283648;
    border-color: #dee2e6;
    margin: 0 1px;
    border-radius: 6px;
}

.pagination.pagination-sm .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination.pagination-sm .page-link:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: white;
}

.pagination.pagination-sm .page-item.disabled .page-link {
    color: #ccc;
    background: white;
    border-color: #eee;
}

.pagination-info {
    text-align: right;
}

@media (max-width: 991px) {
    .pagination-toolbar {
        flex-direction: column;
        align-items: center !important;
        gap: 15px !important;
        text-align: center;
    }
    .pagination-info {
        text-align: center;
    }
    .per-page-dropdown .dropdown-toggle {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .pagination.pagination-sm .page-link {
        padding: 4px 8px;
        font-size: 0.85rem;
        min-height: 0;
    }
    .pagination-info {
        font-size: 0.8rem;
    }
}

.wrapper-per-page-pagination-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.attribute-filter summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    /*background: #f8f9fa;*/
    border-radius: 6px;
    transition: all 0.3s;
}

.attribute-filter summary::-webkit-details-marker {
    display: none;
}

.attribute-filter summary::after {
    content: '▼';
    font-size: 0.6rem;
    color: var(--primary-color);
    transition: transform 0.3s;
}

.attribute-filter[open] summary {
    /*background: white;*/
    /*border: 1px solid var(--primary-color);*/
    /*color: var(--primary-color);*/
}

.attribute-filter[open] summary::after {
    transform: rotate(180deg);
}

.attribute-filter[open] summary:hover {
    background: #f0f7ff;
}

.attribute-filter .form-check {
    margin-bottom: 6px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.attribute-filter .form-check:hover {
    background: #f8f9fa;
}

.form-check-label {
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

input#inStockFilter {
    margin: 0 5px 0 0;
}

.form-check-label:hover {
    color: var(--primary-color);
}

.form-check-input:checked+.form-check-label {
    color: var(--primary-color);
    font-weight: 600;
}

.show-more-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
    width: 100%;
    text-align: left;
    border-radius: 6px;
}

.form-check-input:checked {
    background-color: #006FF9;
    border-color: #006FF9;
}

.show-more-btn:hover {
    background: #f0f7ff;
    color: var(--primary-dark);
}

.show-more-btn i {
    transition: transform 0.3s;
}

.show-more-btn.expanded i {
    transform: rotate(180deg);
}

.hidden-attributes {
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.attribute-filter .badge {
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

@media (max-width: 768px) {
    .attribute-filter summary {
        font-size: 0.85rem;
        padding: 6px 10px;
    }
    .attribute-filter .form-check-label {
        font-size: 0.8rem;
    }
}

.filter-actions.d-grid.gap-2.mt-4 {
    position: sticky;
    bottom: -15px;
    background: #f8f9fa;
    z-index: 99;
}

.form-check-input:disabled+label {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-check-input:disabled+label .badge {
    background-color: #e9ecef !important;
    color: #6c757d !important;
}

.filter-section details[open] summary {
    font-weight: 600;
}

.manufacturer-search input {
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.manufacturer-list {
    padding: 8px;
}

.manufacturer-item {
    padding: 6px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
    margin-left: 15px;
}

.manufacturer-item.selected .form-check-input {
    background-color: #006FF9;
    border-color: #006FF9;
}

.manufacturer-checkbox {
    cursor: pointer;
    margin-top: 2px;
}

.manufacturer-item label {
    cursor: pointer;
    padding-left: 4px;
}

.selected-count {
    font-weight: 500;
}

details.attribute-filter summary i {
    transition: transform 0.2s ease;
}

details.attribute-filter[open] summary i {
    transform: rotate(180deg);
}

details.attribute-filter summary {
    list-style: none;
    cursor: pointer;
}

details.attribute-filter summary::-webkit-details-marker {
    display: none;
}

input[type="range"] {
    transition: background 0.1s ease;
}

.form-range::-webkit-slider-thumb {
    transition: transform 0.1s ease;
}

.form-range::-webkit-slider-thumb:active {
    transform: scale(1.2);
}

.price-range-slider .slider-container {
    position: relative;
    height: 5px;
    margin: 15px 0;
}

div#priceRangeFill {
    position: absolute;
    height: 100%;
    background: #006FF9;
    border-radius: 3px;
    z-index: 6;
    pointer-events: none;
}

.price-range-slider {
    --slider-primary: #006FF9;
    --slider-primary-hover: #0052cc;
    --slider-primary-shadow: rgba(0, 82, 204, 0.5);
    --slider-thumb-size: 18px;
    --slider-track-height: 4px;
    --slider-thumb-border: 2px solid #fff;
}

.price-range-slider input[type="range"] {
    position: absolute;
    width: 100%;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    margin: 0;
    padding: 0;
    height: auto;
}

.price-range-slider input[type="range"]::-webkit-slider-thumb {
    pointer-events: all;
    -webkit-appearance: none;
    appearance: none;
    width: var(--slider-thumb-size);
    height: var(--slider-thumb-size);
    background: var(--slider-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px var(--slider-primary-shadow);
    border: var(--slider-thumb-border);
    margin-top: -7px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.price-range-slider input[type="range"]::-moz-range-thumb {
    pointer-events: all;
    width: var(--slider-thumb-size);
    height: var(--slider-thumb-size);
    background: var(--slider-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px var(--slider-primary-shadow);
    border: var(--slider-thumb-border);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.price-range-slider input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: var(--slider-track-height);
    background: var(--slider-track-bg);
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.1s ease;
}

.price-range-slider input[type="range"]::-moz-range-track {
    width: 100%;
    height: var(--slider-track-height);
    background: var(--slider-track-bg);
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.1s ease;
}

.price-range-slider input[type="range"]:hover::-webkit-slider-thumb,
.price-range-slider input[type="range"]:hover::-moz-range-thumb {
    background: var(--slider-primary-hover);
    transform: scale(1.15);
    box-shadow: 0 3px 8px var(--slider-primary-shadow);
}

.price-range-slider input[type="range"]:active::-webkit-slider-thumb,
.price-range-slider input[type="range"]:active::-moz-range-thumb {
    transform: scale(1.25);
    box-shadow: 0 4px 10px var(--slider-primary-shadow);
}

.price-range-slider #priceMinSlider::-webkit-slider-runnable-track,
.price-range-slider #priceMinSlider::-moz-range-track {
    background: linear-gradient(to right, var(--slider-track-bg) 0%, var(--slider-track-bg) var(--min-percent, 0%), var(--slider-primary) var(--min-percent, 0%), var(--slider-primary) 100%);
}

.price-range-slider #priceMaxSlider::-webkit-slider-runnable-track,
.price-range-slider #priceMaxSlider::-moz-range-track {
    background: linear-gradient(to right, var(--slider-primary) 0%, var(--slider-primary) var(--max-percent, 100%), var(--slider-track-bg) var(--max-percent, 100%), var(--slider-track-bg) 100%);
}

.price-range-slider input[type="range"]:focus {
    outline: none;
}

.price-range-slider input[type="range"]:focus::-webkit-slider-thumb,
.price-range-slider input[type="range"]:focus::-moz-range-thumb {
    box-shadow: 0 0 0 4px rgba(0, 111, 249, 0.3), 0 2px 6px var(--slider-primary-shadow);
}

.price-range-slider input[type="range"]:disabled {
    cursor: not-allowed;
}

.price-range-slider input[type="range"]:disabled::-webkit-slider-thumb,
.price-range-slider input[type="range"]:disabled::-moz-range-thumb {
    background: #adb5bd;
    box-shadow: none;
    cursor: not-allowed;
    border-color: #dee2e6;
}

.price-range-slider input[type="range"]:disabled::-webkit-slider-runnable-track,
.price-range-slider input[type="range"]:disabled::-moz-range-track {
    background: #dee2e6;
}

@media (hover: none) and (pointer: coarse) {
    .price-range-slider {
        --slider-thumb-size: 24px;
    }
    .price-range-slider .slider-container {
        height: 30px;
    }
    .price-range-slider input[type="range"]::-webkit-slider-thumb {
        margin-top: -10px;
    }
}

.product-name a {
    transition: color 0.2s ease;
    display: block;
    line-height: 1.4;
}

.product-name a:hover {
    color: #006FF9 !important;
    text-decoration: underline;
}

.product-image-link {
    display: block;
    overflow: hidden;
}

.product-image-link img {
    transition: transform 0.3s ease;
}

.product-image-link:hover img {
    transform: scale(1.05);
}

.btn-wishlist-text.active,
.btn-wishlist-icon.active {
    color: #006FF9 !important;
}

.btn-wishlist-text.active i,
.btn-wishlist-icon.active i {
    color: #006FF9 !important;
}

.btn-compare-text.active,
.btn-compare-icon.active {
    color: #006FF9 !important;
}

.btn-compare-text.active i,
.btn-compare-icon.active i {
    color: #048f1e !important;
}

.btn-wishlist-text:hover,
.btn-wishlist-icon:hover,
.btn-compare-text:hover,
.btn-compare-icon:hover {
    color: #006FF9 !important;
    font-weight: 600;
}

.btn-wishlist-text.active i,
.btn-wishlist-icon.active i {
    animation: heartBeat 0.3s ease;
}

.orange-background {
    background: #006FF9 !important;
}

.orange-color {
    color: #006FF9 !important;
}

img.category-img {
    max-height: 150px;
    max-width: 90%;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

img.catalog-main-item-image {
    width: 25px;
}

.editable-setting {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background-color 0.2s;
    cursor: pointer;
}

.editable-setting:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.editable-setting .editable-value {
    line-height: 1.4;
}

.btn-edit-setting {
    opacity: 0;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 2px 6px;
    border-radius: 3px;
    transition: all 0.2s;
    font-size: 0.9em;
}

.btn-edit-setting:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.2);
}

.editable-setting:hover .btn-edit-setting {
    opacity: 1;
}

.bg-light .editable-setting:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.bg-light .btn-edit-setting {
    color: rgba(0, 0, 0, 0.5);
}

.bg-light .btn-edit-setting:hover {
    color: #000;
    background-color: rgba(0, 0, 0, 0.1);
}

.editable-setting.saving .editable-value {
    opacity: 0.6;
}

.editable-setting.saved {
    animation: pulse-green 0.5s ease;
}

.editable-setting.error {
    animation: pulse-red 0.5s ease;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

.search-suggestions mark {
    background: #fff3cd;
    color: inherit;
    padding: 0 2px;
    border-radius: 2px;
    font-weight: 600;
}

.search-suggestions {
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-suggestion-item:hover,
.search-suggestion-item.active {
    background: #f8f9fa !important;
}

.search-suggestion-item.active {
    background: #0d6efd !important;
    color: white !important;
}

.search-suggestion-item.active .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

.search-suggestion-item.active .text-primary {
    color: white !important;
}

@media (max-width: 768px) {
    .search-suggestions {
        position: fixed;
        left: 1rem !important;
        right: 1rem !important;
        max-height: 50vh;
    }
}

.search-clear-btn {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    z-index: 10;
    transition: color 0.2s;
    width: 40px;
    height: 40px;
}

.search-clear-btn:hover {
    display: block;
    background: #006FF9;
    transform: translateY(-50%);
    border-radius: 6px;
    color: white;
    transition: all 0.3s;
}

.search-clear-btn i {
    font-size: 14px;
}

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    padding: 16px 20px;
    animation: slideUp 0.4s ease;
    border-top: 1px solid #e5e5e5;
}

.cookie-consent-banner.show {
    display: block !important;
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-consent-text {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
    min-width: 280px;
}

.cookie-icon {
    font-size: 28px;
    color: #0d6efd;
    flex-shrink: 0;
    margin-top: 2px;
}

.cookie-consent-text p {
    color: #555;
    line-height: 1.5;
}

.cookie-consent-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-consent-buttons .btn {
    min-width: 140px;
    font-weight: 500;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: 14px 16px;
    }
    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
    }
    .cookie-consent-text {
        min-width: auto;
    }
    .cookie-consent-buttons {
        width: 100%;
        flex-direction: column;
    }
    .cookie-consent-buttons .btn {
        width: 100%;
        min-width: auto;
    }
    .cookie-icon {
        font-size: 24px;
    }
}

button#checkoutPopupBtn {
    border: 1px solid #006FF9;
}

.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1039;
    border: none;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    background-color: #0d6efd;
    color: #fff;
}

@media (max-width: 576px) {
    .scroll-top-btn {
        bottom: 75px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

.search-suggestion {
    padding: 8px 12px;
    background: #fff3cd;
    border-radius: 4px;
    font-size: 0.9em;
    margin-bottom: 8px;
}

.search-suggestion a {
    color: #856404;
    font-weight: 500;
}

.search-layout-suggestion {
    border-left: 4px solid #ffc107;
    background: #fff3cd;
    border-radius: 4px;
    font-size: 0.95em;
}

.search-layout-suggestion .alert-link {
    color: #856404;
    text-decoration: none;
    border-bottom: 1px dashed #ffc107;
}

.search-layout-suggestion .alert-link:hover {
    border-bottom-style: solid;
    text-decoration: none;
}

.search-layout-suggestion i {
    font-size: 1.1em;
}

.search-result-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.search-result-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #f8f9fa;
}

.search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-weight: 500;
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-result-sku {
    font-size: 0.85em;
    margin-bottom: 6px;
}

.search-result-price .old-price {
    display: block;
    line-height: 1;
}

.search-result-price .current-price {
    font-size: 1.1em;
    color: #006FF9;
}

.search-no-results {
    text-align: center;
    padding: 20px;
    color: #6c757d;
}

.search-no-results i {
    font-size: 2em;
    display: block;
    margin-bottom: 10px;
}

mark {
    background: #fff3cd;
    padding: 0 2px;
    border-radius: 2px;
    font-weight: 500;
}

.clear-cart-modal {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.clear-cart-icon-wrapper {
    position: relative;
    display: inline-block;
    width: 80px;
    height: 80px;
}

.clear-cart-icon {
    position: relative;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    animation: iconBounce 0.6s ease-out;
}

.clear-cart-icon i {
    font-size: 36px;
    color: white;
    animation: iconShake 0.5s ease-in-out 0.3s;
}

.clear-cart-icon-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(220, 53, 69, 0.3);
    border-radius: 50%;
    animation: pulse 1.5s ease-out infinite;
    z-index: 1;
}

@keyframes iconBounce {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    60% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes iconShake {
    0%,
    100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.clear-cart-title {
    font-weight: 700;
    color: #212529;
    font-size: 1.5rem;
}

.clear-cart-info {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.clear-cart-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #495057;
}

.clear-cart-info-item i {
    font-size: 1.2rem;
    color: #6c757d;
    width: 20px;
}

.clear-cart-warning {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #6c757d;
}

.clear-cart-actions .btn {
    padding: 12px 20px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.clear-cart-actions .btn-light {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    color: #495057;
}

.clear-cart-actions .btn-light:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.clear-cart-actions .btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
    color: white;
}

.clear-cart-actions .btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71d2a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.clear-cart-actions .btn:active {
    transform: translateY(0);
}

.modal.show .clear-cart-modal {
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@media (max-width: 576px) {
    .clear-cart-modal {
        margin: 1rem;
        border-radius: 16px;
    }
    .clear-cart-icon-wrapper {
        width: 70px;
        height: 70px;
    }
    .clear-cart-icon {
        width: 70px;
        height: 70px;
    }
    .clear-cart-icon i {
        font-size: 30px;
    }
    .clear-cart-title {
        font-size: 1.3rem;
    }
    .clear-cart-actions {
        flex-direction: column;
    }
    .clear-cart-actions .btn {
        width: 100%;
    }
}

.wrapper-cart-popup-item {
    display: flex;
    width: 100%;
}

.wrapper-badge-stock {
    line-height: 15px;
    padding-bottom: 5px;
}

.wrapper-badge-stock span {
    padding: 0 !important;
}

.flying-product {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    border-radius: 50%;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.flying-product img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 50%;
    background: white;
    padding: 5px;
}

@keyframes cartBounce {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.3);
    }
    50% {
        transform: scale(0.9);
    }
    70% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.cart-icon-animate {
    animation: cartBounce 0.6s ease;
}

@keyframes flyingPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: scale(0.1);
        opacity: 0;
    }
}

.flying-product-remove {
    animation: flyingPulse 0.3s ease forwards;
}

.flying-product {
    position: fixed;
    z-index: 99999;
    pointer-events: none;
    border-radius: 50%;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.flying-product img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 50%;
    background: white;
    padding: 5px;
}

@keyframes cartBounce {
    0% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.3) rotate(-10deg);
    }
    50% {
        transform: scale(0.9) rotate(5deg);
    }
    75% {
        transform: scale(1.1) rotate(-3deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

.cart-icon-animate {
    animation: cartBounce 0.6s ease;
}

@keyframes cartCountPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.5);
    }
    100% {
        transform: scale(1);
    }
}

.cart-count-pulse {
    animation: cartCountPulse 0.5s ease;
}

@keyframes flyingToCart {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(0.5) rotate(180deg);
        opacity: 0.8;
    }
    100% {
        transform: scale(0.2) rotate(360deg);
        opacity: 0.3;
    }
}

.flying-product {
    animation: flyingToCart 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.catalog-search {
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 10;
}

.catalog-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.catalog-search-input-wrapper>i {
    position: absolute;
    left: 12px;
    color: #6c757d;
    font-size: 14px;
    pointer-events: none;
}

.catalog-search-input {
    width: 100%;
    padding: 10px 35px 10px 35px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    background: white;
    color: #333;
}

.catalog-search-input:focus {
    outline: none;
    border-color: #006FF9;
    box-shadow: 0 0 0 3px rgba(0, 111, 249, 0.1);
}

.catalog-search-input::placeholder {
    color: #999;
}

.catalog-search-clear {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.catalog-search-clear:hover {
    background: #e0e0e0;
    color: #333;
}

.catalog-no-results {
    text-align: center;
    padding: 30px 20px;
    color: #6c757d;
}

.catalog-no-results i {
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
    opacity: 0.4;
}

.catalog-no-results p {
    margin: 0;
    font-size: 14px;
}

.catalog-sidebar-item.hidden-by-search {
    display: none;
}

.catalog-sidebar-item.found-by-search {
    animation: fadeInUp 0.3s ease;
}

.catalog-search-highlight {
    background: #fff3cd;
    padding: 0 2px;
    border-radius: 2px;
    font-weight: 600;
}

.subcategory-item.hidden-by-search {
    display: none !important;
}

.subcategory-item .catalog-search-highlight {
    background: #fff3cd;
    padding: 0 2px;
    border-radius: 2px;
    font-weight: 600;
    color: #856404;
}

.subcategory-item.found-by-search {
    animation: fadeInDown 0.3s ease;
}

.catalog-search-results {
    position: absolute;
    top: calc(100% - 5px);
    left: 12px;
    right: 12px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 100;
    margin-top: 5px;
}

.catalog-search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #333;
}

.catalog-search-result-item:last-child {
    border-bottom: none;
}

.catalog-search-result-item:hover {
    background: #f0f7ff;
    padding-left: 20px;
}

.catalog-search-result-item.active {
    background: #e6f2ff;
}

.catalog-search-result-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.catalog-search-result-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3px;
}

.catalog-search-result-icon i {
    font-size: 16px;
    color: #0066CC;
}

.catalog-search-result-info {
    flex: 1;
    min-width: 0;
}

.catalog-search-result-name {
    font-weight: 500;
    font-size: 13px;
    line-height: 1.3;
    color: #333;
}

.catalog-search-result-path {
    font-size: 11px;
    color: #6c757d;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.catalog-search-result-arrow {
    font-size: 12px;
    color: #adb5bd;
    flex-shrink: 0;
}

.catalog-search-result-item:hover .catalog-search-result-arrow {
    color: #0066CC;
}

.catalog-search-highlight {
    background: #fff3cd;
    padding: 0 2px;
    border-radius: 2px;
    font-weight: 600;
    color: #856404;
}

.catalog-search-no-results {
    padding: 20px;
    text-align: center;
    color: #6c757d;
}

.catalog-search-no-results i {
    font-size: 30px;
    display: block;
    margin-bottom: 10px;
    opacity: 0.4;
}

.catalog-search-results::-webkit-scrollbar {
    width: 6px;
}

.catalog-search-results::-webkit-scrollbar-track {
    background: transparent;
}

.catalog-search-results::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.catalog-search-results::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.catalog-sidebar-menu {
    position: fixed;
    top: 0;
    left: 0;
    height: calc(100vh - 10px);
    background: none;
    border-radius: 0 0 12px 12px;
    box-shadow: none;
    z-index: 1092;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    margin-top: 0;
    border: none;
    border-top: none;
    overflow: hidden;
}

.catalog-sidebar-content-wrapper {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.catalog-sidebar-body {
    width: 300px;
    min-width: 300px;
    flex-shrink: 0;
    border-right: 1px solid #e9ecef;
    overflow-y: auto;
    background: #fff;
    height: 100%;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.catalog-sidebar-body::-webkit-scrollbar {
    width: 6px;
}

.catalog-sidebar-body::-webkit-scrollbar-track {
    background: transparent;
}

.catalog-sidebar-body::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.catalog-sidebar-body::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.cart-popup-checkout {
    max-height: 70vh;
    overflow-y: auto;
    padding: 0 15px;
}

.cart-popup-checkout .form-control-sm {
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
}

.cart-popup-checkout .form-check-label {
    font-size: 0.875rem;
}

.cart-popup-checkout .form-check-input {
    margin-top: 0.15rem;
}

.cart-popup-items {
    max-height: 300px;
    overflow-y: auto;
    padding: 0 15px;
}

.cart-popup-total {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
}

@media (max-width: 576px) {
    .cart-popup-checkout .row.g-3>[class*="col-"] {
        padding-left: 6px;
        padding-right: 6px;
    }
}

#cartPopup .cart-popup-checkout {
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px 15px;
}

#cartPopup .cart-popup-checkout .form-group {
    margin-bottom: 0.5rem;
}

#cartPopup .cart-popup-checkout .form-label {
    font-size: 0.8rem;
    margin-bottom: 0.15rem;
    font-weight: 500;
}

#cartPopup .cart-popup-items {
    max-height: 250px;
    overflow-y: auto;
    padding: 0 5px;
}

button.btn-compare.active {
    border-color: #048f1e;
    color: #048f1e;
}

#cartPopup .cart-popup-items::-webkit-scrollbar,
#cartPopup .cart-popup-checkout::-webkit-scrollbar {
    width: 4px;
}

.tox-promotion {
    display: none !important;
}

#cartPopup .cart-popup-items::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

#cartPopup .cart-popup-items::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

#cartPopup .cart-popup-items::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

.btn-wishlist-text.active i{
    color: #dc3545 !important
}

button.btn-icon-action.btn-wishlist-text:hover,
button.btn-wishlist:hover{
    border: 1px solid #dc3545 !important;
    color: #dc3545 !important;
}

button.btn-compare:hover{
    border: 1px solid #048f1e  !important;
    color: #048f1e  !important;
}
/* Кнопка-стрелка для раскрытия подкатегорий */
.subcategory-toggle-btn {
    display: none;
    background: rgba(0, 111, 249, 0.1);
    border: none;
    color: #006FF9;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
    font-size: 14px;
}

.subcategory-toggle-btn:hover,
.subcategory-toggle-btn:active {
    background: #006FF9;
    color: #fff;
}

.subcategory-item {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.subcategory-item .subcategory-link {
    flex: 1;
    min-width: 0;
}

/* Показываем стрелку только на мобильных и только если есть дети */
@media (max-width: 991.98px) {
    .subcategory-item.has-children .subcategory-toggle-btn {
        display: flex;
    }
}
.catalog-sidebar-toggle-btn {
    display: none;
    background: rgba(0, 111, 249, 0.1);
    border: none;
    color: #006FF9;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
}

.catalog-sidebar-toggle-btn:hover,
.catalog-sidebar-toggle-btn:active {
    background: #006FF9;
    color: #fff;
}

.catalog-sidebar-item {
    display: flex;
    align-items: center;
}

.catalog-sidebar-item .catalog-sidebar-link {
    flex: 1;
    min-width: 0;
}

@media (max-width: 991.98px) {
    .catalog-sidebar-item.has-children .catalog-sidebar-toggle-btn {
        display: flex;
        margin-right: 10px;
    }
}
/* ============================================================
   СТРЕЛКИ В КАТАЛОГЕ — ДЕСКТОП И МОБИЛЬНЫЕ
   ============================================================ */

/* По умолчанию кнопка-стрелка видна как индикатор */
.catalog-sidebar-toggle-btn,
.subcategory-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #adb5bd;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: default;         /* на десктопе не кликается */
    pointer-events: none;    /* на десктопе не перехватывает hover */
    flex-shrink: 0;
    transition: all 0.2s;
    font-size: 12px;
    padding: 0;
    margin-left: auto;
}

.catalog-sidebar-toggle-btn i,
.subcategory-toggle-btn i {
    font-size: 12px;
    transition: transform 0.2s;
}

/* Hover по родителю — стрелка становится синей и сдвигается */
.catalog-sidebar-item:hover .catalog-sidebar-toggle-btn,
.catalog-sidebar-item.active .catalog-sidebar-toggle-btn,
.subcategory-item:hover .subcategory-toggle-btn,
.subcategory-item.active .subcategory-toggle-btn {
    color: #0066CC;
    transform: translateX(3px);
}

/* ============================================================
   НА МОБИЛЬНЫХ — кнопка становится КЛИКАБЕЛЬНОЙ
   ============================================================ */
@media (max-width: 991.98px) {
    .catalog-sidebar-toggle-btn,
    .subcategory-toggle-btn {
        display: none;             /* по умолчанию скрыто */
        cursor: pointer;           /* на мобильных кликается */
        pointer-events: auto;      /* перехватывает клик */
        background: rgba(0, 111, 249, 0.1);
        color: #006FF9;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        font-size: 14px;
    }

    .catalog-sidebar-toggle-btn i,
    .subcategory-toggle-btn i {
        font-size: 14px;
    }

    /* Показываем кнопку только у элементов с детьми */
    .catalog-sidebar-item.has-children .catalog-sidebar-toggle-btn,
    .subcategory-item.has-children .subcategory-toggle-btn {
        display: flex;
    }

    /* Hover/active на мобильных — синий фон, белая иконка */
    .catalog-sidebar-toggle-btn:hover,
    .catalog-sidebar-toggle-btn:active,
    .subcategory-toggle-btn:hover,
    .subcategory-toggle-btn:active {
        background: #006FF9;
        color: #fff;
    }
}
/* ============================================================
   ВЫПАДАЮЩИЙ ПОИСК (search-results-dropdown)
   ============================================================ */

.search-results-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 2px solid #006FF9;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 111, 249, 0.18);
    z-index: 1050;
    overflow: hidden;
    animation: searchDropdownIn 0.2s ease-out;
}

@keyframes searchDropdownIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Шапка ---------- */
.search-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(135deg, #006FF9 0%, #0052cc 100%);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
}

.search-results-header span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.75rem;
    padding: 0;
}

.search-close:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: rotate(90deg);
}

/* ---------- Тело (список результатов) ---------- */
.search-results-body {
    max-height: 420px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
}

/* Скроллбар */
.search-results-body::-webkit-scrollbar {
    width: 6px;
}

.search-results-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.search-results-body::-webkit-scrollbar-thumb {
    background: #006FF9;
    border-radius: 3px;
}

.search-results-body::-webkit-scrollbar-thumb:hover {
    background: #0052cc;
}

/* ---------- Подвал ---------- */
.search-results-footer {
    border-top: 1px solid #eef0f2;
    background: #f8f9fa;
    padding: 10px 16px;
    text-align: center;
}

.search-results-footer a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #006FF9;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    text-decoration: none;
    width: 100%;
    padding: 6px 0;
    border-radius: 8px;
}

.search-results-footer a:hover {
    color: #0052cc;
    background: #e8f0fe;
    gap: 10px;
}

/* ---------- Подсветка совпадений ---------- */
.search-results-dropdown mark {
    background: #fff3cd;
    color: #856404;
    padding: 0 2px;
    border-radius: 3px;
    font-weight: 600;
}

/* ---------- Состояния внутри dropdown ---------- */
.search-results-dropdown .search-result-item {
    display: flex;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid #f1f3f5;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease, padding-left 0.2s ease;
}

.search-results-dropdown .search-result-item:last-child {
    border-bottom: none;
}

.search-results-dropdown .search-result-item:hover,
.search-results-dropdown .search-result-item.active {
    background: #f0f7ff;
    padding-left: 22px;
}

.search-results-dropdown .search-result-image {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    border: 1px solid #eef0f2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-results-dropdown .search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.search-results-dropdown .search-result-info {
    flex: 1;
    min-width: 0;
}

.search-results-dropdown .search-result-name {
    font-weight: 600;
    font-size: 0.88rem;
    line-height: 1.35;
    color: #2c3e50;
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-results-dropdown .search-result-sku {
    font-size: 0.75rem;
    color: #95a5a6;
    margin-bottom: 4px;
}

.search-results-dropdown .search-result-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.search-results-dropdown .search-result-price .current-price {
    color: #006FF9;
    font-weight: 700;
    font-size: 0.95rem;
}

.search-results-dropdown .search-result-price .old-price {
    color: #95a5a6;
    font-size: 0.75rem;
    text-decoration: line-through;
}

.search-results-dropdown .search-no-results {
    text-align: center;
    padding: 28px 20px;
    color: #6c757d;
}

.search-results-dropdown .search-no-results i {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
    opacity: 0.4;
    color: #006FF9;
}

.search-results-dropdown .search-no-results p {
    margin: 0;
    font-size: 0.9rem;
}

/* Лоадер (если используете) */
.search-results-dropdown .search-loading {
    text-align: center;
    padding: 24px;
    color: #6c757d;
    font-size: 0.9rem;
}

/* ---------- Мобильные ---------- */
@media (max-width: 991.98px) {
    .search-results-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 12px;
        right: 12px;
        top: 12px;
        max-height: 70vh;
        border-radius: 14px;
    }

    .search-results-body {
        max-height: calc(70vh - 110px);
    }
}

@media (max-width: 575.98px) {
    .search-results-header {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    .search-results-dropdown .search-result-item {
        padding: 8px 12px;
        gap: 10px;
    }

    .search-results-dropdown .search-result-item:hover,
    .search-results-dropdown .search-result-item.active {
        padding-left: 16px;
    }

    .search-results-dropdown .search-result-image {
        width: 48px;
        height: 48px;
    }

    .search-results-dropdown .search-result-name {
        font-size: 0.82rem;
    }
}

/* ============================================================
   МОБИЛЬНЫЙ ПОИСК (mobile-search-toggle)
   ============================================================ */
.mobile-search-toggle {
    display: none;
}

@media (max-width: 991.98px) {
    .mobile-search-toggle {
        display: flex;
    }

    /* Когда открыт мобильный поиск — search-box выезжает */
    .search-box.mobile-active {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1100;
        background: #fff;
        padding: 12px 15px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        animation: slideDown 0.25s ease-out;
    }

    .search-box.mobile-active .search-input {
        padding-right: 90px;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
/* Копируемый артикул в выпадающем поиске */
.product-sku-copy-inline {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: #6c757d;
    font-size: 11px;
    line-height: 1;
    transition: color 0.15s ease;
}

.product-sku-copy-inline:hover {
    color: #0d6efd;
}

.product-sku-copy-inline .copy-icon-mini {
    font-size: 10px;
    opacity: 0.6;
    transition: opacity 0.15s ease;
}

.product-sku-copy-inline:hover .copy-icon-mini {
    opacity: 1;
}

.product-sku-copy-inline .copy-tooltip-mini {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    background: #198754;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    z-index: 100;
}

.product-sku-copy-inline .copy-tooltip-mini.show {
    opacity: 1;
}

.mobile-search-result-meta {
    margin-top: 2px;
    line-height: 1.2;
}
.map-wrapper {
    position: relative;
    background: #e9ecef; /* Заглушка, пока грузится карта */
}

.org-card {
    /* Тень для объема */
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .org-card {
        position: relative !important;
        transform: none !important;
        top: auto !important;
        left: auto !important;
        margin: 20px;
        width: auto !important;
    }
    .map-wrapper {
        height: auto !important;
        min-height: 500px;
    }
}
