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

body {
    font-family: 'Arial', sans-serif;
    /* Set global page background image */
    background: #f5f5dc url('images/background.png') no-repeat center fixed;
    background-size: cover;
}

.color-strip {
    display: flex;
    height: 120px;
}

.color-green {
    background: #00A651;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    font-weight: bold;
}

.color-beige {
    background: #f5f5dc;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
}

.color-orange {
    background: #FF6B00;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    font-weight: bold;
    border-radius: 20px;
    margin: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    overflow: hidden;
     /*overflow: visible;*/
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    position: relative;
    /* Removed offset that was compensating for the old color strip */
    top: 0;
}

/* Немного прозрачности, чтобы работал glass-эффект */
/*.header--image {
    background:
            linear-gradient(rgba(0, 60, 30, 0.85), rgba(0, 60, 30, 0.85)),
            url("images/hero-bg.png") center / cover no-repeat;
}*/
header {
    background: #214b2aeb;
    color: white;
    padding: 20px 40px 10px;

    border-top-left-radius: 20px;  /* Matches container rounding */
    border-top-right-radius: 20px;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 32px;
    font-weight: bold;
}

.logo img {
    height: 44px;
    width: auto;
    display: block;
}

.logo-number {
    color: #FFD700;
}

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

.icon-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;

    background: none; /* Removed the circular background */
    padding: 0;
}

.icon-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
    background: none;
}

.logo{
    cursor: pointer;
}

nav {
    display: flex;
    gap: 28px;
    padding: 10px 0 15px 0;
}

nav a {
    color: #ffffff;
    font-weight: 500;
    opacity: 0.9;
    text-decoration: none;
}

nav a:hover,
nav a.active {
    opacity: 1;
    color: #ffb300;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #FFD700;
    transition: width 0.3s;
}

nav a.active::after {
    width: 100%;
}

nav a:hover::after {
    width: 100%;
}

.icon-btn svg {
    width: 100%;
    height: 100%;
}

.hero {
    background:
            linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
            url("images/header_background.png") center / cover no-repeat;
    padding: 100px 40px;
    text-align: center;
    color: white;
}


.hero::before {
    content: none;
}

.hero h1 {
    font-size: 54px;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero p {
    font-size: 22px;
    opacity: 0.95;
    margin-bottom: 35px;
}

.btn-primary {
    background: #FF6B00;
    color: white;
    border: none;
    padding: 18px 45px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255,107,0,0.4);
}

.btn-primary:hover {
    background: #ff8c00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,107,0,0.6);
}

.main-content {
    padding: 60px 40px;
}

.main-content h2 {
    text-align: center;
    font-size: 42px;
    margin-bottom: 40px;
    color: #333;
}

.categories {
    padding: 60px 40px;
    background: linear-gradient(to bottom, white 0%, #f5f5f5 100%);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}


.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;

    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-radius: 22px;
    padding: 22px;

    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow:
            0 8px 30px rgba(0, 0, 0, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);

    transition: all 0.35s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}/*
.category-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border-radius: 22px;
    padding: 30px;
    text-align: center;
    cursor: pointer;

    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow:
            0 8px 30px rgba(0, 0, 0, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);

    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}*/

.category-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow:
        0 18px 40px rgba(0, 166, 81, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.category-icon {
    font-size: 72px;
    margin-bottom: 14px;
    transition: transform 0.4s ease;
}

.category-card:hover .category-icon {
    transform: translateY(-6px) scale(1.15);
}
.category-card::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
            120deg,
            transparent 40%,
            rgba(255, 255, 255, 0.35),
            transparent 60%
    );
    transform: rotate(25deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
            0 20px 45px rgba(0, 166, 81, 0.35),
            inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.category-card:hover img {
    transform: scale(1.08);
}

.category-card:hover::after {
    opacity: 1;
    left: 100%;
}

.category-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0,166,81,0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s;
}

.category-card:hover::before {
    left: 100%;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,166,81,0.2);
}

.category-icon {
    font-size: 80px;
    margin-bottom: 15px;
    display: block;
    transition: transform 0.3s;
}

.category-card:hover .category-icon {
    transform: scale(1.2) rotate(5deg);
}

.category-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f1f1f;
    text-align: center;
}

.emoji-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
}

.special-offers {
    padding: 60px 40px;
    background: white;
}

.special-offers h2 {
    text-align: center;
    font-size: 42px;
    margin-bottom: 40px;
    color: #333;
}

.offers-container {
    position: relative;
    overflow: hidden;
    padding: 0 50px;
}

.offers-slider {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
}

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

.offer-card {
/*    min-width: calc(25% - 22.5px);
    background: #f8f8f8;
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;*/

    min-width: 260px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 16px;

    display: flex;
    flex-direction: column;
    gap: 14px;

    transition: all 0.35s ease;
    cursor: pointer;
}

.offer-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.offer-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 15px;
    font-size: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.offer-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.offer-prices {
    display: flex;
    align-items: center;
    gap: 10px;
}

.old-price {
    font-size: 16px;
    color: #888;
    text-decoration: line-through;
}

.new-price {
    font-size: 22px;
    font-weight: 700;
    color: #e60000;
}

.offer-title {
    font-size: 16px;
    font-weight: 500;
    color: #222;
}

.offer-price {
    color: #FF0000;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
}

.offer-title {
    color: #333;
    font-size: 16px;
    font-weight: 500;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #00A651;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
    transition: all 0.3s;
}

.slider-btn:hover {
    background: #008844;
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: 0;
}

.slider-btn.next {
    right: 0;
}


/* 1. Constraint the actual image tag */
.offer-image img {
    width: 100%;
    height: 100%;
    /* 'contain' is best for products on white backgrounds so they don't get cropped */
    /* Use 'cover' if you want the image to fill the whole square */
    object-fit: contain;
    display: block;
}

/* 2. Update the container to clip any overlap */
.offer-image {
    width: 100%;
    height: 200px; /* This keeps the height consistent */
    overflow: hidden; /* This prevents the image from "bleeding" out */
    background-color: #fff; /* Ensures a clean look if the image is transparent */
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 3. Ensure the slider allows scrolling and doesn't break the page width */
.offers-slider {
    display: flex;
    gap: 30px;
    padding: 20px;
    /*overflow-x: auto; !* Allows horizontal scrolling *!*/
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Smooth scroll for mobile */
}

/* Optional: Hide the scrollbar for a cleaner look */
.offers-slider::-webkit-scrollbar {
    display: none;
}

footer {
    /* Solid dark green background matching the screenshot */
    background: #003c1e;
    color: white;
    padding: 30px 60px;
    margin-top: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1320px; /* Aligns with your container width */
    margin: 0 auto;
}

.contact-info {
    text-align: left;
}

.contact-label {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 4px;
}

.phone-number {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: white; /* White background for icons as seen in screenshot */
    color: #003c1e;    /* Icon color matches footer background */
    border-radius: 8px; /* Rounded corners instead of circles */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}


.social-icon svg {
    width: 22px;
    height: 22px;
    fill: #003c1e; /* Icon color matches footer background */
}

.social-icon:hover {
    transform: translateY(-3px);
    background: #f0f0f0;
}

.social-icon svg[stroke="currentColor"] {
    stroke: #003c1e;
    fill: none;
}


/* Desktop: Hide burger button */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 3px;
}

/* Mobile View (max-width: 768px) */
@media (max-width: 768px) {
    /* 1. Hide the search and user icons */
    .header-icons {
        display: none;
    }

    /* 2. Show the burger button */
    .burger-menu {
        display: flex;
    }

    /* 3. Hide the nav menu by default and style it as a dropdown */
    nav {
        /*display: none; !* Hidden until toggled *!*/
        flex-direction: column;
        /*width: 100%;*/
        background: #214b2aeb;
        position: absolute;
        top: 88px;
        /*left: 0;*/
        padding: 20px;
        z-index: 1000;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);






        display: flex; /* Always flex, but controlled by opacity/pointer-events */

        /* Menu Width and Position */
        width: 70%; /* Less than full width */
        /*top: 100%; !* Sits right below the header *!*/
        right: 0;   /* Aligns to the right side */

        /* Visuals */
        /*box-shadow: -5px 10px 15px rgba(0,0,0,0.1);*/
        border-bottom-left-radius: 15px;

        /* Slow Fade Animation */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
        pointer-events: none; /* Prevents clicking links when hidden */
    }

    /* Class to show menu via JavaScript */
    nav.active {
        display: flex;

        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    nav a {
        padding: 10px 0;
        width: 100%;

        display: block;
        opacity: 0.9;
    }




}
@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .color-strip {
        flex-direction: column;
        height: auto;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .categories {
        padding: 40px 20px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .offer-card {
        min-width: calc(50% - 15px);
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .offer-card {
        min-width: 220px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .contact-info {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        padding: 18px;
    }

    .category-card h3 {
        font-size: 16px;
    }

    .offers-container {
        padding: 0 20px;
    }

    .offer-card {
        min-width: 85%;
    }
}
