:root {
    --bg-black: #000000;
    --bg-dark-gray: #050505;
    --halal-green: #007a3d;
    --halal-green-light: #00a050;
    --halal-green-dark: #005a2d;
    --text-white: #FFFFFF;
    --text-light: #F5F5F5;
    --meat-red: #b22222;
    --card-dark: #1a1a1a;
    --card-border: #333333;
}

* {
    color-scheme: dark;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-black);
    color: var(--text-white);
    min-height: 100vh;
}

/* Логотип HALAL */
.halal-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-white) !important;
}

.halal-badge {
    width: 50px;
    height: 50px;
    background-color: var(--halal-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(0, 122, 61, 0.3);
}

.halal-badge::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 30%, var(--halal-green-dark) 30%);
    border-radius: 50%;
}

.halal-badge-text {
    color: var(--text-white);
    font-weight: bold;
    font-size: 12px;
    z-index: 1;
    text-align: center;
    line-height: 1;
}

.halal-badge-small {
    width: 30px;
    height: 30px;
}

.halal-badge-small .halal-badge-text {
    font-size: 8px;
}

.brand-name {
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.2;
}

.brand-name .meat-text {
    color: var(--meat-red);
}

.meat-text {
    color: var(--meat-red);
}

/* Навбар */
.navbar {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(5, 5, 5, 0.98) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 
                0 0 40px rgba(0, 122, 61, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(0, 122, 61, 0.2);
    position: relative;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    flex-wrap: wrap;
    padding-top: 1rem;
    padding-bottom: 1rem;
    min-height: 120px;
    gap: 0.5rem;
    max-width: 100%;
}

.navbar-brand, .nav-link {
    color: var(--text-white) !important;
}

.nav-link {
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--halal-green-light) !important;
    text-shadow: 0 0 10px rgba(0, 160, 80, 0.5);
}

/* Header Sidebar Left */
.header-sidebar-left {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 0.5rem;
    order: 1;
    flex-shrink: 0;
    padding: 0.25rem;
    width: 140px;
}

.sidebar-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 0.4rem;
    background: linear-gradient(135deg, rgba(0, 122, 61, 0.1) 0%, rgba(0, 0, 0, 0.2) 100%);
    border: 1px solid rgba(0, 122, 61, 0.2);
    border-radius: 10px;
    color: var(--text-white) !important;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 0;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.sidebar-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 122, 61, 0.3), 
        transparent);
    transition: left 0.5s ease;
}

.sidebar-btn:hover::before {
    left: 100%;
}

.sidebar-btn:hover {
    background: linear-gradient(135deg, rgba(0, 122, 61, 0.2) 0%, rgba(0, 160, 80, 0.15) 100%);
    border-color: rgba(0, 122, 61, 0.4);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 122, 61, 0.3),
                0 0 20px rgba(0, 122, 61, 0.2);
}

.sidebar-btn i {
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.sidebar-btn:hover i {
    color: var(--halal-green-light);
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(0, 160, 80, 0.6));
}

.sidebar-btn-text {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-align: center;
    transition: all 0.3s ease;
    line-height: 1.1;
}

.sidebar-btn:hover .sidebar-btn-text {
    color: var(--halal-green-light);
    text-shadow: 0 0 10px rgba(0, 160, 80, 0.5);
}

/* Header Sidebar Right - Cart */
.header-sidebar-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    order: 3;
    flex-shrink: 0;
    padding: 0.25rem;
    width: 90px;
    align-self: flex-start;
    padding-top: 1.875rem;
    margin-top: 0;
}

.cart-sidebar-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.75rem 0.5rem;
    background: linear-gradient(135deg, rgba(178, 34, 34, 0.15) 0%, rgba(0, 0, 0, 0.2) 100%);
    border: 1px solid rgba(178, 34, 34, 0.3);
    border-radius: 10px;
    color: var(--text-white) !important;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 0;
    width: 100%;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.cart-sidebar-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(178, 34, 34, 0.3), 
        transparent);
    transition: left 0.5s ease;
}

.cart-sidebar-btn:hover::before {
    left: 100%;
}

.cart-sidebar-btn:hover {
    background: linear-gradient(135deg, rgba(178, 34, 34, 0.25) 0%, rgba(255, 68, 68, 0.2) 100%);
    border-color: rgba(178, 34, 34, 0.5);
    transform: translateX(-5px);
    box-shadow: 0 4px 15px rgba(178, 34, 34, 0.4),
                0 0 20px rgba(255, 68, 68, 0.3);
}

.cart-sidebar-btn i {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.cart-sidebar-btn:hover i {
    color: #ff4444;
    transform: scale(1.15);
    filter: drop-shadow(0 0 10px rgba(255, 68, 68, 0.7));
}

.cart-sidebar-text {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-align: center;
    transition: all 0.3s ease;
    line-height: 1.1;
}

.cart-sidebar-btn:hover .cart-sidebar-text {
    color: #ff4444;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.6);
}

.cart-badge-sidebar {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, var(--meat-red), #ff4444);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(178, 34, 34, 0.5),
                0 0 15px rgba(255, 68, 68, 0.4);
    animation: pulse 2s ease-in-out infinite;
    text-align: center;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(178, 34, 34, 0.5),
                    0 0 15px rgba(255, 68, 68, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 3px 12px rgba(178, 34, 34, 0.7),
                    0 0 20px rgba(255, 68, 68, 0.6);
    }
}

/* Header Brand Layout */
.header-brand-container {
    position: relative;
    left: auto;
    transform: none;
    z-index: 1;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    order: 2;
    max-width: calc(100% - 250px);
}

/* Desktop: ensure proper width */
@media (min-width: 992px) {
    .header-brand-container {
        max-width: calc(100% - 250px);
    }
}

.header-nav-links {
    display: flex !important;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 12px;
    order: 3;
}

.header-nav-links .navbar-nav {
    flex-direction: row;
    gap: 0;
    margin: 0;
}

.header-nav-links .nav-link {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin: 0 0.25rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.header-nav-links .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 122, 61, 0.2), 
        transparent);
    transition: left 0.5s ease;
}

.header-nav-links .nav-link:hover::before {
    left: 100%;
}

.header-nav-links .nav-link:hover {
    background: linear-gradient(135deg, rgba(0, 122, 61, 0.15), rgba(0, 160, 80, 0.1));
    color: var(--halal-green-light) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 122, 61, 0.3);
    border: 1px solid rgba(0, 122, 61, 0.3);
}

.header-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    text-decoration: none;
    color: var(--text-white) !important;
    width: 95%;
    max-width: 95%;
    margin: 0 auto;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, rgba(0, 122, 61, 0.05) 0%, rgba(0, 0, 0, 0.1) 100%);
    border-radius: 20px;
    border: 1px solid rgba(0, 122, 61, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.header-brand::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 122, 61, 0.1), 
        transparent);
    transition: left 0.6s ease;
}

.header-brand:hover::before {
    left: 100%;
}

.header-brand:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 122, 61, 0.2),
                0 0 60px rgba(0, 122, 61, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(0, 122, 61, 0.3);
}

.brand-title-header {
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
    color: var(--text-white);
}

.brand-title-header .meat-text {
    color: var(--meat-red);
    display: block;
    margin-top: 0.25rem;
}

.store-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-white);
    white-space: nowrap;
    order: 1;
    flex: 1;
    text-align: right;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5),
                 0 0 20px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.store-name::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--halal-green));
    transition: width 0.4s ease;
}

.header-brand:hover .store-name::after {
    width: 100%;
}

.header-brand:hover .store-name {
    color: var(--halal-green-light);
    text-shadow: 0 2px 15px rgba(0, 160, 80, 0.4),
                 0 0 30px rgba(0, 160, 80, 0.2);
}

.header-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    flex-shrink: 0;
    order: 2;
    filter: drop-shadow(0 4px 15px rgba(0, 122, 61, 0.4))
            drop-shadow(0 0 30px rgba(0, 122, 61, 0.2));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.header-brand:hover .header-logo {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 6px 20px rgba(0, 122, 61, 0.6))
            drop-shadow(0 0 40px rgba(0, 160, 80, 0.4));
    animation: logoGlow 2s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% {
        filter: drop-shadow(0 6px 20px rgba(0, 122, 61, 0.6))
                drop-shadow(0 0 40px rgba(0, 160, 80, 0.4));
    }
    50% {
        filter: drop-shadow(0 8px 25px rgba(0, 122, 61, 0.8))
                drop-shadow(0 0 50px rgba(0, 160, 80, 0.6));
    }
}

.meat-text-header {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--meat-red);
    white-space: nowrap;
    order: 3;
    flex: 1;
    text-align: left;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(178, 34, 34, 0.5),
                 0 0 20px rgba(178, 34, 34, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.meat-text-header::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--meat-red), transparent);
    transition: width 0.4s ease;
}

.header-brand:hover .meat-text-header::after {
    width: 100%;
}

.header-brand:hover .meat-text-header {
    color: #ff4444;
    text-shadow: 0 2px 15px rgba(178, 34, 34, 0.7),
                 0 0 30px rgba(255, 68, 68, 0.4);
}

/* Кнопки */
.btn-primary {
    background: linear-gradient(135deg, var(--halal-green) 0%, var(--halal-green-light) 100%);
    border: none;
    color: var(--text-white);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    box-shadow: 
        0 4px 16px rgba(0, 122, 61, 0.4),
        0 0 20px rgba(0, 122, 61, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--halal-green-light) 0%, var(--halal-green) 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 24px rgba(0, 122, 61, 0.5),
        0 0 30px rgba(0, 122, 61, 0.3);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline-primary {
    border: 2px solid var(--halal-green);
    color: var(--halal-green);
    background-color: transparent;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--halal-green) 0%, var(--halal-green-light) 100%);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-outline-primary:hover {
    color: var(--text-white);
    border-color: var(--halal-green-light);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 24px rgba(0, 122, 61, 0.3),
        0 0 20px rgba(0, 122, 61, 0.2);
}

.btn-outline-primary:hover::before {
    width: 100%;
}

.btn-light {
    background-color: var(--text-white);
    border-color: var(--text-white);
    color: var(--bg-black);
}

.btn-light:hover {
    background-color: var(--text-light);
    border-color: var(--text-light);
    color: var(--bg-black);
}

.btn-outline-light {
    border-color: var(--text-white);
    color: var(--text-white);
    background-color: transparent;
}

.btn-outline-light:hover {
    background-color: var(--text-white);
    border-color: var(--text-white);
    color: var(--bg-black);
}

/* Карточки */
.card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 122, 61, 0.2);
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-white);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.product-card-link {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.product-card-link:hover,
.product-card-link:focus-visible {
    color: inherit;
    text-decoration: none;
}

.product-card-link .card-body {
    flex: 1 1 auto;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--halal-green) 0%, 
        var(--halal-green-light) 50%,
        var(--halal-green) 100%);
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 122, 61, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 122, 61, 0.5);
    background: rgba(26, 26, 26, 0.8);
}

.card:hover::before {
    transform: scaleX(1);
    animation: shimmer 2s linear infinite;
}

.card-header {
    background-color: var(--bg-dark-gray);
    border-bottom: 1px solid var(--card-border);
    color: var(--text-white);
}

.card-body {
    color: var(--text-white);
}

.product-image {
    height: 220px;
    object-fit: cover;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.3) 0%, 
        rgba(0, 122, 61, 0.1) 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover .product-image {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.card:hover .product-image::after {
    opacity: 1;
}

/* Иконки категорий */
.category-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 8px rgba(0, 122, 61, 0.2));
    position: relative;
    opacity: 0.95;
}

.category-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 122, 61, 0.2);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    cursor: pointer;
    color: var(--text-white);
}

.category-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 122, 61, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.category-card:hover {
    background: rgba(26, 26, 26, 0.85);
    border-color: rgba(0, 122, 61, 0.5);
    transform: translateY(-10px) scale(1.03);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(0, 122, 61, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: var(--text-white);
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover .category-icon {
    opacity: 1;
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 8px 16px rgba(0, 122, 61, 0.5));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Иконки туш для hero */
.meat-silhouettes {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 1rem 0;
    flex-wrap: wrap;
    position: relative;
}

.meat-silhouettes img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    opacity: 0.95;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: 
        blur(0.3px)
        drop-shadow(0 4px 8px rgba(0, 122, 61, 0.3))
        drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    position: relative;
    animation: float 3s ease-in-out infinite;
    
    /* Сглаживание изображений для плавных контуров */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: smooth;
    image-rendering: high-quality;
    image-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    
    /* Аппаратное ускорение для лучшего рендеринга */
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    
    /* Улучшенное сглаживание краев */
    -webkit-transform: translateZ(0);
    will-change: transform, filter;
}

.meat-silhouettes img:nth-child(1) {
    animation-delay: 0s;
}

.meat-silhouettes img:nth-child(2) {
    animation-delay: 0.5s;
}

.meat-silhouettes img:nth-child(3) {
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateZ(0);
    }
    50% {
        transform: translateY(-10px) translateZ(0);
    }
}

.meat-silhouettes img:hover {
    opacity: 1;
    transform: scale(1.15) translateY(-5px) translateZ(0);
    filter: 
        blur(0.3px)
        drop-shadow(0 8px 16px rgba(0, 122, 61, 0.5))
        drop-shadow(0 4px 8px rgba(0, 0, 0, 0.7));
    animation-play-state: paused;
    image-rendering: smooth;
    image-rendering: high-quality;
    image-rendering: auto;
}

/* Hero секция */
.hero-section {
    background-color: #000000 !important;
    background-image: url('../images/hero-bg.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    color: var(--text-white);
    padding: 6rem 0;
    min-height: 85vh;
    height: auto;
    max-height: none;
    display: flex;
    align-items: center;
    position: relative !important;
    overflow: visible !important;
    contain: layout style paint;
    will-change: auto;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.7) 0%, 
        rgba(0, 0, 0, 0.6) 50%,
        rgba(0, 0, 0, 0.75) 100%);
    pointer-events: none;
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 122, 61, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(178, 34, 34, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    will-change: auto;
    animation: pulse 8s ease-in-out infinite;
}


@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

.hero-center {
    text-align: center;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
    width: 100%;
    padding: 1.5rem 0;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-halal-star {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    position: relative;
}

.hero-halal-star .halal-badge {
    width: 100%;
    height: 100%;
    box-shadow: 0 0 40px rgba(0, 122, 61, 0.5);
}

.hero-halal-star .halal-badge-text {
    font-size: 48px;
    line-height: 1.2;
}

.brand-title {
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.25;
}

.brand-title .meat-text {
    color: var(--meat-red);
    display: block;
    margin-top: 0.5rem;
}

.slogan {
    font-size: clamp(1.3rem, 3.2vw, 1.75rem);
    font-weight: 300;
    color: var(--text-light);
    margin: 1.5rem 0;
    font-style: italic;
    background: linear-gradient(135deg, 
        var(--text-white) 0%, 
        var(--halal-green-light) 50%,
        var(--text-white) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
    letter-spacing: 0.5px;
    text-shadow: 
        0 0 30px rgba(0, 122, 61, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.8),
        2px 2px 4px rgba(0, 0, 0, 0.6);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.7));
}

@keyframes shimmer {
    to {
        background-position: 200% center;
    }
}

.hero-description {
    color: var(--text-light);
    font-size: 1.15rem;
    line-height: 1.9;
    max-width: 750px;
    margin: 1.5rem auto;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(0, 122, 61, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: fadeInUp 1.2s ease-out 0.2s both;
    position: relative;
    overflow: hidden;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-description::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 122, 61, 0.1), 
        transparent);
    animation: sweep 5s ease-in-out infinite;
}

@keyframes sweep {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

.hero-markers {
    list-style: none;
    padding: 0;
    margin: 1.5rem auto;
    text-align: left;
    max-width: 650px;
    display: grid;
    gap: 0.75rem;
    animation: fadeInUp 1.4s ease-out 0.4s both;
}

.hero-markers li {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-light);
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    border: 1px solid rgba(0, 122, 61, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.hero-markers li::before {
    content: '✓';
    color: var(--text-white);
    background: linear-gradient(135deg, var(--halal-green), var(--halal-green-light));
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 
        0 4px 12px rgba(0, 122, 61, 0.4),
        0 0 20px rgba(0, 122, 61, 0.2);
    transition: all 0.3s ease;
}

.hero-markers li::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 122, 61, 0.1), 
        transparent);
    transition: left 0.5s ease;
}

.hero-markers li:hover {
    transform: translateX(8px);
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(0, 122, 61, 0.3);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(0, 122, 61, 0.15);
}

.hero-markers li:hover::before {
    transform: scale(1.1) rotate(360deg);
    box-shadow: 
        0 6px 16px rgba(0, 122, 61, 0.5),
        0 0 30px rgba(0, 122, 61, 0.3);
}

.hero-markers li:hover::after {
    left: 100%;
}

/* Футер */
footer {
    background-color: var(--bg-black);
    color: var(--text-white);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
    border-top: 1px solid var(--card-border);
}

footer h5 {
    color: var(--halal-green-light);
    margin-bottom: 1rem;
}

footer a {
    color: var(--text-light);
    text-decoration: none;
}

footer a:hover {
    color: var(--halal-green-light);
}

/* Секции */
section {
    background-color: var(--bg-black);
    color: var(--text-white);
}

.bg-light {
    background: linear-gradient(135deg, 
        rgba(5, 5, 5, 0.95) 0%, 
        rgba(0, 0, 0, 0.98) 100%) !important;
    color: var(--text-white) !important;
    position: relative;
    overflow: hidden;
}

.bg-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(0, 122, 61, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Анимации появления для секций */
section {
    animation: fadeInUp 0.8s ease-out;
    position: relative;
}

section:nth-child(even) {
    animation-delay: 0.1s;
}

section:nth-child(odd) {
    animation-delay: 0.2s;
}

/* Улучшенные заголовки секций */
section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, 
        var(--text-white) 0%, 
        var(--halal-green-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    letter-spacing: 1px;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--halal-green), 
        transparent);
    border-radius: 2px;
}

/* Текст */
.text-primary {
    color: var(--halal-green-light) !important;
}

.text-danger {
    color: var(--meat-red) !important;
}

.text-muted {
    color: #999 !important;
}

/* Badge корзины */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--meat-red);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Иконки категорий в каталоге */
.category-icon-small {
    display: inline-flex;
    align-items: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.category-icon-small svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    stroke: currentColor;
}

/* Формы */
.form-control, .form-select {
    background-color: var(--card-dark);
    border-color: var(--card-border);
    color: var(--text-white);
}

.form-control:focus, .form-select:focus {
    background-color: var(--card-dark);
    border-color: var(--halal-green);
    color: var(--text-white);
    box-shadow: 0 0 0 0.2rem rgba(0, 122, 61, 0.25);
}

.form-control::placeholder {
    color: #666;
}

/* Список групп */
.list-group-item {
    background-color: var(--card-dark);
    border-color: var(--card-border);
    color: var(--text-white);
}

.list-group-item.active {
    background-color: var(--halal-green);
    border-color: var(--halal-green);
}

.list-group-item:hover {
    background-color: var(--bg-dark-gray);
    color: var(--text-white);
}

/* Хлебные крошки */
.breadcrumb {
    background-color: var(--bg-dark-gray);
}

.breadcrumb-item a {
    color: var(--halal-green-light);
}

.breadcrumb-item.active {
    color: var(--text-light);
}

/* Алерты */
.alert {
    border: none;
}

.alert-info {
    background-color: rgba(0, 122, 61, 0.2);
    color: var(--text-white);
    border-left: 4px solid var(--halal-green);
}

.alert-success {
    background-color: rgba(0, 122, 61, 0.2);
    color: var(--text-white);
    border-left: 4px solid var(--halal-green);
}

.alert-warning {
    background-color: rgba(178, 34, 34, 0.2);
    color: var(--text-white);
    border-left: 4px solid var(--meat-red);
}

.alert-danger {
    background-color: rgba(178, 34, 34, 0.2);
    color: var(--text-white);
    border-left: 4px solid var(--meat-red);
}

/* Таблицы */
.table {
    color: var(--text-white);
}

.table-dark {
    background-color: var(--card-dark);
}

/* Пагинация */
.pagination .page-link {
    background-color: var(--card-dark);
    border-color: var(--card-border);
    color: var(--text-white);
}

.pagination .page-link:hover {
    background-color: var(--halal-green);
    border-color: var(--halal-green);
    color: var(--text-white);
}

.pagination .page-item.active .page-link {
    background-color: var(--halal-green);
    border-color: var(--halal-green);
}

/* Кнопки опасности */
.btn-danger {
    background-color: var(--meat-red);
    border-color: var(--meat-red);
    color: var(--text-white);
}

.btn-danger:hover {
    background-color: #8b1a1a;
    border-color: #8b1a1a;
    color: var(--text-white);
}

/* Badge */
.badge {
    color: var(--text-white);
}

.bg-danger {
    background-color: var(--meat-red) !important;
}

.bg-success {
    background-color: var(--halal-green) !important;
}

.bg-warning {
    background-color: #ffa500 !important;
    color: var(--bg-black) !important;
}

/* Form text */
.form-text {
    color: var(--text-light) !important;
}

/* Скрываем мобильное меню на десктопе */
@media (min-width: 992px) {
    #mobileNav {
        display: none !important;
    }
    
    .navbar-toggler {
        display: none !important;
    }
}

/* Адаптивность */

/* Tablet styles (768px - 991px) - desktop-like single row layout */
@media (min-width: 768px) and (max-width: 991.98px) {
    .header-sidebar-left {
        display: none !important;
    }
    
    .navbar .container {
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: flex-start;
        padding: 0.75rem 1rem;
        min-height: auto;
        gap: 0.5rem;
    }
    
    .navbar-toggler {
        order: 1;
        border-color: rgba(0, 122, 61, 0.5);
        padding: 0.5rem 0.75rem;
        z-index: 10;
        flex-shrink: 0;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(0, 122, 61, 0.25);
    }
    
    .header-brand-row-mobile {
        display: none !important;
    }
    
    .header-buttons-row-mobile {
        display: none !important;
    }
    
    .header-brand-container {
        order: 2;
        flex: 1 1 auto;
        margin: 0;
        min-width: 0;
        max-width: none;
        display: flex !important;
    }
    
    .header-brand {
        gap: 8px !important;
        width: 100%;
        max-width: 100%;
        padding: 0.6rem 1rem !important;
        border-radius: 12px;
        justify-content: center;
        min-width: 0;
        flex-shrink: 1;
    }
    
    .header-sidebar-right {
        order: 3;
        width: auto;
        padding: 0;
        align-self: center;
        flex-shrink: 0;
        display: flex !important;
    }
    
    .cart-sidebar-btn {
        flex-direction: row;
        padding: 0.5rem 0.75rem;
        min-width: auto;
        width: auto;
    }
    
    .store-name {
        font-size: clamp(0.85rem, 2.5vw, 1.1rem);
        white-space: nowrap;
        flex-shrink: 1;
        min-width: 0;
    }
    
    .meat-text-header {
        font-size: clamp(0.85rem, 2.5vw, 1.1rem);
        white-space: nowrap;
        flex-shrink: 1;
        min-width: 0;
    }
    
    .header-logo {
        width: clamp(38px, 5vw, 45px);
        height: clamp(38px, 5vw, 45px);
        flex-shrink: 0;
    }
    
    .header-brand {
        gap: clamp(4px, 1.5vw, 8px) !important;
        padding: 0.5rem clamp(0.5rem, 2vw, 1rem) !important;
    }
    
    /* Tablet burger menu styling */
    .tablet-burger-menu {
        order: 1 !important;
    }
    
    /* Mobile nav positioning on tablet - should be below header, full width */
    #mobileNav {
        order: 999 !important;
        width: 100% !important;
        flex-basis: 100% !important;
        flex: 1 1 100% !important;
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        margin: 0.5rem 0 0 0 !important;
        padding: 0.75rem 0 !important;
        border-top: 1px solid rgba(0, 122, 61, 0.2) !important;
        background: rgba(0, 0, 0, 0.3) !important;
        border-radius: 0 0 12px 12px !important;
        clear: both !important;
        float: none !important;
    }
    
    #mobileNav .navbar-nav {
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 0.5rem !important;
        margin: 0 !important;
    }
    
    #mobileNav .nav-link {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Mobile and shared styles for < 992px */
@media (max-width: 991.98px) {
    .header-sidebar-left {
        display: none !important;
    }
    
    .cart-badge-sidebar {
        top: 4px;
        right: 4px;
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .cart-sidebar-text {
        display: none !important;
    }
    
    .store-name {
        font-size: 1.1rem;
        white-space: nowrap;
    }
    
    .store-name-mobile {
        font-size: 1rem;
        font-weight: 700;
        color: var(--text-white);
        white-space: nowrap;
        letter-spacing: 0.5px;
        order: 1;
    }
    
    .header-logo {
        width: 50px;
        height: 50px;
        flex-shrink: 0;
        order: 2;
    }
    
    .meat-text-mobile {
        font-size: 1rem;
        font-weight: 700;
        color: var(--meat-red);
        white-space: nowrap;
        letter-spacing: 0.5px;
        order: 3;
    }
    
    .meat-text-header {
        font-size: 1.1rem;
        white-space: nowrap;
    }
    
    .brand-title-header {
        font-size: 0.85rem;
    }
    
    #mobileNav {
        order: 4;
        width: 100%;
        flex-basis: 100%;
        margin-top: 0.5rem;
        padding: 0.75rem 0;
        border-top: 1px solid rgba(0, 122, 61, 0.2);
        background: rgba(0, 0, 0, 0.3);
        border-radius: 0 0 12px 12px;
    }
    
    #mobileNav .navbar-nav {
        gap: 0.25rem;
        padding: 0 0.5rem;
    }
    
    #mobileNav .nav-link {
        padding: 0.75rem 1.25rem;
        border-radius: 10px;
        margin: 0;
        display: flex;
        align-items: center;
        transition: all 0.3s ease;
        font-weight: 500;
        background: rgba(0, 0, 0, 0.2);
    }
    
    #mobileNav .nav-link:hover,
    #mobileNav .nav-link:focus {
        background: rgba(0, 122, 61, 0.2);
        color: var(--halal-green-light) !important;
        transform: translateX(5px);
        box-shadow: 0 2px 8px rgba(0, 122, 61, 0.2);
    }
    
    #mobileNav .nav-link i {
        width: 24px;
        text-align: center;
        font-size: 1.1rem;
    }
    
    /* Улучшаем видимость логотипа на мобильных */
    .header-brand {
        background: rgba(0, 122, 61, 0.1) !important;
        border: 1px solid rgba(0, 122, 61, 0.3) !important;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        padding: 0.5rem 0.75rem;
    }
    
    .header-brand-container {
        margin: 0 0.25rem;
    }
    
    .header-brand {
        padding: clamp(0.75rem, 2vw, 1.25rem) clamp(1rem, 3vw, 1.5rem) !important;
        gap: clamp(0.5rem, 1.5vw, 0.75rem) !important;
        box-shadow: 0 2px 10px rgba(0, 122, 61, 0.2) !important;
        min-width: 0;
        min-height: 44px;
        flex: 1 1 auto;
    }
    
    .store-name {
        font-size: 1rem;
        font-weight: 700;
    }
    
    .store-name-mobile {
        font-size: clamp(0.9375rem, 3.5vw, 1.125rem) !important;
        white-space: nowrap;
        font-weight: 700;
        letter-spacing: 0.02em;
        order: 1;
    }
    
    .meat-text-mobile {
        font-size: clamp(0.9375rem, 3.5vw, 1.125rem) !important;
        white-space: nowrap;
        font-weight: 700;
        color: var(--meat-red);
        letter-spacing: 0.02em;
        order: 3;
    }
    
    .header-logo {
        width: clamp(45px, 12vw, 55px) !important;
        height: clamp(45px, 12vw, 55px) !important;
        object-fit: contain;
        filter: drop-shadow(0 2px 8px rgba(0, 122, 61, 0.4));
        flex-shrink: 0;
        order: 2;
    }
    
    .meat-text-header {
        font-size: 1rem;
        font-weight: 700;
    }
    
    .header-brand-container {
        min-width: 0;
        flex: 1 1 auto;
        max-width: calc(100% - 120px);
    }
    
    #mobileNav {
        padding: 0.5rem 0;
        margin-top: 0.75rem;
    }
    
    #mobileNav .nav-link {
        padding: 0.7rem 1rem;
        font-size: 0.95rem;
        margin-bottom: 0.25rem;
    }
    
    .hero-section {
        padding-top: calc(2rem + env(safe-area-inset-top, 0px));
        padding-bottom: calc(3rem + env(safe-area-inset-bottom, 0px));
        min-height: auto;
        height: auto;
        max-height: none;
        background-size: cover;
        background-position: center center;
        background-attachment: scroll;
        margin-bottom: 1rem;
        overflow: visible;
    }
    
    .hero-center {
        min-height: auto;
        height: auto;
        padding: 1.5rem 1rem;
    }
    
    .hero-center .d-flex.gap-3 {
        margin-bottom: 0;
    }
    
    .hero-halal-star {
        width: 120px;
        height: 120px;
        margin-bottom: 1rem;
    }
    
    .hero-halal-star .halal-badge-text {
        font-size: 28px;
    }
    
    .brand-title {
        font-size: clamp(1.9rem, 8vw, 2.2rem);
        line-height: 1.3;
    }
    
    .slogan {
        font-size: clamp(1.15rem, 5vw, 1.35rem);
        line-height: 1.35;
        margin: 1rem 0;
        padding: 0 1rem;
    }
    
    .meat-silhouettes {
        gap: 0.75rem;
        margin: 0.75rem 0;
    }
    
    .meat-silhouettes img {
        width: 100px;
        height: auto;
    }
    
    .hero-description {
        font-size: 0.9rem;
        line-height: 1.6;
        padding: 1.5rem 1rem;
        margin: 1rem 0.5rem;
    }
    
    .hero-markers {
        margin: 1rem 0.5rem;
        gap: 0.5rem;
    }
    
    .hero-markers li {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .hero-markers li::before {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
    
    section h2 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem; /* Reduced from 2rem for better flow */
    }
    
    /* Section spacing - adjusted for mobile harmony */
    section.py-5 {
        padding-top: 2.5rem !important; /* Reduced from default 3rem */
        padding-bottom: 2.5rem !important;
    }
    
    /* Category cards - reduced size for mobile */
    .category-card {
        padding: 1rem 0.75rem; /* Reduced from 1.5rem 1rem (~33% reduction) */
        min-height: auto; /* Remove fixed height to allow natural sizing */
    }
    
    .category-card .category-icon,
    .category-icon {
        width: 70px !important; /* Reduced from 70px (~29% reduction) */
        height: 70px !important;
        margin-bottom: 0.75rem !important; /* Reduced from 1rem */
    }
    
    .category-card h5,
    .category-card .card-title {
        font-size: 0.9375rem !important; /* ~15px, reduced from default */
        margin-top: 0.5rem !important; /* Reduced from mt-3 */
    }
    
    /* Product cards - tuned for natural appearance on mobile */
    .product-image {
        width: 100% !important;
        height: auto !important;
        max-height: 65vh;
        aspect-ratio: auto !important;
        object-fit: contain !important;
        object-position: center !important;
        overflow: visible !important;
        display: block;
    }

    .card.h-100 {
        height: auto !important;
    }
    
    /* Product card body - reduced padding for more natural height */
    .card-body {
        padding: 0.85rem 1rem; /* Further reduced vertical padding */
    }

    .product-card-link .card-body {
        padding-bottom: 0.75rem !important;
    }
    
    /* Product card titles - slightly reduced but still readable */
    .card-title,
    h6.card-title {
        font-size: clamp(1rem, 3.2vw, 1.1875rem) !important; /* One responsive step smaller */
        line-height: 1.4;
        margin-bottom: 0.4rem; /* Tighten spacing */
        font-weight: 600;
    }
    
    /* Product card price - slightly reduced */
    .card-text.text-primary,
    .card-text.text-danger {
        font-size: clamp(1.0625rem, 3.8vw, 1.25rem) !important; /* One responsive step smaller */
        font-weight: 700;
        margin-bottom: 0.6rem; /* Less whitespace below price */
    }
    
    /* Product card buttons - keep good tap targets but reduce padding */
    .card .btn,
    .card .btn-sm,
    .card .btn-outline-primary {
        padding: 0.65rem 1.1rem; /* Reduce vertical size ~15% */
        font-size: clamp(0.9rem, 2.8vw, 1rem); /* One responsive step down */
        min-height: 44px; /* Maintain minimum tap target */
        line-height: 1.4;
    }
    
    /* Product cards layout - single column, centered on mobile */
    /* Override Bootstrap grid for product cards on mobile - use very specific selectors */
    section.bg-light .row.g-4,
    section .row.g-4,
    main section .row.g-4,
    .row.g-4 {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    section.bg-light .row.g-4 > [class*="col-"],
    section .row.g-4 > [class*="col-"],
    main section .row.g-4 > [class*="col-"],
    .row.g-4 > [class*="col-"] {
        width: 100% !important;
        max-width: 420px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        flex: 0 0 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Product card wrapper - centered and full width with max-width */
    section.bg-light .row.g-4 > [class*="col-"] > .card,
    section .row.g-4 > [class*="col-"] > .card,
    main section .row.g-4 > [class*="col-"] > .card,
    .row.g-4 > [class*="col-"] > .card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    footer {
        padding: 2rem 0 1.5rem;
    }
    
    footer .row > div {
        margin-bottom: 1.5rem;
    }
    
    footer h5 {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .store-name {
        font-size: 1rem;
    }
    
    /* Small mobile: refine brand row sizing */
    .header-brand-row-mobile .header-logo {
        width: clamp(50px, 12vw, 65px) !important;
        height: clamp(50px, 12vw, 65px) !important;
        object-fit: contain;
    }
    
    .header-brand-row-mobile .store-name-mobile {
        font-size: clamp(2rem, 5vw, 1.5rem) !important; /* 18-24px */
        order: 1;
    }
    
    .header-brand-row-mobile .meat-text-mobile {
        font-size: clamp(2rem, 4.5vw, 1.375rem) !important; /* 16-22px */
        color: var(--meat-red);
        order: 3;
    }
    
    .meat-text-header {
        font-size: 1rem;
    }
    
    .hero-section {
        padding-top: calc(1.75rem + env(safe-area-inset-top, 0px));
        padding-bottom: calc(2.5rem + env(safe-area-inset-bottom, 0px));
        min-height: auto;
        height: auto;
        max-height: none;
        background-size: cover;
        background-position: center center;
        margin-bottom: 1rem;
        overflow: visible;
    }
    
    .hero-center {
        min-height: auto;
        height: auto;
        padding: 1.25rem 0.75rem;
    }
    
    .hero-center .d-flex.gap-3 {
        margin-bottom: 0;
    }
    
    .slogan {
        font-size: 1rem;
    }
    
    .meat-silhouettes img {
        width: 90px;
        height: auto;
    }
    
    .hero-description {
        font-size: 0.85rem;
        padding: 1rem 0.75rem;
    }
    
    .hero-markers li {
        padding: 0.6rem 0.75rem;
        font-size: 0.85rem;
    }
    
    section h2 {
        font-size: 1.5rem;
    }
    
    .category-icon {
        width: 50px !important; /* Keep reduced size for mobile */
        height: 50px !important;
    }
    
    .product-image {
        width: 100% !important;
        height: auto !important;
        max-height: 65vh;
        aspect-ratio: auto !important;
        object-fit: contain !important;
        object-position: center !important;
        overflow: visible !important;
        display: block;
    }
    
    .d-flex.gap-2 {
        gap: 0.5rem !important;
    }
    
    .form-control, .form-select {
        font-size: 0.9rem;
    }
    
    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .card-footer {
        padding: 0.75rem;
    }
    
    .btn-primary, .btn-outline-primary {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Каталог - компактные фильтры и поиск */
.catalog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.catalog-filters form {
    flex: 1 1 auto;
    min-width: 250px;
    max-width: 100%;
}

.catalog-filters .form-control-sm {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

.catalog-filters .form-select-sm {
    font-size: 0.875rem;
    padding: 0.375rem 2rem 0.375rem 0.75rem;
    flex-shrink: 0;
}

@media (max-width: 767.98px) {
    .catalog-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .catalog-filters > * {
        width: 100%;
    }
    
    .catalog-filters .form-select-sm {
        width: 100% !important;
    }
    
    /* Mobile Header: Two-row layout */
    .navbar .container {
        flex-direction: column;
        padding: 0.75rem 1rem;
        gap: 0.75rem;
        min-height: auto;
    }
    
    /* Brand row - full width, centered */
    .header-brand-row-mobile {
        width: 100%;
        order: 1;
    }
    
    .header-brand-row-mobile .header-brand-container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        order: 1;
    }
    
    .header-brand-row-mobile .header-brand {
        width: 100%;
        max-width: 100%;
        padding: 0.75rem 1rem;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
        border-radius: 12px;
    }
    
    /* Brand elements in single row */
    .header-brand-row-mobile .store-name-mobile {
        font-size: clamp(1.25rem, 5.5vw, 1.75rem);
        font-weight: 700;
        color: var(--text-white);
        white-space: nowrap;
        order: 1;
        letter-spacing: 0.5px;
    }
    
    .header-brand-row-mobile .header-logo {
        width: clamp(55px, 14vw, 70px);
        height: clamp(55px, 14vw, 70px);
        flex-shrink: 0;
        order: 2;
        object-fit: contain;
    }
    
    .header-brand-row-mobile .meat-text-mobile {
        font-size: clamp(2rem, 5vw, 1.5rem);
        font-weight: 700;
        color: var(--meat-red);
        white-space: nowrap;
        order: 3;
        letter-spacing: 0.5px;
    }
    
    /* Buttons row - burger left, cart right */
    .header-buttons-row-mobile {
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        order: 2;
    }
    
    .header-buttons-row-mobile .navbar-toggler {
        min-width: 44px;
        min-height: 44px;
        padding: 0.5rem 0.75rem;
        border-color: rgba(0, 122, 61, 0.5);
        flex-shrink: 0;
    }
    
    .header-buttons-row-mobile .header-sidebar-right {
        width: auto;
        padding: 0;
        align-self: center;
        flex-shrink: 0;
    }
    
    .header-buttons-row-mobile .cart-sidebar-btn {
        flex-direction: row;
        padding: 0.5rem 0.75rem;
        min-width: 44px;
        min-height: 44px;
        width: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .header-buttons-row-mobile .cart-sidebar-btn i {
        font-size: 1.25rem;
    }
    
    /* Hide mobile nav initially (collapsed) */
    #mobileNav {
        order: 3;
        width: 100%;
    }
}

/* Дополнительные улучшения для мобильных */
@media (max-width: 576px) {
    .navbar-toggler {
        padding: 0.4rem 0.6rem;
    }
    
    .navbar-toggler-icon {
        width: 1.2em;
        height: 1.2em;
    }
    
    .card {
        border-radius: 12px;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .list-group-item {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .breadcrumb {
        font-size: 0.85rem;
        padding: 0.5rem 0;
    }
    
    .alert {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .pagination .page-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .table-responsive {
        font-size: 0.85rem;
    }
    
    .input-group {
        flex-wrap: nowrap;
    }
    
    .input-group .form-control {
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   MOBILE READABILITY IMPROVEMENTS
   Applied only for screens < 768px to improve typography and tap targets
   without affecting desktop layout
   ========================================================================== */

@media (max-width: 767.98px) {
    /* ----- Mobile Typography Scale -----
       Using rem units for consistency. Base: 16px
       Scale: 0.875rem (14px), 1rem (16px), 1.125rem (18px), 1.25rem (20px)
    */
    
    /* Body text minimum size */
    body {
        font-size: 1rem; /* 16px base */
        line-height: 1.6;
    }
    
    /* Paragraphs and general text */
    p, li, span, label, td, th {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* Small text classes - enforce minimum readable size */
    .small, small, .text-muted.small {
        font-size: 0.875rem !important; /* 14px minimum */
        line-height: 1.5;
    }
    
    /* Card titles - ensure readability (will be overridden by product card specific rules below) */
    .card-title, h6.card-title {
        font-size: 1.0625rem; /* ~17px - default for non-product cards */
        line-height: 1.4;
        margin-bottom: 0.5rem;
    }
    
    /* Card text */
    .card-text {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    /* Category text in cards */
    .card-body .text-muted {
        font-size: 0.875rem;
    }
    
    /* ----- Header / Navigation Mobile Typography ----- */
    
    /* Store name in header - readable size for mobile row layout */
    .store-name-mobile {
        font-size: clamp(1.3rem, 3.5vw, 1.125rem) !important; /* 15-18px */
        line-height: 1.2;
        order: 1;
    }
    
    /* Meat text in header - matching store name */
    .meat-text-mobile {
        font-size: clamp(1.3rem, 3.5vw, 1.125rem) !important; /* 15-18px */
        line-height: 1.2;
        color: var(--meat-red);
        order: 3;
    }
    
    /* Header logo - balanced size for mobile row */
    .header-brand .header-logo {
        order: 2;
    }
    
    /* Mobile navigation links */
    #mobileNav .nav-link {
        font-size: 1rem; /* 16px */
        padding: 0.875rem 1.25rem; /* Larger tap target */
        min-height: 48px;
        line-height: 1.4;
    }
    
    #mobileNav .nav-link i {
        font-size: 1.25rem; /* Larger icons in nav */
    }
    
    /* Navbar toggler - ensure 44x44px minimum */
    .navbar-toggler {
        min-width: 44px;
        min-height: 44px;
        padding: 0.5rem;
    }
    
    .navbar-toggler-icon {
        width: 1.5em;
        height: 1.5em;
    }
    
    /* ----- Hero Section Mobile Typography ----- */
    
    /* Brand title in hero */
    .brand-title {
        font-size: clamp(2rem, 7vw, 2.3rem);
        line-height: 1.3;
    }
    
    /* Slogan */
    .slogan {
        font-size: clamp(2rem, 5.5vw, 1.45rem);
        line-height: 1.4;
        margin: 1.25rem 0;
    }
    
    /* Hero description - larger for readability */
    .hero-description {
        font-size: 1rem; /* 16px */
        line-height: 1.7;
        padding: 1.5rem 1.25rem;
    }
    
    /* Hero markers list */
    .hero-markers li {
        font-size: 1rem; /* 16px */
        line-height: 1.5;
        padding: 1rem 1.25rem;
    }
    
    /* Hero markers checkmark */
    .hero-markers li::before {
        width: 32px;
        height: 32px;
        font-size: 1.125rem;
        flex-shrink: 0;
    }
    
    /* ----- Buttons Mobile Typography & Tap Targets ----- */
    
    /* Primary and outline buttons - larger tap targets */
    .btn-primary, 
    .btn-outline-primary,
    .btn-secondary,
    .btn-outline-secondary,
    .btn-light,
    .btn-outline-light,
    .btn-danger {
        font-size: 1rem; /* 16px */
        padding: 0.75rem 1.5rem;
        min-height: 48px;
        line-height: 1.4;
    }
    
    /* Large buttons */
    .btn-lg {
        font-size: 1.0625rem; /* ~17px */
        padding: 0.875rem 1.75rem;
        min-height: 52px;
    }
    
    /* Small buttons - ensure minimum tap target */
    .btn-sm {
        font-size: 0.9375rem; /* 15px */
        padding: 0.5rem 1rem;
        min-height: 44px;
        line-height: 1.4;
    }
    
    /* ----- Forms Mobile Typography ----- */
    
    /* Form controls */
    .form-control, .form-select {
        font-size: 1rem; /* 16px - prevents iOS zoom */
        padding: 0.75rem 1rem;
        min-height: 48px;
        line-height: 1.4;
    }
    
    .form-control-sm, .form-select-sm {
        font-size: 1rem; /* Keep 16px to prevent iOS zoom */
        padding: 0.625rem 0.875rem;
        min-height: 44px;
    }
    
    /* Form labels */
    .form-label {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    /* Form text/help */
    .form-text {
        font-size: 0.875rem;
        line-height: 1.5;
    }
    
    /* ----- Category Cards Mobile ----- */
    
    .category-card {
        padding: 2rem 1.25rem;
    }
    
    .category-card h5, .category-card .card-title {
        font-size: 1.0625rem; /* ~17px */
        line-height: 1.4;
    }
    
    /* Category icons - reduced size on mobile */
    .category-card .category-icon,
    .category-icon {
        width: 100px !important; /* Reduced from 80px (~38% reduction) */
        height: 100px !important;
        margin-bottom: 0.75rem !important; /* Reduced from 1.25rem */
    }
    
    /* Category cards - reduced padding and typography */
    .category-card {
        padding: 1rem 0.75rem !important; /* Reduced from 2rem 1.25rem (~40% reduction) */
    }
    
    .category-card h5,
    .category-card .card-title {
        font-size: 1.4rem !important; /* ~15px, reduced */
        line-height: 1.3;
        margin-top: 0.5rem !important;
    }
    
    /* ----- Product Cards Mobile - Tuned for Natural Appearance ----- */
    
    .product-image {
        width: 100% !important;
        height: auto !important;
        max-height: 65vh;
        aspect-ratio: auto !important;
        object-fit: contain !important;
        object-position: center !important;
        overflow: visible !important;
        display: block;
    }
    
    /* Product card body - reduced padding for more natural height */
    .card-body {
        padding: 0.85rem 1rem !important; /* Further reduced vertical padding */
    }
    
    /* Product card titles - slightly reduced but still readable */
    .card-title,
    h6.card-title {
        font-size: clamp(1rem, 3.2vw, 1.1875rem) !important; /* One responsive step smaller */
        line-height: 1.4;
        margin-bottom: 0.4rem !important; /* Tighten spacing */
        font-weight: 600;
    }
    
    /* Product card price - slightly reduced */
    .card-text.text-primary,
    .card-text.text-danger,
    .card-text.fw-bold {
        font-size: clamp(1.0625rem, 3.8vw, 1.25rem) !important; /* One responsive step smaller */
        font-weight: 700;
        margin-bottom: 0.6rem !important; /* Less whitespace below price */
        line-height: 1.3;
    }
    
    /* Product card buttons - keep good tap targets but reduce padding */
    .card .btn,
    .card .btn-sm,
    .card .btn-outline-primary,
    .card .btn-primary {
        padding: 0.65rem 1.1rem !important; /* Reduce vertical size ~15% */
        font-size: clamp(0.9rem, 2.8vw, 1rem) !important; /* One responsive step down */
        min-height: 44px !important; /* Maintain minimum tap target */
        line-height: 1.4;
        font-weight: 600;
    }
    
    /* Product card spacing - ensure cards don't overflow */
    /* Product cards layout - single column, centered on mobile (767.98px breakpoint) */
    section .row.g-4,
    .row.g-4 {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    section .row.g-4 > [class*="col-"],
    .row.g-4 > [class*="col-"] {
        width: 100% !important;
        max-width: 420px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        flex: 0 0 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Product card wrapper - centered and full width with max-width */
    section .row.g-4 > [class*="col-"] > .card,
    .row.g-4 > [class*="col-"] > .card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }
    
    /* ----- Cart Page Mobile Typography ----- */
    
    /* Cart item product name */
    .cart-item-card .card-title,
    .cart-item-card h5 {
        font-size: 1.0625rem; /* ~17px */
        line-height: 1.4;
    }
    
    /* Cart item details */
    .cart-item-card .text-muted {
        font-size: 0.875rem;
    }
    
    /* Cart price display */
    .cart-item-card .fw-bold.text-primary,
    .cart-item-card .fs-5 {
        font-size: 1.125rem !important; /* 18px */
    }
    
    /* Quantity controls - larger tap targets */
    .quantity-btn {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }
    
    .quantity-input {
        font-size: 1rem;
        min-height: 44px;
    }
    
    /* Cart summary */
    .cart-summary h4 {
        font-size: 1.25rem;
    }
    
    .cart-summary .text-muted,
    .cart-summary span {
        font-size: 1rem;
    }
    
    .cart-summary .fs-4 {
        font-size: 1.375rem !important; /* 22px */
    }
    
    /* Empty cart text */
    .empty-cart h3 {
        font-size: 1.375rem;
        line-height: 1.4;
    }
    
    .empty-cart p {
        font-size: 1rem;
    }
    
    /* ----- Badges Mobile ----- */
    
    .badge {
        font-size: 0.8125rem; /* 13px */
        padding: 0.375rem 0.625rem;
        line-height: 1.3;
    }
    
    .badge.fs-6 {
        font-size: 0.875rem !important; /* 14px */
    }
    
    /* Cart badge in header - larger tap indicator */
    .cart-badge-sidebar {
        width: 22px;
        height: 22px;
        font-size: 0.75rem;
    }
    
    /* ----- Icons Mobile Sizing ----- */
    
    /* General icon size increase */
    .bi {
        font-size: 1.25em; /* Relative to parent, slightly larger */
    }
    
    /* Category icon in list */
    .category-icon-small img {
        width: 28px !important;
        height: 28px !important;
    }
    
    /* Meat silhouettes in hero */
    .meat-silhouettes img {
        width: 100px;
        height: auto;
    }
    
    /* Cart sidebar button - ensure tap target */
    .cart-sidebar-btn {
        min-width: 48px;
        min-height: 48px;
        padding: 0.625rem 0.875rem;
    }
    
    .cart-sidebar-btn i {
        font-size: 1.5rem;
    }
    
    /* ----- List Group Items Mobile ----- */
    
    .list-group-item {
        font-size: 1rem;
        padding: 1rem 1.25rem;
        min-height: 48px;
    }
    
    /* ----- Alerts Mobile ----- */
    
    .alert {
        font-size: 1rem;
        padding: 1rem 1.25rem;
        line-height: 1.5;
    }
    
    /* ----- Breadcrumbs Mobile ----- */
    
    .breadcrumb {
        font-size: 0.9375rem; /* 15px */
        padding: 0.625rem 0;
    }
    
    .breadcrumb-item + .breadcrumb-item::before {
        padding-right: 0.625rem;
        padding-left: 0.625rem;
    }
    
    /* ----- Section Headings Mobile ----- */
    
    section h2 {
        font-size: 1.625rem; /* 26px */
        margin-bottom: 1.5rem; /* Reduced for better flow */
        line-height: 1.3;
    }
    
    /* Section spacing - adjusted for mobile harmony */
    section.py-5 {
        padding-top: 2.5rem !important; /* Reduced from default 3rem */
        padding-bottom: 2.5rem !important;
    }
    
    /* ----- Footer Mobile Typography ----- */
    
    footer {
        padding: 2.5rem 0 2rem;
    }
    
    footer p, footer a {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    footer h5 {
        font-size: 1.125rem; /* 18px */
        margin-bottom: 1rem;
    }
    
    /* ----- Pagination Mobile ----- */
    
    .pagination .page-link {
        font-size: 1rem;
        padding: 0.625rem 0.875rem;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* ----- Table Mobile ----- */
    
    .table {
        font-size: 0.9375rem; /* 15px */
    }
    
    .table th, .table td {
        padding: 0.875rem 0.75rem;
    }
    
    /* ----- Product Detail Page Mobile ----- */
    
    .product-info-card h1 {
        font-size: 1.5rem; /* 24px */
        line-height: 1.3;
    }
    
    .product-price {
        font-size: 1.875rem; /* 30px */
    }
    
    .total-price-display .label {
        font-size: 1rem;
    }
    
    .total-price-display .value {
        font-size: 1.5rem; /* 24px */
    }
    
    /* Add to cart form label */
    .product-info-card .form-label {
        font-size: 1rem;
    }
    
    /* Add to cart button */
    .add-to-cart-btn {
        font-size: 1.0625rem; /* ~17px */
        padding: 1rem 1.5rem;
        min-height: 52px;
    }
    
    /* Product description */
    .product-info-card .text-muted {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    /* Related products heading */
    .related-products-section h3 {
        font-size: 1.375rem; /* 22px */
    }
    
    /* ----- Halal Badge Mobile ----- */
    
    .halal-badge-text {
        font-size: 14px; /* Larger than default 12px */
    }
    
    .halal-badge-small .halal-badge-text {
        font-size: 10px; /* Larger than default 8px */
    }
    
    /* Hero halal star text */
    .hero-halal-star .halal-badge-text {
        font-size: 32px; /* Larger than default 28px on mobile */
    }
    
    /* ----- Brand name in footer/header ----- */
    
    .brand-name {
        font-size: 1rem;
        line-height: 1.4;
    }
}

/* Extra small screens (< 576px) - additional adjustments */
@media (max-width: 575.98px) {
    /* Even smaller screens may need tighter but still readable text */
    
    .hero-description {
        font-size: 1.2rem; /* 15px - slightly smaller but still readable */
        padding: 1.25rem 1rem;
    }
    
    .hero-markers li {
        font-size: 1.1rem; /* 15px */
        padding: 0.875rem 1rem;
    }
    
    /* Store name adjustment for very small screens */
    .store-name-mobile {
        font-size: clamp(1.3rem, 2.8vw, 0.9375rem) !important; /* 13-15px */
    }
    
    .meat-text-mobile {
        font-size: clamp(1.3rem, 2.8vw, 0.9375rem) !important; /* 13-15px */
    }
    
    /* Category icons - keep reduced size */
    .category-icon {
        width: 65px !important; /* Keep reduced size for mobile */
        height: 65px !important;
    }
    
    /* Meat silhouettes */
    .meat-silhouettes img {
        width: 100px;
        height: auto;
    }
    
    /* Section headings */
    section h2 {
        font-size: 1.5rem; /* 24px */
    }
    
    /* Product detail price */
    .product-price {
        font-size: 1.75rem; /* 28px */
    }
    
    /* Cards - keep increased padding for product cards */
    .card-body {
        padding: 1.5rem !important; /* Keep increased padding for mobile */
    }
    
    /* Product card titles - keep larger typography */
    .card-title, h6.card-title {
        font-size: clamp(1.125rem, 4vw, 1.375rem) !important; /* Keep larger size for mobile */
        line-height: 1.4;
    }
}



/* Categories Grid - 6 columns layout */
.categories-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(6, 1fr);
}

/* Responsive breakpoints for categories grid */
@media (max-width: 1199.98px) {
    /* Large tablets and small desktops - 4 columns */
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 991.98px) {
    /* Tablets - 3 columns */
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767.98px) {
    /* Mobile landscape - 2 columns */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 575.98px) {
    /* Mobile portrait - 1 column */
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

.category-grid-item {
    display: flex;
}

.category-grid-item > a {
    width: 100%;
}
/* Improved contrast for meat-text in footer and other dark backgrounds */
footer .meat-text {
    color: #ff6b6b; /* Lighter red for better contrast on black background */
}

/* Ensure footer text has good contrast */
footer p {
    color: #e0e0e0; /* Lighter gray for better readability */
}

/* Improve footer heading contrast */
footer h5,
footer h6 {
    color: #00d66a; /* Brighter green for better contrast */
    font-weight: 600;
}

/* Ensure all footer links are visible */
footer a {
    color: #e0e0e0;
}

footer a:hover {
    color: #00d66a;
}

/* Footer heading styles - h2 styled as h5 for semantic correctness */
.footer-heading {
    font-size: 1.25rem;
    color: #00d66a;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Semantic heading fixes - maintain visual appearance while fixing hierarchy */
.category-card h3.card-title {
    font-size: 1.25rem; /* Same as h5 */
    font-weight: 600;
    margin-top: 1rem;
}

.product-card-link h4.card-title,
h4.card-title {
    font-size: 1rem; /* Same as h6 */
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Ensure proper contrast for all card titles */
.card-title {
    color: var(--text-white);
}
