/* Rediseño ScrapTradeHub: tokens y componentes. Se carga después de bootstrap y theme.css. */
:root {
    --sth-primary: #0B6E70;
    --sth-primary-dark: #06504F;
    --sth-primary-soft: #E3F2F0;
    --sth-ink: #17201C;
    --sth-ink-2: #36423C;
    --sth-muted: #4A5650;
    --sth-muted-2: #56625C;
    --sth-line: #E4E8E5;
    --sth-line-2: #EEF1EF;
    --sth-field: #D5DBD7;
    --sth-bg: #F7F8F6;
    --sth-surface: #FFFFFF;
    --sth-placeholder: #E9EEEA;
    --sth-sell: #166534;
    --sth-sell-soft: #E6F4EA;
    --sth-buy: #1D4ED8;
    --sth-buy-soft: #E8EFFE;
    --sth-donate: #9A3412;
    --sth-donate-soft: #FFF1E0;
    --sth-danger: #B42318;
    --sth-dark: #0F2F2C;
    --sth-radius: 16px;
    --sth-font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --sth-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    /* El color de marca anterior (#35b8be) no alcanza contraste 4.5:1 sobre blanco */
    --color-brand: var(--sth-primary);
    --color-bg-light: var(--sth-bg);
}

body {
    font-family: var(--sth-font);
    color: var(--sth-ink);
    background: var(--sth-bg);
}

h1, h2, h3, .display-1, .sth-display { font-family: var(--sth-display); letter-spacing: -0.01em; }
a { color: var(--sth-primary); }
a:hover { color: var(--sth-primary-dark); }

/* Ajustes globales de Bootstrap para que las vistas no rediseñadas combinen */
.btn { border-radius: 10px; font-weight: 600; }
.btn-brand, .btn-brand:hover, .btn-brand:focus { background: var(--sth-primary); border-color: var(--sth-primary); color: #fff !important; }
.btn-brand:hover { background: var(--sth-primary-dark); }
.card { border-radius: var(--sth-radius); border-color: var(--sth-line); }
.form-control, .form-select { border-radius: 10px; border-color: var(--sth-field); }
.form-control:focus, .form-select:focus { border-color: var(--sth-primary); box-shadow: 0 0 0 .2rem rgba(11,110,112,.18); }
.alert { border-radius: 12px; max-width: 1200px; margin: 16px auto 0; }

/* Layout */
/* width: 100% porque el body es flex en columna y margin:auto encogería la sección a su contenido */
.sth-container { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.sth-main { flex: 1; width: 100%; padding-top: 40px; padding-bottom: 64px; }
.sth-section { padding-top: 48px; padding-bottom: 48px; }
.sth-eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sth-primary); }
.sth-h1 { font-family: var(--sth-display); font-weight: 600; font-size: 34px; margin: 0 0 6px; }
.sth-h2 { font-family: var(--sth-display); font-weight: 600; font-size: 32px; margin: 8px 0 4px; }
.sth-lead { font-size: 15px; color: var(--sth-muted); margin: 0; }
.sth-section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.sth-panel { background: var(--sth-surface); border: 1px solid var(--sth-line); border-radius: var(--sth-radius); }
.sth-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Botones */
.sth-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; line-height: 1.2; }
.sth-btn-primary { background: var(--sth-primary); color: #fff; }
.sth-btn-primary:hover { background: var(--sth-primary-dark); color: #fff; }
.sth-btn-dark { background: var(--sth-ink); color: #fff; }
.sth-btn-dark:hover { background: #000; color: #fff; }
.sth-btn-outline { background: #fff; color: var(--sth-ink); border-color: var(--sth-field); }
.sth-btn-outline:hover { background: var(--sth-bg); color: var(--sth-ink); }
.sth-btn-buy { background: var(--sth-buy); color: #fff; }
.sth-btn-buy:hover { background: #1E40AF; color: #fff; }
.sth-btn-sm { min-height: 38px; padding: 8px 14px; font-size: 14px; }
.sth-link-btn { font-size: 14px; font-weight: 600; text-decoration: none; border: 1px solid var(--sth-line); padding: 10px 16px; border-radius: 10px; background: #fff; }

/* Etiquetas */
.sth-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.sth-pill-sell { background: var(--sth-sell-soft); color: var(--sth-sell); }
.sth-pill-buy { background: var(--sth-buy-soft); color: var(--sth-buy); }
.sth-pill-donate { background: var(--sth-donate-soft); color: var(--sth-donate); }
.sth-pill-neutral { background: var(--sth-line-2); color: var(--sth-muted); }
.sth-pill-danger { background: #FEF3F2; color: var(--sth-danger); }
.sth-kind { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.sth-kind::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.sth-kind-sell { color: var(--sth-sell); }
.sth-kind-buy { color: var(--sth-buy); }
.sth-kind-donate { color: var(--sth-donate); }

/* Navbar */
.sth-nav { background: #fff; border-bottom: 1px solid var(--sth-line); position: sticky; top: 0; z-index: 1030; }
.sth-nav-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 12px; padding-bottom: 12px; }
.sth-brand img { max-width: 170px; height: auto; display: block; }
.sth-search { flex: 1 1 320px; display: flex; min-width: 0; border: 1px solid var(--sth-field); border-radius: 12px; overflow: hidden; background: #fff; margin: 0; }
.sth-search select { border: 0; border-right: 1px solid var(--sth-line); padding: 0 10px; font-size: 14px; background: var(--sth-bg); color: var(--sth-ink); max-width: 120px; }
.sth-search input { flex: 1; min-width: 0; border: 0; padding: 10px 14px; font-size: 14px; outline: none; }
.sth-search button { border: 0; background: var(--sth-primary); color: #fff; width: 46px; }
.sth-nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 14px; font-weight: 500; margin: 0; padding: 0; list-style: none; }
.sth-nav-links > li > a.sth-nav-text { color: var(--sth-ink-2); text-decoration: none; }
.sth-icon-btn { position: relative; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; color: var(--sth-ink-2); text-decoration: none; font-size: 20px; background: none; border: 0; }
.sth-icon-btn:hover { background: var(--sth-bg); color: var(--sth-ink); }
.sth-icon-btn.is-active { background: var(--sth-primary-soft); color: var(--sth-primary); }
.sth-badge { position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--sth-danger); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.sth-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--sth-placeholder); }
.sth-account-toggle { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 2px; color: var(--sth-ink-2); position: relative; }
.sth-menu { border: 1px solid var(--sth-line); border-radius: 14px; box-shadow: 0 12px 32px rgba(16,24,20,.12); padding: 8px; min-width: 250px; }
.sth-menu .dropdown-item { border-radius: 8px; padding: 10px 12px; font-size: 14px; font-weight: 500; color: var(--sth-ink); display: flex; justify-content: space-between; align-items: center; }
.sth-menu .dropdown-item:hover, .sth-menu .dropdown-item.active { background: var(--sth-primary-soft); color: var(--sth-primary); }
.sth-menu .sth-menu-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--sth-line-2); margin-bottom: 6px; }
.sth-menu .sth-menu-head strong { display: block; font-size: 14px; }
.sth-menu .sth-logout { color: var(--sth-danger); }
.sth-nav-toggler { display: none; }
@media (max-width: 991.98px) {
    .sth-nav-toggler { display: inline-flex; margin-left: auto; }
    .sth-nav-collapse { flex-basis: 100%; }
    .sth-nav-collapse:not(.show) { display: none; }
    .sth-nav-collapse.show { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding-bottom: 8px; }
    .sth-search { flex-basis: 100%; }
}
@media (min-width: 992px) {
    .sth-nav-collapse { display: flex !important; flex: 1 1 auto; flex-wrap: wrap; align-items: center; gap: 12px 20px; justify-content: flex-end; }
}

/* Hero */
.sth-hero { padding-top: 64px; padding-bottom: 40px; }
.sth-hero h1 { margin: 0; font-weight: 600; font-size: clamp(34px, 5vw, 58px); line-height: 1.05; letter-spacing: -0.02em; max-width: 820px; }
.sth-hero p.sth-hero-text { margin: 20px 0 0; font-size: 18px; line-height: 1.6; color: var(--sth-muted); max-width: 640px; }
.sth-intents { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.sth-intent { position: relative; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--sth-line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 12px; transition: box-shadow .2s, transform .2s; }
.sth-intent:hover { color: inherit; box-shadow: 0 10px 30px rgba(16,24,20,.08); transform: translateY(-2px); }
.sth-intent-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.sth-intent-title { font-family: var(--sth-display); font-size: 22px; font-weight: 600; }
.sth-intent-text { font-size: 15px; line-height: 1.5; color: var(--sth-muted); }
.sth-intent-cta { margin-top: auto; font-size: 14px; font-weight: 600; }
.sth-intent-new { position: absolute; top: 20px; right: 20px; }

/* Tarjetas de producto */
.sth-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.sth-card { background: #fff; border: 1px solid var(--sth-line); border-radius: var(--sth-radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.sth-card:hover { box-shadow: 0 10px 30px rgba(16,24,20,.08); transform: translateY(-2px); }
.sth-card-media { position: relative; display: block; aspect-ratio: 4 / 3; flex-shrink: 0; overflow: hidden; background: var(--sth-placeholder); }
/* absolute: so the image's natural height can't stretch the 4:3 box */
.sth-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.sth-card-media .sth-pill { position: absolute; top: 12px; left: 12px; }
.sth-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.sth-card-title { font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--sth-ink); text-decoration: none; }
.sth-card-title:hover { color: var(--sth-primary); }
.sth-card-meta { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.sth-price { font-family: var(--sth-display); font-size: 20px; font-weight: 600; color: var(--sth-ink); }
.sth-unit, .sth-meta-text { font-size: 13px; color: var(--sth-muted-2); }
.sth-card .sth-btn { width: 100%; }

/* Filas (compras, mis publicaciones, carrito) */
.sth-rows { display: flex; flex-direction: column; }
.sth-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding: 18px 16px; border-bottom: 1px solid var(--sth-line-2); }
.sth-row:last-child { border-bottom: 0; }
.sth-row:hover { background: #FAFBFA; }
.sth-row-thumb { width: 72px; height: 60px; border-radius: 10px; object-fit: cover; background: var(--sth-placeholder); flex: none; }
.sth-row-main { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.sth-row-title { font-size: 16px; font-weight: 600; color: var(--sth-ink); text-decoration: none; }
.sth-row-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Donaciones */
.sth-donate { background: #FFF7EE; border: 1px solid #F6DFC4; border-radius: 20px; padding: 40px 32px; display: flex; flex-wrap: wrap; gap: 32px; }
.sth-donate-steps { flex: 1 1 420px; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.sth-donate-steps li { background: #fff; border: 1px dashed #EBC9A2; border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.sth-donate-steps .sth-step-n { font-family: var(--sth-display); font-size: 28px; font-weight: 600; color: var(--sth-donate); }

/* Cómo funciona / economía circular */
.sth-steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 32px; }
.sth-steps li { display: flex; flex-direction: column; gap: 10px; border-top: 2px solid var(--sth-ink); padding-top: 20px; }
.sth-steps .sth-step-n { font-family: var(--sth-display); font-size: 14px; font-weight: 600; color: var(--sth-primary); }
.sth-steps .sth-step-t { font-size: 18px; font-weight: 600; }
.sth-steps .sth-step-d { font-size: 15px; line-height: 1.6; color: var(--sth-muted); }
.sth-dark-band { background: var(--sth-dark); color: #E8F1EE; border-radius: 24px; padding: 48px 40px; display: flex; flex-wrap: wrap; gap: 40px; }
.sth-dark-band h2 { color: #fff; font-size: 34px; line-height: 1.15; margin: 0; }
.sth-dark-band .sth-eyebrow { color: #8FD3C8; }
.sth-benefits { flex: 2 1 480px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.sth-benefits strong { display: block; font-size: 17px; color: #fff; margin-bottom: 8px; }
.sth-benefits span { font-size: 15px; line-height: 1.6; color: #B9CEC8; }
.sth-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 32px; }

/* Pestañas */
.sth-tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--sth-line); margin-bottom: 20px; }
.sth-tab { font-size: 15px; font-weight: 500; color: var(--sth-muted); background: none; border: 0; border-bottom: 2px solid transparent; padding: 12px 14px; margin-bottom: -1px; cursor: pointer; }
.sth-tab.is-active { color: var(--sth-primary); font-weight: 600; border-bottom-color: var(--sth-primary); }
.sth-tab .sth-count { font-size: 12px; font-weight: 600; background: var(--sth-line-2); color: var(--sth-ink-2); padding: 2px 8px; border-radius: 999px; margin-left: 6px; }

/* Estados vacíos */
.sth-empty { background: #fff; border: 1px dashed #CCD4CF; border-radius: var(--sth-radius); padding: 56px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.sth-empty-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--sth-line-2); color: var(--sth-muted-2); display: flex; align-items: center; justify-content: center; font-size: 24px; }

/* Formularios / cuenta */
.sth-account { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.sth-side { flex: 1 1 220px; max-width: 260px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.sth-side a { text-decoration: none; color: var(--sth-ink-2); padding: 12px 14px; border-radius: 10px; }
.sth-side a:hover { background: #fff; }
.sth-side a.is-active { color: var(--sth-primary); background: var(--sth-primary-soft); font-weight: 600; }
.sth-account-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.sth-form-card { padding: 28px; }
.sth-form-card h2 { font-family: var(--sth-font); font-size: 18px; font-weight: 600; margin: 0 0 4px; }
.sth-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 20px; }
.sth-fields .form-label { font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.sth-fields .form-control, .sth-fields .form-select, .sth-form-card .form-control { padding: 11px 14px; }
.sth-notice { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; background: #FFF7EE; border: 1px solid #F6DFC4; border-radius: 14px; padding: 16px 20px; color: #6B4A33; }
.sth-notice strong { color: #7C2D12; display: block; }
.sth-ok { display: flex; align-items: center; gap: 12px; background: var(--sth-sell-soft); border-radius: 14px; padding: 14px 20px; color: var(--sth-sell); font-weight: 600; }

/* Suscripción */
.sth-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 40px; }
.sth-plan { position: relative; display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--sth-line); border-radius: var(--sth-radius); padding: 22px; cursor: pointer; margin: 0; }
.sth-plan input { position: absolute; opacity: 0; }
.sth-plan:has(input:checked) { border: 2px solid var(--sth-primary); padding: 21px; background: #F1F8F7; }
.sth-plan:has(input:focus-visible) { outline: 2px solid var(--sth-primary); outline-offset: 2px; }
.sth-plan-name { font-size: 16px; font-weight: 600; }
.sth-plan-price { font-family: var(--sth-display); font-size: 28px; font-weight: 600; }
.sth-plan-period { font-family: var(--sth-font); font-size: 14px; font-weight: 400; color: var(--sth-muted-2); }
.sth-step-title { margin: 0 0 14px; font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 10px; font-family: var(--sth-font); }
.sth-step-title span { width: 26px; height: 26px; border-radius: 50%; background: var(--sth-primary); color: #fff; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.sth-summary { flex: 1 1 300px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }

/* Notificaciones */
.sth-inbox-item { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--sth-line-2); }
.sth-inbox-item:last-child { border-bottom: 0; }
.sth-inbox-item.is-unread { background: #F4FAF9; }
.sth-inbox-icon { width: 40px; height: 40px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--sth-line-2); color: var(--sth-muted-2); }
.sth-inbox-item.is-unread .sth-inbox-icon { background: var(--sth-primary-soft); color: var(--sth-primary); }
.sth-inbox-item.is-unread .sth-inbox-msg { font-weight: 600; }
.sth-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sth-primary); flex: none; }

/* Login */
.sth-auth { min-height: 100vh; display: flex; flex-wrap: wrap; background: #fff; }
.sth-auth-side { flex: 1 1 420px; background: var(--sth-dark); color: #E8F1EE; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.sth-auth-side h1 { color: #fff; font-size: 40px; line-height: 1.1; margin: 0; }
.sth-auth-side ul { margin: 24px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; font-size: 15px; }
.sth-auth-side li { display: flex; gap: 12px; align-items: center; }
.sth-auth-logo { background: #fff; border-radius: 12px; padding: 8px 12px; align-self: flex-start; }
.sth-auth-logo img { max-width: 220px; display: block; }
.sth-auth-main { flex: 1 1 480px; padding: 48px 24px; display: flex; align-items: center; justify-content: center; }
.sth-auth-form { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 18px; }
.sth-auth-form .form-control { padding: 12px 14px; }

/* Chat (conserva las clases que usa el JavaScript) */
.chat-box { background: #fff; border: 1px solid var(--sth-line); border-radius: 18px; padding: 0; min-height: 640px; max-height: none; overflow: hidden; margin: 0; }
.chat-box > .sth-chat-list { border-right: 1px solid var(--sth-line); padding: 20px; background: #fff; }
.chat-box > .sth-chat-thread { border: 0; border-radius: 0; padding: 0 0 0 0; display: flex; flex-direction: column; background: #FAFBFA; }
.chat-conversations-box { max-height: 520px; }
.conversation-item { border: 1px solid var(--sth-line-2); border-radius: 12px; }
.conversation-item.is-current { background: #F1F8F7; border-color: var(--sth-primary); }
.conversation-item .card-body { padding: 12px; }
.chat-conversation-image { width: 48px; height: 48px; border-radius: 12px; }
.chat-product-container { padding: 16px 20px; background: #fff; border-bottom: 1px solid var(--sth-line-2); }
.chat-product-info-box { border-radius: 0; color: var(--sth-ink); background: #fff; font-weight: 500; padding: 12px 20px; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--sth-line-2); margin-bottom: 0 !important; font-size: 14px; }
.chat-product-info-box a { color: var(--sth-primary) !important; font-weight: 600; }
.chat-messages-container { max-height: 460px; padding: 20px !important; overflow-y: auto; }
.bubble-left, .bubble-right { border: 0; padding: 10px 14px; font-size: 15px; line-height: 1.5; border-radius: 16px; }
.bubble-left { background: #fff; border: 1px solid var(--sth-line); border-bottom-left-radius: 4px; }
.bubble-right { background: var(--sth-primary); color: #fff; border-bottom-right-radius: 4px; }
.message-buuble-container .d-flex { font-size: 12px; color: var(--sth-muted-2); margin-bottom: 4px; }
.sth-chat-compose { padding: 16px 20px; border-top: 1px solid var(--sth-line-2); background: #fff; margin: auto 0 0 !important; }

/* Ficha de producto */
/* Galería | información | recuadro de compra; se apila en pantallas angostas */
.sth-pdp { display: grid; gap: 28px; align-items: start; grid-template-columns: 1fr; grid-template-areas: "gallery" "info" "buy"; }
@media (min-width: 768px) {
    .sth-pdp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "gallery info" "gallery buy"; }
}
@media (min-width: 1100px) {
    .sth-pdp { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 300px; grid-template-areas: "gallery info buy"; }
}
.sth-pdp-gallery { grid-area: gallery; display: flex; flex-direction: column-reverse; gap: 12px; }
@media (min-width: 768px) { .sth-pdp-gallery { flex-direction: row; position: sticky; top: 84px; } }
.sth-pdp-thumbs { display: flex; gap: 8px; overflow-x: auto; }
@media (min-width: 768px) { .sth-pdp-thumbs { flex-direction: column; overflow: auto; max-height: 480px; } }
.sth-thumb { flex: none; width: 64px; height: 64px; padding: 0; border: 2px solid var(--sth-line); border-radius: 10px; overflow: hidden; background: #fff; cursor: pointer; }
.sth-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sth-thumb.is-active, .sth-thumb:hover { border-color: var(--sth-primary); }
.sth-pdp-stage { position: relative; flex: 1; min-width: 0; aspect-ratio: 1 / 1; background: #fff; border: 1px solid var(--sth-line); border-radius: 18px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.sth-pdp-stage img { width: 100%; height: 100%; object-fit: contain; padding: 12px; transition: transform .3s; }
.sth-pdp-stage:hover img { transform: scale(1.04); }
.sth-pdp-count { position: absolute; bottom: 12px; right: 12px; font-size: 12px; font-weight: 600; background: rgba(23,32,28,.72); color: #fff; padding: 4px 10px; border-radius: 999px; }
.sth-gallery-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--sth-muted-2); }
.sth-pdp-info { grid-area: info; min-width: 0; }
.sth-pdp-title { font-family: var(--sth-display); font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; line-height: 1.15; margin: 0 0 8px; }
.sth-pdp-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 14px; }
.sth-pdp-byline a { text-decoration: none; font-weight: 500; }
.sth-stars { color: #E0A100; display: inline-flex; align-items: center; gap: 1px; }
.sth-pdp-hr { margin: 18px 0; border-color: var(--sth-line); opacity: 1; }
.sth-pdp-price { font-family: var(--sth-display); font-size: 36px; font-weight: 600; line-height: 1.1; color: var(--sth-ink); }
.sth-pdp-currency { font-size: .55em; vertical-align: super; margin-right: 1px; }
.sth-pdp-h2 { font-family: var(--sth-font); font-size: 16px; font-weight: 700; margin: 0 0 12px; }
.sth-pdp-bullets { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.sth-pdp-bullets li { display: flex; gap: 12px; align-items: flex-start; }
.sth-pdp-bullets li > i { width: 18px; margin-top: 3px; color: var(--sth-primary); text-align: center; flex: none; }
.sth-pdp-bullets .sth-chip { margin: 2px 4px 0 0; padding: 3px 10px; font-size: 13px; }
.sth-pdp-desc-short { color: var(--sth-ink-2); line-height: 1.6; margin: 0 0 4px; }
.sth-pdp-buy { grid-area: buy; background: #fff; border: 1px solid var(--sth-line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 6px 24px rgba(16,24,20,.06); }
@media (min-width: 1100px) { .sth-pdp-buy { position: sticky; top: 84px; } }
.sth-pdp-avail { color: var(--sth-sell); font-weight: 600; font-size: 15px; }
.sth-pdp-ship { font-size: 14px; color: var(--sth-ink-2); }
.sth-pdp-ship i { color: var(--sth-muted-2); margin-right: 4px; }
.sth-pdp-cta .sth-btn { width: 100%; min-height: 44px; font-size: 15px; }
.sth-pdp-terms { margin: 0; padding-top: 12px; border-top: 1px solid var(--sth-line-2); display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.sth-pdp-terms > div { display: grid; grid-template-columns: 96px 1fr; gap: 8px; }
.sth-pdp-terms dt { font-weight: 500; color: var(--sth-muted-2); }
.sth-pdp-terms dd { margin: 0; color: var(--sth-ink); }
.sth-pdp-terms a { text-decoration: none; }
.sth-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 0; }
.sth-facts dt { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--sth-muted-2); }
.sth-facts dd { margin: 2px 0 0; font-size: 15px; font-weight: 500; }
.sth-facts-list { grid-template-columns: 1fr; gap: 0; }
.sth-facts-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--sth-line-2); }
.sth-facts-list > div:last-child { border-bottom: 0; }
.sth-facts-list dd { margin: 0; text-align: right; }
.breadcrumb a { text-decoration: none; }
.sth-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--sth-primary); background: var(--sth-primary-soft); padding: 6px 12px; border-radius: 999px; }
.sth-chip:hover { background: var(--sth-primary); color: #fff; }

/* Modal de perfil (SweetAlert) */
.sth-profile-modal { text-align: left; font-size: 15px; }
.sth-profile-head { display: flex; align-items: center; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--sth-line-2); }
.sth-profile-head img { width: 72px; height: 72px; border-radius: 16px; object-fit: contain; background: #fff; border: 1px solid var(--sth-line); flex: none; }
.sth-profile-head h3 { font-family: var(--sth-display); font-size: 20px; font-weight: 600; margin: 0; color: var(--sth-ink); }
.sth-rating-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; background: var(--sth-bg); border-radius: 12px; padding: 10px 14px; margin: 16px 0; }
.sth-rate { display: inline-flex; flex-direction: row-reverse; }
.sth-rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sth-rate label { font-size: 28px; line-height: 1; color: #CBD2CE; cursor: pointer; padding: 0 2px; }
.sth-rate input:checked ~ label, .sth-rate label:hover, .sth-rate label:hover ~ label { color: #E0A100; }
.sth-rate input:focus-visible + label { outline: 2px solid var(--sth-primary); border-radius: 4px; }
.swal2-popup .sth-swal-title { font-family: var(--sth-display); font-size: 22px; font-weight: 600; color: var(--sth-ink); }

/* Footer */
.sth-footer { background: var(--sth-ink); color: #C9D3CE; margin-top: auto; }
.sth-footer-grid { padding-top: 56px; padding-bottom: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; font-size: 14px; line-height: 1.6; }
.sth-footer h2 { font-family: var(--sth-font); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin: 0 0 12px; }
.sth-footer a { color: #C9D3CE; text-decoration: none; }
.sth-footer a:hover { color: #fff; }
.sth-footer .sth-footer-brand { font-family: var(--sth-display); font-weight: 700; font-size: 20px; color: #fff; }
.sth-footer-bottom { border-top: 1px solid #2C3732; }
.sth-footer-bottom .sth-container { padding-top: 20px; padding-bottom: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 13px; color: #9AA8A1; }
