:root {
    --text-color: #2C2C2C;
    --bg-color: #FFFFFF;
    --primary-color: #6a5b46;
    --secondary-color: #F4F1EA;
    --white: #FFFFFF;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background-color: var(--text-color);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::after {
    height: 100%;
}

.btn--outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn--outline:hover {
    color: var(--white);
}

.btn--outline::after {
    background-color: var(--primary-color);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: var(--transition);
    /* Gradient overlay for better text visibility - Increased darkness */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
}

.header.scrolled {
    background: #1a1a1a;
    /* Solid dark background when scrolled */
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    /* Stronger shadow */
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--white);
    /* Force white text */
}

.nav__list {
    display: flex;
    gap: 30px;
}

.nav__link {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    color: var(--white);
    /* Force white text */
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav__link:hover::after {
    width: 100%;
}

.btn--sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    height: 100svh;
    /* Prevent layout shift on mobile */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center horizontally */
    overflow: hidden;
    background-color: var(--secondary-color);
    /* perspective: 1000px; - Removed to improve text sharpness */
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 30px 40px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 15px 40px rgba(106, 91, 70, 0.15);
    text-align: center;
    margin: 0 auto;
    width: 90%;

    /* Fix for blurry text on mobile/tablets caused by backdrop-filter/transforms */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform, backdrop-filter;

    /* Aggressive clear text settings */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.hero__title {
    font-size: 4.5rem;
    /* Larger title */
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.hero__subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: var(--text-color);
    max-width: 600px;
    margin-left: auto;
    /* Center block element */
    margin-right: auto;
}

.hero__visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    /* Let clicks pass through to content if needed */
}

/* Ensure canvas captures mouse events if we need them, wait, if pointer-events is none opacity will fail. 
   Actually we need mouse events on the window or container, usually window for full screen. 
   But let's keep pointer-events: auto on container if we attach listener to it? 
   No, the listener is on 'container' in JS. If container is full screen z-index 1, and content is z-index 2, 
   the content blocks mouse over it. 
   Better to listen to window 'mousemove' in JS (which I did previous step partially).
   So pointer-events: none allows clicking buttons behind it? 
   The Request says "отодвигаются при наведении", so visual effect. Buttons need to be clickable.
   So .hero__visual z-index: 1, content z-index: 2.
   We will listen to mousemove on window. */


/* About Section */
.about {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fff 50%, var(--secondary-color) 50%);
    padding: 120px 0;
    /* Increased padding */
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.about__text {
    position: relative;
    z-index: 2;
    background: #fff;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.about__text p {
    font-size: 1.15rem;
    margin-bottom: 30px;
    color: #444;
    line-height: 1.8;
}

.about__image {
    position: relative;
}

.about__image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 20px 20px 0px var(--primary-color);
    transition: var(--transition);
}

.about__image:hover img {
    transform: translate(-5px, -5px);
    box-shadow: 25px 25px 0px var(--primary-color);
}


/* Bestsellers */
.bestsellers {
    padding: 120px 0 40px;
}

.bestsellers .section-title {
    font-size: 3.5rem;
    margin-bottom: 60px;
}

.bestsellers__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.product-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

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

.product-card__img-container {
    height: 250px;
    overflow: hidden;
}

.product-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-card__content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card__title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-family: var(--font-heading);
    color: var(--text-color);
}

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

.product-card__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-card__price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.btn--icon {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
}

/* Categories */
.categories {
    padding: 40px 0 100px;
}

.categories .section-title {
    font-size: 3.5rem;
    margin-bottom: 60px;
}

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

.category-card {
    position: relative;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    transition: background 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.category-card:hover .category-card__overlay {
    background: rgba(0, 0, 0, 0.2);
    /* Lighten on hover */
}

.category-card__text {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 1.8rem;
    font-family: var(--font-heading);
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.category-card:hover .category-card__text {
    transform: scale(1.1);
}

/* Advantages */
.advantages {
    position: relative;
    padding: 140px 0;
    background-image: url('../images/beans_bg.png');
    background-attachment: fixed;
    /* Parallax effect */
    background-size: cover;
    background-position: center;
    color: #ffd700;
    /* Goldish text */
    text-align: center;
}

/* Dark overlay to make text readable */
.advantages::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.advantages .container {
    position: relative;
    z-index: 2;
}

.advantages__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.advantage-item {
    transition: transform 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-10px);
}

.advantage-item h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #e6c288;
    /* Soft gold */
    font-family: var(--font-heading);
    position: relative;
    display: inline-block;
}

.advantage-item h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: #e6c288;
    margin: 15px auto 0;
}

.advantage-item p {
    font-size: 1.1rem;
    color: #ddd;
    line-height: 1.6;
}

/* Gallery */
.gallery {
    padding: 100px 0;
}

.gallery .section-title {
    font-size: 3.5rem;
    margin-bottom: 60px;
}

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

.gallery__item {
    position: relative;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery__item:hover img {
    transform: scale(1.1);
}

.gallery__item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(106, 91, 70, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gallery__item:hover::after {
    opacity: 1;
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 60px 0 20px;
}

.footer__container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer__logo {
    font-size: 2rem;
    font-family: var(--font-heading);
    margin-bottom: 20px;
}

.footer__text {
    max-width: 300px;
    color: #aaa;
}

.footer__title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer__links li,
.footer__contact li {
    margin-bottom: 10px;
}

.footer__links a {
    color: #ccc;
}

.footer__links a:hover {
    color: var(--white);
}

.footer__bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.9rem;
    color: #777;
}

/* Page Hero (Inner Pages) */
.page-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-bottom: 60px;
}

.page-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.page-hero__content {
    position: relative;
    z-index: 2;
}

.page-hero__title {
    font-size: 4rem;
    font-family: var(--font-heading);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.page-hero__subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
    color: #eee;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Story Section */
.about-story {
    background-color: #fff;
}

.about-story__content {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.about-story__title {
    font-size: 3rem;
    margin-bottom: 30px;
    text-align: left;
}

.about-story__body p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #555;
}

/* Drop Cap Styling */
.about-story__body p:first-child::first-letter {
    float: left;
    font-size: 4rem;
    line-height: 0.8;
    font-family: var(--font-heading);
    color: var(--primary-color);
    padding-right: 15px;
    padding-top: 5px;
    font-weight: 700;
}

.about-story__image-container {
    position: relative;
    padding: 20px;
    border: 1px solid #ddd;
    /* Frame effect */
    transform: rotate(-2deg);
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about-story__image-container:hover {
    transform: rotate(0deg) scale(1.02);
}

.about-story__badge {
    position: absolute;
    top: -20px;
    right: -20px;
    background: var(--primary-color);
    color: #fff;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(106, 91, 70, 0.4);
    transform: rotate(15deg);
    border: 3px solid #fff;
}

/* Our Values Section */
.values {
    background-color: var(--secondary-color);
    text-align: center;
    padding: 140px 0;
}

.values .section-title {
    font-size: 3.5rem;
    margin-bottom: 60px;
}

.values__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.values-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.values-card__icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: inline-block;
    filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.1));
}

.values-card__title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.values-card__text {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* Team Section (Carousel) */
.team {
    overflow: hidden;
    /* Hide scrollbar overflow from container */
    padding-bottom: 120px;
}

.team .section-title {
    font-size: 3.5rem;
    margin-bottom: 60px;
}

.team__wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.team-nav {
    background: var(--primary-color);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(106, 91, 70, 0.4);
    cursor: pointer;
    font-size: 1.8rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.team-nav:hover {
    background: #544633;
    /* Darker brown */
    transform: translateY(-50%) scale(1.1);
}

.team-nav--prev {
    left: -20px;
}

.team-nav--next {
    right: -20px;
}

/* Hide navigation on touch devices if preferred, but usually good to keep */
@media (max-width: 768px) {
    .team-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .team-nav--prev {
        left: 0;
    }

    .team-nav--next {
        right: 0;
    }
}

.team__carousel-container {
    width: 100%;
    overflow-x: auto;
    padding: 20px 0 60px;
    /* Space for shadows and transform */
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    /* Hide scrollbar */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
    scroll-behavior: smooth;
}

.team__carousel-container::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.team__carousel {
    display: flex;
    gap: 30px;
    padding: 0 10px;
    /* Minimal side padding */
}

.team-card {
    /* Show 3 items: (100% - total_gap_width) / 3 */
    /* gap is 30px. 2 gaps = 60px. */
    flex: 0 0 calc((100% - 60px) / 3);
    min-width: 250px;
    /* Prevent too small on mobile */
    scroll-snap-align: center;
    text-align: center;
    transition: transform 0.3s ease;
    cursor: pointer;
}

/* Menu Page Styles */
.menu-category {
    margin-bottom: 80px;
}

.menu-category__title {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.menu-category__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.menu-list {
    max-width: 800px;
    margin: 0 auto;
}

.menu-item {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-item__thumb {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    /* Circle or 12px for rounded square */
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: #f8f8f8;
}

.menu-item__content {
    flex-grow: 1;
}

.menu-item__header {
    display: flex;
    align-items: baseline;
    margin-bottom: 5px;
}


.menu-item__name {
    font-size: 1.4rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-color);
    flex-shrink: 0;
}

.menu-item__dots {
    flex-grow: 1;
    border-bottom: 1px dotted #ccc;
    margin: 0 15px;
    position: relative;
    top: -5px;
    /* Visual alignment */
}

.menu-item__price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    flex-shrink: 0;
}

.menu-item__desc {
    font-size: 0.95rem;
    color: #777;
    margin-top: 5px;
    max-width: 90%;
}


.team-card:hover {
    transform: translateY(-10px);
}

.team-card__image-wrapper {
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 5px solid #fff;
    transition: box-shadow 0.3s ease;
}

.team-card:hover .team-card__image-wrapper {
    box-shadow: 0 20px 40px rgba(106, 91, 70, 0.3);
}

.team-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-card__img {
    transform: scale(1.1);
}

.team-card__name {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.team-card__role {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999999;
    /* Max z-index */
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.lightbox.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.lightbox__img {
    max-width: 90vw;
    max-height: 90vh;
    /* Viewport units */
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    background: #fff;
    object-fit: contain;
}

.lightbox.active .lightbox__img {
    transform: scale(1);
}

.lightbox__close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: #fff;
    font-size: 4rem;
    cursor: pointer;
    line-height: 1;
    z-index: 1000000;
    background: none;
    border: none;
    padding: 10px;
    transition: transform 0.2s;
}

.lightbox__close:hover {
    transform: scale(1.2);
    color: var(--primary-color);
}

/* Contacts Page Styles */
.contacts-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.contacts-intro {
    text-align: center;
    margin-bottom: 60px;
}

.contacts-intro__text {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 20px auto 0;
    line-height: 1.8;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Force 2 columns */
    gap: 40px;
    /* Increased gap */
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .contacts-grid {
        grid-template-columns: 1fr;
        /* Stack on mobile */
    }
}

.contact-card {
    background: #fff;
    border-radius: 16px;
    /* Slightly more rounded */
    padding: 40px;
    /* Increased padding from 30px */
    display: flex;
    align-items: flex-start;
    gap: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
    min-height: 200px;
    /* Ensure they are tall/big */
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(106, 91, 70, 0.2);
}

.contact-card__icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-card__icon {
    font-size: 1.8rem;
}

.contact-card__content {
    flex-grow: 1;
}

.contact-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.contact-card__title {
    font-size: 1.2rem;
    font-family: var(--font-heading);
    color: var(--text-color);
    margin-bottom: 5px;
}

/* Specific adjustment for Hours card header */
.contact-card--hours .contact-card__title {
    margin-bottom: 0;
}

.contact-card__text {
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
    margin-bottom: 5px;
}

.contact-card__sub {
    font-size: 0.9rem;
    color: #888;
}

.contact-link {
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--primary-color);
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

.status-badge--open {
    background-color: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
}

.status-badge--closed {
    background-color: rgba(244, 67, 54, 0.1);
    color: #d32f2f;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    background-color: currentColor;
    position: relative;
}

.status-badge--open .status-dot::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 2px solid currentColor;
    opacity: 0.5;
    animation: pulsate 1.5s infinite;
}

@keyframes pulsate {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Hours List */
.hours-list {
    margin-top: 10px;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 4px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 4px;
}

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

/* Map Section */
.map-section {
    position: relative;
}

.map-container {
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: #e0e0e0;
    /* Placeholder color before map loads */
}

.map-iframe {
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.map-container:hover .map-iframe {
    filter: grayscale(0%);
}

/* Mobile Menu Styles */
.nav__close {
    display: none;
    /* Hidden by default on desktop */
}

.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 200;
}

.burger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--white);
    transition: all 0.3s ease;
}

/* Tablet & Mobile Breakpoint for Navigation (< 1025px) */
@media (max-width: 1024px) {
    .burger-btn {
        display: flex;
        /* Ensure distinct color if needed, but white should work on dark header */
    }

    /* Fix Horizontal Overflow/Wide Text in Menu List */
    .menu-item {
        /* No wrapping by default, but allow shrinking */
        align-items: flex-start;
    }

    .menu-item__content {
        min-width: 0;
        /* CRITICAL: Allows flex child to shrink below content size */
    }

    .menu-item__header {
        width: 100%;
        /* Ensure header takes full width */
        flex-wrap: wrap;
        /* Allow price to wrap if absolutely needed */
    }

    .menu-item__name {
        white-space: normal;
        /* Allow text to wrap */
        font-size: 1.1rem;
        max-width: 100%;
        /* Remove 60% limit, let flex handle it */
        margin-right: 10px;
        /* Space before price */
    }

    .menu-item__dots {
        display: none;
        /* Hide dots on mobile */
    }

    .menu-item__price {
        margin-left: auto;
        /* Push to right, or stay if wrapped */
    }

    .menu-item__thumb {
        width: 60px;
        height: 60px;
    }

    /* Global Safety */
    body,
    html {
        overflow-x: hidden;
        width: 100%;
    }

    .menu-list,
    .contacts-wrapper,
    .container {
        max-width: 100vw;
    }

    .nav__wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: #1a1a1a;
        z-index: 150;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        padding: 40px;
    }

    .nav__wrapper.active {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .nav__link {
        font-size: 1.5rem;
        font-family: var(--font-heading);
    }

    /* Header Actions on Mobile/Tablet */
    .header__actions {
        display: none;
    }

    .nav__close {
        display: block;
        position: absolute;
        top: 25px;
        right: 25px;
        background: transparent;
        border: none;
        color: var(--white);
        cursor: pointer;
        padding: 5px;
        line-height: 0;
        transition: transform 0.3s ease, color 0.3s ease;
        z-index: 160;
        /* Ensure it's above the menu background */
    }

    .nav__close svg {
        width: 32px;
        height: 32px;
        display: block;
    }

    .nav__close:hover {
        color: var(--primary-color);
        transform: rotate(90deg);
    }
}

/* Global Close Button Hide (Desktop) */



/* General Mobile Typography & Spacing (< 768px) */
@media (max-width: 768px) {

    /* Typography */
    .hero__title {
        font-size: 3rem;
    }

    .section-title,
    .menu-category__title,
    .page-hero__title {
        font-size: 2.2rem !important;
        /* Force override */
    }

    /* Spacing */
    .section-padding,
    .about,
    .categories {
        padding: 40px 0;
    }

    .menu-category {
        padding: 0;
    }

    .menu-category__title {
        margin-bottom: 20px !important;
        margin-top: 20px !important;
    }

    /* Grids */
    .about__grid,
    .bestsellers__grid,
    .values__grid,
    .gallery__grid,
    .contacts-grid,
    .advantages__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about__image {
        order: -1;
        /* Image first on mobile */
        margin-bottom: 30px;
    }

    .about__text {
        padding: 20px;
    }

    /* Contact Cards Mobile */
    .contact-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 20px;
    }

    .contact-card__header {
        flex-direction: column;
        gap: 10px;
        justify-content: center;
    }

    .hours-item {
        justify-content: space-between;
        gap: 20px;
        /* Ensure space between day and time */
    }

    /* Hero */
    .hero__content {
        padding: 30px 20px;
    }
}


/* Tablet Optimization (768px - 1024px) */
@media (max-width: 1024px) {
    .hero__title {
        font-size: 3.5rem;
        /* Scale down from 4.5rem */
    }

    .section-title,
    .menu-category__title {
        font-size: 3rem;
    }

    .container {
        padding: 0 40px;
        /* More breathing room on sides */
    }

    /* Reduce gap between Bestsellers and Categories on Tablet */
    .bestsellers {
        padding-bottom: 20px;
    }

    .categories {
        padding-top: 20px;
    }
}

/* Specific Tablet Layout for Bestsellers and Categories */
@media (min-width: 769px) and (max-width: 1024px) {
    .bestsellers__grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

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


/* Footer Mobile Response */
@media (max-width: 768px) {
    .footer__container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
    }

    .footer__text {
        margin: 0 auto;
    }

    .footer__col {
        width: 100%;
    }
}

/* Product Detail Modal (New) */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    margin: 0;
    /* Safety reset */
    width: 100vw;
    /* Use viewport width */
    height: 100vh;
    /* Use viewport height */
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.product-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.product-modal__content {
    background: #fff;
    width: 100%;
    max-width: 900px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-height: 90vh;
    overflow-y: auto;
    /* Scroll on small screens if needed */
}

.product-modal.active .product-modal__content {
    transform: translateY(0);
}

.product-modal__close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.product-modal__close:hover {
    background: #f0f0f0;
    color: var(--primary-color);
}

.product-modal__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.product-modal__image-wrapper {
    background: #f9f9f9;
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-modal__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-modal__info {
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.product-modal__tag {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    align-self: flex-start;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-modal__title {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--text-color);
    line-height: 1.1;
}

.product-modal__desc {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 30px;
}

.product-modal__meta {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.pm-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: #666;
}

.pm-icon {
    font-size: 1.5rem;
}

.product-modal__footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-modal__price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

/* Mobile Responsive for Modal */
@media (max-width: 768px) {
    .product-modal__grid {
        grid-template-columns: 1fr;
    }

    .product-modal__image-wrapper {
        min-height: 250px;
        height: 250px;
    }

    .product-modal__info {
        padding: 25px;
    }


    .product-modal__title {
        font-size: 1.8rem;
    }
}

/* Lightbox Base */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10001;
    /* Above modal */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox__img {
    max-width: 85vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    user-select: none;
}

/* Close Button */
.lightbox__close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 3rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    z-index: 10002;
    padding: 10px;
}

.lightbox__close:hover {
    color: #fff;
    transform: rotate(90deg);
}

/* Nav Buttons */
.lightbox__prev,
.lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 100px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    color: rgba(255, 255, 255, 0.5);
}

.lightbox__prev:hover,
.lightbox__next:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.lightbox__prev {
    left: 0;
}

.lightbox__next {
    right: 0;
}

/* Custom CSS Chevron Arrows */
.lightbox__prev::before,
.lightbox__next::before {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    border-top: 3px solid currentColor;
    border-right: 3px solid currentColor;
    transition: border-color 0.3s ease;
}

.lightbox__prev::before {
    transform: rotate(-135deg);
    margin-left: 10px;
}

.lightbox__next::before {
    transform: rotate(45deg);
    margin-right: 10px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {

    .lightbox__prev,
    .lightbox__next {
        width: 50px;
        height: 60px;
    }

    .lightbox__prev::before,
    .lightbox__next::before {
        width: 15px;
        height: 15px;
        border-width: 2px;
    }

    .lightbox__close {
        top: 15px;
        right: 15px;
        font-size: 2.5rem;
    }
}