/* MudBlazor provides the design system (typography, color, layout). These are only
   the few app-specific touches it doesn't cover. */

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: #F6F7F9;
}

/* small gap utilities (complement MudBlazor spacing) */
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }

.hero { background: transparent !important; }

.filter-panel { position: sticky; top: 88px; }
@media (max-width: 959px) { .filter-panel { position: static; } }

/* Product cards */
.product-card {
    cursor: pointer;
    transition: transform .1s ease, box-shadow .1s ease;
}
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.10);
}
.product-media {
    position: relative;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 16px;
    box-sizing: border-box;
    background: #ffffff;
}
/* max-* (not width/height:100%) so a tall or wide photo scales to fit the box
   instead of forcing the box — and every card's image area stays identical. */
.product-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }

/* Policy pages (Terms, Refund & Cancellation) */
.policy-page { max-width: 820px; margin: 0 auto; }
.policy-section { margin-bottom: 1.6rem; }
.policy-section:last-child { margin-bottom: 0; }
.policy-body { color: #475569; line-height: 1.7; font-size: .95rem; }
.policy-body a { color: #E8552B; }

/* Brand logo — keep the wordmark on the brand font even as inline SVG */
.brand-logo { height: 38px; width: auto; }
.brand-logo text { font-family: 'Inter', 'Segoe UI', Arial, sans-serif; }
.product-emoji { font-size: 3rem; }
.product-emoji.big { font-size: 6rem; }
.sale-chip { position: absolute; top: 10px; left: 10px; }

.price-was { text-decoration: line-through; color: #94a3b8; }

.cart-thumb {
    width: 64px; height: 64px; border-radius: 8px; flex: 0 0 auto;
    display: grid; place-items: center;
    background: linear-gradient(135deg, #eef1f4, #e3e7ec);
}
.cart-thumb .product-emoji { font-size: 1.8rem; }

/* Detail media panel */
.detail-media {
    position: relative;
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #eef1f4, #e3e7ec);
}
.detail-main-img { max-width: 100%; max-height: 100%; object-fit: contain; }
.thumb-active { outline: 2px solid #E8552B; outline-offset: -1px; }

/* Specification sheet (product detail) */
.spec-sheet { width: 100%; border-collapse: collapse; }
.spec-sheet th, .spec-sheet td {
    text-align: left; padding: 10px 12px; border-bottom: 1px solid #e8ebef; font-weight: 400;
}
.spec-sheet th { color: #64748B; font-weight: 500; width: 42%; white-space: nowrap; }
.spec-sheet td { color: #1F2933; font-weight: 600; }
.spec-sheet tr:nth-child(odd) { background: #fafbfc; }
.spec-sheet tr:last-child th, .spec-sheet tr:last-child td { border-bottom: none; }

/* Image thumbnails in the editor */
.thumb { position: relative; width: 88px; height: 88px; overflow: hidden; border-radius: 8px; cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-remove { position: absolute; top: 2px; right: 2px; background: rgba(255,255,255,.85); }

/* Footer */
.site-footer { padding: 8px 16px 40px; }
.site-footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }

/* Login (native inputs, styled to sit with MudBlazor) */
.login-form { display: flex; flex-direction: column; }
.login-label { font-size: .8rem; color: #64748B; margin: 10px 0 4px; }
.login-input {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font: inherit;
    outline: none;
}
.login-input:focus { border-color: #E8552B; box-shadow: 0 0 0 2px rgba(232,85,43,.15); }
