:root {
  --primary: #2e7d32;
  --primary-light: #66bb6a;
  --primary-dark: #1b5e20;
  --secondary: #ffa726;
  --secondary-dark: #fb8c00;
  --error: #f44336;
  --error-dark: #d32f2f;
  --dark: #1c2526;
  --dark-light: #37474f;
  --light: #fafafa;
  --light-dark: #e0e0e0;
  --white: #ffffff;
  --gray: #9e9e9e;
  --gray-light: #eeeeee;
  --gray-dark: #616161;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background-color: var(--light);
  overflow-x: hidden;
}

/* Скрываем элементы по умолчанию */
.index-only, .catalog-only {
    display: none;
}

/* Показываем index-only на главной странице */
body.index .index-only {
    display: block;
}

/* Показываем catalog-only на странице каталога */
body.catalog .catalog-only {
    display: block;
}

/* Общие стили */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Стили для шапки */
header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  padding: 0 20px;
}

.logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--primary);
}

.logo span {
  color: var(--secondary);
}

:root {
    --primary: #2e7d32;
    --primary-light: #66bb6a;
    --secondary: #ffa726;
    --pet-color: #8e24aa;
    --dark: #1c2526;
    --light: #fafafa;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--dark);
    line-height: 1.7;
    background-color: var(--light);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--dark);
}

/* Стили для уведомлений */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary);
    color: white;
    padding: 15px 25px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1100;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification.error {
    background-color: #f44336;
}

.notification.success {
    background-color: var(--primary);
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: var(--white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    position: relative;
}

.header-right {
    display: flex;
    align-items: center;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    z-index: 998;
    margin-left: 15px;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--primary);
}

.logo-text span {
    color: var(--secondary);
}

/* Основные стили корзины */
.cart-container {
    position: relative;
    margin-right: 15px;
    z-index: 999;
}

.cart-icon {
    font-size: 24px;
    color: var(--dark);
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
    padding: 8px;
}

.cart-icon:hover {
    color: var(--primary);
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--secondary);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

/* Выпадающее меню корзины */
.cart-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 380px;
    max-height: 500px;
    background-color: var(--white);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 20px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-container:hover .cart-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cart-dropdown h4 {
    margin: 0 0 15px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    font-size: 18px;
    color: var(--dark);
    flex-shrink: 0;
}

/* Стили для списка товаров с явным скроллбаром */
.cart-items {
    height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
    padding: 5px 15px 5px 5px; /* Оставляем место для скроллбара */
    
    /* Стили скроллбара для WebKit */
    &::-webkit-scrollbar {
        width: 8px;
    }
    
    &::-webkit-scrollbar-track {
        background: #f5f5f5;
        border-radius: 10px;
        margin: 10px 0;
    }
    
    &::-webkit-scrollbar-thumb {
        background-color: var(--primary);
        border-radius: 10px;
        border: 2px solid #f5f5f5;
    }
    
    &::-webkit-scrollbar-thumb:hover {
        background-color: var(--primary-dark);
    }
    
    /* Градиенты для намека на прокрутку */
    background:
        linear-gradient(var(--white) 30%, rgba(255,255,255,0)),
        linear-gradient(rgba(255,255,255,0), var(--white) 70%) 0 100%,
        radial-gradient(farthest-side at 50% 0, rgba(0,0,0,0.1), rgba(0,0,0,0)),
        radial-gradient(farthest-side at 50% 100%, rgba(0,0,0,0.1), rgba(0,0,0,0))) 0 100%;
    background-repeat: no-repeat;
    background-size: 100% 40px, 100% 40px, 100% 15px, 100% 15px;
    background-attachment: local, local, scroll, scroll;
}

/* Стили для отдельного товара */
.cart-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: relative;
}

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

.cart-item-img {
    width: 70px;
    height: 70px;
    margin-right: 15px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f9f9f9;
}

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

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

.cart-item-details {
    flex-grow: 1;
    min-width: 0;
}

.cart-item-title {
    font-size: 14px;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--dark);
    font-weight: 500;
}

.cart-item-price {
    font-size: 15px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
}

/* Элементы управления количеством */
.cart-item-controls {
    display: flex;
    align-items: center;
    margin-top: 8px;
}

.cart-item-controls button {
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: #555;
}

.cart-item-controls button:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

.cart-item-quantity {
    margin: 0 10px;
    min-width: 20px;
    text-align: center;
    font-weight: 600;
}

.cart-item-remove {
    color: #ff5252;
    cursor: pointer;
    transition: color 0.3s ease;
    font-size: 18px;
    margin-left: auto;
    padding: 5px;
}

.cart-item-remove:hover {
    color: #ff0000;
}

/* Итого и кнопки */
.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    font-weight: 700;
    font-size: 17px;
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.1);
    color: var(--dark);
    flex-shrink: 0;
}

.cart-total-price {
    color: var(--primary);
    font-size: 18px;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
}

.cart-btn {
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    text-decoration: none;
    display: block;
}

.cart-btn-view {
    background-color: #f8f9fa;
    color: var(--dark);
    border: 1px solid #ddd;
}

.cart-btn-checkout {
    background-color: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary);
}

.cart-btn-view:hover {
    background-color: #e9ecef;
    border-color: #ccc;
}

.cart-btn-checkout:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Пустая корзина */
.empty-cart {
    text-align: center;
    padding: 30px 0;
    color: #777;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

.empty-cart-icon {
    font-size: 50px;
    color: #e0e0e0;
    margin-bottom: 15px;
}

.empty-cart-message {
    font-size: 16px;
    margin-bottom: 20px;
}

/* Анимация при добавлении в корзину */
@keyframes cartBounce {
    0% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(0.9); }
    75% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.cart-animate {
    animation: cartBounce 0.5s ease;
}

/* Бургер-меню */
.burger-menu {
    display: none; /* По умолчанию скрыто на десктопе */
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    z-index: 1002;
    margin-right: 15px;
}

.burger-line {
    width: 100%;
    height: 3px;
    background-color: var(--dark);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.burger-menu.active .burger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

nav {
    transition: all 0.3s ease;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 18px;
    transition: color 0.3s ease, transform 0.2s ease;
}

nav ul li a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1600585152220-90363fe7e115');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--white);
    padding: 0 15px;
}

.hero p {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 30px;
    padding: 0 20px;
}

.cta-btn {
    background-color: var(--secondary);
    color: var(--white);
    border: none;
    padding: 14px 30px;
    font-size: 18px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.cta-btn:hover {
    background-color: var(--white);
    color: var(--secondary);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.feature-card,
.product-card,
.delivery-step,
.category-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate {
    opacity: 1;
    transform: translateY(0);
}

.features {
    padding: 80px 0;
    background-color: var(--light);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 36px;
    padding: 0 20px;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 40px;
    font-size: 20px;
    color: #555;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 25px 20px;
    border-radius: 12px;
    background-color: var(--light);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 22px;
}

.feature-card p {
    font-size: 16px;
}

.products {
    padding: 80px 0;
    background-color: var(--white);
}

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

.product-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.product-image {
    height: 200px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--secondary);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.pet-badge {
    background-color: var(--pet-color);
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 18px;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 44px;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.product-title.expanded {
    -webkit-line-clamp: unset;
    display: block;
}

.product-desc-wrapper {
    position: relative;
    overflow: hidden;
}

.product-desc {
    color: #555;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 0;
    transition: all 0.3s ease;
}

.product-desc.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.5em;
}

.product-desc.expanded {
    display: block;
    max-height: none;
}

.read-more-container {
    margin-top: 8px;
    margin-bottom: 15px;
    text-align: left;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    display: inline-block;
    transition: color 0.3s ease;
}

.read-more-btn:hover {
    color: var(--secondary);
}

.read-more-btn.hidden {
    display: none;
}

.product-brand {
    color: #777;
    font-size: 14px;
    font-style: italic;
    margin-bottom: 10px;
}

.product-price {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 15px;
}

.price {
    font-weight: 700;
    font-size: 20px;
    color: var(--primary);
}

.pet-price {
    color: var(--pet-color);
}

/* Стили для кнопки добавления в корзину */
.add-to-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    width: 100%;
}

.add-to-cart:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.add-to-cart:active {
    transform: translateY(0);
}

.add-to-cart i {
    margin-right: 8px;
    font-size: 16px;
}

/* Для товаров для животных */
.pet-product .add-to-cart {
    background-color: var(--pet-color);
}

.pet-product .add-to-cart:hover {
    background-color: #9c27b0;
}

/* Состояние "в корзине" */
.added-to-cart {
    background-color: var(--secondary);
    pointer-events: none;
}

.added-to-cart:hover {
    background-color: var(--secondary);
    transform: none;
}

.delivery-info {
    padding: 60px 0;
    background-color: var(--white);
    text-align: center;
}

.delivery-steps {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 40px;
}

.delivery-step {
    width: 22%;
    min-width: 200px;
    margin-bottom: 30px;
}

.delivery-step-icon {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 15px;
}

.delivery-step h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.categories {
    padding: 60px 0;
    background-color: var(--light);
}

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

.category-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
    padding: 30px 20px;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.category-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.household-icon {
    color: var(--primary);
}

.pet-icon {
    color: var(--pet-color);
}

.category-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.category-card p {
    color: #666;
    font-size: 15px;
}

footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 40px 0 20px;
    text-align: center;
}

.footer-contacts {
    margin-bottom: 30px;
}

.footer-contacts h3 {
    color: var(--white);
    font-size: 24px;
    margin-bottom: 20px;
}

.footer-contacts ul {
    list-style: none;
}

.footer-contacts ul li {
    margin-bottom: 12px;
    font-size: 16px;
}

.footer-contacts ul li.phone-link a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
    position: relative;
    padding-bottom: 2px;
}

.footer-contacts ul li.phone-link a:hover {
    color: var(--secondary);
    text-decoration: none;
}

.footer-contacts ul li.phone-link a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary);
    transition: width 0.3s ease;
}

.footer-contacts ul li.phone-link a:hover::after {
    width: 100%;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #bbb;
    font-size: 14px;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: -5px 0 20px rgba(0,0,0,0.15);
    z-index: 1001;
    transition: right 0.3s ease;
    padding: 80px 20px 20px;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu ul li {
    margin-bottom: 20px;
}

.mobile-menu ul li a {
    text-decoration: none;
    color: var(--dark);
    font-size: 20px;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.2s ease;
    display: block;
    padding: 10px 0;
}

.mobile-menu ul li a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Стили для заголовка категории */
.category-header {
    padding: 30px 0;
    background-color: var(--white);
    text-align: center;
    border-bottom: 1px solid var(--gray-light);
}

.category-title {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--primary);
}

/* Стили для кнопки "Назад" */
.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 6px;
    background-color: var(--light);
}

.back-link:hover {
    color: var(--light);
    background-color: var(--primary);
    transform: translateX(-5px);
}

.back-link::before {
    content: "←";
    margin-right: 8px;
    transition: all 0.3s ease;
}

.back-link:hover::before {
    transform: translateX(-3px);
}

/* Стили для сообщения об отсутствии товаров */
.no-products-message {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    max-width: 600px;
    margin: 0 auto;
}

.no-products-icon {
    font-size: 60px;
    color: var(--gray-light);
    margin-bottom: 20px;
}

.no-products-message h3 {
    font-size: 24px;
    color: var(--dark);
    margin-bottom: 15px;
}

.no-products-message p {
    font-size: 16px;
    color: var(--gray-dark);
    margin-bottom: 25px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.no-products-message .cta-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.no-products-message .cta-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .category-title {
        font-size: 26px;
    }
    
    .no-products-message {
        padding: 40px 20px;
    }
    
    .no-products-icon {
        font-size: 50px;
    }
    
    .no-products-message h3 {
        font-size: 20px;
    }
    
    .no-products-message p {
        font-size: 15px;
    }
}



@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .delivery-step {
        width: 45%;
    }
}

@media (max-width: 768px) {
    nav {
        display: none;
    }
    
    .burger-menu {
        display: flex;
    }
    
    .header-container {
        padding: 10px 0;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 30px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .delivery-step {
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .cart-dropdown {
        width: 300px;
        right: -15px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .logo {
        margin-left: 10px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .cta-btn {
        padding: 12px 25px;
        font-size: 16px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .feature-card h3 {
        font-size: 20px;
    }
    
    .feature-card p {
        font-size: 14px;
    }
    
    .product-title {
        font-size: 16px;
    }
    
    .product-desc {
        font-size: 13px;
    }
    
    .price {
        font-size: 18px;
    }
    
    .footer-contacts h3 {
        font-size: 20px;
    }
    
    /* Адаптация кнопки добавления в корзину */
    .add-to-cart {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .add-to-cart i {
        font-size: 14px;
    }
    
    .cart-dropdown {
        padding: 15px 12px;
        max-height: 85vh;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-item-img {
        margin-bottom: 10px;
        max-width: 100%;
        text-align: center;
    }

    .cart-actions {
        flex-direction: column;
        width: 100%;
    }

        .cart-btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .cart-btn:last-child {
        margin-bottom: 0;
    }

}

@media (max-width: 768px) {
    .header-icons {
        gap: 8px;
    }
    
    .cart-container {
        margin-right: 5px;
    }
    
    .burger-menu {
        margin-right: 8px;
    }
}