/* Базовые стили */
:root {
    --primary-color: #4CAF50;
    --secondary-color: #2c3e50;
    --text-color: #333;
    --light-color: #f9f9f9;
}

a {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.korzina {
    color: #2f7d32;
    font-size: 52px;
    margin-right:15px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    /* padding: 0 15px; */
}

.container-for-proizvoditel {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    /* padding: 0 15px; */
}


/* Полноэкранное меню */
.fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary-color);
    z-index: 10000;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
}

.fullscreen-menu nav ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.fullscreen-menu nav li {
    margin: 20px 0;
}

.fullscreen-menu nav a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.fullscreen-menu nav a:hover {
    color: var(--primary-color);
}

.close-menu {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* Шапка */
.header {
    background: #fffffff0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 1);
    padding: 5px 0 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}



.logo img {
    height: 50px;
}

.navbar ul {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.navbar a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.navbar a:hover {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.profile-link img {
    position:relative;
    top:5px;
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 10%;
}

.cart-btn {
    background: #2f7d32;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* Слайдер */
.hero {
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 0 0 50% 50%;
    box-shadow: 0 4px 15px rgb(0 0 0 / 50%);
}

.swiper-slide {
    background-size: cover !important;
    background-position: center !important;
    height: 100%;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
}

.swiper-slide .container {
    width: 100%;
    padding: 0 30px;
}

.swiper-pagination-bullet {
    background: white !important;
    opacity: 0.7 !important;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color) !important;
    opacity: 1 !important;
}

/* Секции */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: var(--text-color);
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width:100%;/* width: 80px; */
    height: 3px;
    /* background: var(--primary-color); */
    background: linear-gradient(
    to right,
    rgba(255, 255, 0, 0),    /* прозрачное с левой стороны */
    var(--primary-color) 50%, /* яркий центр */
    rgba(255, 255, 0, 0) 100% /* прозрачное с правой стороны */
    );
    margin: 0px auto;
}

/* Категории */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.category-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

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

.heroSwiper {height:100%;}

.category-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    /* padding: 15px; */
    color: white;
    text-align: center;
}

/* Карточки товаров */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

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

.product-card:hover {
    transform: translateY(-5px);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

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

.price {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin: 10px 0;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.btn:hover {
    background: #45a049;
}

/* Преимущества */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-item {
    text-align: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.benefit-item i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Подвал */
.footer {
    background: var(--secondary-color);
    color: white;
    padding: 40px 0 20px;
}

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

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-icons a {
    color: white;
    font-size: 20px;
}

.copyright {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #444;
}



.mobileMenu {display: none;} /* !important */

@media (max-width: 480px) {

    .category-grid,
    .product-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }


    .container {width:90%;}
    .container-for-proizvoditel {width:90%;}

    .slide-text {font-size:24px!important;width:auto!important;padding:10px;}
    .slide-text2 {font-size:24px!important;width:auto!important;padding:10px;}

    .menu-toggle {font-size:42px;color:#2f7d32;}
    .profile-link img {width:42px;height:42px;}
    .korzina {font-size:30px;margin-left: 0;margin-right: 0;}


    .header {width:100%;position:fixed;bottom:0;top:inherit;}
    .header-actions {gap:40px;}
    .desktopMenu {display: none !important;}
    .mobileMenu {display: flex !important;}

    .menuIcons {width:25%;text-align:center;}
    .textMenu {margin: 0;font-size:12px;}
    .linkMenu {text-decoration: none;color:black;}
    


}



/* Адаптивность */
@media (max-width: 768px) {
    .navbar {
        display: none;
        width: 100%;
        order: 3;
        margin-top: 15px;
    }
    
    .navbar ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero {
        height: 400px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .category-grid,
    .product-grid,
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}





/* Планшетная верстка (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Шапка */
    .header .container {
        padding: 0 20px;
    }

    /* Слайдер */
    .hero {
        height: 400px;
    }

    /* Сетки */
    .category-grid,
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Карточки товаров */
    .product-card {
        margin-bottom: 15px;
    }

    /* Подвал */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 40px;
    }
}

/* Кроссбраузерные стили */
.header {
    -webkit-box-shadow: 0 2px 10px rgba(0, 0, 0, 1);
    -moz-box-shadow: 0 2px 10px rgba(0, 0, 0, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 1);
}

.product-card {
    -webkit-transition: transform 0.3s ease;
    -moz-transition: transform 0.3s ease;
    -o-transition: transform 0.3s ease;
    transition: transform 0.3s ease;
}

/* Исправление для Safari */
.category-grid,
.product-grid,
.benefits-grid {
    display: -webkit-box;
    display: -ms-flexbox;
    display: grid;
}

/* Фикс для старых Android */
.swiper-container {
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
}



/* Секция производителей */
.manufacturers {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.manufacturers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.manufacturer-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  cursor: pointer;
}

.manufacturer-card:hover {
  transform: translateY(-10px);
  -webkit-box-shadow: 0px 5px 10px 2px rgba(34, 60, 80, 0.3);
  -moz-box-shadow: 0px 5px 10px 2px rgba(34, 60, 80, 0.3);
  box-shadow: 0px 5px 10px 2px rgba(34, 60, 80, 0.3);
}

.manufacturer-overlay h3 {font-size:14px;margin:0;}



.manufacturer-card img {
  width: 100%;
  height: 120px;
  object-fit: cover; 
  display: block;
}

.manufacturer-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
  color: white;
  text-align: center;
}

/* Секция промо-карточек */
.promo-cards {
  padding: 60px 0;
  background: #fff;
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.promo-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.promo-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.promo-content {
  padding: 15px;
  background: white;
}

.promo-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.promo-text {
  color: #4CAF50;
  font-weight: bold;
  margin-bottom: 15px;
}

.btn-small {
  padding: 8px 15px;
  font-size: 14px;
}

/* Адаптация для планшетов */
@media (min-width: 768px) and (max-width: 1024px) {
  .manufacturers-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .promo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Адаптация для мобильных */
@media (max-width: 767px) {
  .manufacturers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .promo-grid {
    grid-template-columns: 1fr;
  }
}





:root {
            --primary-green: #2E7D32;
            --light-green: #4CAF50;
            --lighter-green: #81C784;
            --background-green: #E8F5E9;
            --text-dark: #1B5E20;
            --text-light: #F1F8E9;
            --shadow: rgba(46, 125, 50, 0.15);
            --transition: all 0.3s ease;
            --card-bg: white;
            --border-color: #e0f2e1;
        }

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

        body {
            background-color: #f9f9f9;
            color: #333;
            line-height: 1.6;
            font-family: 'Roboto', Arial, sans-serif;
        }

        h1 {
            font-size: 2.8rem;
            margin-bottom: 10px;
            font-weight: 700;
        }

        .subtitle {
            font-size: 1.2rem;
            opacity: 0.9;
            max-width: 600px;
            margin: 0 auto;
        }

        /* Navigation */
        .main-nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            padding: 15px 25px;
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 15px var(--shadow);
        }

        .menu-li {
            text-align: center;
            font-size: 20px;
            text-shadow: 2px 2px 4px rgb(0 0 0 / 20%);
            box-shadow: 0 4px 15px rgb(0 0 0 / 10%);
            border-radius: 5px;
            padding: 5px 20px;
        }
        .navbar a {font-weight: none;}

        .nav-links {
            display: flex;
            gap: 30px;
        }

        .nav-link {
            color: var(--text-dark);
            text-decoration: none;
            font-size: 1.1rem;
            font-weight: 500;
            padding: 8px 16px;
            border-radius: 8px;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .nav-link:hover, .nav-link.active {
            background: var(--background-green);
            color: var(--primary-green);
        }

        .cart-icon {
            position: relative;
            margin-left: auto;
        }

        .cart-btn {
            background: var(--light-green);
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .cart-btn:hover {
            background: var(--primary-green);
            transform: translateY(-2px);
        }

        .cart-count {
            color: var(--primary-green);
            font-size: 0.9rem;
        }

        /* Main layout */
        .catalog-layout {
            display: flex;
            gap: 30px;
            flex-wrap: wrap;
        }

        /* Filters sidebar - Desktop */
        .filters-sidebar {
            width: 280px;
            flex-shrink: 0;
            background: var(--card-bg);
            border-radius: 16px;
            padding: 15px;
            box-shadow: 0 5px 15px var(--shadow);
            height: fit-content;
            border: 1px solid var(--border-color);
            max-height: calc(100vh - 50px);
            overflow-y: auto;
            position: sticky;
            top: 20px;
        }

        @media (max-width: 1024px) {
            .filters-sidebar {
                display: none;
            }
        }

        /* Mobile Filters Modal */
        .filters-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1000;
            justify-content: center;
            align-items: center;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .filters-modal.active {
            display: flex;
            opacity: 1;
        }

        .filters-modal-content {
            background: white;
            width: 95%;
            max-width: 500px;
            max-height: 90vh;
            border-radius: 16px;
            padding: 25px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            transform: translateY(20px);
            transition: transform 0.3s ease;
            display: flex;
            flex-direction: column;
        }

        .filters-modal.active .filters-modal-content {
            transform: translateY(0);
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 2px solid var(--background-green);
        }

        .modal-title {
            font-size: 1.5rem;
            color: var(--text-dark);
            font-weight: 600;
        }

        .close-modal {
            background: none;
            border: none;
            font-size: 1.5rem;
            color: var(--text-dark);
            cursor: pointer;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
        }

        .close-modal:hover {
            background: var(--background-green);
            color: var(--primary-green);
        }

        .modal-body {
            flex: 1;
            overflow-y: auto;
            padding-right: 10px;
        }

        .modal-footer {
            display: flex;
            gap: 15px;
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid var(--border-color);
        }

        .modal-btn {
            flex: 1;
            padding: 12px;
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            border: none;
        }

        .apply-btn {
            background: var(--light-green);
            color: white;
        }

        .apply-btn:hover {
            background: var(--primary-green);
        }

        .clear-btn {
            background: var(--background-green);
            color: var(--text-dark);
        }

        .clear-btn:hover {
            background: #dcedc8;
        }

        .filters-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 2px solid var(--background-green);
        }

        .filters-title {
            font-size: 1.5rem;
            color: var(--text-dark);
            font-weight: 600;
        }

        .clear-filters {
            background: none;
            border: none;
            color: var(--light-green);
            font-size: 0.95rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 5px;
            transition: var(--transition);
        }

        .clear-filters:hover {
            color: var(--primary-green);
        }

        /* Filter sections */
        .filter-section {
            margin-bottom: 25px;
            padding-bottom: 20px;
            border-bottom: 1px solid var(--border-color);
        }

        .filter-section:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }

        .filter-title {
            font-size: 1.2rem;
            color: var(--text-dark);
            margin-bottom: 15px;
            font-weight: 600;
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
        }

        .filter-toggle {
            color: var(--light-green);
            transition: var(--transition);
        }

        .filter-toggle.active {
            transform: rotate(180deg);
        }

        .filter-content {
            max-height: 300px;
            overflow-y: auto;
            transition: max-height 0.3s ease;
        }

        .filter-content.collapsed {
            max-height: 0;
            overflow: hidden;
        }

        /* Filter items */
        .filter-option {
            display: flex;
            align-items: center;
            margin-bottom: 12px;
            padding: 8px 0;
        }

        .filter-option:last-child {
            margin-bottom: 0;
        }

        .filter-checkbox {
            width: 20px;
            height: 20px;
            margin-right: 12px;
            accent-color: var(--light-green);
            cursor: pointer;
        }

        .filter-label {
            cursor: pointer;
            font-size: 1rem;
            color: #555;
            flex-grow: 1;
            transition: var(--transition);
        }

        .filter-label:hover {
            color: var(--text-dark);
        }

        .filter-count {
            background-color: var(--background-green);
            color: var(--text-dark);
            padding: 2px 10px;
            border-radius: 12px;
            font-size: 0.85rem;
            font-weight: 500;
        }

        /* Price filter */
        .price-range {
            display: flex;
            justify-content: space-between;
            margin-bottom: 15px;
        }

        .price-input {
            width: 45%;
            padding: 10px;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            font-size: 1rem;
            text-align: center;
            transition: var(--transition);
        }

        .price-input:focus {
            outline: none;
            border-color: var(--light-green);
            box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
        }

        .price-slider {
            width: 100%;
            height: 6px;
            -webkit-appearance: none;
            appearance: none;
            background: var(--background-green);
            border-radius: 3px;
            outline: none;
            margin: 20px 0;
        }

        .price-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background: var(--light-green);
            cursor: pointer;
            border: 3px solid white;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        }

        .price-slider::-moz-range-thumb {
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background: var(--light-green);
            cursor: pointer;
            border: 3px solid white;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        }

        /* Products grid */
        .products-grid {
            flex: 1;
            min-width: 300px;
        }

        .products-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            flex-wrap: wrap;
            gap: 15px;
        }

        .products-count {
            font-size: 1.1rem;
            color: var(--text-dark);
            font-weight: 500;
        }

        .sort-select {
            padding: 10px 15px;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            background: white;
            color: var(--text-dark);
            font-size: 1rem;
            cursor: pointer;
            transition: var(--transition);
            min-width: 200px;
        }

        .sort-select:focus {
            outline: none;
            border-color: var(--light-green);
            box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
        }

        .grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 25px;
        }

        /* Product card */
        .product-card {
            background: var(--card-bg);
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 5px 15px var(--shadow);
            transition: var(--transition);
            border: 1px solid var(--border-color);
            height: 100%;
            display: flex;
            flex-direction: column;
            opacity: 0;
            transform: translateY(10px);
            animation: fadeIn 0.4s ease forwards;
        }

        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 25px var(--shadow);
            border-color: var(--lighter-green);
        }

        .product-badge {
            position: absolute;
            top: 15px;
            left: 15px;
            background: var(--primary-green);
            color: white;
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            z-index: 2;
        }

        .product-image {
            position: relative;
            height: 200px;
            overflow: hidden;
            background: linear-gradient(135deg, #f5f5f5, #e8f5e9);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .product-img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            transition: var(--transition);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .product-img.loaded {
            opacity: 1;
        }

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

        .product-content {
            padding: 20px;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }

        .product-category {
            color: var(--light-green);
            font-size: 0.85rem;
            font-weight: 600;
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .product-title {
            font-size: 1.2rem;
            font-weight: 600;
            color: var(--text-dark);
            margin-bottom: 10px;
            line-height: 1.4;
        }

        .product-description {
            color: #666;
            font-size: 0.95rem;
            margin-bottom: 15px;
            flex-grow: 1;
            line-height: 1.5;
        }

        .product-features {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 15px;
        }

        .feature-tag {
            background: var(--background-green);
            color: var(--text-dark);
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 0.8rem;
            font-weight: 500;
        }

        .product-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: auto;
            padding-top: 15px;
            border-top: 1px solid var(--border-color);
        }

        .product-price {
            font-size: 1.4rem;
            font-weight: 700;
            color: var(--primary-green);
        }

        .product-old-price {
            font-size: 1rem;
            color: #999;
            text-decoration: line-through;
            margin-right: 5px;
        }

        .add-to-cart {
            background: var(--light-green);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .add-to-cart:hover {
            background: var(--primary-green);
            transform: translateY(-2px);
        }

        .add-to-cart.in-cart {
            background: var(--primary-green);
        }

        .add-to-cart:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        /* Active filters */
        .active-filters {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 25px;
        }

        .active-filter-tag {
            background: var(--background-green);
            color: var(--text-dark);
            padding: 8px 15px;
            border-radius: 20px;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 8px;
            border: 1px solid var(--border-color);
        }

        .remove-filter {
            background: none;
            border: none;
            color: var(--light-green);
            cursor: pointer;
            font-size: 1.1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            transition: var(--transition);
        }

        .remove-filter:hover {
            background: var(--light-green);
            color: white;
        }

        /* Cart Modal */
        .cart-modal {
            display: none;
            position: fixed;
            top: 0;
            right: 0;
            width: 100%;
            max-width: 500px;
            height: 100%;
            background: white;
            z-index: 1001;
            box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
            transform: translateX(100%);
            transition: transform 0.3s ease;
        }

        .cart-modal.active {
            display: block;
            transform: translateX(0);
        }

        .cart-modal-header {
            padding: 5px 25px;
            border-bottom: 2px solid var(--background-green);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .cart-modal-title {
            font-size: 1.8rem;
            color: var(--text-dark);
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .cart-modal-body {
            height: calc(100% - 200px);
            overflow-y: auto;
            padding: 20px;
        }

        .cart-modal-footer {
            padding: 5px 25px;
            border-top: 2px solid var(--background-green);
            background: var(--background-green);
            position: absolute;
            bottom: 0;
            width: 100%;
        }

        .cart-summary {
            margin-bottom: 10px;
        }

        .summary-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0px;
            font-size: 1.1rem;
        }

        .summary-total {
            font-size: 1.4rem;
            font-weight: 700;
            color: var(--primary-green);
            border-top: 2px solid var(--border-color);

        }

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

        .cart-action-btn {
            flex: 1;
            padding: 5px;
            border-radius: 8px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .continue-btn {
            background: white;
            color: var(--text-dark);
            border: 2px solid var(--border-color);
        }

        .continue-btn:hover {
            background: var(--background-green);
            border-color: var(--light-green);
        }

        .checkout-btn {
            background: var(--light-green);
            color: white;
        }

        .checkout-btn:hover {
            background: var(--primary-green);
            transform: translateY(-2px);
        }

        .checkout-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        /* Cart Items */
        .cart-item {
            display: flex; 
            gap: 15px;
            padding: 15px 0;
            border-bottom: 1px solid var(--border-color);
            
        }

        .cart-item-image {
            width: 120px;
            height: 120px;
            background: var(--background-green);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;

            float: left;
        }

        .cart-item-image img {
            max-width: 70%;
            max-height: 70%;
            object-fit: contain;
        }

        /*
        .cart-item-info {
            margin-left:130px;
        }
        */

        .cart-item-name {
            font-size: 1rem;
            color: #666;
            margin-bottom: 5px;
            text-align:justify;
        }

        .cart-item-category {
            color: var(--light-green);
            font-size: 0.85rem;
            margin-bottom: 8px;
        }

        .cart-item-price {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--primary-green);
        }

        .cart-item-controls {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .quantity-controls {
            display: flex;
            align-items: center;
            /* gap: 10px; */
            background: var(--background-green);
            border-radius: 20px;
            padding: 5px 15px;
        }

        .quantity-btn {
            background: none;
            border: none;
            color: var(--primary-green);
            font-size: 1.2rem;
            cursor: pointer;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
        }

        .quantity-btn:hover {
            background: var(--light-green);
            color: white;
        }

        .quantity {
            font-size: 1.1rem;
            font-weight: 600;
            min-width: 30px;
            text-align: center;
        }

        .remove-item {
            background: none;
            border: none;
            color: #ff6b6b;
            cursor: pointer;
            font-size: 1.2rem;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
        }

        .remove-item:hover {
            background: #ff6b6b;
            color: white;
        }

        .empty-cart {
            text-align: center;
            padding: 60px 20px;
            color: #666;
        }

        .empty-cart i {
            font-size: 4rem;
            color: var(--light-green);
            margin-bottom: 20px;
            opacity: 0.5;
        }

        .empty-cart h3 {
            font-size: 1.5rem;
            margin-bottom: 10px;
            color: var(--text-dark);
        }

        /* Order Page */
        .order-page {
            display: none;
        }

        .order-container {
            max-width: 800px;
            margin: 0 auto;
        }

        .order-steps {
            display: flex;
            justify-content: space-between;
            margin-bottom: 40px;
            position: relative;
        }

        .order-steps::before {
            content: '';
            position: absolute;
            top: 20px;
            left: 50px;
            right: 50px;
            height: 2px;
            background: var(--border-color);
            z-index: 1;
        }

        .step {
            text-align: center;
            position: relative;
            z-index: 2;
            flex: 1;
        }

        .step-icon {
            width: 40px;
            height: 40px;
            background: var(--background-green);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 10px;
            font-weight: 600;
            color: var(--text-dark);
            transition: var(--transition);
        }

        .step.active .step-icon {
            background: var(--light-green);
            color: white;
        }

        .step.completed .step-icon {
            background: var(--primary-green);
            color: white;
        }

        .step-text {
            font-size: 0.9rem;
            color: #666;
        }

        .step.active .step-text {
            color: var(--primary-green);
            font-weight: 600;
        }

        .order-form {
            background: white;
            border-radius: 16px;
            padding: 30px;
            box-shadow: 0 5px 15px var(--shadow);
            margin-bottom: 30px;
        }

        .form-title {
            font-size: 1.5rem;
            color: var(--text-dark);
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 2px solid var(--background-green);
        }

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

        .form-row {
            display: flex;
            gap: 20px;
            margin-bottom: 20px;
        }

        .form-row .form-group {
            flex: 1;
            margin-bottom: 0;
        }

        .form-label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: var(--text-dark);
        }

        .form-input {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            font-size: 1rem;
            transition: var(--transition);
        }

        .form-input:focus {
            outline: none;
            border-color: var(--light-green);
            box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
        }

        .form-select {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            font-size: 1rem;
            background: white;
            cursor: pointer;
            transition: var(--transition);
        }

        .form-select:focus {
            outline: none;
            border-color: var(--light-green);
            box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
        }

        .order-summary {
            background: white;
            border-radius: 16px;
            padding: 30px;
            box-shadow: 0 5px 15px var(--shadow);
            margin-bottom: 30px;
        }

        .order-items {
            margin-bottom: 25px;
        }

        .order-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 0;
            border-bottom: 1px solid var(--border-color);
        }

        .order-item:last-child {
            border-bottom: none;
        }

        .order-item-info {
            flex: 1;
        }

        .order-item-name {
            font-weight: 500;
            margin-bottom: 5px;
        }

        .order-item-price {
            color: var(--primary-green);
            font-weight: 600;
        }

        .order-total {
            border-top: 2px solid var(--border-color);
            padding-top: 20px;
            margin-top: 20px;
        }

        .order-actions {
            display: flex;
            gap: 20px;
            justify-content: flex-end;
        }

        .order-btn {
            padding: 15px 10px;
            border-radius: 8px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            border: none;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .back-btn {
            background: var(--background-green);
            color: var(--text-dark);
        }

        .back-btn:hover {
            background: #dcedc8;
        }

        .confirm-btn {
            background: var(--light-green);
            color: white;
        }

        .confirm-btn:hover {
            background: var(--primary-green);
            transform: translateY(-2px);
        }

        .confirm-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        /* Success Message */
        .success-message {
            text-align: center;
            padding: 60px 20px;
            background: white;
            border-radius: 16px;
            box-shadow: 0 5px 15px var(--shadow);
        }

        .success-icon {
            font-size: 5rem;
            color: var(--light-green);
            margin-bottom: 20px;
        }

        .success-title {
            font-size: 2rem;
            color: var(--text-dark);
            margin-bottom: 15px;
        }

        .success-text {
            font-size: 1.1rem;
            color: #666;
            margin-bottom: 30px;
            max-width: 500px;
            margin-left: auto;
            margin-right: auto;
        }

        .order-details {
            background: var(--background-green);
            padding: 25px;
            border-radius: 12px;
            margin-bottom: 30px;
            text-align: left;
        }

        .order-details h4 {
            margin-bottom: 15px;
            color: var(--text-dark);
        }

        /* Category quick filters */
        .category-filters {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 25px;
        }

        .category-filter-btn {
            background: var(--background-green);
            color: var(--text-dark);
            border: 2px solid transparent;
            padding: 10px 20px;
            border-radius: 25px;
            font-size: 0.95rem;
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .category-filter-btn:hover {
            background: #dcedc8;
            transform: translateY(-2px);
        }

        .category-filter-btn.active {
            background: var(--light-green);
            color: white;
            border-color: var(--primary-green);
        }

        .category-count {
            background: rgba(255, 255, 255, 0.3);
            color: inherit;
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 0.8rem;
            font-weight: 600;
        }

        .category-filter-btn.active .category-count {
            background: rgba(255, 255, 255, 0.5);
        }

        /* Mobile filters toggle */
        .mobile-filters-toggle {
            display: none;
            background: var(--light-green);
            color: white;
            border: none;
            padding: 12px 20px;
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            margin-bottom: 20px;
            width: 100%;
            justify-content: center;
            align-items: center;
            gap: 10px;
        }

        /* Pagination Styles */
        .pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            margin-top: 40px;
            gap: 10px;
            flex-wrap: wrap;
        }

        .pagination-btn {
            background: var(--background-green);
            color: var(--text-dark);
            border: 1px solid var(--border-color);
            width: 40px;
            height: 40px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: var(--transition);
            font-weight: 500;
            font-size: 1rem;
        }

        .pagination-btn:hover {
            background: #dcedc8;
            transform: translateY(-2px);
        }

        .pagination-btn.active {
            background: var(--light-green);
            color: white;
            border-color: var(--primary-green);
        }

        .pagination-btn.disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none !important;
        }

        .pagination-btn.disabled:hover {
            background: var(--background-green);
            transform: none !important;
        }

        .pagination-ellipsis {
            color: var(--text-dark);
            padding: 0 5px;
        }

        .pagination-info {
            color: var(--text-dark);
            font-size: 0.9rem;
            margin-right: 15px;
        }

        .header-text {
            text-align: center;
            margin-bottom: 40px;
            padding: 30px 20px;
            background: linear-gradient(135deg, var(--primary-green), var(--light-green));
            border-radius: 16px;
            color: white;
            box-shadow: 0 8px 20px var(--shadow);
        }

        @media (max-width: 1024px) {
            .mobile-filters-toggle {
                display: flex;
            }
            
            .nav-links {
                display: none;
            }
            
            .cart-modal {
                max-width: 100%;
            }
            
            .form-row {
                flex-direction: column;
                gap: 0;
            }

            .pagination {
                gap: 5px;
            }

            .pagination-btn {
                width: 35px;
                height: 35px;
                font-size: 0.9rem;
            }
        }

        /* Loading animation */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Image loading animation */
        .product-img.loading {
            animation: pulse 1.5s infinite;
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 200% 100%;
        }

        @keyframes pulse {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }

        

/* ===== HEADER STYLES ===== */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header:hover {
    background: #ffffff;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
}

.desktopMenu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    flex-shrink: 0;
}

.logo a {
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.logo a:hover {
    transform: scale(1.02);
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.navbar {
    flex: 1;
    display: flex;
    justify-content: center;
}

.menu {
    display: flex;
    list-style: none;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.menu-li {
    position: relative;
}

.menu-li a {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    color: #2c3e2f;
    text-decoration: none;
    border-radius: 40px;
    transition: all 0.25s ease;
    letter-spacing: 0.3px;
}

.menu-li a:hover {
    background: #e8f0e8;
    color: #2e7d32;
}

.menu-li.active a {
    background: #2e7d32;
    color: white;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.action-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    transition: all 0.25s ease;
    color: #2c3e2f;
    font-size: 22px;
}

.action-btn i {
    font-size: 22px;
}

.action-btn:hover {
    background: #eef3ee;
    color: #2e7d32;
    transform: translateY(-2px);
}

.cart-btn {
    background: #f5f7f5;
}

.cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #e53935;
    color: white;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    font-family: monospace;
}

.profile-btn {
    background: #f5f7f5;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    transition: all 0.25s ease;
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: #2c3e2f;
    border-radius: 2px;
    transition: 0.2s;
}

.menu-toggle:hover {
    background: #eef3ee;
}

.mobileMenu {display:none;}

@media (max-width: 480px) {

    .header {
        width: 100%;
        position: fixed;
        bottom: 0;
        top: inherit;
    }

    .header-actions {
        gap: 40px;
        padding: 10px 0;
        width: 100%;
    }

    .cart-count {top:auto;right:auto;display: inline-block;}

    .desktopMenu {display: none!important;}
}


@media (max-width: 768px) {

    h1 {font-size:1.8rem;}
    .subtitle {font-size:1rem;}
    .main-nav {display:none;}
    .category-filter-btn {padding: 5px;justify-content: space-between;width:100%;}
    .sort-select {width:100%; min-width:auto;}


    .header {
        width: 100%;
        position: fixed;
        bottom: 0;
        top: inherit;
    }

    .header-actions {
        gap: 40px;
        padding: 10px 0;
        width: 100%;
    }

    .cart-count {top:auto;right:auto;display: inline-block;}

    
    .desktopMenu {display: none!important;}
    .mobileMenu {display: flex !important;}

    .menuIcons {width:25%;text-align:center;}
    .textMenu {margin: 0;font-size:12px;}
    .linkMenu {text-decoration: none;color:black;}
    .korzina {font-size:30px;margin-left: 0;margin-right: 0;}
    
}