/* Harmand shop skin — body.shop-theme.skin-harmand (localStorage shop.skin) */

/* Anular fondo “galaxia” global de app.css (verde/azul en body::before) */
html.shop-skin-harmand body.shop-theme.skin-harmand::before,
body.shop-theme.skin-harmand::before {
    display: none !important;
    content: none !important;
    background: none !important;
    opacity: 0 !important;
}

html.shop-skin-harmand,
html.shop-skin-harmand body.shop-theme.skin-harmand,
body.shop-theme.skin-harmand {
    --shop-bg: #050505;
    --shop-surface: #111111;
    --shop-border: rgba(255, 255, 255, 0.08);
    --shop-border-strong: rgba(255, 255, 255, 0.14);
    --shop-text: #f5f5f5;
    --shop-muted: #a3a3a3;
    --shop-accent: #e11d2e;
    --shop-accent-soft: rgba(225, 29, 46, 0.16);
    --shop-sidebar-from: #0c0c0c;
    --shop-sidebar-to: #050505;
    --shop-brand-from: #e11d2e;
    --shop-brand-to: #7f1d1d;
    --app-bg-from: #050505;
    --app-bg-to: #050505;
    --shop-catalog-image-size: 220px;
    background-color: #050505 !important;
    background-image: none !important;
}

/* Fondo moto difuminado (mismo asset / tratamiento que login) */
body.shop-theme.skin-harmand::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: #050505 url('../images/harmand/login-bg.jpg') center center / cover no-repeat;
    transform: scale(1.08);
    filter: blur(10px) brightness(0.32) saturate(0.75);
}

body.shop-theme.skin-harmand .shop-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    background:
        linear-gradient(105deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.42) 45%, rgba(0, 0, 0, 0.68) 100%),
        radial-gradient(ellipse at 18% 55%, rgba(225, 29, 46, 0.1), transparent 48%);
    background-attachment: fixed;
}

body.shop-theme.skin-harmand .shop-main,
body.shop-theme.skin-harmand .shop-content {
    background: transparent;
}

body.shop-theme.skin-harmand .shop-top {
    background: rgba(5, 5, 5, 0.92);
    border-bottom-color: rgba(225, 29, 46, 0.12);
}

body.shop-theme.skin-harmand .shop-sidebar {
    background: linear-gradient(180deg, #0c0c0c 0%, #050505 100%);
    border-right-color: rgba(225, 29, 46, 0.1);
}

body.shop-theme.skin-harmand .shop-ribbon:not(.is-active):not(.shop-ribbon-tienda) {
    background: #141414;
    color: #e5e5e5;
}

body.shop-theme.skin-harmand .shop-ribbon:not(.is-active):not(.shop-ribbon-tienda):hover {
    background: #1a1a1a;
    border-color: rgba(225, 29, 46, 0.3);
}

body.shop-theme.skin-harmand .shop-ribbon-sub {
    background: #0d0d0d;
}

body.shop-theme.skin-harmand .shop-search-results,
body.shop-theme.skin-harmand .shop-filters-drawer .shop-filters-inline,
body.shop-theme.skin-harmand .shop-branch-menu {
    background: #111111 !important;
}

body.shop-theme.skin-harmand .shop-search-item:hover,
body.shop-theme.skin-harmand .shop-search-item.is-active {
    background: rgba(225, 29, 46, 0.12) !important;
}

body.shop-theme.skin-harmand .shop-search-footer:hover {
    background: rgba(225, 29, 46, 0.1) !important;
}

body.shop-theme.skin-harmand .shop-footer {
    border-top-color: rgba(225, 29, 46, 0.12);
}

body.shop-theme.skin-harmand .shop-footer a:hover {
    color: #fca5a5;
}

body.shop-theme.skin-harmand .shop-product-image {
    background: linear-gradient(180deg, #1a1a1a, #080808);
}

body.shop-theme.skin-harmand .shop-product-card.is-available {
    border-color: rgba(225, 29, 46, 0.35);
}

body.shop-theme.skin-harmand .shop-product-card.is-available:hover {
    border-color: rgba(225, 29, 46, 0.55);
    box-shadow: 0 8px 24px rgba(225, 29, 46, 0.1);
}

body.shop-theme.skin-harmand .shop-brand-card:hover {
    border-color: rgba(225, 29, 46, 0.55) !important;
    box-shadow: 0 8px 24px rgba(225, 29, 46, 0.14) !important;
}

body.shop-theme.skin-harmand .shop-brand-logo span {
    color: #fca5a5;
}

body.shop-theme.skin-harmand .shop-taxonomy-btn {
    background: #e11d2e;
    color: #fff;
}

body.shop-theme.skin-harmand .shop-taxonomy-search input:focus {
    border-color: #e11d2e;
    box-shadow: 0 0 0 3px rgba(225, 29, 46, 0.18);
}

body.shop-theme.skin-harmand .shop-stock-branch-item.is-current {
    border-color: rgba(225, 29, 46, 0.45) !important;
    background: rgba(225, 29, 46, 0.1) !important;
}

body.shop-theme.skin-harmand .shop-stock-branch-item.is-nearest:not(.is-current) {
    border-color: rgba(225, 29, 46, 0.22) !important;
}

body.shop-theme.skin-harmand .shop-stock-branch-item:hover {
    border-color: rgba(225, 29, 46, 0.35);
}

body.shop-theme.skin-harmand .shop-stock-qty,
body.shop-theme.skin-harmand .shop-stock-here,
body.shop-theme.skin-harmand .shop-pdp-pick,
body.shop-theme.skin-harmand .shop-pdp-stock.is-ok {
    color: #fca5a5 !important;
}

body.shop-theme.skin-harmand .shop-stock-chip {
    color: #fff;
    background: #e11d2e;
}

body.shop-theme.skin-harmand .shop-pdp-lens {
    border-color: #e11d2e !important;
    background: rgba(225, 29, 46, 0.14) !important;
}

body.shop-theme.skin-harmand .shop-pdp-zoom-pane {
    border-color: rgba(225, 29, 46, 0.45);
    background: #0a0a0a;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(225, 29, 46, 0.2);
}

body.shop-theme.skin-harmand .shop-pdp-zoom-hint i {
    color: #e11d2e;
}

body.shop-theme.skin-harmand .shop-product-image-link img,
body.shop-theme.skin-harmand .hm-product-card-img img {
    transition: transform 0.35s ease;
}

body.shop-theme.skin-harmand .shop-product-card:hover .shop-product-image-link img,
body.shop-theme.skin-harmand .hm-product-card:hover .hm-product-card-img img {
    transform: scale(1.12);
}

body.shop-theme.skin-harmand .shop-ribbon.is-active,
body.shop-theme.skin-harmand .shop-ribbon-tienda.is-active {
    background: linear-gradient(135deg, #e11d2e, #991b1b);
    border-color: rgba(225, 29, 46, 0.45);
}

body.shop-theme.skin-harmand .shop-btn-primary {
    background: linear-gradient(135deg, #e11d2e, #b91c1c);
    color: #fff;
    border-color: transparent;
}

body.shop-theme.skin-harmand .shop-btn-primary:hover {
    filter: brightness(1.06);
}

body.shop-theme.skin-harmand .shop-stat-icon,
body.shop-theme.skin-harmand .shop-cat-icon {
    background: rgba(225, 29, 46, 0.14);
    color: #fecaca;
}

body.shop-theme.skin-harmand .shop-product-price {
    color: #fca5a5;
}

body.shop-theme.skin-harmand .shop-product-btn {
    background: #e11d2e;
    border-color: #e11d2e;
}

body.shop-theme.skin-harmand .shop-top-eyebrow {
    color: #fca5a5;
}

/* Vista Harmand (única) */
.shop-home-harmand {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-bottom: 1rem;
}

.hm-hero {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(225, 29, 46, 0.25);
    background:
        radial-gradient(ellipse at top right, rgba(225, 29, 46, 0.22), transparent 58%),
        linear-gradient(145deg, rgba(20, 20, 20, 0.78) 0%, rgba(5, 5, 5, 0.72) 100%);
    backdrop-filter: blur(2px);
    padding: 1.75rem 1.5rem;
}

.hm-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 1.5rem;
    align-items: center;
}

@media (max-width: 900px) {
    .hm-hero-grid {
        grid-template-columns: 1fr;
    }
}

.hm-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fecaca;
    margin-bottom: 0.75rem;
}

.hm-hero-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e11d2e;
    box-shadow: 0 0 10px rgba(225, 29, 46, 0.8);
}

.hm-hero-icon-mark {
    display: block;
    width: 88px;
    height: auto;
    border-radius: 14px;
    margin-bottom: 1rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.hm-hero-tagline {
    display: flex;
    align-items: stretch;
    gap: 0.85rem;
    max-width: 28rem;
    margin: 0 0 1.25rem;
}

.hm-hero-tagline-bar {
    width: 4px;
    flex-shrink: 0;
    background: #e11d2e;
    border-radius: 2px;
}

.hm-hero-tagline-text {
    margin: 0;
    font-size: clamp(1.35rem, 2.6vw, 2.15rem);
    font-weight: 600;
    line-height: 1.15;
    color: #f5f5f5;
    letter-spacing: -0.02em;
}

.hm-hero-tagline-text strong {
    color: #e11d2e;
    font-weight: 800;
}

.hm-hero-logo {
    max-width: min(480px, 100%);
    width: 100%;
    height: auto;
    filter: drop-shadow(0 14px 36px rgba(0, 0, 0, 0.5));
}

.hm-hero-title {
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 0.5rem;
    color: #fff;
}

.hm-hero-sub {
    margin: 0 0 1.25rem;
    color: #a3a3a3;
    font-size: 0.95rem;
    max-width: 36rem;
}

.hm-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.hm-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 700;
    border: 1px solid transparent;
    transition: filter 0.15s, transform 0.15s;
}

.hm-btn:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.hm-btn-primary {
    background: #e11d2e;
    color: #fff;
}

.hm-btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: #f5f5f5;
}

.hm-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 160px;
}

.hm-hero-icon {
    width: min(220px, 70%);
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(225, 29, 46, 0.25);
}

@media (max-width: 900px) {
    .hm-hero-visual .hm-hero-logo {
        max-width: min(340px, 92%);
    }
}

.hm-quick {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (max-width: 1100px) {
    .hm-quick {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .hm-quick {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.hm-quick-card {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1.15rem 1.05rem;
    border-radius: 12px;
    border: 1px solid var(--shop-border);
    background: var(--shop-surface);
    transition: border-color 0.15s, background 0.15s;
    min-height: 6.5rem;
}

.hm-quick-card:hover {
    border-color: rgba(225, 29, 46, 0.45);
    background: #161616;
}

.hm-quick-card i {
    color: #e11d2e;
    font-size: 1.25rem;
}

.hm-quick-card strong {
    font-size: 1rem;
}

.hm-quick-card span {
    font-size: 0.8rem;
    color: var(--shop-muted);
}

.hm-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (max-width: 900px) {
    .hm-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.hm-stat {
    padding: 1rem 1.1rem;
    border-radius: 12px;
    border: 1px solid var(--shop-border);
    background: var(--shop-surface);
}

.hm-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fecaca;
    line-height: 1.1;
}

.hm-stat-label {
    font-size: 0.78rem;
    color: var(--shop-muted);
    margin-top: 0.25rem;
}

.hm-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.hm-section-title {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0;
}

.hm-section-link {
    font-size: 0.82rem;
    color: #fca5a5;
    font-weight: 600;
}

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

.hm-product-card {
    border: 1px solid var(--shop-border);
    border-radius: 12px;
    background: #141414;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hm-product-card-img {
    aspect-ratio: 1;
    background: #0d0d0d;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.hm-product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hm-product-card-img .ph {
    color: #525252;
    font-size: 2rem;
}

.hm-product-card-body {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}

.hm-product-card-name {
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.25;
    color: #f5f5f5;
}

.hm-product-card-meta {
    font-size: 0.68rem;
    color: #737373;
}

.hm-product-card-price {
    font-size: 1rem;
    font-weight: 800;
    color: #e11d2e;
}

.hm-product-card-atp {
    font-size: 0.72rem;
    color: #fca5a5;
    font-weight: 600;
}

.hm-product-card-actions {
    display: flex;
    gap: 0.4rem;
    margin-top: auto;
    padding-top: 0.5rem;
}

.hm-product-card-actions a,
.hm-product-card-actions button {
    flex: 1;
    text-align: center;
    padding: 0.45rem 0.5rem;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    border: 0;
    cursor: pointer;
}

.hm-product-card-add {
    background: #e11d2e;
    color: #fff;
}

.hm-product-card-view {
    background: rgba(255, 255, 255, 0.08);
    color: #e5e5e5;
}

.hm-branch {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(225, 29, 46, 0.35);
    background: rgba(225, 29, 46, 0.1);
    color: #fecaca;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.hm-branch i {
    color: #e11d2e;
}

/* —— Overrides: quitar verde clásico (#00e8a0) en skin Harmand —— */

body.shop-theme.skin-harmand .shop-branch-trigger {
    border-color: rgba(225, 29, 46, 0.4);
    background: rgba(225, 29, 46, 0.12);
    color: #fecaca;
}

body.shop-theme.skin-harmand .shop-branch-trigger:hover {
    border-color: rgba(225, 29, 46, 0.6);
    background: rgba(225, 29, 46, 0.2);
}

body.shop-theme.skin-harmand .shop-branch-trigger-text small {
    color: #fca5a5;
}

body.shop-theme.skin-harmand .shop-branch-option.is-active {
    border-color: rgba(225, 29, 46, 0.4);
    background: rgba(225, 29, 46, 0.12);
}

body.shop-theme.skin-harmand .shop-branch-pill.is-active,
body.shop-theme.skin-harmand .shop-branch-pill:hover {
    border-color: rgba(225, 29, 46, 0.45);
}

body.shop-theme.skin-harmand .shop-branch-geo {
    border-color: rgba(225, 29, 46, 0.45);
    background: rgba(225, 29, 46, 0.08);
    color: #fecaca;
}

body.shop-theme.skin-harmand .shop-search:focus-within,
body.shop-theme.skin-harmand .shop-search.is-open {
    border-color: rgba(225, 29, 46, 0.45);
    box-shadow: 0 0 0 2px rgba(225, 29, 46, 0.15);
}

body.shop-theme.skin-harmand .shop-search-branch.is-current {
    border-color: rgba(225, 29, 46, 0.35);
    background: rgba(225, 29, 46, 0.1);
    color: #fecaca;
}

body.shop-theme.skin-harmand .shop-user-chip:hover,
body.shop-theme.skin-harmand .shop-cart-btn:hover {
    border-color: rgba(225, 29, 46, 0.45);
    color: #fecaca;
}

body.shop-theme.skin-harmand .shop-avatar {
    background: linear-gradient(135deg, #e11d2e, #7f1d1d);
}

body.shop-theme.skin-harmand .shop-cart-badge {
    background: #e11d2e;
    color: #fff;
}

body.shop-theme.skin-harmand .shop-ribbon:hover {
    border-color: rgba(225, 29, 46, 0.35);
}

body.shop-theme.skin-harmand .shop-ribbon.is-active {
    box-shadow: 0 0 18px rgba(225, 29, 46, 0.28);
}

body.shop-theme.skin-harmand .shop-ribbon-tienda,
body.shop-theme.skin-harmand .shop-ribbon-tienda:hover,
body.shop-theme.skin-harmand .shop-ribbon-tienda.is-active {
    background: linear-gradient(135deg, #e11d2e, #991b1b);
    border-color: #e11d2e;
    box-shadow: 0 0 18px rgba(225, 29, 46, 0.28);
}

body.shop-theme.skin-harmand .shop-filter-clear,
body.shop-theme.skin-harmand .shop-section-link,
body.shop-theme.skin-harmand .shop-product-stock.is-ok {
    color: #fca5a5;
}

/* Harmand: solo precio + disponibilidad (categorías/marcas van en accesos rápidos) */
body.shop-theme.skin-harmand .shop-filter-block--categories,
body.shop-theme.skin-harmand .shop-filter-block--brands {
    display: none !important;
}

body.shop-theme.skin-harmand .hm-catalog-layout {
    margin-top: 0.25rem;
}

body.shop-theme.skin-harmand .hm-products-section .shop-filter-panel {
    background: #141414;
    border-color: var(--shop-border);
}

body.shop-theme.skin-harmand .shop-stock-switch-track {
    background: rgba(225, 29, 46, 0.28);
    border-color: rgba(225, 29, 46, 0.5);
}

body.shop-theme.skin-harmand .shop-stock-switch-thumb {
    background: #f87171;
}

body.shop-theme.skin-harmand .shop-stock-switch-input:checked + .shop-stock-switch-track {
    background: rgba(115, 115, 115, 0.35);
    border-color: rgba(115, 115, 115, 0.55);
}

body.shop-theme.skin-harmand .shop-stock-switch-input:checked + .shop-stock-switch-track .shop-stock-switch-thumb {
    background: #a3a3a3;
}

body.shop-theme.skin-harmand .shop-stock-switch-label.is-active {
    color: #fca5a5;
}

body.shop-theme.skin-harmand .shop-stock-switch-label.is-active.is-out {
    color: #a3a3a3;
}

body.shop-theme.skin-harmand .shop-price-range input[type=range] {
    accent-color: #e11d2e;
}

body.shop-theme.skin-harmand .shop-filter-apply {
    border-color: rgba(225, 29, 46, 0.55);
    color: #fca5a5;
}

body.shop-theme.skin-harmand .shop-filter-apply:hover {
    background: rgba(225, 29, 46, 0.12);
}

body.shop-theme.skin-harmand .shop-product-stock.is-ok .dot {
    background: #e11d2e;
}

body.shop-theme.skin-harmand .hm-product-card-atp {
    color: #fca5a5;
}

body.shop-theme.skin-harmand .hm-hero-badge .dot {
    background: #e11d2e !important;
    box-shadow: 0 0 10px rgba(225, 29, 46, 0.8) !important;
}

body.shop-theme.skin-harmand .shop-moto-step.is-on,
body.shop-theme.skin-harmand .shop-moto-btn-primary {
    background: #e11d2e;
    border-color: #e11d2e;
    color: #fff;
}
body.shop-theme.skin-harmand .shop-moto-chip.is-on,
body.shop-theme.skin-harmand .shop-moto-card:hover {
    border-color: #e11d2e;
    box-shadow: 0 0 0 1px rgba(225, 29, 46, 0.45);
}
body.shop-theme.skin-harmand .shop-moto-pieza-price {
    color: #e11d2e;
}

body.shop-theme.skin-harmand .shop-logout-modal {
    background: #141414;
    border-color: rgba(255, 255, 255, 0.1);
}
body.shop-theme.skin-harmand .shop-logout-icon,
body.shop-theme.skin-harmand .shop-logout-btn--confirm {
    background: #e11d2e;
    border-color: #e11d2e;
    color: #fff;
}
