/*
:root {
    --primary: #ff4757;
    --primary-hover: #ff6b81;
    --background-alt: #1e272e;
    --card-bg: #2f3542;
    --text-main: #f1f2f6;
    --text-muted: #a4b0be;
    --glass-bg: rgba(47, 53, 66, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"],
:root:not([data-theme="light"]) {
    --primary: #ff4757;
    --primary-hover: #ff6b81;
    --background: #000000;
    --card-bg: #1a1a1a;
}
    */

body {
    transition: all 0.3s ease;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

main.container {
    padding-top: 2rem;
    padding-bottom: 5rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

article.product-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

article.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    border-color: var(--pico-primary);
}

.product-image {
    width: 100%;
    height: 180px;
    background: #333;
    position: relative;
    overflow: hidden;
}

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

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 1.2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
}

.product-info .price {
    font-weight: 700;
    color: var(--pico-primary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.product-info p {
    font-size: 0.9rem;
    color: var(--pico-text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

button.add-to-cart {
    width: 100%;
    background-color: var(--pico-primary);
    border: none;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

button.add-to-cart:hover {
    background-color: var(--pico-primary-hover);
}

button.add-to-cart:active {
    transform: scale(0.98);
}

/* Landing Screen */
#landing-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--pico-background-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
    padding: 1rem;
}

#landing-content {
    transition: opacity 0.5s ease-out, visibility 0.5s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hidden {
    opacity: 0;
    visibility: hidden;
}

.logo-main {
    max-width: 420px;
    width: 100%;
    height: auto;
    margin-bottom: 2rem;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

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

.logo-hero {
    max-width: 180px;
    height: auto;
    margin-bottom: 0.5rem;
}

#landing-screen h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

#landing-screen .pedir-btn {
    background: var(--pico-primary);
    width: 15rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease;
}

#landing-screen .pedir-btn:hover {
    transform: scale(1.05);
}

/* Cart Sticky Footer */
#cart-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--pico-primary-color);
    display: flex;
    justify-content: center;
}

.cart-button {
    transform: scale(1.1);
    background: var(--pico-primary);
    width: 100%;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    cursor: pointer;
    border: none;
    transition: transform 0.3s ease;
    color: white;
    font-weight: 800;
}

.cart-button:hover {
    transform: scale(1.1);
    background: var(--pico-primary-hover);
}

.cart-count {
    background: white;
    color: var(--pico-primary);
    font-weight: 800;
    font-size: 0.9rem;
    padding: 2px 10px;
    border-radius: 20px;
    margin-left: 0.5rem;
}

/* Modal Styling */
dialog article {
    background: var(--pico-background-color);
    border: 1px solid var(--glass-border);
    max-width: 500px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--glass-border);
}

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

.cart-total {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 2px solid var(--pico-primary);
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    justify-content: space-between;
}

.order-form {
    margin-top: 2rem;
}

.success-message {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    font-size: 4rem;
    color: #2ecc71;
    margin-bottom: 1rem;
}

/* Micro-animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.product-card {
    animation: fadeIn 0.5s ease forwards;
}

.xantare-brand {
    text-align: center;
    position: fixed;
    bottom: 0;
    margin-bottom: 0.5rem;
}

.xantare-brand a {
    border-radius: 10rem;
}