/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.92) translateY(16px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

body                { animation: fadeIn 0.5s ease-out; }
.hero-title         { animation: slideInLeft 0.8s ease-out; }
.hero-image         { animation: slideInRight 0.8s ease-out; }
.modal-overlay      { animation: fadeIn 0.25s ease-out; }
.modal-content      { animation: modalIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both; }

/* ==================== BURGER MENU ==================== */
#burgerBtn span { transition: all 0.3s ease; }
.burger-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger-open span:nth-child(2) { opacity: 0; }
.burger-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ==================== PRODUCT CARD ==================== */
.product-card {
    background: #fff;
    border-radius: 1.25rem;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #f0f0f0;
    animation: scaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.35s ease;
}
.product-card:nth-child(2) { animation-delay: 0.06s; }
.product-card:nth-child(3) { animation-delay: 0.12s; }
.product-card:nth-child(4) { animation-delay: 0.18s; }
.product-card:nth-child(5) { animation-delay: 0.24s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }
.product-card:nth-child(7) { animation-delay: 0.36s; }
.product-card:nth-child(8) { animation-delay: 0.42s; }

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -12px rgba(0,0,0,0.12);
    border-color: #e5e5e5;
}

/* Card image area */
.card-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}
.card-img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.08));
}
.product-card:hover .card-img {
    transform: scale(1.12);
}

/* Card body */
.card-body {
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.card-badge {
    display: inline-block;
    width: fit-content;
    padding: 0.2rem 0.7rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
}
.card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.35;
}
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
}
.card-price {
    font-size: 1.7rem;
    font-weight: 800;
    color: #111827;
    line-height: 1;
    letter-spacing: -0.02em;
}
.card-price small {
    font-size: 0.65em;
    font-weight: 600;
    color: #6b7280;
}

/* ==================== CUSTOM BUTTON ==================== */
.card-btn {
    --accent: #dc2626;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0.6rem 1.1rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    letter-spacing: 0.03em;
    white-space: nowrap;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 30%, transparent);
    position: relative;
    overflow: hidden;
}
.card-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent 60%);
    pointer-events: none;
}
.card-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 35%, transparent);
}
.card-btn:active {
    transform: translateY(0);
    filter: brightness(0.95);
}
.card-btn-icon {
    display: flex;
    align-items: center;
    transition: transform 0.25s ease;
}
.card-btn:hover .card-btn-icon {
    transform: translateX(3px);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 640px) {
    .card-img { width: 110px; height: 110px; }
    .card-img-wrap { min-height: 160px; padding: 1.5rem 1rem; }
    .card-body { padding: 1rem 1.25rem 1.25rem; }
    .card-title { font-size: 0.95rem; }
    .card-price { font-size: 1.4rem; }
    .card-btn { padding: 0.5rem 0.9rem; font-size: 0.78rem; }
}
