/* Marjorie Botas — tienda pública */
:root {
    --mb-primary: #8C2C2B;
    --mb-primary-dark: #6b1e1d;
    --mb-primary-soft: rgba(140, 44, 43, 0.08);
    --mb-surface: #faf8f6;
    --mb-surface-2: #f1edea;
    --mb-text: #1e293b;
}

body.storefront-body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background: linear-gradient(180deg, var(--mb-surface) 0%, var(--mb-surface-2) 48rem, var(--mb-surface) 100%);
    color: var(--mb-text);
}

.storefront-nav {
    border-bottom: 1px solid rgba(140, 44, 43, 0.12);
    backdrop-filter: blur(8px);
}

.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 rgba(140, 44, 43, 0.12) !important;
    background: linear-gradient(135deg, #fff 0%, #fffaf8 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.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    border-radius: 0.75rem !important;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !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-text);
}

.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 rgba(140, 44, 43, 0.1);
    background: #fff;
}

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

/* Home */
.mb-home-hero {
    background: linear-gradient(135deg, #fff 0%, #fff8f6 55%, #fff 100%);
    border: 1px solid rgba(140, 44, 43, 0.1) !important;
}

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

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

.mb-trust-pill {
    font-size: 0.8125rem;
    color: var(--mb-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
}

.mb-trust-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--mb-primary);
    flex-shrink: 0;
}

.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 rgba(140, 44, 43, 0.25);
}

.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: rgba(140, 44, 43, 0.06);
    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: rgba(140, 44, 43, 0.35);
}

.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 rgba(140, 44, 43, 0.12) !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;
}
