/* style.css */
/* ===== RESET & VARIÁVEIS ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #080808;
    --bg-surface: #121212;
    --bg-card: #181818;
    --bg-card-hover: #1f1f1f;
    --bg-elevated: #1e1e1e;
    --text-primary: #f0f0f0;
    --text-secondary: #c0c0c0;
    --text-muted: #888888;
    --text-disabled: #666666;
    --border-subtle: #252525;
    --border-default: #333333;
    --border-strong: #555555;
    --border-focus: #888888;
    --accent: #a0a0a0;
    --accent-warm: #c8a96e;
    --accent-green: #4caf84;
    --accent-red: #e07070;
    --accent-purple: #b890c0;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-full: 60px;
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.03);
    --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);
    --shadow-modal: 0 20px 60px rgba(0, 0, 0, 0.8);
    --transition-fast: 0.15s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== BASE ===== */
html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    padding: 0 16px 60px;
    margin: 0;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== ACCESSIBILITY ===== */
:focus-visible {
    outline: 2px solid var(--border-focus);
    outline-offset: 3px;
    border-radius: 4px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .marquee-track {
        animation: none !important;
    }
}

/* ===== TOAST ===== */
.toast-container {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    max-width: 90vw;
}

.toast {
    background: rgba(24, 24, 24, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-primary);
    padding: 14px 28px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-default);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    font-weight: 500;
    font-size: 0.95rem;
    pointer-events: auto;
    animation: toast-in 0.35s ease-out;
    letter-spacing: 0.2px;
}

.toast.success { border-left: 3px solid var(--accent-green); }
.toast.error { border-left: 3px solid var(--accent-red); }
.toast.info { border-left: 3px solid #6ea8fe; }
.toast.warning { border-left: 3px solid var(--accent-warm); }

@keyframes toast-in {
    from { opacity: 0; transform: translateY(16px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== MODAL ===== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-default);
    box-shadow: var(--shadow-modal);
    overflow-y: auto;
    z-index: 1;
    animation: modal-in 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 85vh;
}

.modal-content--product {
    max-width: 560px;
    width: 100%;
}

.modal-content--artist {
    max-width: 620px;
    width: 100%;
}

@keyframes modal-in {
    from { opacity: 0; transform: scale(0.94) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(30, 30, 30, 0.85);
    border: 1px solid var(--border-default);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 2;
    backdrop-filter: blur(4px);
}

.modal-close:hover {
    background: rgba(50, 50, 50, 0.9);
    border-color: var(--border-strong);
    transform: rotate(90deg);
}

.modal-body {
    padding: 32px 24px 24px;
}

/* Modal Image */
.modal-image {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d0d0d;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    border: 1px solid var(--border-subtle);
    overflow: hidden;
}

.modal-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-sm);
    cursor: zoom-in;
    transition: transform var(--transition-smooth);
}

.modal-image img.zoomed {
    transform: scale(1.6);
    cursor: zoom-out;
}

/* ===== MODAL COMPACTO (ATUALIZADO) ===== */
.modal-header {
    margin-bottom: 12px;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.modal-code {
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.8px;
}

.stone-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--accent-purple);
    background: #1e1a20;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    border: 1px solid #3a2a3a;
    margin-top: 6px;
}

/* Grid de especificações compacto */
.modal-specs-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 12px 0;
    background: var(--bg-surface);
    padding: 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.spec-item-compact {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.spec-item-compact b {
    font-weight: 600;
    color: var(--text-primary);
    margin-right: 4px;
}

/* Descrição do produto */
.modal-description {
    font-size: 0.85rem;
    padding: 14px;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    white-space: pre-wrap;
    line-height: 1.5;
    margin-bottom: 16px;
}

/* Ações do modal (mantido) */
.modal-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.modal-whatsapp-btn {
    flex: 1;
    min-width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #1a3d2a;
    color: #b8e6c8;
    font-weight: 600;
    text-decoration: none;
    padding: 14px 22px;
    border-radius: var(--radius-full);
    border: 1px solid #2f5a3e;
    transition: all var(--transition-fast);
    font-size: 0.95rem;
    letter-spacing: 0.2px;
}

.modal-whatsapp-btn:hover {
    background: #234d34;
    border-color: #4a8a5e;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.modal-like-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    color: var(--text-secondary);
    padding: 14px 22px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    white-space: nowrap;
    font-family: var(--font-main);
}

.modal-like-btn:hover {
    border-color: var(--border-strong);
    color: #fff;
}

.modal-like-btn.liked {
    background: #2a1e28;
    border-color: #6a4a6a;
    color: #e8c8e8;
}

/* ===== MARQUEE ===== */
.top-marquee {
    background: #0e0e0e;
    color: var(--text-muted);
    padding: 9px 0;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 1px solid var(--border-subtle);
    overflow: hidden;
    white-space: nowrap;
    margin-bottom: 20px;
    width: 100%;
}

.marquee-track {
    display: inline-block;
    animation: marquee-scroll 22s linear infinite;
    will-change: transform;
}

.marquee-track span {
    padding-right: 40px;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== CARROSSEL (PROMO BANNERS) ===== */
.promo-carousel {
    position: relative;
    margin: 12px 0 24px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.promo-slides {
    display: flex;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.promo-slide {
    flex: 0 0 100%;
    width: 100%;
}

.promo-banner {
    width: 100%;
    background: linear-gradient(150deg, #1a1a1a 0%, #0e0e0e 100%);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: 22px 26px;
    box-shadow: var(--shadow-card);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.promo-banner:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-card-hover);
}

.promo-banner__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.promo-banner__text {
    flex: 2;
    min-width: 240px;
}

.promo-banner__badge {
    display: inline-block;
    background: #2a1e1e;
    color: #f0a0a0;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    border: 1px solid #5a3a3a;
    margin-bottom: 10px;
}

.promo-banner--mother .promo-banner__badge { background: #2e1e2e; color: #e0b8e0; border-color: #5a3a5a; }
.promo-banner--pierce .promo-banner__badge { background: #1e2e2e; color: #a0e0d0; border-color: #3a5a5a; }
.promo-banner--progress .promo-banner__badge { background: #1e2a1e; color: #a0e0a0; border-color: #3a5a3a; }
.promo-banner__badge--artist { background: #2a1e1a; color: #f0d080; border-color: #5a4a2a; }

.promo-banner__title {
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.promo-banner__title span {
    background: linear-gradient(135deg, #e0c080, #f0d890);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.promo-banner__subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.promo-banner__note {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-style: italic;
    border-left: 2px solid #6a4a6a;
    padding-left: 12px;
    margin-top: 10px;
}

.promo-banner__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-default);
    transition: all var(--transition-fast);
    font-size: 0.95rem;
}

.promo-banner__cta:hover {
    background: #2a2a2a;
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

.promo-banner__visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    font-size: 3rem;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

.promo-banner__emoji {
    background: #1a1a1a;
    padding: 6px 10px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
    line-height: 1;
}

.promo-banner__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.promo-banner__desc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-default);
    cursor: pointer;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    font-family: var(--font-main);
}

.promo-banner__desc-btn:hover {
    background: var(--bg-elevated);
    border-color: var(--border-strong);
    color: #fff;
}

/* Banner de Artista */
.promo-banner--artist {
    background-size: cover;
    background-position: center 25%;
    background-repeat: no-repeat;
    border: none;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
    padding: 0;
    position: relative;
}

.promo-banner__overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.15) 100%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding: 26px;
    border-radius: var(--radius-lg);
}

.promo-banner__title--artist {
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.promo-banner__subtitle--artist {
    color: #e0e0e0;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-default);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.indicator.active {
    background: var(--accent);
    transform: scale(1.4);
}

.indicator:hover {
    background: var(--border-strong);
}

.carousel-pause-btn {
    position: absolute;
    bottom: 42px;
    right: 12px;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid var(--border-default);
    color: #fff;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    font-size: 1rem;
    transition: background var(--transition-fast);
}

.carousel-pause-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* ===== HEADER ===== */
.studio-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-subtle);
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
}

.studio-header::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 120%;
    background: radial-gradient(circle at 20% 40%, rgba(150, 150, 150, 0.06) 0%, transparent 70%);
    filter: blur(50px);
    z-index: -1;
    pointer-events: none;
}

.header-left {
    flex: 2;
}

.header-right {
    flex: 1;
    text-align: right;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    padding-bottom: 8px;
}

.studio-name {
    font-size: clamp(2.2rem, 8vw, 3.6rem);
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.05;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    background: linear-gradient(180deg, #ffffff 0%, #b0b0b0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.header-icon {
    font-size: 2.2rem;
    filter: drop-shadow(0 0 4px rgba(180, 180, 180, 0.4));
    display: inline-block;
}

.studio-subtitle {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
    border-left: 2px solid var(--border-strong);
    padding-left: 12px;
}

.badge {
    display: inline-block;
    background: #181818;
    color: #c0c0c0;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 7px 18px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-default);
    transition: box-shadow var(--transition-fast);
}

.badge:hover {
    box-shadow: 0 0 20px rgba(120, 120, 120, 0.15);
}

.material-grade {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(to right, #b0b0b0, #e0e0e0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 2px;
    line-height: 1;
}

.model-count {
    font-size: 1.8rem;
    font-weight: 800;
    color: #d8d8d8;
    background: #151515;
    padding: 2px 14px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-default);
}

.header-tagline {
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.68rem;
    letter-spacing: 2px;
}

.view-counter {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: #151515;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
    margin-top: 6px;
}

.view-icon {
    font-size: 1rem;
}

#viewCountValue {
    font-weight: 700;
    color: var(--text-secondary);
}

/* ===== FILTER BAR ===== */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 20px;
}

.search-wrapper {
    position: relative;
    flex: 1;
    min-width: 240px;
}

#searchInput {
    width: 100%;
    padding: 13px 48px 13px 20px;
    background: #141414;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font-main);
    transition: all var(--transition-fast);
}

#searchInput::placeholder {
    color: var(--text-disabled);
}

#searchInput:focus {
    border-color: var(--border-focus);
    background: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(150, 150, 150, 0.08);
}

.clear-search-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 6px;
    transition: color var(--transition-fast);
}

.clear-search-btn:hover {
    color: var(--text-primary);
}

.filter-options {
    display: flex;
    gap: 8px;
}

#sortSelect {
    padding: 13px 20px;
    background: #141414;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 0.88rem;
    cursor: pointer;
    font-family: var(--font-main);
    transition: all var(--transition-fast);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%23888'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 36px;
}

#sortSelect:focus {
    border-color: var(--border-focus);
}

.filter-btn {
    padding: 13px 20px;
    background: #141414;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 0.88rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-fast);
    font-family: var(--font-main);
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--border-strong);
}

.filter-btn[aria-pressed="true"] {
    background: #1a2e24;
    border-color: #3a6a4a;
    color: #b8e6c8;
}

/* ===== CATALOG TITLE ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
}

.catalog-title {
    font-size: 1.4rem;
    font-weight: 500;
    margin: 8px 0 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.catalog-title span {
    background: var(--border-default);
    height: 1px;
    flex: 1;
}

/* ===== SEÇÃO DE DESTAQUES (CARROSSEL) ===== */
.featured-section {
    margin-bottom: 8px;
}

.featured-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--accent-warm);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    letter-spacing: 0.8px;
}

.featured-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-default);
}

.featured-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    padding: 8px 0 12px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.featured-carousel::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.featured-card {
    flex: 0 0 auto;
    width: 200px;
    scroll-snap-align: start;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.featured-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--border-strong);
}

.featured-card__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    background: #0d0d0d;
    position: relative;
}

.featured-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    display: block;
}

.featured-card__name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #f0f0f0;
    padding: 8px 10px;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.featured-card__badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--accent-warm);
    color: #0a0a0a;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    z-index: 2;
    text-transform: uppercase;
    line-height: 1;
}

.divider {
    border: none;
    border-top: 1px solid var(--border-subtle);
    margin: 28px 0 20px;
}

/* ===== PRODUCT GRID ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

/* ===== PRODUCT CARD ===== */
.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-card);
    position: relative;
}

.product-card--unavailable {
    opacity: 0.65;
    filter: grayscale(0.5);
}

@media (hover: hover) {
    .product-card:hover {
        transform: perspective(600px) rotateY(-1.5deg) translateY(-4px);
        box-shadow: 0 12px 28px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.08);
        border-color: var(--border-strong);
    }
}

.product-card:active {
    transform: scale(0.98);
    background: var(--bg-card-hover);
}

.product-card:focus-visible {
    outline: 3px solid var(--border-focus);
    outline-offset: 2px;
}

.product-card__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #111111;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    position: relative;
    border-bottom: 1px solid var(--border-subtle);
    overflow: hidden;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: #0d0d0d;
}

.low-stock-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #c0392b;
    color: #fdd;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
    border: 1px solid #e74c3c;
    white-space: nowrap;
}

.product-card__body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.product-card__header {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.product-card__code {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-disabled);
}

.product-card__name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0;
}

.product-card__specs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.spec-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #2a2a2a;
    color: #ccc;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 500;
    border: 1px solid var(--border-subtle);
    white-space: nowrap;
}

.spec-chip--stone {
    background: #2e2632;
    border-color: #4a3a4a;
    color: #d4b8dc;
}

.spec-chip--material {
    background: #26322e;
    border-color: #2a4a3a;
    color: #b8d4c0;
    font-weight: 600;
}

.product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
}

.stock-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
}

.availability-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.availability-badge.available {
    background: #1a2e22;
    color: #a0e0b8;
    border: 1px solid #2a4a32;
}

.availability-badge.unavailable {
    background: #2e1a1a;
    color: #e0a0a0;
    border: 1px solid #4a2a2a;
}

.stock-quantity {
    color: var(--text-disabled);
}

.like-section {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.like-button {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #1a1a1a;
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 4px 10px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    font-family: var(--font-main);
    min-height: 44px;
    min-width: 44px;
}

.like-button:hover {
    background: #242424;
    border-color: var(--border-default);
    color: var(--text-secondary);
}

.like-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.like-icon {
    font-size: 0.85rem;
    line-height: 1;
}

.like-count {
    font-weight: 600;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.like-count.like-pop {
    transform: scale(1.3);
    color: #f88;
}

.like-button.liked {
    background: #241e24;
    border-color: #4a3a4a;
    color: #d8b8d8;
}

.like-button.liked .like-count {
    color: #d8b8d8;
}

/* ===== SKELETON ===== */
.skeleton-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.skeleton-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #161616;
    border-bottom: 1px solid var(--border-subtle);
}

.skeleton-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skeleton-line {
    height: 11px;
    background: linear-gradient(90deg, #1a1a1a 25%, #222 50%, #1a1a1a 75%);
    background-size: 400px 100%;
    animation: shimmer 1.4s ease-in-out infinite;
    border-radius: 4px;
}

.skeleton-line.short { width: 28%; }
.skeleton-line.medium { width: 48%; }
.skeleton-line.long { width: 78%; }

@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}

/* ===== FOOTER ===== */
.footer-note {
    margin-top: 48px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-disabled);
    border-top: 1px solid var(--border-subtle);
    padding-top: 24px;
    line-height: 1.8;
}

.developer-credit {
    font-size: 0.72rem;
    color: #555;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* ===== STATES ===== */
.loading,
.error-msg {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.error-msg {
    color: var(--accent-red);
}

/* ===== RADIO PLAYER ===== */
.radio-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(60, 60, 60, 0.5);
    border-radius: var(--radius-full);
    padding: 8px 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transition: all var(--transition-fast);
}

.radio-player:hover {
    background: rgba(10, 10, 10, 0.9);
    border-color: rgba(100, 100, 100, 0.6);
}

.radio-controls {
    display: flex;
    align-items: center;
    gap: 14px;
}

.radio-play-btn {
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    color: var(--text-secondary);
    font-size: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.radio-play-btn:hover {
    border-color: var(--border-strong);
    color: #fff;
}

.radio-play-btn.playing {
    background: #1a2e24;
    border-color: #3a6a4a;
    color: #a0e8c0;
}

.radio-info {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
    min-width: 120px;
}

.radio-icon {
    font-size: 1rem;
}

.radio-label {
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.radio-volume {
    display: flex;
    align-items: center;
    gap: 8px;
}

.radio-mute-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    padding: 4px;
    transition: color var(--transition-fast);
}

.radio-mute-btn:hover {
    color: #fff;
}

.radio-volume input[type="range"] {
    width: 80px;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: var(--border-default);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.radio-volume input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: #b0b0b0;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid var(--border-strong);
    transition: background var(--transition-fast);
}

.radio-volume input[type="range"]::-webkit-slider-thumb:hover {
    background: #d0d0d0;
}

.radio-volume input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #b0b0b0;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid var(--border-strong);
}

/* ===== ARTIST MODAL ===== */
.artist-profile {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.artist-profile__header {
    display: flex;
    align-items: center;
    gap: 18px;
}

.artist-profile__avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-default);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.artist-profile__name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.artist-profile__role {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.artist-profile__bio {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    background: var(--bg-surface);
    padding: 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.artist-profile__specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.artist-profile__tag {
    background: #1e1e1e;
    color: #c0c0c0;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    border: 1px solid var(--border-default);
    letter-spacing: 0.3px;
}

.artist-profile__contact {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
    .studio-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-right {
        align-items: flex-start;
        text-align: left;
        width: 100%;
    }

    /* MODAL CENTRALIZADO EM VEZ DE BOTTOM SHEET */
    .modal {
        align-items: center;
        justify-content: center;
        padding: 16px;               /* espaço seguro */
    }

    .modal-content {
        border-radius: var(--radius-lg);   /* cantos arredondados completos */
        max-height: 85vh;
        max-width: 100% !important;
        width: 100%;
        animation: modal-in 0.35s cubic-bezier(0.4, 0, 0.2, 1); /* animação de escala (padrão) */
    }

    /* Remove o “puxador” de bottom sheet */
    .modal-content::before {
        display: none;
    }

    .modal-content--product,
    .modal-content--artist {
        max-width: 95vw;
    }

    .modal-body {
        padding: 24px 16px 16px;
    }

    .modal-specs-compact {
        grid-template-columns: 1fr;
    }

    .promo-banner__visual {
        display: none;
    }

    .radio-player {
        bottom: 10px;
        right: 10px;
        padding: 6px 14px;
    }

    .radio-volume input[type="range"] {
        width: 50px;
    }

    .radio-label {
        display: none;
    }

    .radio-info {
        min-width: auto;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-options {
        justify-content: space-between;
    }

    #sortSelect {
        flex: 1;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 12px;
    }

    .product-card__body {
        padding: 10px 12px;
        gap: 6px;
    }

    .product-card__name {
        font-size: 0.88rem;
    }

    .spec-chip {
        font-size: 0.64rem;
        padding: 3px 7px;
    }

    .promo-banner__actions {
        flex-direction: column;
        width: 100%;
    }

    .promo-banner__desc-btn {
        width: 100%;
        justify-content: center;
    }

    .featured-card {
        width: 160px;
    }

    .carousel-pause-btn {
        bottom: 10px;
        right: 8px;
    }
}

@media (max-width: 400px) {
    body {
        padding: 0 8px 50px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .studio-name {
        font-size: 1.8rem;
    }

    .header-icon {
        font-size: 1.4rem;
    }

    .material-grade {
        font-size: 1.2rem;
    }

    .model-count {
        font-size: 1.3rem;
    }

    .featured-card {
        width: 140px;
    }
}

/* ============================================================
   ===== ADIÇÕES PARA APP MOBILE (PWA, SAFE AREAS, SWIPE) =====
   ============================================================ */

body {
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    overscroll-behavior-y: contain;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

input, textarea {
    -webkit-user-select: text;
    user-select: text;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1300;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 6px 0 env(safe-area-inset-bottom, 8px);
    height: calc(64px + env(safe-area-inset-bottom, 0px));
}

.bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--text-disabled);
    font-family: var(--font-main);
    font-size: 0.65rem;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 14px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    min-width: 64px;
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav__item:active {
    transform: scale(0.94);
}

.bottom-nav__item.active {
    color: #d0d0d0;
    background: rgba(255, 255, 255, 0.04);
}

.bottom-nav__item.active .bottom-nav__icon {
    filter: drop-shadow(0 0 6px rgba(200, 200, 200, 0.3));
}

.bottom-nav__icon {
    font-size: 1.3rem;
    transition: transform var(--transition-fast);
}

.bottom-nav__label {
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Pull-to-refresh */
.ptr-indicator {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-60px);
    z-index: 1400;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(24, 24, 24, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-default);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.ptr-indicator.pulling {
    transform: translateX(-50%) translateY(20px);
}

.ptr-indicator.refreshing .ptr-spinner {
    animation: ptr-spin 0.8s linear infinite;
}

.ptr-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-default);
    border-top-color: #c0c0c0;
    border-radius: 50%;
}

@keyframes ptr-spin {
    to { transform: rotate(360deg); }
}

/* Ajuste radio para não sobrepor a Bottom Nav */
.radio-player {
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    right: 12px;
}