html, body{
    margin: 0;
    background: white;
    min-height: 100%;
    max-width: 1920px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    font-family: 'Montserrat', Arial, sans-serif;
}

/* Плавный переход страницы */
body {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

body.loaded {
    opacity: 1;
    transform: translateY(0);
}

body.fade-out {
    opacity: 0;
    transform: translateY(-20px);
}
* {
    box-sizing: border-box;
}
/*header*/
.header {
      display: flex;
      align-items: center;
      background: white;
      width: 100%;
      height: 130px;
      justify-content: space-between;
      gap: 15px;
      position: relative;
      padding: 0 40px;
  }

.Logo {
    width: 400px;
    height: auto;
    max-height: 130px;
    margin-left: 40px;
    object-fit: contain;
    position: relative;
    top: -2px;
}

#navLinks {
    display: flex;
    align-items: center;
    gap: 10px;
}

.Catalog-button,
.Discounts-button,
.Delivery-button,
.About-button {
    font-family: Montserrat, Arial, sans-serif;
    color: #525252;
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    padding: 10px 20px;
    transition: all 0.5s ease;
    line-height: 1;
}

.Catalog-button:hover,
.Discounts-button:hover,
.Delivery-button:hover,
.About-button:hover {
    color: #07ab07;
}


.phone-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 40px;
}


.Phone-head {
    width: 25px;
    height: 25px;
    position: relative;
    top: -5px;
}

.Contacts-head {
    font-family: Montserrat, Arial, sans-serif;
    display: flex;
    font-weight: bold;
    position: relative;
    font-size: 20px;
    top: -5px;
    white-space: nowrap;
}


.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: #2e4a1c;
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.hero {
    width: 100%;
    min-height: 100vh;
    padding: 40px 20px;
    background: linear-gradient(to bottom, #f4d03f, #f1c40f, white);
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.hero-card {
    border: 2px solid black;
    border-radius: 32px;
    background: white;
    margin: 150px auto 0;
    padding: 40px;
    min-height: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 1600px;
    width: 92%;
}

.hero-card h1 {
    font-family: Montserrat, Arial, sans-serif;
    font-size: clamp(24px, 5vw, 60px);
    color: #2e4a1c;
    font-weight: 750;
    letter-spacing: 0.02em;
    line-height: 1.3;
    margin: 0 0 20px 0;
}

.hero-card p {
    font-size: clamp(16px, 2vw, 25px);
    color: #2e4a1c;
    margin: 0 0 30px 0;
}

.hero-buttonCatalog {
    font-family: Montserrat, Arial, sans-serif;
    font-size: clamp(18px, 2.5vw, 30px);
    background: #6fb34a;
    margin-top: 20px;
    padding: clamp(12px, 2vw, 20px) clamp(40px, 8vw, 120px);
    text-decoration: none;
    color: white;
    border: 2px solid #6fb34a;
    border-radius: 40px;
    font-weight: 530;
    display: inline-block;
    transition: all 0.3s ease;
}

.hero-buttonCatalog:hover {
    background: #5a9a3a;
    border-color: #5a9a3a;
    transform: translateY(-2px);
}

/* ===== CARDS ===== */
.cards {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    padding: 60px 40px;
    justify-content: center;
    background: white;
    font-family: Montserrat, Arial, sans-serif;
    text-align: center;
    gap: 40px;
}

.cards > h1 {
    width: 100%;
    font-size: clamp(28px, 4vw, 48px);
    color: #2e4a1c;
    margin-bottom: 40px;
}

.cardOne,
.cardTwo,
.cardThree {
    flex: 1 1 clamp(280px, 30%, 400px);
    max-width: 500px;
    min-width: 280px;
    background: #f8fdf5;
    border: 2px solid #6fb34a;
    border-radius: 20px;
    padding: 30px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cardOne:hover,
.cardTwo:hover,
.cardThree:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(111, 179, 74, 0.2);
}

.cardOne h1,
.cardTwo h1,
.cardThree h1 {
    font-size: clamp(18px, 2vw, 24px);
    color: #2e4a1c;
    margin-bottom: 15px;
    line-height: 1.3;
}

.cardOne p,
.cardTwo p,
.cardThree p {
    font-size: clamp(14px, 1.5vw, 18px);
    color: #525252;
    line-height: 1.6;
}

.delivery-card {
    margin: 0 auto;
    width: 90%;
    max-width: 900px;
    border: 2px solid #6fb34a;
    border-radius: 20px;
    background: #6fb34a;
    padding: 30px;
}

.delivery-card h1 {
    font-size: clamp(18px, 4vw, 24px);
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    margin-bottom: 25px;
    text-align: center;
}

/* ===== ПК: карта слева, текст справа в строку ===== */
.delivery-content {
    display: flex;
    flex-direction: row;          /* В строку */
    gap: 40px;
    align-items: center;          /* По центру вертикально */
    justify-content: center;       /* По центру горизонтально */
}

#map {
    width: 400px;
    height: 280px;
    border-radius: 12px;
    flex-shrink: 0;
}

.delivery-text {
    color: #ffffff;
    font-size: 18px;
    line-height: 1.8;
    text-align: left;             /* Текст слева на ПК */
}

.delivery-text p {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

.delivery-link {
    display: inline-block;
    color: #2e4a1c;
    font-weight: bold;
    font-size: 20px;
    text-decoration: none;
    margin-top: 10px;
}

.delivery-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ===== КАРУСЕЛЬ ТОВАРОВ ===== */
.featured-products {
    padding: 60px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.featured-products > h1 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Лента с товарами */
.carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 10px 5px 30px;
    /* скрываем полосу прокрутки */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.carousel-track::-webkit-scrollbar {
    display: none;
}

/* Карточка товара */
.carousel-track .product-card {
    flex: 0 0 calc(25% - 15px); /* 4 товара на десктопе */
    min-width: 260px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 20px;
    scroll-snap-align: start;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}


.carousel-track .product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.product-image-wrap {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    background: #fafafa;
    border-radius: 8px;
    overflow: hidden;
}

.product-image-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-card h3 {
    font-size: 1rem;
    line-height: 1.3;
    margin-bottom: 8px;
    min-height: 2.6em;
    color: #222;
}

.product-card .category {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
}

.product-card .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #e65100;
    margin-bottom: 15px;
    margin-top: auto;
}

.product-card .btn {
    display: inline-block;
    text-align: center;
    padding: 10px 18px;
    background: #2e7d32;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.product-card .btn:hover {
    background: #1b5e20;
}

/* Кнопки влево/вправо */
.carousel-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    font-size: 1.1rem;
    color: #333;
    transition: all 0.2s;
    z-index: 2;
}

.carousel-btn:hover {
    background: #2e7d32;
    color: #fff;
}

.carousel-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ========== СЕТКА ТОВАРОВ ========== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0;
}



.futerCard {
    display: flex;
    align-items: center;
    background: #f4d03f;
    width: 100%;
    height: 330px;
    justify-content: space-between;
    gap: 15px;
    position: relative;
    padding: 0 40px;
}

/* ========== ФУТЕР ========== */
.site-footer {
    background: #1a2e12;
    color: #ffffff;
    margin-top: 60px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 50px;
    align-items: start;
}

/* --- Бренд и кнопка --- */
.footer-brand .footer-logo {
    font-size: 32px;
    color: #6fb34a;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.footer-brand .footer-desc {
    color: #c8d6c2;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 15px;
}

.footer-btn {
    display: inline-block;
    background: #6fb34a;
    color: #fff;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(111, 179, 74, 0.3);
}

.footer-btn:hover {
    background: #5a943d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(111, 179, 74, 0.4);
}

/* --- Заголовки --- */
.footer-title {
    color: #6fb34a;
    font-size: 20px;
    margin: 0 0 25px 0;
    font-weight: 600;
}

/* --- Адреса --- */
.footer-address {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-address:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.address-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.address-text strong {
    display: block;
    color: #fff;
    font-size: 15px;
    margin-bottom: 4px;
}

.address-text span {
    display: block;
    color: #b0c4a8;
    font-size: 14px;
    line-height: 1.5;
}

/* --- Контакты --- */
.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 15px;
}

.footer-contact-item a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact-item a:hover {
    color: #6fb34a;
}

.footer-socials {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
}

.social-link:hover {
    background: #6fb34a;
    transform: translateY(-3px);
}

.footer-note {
    margin-top: 20px;
    color: #8da883;
    font-size: 13px;
    line-height: 1.5;
}

/* --- Карта --- */
.footer-map-wrapper {
    margin-top: 50px;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.footer-map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(0.3) contrast(1.1);
}

/* --- Низ футера --- */
.footer-bottom {
    margin-top: 40px;
    padding: 25px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    color: #8da883;
    font-size: 14px;
}






/* ===== планшет ===== */
@media (max-width: 1023px) {
    .Logo {
        width: 250px;
        margin-left: 20px;
    }

    .Catalog-button,
    .Discounts-button,
    .Delivery-button,
    .About-button {
        font-size: 16px;
        padding: 8px 15px;
    }

    .Contacts-head {
        font-size: 16px;
    }

    .hero-card {
        margin-top: 80px;
    }

    .cardOne,
    .cardTwo,
    .cardThree {
        flex: 1 1 45%;
        min-width: 260px;
    }

    .delivery-content {
        flex-direction: column;     /* В столбик */
        align-items: center;         /* По центру */
        gap: 25px;
    }

    #map {
        width: 100%;
        max-width: 400px;
        height: 250px;
    }

    .delivery-text {
        text-align: center;         /* Текст по центру */
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
    }
    .footer-map-wrapper {
        height: 250px;
    }
    .carousel-track .product-card {
        flex: 0 0 calc(33.333% - 14px); /* 3 товара */
    }
}


/* ===== телефон ===== */
@media (max-width: 767px) {
    .header {
        padding: 10px 15px;
        height: auto;
        min-height: 80px;
    }

    .Logo {
        width: 140px;
        height: auto;
        margin-left: 0;
        top: 0;
    }

    /* Показываем гамбургер */
    .mobile-menu-btn {
        display: block;
        order: 3;
        margin-left: auto;
    }

    /* Меню скрыто по умолчанию */
    #navLinks {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        z-index: 1000;
        gap: 0;
    }

    #navLinks.active {
        display: flex;
    }

    .Catalog-button,
    .Discounts-button,
    .Delivery-button,
    .About-button {
        margin: 0;
        padding: 15px;
        text-align: center;
        border-bottom: 1px solid #eee;
        font-size: 16px;
    }

    .phone-contact {
        margin-right: 10px;
        margin-left: auto;
    }

    .Phone-head {
        display: none;
    }

    .Contacts-head {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 20px 10px 40px;
    }

    .hero-card {
        width: 100%;
        margin: 20px 0 0 0;
        padding: 25px 20px;
        border-radius: 20px;
    }

    .hero-card h1 {
        text-align: center;
        font-size: clamp(20px, 6vw, 28px);
    }

    .hero-card p {
        text-align: center;
        font-size: 16px;
    }

    .hero-buttonCatalog {
        display: block;
        width: 100%;
        text-align: center;
        padding: 15px;
        font-size: 18px;
        margin: 20px 0 0 0;
    }

    .cards {
        padding: 30px 15px;
    }

    .cardOne,
    .cardTwo,
    .cardThree {
        flex: 1 1 100%;
        max-width: 100%;
        min-width: auto;
    }

    .cardOne h1,
    .cardTwo h1,
    .cardThree h1 {
        font-size: 20px;
    }

    .delivery-card {
        width: 95%;
        padding: 20px;
    }

    #map {
        height: 200px;
    }

    .delivery-text {
        font-size: 16px;
    }

    .delivery-link {
        font-size: 18px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .product-card img {
        height: 180px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-container {
        padding-top: 40px;
    }
    .footer-map-wrapper {
        height: 200px;
        margin-top: 30px;
    }
    .footer-btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
    .carousel-track .product-card {
        flex: 0 0 calc(50% - 10px); /* 2 товара */
    }
    .carousel-btn {
        display: none; /* на мобильном свайп лучше */
    }
}

/* ===== SMALL MOBILE ===== */
@media (max-width: 480px) {
    .Logo {
        width: 120px;
    }

    .hero-card h1 {
        font-size: 22px;
    }

    .hero-card p {
        font-size: 14px;
    }

    .cards > h1 {
        font-size: 24px;
    }
    .delivery-card {
        width: 100%;
        padding: 15px;
        border-radius: 12px;
    }

    .delivery-card h1 {
        font-size: 18px;
    }

    #map {
        height: 180px;
    }

    .delivery-text {
        font-size: 15px;
    }

    .delivery-link {
        font-size: 16px;
    }
    .carousel-track .product-card {
        flex: 0 0 85%; /* почти 1 товар */
    }
}



.admin-container {
    max-width: 640px;
    margin: 32px auto;
    padding: 0 24px;
}

.admin-container h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 28px;
    color: #1d1d1f;
}

/* ===== FORM ===== */
.admin-form {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
}

.field-group {
    margin-bottom: 20px;
}

.field-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.field-group input[type="text"],
.field-group input[type="number"],
.field-group input[type="url"],
.field-group input[type="file"],
.field-group select,
.field-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    color: #1d1d1f;
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.field-group input::placeholder,
.field-group textarea::placeholder {
    color: #9ca3af;
}

.field-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.field-group textarea {
    resize: vertical;
    min-height: 100px;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.hint {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

/* ===== UNIT LABEL ===== */
.unit-label {
    margin-bottom: 12px;
}

.unit-badge {
    display: inline-block;
    padding: 6px 14px;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
}

/* ===== BUTTONS ===== */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: #1d1d1f;
    color: #fff;
}

.btn-primary:hover {
    background: #000;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

/* ===== CURRENT IMAGES ===== */
.current-images {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.current-images .thumb {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    transition: transform 0.2s;
}

.current-images .thumb:hover {
    transform: scale(1.05);
}


.catalog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.filter-btn {
    padding: 8px 18px;
    border: 1px solid #e5e5ea;
    border-radius: 100px;
    background: #fff;
    color: #6e6e73;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: #d1d1d6;
    color: #1d1d1f;
}

.filter-btn.active {
    background: #1d1d1f;
    color: #fff;
    border-color: #1d1d1f;
}

/* --- Сетка --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.catalog-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #6e6e73;
    font-size: 15px;
}

/* --- Карточка товара --- */
.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}

.card-link { text-decoration: none; color: inherit; }

.card-image {
    height: 200px;
    background: #f5f5f7;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.product-card:hover .card-image img { transform: scale(1.05); }

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-discount {
    background: #ff3b30;
    color: #fff;
}

.card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-category {
    font-size: 12px;
    color: #0071e3;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #1d1d1f;
    text-decoration: none;
}

.card-title:hover { color: #0071e3; }

.card-desc {
    font-size: 13px;
    color: #6e6e73;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #e5e5ea;
}

.card-price-block {
    display: flex;
    flex-direction: column;
}

.card-price {
    font-size: 20px;
    font-weight: 700;
    color: #1d1d1f;
}

.card-unit {
    font-size: 12px;
    color: #6e6e73;
    margin-top: 2px;
}

.card-old-price {
    font-size: 13px;
    color: #a1a1a6;
    text-decoration: line-through;
    margin-top: 2px;
}

.card-btn {
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: #1d1d1f;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.card-btn:hover:not(:disabled) { background: #000; }

.card-btn:disabled {
    background: #e5e5ea;
    color: #a1a1a6;
    cursor: not-allowed;
}

/* --- Пустое состояние --- */
.catalog-empty {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #a1a1a6;
    text-align: center;
}

.catalog-empty svg { margin-bottom: 16px; opacity: 0.4; }
.catalog-empty p { font-size: 16px; font-weight: 500; color: #6e6e73; margin-bottom: 8px; }
.catalog-empty span { font-size: 14px; }


/* ===== ФИКС КАРТИНОК НА ТЕЛЕФОНЕ ===== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 767px) {
    .product-card img,
    .card-image img,
    .grain-card__img,
    .kombikorm-card__img,
    .ptica-card__img,
    .seed-card__img {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}