html {
    font-size: 14px;
    min-height: 100%;
    scroll-padding-top: 130px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

:root {
    --mc-orange: #f57c00;
    --mc-orange-dark: #df6f00;
    --mc-green: #25d366;
    --mc-text: #222;
    --mc-muted: #777;
    --mc-soft: #f8f9fa;
    --mc-border: #ececec;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
    color: var(--mc-text);
}

main,
.main-container {
    flex: 1;
}

.footer,
.site-footer {
    position: static !important;
    bottom: auto !important;
    margin-top: auto !important;
    width: 100%;
    background-color: #fff;
    border-top: 1px solid #eee;
    z-index: 1;
}

/* HEADER */
.top-store-header {
    position: sticky;
    top: 0;
    z-index: 1040;
    background: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

.logo-mc {
    width: 62px !important;
    height: 62px !important;
    object-fit: contain;
    border-radius: 50%;
    background-color: white;
    padding: 4px;
    box-shadow: 0 5px 16px rgba(0,0,0,0.14);
}

.brand-title {
    font-size: 1.45rem !important;
    font-weight: 900;
    color: var(--mc-orange);
    line-height: 1;
}

.brand-subtitle {
    font-size: 0.85rem !important;
    color: #777;
}

/* SEARCH */
.mc-search-box {
    max-width: 620px !important;
    width: 100%;
    border: 2px solid #ff1c1c;
    border-radius: 12px !important;
    overflow: hidden;
    background: #fff;
}

    .mc-search-box input {
        border: none;
        box-shadow: none !important;
        padding: 12px 18px !important;
    }

    .mc-search-box button {
        border: none;
        background: #fff;
        padding: 0 18px !important;
        font-size: 1.35rem;
    }

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
}

.btn-whatsapp {
    background-color: #25D366;
    border: none;
    color: white;
    border-radius: 999px;
    padding: 9px 20px;
    font-weight: 700;
}

    .btn-whatsapp:hover {
        background-color: #1ebe5d;
        color: white;
    }

/* CARRITO HEADER */
.mc-cart-widget,
.cart-summary,
.carrito-resumen {
    text-decoration: none;
    color: #222;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mc-cart-icon {
    position: relative;
    font-size: 2.1rem;
    line-height: 1;
}

.mc-cart-count {
    position: absolute;
    top: -9px;
    right: -12px;
    background: red;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    min-width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mc-cart-text {
    line-height: 1.1;
}

.mc-cart-title {
    font-weight: 600;
}

.mc-cart-total {
    font-weight: 700;
}

/* SLIDER */
.home-slider-section {
    padding: 2rem 0 3rem;
}

.mc-slider-wrapper {
    overflow: hidden;
    border-radius: 28px !important;
    background: #fff;
    box-shadow: 0 18px 45px rgba(0,0,0,0.08);
}

.slider-img {
    height: 430px;
    width: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 28px;
    transition: transform 0.8s ease, filter 0.8s ease;
}

.carousel-item:hover .slider-img {
    transform: scale(1.03);
}

.slider-caption {
    left: 7%;
    right: auto;
    bottom: 15%;
    max-width: 510px;
    text-align: left;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

    .slider-caption h1 {
        color: #fff;
        font-size: 2.75rem;
        font-weight: 900;
        line-height: 1.05;
        margin-bottom: 0.9rem;
        text-shadow: 0 8px 24px rgba(0,0,0,0.45);
    }

    .slider-caption p {
        color: #fff;
        font-size: 1.1rem;
        line-height: 1.55;
        margin-bottom: 1.35rem;
        text-shadow: 0 5px 18px rgba(0,0,0,0.45);
    }

.btn-slider-primary,
.btn-slider-whatsapp {
    border-radius: 999px;
    padding: 0.82rem 1.7rem;
    font-weight: 800;
    border: none;
    box-shadow: 0 8px 22px rgba(0,0,0,0.16);
    transition: all 0.25s ease;
}

.btn-slider-primary {
    background: var(--mc-orange);
    color: #fff;
}

    .btn-slider-primary:hover {
        background: var(--mc-orange-dark);
        color: #fff;
        transform: translateY(-2px);
    }

.btn-slider-whatsapp {
    background: var(--mc-green);
    color: #fff;
}

    .btn-slider-whatsapp:hover {
        background: #1ebe5d;
        color: #fff;
        transform: translateY(-2px);
    }

/* CATEGORÍAS */
.categories-showcase {
    padding: 2.8rem 0;
}

.categories-title {
    font-size: 2.1rem;
    font-weight: 900;
    color: #161616;
    margin-bottom: 0.3rem;
}

.categories-line {
    width: 120px;
    height: 5px;
    background: var(--mc-orange);
    border-radius: 999px;
    margin: 0 auto 1.2rem;
}

.categories-subtitle {
    max-width: 760px;
    margin: 0 auto;
    color: #555;
    font-size: 1.02rem;
}

.category-image-link {
    display: block;
    text-decoration: none !important;
    color: inherit !important;
}

.category-image-card {
    text-align: center;
    transition: transform 0.25s ease;
}

    .category-image-card:hover {
        transform: translateY(-6px);
    }

.category-image-box {
    height: 230px !important;
    border-radius: 24px;
    overflow: hidden;
    background: #fff !important;
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-photo {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    padding: 12px;
    background: #fff;
    transition: transform 0.55s ease, filter 0.55s ease;
}

.category-image-card:hover .category-photo {
    transform: scale(1.08);
    filter: brightness(0.96);
}

.category-button-name {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 145px;
    max-width: 95%;
    margin-top: 1rem;
    padding: 0.78rem 1.35rem;
    background: var(--mc-orange);
    color: #fff;
    font-weight: 800;
    border-radius: 999px;
    box-shadow: 0 10px 22px rgba(245,124,0,0.28);
    text-decoration: none !important;
}

.category-image-card:hover .category-button-name {
    background: var(--mc-orange-dark);
}

/* PRODUCTOS */
.product-card {
    border: 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.07);
    transition: all 0.25s ease-in-out;
    background: #fff;
    height: 100%;
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 16px 34px rgba(0,0,0,0.12);
    }

.product-img-link {
    display: block;
    height: 245px;
    overflow: hidden;
    background: #fff;
    border-radius: 24px 24px 0 0;
    text-decoration: none;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    background: #fff;
    transition: transform 0.45s ease, filter 0.45s ease;
}

.product-img-link:hover .product-img {
    transform: scale(1.10);
    filter: brightness(0.97);
}

.product-category {
    color: var(--mc-orange);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: #222;
    line-height: 1.25;
    min-height: 52px;
}

.product-price {
    font-size: 1.35rem;
    font-weight: 900;
    color: #111;
}

/* PRODUCTO DETALLE */
.product-detail-container {
    padding-top: 4rem !important;
}

.product-detail-img-box {
    width: 100%;
    height: 520px;
    background: #fff;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 24px;
    background: #fff;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.product-detail-img-box:hover .product-detail-img {
    transform: scale(1.08);
    filter: brightness(0.98);
}

/* CARRITO */
.cart-qty-input {
    width: 58px;
    height: 34px;
    text-align: center;
    border: 1px solid #ced4da;
    border-radius: 10px;
    font-weight: 700;
    outline: none;
}

    .cart-qty-input:focus {
        border-color: #f57c00;
        box-shadow: 0 0 0 0.15rem rgba(245,124,0,0.15);
    }

/* WHATSAPP */
.mc-whatsapp-widget {
    position: fixed;
    right: 18px;
    left: auto;
    bottom: 20px;
    z-index: 1050;
    width: 330px;
    max-width: calc(100vw - 30px);
}

.mc-whatsapp-box {
    background: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    overflow: hidden;
}

.mc-whatsapp-header {
    background: #25D366;
    color: #fff;
    padding: 13px 42px 13px 16px;
    font-weight: 700;
    position: relative;
}

.mc-whatsapp-close {
    position: absolute;
    right: 12px;
    top: 8px;
    border: none;
    background: transparent;
    color: #0b6b2b;
    font-size: 1.4rem;
    font-weight: 900;
}

.mc-whatsapp-body {
    background: #f6efe8;
    padding: 14px;
}

.mc-whatsapp-message {
    background: #fff;
    border-radius: 8px;
    padding: 14px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.mc-whatsapp-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1e9ff2;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    position: relative;
}

.mc-whatsapp-small {
    color: #888;
    font-size: 0.85rem;
}

.mc-whatsapp-link {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 700;
}

    .mc-whatsapp-link:hover {
        color: #fff;
        background: #1ebe5d;
    }

/* REDES */
.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    text-decoration: none;
    transition: 0.3s ease;
}

    .social-icon.fb {
        background: #1877f2;
    }

    .social-icon.ig {
        background: linear-gradient(45deg,#f9ce34,#ee2a7b,#6228d7);
    }

    .social-icon.tk {
        background: #000;
    }

    .social-icon:hover {
        color: white;
        transform: scale(1.15);
        box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    }

/* RESPONSIVE */
@media (max-width: 991.98px) {
    html {
        scroll-padding-top: 120px;
    }

    .slider-img {
        height: 360px;
    }

    .category-image-box {
        height: 210px !important;
    }

    .product-detail-img-box {
        height: 430px;
    }

    .mc-whatsapp-widget {
        width: 300px;
        right: 12px;
    }

    .mc-search-box {
        max-width: 100% !important;
    }
}

@media (max-width: 575.98px) {
    html {
        scroll-padding-top: 110px;
    }

    .logo-mc {
        width: 58px !important;
        height: 58px !important;
    }

    .brand-title {
        font-size: 1.25rem !important;
    }

    .brand-subtitle {
        font-size: 0.8rem !important;
    }

    .slider-img {
        height: 300px;
    }

    .category-image-box {
        height: 200px !important;
    }

    .product-img-link {
        height: 210px;
    }

    .product-detail-img-box {
        height: 340px;
    }

    .product-detail-img {
        padding: 14px;
    }

    .mc-whatsapp-widget {
        width: calc(100vw - 24px);
        right: 12px;
        bottom: 12px;
    }

    .mc-search-box {
        border-radius: 10px !important;
    }
}
