/* CSS Variables */
:root {
    --color-milk: #F7F4EF;
    --color-beige: #E8DCCF;
    --color-caramel: #C9A98C;
    --color-brown: #8A6A55;
    --color-graphite: #3E3A37;
    --shadow-soft: 0 4px 20px rgba(62, 58, 55, 0.08);
    --shadow-medium: 0 8px 30px rgba(62, 58, 55, 0.12);
    --shadow-strong: 0 12px 40px rgba(62, 58, 55, 0.16);
    --transition: all 0.3s ease;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--color-milk);
    color: var(--color-graphite);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #3B3B3B;
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--color-graphite);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    cursor: pointer;
    pointer-events: auto;
    z-index: 1001;
    position: relative;
}

.logo img {
    height: 50px;
    width: auto;
    transition: var(--transition);
    object-fit: contain;
}

.logo:hover img {
    transform: scale(1.05);
}

.logo:hover {
    color: var(--color-brown);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: #F7F4EF;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-caramel);
    transition: var(--transition);
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: var(--color-caramel);
}

.cart-btn {
    background: var(--color-brown);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.cart-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cart-btn:hover::before {
    width: 300px;
    height: 300px;
}

.cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.cart-count {
    background: var(--color-caramel);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
    position: relative;
}

.burger span {
    width: 25px;
    height: 3px;
    background: #F7F4EF;
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero */
.hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-top: 70px;
    padding: 3rem 2rem;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-beige) 0%, var(--color-milk) 100%);
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    transition: transform 0.1s ease-out;
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(247, 244, 239, 0.7);
}

.hero-carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 4rem;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-strong);
}

.hero-carousel {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
}

.hero-slide {
    flex: 0 0 100%;
    min-width: 100%;
    position: relative;
}

.hero-slide-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.hero-slide-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
}

.hero-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide-info {
    background: white;
    padding: 2rem;
    text-align: center;
}

.hero-slide-title {
    font-size: 2rem;
    color: var(--color-graphite);
    margin-bottom: 1rem;
}

.hero-slide-description {
    font-size: 1.1rem;
    color: var(--color-brown);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.hero-slide-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-brown);
    margin-bottom: 1.5rem;
}

.hero-slide-banner {
    display: inline-block;
    background: var(--color-brown);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
}

.hero-slide-link:hover .hero-slide-banner {
    background: var(--color-caramel);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.hero-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid white;
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-brown);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: var(--transition);
    z-index: 10;
    box-shadow: var(--shadow-medium);
}

.hero-carousel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.hero-carousel-prev {
    left: 1rem;
}

.hero-carousel-next {
    right: 1rem;
}

/* Order Process */
.order-process {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.order-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.order-step {
    text-align: center;
    padding: 1.5rem;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--color-brown);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.order-step h3 {
    font-size: 1.3rem;
    color: var(--color-graphite);
    margin-bottom: 0.5rem;
}

.order-step p {
    color: var(--color-brown);
    font-size: 1rem;
    line-height: 1.6;
}

.order-note {
    text-align: center;
    font-size: 1.2rem;
    color: var(--color-graphite);
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--color-beige);
    border-radius: 15px;
    font-weight: 600;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    color: var(--color-graphite);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--color-brown);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--color-brown);
    color: white;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
}

.btn-secondary {
    background: transparent;
    color: var(--color-brown);
    border: 2px solid var(--color-brown);
}

.btn-secondary:hover {
    background: var(--color-brown);
    color: white;
    transform: translateY(-3px);
}

/* Products */
.products {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-graphite);
    margin-bottom: 3rem;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.products-gallery-container {
    position: relative;
    width: 100%;
    margin-bottom: 4rem;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    touch-action: pan-y;
}

.products-gallery-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.products-gallery {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
}

.gallery-item {
    flex: 0 0 100%;
    min-width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    aspect-ratio: 3 / 4;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
    background: white;
    max-width: 300px;
    margin: 0 auto;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--color-brown);
    background: white;
    color: var(--color-brown);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: var(--transition);
    z-index: 10;
    box-shadow: var(--shadow-medium);
}

.gallery-btn:hover {
    background: var(--color-brown);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.gallery-btn-prev {
    left: 1rem;
}

.gallery-btn-next {
    right: 1rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
    display: flex;
    flex-direction: column;
}

.product-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

.product-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--color-beige);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-brown);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.product-image::after {
    content: '🕯️';
    font-size: 4rem;
    opacity: 0.3;
    position: absolute;
    z-index: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-graphite);
    margin-bottom: 0.5rem;
}

.product-description {
    color: var(--color-brown);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-brown);
    margin-bottom: 1rem;
}

.add-to-cart {
    width: 100%;
    padding: 0.9rem;
    background: var(--color-brown);
    color: white;
    border: none;
    border-radius: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.add-to-cart::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.add-to-cart:hover::before {
    width: 300px;
    height: 300px;
}

.add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Advantages */
.advantages {
    padding: 5rem 2rem;
    background: var(--color-beige);
}

.advantages-container {
    max-width: 1200px;
    margin: 0 auto;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.advantage-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.advantage-item.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.advantage-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.advantage-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-graphite);
    margin-bottom: 0.5rem;
}

.advantage-text {
    color: var(--color-brown);
    font-size: 0.95rem;
}

/* Reviews */
.reviews {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.reviews-carousel {
    position: relative;
    margin-top: 3rem;
}

.reviews-container {
    display: flex;
    overflow: hidden;
    border-radius: 20px;
}

.review-slide {
    min-width: 100%;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.5s ease;
}

.review-image {
    width: 100%;
    max-width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.review-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--color-beige);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.review-stars {
    color: var(--color-caramel);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.review-text {
    font-size: 1.1rem;
    color: var(--color-graphite);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-style: italic;
}

.review-author {
    font-weight: 600;
    color: var(--color-brown);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.review-city {
    color: var(--color-brown);
    font-size: 0.9rem;
    margin-top: 0.3rem;
    opacity: 0.8;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--color-brown);
    background: white;
    color: var(--color-brown);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition);
}

.carousel-btn:hover {
    background: var(--color-brown);
    color: white;
    transform: scale(1.1);
}

/* About */
.about {
    padding: 5rem 2rem;
    background: var(--color-milk);
}

.about-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--color-graphite);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-text.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    background: var(--color-graphite);
    color: var(--color-milk);
    padding: 3rem 2rem 1.5rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--color-beige);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: white;
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-brown);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(232, 220, 207, 0.3);
    color: var(--color-beige);
}

/* Cart Notification */
.cart-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--color-brown);
    color: white;
    padding: 1rem 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-strong);
    z-index: 2000;
    opacity: 0;
    transform: translateY(100px);
    transition: var(--transition);
    pointer-events: none;
}

.cart-notification.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Header */
    .header-container {
        padding: 1rem;
        display: grid;
        grid-template-columns: auto 1fr auto;
        gap: 1rem;
        align-items: center;
    }

    .logo {
        font-size: 1.5rem;
        justify-self: center;
        order: 2;
    }

    .logo img {
        height: 40px;
    }

    .burger {
        display: flex;
        order: 1;
    }

    .cart-btn {
        order: 3;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 300px;
        max-width: 80vw;
        height: 100vh;
        background: #3B3B3B;
        padding: 4rem 2rem 2rem;
        transition: var(--transition);
        box-shadow: var(--shadow-strong);
        z-index: 1002;
        overflow-y: auto;
        display: block !important;
    }

    nav.active {
        left: 0;
    }

    .close-menu-btn {
        position: fixed;
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
        color: white;
        border: 2px solid white;
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 1003;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
    }

    .close-menu-btn:hover {
        background: white;
        color: #3B3B3B;
        transform: scale(1.1);
    }

    nav.active ~ .close-menu-btn {
        display: flex !important;
    }

    nav ul {
        flex-direction: column;
        gap: 1.5rem;
    }

    nav a {
        display: block;
        padding: 0.75rem 0;
        font-size: 1.1rem;
        pointer-events: auto !important;
        z-index: 1001;
        position: relative;
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
    }

    nav a:active {
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 5px;
    }

    /* Hero */
    .hero {
        min-height: auto;
        margin-top: 70px;
        padding: 2rem 1rem;
    }

    .hero-carousel-container {
        margin-bottom: 2rem;
    }

    .hero-slide-title {
        font-size: 1.5rem;
    }

    .hero-slide-description {
        font-size: 1rem;
    }

    .hero-slide-price {
        font-size: 1.5rem;
    }

    .hero-slide-banner {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .hero-carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .hero-carousel-prev {
        left: 0.5rem;
    }

    .hero-carousel-next {
        right: 0.5rem;
    }

    .order-process {
        padding: 2rem 1rem;
    }

    .order-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .order-note {
        font-size: 1rem;
        padding: 1rem;
    }

    /* Hero */
    .hero {
        min-height: auto;
        margin-top: 70px;
        padding: 2rem 1rem;
    }

    .hero-carousel-container {
        margin-bottom: 2rem;
    }

    .hero-slide-title {
        font-size: 1.5rem;
    }

    .hero-slide-description {
        font-size: 1rem;
    }

    .hero-slide-price {
        font-size: 1.5rem;
    }

    .hero-slide-banner {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .hero-carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .hero-carousel-prev {
        left: 0.5rem;
    }

    .hero-carousel-next {
        right: 0.5rem;
    }

    .order-process {
        padding: 2rem 1rem;
    }

    .order-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .order-note {
        font-size: 1rem;
        padding: 1rem;
    }

    /* Products */
    .products {
        padding: 3rem 1rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .products-gallery-container {
        margin-bottom: 3rem;
        padding: 0 0.5rem;
    }

    .gallery-item {
        max-width: 280px;
        aspect-ratio: 3 / 4;
    }

    .gallery-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        min-width: 40px;
        min-height: 40px;
    }

    .gallery-btn-prev {
        left: 0.5rem;
    }

    .gallery-btn-next {
        right: 0.5rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0;
    }

    .product-image {
        aspect-ratio: 4 / 3;
    }

    .product-info {
        padding: 1rem;
    }

    .product-title {
        font-size: 0.95rem;
    }

    .product-description {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }

    .product-price {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .product-card .add-to-cart {
        padding: 0.7rem;
        font-size: 0.85rem;
        margin-top: auto;
    }

    .product-card {
        margin: 0;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .product-image {
        aspect-ratio: 3 / 4;
    }

    .product-info {
        padding: 1rem;
        box-sizing: border-box;
    }

    .product-title {
        font-size: 1rem;
        margin-bottom: 0.4rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .product-description {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .product-price {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    .product-card .add-to-cart {
        padding: 0.7rem;
        font-size: 0.9rem;
        width: calc(100% - 2rem);
        margin: 1rem;
        max-width: calc(100% - 2rem);
        box-sizing: border-box;
    }

    /* Advantages */
    .advantages {
        padding: 3rem 1rem;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .advantage-item {
        padding: 1.5rem;
    }

    .advantage-icon {
        font-size: 2.5rem;
    }

    .advantage-title {
        font-size: 1.1rem;
    }

    /* Reviews */
    .reviews {
        padding: 3rem 1rem;
    }

    .review-slide {
        padding: 2rem 1.5rem;
    }

    .review-image {
        max-width: 250px;
        height: 150px;
    }

    .review-avatar {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .review-stars {
        font-size: 1.2rem;
    }

    .review-text {
        font-size: 1rem;
        line-height: 1.6;
    }

    .carousel-controls {
        margin-top: 1.5rem;
    }

    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    /* About */
    .about {
        padding: 3rem 1rem;
    }

    .about-text {
        font-size: 1rem;
        line-height: 1.7;
    }

    /* Footer */
    footer {
        padding: 2rem 1rem 1rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section h3 {
        font-size: 1.1rem;
    }

    .social-icons {
        justify-content: center;
    }

    /* Cart Notification */
    .cart-notification {
        right: 10px;
        left: 10px;
        bottom: 10px;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Product Details Mobile */
    .product-details-section {
        padding: 2rem 1rem;
        margin-top: 70px;
    }

    .product-details-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .product-image-large {
        position: static;
        width: 100%;
        max-width: 100%;
    }

    .product-image-container {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .product-image-placeholder {
        font-size: 5rem;
    }

    .product-info-large {
        padding: 1.5rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .product-title-large {
        font-size: 1.8rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .product-price-large {
        font-size: 2rem;
    }

    .add-to-cart-large {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 1rem;
    }

    .product-description-large {
        font-size: 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .add-to-cart-large {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .header-container {
        padding: 0.8rem;
        display: grid;
        grid-template-columns: auto 1fr auto;
        gap: 0.5rem;
        align-items: center;
    }

    .logo {
        font-size: 1.3rem;
        justify-self: center;
        order: 2;
    }

    .logo img {
        height: 35px;
    }

    .burger {
        order: 1;
    }

    .cart-btn {
        order: 3;
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    .hero {
        min-height: 70vh;
        padding: 1.5rem 0.5rem;
    }

    .hero h1 {
        font-size: 1.7rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .products,
    .advantages,
    .reviews,
    .about {
        padding: 2rem 0.5rem;
    }

    .products-gallery-container {
        margin-bottom: 2rem;
        padding: 0 0.3rem;
    }

    .gallery-item {
        max-width: 220px;
        aspect-ratio: 3 / 4;
    }

    .gallery-btn {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
        min-width: 35px;
        min-height: 35px;
    }

    .gallery-btn-prev {
        left: 0.3rem;
    }

    .gallery-btn-next {
        right: 0.3rem;
    }

    .products-grid {
        gap: 0.8rem;
        grid-template-columns: 1fr;
        padding: 0;
    }

    .product-card {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .product-image {
        aspect-ratio: 3 / 4;
    }

    .product-info {
        padding: 0.8rem;
        box-sizing: border-box;
    }

    .product-title {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .product-description {
        font-size: 0.75rem;
        margin-bottom: 0.6rem;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .product-price {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }

    .product-card .add-to-cart {
        padding: 0.6rem;
        font-size: 0.8rem;
        width: calc(100% - 1.6rem);
        margin: 0.8rem;
        max-width: calc(100% - 1.6rem);
        box-sizing: border-box;
    }

    .review-slide {
        padding: 1.5rem 1rem;
    }

    .cart-notification {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }

    /* Product Details Small Mobile */
    .product-details-section {
        padding: 1.5rem 0.5rem;
    }

    .product-details-container {
        padding: 0;
        max-width: 100%;
    }

    .product-details-grid {
        gap: 1.5rem;
        width: 100%;
        max-width: 100%;
    }

    .product-info-large {
        padding: 1.2rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .product-title-large {
        font-size: 1.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .product-price-large {
        font-size: 1.8rem;
    }

    .product-image-placeholder {
        font-size: 4rem;
    }

    .product-info-large {
        padding: 1.2rem;
    }

    /* Cart Mobile */
    .cart-section {
        padding: 2rem 1rem;
    }

    .cart-title {
        font-size: 2rem;
    }

    .cart-item {
        flex-direction: column;
        padding: 1.2rem;
    }

    .cart-item-image-placeholder {
        width: 100%;
        height: 200px;
        font-size: 4rem;
    }

    .cart-item-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .quantity-controls {
        justify-content: center;
    }

    .cart-item-price {
        text-align: center;
        font-size: 1.3rem;
    }

    .remove-btn {
        top: 0.5rem;
        right: 0.5rem;
    }

    .cart-summary {
        padding: 1.5rem;
    }

    .cart-total {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .cart-total-amount {
        font-size: 1.8rem;
    }

    .recommended-section {
        padding: 1.5rem;
    }

    .recommended-product {
        flex-direction: column;
        text-align: center;
    }

    .recommended-image-placeholder {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }

    .recommended-product-title {
        font-size: 1.2rem;
    }

    .recommended-product-price {
        font-size: 1.5rem;
    }

    .cart-item-image-placeholder {
        height: 150px;
    }

    .cart-title {
        font-size: 1.7rem;
    }

    .cart-summary {
        padding: 1.2rem;
    }

    .recommended-section {
        padding: 1.2rem;
    }
}

/* Cart Page */
.cart-section {
    margin-top: 70px;
    padding: 3rem 2rem;
    min-height: calc(100vh - 70px);
}

.cart-container {
    max-width: 1000px;
    margin: 0 auto;
}

.cart-title {
    font-size: 2.5rem;
    color: var(--color-graphite);
    margin-bottom: 2.5rem;
    text-align: center;
}

.cart-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.cart-empty-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
}

.cart-empty h2 {
    font-size: 2rem;
    color: var(--color-graphite);
    margin-bottom: 1rem;
}

.cart-empty p {
    font-size: 1.1rem;
    color: var(--color-brown);
    margin-bottom: 2rem;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.cart-item {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    display: flex;
    gap: 1.5rem;
    position: relative;
    transition: var(--transition);
}

.cart-item:hover {
    box-shadow: var(--shadow-medium);
}

.cart-item-image {
    flex-shrink: 0;
}

.cart-item-image-placeholder {
    width: 120px;
    height: 120px;
    background: var(--color-beige);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--color-brown);
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-title {
    font-size: 1.3rem;
    color: var(--color-graphite);
    margin-bottom: 0.5rem;
}

.cart-item-description {
    font-size: 0.95rem;
    color: var(--color-brown);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.cart-item-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--color-beige);
    padding: 0.5rem 1rem;
    border-radius: 25px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: var(--color-brown);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.quantity-btn:hover {
    background: var(--color-caramel);
    transform: scale(1.1);
}

.quantity {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-graphite);
    min-width: 30px;
    text-align: center;
}

.cart-item-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-brown);
}

.remove-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 35px;
    height: 35px;
    border: none;
    background: rgba(138, 106, 85, 0.1);
    color: var(--color-brown);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.remove-btn:hover {
    background: var(--color-brown);
    color: white;
    transform: scale(1.1);
}

.cart-summary {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    margin-bottom: 2rem;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--color-beige);
}

.cart-total-label {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-graphite);
}

.cart-total-amount {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-brown);
}

.checkout-btn {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.2rem;
}

.recommended-section {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    margin-bottom: 2rem;
}

.recommended-title {
    font-size: 1.8rem;
    color: var(--color-graphite);
    margin-bottom: 1.5rem;
    text-align: center;
}

.recommended-product {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.recommended-product-image {
    flex-shrink: 0;
}

.recommended-image-placeholder {
    width: 150px;
    height: 150px;
    background: var(--color-beige);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--color-brown);
}

.recommended-product-info {
    flex-grow: 1;
}

.recommended-product-title {
    font-size: 1.4rem;
    color: var(--color-graphite);
    margin-bottom: 0.5rem;
}

.recommended-product-description {
    font-size: 1rem;
    color: var(--color-brown);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.recommended-product-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-brown);
    margin-bottom: 1.5rem;
}

.recommended-btn {
    display: inline-block;
}

.cart-actions {
    text-align: center;
    margin-top: 2rem;
}

.back-to-home-btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Product Details Page */
.product-details-section {
    margin-top: 70px;
    padding: 3rem 2rem;
    min-height: calc(100vh - 70px);
}

.product-details-container {
    max-width: 1200px;
    margin: 0 auto;
}

.back-btn {
    background: transparent;
    border: 2px solid var(--color-brown);
    color: var(--color-brown);
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: var(--transition);
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
}

.back-btn:hover {
    background: var(--color-brown);
    color: white;
    transform: translateX(-5px);
}

.product-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.product-image-large {
    position: sticky;
    top: 90px;
}

.product-image-container {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
}

.product-image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    background: var(--color-beige);
    color: var(--color-brown);
}

.product-info-large {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.product-title-large {
    font-size: 2.5rem;
    color: var(--color-graphite);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.product-price-large {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--color-brown);
    margin-bottom: 2rem;
}

.product-description-large {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-graphite);
    margin-bottom: 2.5rem;
}

.add-to-cart-large {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-beige);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--color-graphite);
    font-size: 1rem;
}

.feature-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-beige);
    border-radius: 50%;
}

.product-not-found {
    text-align: center;
    padding: 4rem 2rem;
}

.product-not-found h2 {
    font-size: 2rem;
    color: var(--color-graphite);
    margin-bottom: 1rem;
}

.product-not-found p {
    font-size: 1.1rem;
    color: var(--color-brown);
    margin-bottom: 2rem;
}

/* Make product cards clickable */
.product-card {
    cursor: pointer;
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card-link:hover {
    text-decoration: none;
}

.product-card .add-to-cart {
    margin: 1rem 1.5rem 1.5rem;
    position: relative;
    z-index: 10;
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .cart-btn,
    .add-to-cart,
    .carousel-btn {
        min-height: 44px;
        min-width: 44px;
    }

    nav a {
        padding: 0.5rem 0;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

