* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --primary: #ff4757;
    --secondary: #1a1a1a;
    --background: #f9f7f3;
    --card: #ffffff;
    --text: #212121;
    --muted: #6b6b6b;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background);
    color: var(--text);
}

img {
    max-width: 100%;
    display: block;
}

button,
a {
    font-family: inherit;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,71,87,0.08), transparent 35%);
    pointer-events: none;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 35px rgba(0,0,0,0.08);
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.cart-icon {
    position: relative;
    cursor: pointer;
    color: var(--secondary);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s ease;
}

.cart-icon.bump {
    animation: bump 0.35s ease-out;
}

@keyframes bump {
    0% { transform: scale(1); }
    30% { transform: scale(1.15); }
    60% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

#cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--primary);
    color: white;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 0.75rem;
    font-weight: 700;
}

.hero {
    min-height: 75vh;
    background: linear-gradient(180deg, rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1504674900247-0877df9cc836?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 1rem;
    color: white;
    text-align: center;
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,71,87,0.2), transparent 45%);
}

.hero-content {
    position: relative;
    max-width: 780px;
    z-index: 1;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.85rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.05;
    margin-bottom: 1rem;
}

.hero p {
    max-width: 620px;
    margin: 0 auto;
    font-size: 1.05rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
}

.btn-main,
.btn-secondary,
.btn-add,
.btn-checkout {
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-main {
    display: inline-block;
    padding: 1rem 2.2rem;
    background: var(--primary);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    box-shadow: 0 18px 40px rgba(255,71,87,0.24);
}

.btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 45px rgba(255,71,87,0.28);
}

main {
    padding: 4rem 1rem 2rem;
    max-width: 1180px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 2rem;
    text-align: center;
}

.section-label {
    display: inline-block;
    margin-bottom: 0.75rem;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.2em;
    font-size: 0.85rem;
}

.section-title {
    font-size: clamp(2rem, 2.5vw, 3rem);
    line-height: 1.05;
}

.product-grid,
.testimonial-grid,
.contact-grid {
    display: grid;
    gap: 1.5rem;
}

.product-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.product-card,
.testimonial-card,
.contact-card {
    background: var(--card);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 18px 45px rgba(32, 32, 32, 0.08);
    position: relative;
}

.product-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-card:hover {
    transform: translateY(-6px);
}

.product-image {
    overflow: hidden;
    border-radius: 24px;
    height: 220px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-card h3 {
    font-size: 1.4rem;
}

.product-card p {
    color: var(--muted);
    line-height: 1.7;
}

.product-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary);
}

.btn-add {
    background: #2ed573;
    color: white;
    padding: 0.95rem 1.5rem;
}

.btn-add:hover {
    transform: translateY(-2px);
}

.testimonial-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.testimonial-card p {
    color: var(--muted);
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.testimonial-card h4 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.testimonial-card span {
    color: var(--primary);
    font-weight: 600;
}

.contact-grid {
    grid-template-columns: 1.4fr 0.9fr;
}

.contact-card-secondary {
    background: rgba(255,71,87,0.06);
}

.contact-card h3 {
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 0.9rem;
}

.contact-card ul {
    list-style: none;
    padding-left: 0;
}

.contact-card li {
    margin-bottom: 0.85rem;
    color: var(--muted);
}

.btn-secondary {
    display: inline-block;
    margin-top: 1.4rem;
    background: var(--secondary);
    color: white;
    padding: 0.95rem 1.8rem;
}

.btn-secondary:hover,
.btn-checkout:hover {
    transform: translateY(-2px);
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    padding: 2rem 1rem;
    overflow-y: auto;
}

.modal-content {
    position: relative;
    max-width: 520px;
    margin: 3rem auto;
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 30px 70px rgba(0,0,0,0.22);
}

.close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.7rem;
    color: var(--muted);
    cursor: pointer;
}

.modal-content h3 {
    margin-bottom: 1.5rem;
}

.cart-items {
    min-height: 120px;
    border-radius: 18px;
    border: 1px solid rgba(0,0,0,0.08);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.empty-cart {
    color: var(--muted);
    text-align: center;
    line-height: 1.8;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.btn-checkout {
    width: 100%;
    padding: 1rem 1.2rem;
    background: var(--primary);
    color: white;
}

.footer {
    text-align: center;
    padding: 1.5rem 1rem;
    color: var(--muted);
}

@media (max-width: 840px) {
    .navbar {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .hero {
        min-height: 60vh;
        padding: 4rem 1rem;
    }

    .navbar {
        padding: 1rem;
    }

    .product-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-main,
    .btn-add,
    .btn-secondary,
    .btn-checkout {
        width: 100%;
    }
}
