@import url(Fonts/fonts.css);


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family:'LXGWWenKaiMonoTC', '-apple-system', 'BlinkMacSystemFont', 'Segoe UI', 'Ubuntu', 'sans-serif';
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Шапка */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.menu-btn {
    background-color: #a73afd;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-btn i {
    font-size: 1.1rem;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    color: #a73afd;
    letter-spacing: -1px;
}

.search {
    display: flex;
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
}

.search input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px 0 0 8px;
    font-size: 1rem;
    outline: none;
}

.search input:focus {
    border-color: #a73afd;
}

.search button {
    background-color: #a73afd;
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-actions a {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.user-actions a:hover {
    color: #a73afd;
}

.cart {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ff4081;
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Навигация */
.nav {
    display: flex;
    gap: 25px;
    padding: 15px 0;
    border-top: 1px solid #f0f0f0;
    overflow-x: auto;
}

.nav a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

.nav a:hover {
    color: #a73afd;
}

/* Основной контент */
.content {
    padding: 30px 0;
}

.banners {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.banner {
    padding: 25px;
    border-radius: 12px;
    text-align: center;
}

.banner h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.banner p {
    color: #666;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 1.8rem;
    color: #333;
}

.see-all {
    color: #a73afd;
    text-decoration: none;
    font-weight: 500;
}

.see-all:hover {
    text-decoration: underline;
}

/* Сетка товаров */
.products-grid {
    display: flex;
    justify-content: space-around
}

.product-card {
    width: 18%;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
}

.badge {
    background: linear-gradient(45deg, #ff4040, #ffc107);
    border-radius: 12px;
    padding: 4px 10px;
    color: #fafafa;
    font-size: 17px;
    font-weight: 600;
    box-shadow: 0 2px 8px #555;
    text-align: center;
}

.badge.new {
      background: linear-gradient(45deg, #40ffe6, #ff07ea);
}

.badge.top {
      background: linear-gradient(45deg, #7cff40, #0b07ff);
}

.discount {
    background-color: #ff4081;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    align-self: flex-start;
}

.good-price img {
    height: 30px;
    width: auto;
}

.product-img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    padding: 15px;
    background-color: #fafafa;
}

.product-info {
    padding: 15px;
}

.price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.current {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ff4081;
}

.old {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
}

.title {
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 10px;
    height: 2.8rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.stars {
    color: #ffc107;
    font-size: 0.9rem;
}

.count {
    color: #999;
    font-size: 0.85rem;
}

.add-to-cart {
    width: 100%;
    background-color: #a73afd;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.3s;
}

.add-to-cart:hover {
    background-color: #8c2bd6;
}

/* Подвал */
.footer {
    background-color: #fff;
    border-top: 1px solid #f0f0f0;
    padding: 40px 0;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #333;
}

.footer-section a {
    display: block;
    color: #666;
    text-decoration: none;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: #a73afd;
}

.footer-section p {
    color: #999;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 10px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-top {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .search {
        order: 3;
        max-width: 100%;
        margin: 10px 0 0 0;
    }
    
    .banners {
        grid-template-columns: 1fr;
    }
}

.perehod {
    text-decoration: none;
}

.wbb { display: block;
     margin: auto;
      width: 50%;
     }