:root {
    --beige: #f9f6f2;
    --accent: #ff6a3d;
    --text: #333;
    --muted: #666;
    --card: #ffffff;
}

/* ---------- GLOBAL ---------- */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--beige);
    font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    margin: 0;
    overflow-x: hidden;
}

/* ---------- HERO ---------- */
.hero {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    background: var(--beige);
    padding: 5rem 2rem 3rem;
    min-height: 60vh;
}

.hero .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero .hero-inner img {
    width: 155px;
    height: auto;
    display: block;
    margin: 0 0 0.5rem 0;
    opacity: 0;
    transform: translateY(18px) scale(.98);
    animation: heroIn .9s cubic-bezier(.2, .8, .2, 1) .1s forwards;
}

.hero .hero-inner h1 {
    font-size: 2.6rem;
    margin: 0.3rem 0 0;
    line-height: 1;
    opacity: 0;
    animation: fadeUp .7s cubic-bezier(.2, .8, .2, 1) .25s forwards;
}

.hero .hero-inner p {
    color: #555;
    max-width: 560px;
    margin: 0.45rem 0 0;
    font-size: 1.05rem;
    padding-left: 3px;
    opacity: 0;
    animation: fadeUp .7s cubic-bezier(.2, .8, .2, 1) .45s forwards;
}

/* ---------- PRODUCT GRID ---------- */
.product-wrap {
    padding: 3.5rem 1.25rem 4.5rem;
}

.product-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* ---------- CARD ---------- */
.card {
    background: var(--card);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
    transform: translateY(0);
    will-change: transform, box-shadow;
}

/* ✅ Guaranteed bounce each hover */
.card:hover {
    animation: none;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .12);
}

.card:hover {
    animation: cardBounce 0.45s cubic-bezier(.28, .84, .42, 1);
}

/* --- Bounce keyframes --- */
@keyframes cardBounce {
    0% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(0);
    }
}

/* ---------- CARD CONTENT ---------- */
.card-image {
    height: 250px;
    background: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.card-content {
    padding: 1.1rem 1.1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    flex: 1;
}

.card h2 {
    font-size: 1.06rem;
    margin: 0;
    color: var(--text);
}

.card p {
    margin: .1rem 0 0;
    color: var(--muted);
    font-size: .95rem;
}

.rating {
    color: #ffc107;
    font-size: 1rem;
}

/* ---------- BUTTON ---------- */
.btn {
    display: inline-block;
    align-self: flex-start;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    padding: .7rem 1.15rem;
    border-radius: 999px;
    font-weight: 600;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(255, 106, 61, .35);
    background: #e55b31;
}

/* ---------- FOOTER ---------- */
footer {
    background: var(--beige);
    border-top: 1px solid #eee;
    text-align: center;
    color: #888;
    font-size: .95rem;
    padding: 2rem 1rem;
}

footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    text-decoration: underline;
}

/* ---------- COOKIE BANNER ---------- */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 2px solid var(--accent);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
    color: #333;
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    font-size: .95rem;
    z-index: 1000;
}

#cookie-banner.show {
    display: flex;
}

/* ---------- BACK TO TOP ---------- */
.to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 50;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(255, 106, 61, .35);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}

.to-top.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ---------- ANIMATIONS ---------- */
@keyframes heroIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

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

@keyframes popIn {
    from {
        opacity: 0;
        transform: translateY(28px) scale(.98);
    }

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

/* ---------- RESPONSIVE ---------- */
@media (max-width:520px) {
    .hero {
        padding: 3rem 1.25rem 2rem;
    }

    .hero .hero-inner img {
        width: 120px;
    }

    .hero .hero-inner h1 {
        font-size: 1.9rem;
    }

    .hero .hero-inner p {
        font-size: 0.95rem;
        max-width: 90%;
    }

    .product-wrap {
        padding: 2.5rem 1rem 4rem;
    }
}

@media (prefers-reduced-motion:reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}