* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: monospace;
}

header {
    position: relative;
    background-image: url("../img/bg.jpg");
    background-size: cover;
    background-position: center;
    color: white;
    width: 100%;
    height: 100vh;
    padding: 20px 40px;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

header > * {
    position: relative;
    z-index: 2;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.phones {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.phones p {
    margin: 0;
    font-size: 18px;
}

.separator {
    color: #888;
    font-weight: bold;
}

.logo-block {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.logo {
    border-radius: 50%;
}

.logo-text h1 {
    font-size: 48px;
    font-weight: bold;
    margin: 0;
    line-height: 1;
}

.logo-text p {
    font-size: 24px;
    margin: 5px 0 0;
    opacity: 0.9;
}

nav {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;

}

nav a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.nav-hover {
    position: relative;
    transition: color 0.3s ease;
}

.nav-hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4f5053, #4d7f88);
    transition: width 0.3s ease;
}

.nav-hover:hover {
    color: #3b3bcb !important;
    transform: translateY(-2px);
}

.nav-hover:hover::after {
    width: 80%;
}

.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 30px rgba(13, 110, 253, 0.2) !important;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
}

.card-img-hover {
    transition: all 0.3s ease;
    overflow: hidden;
}

.card-img-hover:hover img {
    transform: scale(1.1);
    transition: transform 0.5s ease;
}

.overlay-hover {
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    transition: background 0.3s ease;
}

.card-img-hover:hover .overlay-hover {
    background: linear-gradient(to top, rgba(65, 64, 64, 0.9), rgba(0,0,0,0.4)) !important;
}

.link-hover {
    transition: all 0.3s ease;
    display: inline-block;
}

.card-img-hover:hover .link-hover {
    transform: translateX(10px);
    color: #ffc107 !important;
}

.border-warning:hover {
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.5);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(255, 193, 7, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
}

@media (max-width: 768px) {
    header {
        padding: 15px;
        height: auto;
        min-height: 100vh;
    }

    .logo-text h1 {
        font-size: 36px;
    }

    .logo-text p {
        font-size: 18px;
    }

    nav {
        gap: 15px;
        justify-content: center;
    }

    nav a {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .logo-block {
        flex-direction: column;
        text-align: center;
    }

    .top-bar {
        flex-direction: column;
        text-align: center;
    }

    .phones {
        justify-content: center;
    }
}


.promo {
    background-color: #fafafa;
}

.promo-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.promo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #6c757d, #adb5bd);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08) !important;
}

.promo-card:hover::before {
    opacity: 1;
}

.promo-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.promo-card h3 {
    color: #2c3e50;
    line-height: 1.4;
}

.promo-footer {
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 12px;
    margin-top: 12px;
}

@media (max-width: 768px) {
    .promo {
        padding: 40px 0;
    }

    .promo h2 {
        font-size: 2rem;
    }
}

.footer {
    background-color: #1a1e24 !important;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-logo h3 {
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff, #adb5bd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-menu a {
    transition: all 0.2s ease;
    position: relative;
    display: inline-block;
}

.footer-menu a:hover {
    color: #fff !important;
    transform: translateX(3px);
}

.footer-menu a::before {
    content: '›';
    position: absolute;
    left: -12px;
    opacity: 0;
    color: #6c757d;
    transition: opacity 0.2s ease, left 0.2s ease;
}

.footer-menu a:hover::before {
    opacity: 1;
    left: -8px;
}

.footer .btn-outline-secondary {
    border-color: rgba(255,255,255,0.1);
    color: #adb5bd;
    transition: all 0.2s ease;
}

.footer .btn-outline-secondary:hover {
    background-color: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.2);
    color: #fff;
    transform: translateY(-2px);
}

.footer a.border-bottom:hover {
    border-color: #fff !important;
}

@media (max-width: 768px) {
    .footer-logo {
        text-align: center;
    }

    .footer .col-lg-8 > .row {
        gap: 30px;
    }

    .footer .col-md-4 {
        text-align: center;
    }

    .footer-menu a:hover {
        transform: translateX(0);
    }

    .footer-menu a::before {
        display: none;
    }
}


/* Укороченный евро-баннер */
.euro-banner-mini {
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,215,0,0.2);
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

.border-white-10 {
    border-color: rgba(255,255,255,0.1) !important;
}

/* Адаптив */
@media (max-width: 992px) {
    .euro-banner-mini {
        max-width: 100% !important;
        margin-top: 20px;
    }

    .d-flex.justify-content-between {
        flex-direction: column;
        align-items: start !important;
    }
}




/* Дополнительные стили поверх Bootstrap */
.filter-sidebar {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
}

.price-btn {
    border: 1px solid #dee2e6;
    padding: 10px 20px;
    border-radius: 8px;
    background: white;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 0.9rem;
}

.price-btn:hover, .price-btn.active {
    background: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

.timer-box {
    background: linear-gradient(135deg, #2c3e50, #1a2632);
    color: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
}

.timer-digit {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 10px;
    font-size: 2rem;
    font-weight: bold;
    min-width: 60px;
    text-align: center;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.filter-checkbox .count {
    color: #6c757d;
    font-size: 0.9rem;
    margin-left: auto;
}

.rating-stars {
    color: #ffc107;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.product-card {
    transition: all 0.3s;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 1;
}

.product-image {
    height: 200px;
    background: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-weight: bold;
    font-size: 1.2rem;
}

.sort-select {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 8px 15px;
    min-width: 200px;
}

.clear-filter {
    color: #0d6efd;
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
}

.clear-filter:hover {
    text-decoration: underline;
}

.product-meta {
    font-size: 0.9rem;
    color: #6c757d;
}

.product-card .btn {
    pointer-events: none;
}

.list-view .product-card {
    display: flex;
    flex-direction: row;
}

.list-view .product-image {
    width: 200px;
    flex-shrink: 0;
}

.list-view .p-3 {
    flex: 1;
}

.filter-checkbox input[type="checkbox"] {
    cursor: pointer;
}
.filter-checkbox label {
    cursor: pointer;
    user-select: none;
}

/* Уведомления */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    background: #28a745;
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    animation: slideIn 0.3s ease;
}

.notification.error {
    background: #dc3545;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}