/* Marjorie Botas / JC Sebastian — tienda pública */
:root {
    --mb-primary: #8C2C2B;
    --mb-primary-dark: #6b1e1d;
    --mb-primary-soft: rgba(140, 44, 43, 0.08);
    --mb-surface: #f7f4f1;
    --mb-surface-2: #efeae5;
    --mb-text: #161616;
    --mb-ink: #161616;
    --mb-muted: #5c5c5c;
    --mb-font-display: 'Cormorant Garamond', Georgia, serif;
    --mb-font-body: 'Outfit', system-ui, sans-serif;
}

body.storefront-body {
    font-family: var(--mb-font-body);
    background:
        radial-gradient(1200px 480px at 10% -10%, color-mix(in srgb, var(--mb-primary) 14%, transparent), transparent 60%),
        radial-gradient(900px 420px at 100% 0%, color-mix(in srgb, var(--mb-secondary) 10%, transparent), transparent 55%),
        linear-gradient(180deg, var(--mb-surface) 0%, var(--mb-surface-2) 48rem, var(--mb-surface) 100%);
    color: var(--mb-ink);
}

.storefront-nav {
    border-bottom: 1px solid color-mix(in srgb, var(--mb-primary) 14%, transparent);
    backdrop-filter: blur(10px);
}

.storefront-nav .nav-link {
    font-weight: 500;
    border-radius: 0.5rem;
    padding: 0.45rem 0.85rem !important;
}

.storefront-nav .nav-link:hover {
    background: var(--mb-primary-soft);
    color: var(--mb-primary) !important;
}

.mb-branch-filter {
    border: 1px solid color-mix(in srgb, var(--mb-primary) 14%, transparent) !important;
    background: linear-gradient(135deg, #fff 0%, color-mix(in srgb, var(--mb-primary) 4%, #fff) 100%);
}

.mb-branch-filter .form-select {
    border-radius: 0.5rem;
    border-color: #e2e8f0;
}

.mb-branch-filter .btn-primary {
    border-radius: 0.5rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.breadcrumb {
    --bs-breadcrumb-divider: '›';
    font-size: 0.9rem;
}

.product-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
    border-radius: 0.75rem !important;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12) !important;
}

.product-card .card-body {
    padding: 0.85rem 1rem 1rem;
}

.product-card-img-link:hover img {
    opacity: 0.92;
}

.product-card-title-link:hover {
    color: var(--mb-primary) !important;
    text-decoration: underline !important;
}

/* Mismo verde que el botón flotante de WhatsApp (.mb-wa-float-btn) */
.mb-product-card-wa-btn {
    min-height: 2.35rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
    background: #25d366 !important;
    border: none !important;
    color: #fff !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.mb-product-card-wa-btn:hover {
    background: #20bd5a !important;
    color: #fff !important;
    transform: scale(1.02);
    box-shadow: 0 0.25rem 0.75rem rgba(37, 211, 102, 0.45);
}

.mb-page-title {
    letter-spacing: -0.02em;
    color: var(--mb-ink);
}

.mb-contact-hero {
    background: linear-gradient(135deg, var(--mb-primary) 0%, var(--mb-primary-dark) 100%);
    color: #fff;
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
}

.mb-contact-branch {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
}

.mb-contact-branch .ratio iframe {
    min-height: 280px;
}

.mb-contact-branch .card-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.storefront-footer {
    border-top: 1px solid color-mix(in srgb, var(--mb-primary) 12%, transparent);
    background: #fff;
}

@media (min-width: 992px) {
    .mb-branch-filter .row.align-items-end > div:first-child p {
        margin-bottom: 0 !important;
    }
}

/* ——— Home hero (full-bleed) ——— */
.storefront-main-home {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.mb-hero {
    position: relative;
    isolation: isolate;
    min-height: min(78vh, 640px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    color: #fff;
    background: #0c0c0c;
}

.mb-hero-media,
.mb-hero-glow {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.mb-hero-media-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    animation: mbHeroKen 18s ease-in-out infinite alternate;
}

.mb-hero-media-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(8, 8, 8, 0.88) 0%, rgba(8, 8, 8, 0.55) 48%, rgba(8, 8, 8, 0.35) 100%),
        linear-gradient(0deg, rgba(8, 8, 8, 0.55) 0%, transparent 45%);
}

.mb-hero--jc .mb-hero-media-shade {
    background:
        linear-gradient(100deg, rgba(6, 10, 18, 0.82) 0%, rgba(6, 10, 18, 0.45) 42%, rgba(6, 10, 18, 0.18) 70%, transparent 100%),
        linear-gradient(0deg, rgba(6, 10, 18, 0.5) 0%, transparent 42%);
}

.mb-hero--jc .mb-hero-media-img {
    object-position: center 18%;
    animation: none;
    transform: none;
}

.mb-hero--jc {
    min-height: min(68vh, 560px);
}

.mb-hero-kicker {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 0.65rem;
}

.mb-hero--tone .mb-hero-glow {
    background:
        radial-gradient(ellipse 80% 70% at 20% 40%, color-mix(in srgb, var(--mb-primary) 55%, transparent), transparent 55%),
        radial-gradient(ellipse 60% 50% at 85% 20%, color-mix(in srgb, var(--mb-secondary) 35%, transparent), transparent 50%),
        linear-gradient(160deg, #0a0a0a 0%, #1a1212 55%, #0c0c0c 100%);
    animation: mbHeroPulse 10s ease-in-out infinite alternate;
}

.mb-hero-inner {
    position: relative;
    z-index: 1;
    padding-top: 4.5rem;
    padding-bottom: 3.25rem;
    width: 100%;
}

.mb-hero-copy {
    max-width: 36rem;
}

.mb-hero-logo {
    display: block;
    max-width: min(280px, 72vw);
    height: auto;
    margin-bottom: 1.25rem;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}

.storefront-store-jc-sebastian .mb-hero-logo {
    max-width: min(220px, 58vw);
}

.storefront-store-jc-sebastian .mb-hero-media-img {
    object-position: center 18%;
}

.mb-hero-title {
    font-family: var(--mb-font-display);
    font-weight: 600;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 0.85rem;
}

.mb-hero-lead {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 1.5rem;
    max-width: 28rem;
}

.mb-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.mb-hero-actions .btn-outline-light {
    border-width: 1.5px;
    backdrop-filter: blur(4px);
}

.mb-hero-actions .btn-primary {
    box-shadow: 0 10px 28px color-mix(in srgb, var(--mb-primary) 45%, transparent);
}

.mb-hero-scroll {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    opacity: 0.55;
}

.mb-hero-scroll span {
    display: block;
    width: 1px;
    height: 2.25rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), transparent);
    animation: mbScrollPulse 1.8s ease-in-out infinite;
}

.mb-reveal {
    opacity: 0;
    transform: translateY(18px);
    animation: mbReveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.mb-reveal-delay-1 { animation-delay: 0.12s; }
.mb-reveal-delay-2 { animation-delay: 0.28s; }
.mb-reveal-delay-3 { animation-delay: 0.42s; }

@keyframes mbReveal {
    to { opacity: 1; transform: none; }
}

@keyframes mbHeroKen {
    from { transform: scale(1.04) translate3d(0, 0, 0); }
    to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

@keyframes mbHeroPulse {
    from { filter: brightness(1); }
    to { filter: brightness(1.12); }
}

@keyframes mbScrollPulse {
    0%, 100% { opacity: 0.35; transform: scaleY(0.85); }
    50% { opacity: 1; transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
    .mb-hero-media-img,
    .mb-hero--tone .mb-hero-glow,
    .mb-hero-scroll span,
    .mb-reveal {
        animation: none !important;
    }
    .mb-reveal { opacity: 1; transform: none; }
}

.mb-home-find {
    max-width: 40rem;
}

.mb-home-search-group {
    border-radius: 0.85rem;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
    border: 1px solid color-mix(in srgb, var(--mb-primary) 12%, #e8e4df);
}

.mb-home-search .form-control {
    border: 0;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.mb-home-search .form-control:focus {
    box-shadow: none;
}

.mb-section-head {
    margin-bottom: 1.25rem;
}

.mb-section-title {
    font-family: var(--mb-font-display);
    font-weight: 600;
    font-size: clamp(1.75rem, 3vw, 2.15rem);
    letter-spacing: -0.02em;
    color: var(--mb-ink);
    margin: 0;
}

.mb-section-sub {
    color: var(--mb-muted);
    margin: 0.25rem 0 0;
    font-size: 0.95rem;
}

.mb-cat-rail {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.mb-cat-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    color: var(--mb-ink);
    font-weight: 500;
    font-size: 0.92rem;
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--mb-primary) 14%, #e5e1dc);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.mb-cat-chip:hover {
    transform: translateY(-2px);
    border-color: var(--mb-primary);
    color: var(--mb-primary);
    background: color-mix(in srgb, var(--mb-primary) 6%, #fff);
}

.mb-home-title {
    letter-spacing: -0.03em;
    color: var(--mb-ink);
}

.mb-cat-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    border-radius: 0.75rem !important;
}

.mb-cat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1) !important;
}

main.container {
    max-width: 1140px;
}

.storefront-nav.navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.92) !important;
}

.storefront-nav .navbar-brand {
    letter-spacing: -0.03em;
}

.storefront-nav .btn-primary.rounded-pill {
    box-shadow: 0 2px 8px color-mix(in srgb, var(--mb-primary) 28%, transparent);
}

.storefront-body .alert {
    border-radius: 0.75rem;
    border: none;
}

.storefront-body .table {
    --bs-table-bg: transparent;
}

.storefront-body .table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    border-bottom-width: 1px;
}

.mb-branch-filter code {
    font-size: 0.7rem;
    background: var(--mb-primary-soft);
    padding: 0.1rem 0.35rem;
    border-radius: 0.25rem;
    color: var(--mb-primary-dark);
}

.storefront-body h1,
.storefront-body .h2,
.storefront-body .h3 {
    letter-spacing: -0.02em;
}

.storefront-body a:not(.btn):not(.nav-link):not(.page-link) {
    text-decoration-color: color-mix(in srgb, var(--mb-primary) 35%, transparent);
}

.storefront-body a:not(.btn):not(.nav-link):not(.page-link):hover {
    text-decoration-color: var(--mb-primary);
}

/* Botón “Usar mi ubicación” (filtro sucursal) */
.mb-filter-use-location {
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.mb-filter-use-location:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 0.35rem 0.85rem color-mix(in srgb, var(--mb-primary) 14%, transparent) !important;
}
.mb-filter-use-location:disabled {
    cursor: wait;
}

/* WhatsApp flotante */
.mb-wa-float {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 1040;
}

.mb-wa-float-btn {
    min-height: 3.25rem;
    border-radius: 9999px;
    padding: 0.35rem 0.85rem 0.35rem 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #25d366 !important;
    border: none !important;
    color: #fff !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mb-wa-float-label {
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}

@media (max-width: 380px) {
    .mb-wa-float-label {
        display: none;
    }
}

.mb-wa-float-btn:hover {
    transform: scale(1.06);
    color: #fff !important;
    background: #20bd5a !important;
}

.mb-wa-choice-highlight {
    border-color: #25d366 !important;
    background: linear-gradient(135deg, #f0fff4 0%, #fff 100%) !important;
}

/* Modal WhatsApp (sucursales) */
.mb-wa-modal-dialog {
    max-width: 26rem;
}

.mb-wa-modal-content {
    border-radius: 1.125rem;
    overflow: hidden;
    background: linear-gradient(180deg, #fafaf9 0%, #fff 38%);
}

.mb-wa-modal-gradient {
    height: 4px;
    background: linear-gradient(90deg, var(--mb-primary, #8c2c2b) 0%, #25d366 55%, #128c7e 100%);
}

.mb-wa-modal-header .mb-wa-modal-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(145deg, #2fe077 0%, #25d366 45%, #1ebe57 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
}

.mb-wa-modal-hint {
    padding: 0.65rem 0.85rem;
    border-radius: 0.65rem;
    background: rgba(37, 211, 102, 0.08);
    border: 1px solid rgba(37, 211, 102, 0.18);
    color: #3d4f44;
    line-height: 1.45;
}

.mb-wa-modal-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-height: min(70vh, 26rem);
    overflow-y: auto;
    padding-right: 0.15rem;
    scrollbar-gutter: stable;
}

.mb-wa-modal-li {
    margin: 0;
}

.mb-wa-modal-wa-mark {
    display: block;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.65rem;
    background: #25d366;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.435 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E");
    background-size: 1.35rem;
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.35);
    flex-shrink: 0;
}

.mb-wa-modal-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 0.85rem;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.mb-wa-modal-card:hover {
    border-color: rgba(37, 211, 102, 0.45);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.mb-wa-modal-card:focus-visible {
    outline: 2px solid rgba(37, 211, 102, 0.65);
    outline-offset: 2px;
}

.mb-wa-modal-card--featured {
    border-color: rgba(37, 211, 102, 0.55);
    background: linear-gradient(135deg, #f4fff8 0%, #fff 72%);
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.12);
}

.mb-wa-modal-card__title {
    letter-spacing: -0.01em;
}

.mb-wa-modal-badge {
    display: inline-block;
    margin-top: 0.35rem;
    padding: 0.2rem 0.55rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 9999px;
    background: rgba(37, 211, 102, 0.18);
    color: #0d5c2f;
    border: 1px solid rgba(37, 211, 102, 0.28);
}

.mb-wa-modal-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.4rem 0.95rem;
    border-radius: 9999px;
    white-space: nowrap;
    pointer-events: none;
}

.mb-wa-modal-pill--wa {
    background: linear-gradient(180deg, #2fe077 0%, #25d366 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.4);
}

.mb-wa-modal-pill--tel {
    background: #fff;
    color: #475569;
    border: 1px solid rgba(15, 23, 42, 0.12);
}

.mb-wa-modal-card:hover .mb-wa-modal-pill--wa {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.5);
}

/* Ficha de producto */
.mb-product-profile .mb-product-gallery-col {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

@media (min-width: 992px) {
    .mb-product-profile .mb-product-gallery-col {
        border-bottom: none;
        border-right: 1px solid rgba(0, 0, 0, 0.06);
    }
}

.mb-product-specs dt {
    font-weight: 500;
}

.mb-size-pill {
    background: var(--mb-primary) !important;
    color: #fff !important;
}

.mb-product-thumb.border-primary {
    box-shadow: 0 0 0 2px rgba(140, 44, 43, 0.25);
}

/* Sucursales en home */
.mb-home-branch-card .ratio iframe {
    width: 100%;
    height: 100%;
}

.mb-home-branch-card h3 a:hover {
    color: var(--mb-primary) !important;
}
