@tailwind base;
@tailwind components;
@tailwind utilities;

/* Tus estilos personalizados debajo */
.toolbar {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin: 1rem 0;
    flex-wrap: wrap;
}
.search {
    min-height: 2.25rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    min-width: 220px;
}
.btn {
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    color: #0f172a;
    background: #ffffff;
    cursor: pointer;
}
.btn.primary {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}
.btn.danger {
    color: #b91c1c;
    border-color: #fecaca;
}
.btn.full {
    width: 100%;
    margin-top: 0.5rem;
}
.chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.chip {
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    cursor: pointer;
}
.chip.active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}
.qty-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.5rem;
}
.summary {
    margin-top: 1rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}
.detail-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}
html, body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: #f8fafc;
    color: #0f172a;
}

.shell {
    min-height: 100vh;
}

.topbar {
    padding: 12px 20px;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 700;
}

.cart-link {
    color: #0f172a;
    background: #e2e8f0;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    text-decoration: none;
    font-weight: 700;
}

.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
}

.panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
}

.hint {
    color: #475569;
    margin-bottom: 12px;
}

.error {
    color: #b91c1c;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.link-block {
    display: block;
    color: inherit;
    text-decoration: none;
}

.card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    background: #e2e8f0;
}

.card h3 {
    font-size: 14px;
    margin: 8px 10px 6px;
}

.price {
    margin: 0 10px 10px;
    font-weight: 700;
    color: #0369a1;
}

.back-link {
    display: inline-block;
    margin-bottom: 12px;
}

.detail {
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr;
    gap: 16px;
}

.detail img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
}

@media (max-width: 800px) {
    .detail {
        grid-template-columns: 1fr;
    }
}