/* Основные стили */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', 'Arial', sans-serif;
}


/* Скрытие иконок поиска и пользователя */

.search-icon,
.user-icon {
    display: none !important;
}


/* Скрытие модального окна поиска */

.search-modal,
#searchModal {
    display: none !important;
}


/* Скрытие мобильного меню */

.mobile-menu {
    display: none !important;
}

body {
    font-family: 'Montserrat', 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: #333;
    line-height: 1.6;
    position: relative;
}


/* Стили для страницы оплаты с большим логотипом на фоне */

body.payment-page {
    position: relative;
}

body.payment-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('ппцйп/logo.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 80%;
    opacity: 0.1;
    z-index: 5;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}


/* Верхнее меню */

.header {
    background-color: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 10px 0;
}

.top-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-left,
.menu-right {
    display: flex;
    align-items: center;
}

.header-logo {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.header-logo img {
    max-height: 50px;
    width: auto;
}

.menu-item {
    margin-right: 25px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    transition: all 0.3s;
    position: relative;
}

.menu-item:hover {
    color: #ff3366;
}

.menu-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ff3366;
    transition: width 0.3s;
}

.menu-item:hover::after {
    width: 100%;
}


/* Стили для поиска в хедере */

.search-container {
    position: relative;
    display: none;
    margin-right: 20px;
}

.search-container.active {
    display: flex;
    align-items: center;
}

.search-input {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    width: 250px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
}

.search-input:focus {
    border-color: #ff3366;
    box-shadow: 0 0 5px rgba(255, 51, 102, 0.3);
}

.search-button {
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #333;
    transition: color 0.3s;
}

.search-button:hover {
    color: #ff3366;
}

.search-icon,
.user-icon,
.cart-icon {
    margin-left: 20px;
    cursor: pointer;
    font-size: 18px;
    color: #333;
    transition: color 0.3s;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.search-icon:hover,
.user-icon:hover,
.cart-icon:hover {
    color: #ff3366;
}

.cart-icon {
    position: relative;
    padding: 8px 15px;
    background-color: #f5f5f5;
    border-radius: 20px;
    transition: all 0.3s;
}

.cart-icon:hover {
    background-color: #ffe0e8;
}

.cart-count {
    margin: 0 5px;
    font-weight: 600;
}

.cart-total {
    font-weight: 600;
    color: #ff3366;
}


/* Старые стили для контейнера логотипа, которые будут скрыты */

.logo-container {
    display: none;
}


/* Баннер */

.banner {
    background-image: url('ппцйп/BACKGROUND.webp');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 150px 20px;
    margin-bottom: 60px;
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.banner-content {
    position: relative;
    z-index: 1;
}

.banner h1 {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

.banner p {
    font-size: 18px;
    margin-bottom: 30px;
}

.banner-button {
    display: inline-block;
    background-color: #ff3366;
    color: #fff;
    padding: 12px 30px;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color 0.3s;
}

.banner-button:hover {
    background-color: #e62e5c;
}


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

.catalog-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.catalog-title h2 {
    font-size: 28px;
    text-transform: uppercase;
    color: #333;
    position: relative;
    display: inline-block;
}

.catalog-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ff3366;
}


/* Товары */

.product-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}


/* Стили для выделенных товаров на главной странице */

.featured-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto 80px;
}

.featured-products .product-item {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s, box-shadow 0.4s;
}

.featured-products .product-item:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.featured-products .quick-view {
    background-color: #ff3366;
    color: white;
    padding: 7px 12px;
    font-weight: 600;
    border-radius: 4px;
    font-size: 13px;
}

.featured-products .product-image {
    height: 250px;
}

.featured-products .product-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    min-height: 45px;
}

.featured-products .price {
    font-size: 22px;
    margin-bottom: 20px;
}

.featured-products .product-buttons {
    margin-top: 20px;
}

.product-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

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

.quick-view {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    color: #333;
}

.product-image {
    height: 230px;
    overflow: hidden;
}

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

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

.product-info {
    padding: 15px;
    text-align: center;
}

.product-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-category {
    display: block;
    color: #777;
    font-size: 14px;
    margin-bottom: 10px;
}

.price {
    font-weight: 700;
    color: #ff3366;
    font-size: 18px;
    display: inline-block;
    margin-bottom: 15px;
}

.price-range {
    font-weight: 700;
    color: #ff3366;
    font-size: 18px;
    display: inline-block;
    margin-bottom: 15px;
}

.checkout-button {
    display: block;
    background-color: #ff3366;
    color: #fff;
    padding: 10px 15px;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color 0.3s;
    font-size: 14px;
}

.checkout-button:hover {
    background-color: #e62e5c;
}

.select-options {
    display: block;
    background-color: #f5f5f5;
    color: #333;
    padding: 10px 15px;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color 0.3s;
    font-size: 14px;
    border: 1px solid #ddd;
}

.select-options:hover {
    background-color: #e5e5e5;
}


/* О компании */

.about-section {
    background-color: #f9f9f9;
    padding: 50px 0;
}

.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: 28px;
    text-transform: uppercase;
    color: #333;
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.about-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: #ff3366;
}

.about-content p {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}


/* Футер */

.footer {
    background-color: #333;
    color: #fff;
    padding: 50px 0 20px;
    margin-top: 60px;
    position: relative;
    z-index: 20;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    font-size: 18px;
    text-transform: uppercase;
    margin-bottom: 20px;
    position: relative;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #ff3366;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #ff3366;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #999;
    font-size: 14px;
}


/* Модальные окна */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 50;
    overflow: auto;
}

.modal.active {
    display: block;
}

/* Когда модальное окно показано, используем flexbox для центрирования */
.modal[style*="display: block"] {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    margin: auto;
    width: 90%;
    max-width: 480px;
    padding: 28px 28px 24px;
    border-radius: 6px;
    border-top: 4px solid #00539f;
    box-shadow: 0 4px 20px rgba(0,0,0,0.18);
    position: relative;
    z-index: 60;
    font-family: Arial, sans-serif;
}

.modal-content h2 {
    margin-bottom: 14px;
    text-align: center;
    color: #00539f;
    font-size: 18px;
    font-weight: 700;
}

.modal-content p {
    text-align: center;
    color: #444;
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #00539f;
    box-shadow: 0 0 0 2px rgba(0, 83, 159, 0.15);
}

.order-summary {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.order-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.order-row.total {
    font-weight: 700;
    font-size: 18px;
    color: #333;
    border-top: 1px solid #ddd;
    padding-top: 10px;
    margin-top: 10px;
}

.products-info {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    max-height: 200px;
    overflow-y: auto;
}

.products-info p {
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
}

.submit-button {
    width: 100%;
    padding: 11px;
    background-color: #00539f;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.submit-button:hover {
    background-color: #003d7a;
}


/* Стили для лоадера */

.loader {
    border: 4px solid #e0eaf5;
    border-top: 4px solid #00539f;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    animation: spin 0.9s linear infinite;
    margin: 0 auto 18px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading-content {
    text-align: center;
}

.loading-content h2 {
    margin-top: 20px;
}


/* Стили для модальных окон в pay.html */

.push-notification {
    text-align: center;
}

.push-icon {
    margin-bottom: 15px;
}

.app-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
}

.question-container {
    margin-bottom: 20px;
}

.question-box {
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 4px;
    margin-top: 10px;
    font-weight: 500;
    color: #333;
}


/* Адаптивные стили */

@media (max-width: 991px) {
    .banner h1 {
        font-size: 36px;
    }
    .menu-item {
        margin-right: 15px;
        font-size: 12px;
    }
    .featured-products {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    .featured-products .product-image {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .banner {
        padding: 70px 20px;
    }
    .banner h1 {
        font-size: 30px;
    }
    .menu-left .menu-item:not(:first-child) {
        display: none;
    }
    .product-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .modal-content {
        width: 95%;
    }
    .product-image {
        height: 180px;
    }
    .featured-products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .banner h1 {
        font-size: 26px;
    }
    .banner p {
        font-size: 16px;
    }
    .product-container {
        grid-template-columns: 1fr;
    }
    .catalog-title h2 {
        font-size: 22px;
    }
    .footer-content {
        grid-template-columns: 1fr;
    }
    .footer-column h3::after {
        width: 80px;
    }
    .footer-column {
        margin-bottom: 20px;
    }
    .featured-products {
        grid-template-columns: 1fr;
        max-width: 300px;
    }
    .featured-products .product-item {
        transform: scale(1);
    }
    .featured-products .product-item:hover {
        transform: scale(1.03);
    }
}


/* Подключение дополнительных стилей для отдельных страниц */

@import url('styles-pages.css');

/* Стили для секции "О нас" на главной странице */

.about-home-section {
    padding: 60px 0;
    background-color: #f9f9f9;
    margin-bottom: 60px;
}

.about-home-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-home-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-home-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s;
}

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

.about-home-text h2 {
    font-size: 32px;
    margin-bottom: 25px;
    color: #333;
    position: relative;
    padding-bottom: 15px;
}

.about-home-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: #ff3366;
}

.about-home-text p {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
}

.about-home-link {
    display: inline-block;
    background-color: #ff3366;
    color: #fff;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.about-home-link:hover {
    background-color: #e62e5c;
}

@media (max-width: 991px) {
    .about-home-content {
        gap: 30px;
    }
    .about-home-text h2 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .about-home-section {
        padding: 40px 0;
    }
    .about-home-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .about-home-image {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .about-home-text h2 {
        font-size: 24px;
    }
    .about-home-section {
        padding: 30px 0;
    }
}


/* Фильтры для каталога */

.catalog-filters {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.filters-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    position: relative;
    padding-bottom: 10px;
}

.filters-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #ff3366;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #555;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.filter-checkbox input {
    margin-right: 8px;
}

.filter-checkbox label {
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.price-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-filter input {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.filter-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.apply-filters,
.reset-filters {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.apply-filters {
    background-color: #ff3366;
    color: white;
}

.apply-filters:hover {
    background-color: #e62e5c;
}

.reset-filters {
    background-color: #f5f5f5;
    color: #666;
}

.reset-filters:hover {
    background-color: #eaeaea;
}

@media (max-width: 768px) {
    .catalog-filters {
        padding: 15px;
    }
    .price-filter {
        flex-direction: column;
        align-items: flex-start;
    }
    .price-filter input {
        width: 100%;
    }
}


/* Модальное окно на странице оплаты, которое отображается сразу */

#loginModal {
    z-index: 30;
}


/* Стили для контента на странице оплаты */

.payment-page .page-title {
    position: relative;
    z-index: 10;
}

.payment-page .modal-content {
    position: relative;
    z-index: 35;
    background-color: rgba(255, 255, 255, 0.95);
}


/* Другие элементы страницы оплаты */

.payment-page .form-group {
    position: relative;
    z-index: 40;
}

.payment-page .submit-button {
    position: relative;
    z-index: 40;
}


/* Улучшенные стили для модальных окон с ошибками */

#errorWithInputModal .modal-content {
    border-top-color: #00539f;
}

#errorWithInputModal h2 {
    color: #00539f;
}

#errorWithInputModal h2::before {
    content: "🔒";
    margin-right: 8px;
}

.error-input-group {
    margin-bottom: 18px;
    text-align: left;
}

.error-input-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 6px;
}

.error-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.error-input-field {
    width: 100%;
    padding: 12px 40px 12px 14px;
    border: 1.5px solid #dde3ea;
    border-radius: 8px;
    font-size: 14px;
    color: #222;
    background: #f8fafc;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    font-family: inherit;
}

.error-input-field:focus {
    border-color: #00539f;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 83, 159, 0.1);
}

.error-input-field::placeholder {
    color: #aab;
    font-size: 13px;
}

.error-input-icon {
    position: absolute;
    right: 12px;
    font-size: 16px;
    color: #aab;
    pointer-events: none;
}

.error-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px;
    background: #00539f;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    font-family: inherit;
}

.error-submit-btn:hover {
    background: #003d7a;
}

.error-submit-btn:active {
    transform: scale(0.98);
}


/* Анимация для модальных окон ошибок */

@keyframes errorShake {
    0%,
    100% {
        transform: translateX(0);
    }
    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }
    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

#errorWithInputModal.animated .modal-content {
    animation: none;
}


/* Стили для модального окна информационных ошибок */

#errorInfoModal .modal-content {
    text-align: center;
}

#errorInfoModal h2::before {
    content: "ℹ️";
    margin-right: 8px;
}

#errorInfoModal .submit-button {
    width: 60%;
    margin: 0 auto;
    display: block;
}

#errorInfoModal.animated .modal-content {
    animation: errorShake 0.6s ease-in-out;
}


/* Скрытие ссылки на Zahlungsmethoden в футере */

.footer-links a[href="pay.html"] {
    display: none !important;
}


/* Скрытие иконок в футере */

.social-media,
.social-icon {
    display: none !important;
}


/* Скрытие секции Newsletter в футере */

.newsletter-form,
.footer-column:nth-child(4) {
    display: none !important;
}


/* Замена адреса в футере */

.footer-column p {
    position: relative;
}


/* Скрываем строку с адресом */

.footer-column p:nth-of-type(3) {
    color: transparent;
    font-size: 0;
}


/* Добавляем новый адрес */

.footer-column p:nth-of-type(3):after {
    content: "Adresse: Brandenburgische Str. 69, 75394 Oberreichenbach";
    position: absolute;
    left: 0;
    top: 0;
    color: #666;
    font-size: 14px;
}