* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

header {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    background-color: white;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
}

.main-nav {
    display: flex;
    gap: 20px;
}

.nav-link {
    font-size: 14px;
    color: #666;
}

.auth-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-box {
    position: relative;
    width: 200px;
}

.search-box input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
}

.btn-orange {
    background-color: #EBFA1D;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
}

/* Hero Section */
.hero {
    position: relative;
    height: 400px;
    width: 100%;
    background-image: url('/header.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    padding: 0 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-text {
    text-align: center;
    color: white;
    max-width: 800px;
}

.hero-text h1 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.hero-text p {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

/* Features */
.features {
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 300px;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background-color: #fff8f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.feature-icon i {
    color: #EBFA1D;
}

.feature-text {
    font-size: 12px;
    color: #666;
}

/* Product Section */
.product-section {
    padding: 20px 0;
}

.section-title {
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: bold;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: #f9f9f9;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.product-info {
    padding: 10px;
}

.product-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
    height: 40px;
    overflow: hidden;
}

.product-price {
    font-size: 16px;
    font-weight: bold;
    margin: 10px 0;
}

/* Info Section */
.info-section {
    background-color: #f9f9f9;
    padding: 40px 0;
    margin-top: 40px;
}

.info-title {
    font-size: 24px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.info-text {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

/* Newsletter */
.newsletter {
    background-color: #f5f5f5;
    padding: 30px 0;
}

.newsletter-title {
    font-size: 20px;
    margin-bottom: 15px;
    text-align: center;
}

.newsletter-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
}

.newsletter-form button {
    background-color: #EBFA1D;
    color: white;
    padding: 10px 20px;
    border-radius: 0 4px 4px 0;
}

/* Footer */

/* Минималистичный футер */
.footer-minimal {
    background-color: #fafafa;
    padding: 40px 0 20px;
    font-size: 14px;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-tagline {
    margin-top: 15px;
    color: #666;
    line-height: 1.6;
}

.footer-links-row {
    display: flex;
    gap: 50px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-section h5 {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.footer-section a,
.footer-section span {
    color: #666;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: #EBFA1D;
}

.footer-bottom {
    border-top: 1px solid #ddd;
    padding-top: 20px;
    text-align: center;
    color: #888;
}

.back-to-top-minimal {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #333;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.8;
    z-index: 99;
}

.back-to-top-minimal:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .footer-main {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-links-row {
        flex-direction: column;
        gap: 30px;
    }
}

/* Стили для иконки корзины в хедере */
.cart-icon {
    position: relative;
    display: inline-block;
    margin-left: 15px;
    font-size: 20px;
    color: #333;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #EBFA1D;
    color: white;
    font-size: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Модальное окно корзины */
.cart-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.cart-content {
    position: relative;
    background-color: #fff;
    margin: 10% auto;
    padding: 0;
    width: 80%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: cartFadeIn 0.3s ease;
}

@keyframes cartFadeIn {
    from {opacity: 0; transform: translateY(-30px);}
    to {opacity: 1; transform: translateY(0);}
}

.cart-header {
    padding: 15px 20px;
    background-color: #f8f8f8;
    border-bottom: 1px solid #eee;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    margin: 0;
    color: #333;
    font-weight: 600;
}

.close-cart {
    color: #888;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-cart:hover {
    color: #EBFA1D;
}

.cart-body {
    padding: 20px;
}

.cart-items {
    margin-bottom: 20px;
}

.cart-items table {
    width: 100%;
    border-collapse: collapse;
}

.cart-items table tr {
    border-bottom: 1px solid #eee;
}

.cart-items table td,
.cart-items table th {
    padding: 12px 8px;
    vertical-align: middle;
    text-align: left;
}

.cart-items table th {
    background-color: #f9f9f9;
    font-weight: 500;
    font-size: 14px;
    color: #666;
}

.cart-items table img {
    max-width: 70px;
    max-height: 70px;
    border-radius: 4px;
}

.cart-total {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
    padding: 10px 0;
    border-top: 2px solid #eee;
}

.cart-form {
    margin-bottom: 20px;
}

.cart-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.cart-form input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.cart-footer {
    padding: 15px 20px;
    background-color: #f8f8f8;
    border-top: 1px solid #eee;
    border-radius: 0 0 8px 8px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.cart-footer button {
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.clear-cart {
    background-color: #fff;
    color: #021B86;
    border: 1px solid #021B86;
}

.clear-cart:hover {
    background-color: #021B86;
    color: #fff;
}

.order-btn {
    background-color: #EBFA1D;
    color: white;
    border: 1px solid #EBFA1D;
}

.order-btn:hover {
    background-color: #e85d30;
}

.close-btn {
    background-color: #fff;
    color: #666;
    border: 1px solid #ddd;
}

.close-btn:hover {
    background-color: #f2f2f2;
}

/* Стили для элементов управления количеством */
.quantity-control {
    display: flex;
    align-items: center;
    max-width: 120px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    cursor: pointer;
    user-select: none;
}

.minus-item {
    border-radius: 4px 0 0 4px;
}

.plus-item {
    border-radius: 0 4px 4px 0;
}

.item-count {
    width: 40px;
    height: 30px;
    border: 1px solid #ddd;
    border-left: none;
    border-right: none;
    text-align: center;
    font-size: 14px;
}

.item-count::-webkit-inner-spin-button,
.item-count::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.delete-item {
    width: 30px;
    height: 30px;
    background-color: #021B86;
    color: white;
    border: none;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.delete-item:hover {
    background-color: #c0392b;
}

/* Стили для страницы товара */
.product-detail {
    padding: 20px 0;
}

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.product-image-container {
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
}

.product-image-main {
    width: 100%;
    height: auto;
}

.product-info-container {
    display: flex;
    flex-direction: column;
}

.product-title-item {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.product-category {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.product-price-item {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.product-rating {
    display: flex;
    margin-bottom: 15px;
}

.star {
    color: #ffc107;
    margin-right: 3px;
}

.product-description {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.product-tabs {
    margin-top: 30px;
}

.tab-nav {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.tab-button {
    padding: 10px 20px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    border-bottom: 2px solid transparent;
}

.tab-button.active {
    border-bottom-color: #EBFA1D;
}

.tab-content {
    font-size: 14px;
    line-height: 1.6;
}

/* Related Products */
.related-products {
    margin-top: 60px;
}

.related-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.products-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.carousel-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-info {
    padding: 15px;
}

.carousel-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
    height: 40px;
    overflow: hidden;
}

.carousel-price {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Уведомления */
.cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    background-color: #EBFA1D;
    color: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.3s ease;
}

.cart-notification.show {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 992px) {
    .hero {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .auth-container {
        width: 100%;
        justify-content: center;
    }
    
    .hero {
        height: 300px;
    }
    
    .hero-text h1 {
        font-size: 28px;
    }
    
    .hero-text p {
        font-size: 16px;
    }
    
    .feature {
        min-width: 250px;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .product-detail-container {
        grid-template-columns: 1fr;
    }
    
    .products-carousel {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .cart-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .cart-items table {
        font-size: 14px;
    }
    
    .cart-items table img {
        max-width: 50px;
        max-height: 50px;
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .feature {
        min-width: 100%;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .newsletter-form button {
        border-radius: 4px;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-text h1 {
        font-size: 24px;
    }
    
    .products-carousel {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .cart-footer {
        flex-direction: column;
    }
    
    .cart-footer button {
        width: 100%;
    }
    
    .cart-items table {
        display: block;
        overflow-x: auto;
    }
}


/* Минималистичная с подчеркиванием - каталог */
.btn-add-minimal {
    display: inline-block;
    padding: 8px 0;
    color: #EBFA1D;
    font-weight: bold;
    background: none;
    border: none;
    border-bottom: 2px solid #EBFA1D;
    transition: all 0.2s;
    width: 100%;
    text-align: center;
}

.btn-add-minimal:hover {
    color: #e85d30;
    border-bottom-color: #e85d30;
    padding-bottom: 10px;
}

/* Минималистичная для страницы товара */
.btn-add-cart-minimal {
    color: #EBFA1D;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 0;
    border-bottom: 2px solid #EBFA1D;
    display: inline-block;
    transition: all 0.2s;
}

.btn-add-cart-minimal:hover {
    color: #e85d30;
    border-bottom-color: #e85d30;
    padding-bottom: 12px;
}

/* Минималистичная для связанных товаров */
.carousel-button-minimal {
    display: inline-block;
    padding: 6px 0;
    color: #EBFA1D;
    font-weight: bold;
    background: none;
    border: none;
    border-bottom: 2px solid #EBFA1D;
    transition: all 0.2s;
    width: 100%;
    text-align: center;
    font-size: 12px;
}

.carousel-button-minimal:hover {
    color: #e85d30;
    border-bottom-color: #e85d30;
    padding-bottom: 8px;
}



/* Стили хедера - центрированный с подсветкой */
.header-centered {
    background-color: white;
}

.header-centered-top {
    padding: 20px 0;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.logo-center {
    margin-bottom: 10px;
}

.logo-center img {
    height: 60px;
}

.header-centered-tagline {
    font-size: 14px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.header-navbar {
    padding: 15px 0;
    background-color: white;
    border-bottom: 1px solid #eee;
    position: relative;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    cursor: pointer;
}

.menu-toggle span {
    height: 2px;
    width: 100%;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.main-nav-centered {
    flex: 1;
    text-align: center;
}

.main-nav-centered ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link-centered {
    display: block;
    padding: 10px 20px;
    color: #333;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    position: relative;
    transition: color 0.3s;
}
.nav-link-centered:hover {
    color: #EBFA1D;
}

.nav-link-centered:hover:before {
    width: 71%;
}


.nav-link-centered:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #EBFA1D;
    transition: width 0.3s;
}

.header-tools-centered {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-toggle, .cart-icon-centered {
    font-size: 18px;
    color: #333;
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #EBFA1D;
    color: white;
    font-size: 11px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    padding: 20px;
    border-top: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: none;
    z-index: 100;
}

.search-dropdown form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
}

.search-dropdown input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.search-dropdown button {
    padding: 0 15px;
    background-color: #EBFA1D;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* Hero Section */
.hero-centered {
    position: relative;
    height: 450px;
    width: 100%;
    background-image: url('/header.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.hero-text {
    text-align: center;
    color: white;
    max-width: 800px;
}

.hero-text h1 {
    font-size: 40px;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}
.hero-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #EBFA1D;
    color: white;
    border-radius: 30px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s;
}

.hero-text p {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 25px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}


.hero-button:hover {
    background-color: #e05d36;
}

@media (max-width: 992px) {
    .nav-link-centered {
        padding: 10px 15px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .main-nav-centered {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s;
        z-index: 100;
    }
    
    .main-nav-centered.active {
        max-height: 400px;
    }
    
    .main-nav-centered ul {
        flex-direction: column;
        padding: 10px 0;
    }
    
    .nav-link-centered {
        padding: 12px 20px;
    }
    
    .nav-link-centered:before {
        display: none;
    }
    
    .hero-centered {
        height: 350px;
    }
    
    .hero-text h1 {
        font-size: 32px;
    }
}


:root {
    --gradient-orange: linear-gradient(to right, #E9F58B, #EBFA1D);
    --gradient-yellow: linear-gradient(to right, #8089C6, #021B86);
    --text-dark: #333333;
    --background-light: #ffffff;
    --background-gray: #f5f5f5;
    --text-color: #333333;
    --text-light: #655555;
    --border-color: #eeeeee;
}

body {
    color: var(--text-color);
    background-color: var(--background-light);
}

.btn-primary {
    background-image: var(--gradient-orange);
    border: none;
    color: white;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-image: var(--gradient-yellow);
}

.back-to-top {
    background-image: var(--gradient-orange);
    color: white;
}

.cart-badge {
    background-image: var(--gradient-yellow);
    color: white;
}

.search-button {
    background-image: var(--gradient-orange);
    color: white;
}

a {
    color: #EBFA1D;
}

a:hover {
    color: #021B86;
}


.hero-text h1, 
.hero-text p {
    color: white;
}

.product-price {
    color: #EBFA1D;
    font-weight: bold;
}
.product-card {
    position: relative;
    background-color: #c6aeae;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}
.section-title:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-image: var(--gradient-yellow);
    margin-top: 10px;
}


.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

footer {
    background-color: var(--background-gray);
}
