/* Основные стили */
/* FOUC fix */
body.loaded {
    opacity: 1;
    transition: opacity 0.5s ease;
  }

:root {
    --primary: #e03f00;
    --ptext: #c2c2c2;
    --pbtn: #c2c2c2; 
    --pbtnn: #5a5a5a; 
    --primary-dark: #e00000;
    --dark-bg: rgb(17, 17, 17);
    --dark-card: rgb(26, 25, 25);
    --darker-card: #1a1a1a;
    --light-text: #f0f0f0;
    --medium-text: #b0b0b0;
    --border-dark: #2b2b2b;
    --success: #4caf50;
    --error: #ff0000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка сайта */

header {
    background-color: var(--darker-card);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }

.logo h1 {
    font-size: 24px;
    background: linear-gradient(45deg, #ff0000, #ff7700, #ff0000, #ff7700);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: gradientAnimation 3s ease infinite;
    color: transparent;
    margin-left: 10px;
    font-weight: 700;
}

.logo-icon {
    background: linear-gradient(45deg, #ff0000, #ff7700, #ff0000, #ff7700);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: gradientAnimation 3s ease infinite;
    color: transparent;
    font-size: 28px;
}

.search-container {
    position: relative;
    flex-grow: 1;
    max-width: 600px;
    margin: 0 20px;
}

.search-box {
    width: 100%;
    padding: 12px 20px;
    border-radius: 30px;
    border: none;
    background-color: #2a2a2a;
    color: var(--light-text);
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-box:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary);
    background-color: #333;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--darker-card);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 100;
}

.search-results.active {
    display: block;
}

.search-item {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-dark);
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
}

.search-item:hover {
    background-color: #2a2a2a;
}

.search-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
}

.search-item-info h4 {
    font-size: 15px;
    margin-bottom: 3px;
}

.search-item-info p {
    font-size: 14px;
    color: var(--medium-text);
}

.header-icons {
    display: flex;
    gap: 20px;
}

.header-icon {
    position: relative;
    cursor: pointer;
    font-size: 22px;
    color: var(--medium-text);
    transition: color 0.3s;
}

.header-icon:hover {
    color: var(--primary);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Категории */
.categories {
    background-color: #1a1a1a;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-dark);
}

.categories-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 15px; /* Освобождаем место для скроллбара */
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--dark-bg);
}

.categories-container::-webkit-scrollbar {
    height: 10px;
}

.categories-container::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

.categories-container::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 6px;
}

.category-btn {
    background-color: #2a2a2a;
    color: var(--medium-text);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.category-btn:hover, .category-btn.active {
    background-color: var(--primary);
    color: white;
    
}

/* Секция товаров */
.products-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-title {
    font-size: 28px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.view-all:hover {
    color: #ff1e00;
}

.view-all i {
    font-size: 14px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

/* Карточка товара */
.product-card {
    background-color: var(--dark-card);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-dark);
}

.product-info {
    padding: 20px;
}

.product-category {
    color: var(--ptext);
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 5px;
    font-weight: 600;
}

.product-name {
    font-size: 16px;
    margin-bottom: 10px;
    height: 45px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #ffee00;
}

.product-reviews {
    color: var(--medium-text);
    font-size: 13px;
    margin-left: 8px;
}

.product-price-container {
    margin-bottom: 15px;
}

.product-price {
    font-size: 19px;
    font-weight: bold;
    color: var(--light-text);
}

.old-price {
    font-size: 13px;
    color: var(--medium-text);
    text-decoration: line-through;
    margin-left: 8px;
}

.discount {
    font-size: 14px;
    color: var(--success);
    margin-left: 8px;
    font-weight: 500;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.add-to-cart {
    flex-grow: 1;
    background-color: #333;
    color: var(--light-text);
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: 500;
    
}

.add-to-cart:hover {
    background-color: var(--pbtnn);
}

.details-btn {
    background: none;
    border: 1px solid var(--pbtn);
    color: var(--pbtn);
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.details-btn:hover {
    background-color: var(--pbtnn);
    color: white;
}

/* Страница товара */
.product-page {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.breadcrumbs {
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--medium-text);
}

.breadcrumbs a {
    color: var(--primary);
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: #ff0800;
}

.product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image {
    width: 100%;
    height: 400px;
    background-color: var(--dark-card);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.thumbnails {
    display: flex;
    gap: 10px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.thumbnail:hover {
    border-color: var(--primary);
}

.thumbnail.active {
    border-color: var(--primary);
}

.product-details {
    background-color: var(--dark-card);
    padding: 30px;
    border-radius: 10px;
}

.product-title {
    font-size: 28px;
    margin-bottom: 10px;
}

.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.product-rating i {
    color: #ffee00;
    margin-right: 3px;
}

.reviews-count {
    color: var(--medium-text);
    font-size: 14px;
    margin-left: 10px;
}

.price-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.current-price {
    font-size: 32px;
    font-weight: bold;
}

.old-price {
    font-size: 13px;
    color: var(--medium-text);
    text-decoration: line-through;
    margin: 0 15px;
}

.discount {
    font-size: 16px;
    color: var(--success);
    font-weight: bold;
}

.availability {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: var(--success);
}

.availability i {
    margin-right: 8px;
}

.delivery-info {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    color: var(--medium-text);
    font-size: 14px;
}

.delivery-info i {
    margin-right: 8px;
    color: var(--primary);
}

.product-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.add-to-cart-btn {
    flex-grow: 1;
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
    font-weight: bold;
}

.add-to-cart-btn:hover {
    background-color: var(--primary-dark);
}

.buy-now-btn {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
}

.back {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
}

.back:hover {
    background-color: var(--primary);
    color: white;
}

.buy-now-btn:hover {
    background-color: var(--primary);
    color: white;
}

.product-features {
    margin-bottom: 30px;
}

.product-features h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.product-features ul {
    list-style: none;
}

.product-features li {
    margin-bottom: 8px;
    display: flex;
}

.product-features li strong {
    min-width: 120px;
    display: inline-block;
    color: var(--medium-text);
}

.product-description {
    background-color: var(--dark-card);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 50px;
}

.product-description h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.product-description p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.similar-products h2 {
    font-size: 24px;
    margin-bottom: 25px;
}

/* Корзина */
.cart-page {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.cart-title {
    font-size: 32px;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.cart-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

.cart-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.cart-items {
    background-color: var(--dark-card);
    border-radius: 10px;
    padding: 20px;
}

.empty-cart {
    text-align: center;
    padding: 50px 0;
}

.empty-cart i {
    font-size: 50px;
    color: var(--medium-text);
    margin-bottom: 20px;
}

.empty-cart p {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--medium-text);
}

.continue-shopping {
    color: var(--primary);
    font-weight: 500;
    transition: color 0.3s;
}

.continue-shopping:hover {
    color: #ff0800;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr 150px;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-dark);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.cart-item-info p {
    color: var(--medium-text);
    margin-bottom: 10px;
}

.cart-item-price {
    font-weight: bold;
    color: var(--primary);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-dark);
    border-radius: 5px;
    overflow: hidden;
}

.quantity-btn {
    background-color: #2a2a2a;
    color: var(--light-text);
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.quantity-btn:hover {
    background-color: #333;
}

.quantity-input {
    width: 40px;
    height: 30px;
    text-align: center;
    border: none;
    background-color: var(--dark-card);
    color: var(--light-text);
    -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.remove-item {
    color: var(--error);
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s;
}

.remove-item:hover {
    color: #d32f2f;
}

.cart-summary {
    background-color: var(--dark-card);
    border-radius: 10px;
    padding: 25px;
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

.cart-summary h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.summary-row.total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-dark);
    font-size: 18px;
}

.total-price {
    color: var(--primary);
    font-weight: bold;
}

.checkout-btn {
    width: 100%;
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.checkout-btn:hover {
    background-color: var(--primary-dark);
}

.delivery-info {
    margin-top: 20px;
    display: flex;
    align-items: center;
    color: var(--medium-text);
    font-size: 14px;
}

.delivery-info i {
    margin-right: 8px;
    color: var(--primary);
}

.recommendations {
    margin-top: 50px;
}

.recommendations h2 {
    font-size: 24px;
    margin-bottom: 25px;
}

/* Оформление заказа */
.checkout-page {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.checkout-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.checkout-form {
    background-color: var(--dark-card);
    border-radius: 10px;
    padding: 30px;
}

.checkout-form h1 {
    font-size: 28px;
    margin-bottom: 30px;
}

.form-section {
    margin-bottom: 30px;
}

.form-section h2 {
    font-size: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section h2 i {
    color: var(--primary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: #2a2a2a;
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    color: var(--light-text);
    font-size: 16px;
    transition: all 0.3s;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: #333;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.delivery-address {
    margin-top: 20px;
    padding-left: 30px;
    border-left: 2px solid var(--primary);
}

.place-order-btn {
    width: 100%;
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.place-order-btn:hover {
    background-color: var(--primary-dark);
}

.order-summary {
    background-color: var(--dark-card);
    border-radius: 10px;
    padding: 25px;
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

.order-summary h2 {
    font-size: 20px;
    margin-bottom: 20px;
}

.order-items {
    margin-bottom: 20px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-dark);
}

.order-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.order-item-info {
    display: flex;
    gap: 15px;
}

.order-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.order-item-name {
    font-size: 15px;
    margin-bottom: 5px;
}

.order-item-price {
    color: var(--medium-text);
    font-size: 14px;
}

.order-item-quantity {
    color: var(--medium-text);
    font-size: 14px;
}

.order-totals {
    margin-top: 20px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.total-row.grand-total {
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-dark);
}

.payment-methods {
    margin-top: 30px;
}

.payment-methods h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.payment-method {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.payment-method input {
    margin-right: 10px;
}

.payment-method label {
    cursor: pointer;
}

.secure-checkout {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--medium-text);
    font-size: 14px;
}

.secure-checkout i {
    color: var(--success);
}

/* Адаптивность */
@media (max-width: 992px) {
    .product-container {
        grid-template-columns: 1fr;
    }
    
    .cart-container {
        grid-template-columns: 1fr;
    }
    
    .checkout-container {
        grid-template-columns: 1fr;
    }
    
    .order-summary {
        order: -1;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .logo {
        order: 1;
    }
    
    .search-container {
        order: 3;
        width: 100%;
        margin: 15px 0 0;
    }
    
    .header-icons {
        order: 2;
    }
    
    .hero h2 {
        font-size: 28px;
        text-align: center;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .cart-item {
        grid-template-columns: 80px 1fr;
    }
    
    .cart-item-price {
        grid-column: 1 / -1;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .product-details {
        padding: 20px;
    }
    
    .product-actions {
        flex-direction: row;
    }
    
    .add-to-cart-btn, .buy-now-btn {
        padding: 12px;
        font-size: 14px;
    }
}

@media (max-width: 400px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Дополнительные стили для сообщений */
.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--medium-text);
}

.empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--medium-text);
}

.error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--error);
}

/* Уведомления */
.notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--success);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1000;
}

.notification.show {
    opacity: 1;
}

/* Бейджи для товаров */
.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.product-badge.discount {
    left: auto;
    right: 15px;
    background-color: var(--success);
}

/* Дополнительные стили для сообщений */
.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--medium-text);
    font-size: 18px;
}

.empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--medium-text);
}

.error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--error);
}

/* Уведомления */
.notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--success);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.notification.show {
    opacity: 1;
}

/* Бейджи для товаров */
.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.product-badge.discount {
    left: auto;
    right: 15px;
    background-color: var(--success);
}

/* Корзина - элементы */
.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr 150px;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-dark);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-price {
    color: var(--primary);
    font-weight: bold;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-dark);
    border-radius: 5px;
    overflow: hidden;
}

.quantity-btn {
    background-color: #2a2a2a;
    color: var(--light-text);
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.quantity-btn:hover {
    background-color: #333;
}

.quantity-input {
    width: 40px;
    height: 30px;
    text-align: center;
    border: none;
    background-color: var(--dark-card);
    color: var(--light-text);
    -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.remove-item {
    color: var(--error);
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s;
}

.remove-item:hover {
    color: #d32f2f;
}

/* Дополнительные стили для сообщений */
.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--medium-text);
    font-size: 18px;
}

.empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--medium-text);
}

.error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--error);
}

/* Уведомления */
.notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--success);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.notification.show {
    opacity: 1;
}

/* Бейджи для товаров */
.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.product-badge.discount {
    left: auto;
    right: 15px;
    background-color: var(--success);
}

/* Корзина - элементы */
.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr 150px;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-dark);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-price {
    color: var(--primary);
    font-weight: bold;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-dark);
    border-radius: 5px;
    overflow: hidden;
}

.quantity-btn {
    background-color: #2a2a2a;
    color: var(--light-text);
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.quantity-btn:hover {
    background-color: #333;
}

.quantity-input {
    width: 40px;
    height: 30px;
    text-align: center;
    border: none;
    background-color: var(--dark-card);
    color: var(--light-text);
    -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.remove-item {
    color: var(--error);
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s;
}

.remove-item:hover {
    color: #d32f2f;
}

/* Контактная информация */
.contact-details {
    background: #131313;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.contact-details h3 {
    color: #d3cfcf;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    text-align: center;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: #444343;
    border-radius: 8px;
    transition: transform 0.3s;
}

.contact-item:hover {
    transform: translateY(-5px);
    background: #2b2a2a;
}

.contact-item i {
    font-size: 24px;
    color: #e62822;
    min-width: 30px;
    text-align: center;
}

.social-links {
    margin: 25px 0;
    text-align: center;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    color: white;
    transition: transform 0.3s;
}

.social-icon:hover {
    transform: scale(1.1);
}

.social-icon.vk { background: #4a76a8; }
.social-icon.telegram { background: #0088cc; }
.social-icon.whatsapp { background: #25d366; }
.social-icon.instagram { 
    background: radial-gradient(circle at 30% 107%, #4e4e4e 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.map-container {
    margin-top: 20px;
    
}

.store-map {
    width: 50%;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: block;
    margin: 0 auto;
}

/* Убираем "шатание" экрана */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Стили для контейнера карты */
.map-container {
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.gis-widget {
    position: relative;
    width: 100%;
    padding-bottom: 66.66%; /* Соотношение 3:2 */
    height: 0;
    overflow: hidden;
}

.gis-widget iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .map-container {
        margin: 15px -15px;
        border-radius: 0;
    }
    
    .gis-widget {
        padding-bottom: 100%; /* Квадратное соотношение */
    }
}

/* Стили для уведомления о ценах */
.price-notification {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, #ff0000a9 0%, #e00000b0 100%);
    color: white;
    padding: 12px 20px;
    text-align: center;
    font-size: 14px;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  }
  
  .price-notification i {
    margin-right: 10px;
    font-size: 18px;
  }
  
  .price-notification a {
    color: white;
    font-weight: bold;
    text-decoration: underline;
    margin-left: 5px;
  }
  
  .close-notification {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
    margin-left: 15px;
    padding: 5px 8px;
    border-radius: 50%;
    transition: background 0.3s;
  }
  
  .close-notification:hover {
    background: rgba(255, 255, 255, 0.2);
  }
  
  /* Сдвигаем контент вниз при показе уведомления */
  body.has-notification {
    padding-top: 50px;
  }
  
  body.has-notification header {
    top: 50px;
  }

  /* Добавить новые стили */
.price-warning, 
.price-alert,
.final-price-warning {
  background: rgba(255, 153, 0, 0.15);
  border: 1px solid #ff9900;
  border-radius: 8px;
  padding: 12px 15px;
  margin: 15px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.price-warning {
  background: rgba(255, 77, 0, 0.2);
  border-color: #ff4d00;
  margin-top: 25px;
}

.price-alert {
  background: rgba(255, 184, 0, 0.15);
}

.final-price-warning {
  margin-top: 15px;
  background: rgba(255, 77, 0, 0.15);
}

.price-warning i, 
.price-alert i,
.final-price-warning i {
  font-size: 18px;
  min-width: 25px;
}

.price-warning i {
  color: #ff4d00;
}

.price-alert i {
  color: #ffb800;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(20deg); }
  100% { transform: rotate(0deg); }
}

/* Стиль для уведомления в карточке товара */
.dynamic-price-notice {
    color: #ff6a00;
    font-size: 12px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
  }
  
  .dynamic-price-notice i {
    font-size: 14px;
  }

  /* Добавляем стиль для новой кнопки */
.buy-now-btn {
    background-color: #ff6a00;
    color: white;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    flex-grow: 1;
}

.buy-now-btn:hover {
    background-color: #e55c00;
}

/* Обновляем стиль уведомления */
.final-price-warning {
    background: rgba(255, 77, 0, 0.15);
    border: 1px solid #ff4d00;
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
    margin-top: 15px;
}

/* main.css */
/* Добавьте в конец файла */

.category-content {
    /* ... остальные стили ... */
    max-height: 0;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: 0 auto;
    padding: 0;
  }
  
  .category-content.active {
    /* ... остальные стили ... */
    max-height: 2000px; /* Большое значение для плавной анимации */
    padding: 40px 0;
    margin: 30px auto;
  }
  
  .category-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
    background: linear-gradient(45deg, #ff7700, #ff0000);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

/* Добавляем анимацию плавного изменения */
.search-box::placeholder {
    transition: opacity 0.5s ease;
    opacity: 0.7;
}

/* Анимация для плавного появления текста */
@keyframes placeholderFade {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

.search-box:not(:focus)::placeholder {
    animation: placeholderFade 3s infinite;
}

  
  .category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #ff0000, #ff7700);
    border-radius: 2px;
  }
  
  .subcategories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 0 20px;
  }
  
  .subcategory-card {
    background: var(--dark-card);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    transform: translateY(20px);
    opacity: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }
  
  .subcategory-card.animate-in {
    transform: translateY(0);
    opacity: 1;
  }
  
  .subcategory-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(255, 0, 0, 0.25);
  }
  
  .subcategory-header {
    background: linear-gradient(90deg, #e03f00 0%, #e00000 100%);
    padding: 15px 20px;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .subcategory-header i {
    font-size: 24px;
  }
  
  .subcategory-body {
    padding: 20px;
    min-height: 120px;
  }
  
  .subcategory-body p {
    margin-bottom: 15px;
    color: var(--medium-text);
    line-height: 1.6;
  }
  
  .subcategory-range {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ff7700;
    font-weight: 500;
    margin-bottom: 15px;
  }
  
  .view-subcategory-btn {
    display: block;
    width: 100%;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    transition: all 0.3s;
    cursor: pointer;
  }
  
  .view-subcategory-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(224, 63, 0, 0.4);
  }

  @media (max-width: 768px) {
    .cart-item {
        display: flex;
        flex-wrap: wrap;
        padding: 15px 0;
        gap: 10px;
    }
    
    .cart-item-image {
        width: 80px;
        height: 80px;
    }
    
    .cart-item-info {
        flex: 1;
        min-width: calc(100% - 90px); /* 80px + 10px gap */
    }
    
    .cart-item-total {
        flex: 0 0 100%;
        text-align: right;
        padding-top: 10px;
        margin-top: 10px;
        border-top: 1px dashed var(--border-dark);
        font-size: 18px;
        font-weight: bold;
    }
    
    .cart-item-actions {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .quantity-control {
        order: 1;
        margin-right: 10px;
    }
    
    .remove-item {
        order: 2;
        flex: 1;
        text-align: right;
    }
}


@media (max-width: 480px) {
    .cart-item-info {
        min-width: 100%;
    }
    
    .cart-item-image {
        width: 60px;
        height: 60px;
    }
}


        /* ОСНОВНЫЕ СТИЛИ ГЕРОЯ */
        .hero {
            position: relative;
            background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
            padding: 80px 20px;
            margin: 20px auto;
            max-width: 1200px;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
            border: 1px solid rgba(224, 63, 0, 0.2);
        }

        /* Эффектный фон */
        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: 
                radial-gradient(circle at 20% 30%, rgba(224, 63, 0, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(224, 63, 0, 0.1) 0%, transparent 40%),
                radial-gradient(circle at 40% 80%, rgba(224, 0, 0, 0.1) 0%, transparent 50%);
            animation: gradientPulse 15s infinite alternate;
            z-index: 1;
        }

        /* Контент */
        .hero-content {
            position: relative;
            z-index: 2;
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

        /* Текст с защитой от обрезания */
        .hero-text {
            margin-bottom: 40px;
            padding: 0 15px;
            max-width: 900px;
        }

        .hero-text h2 {
            font-size: clamp(2.3rem, 6vw, 3.5rem);
            margin-bottom: 20px;
            background: linear-gradient(45deg, #ff7700, #ff0000, #ff7700);
            background-size: 300% 300%;
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            animation: gradientAnimation 8s ease infinite;
            line-height: 1.25;
            letter-spacing: -0.5px;
            padding-bottom: 8px; /* Защита для букв с нижними элементами */
        }

        .hero-text p {
            font-size: clamp(1rem, 2.2vw, 1.4rem);
            max-width: 700px;
            margin: 0 auto 30px;
            color: #e0e0e0;
            line-height: 1.5;
        }

        /* Кнопки с тенью */
        .hero-buttons {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .hero-btn, .con-btn {
            position: relative;
            padding: 14px 36px;
            font-size: clamp(0.9rem, 2vw, 1.05rem);
            font-weight: 700;
            border-radius: 50px;
            border: none;
            cursor: pointer;
            overflow: hidden;
            transition: all 0.3s ease;
            z-index: 1;
        }

        .hero-btn {
            background: linear-gradient(45deg, #e03f00, #e00000, #e03f00);
            background-size: 300% 300%;
            color: white;
            animation: gradientAnimation 5s ease infinite;
        }

        .con-btn {
            background: linear-gradient(45deg, #333, #444, #333);
            background-size: 300% 300%;
            color: white;
        }

        .con-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(80, 80, 80, 0.6);
        }

        .hero-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(255, 61, 12, 0.6);
        }

        /* Анимации */
        @keyframes gradientAnimation {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        @keyframes gradientPulse {
            0% { opacity: 0.8; transform: scale(1); }
            100% { opacity: 1; transform: scale(1.05); }
        }

        /* Декоративные элементы */
        .particle {
            position: absolute;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(224, 63, 0, 0.3) 0%, transparent 70%);
            z-index: 1;
            animation: float 15s infinite linear;
        }

        .particle-1 { top: 20%; left: 10%; width: 120px; height: 120px; animation-duration: 20s; }
        .particle-2 { top: 60%; right: 15%; width: 80px; height: 80px; animation-duration: 25s; }
        .particle-3 { bottom: 20%; left: 20%; width: 60px; height: 60px; animation-duration: 30s; }

        @keyframes float {
            0% { transform: translate(0, 0); }
            25% { transform: translate(20px, 20px); }
            50% { transform: translate(0, 40px); }
            75% { transform: translate(-20px, 20px); }
            100% { transform: translate(0, 0); }
        }

        /* Мобильная адаптация */
        @media (max-width: 768px) {
            .hero {
                padding: 60px 15px;
                border-radius: 15px;
            }
            
            .hero::before {
                background: 
                    radial-gradient(circle at 50% 30%, rgba(224, 63, 0, 0.15) 0%, transparent 50%),
                    radial-gradient(circle at 70% 70%, rgba(224, 63, 0, 0.1) 0%, transparent 50%);
            }
            
            .hero-text {
                margin-bottom: 30px;
            }
            
            .hero-text h2 {
                font-size: 2.3rem;
                line-height: 1.3;
                padding-bottom: 10px;
            }
            
            .hero-text p {
                font-size: 1.15rem;
                line-height: 1.4;
            }
            
            .hero-buttons {
                flex-direction: column;
                gap: 15px;
                width: 100%;
                max-width: 300px;
            }
            
            .hero-btn, .con-btn {
                width: 100%;
                padding: 13px;
                font-size: 1.05rem;
            }
            
            .particle {
                display: none;
            }
        }

        @media (max-width: 480px) {
            .hero {
                padding: 50px 10px;
                margin: 15px auto;
            }
            
            .hero-text h2 {
                font-size: 2.0rem;
                padding-bottom: 12px;
            }
            
            .hero-text p {
                font-size: 1.05rem;
                margin-bottom: 25px;
            }
            
            .hero-buttons {
                max-width: 280px;
            }
            
            /* Гарантия для букв с нижними элементами */
            .hero-text h2 {
                position: relative;
                display: inline-block;
                padding-bottom: 12px;
                margin-bottom: 5px;
            }
            
            .hero-text h2::after {
                content: '';
                position: absolute;
                bottom: 0;
                left: 0;
                right: 0;
                height: 8px;
                z-index: -1;
            }
        }
    
/* === Новые стили для улучшенного UI === */

/* Кнопки действий */
.action-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-align: center;
    padding: 10px;
    line-height: 1.3;
}

.action-btn.phone {
    background: linear-gradient(135deg, #25D366, #128C7E);
    animation: pulse 2s infinite;
}

.action-btn.whatsapp {
    background: linear-gradient(135deg, #e03f00, #e00000);
}

.action-btn.order {
    background: linear-gradient(135deg, #ff7700, #ff0000);
}

.action-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(224, 63, 0, 0.5);
}

/* Блок отзывов */
.reviews-section {
    background-color: var(--dark-card);
    padding: 40px 20px;
    border-radius: 15px;
    margin: 60px auto;
    max-width: 1200px;
}

.reviews-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    background: linear-gradient(45deg, #ff7700, #ff0000);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.review {
    background: #1e1e1e;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.review:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(224, 63, 0, 0.2);
    border-color: #e03f00;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.review-author {
    font-weight: bold;
    font-size: 18px;
}

.review-rating {
    color: #ffee00;
}

.review-text {
    font-style: italic;
    margin-bottom: 15px;
    line-height: 1.6;
    position: relative;
    padding-left: 20px;
}

.review-date {
    color: var(--medium-text);
    font-size: 14px;
    text-align: right;
}

/* Как заказать */
.how-to-order {
    background-color: var(--dark-card);
    padding: 40px;
    border-radius: 15px;
    margin: 50px 0;
}

.how-to-order h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    background: linear-gradient(45deg, #ff7700, #ff0000);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.order-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.order-step {
    text-align: center;
    padding: 30px 20px;
    background: #1e1e1e;
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.order-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(224, 63, 0, 0.2);
}

.step-number {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #e03f00, #e00000);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(224, 63, 0, 0.3);
}

.order-step i {
    font-size: 50px;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #ff7700, #ff0000);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.order-step h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

/* Быстрые кнопки заказа */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 13px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    border: 0px solid transparent;
}

.quick-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.quick-action-btn i {
    font-size: 20px;
}

.quick-action-btn.whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
}

.quick-action-btn.telegram {
    background: linear-gradient(135deg, #25a2d3, #12398c);
    color: white;
}

.quick-action-btn.def {
    background: linear-gradient(135deg, #363636, #686868);
    color: white;
}

.alt-order-methods {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.alt-order-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
}

.alt-order-btn.whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
}

.alt-order-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Форма заказа */
.order-form {
    background: #1e1e1e;
    padding: 30px;
    border-radius: 15px;
    margin-top: 40px;
    border: 1px solid #333;
}

.order-form h3 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 25px;
    background: linear-gradient(45deg, #ff7700, #ff0000);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--medium-text);
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 14px;
    background-color: #2a2a2a;
    border: 1px solid #333;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    transition: all 0.3s;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: #e03f00;
    box-shadow: 0 0 0 2px rgba(224, 63, 0, 0.3);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #e03f00, #e00000);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #ff5500, #ff0000);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(224, 63, 0, 0.4);
}

/* Анимации */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .action-buttons {
        flex-direction: row;
        bottom: 10px;
        right: 10px;
    }
    
    .action-btn {
        width: 50px;
        height: 50px;
        font-size: 12px;
        padding: 5px;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .order-steps {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
}

/* === Конец новых стилей === */

/* Мобильная адаптация: 2 товара в ряд */
@media (max-width: 768px) {
    .products-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 15px;
      
    }
    
    .product-card {
      min-width: 0; /* Фикс обрезания */
      overflow: visible; /* Фикс обрезания */
      border-radius: 14px;
      
    }
    
    .product-image {
      height: 170px;
      border-radius: 12px;
    }
    
    /* Исправление для текста и отзывов */
    .product-name {
      font-size: 14px;
      height: 50px;
      overflow: hidden;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
    }
    
    .product-rating {
      flex-wrap: wrap; /* Перенос элементов на маленьких экранах */
      margin-bottom: 8px;
    }
    
    .product-reviews {
      font-size: 11px; /* Уменьшаем размер шрифта */
      margin-left: 5px;
      white-space: nowrap; /* Предотвращаем перенос */
      overflow: hidden;
      text-overflow: ellipsis; /* Добавляем многоточие при переполнении */
      max-width: 70px; /* Ограничиваем ширину */
    }
    
    .product-price {
      font-size: 19px;
    }
    
    .product-category {
      font-size: 11px; /* Уменьшаем размер категории */
    }
    
    .product-actions {
      flex-direction: column;
      gap: 8px;
    }
    
    .add-to-cart, .details-btn {
      padding: 8px 5px;
      font-size: 13px;
      text-align: center;
      white-space: nowrap; /* Предотвращаем перенос текста в кнопках */
    }
  }
  
  /* Для очень маленьких экранов */
  @media (max-width: 350px) {
    .products-grid {
      gap: 10px;
    }
    
    .product-image {
      height: 130px;
    }
    
    .product-name {
      font-size: 10px;
      height: 32px;
    }
    
    .product-reviews {
      font-size: 10px;
      max-width: 60px;
    }
    
    .product-price {
      font-size: 13px;
    }
    
    .add-to-cart, .details-btn {
      font-size: 12px;
    }
  }

  .product-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  }
  
  /* Убедимся, что кнопки внутри карточек сохраняют свой курсор */
  .product-card .add-to-cart,
  .product-card .details-btn {
    cursor: pointer;
    position: relative; /* Для правильной работы z-index */
    z-index: 2; /* Поднимаем кнопки над основным контентом */
  }
  
  /* Запрещаем всплытие событий от иконок внутри кнопок */
  .product-card .add-to-cart i,
  .product-card .details-btn i {
    pointer-events: none;
  }




