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


/* Стили для каталога */

.catalog-filters {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 15px;
    background-color: #1a1a1a;
    border-radius: 8px;
}

.filter-group {
    display: flex;
    align-items: center;
}

.filter-group label {
    margin-right: 10px;
    font-weight: 500;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #1a1a1a;
    font-family: inherit;
}

.product-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.view-product-btn,
.add-to-cart-btn {
    flex: 1;
    padding: 6px 10px;
    border-radius: 4px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
}

.view-product-btn {
    background-color: #1a1a1a;
    color: #333;
    text-decoration: none;
    border: 1px solid #ddd;
}

.view-product-btn:hover {
    background-color: #3a3a3a;
}

.add-to-cart-btn {
    background-color: #ff3366;
    color: #d4af37;
    border: none;
}

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

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.page-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    color: #333;
    background-color: #1a1a1a;
    transition: all 0.3s;
}

.page-item.active {
    background-color: #ff3366;
    color: #d4af37;
}

.page-item:hover:not(.active) {
    background-color: #3a3a3a;
}


/* Скрываем кнопку "Следующая страница" */

.page-item.next {
    display: none;
}


/* Стили для сообщения об успешном заказе */

.success-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.success-content {
    background-color: #1a1a1a;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease;
}

.success-content i {
    font-size: 60px;
    color: #4CAF50;
    margin-bottom: 20px;
}

.success-content h2 {
    margin-bottom: 15px;
    color: #333;
}

.success-content p {
    margin-bottom: 20px;
    color: #666;
}

.success-content button {
    background-color: #4CAF50;
    color: #d4af37;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.success-content button:hover {
    background-color: #3d9540;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.catalog-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.view-all {
    color: #ff3366;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.view-all:hover {
    color: #e62e5c;
    text-decoration: underline;
}


/* Стили для корзины */

.cart-section {
    padding: 60px 0;
}

.cart-container {
    background-color: #1a1a1a;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 40px;
}

.cart-header {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr 0.5fr;
    padding: 20px;
    background-color: #1a1a1a;
    border-bottom: 1px solid #3a3a3a;
    font-weight: 600;
}

.cart-header-item {
    color: #555;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-header-item.product {
    padding-left: 15px;
}

.cart-item {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr 0.5fr;
    padding: 20px;
    border-bottom: 1px solid #3a3a3a;
    align-items: center;
    transition: background-color 0.3s;
}

.cart-item:hover {
    background-color: #1a1a1a;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    float: left;
}

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

.cart-item:hover .cart-item-image img {
    transform: scale(1.1);
}

.cart-item-details {
    padding-top: 5px;
}

.cart-item-details h3 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}

.cart-item-meta {
    font-size: 13px;
    color: #777;
    margin-bottom: 5px;
}

.cart-item-meta span {
    display: inline-block;
    margin-right: 10px;
}

.cart-item-price {
    font-weight: 600;
    color: #555;
    font-size: 16px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 25px;
    overflow: hidden;
    width: fit-content;
}

.quantity-btn {
    background-color: #1a1a1a;
    border: none;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 12px;
}

.quantity-btn:hover {
    background-color: #3a3a3a;
}

.quantity-input {
    width: 35px;
    text-align: center;
    border: none;
    font-size: 13px;
    font-weight: 500;
    padding: 4px 0;
}

.cart-item-total {
    font-weight: 700;
    color: #ff3366;
    font-size: 16px;
}

.remove-item-btn {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-item-btn:hover {
    color: #ff3366;
}

.empty-cart {
    padding: 40px 20px;
    text-align: center;
    font-size: 18px;
    color: #777;
    font-weight: 500;
}

.cart-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 30px 20px;
    background-color: #1a1a1a;
    border-top: 1px solid #3a3a3a;
}

#cart-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.clear-cart-btn {
    padding: 8px 16px;
    background-color: #3a3a3a;
    color: #cccccc;
    border: 1px solid #555;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
    display: flex;
    align-items: center;
}

.clear-cart-btn:hover {
    background-color: #d4af37;
    color: #1a1a1a;
    border-color: #b8941f;
}

.continue-shopping-btn {
    padding: 8px 16px;
    background-color: #1a1a1a;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 13px;
    display: flex;
    align-items: center;
}

.continue-shopping-btn:hover {
    background-color: #1a1a1a;
    border-color: #ccc;
}

.cart-summary-container {
    width: 350px;
    background-color: #1a1a1a;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.cart-summary-container h2 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #3a3a3a;
    color: #333;
}

.cart-summary .summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 15px;
}

.cart-summary .summary-row.total {
    font-weight: 700;
    font-size: 18px;
    color: #333;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #3a3a3a;
}

.checkout-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #ff3366;
    color: #d4af37;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
    text-decoration: none;
}

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

.benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.benefit-item {
    display: flex;
    align-items: center;
    background-color: #1a1a1a;
    padding: 15px;
    border-radius: 8px;
    transition: transform 0.3s;
    border: 1px solid #3a3a3a;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 24px;
    color: #ff3366;
    margin-right: 15px;
}

.benefit-content h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.benefit-content p {
    color: #777;
    font-size: 14px;
}


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

@media (max-width: 991px) {
    .cart-header,
    .cart-item {
        grid-template-columns: 2fr 1fr 1fr 1fr 50px;
    }
    .cart-footer {
        flex-direction: column-reverse;
        gap: 20px;
    }
    .cart-summary-container {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .catalog-filters {
        flex-direction: column;
        gap: 15px;
    }
    .cart-header,
    .cart-item {
        grid-template-columns: 2fr 1fr 1fr 50px;
    }
    .cart-header-item.price,
    .cart-item-price {
        display: none;
    }
    #cart-actions {
        flex-direction: column;
        width: 100%;
    }
    .clear-cart-btn,
    .continue-shopping-btn {
        width: 100%;
        text-align: center;
    }
}