/* ===============================
   GLOBAL STYLE
================================ */

* {
    font-family: 'Poppins', 'Montserrat', sans-serif;
}

/* ===== TEXT COLORS ===== */

.text-custom-blue {
    color: rgb(0, 57, 86) !important;
}

/* ===== IMAGE HOVER ANIMATION ===== */
.rounded-circle {
    transition: transform 0.4s ease;
}

.rounded-circle:hover {
    transform: scale(1.05);
}

/* ===== PRODUCT GRID SQUARE IMAGES ===== */

/* ===== TOP BAR ===== */

.top-bar {
    background: #416680;
    color: #ffffff;
    font-size: 11px;
    padding: 2px 0;
}

.top-bar .container {
    min-height: 26px;
}

.top-contact {
    font-size: 10px !important;
}

.top-contact a {
    color: #ffffff;
    text-decoration: none;
    font-size: 10px !important;
}

.top-contact i {
    font-size: 10px;
}

.top-bar a:hover {
    color: #ebad2a;
}

.top-social a {
    color: #ffffff;
    font-size: 11px;
    margin-left: 5px;
    transition: 0.3s;
}

.top-social a:hover {
    color: #ebad2a;
}


/* ===== MAIN NAVBAR ===== */

.main-navbar {
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.navbar-brand img {
    height: 58px;
}

.nav-link {
    font-weight: 500;
    font-size: 15px;
    color: #416680 !important;
    margin: 0 8px;
    transition: 0.3s;
}

.nav-link:hover {
    color: #468e99 !important;
}

.nav-icon {
    font-size: 17px;
    color: #1d1d1b;
    position: relative;
    transition: 0.3s;
}

.nav-icon:hover {
    color: #468e99;
}


/* ===== CART BADGE ===== */

.cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #ebad2a;
    color: #1d1d1b;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 50px;
    font-weight: 600;
}


/* ===== ADMIN BUTTON ===== */

.btn-primary-custom {
    background: #416680;
    border: none;
}

.btn-primary-custom:hover {
    background: #468e99;
}

/* widen admin login dropdown */
.admin-dropdown {
    min-width: 250px;
    /* make login form wider */
}

@media (max-width: 576px) {
    .admin-dropdown {
        min-width: 100%;
        left: 0 !important;
        right: 0 !important;
    }
}


/* ===== RESPONSIVE ===== */

@media (max-width:768px) {

    .navbar-brand img {
        height: 50px;
    }

    .nav-link {
        font-size: 14px;
    }

}


/* ===============================
   FOOTER DARK
================================ */

.footer-dark {
    background: #1d1d1b;
    color: #ffffff;
}

.footer-logo {
    height: 80px;
}

.footer-title {
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
}

.footer-contact li {
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-contact i {
    color: #ebad2a;
    margin-right: 10px;
}

.footer-contact a {
    color: #ffffff;
    text-decoration: none;
}

.footer-contact a:hover {
    color: #468e99;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
}

.footer-links a:hover {
    color: #468e99;
}


/* ===== FOOTER SOCIAL ===== */

.footer-links .btn-reserva-footer {
    display: inline-block;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 0;
}

.footer-links .btn-reserva-footer:hover {
    color: #468e99 !important;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-right: 10px;
    border-radius: 50%;
    background: #416680;
    color: #ffffff;
    text-decoration: none;
    transition: 0.3s;
}

.footer-social a:hover {
    background: #ebad2a;
    color: #1d1d1b;
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin: 40px 0 20px;
}

.footer-bottom {
    font-size: 14px;
    color: #cccccc;
}


/* ===== MOBILE MENU ICON ===== */

@media (max-width: 768px) {
    .footer-dark .row {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .footer-dark .col-lg-4 {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 20px 0 !important;
        text-align: center !important;
        flex: 0 0 100% !important;
    }

    .footer-dark .footer-title {
        margin-bottom: 12px;
        font-size: 16px;
    }

    .footer-dark .footer-contact,
    .footer-dark .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 0;
        margin: 0;
        width: 100%;
    }

    .footer-dark .footer-contact li,
    .footer-dark .footer-links li {
        margin-bottom: 0;
        text-align: center;
        width: 100%;
    }

    .footer-dark .footer-contact a,
    .footer-dark .footer-links a {
        display: inline-block;
        width: 100%;
        max-width: 360px;
        white-space: normal;
        line-height: 1.4;
    }

    .footer-dark .footer-contact i {
        display: none;
    }

    .footer-dark .footer-social {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 6px;
    }

    .footer-dark .footer-logo {
        display: block;
        margin: 0 auto 10px auto;
        height: 70px;
    }
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0,0,0,0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* MOBILE NAV FIX */

@media (max-width:991px) {

    .navbar-collapse {
        text-align: center;
        padding-top: 10px;
    }

    .nav-icons {
        margin-top: 10px;
        justify-content: center;
    }

    .nav-link {
        padding: 10px 0;
    }

    .admin-dropdown {
        position: relative;
    }

}

/* ===== HERO CAROUSEL MOBILE OPTIMIZATION ===== */

@media (max-width: 768px) {
    #template-mo-zay-hero-carousel .carousel-item {
        min-height: 20rem !important;
        /* reduce height for mobile */
    }

    #template-mo-zay-hero-carousel .h1 {
        font-size: 2rem !important;
        /* smaller title */
    }

    #template-mo-zay-hero-carousel .h2 {
        font-size: 1.5rem !important;
        /* smaller subtitle */
    }

    #template-mo-zay-hero-carousel p {
        font-size: 14px !important;
        /* smaller paragraph */
    }

    #template-mo-zay-hero-carousel .row {
        padding: 2rem !important;
        /* reduce padding */
    }
}

/* ===== FIX ADMIN DROPDOWN MOBILE ===== */
/* ===== ADMIN DROPDOWN MOBILE POSITION ===== */

@media (max-width:991px) {

    .admin-dropdown {
        position: absolute !important;

        top: 35px;
        /* distancia debajo del icono */
        left: 50%;
        transform: translateX(-53%);

        width: 280px;
        max-width: 90vw;

        z-index: 2000;
        border-radius: 12px;
    }

    .nav-icons {
        position: relative;
    }

}

/* ===== CAROUSEL INDICATORS POSITION ===== */

.carousel-indicators {
    bottom: -40px;
    /* bajar indicadores al final del carousel */
}

@media (max-width: 768px) {
    .carousel-indicators {
        bottom: -30px;
        /* ajuste para móviles */
    }
}

/* ===== CAROUSEL ENTRY ANIMATION ===== */
#template-mo-zay-hero-carousel {
    animation: slideDown 1s ease-out both;
}

@keyframes slideDown {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===== TOAST NOTIFICATION ===== */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    font-weight: 500;
    max-width: 300px;
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-content {
    display: flex;
    align-items: center;
    font-size: 14px;
}

/* ===== CATEGORIES BUTTON MOBILE ===== */

.btn-categories-mobile {
    background-color: #ebad2a !important;
    color: #ffffff !important;
    font-weight: 600;
    border: none;
}

.btn-categories-mobile:hover {
    background-color: #d99820 !important;
    color: #ffffff !important;
}

/* FEATURED SECTION */

.featured-section {
    background: #f8f9fb;
}

.featured-title {
    font-weight: 600;
    color: #416680;
    font-size: 32px;
}


/* CARD */

.featured-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transition: all .3s;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}


/* IMAGE */

.featured-img {
    height: 220px;
    overflow: hidden;
}

.featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .4s;
}

.featured-card:hover img {
    transform: scale(1.05);
}



/* BODY */

.featured-body {
    padding: 18px;
    text-align: center;
}

.featured-name a {
    color: #1d1d1b;
    font-weight: 600;
    text-decoration: none;
}

.featured-name a:hover {
    color: #468e99;
}


/* RATING */

.featured-rating {
    color: #ebad2a;
    font-size: 13px;
    margin: 6px 0;
}


/* PRICE */

.featured-price {
    font-size: 20px;
    font-weight: 700;
    color: #416680;
    margin-bottom: 12px;
}


/* ACTION BUTTONS */

.featured-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* PRODUCT PAGE PREMIUM */

.product-wrapper {
    padding: 70px 0;
    background: #f8fafc;
}

/* IMAGE */

.product-gallery {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

.product-main-img {
    border-radius: 15px;
    transition: transform .4s ease;
}

.product-main-img:hover {
    transform: scale(1.03);
}

/* INFO */

.product-info {
    padding: 10px 10px;
}

.product-title {
    font-size: 34px;
    font-weight: 600;
    color: #1d1d1b;
}

/* RATING */

.product-rating {
    color: #ebad2a;
    font-size: 16px;
}

.rating-text {
    color: #6c757d;
    font-size: 14px;
}

/* PRICE */

.product-price {
    font-size: 32px;
    font-weight: 700;
    color: #416680;
}

/* DESCRIPTION */

.product-description {
    font-size: 15px;
    color: #6c757d;
    line-height: 1.7;
    max-width: 520px;
}

/* ACTIONS */

.product-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
}

.product-actions .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-cart-btn {
    background: #416680;
    border: none;
    padding: 14px 26px;
    border-radius: 12px;
    font-weight: 600;
    transition: .3s;
}

.add-cart-btn:hover {
    background: #468e99;
    transform: translateY(-2px);
}

/* SHOP-SINGLE*/
/* PRODUCT GALLERY */

.product-gallery {
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.product-main-img {
    border-radius: 12px;
    width: 100%;
    transition: .3s;
}

/* THUMBNAILS */

.product-thumbnails {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.thumb-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: .3s;
}

.thumb-img:hover {
    transform: scale(1.05);
    border-color: #416680;
}

.thumb-img.active {
    border-color: #ebad2a;
}

.admin-table-wrapper {
    max-width: 1200px;
    /* 👈 ajusta aquí */
    margin: 0 auto;
    /* centrar */
}

.admin-table {
    width: 100%;
    table-layout: auto;
}

th,
td {
    white-space: nowrap;
    /* evita que se rompa el texto */
}

td:nth-child(4) {
    min-width: 250px;
    /* productos */
}

td:nth-child(2) {
    min-width: 180px;
    /* cliente */
}

td:nth-child(6) {
    min-width: 150px;
    /* imagen */
}


.card-admin {
    padding: 25px;
}

.table th {
    font-size: 14px;
    padding: 12px 10px;
}

.table td {
    padding: 12px 10px;
    vertical-align: middle;
}

.admin-table-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

h5 {
    margin-bottom: 20px;
}

/*=========== FOOTER RESPONSIVE ========*/
.footer-dark {
    background: #1d1d1b;
    color: #ffffff;
}

.footer-title {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-contact,
.footer-links {
    margin: 0;
    padding: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}

.footer-contact li i {
    width: 18px;
    min-width: 18px;
    margin-top: 4px;
    color: #c9a76a;
    text-align: center;
}

.footer-contact a,
.footer-links a {
    color: #d7d7d7;
    text-decoration: none;
    line-height: 1.5;
    overflow-wrap: anywhere;
    transition: color .2s ease;
}

.footer-contact a:hover,
.footer-links a:hover {
    color: #ffffff;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-logo {
    width: 110px;
    height: auto;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    transition: all .2s ease;
}

.footer-social a:hover {
    background: #ffffff;
    color: #416680;
    transform: translateY(-2px);
}

.footer-divider {
    height: 1px;
    margin-top: 25px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, .15);
}

.footer-bottom {
    color: #bcbcbc;
    font-size: .86rem;
}

/* TABLETS Y MÓVILES */
@media (max-width: 991.98px) {
    .footer-dark .container {
        padding-left: 24px;
        padding-right: 24px;
    }

    .footer-dark .row>div {
        margin-bottom: 32px !important;
    }
}

/* MÓVILES */
@media (max-width: 576px) {
    .footer-dark .container {
        padding-top: 35px !important;
        padding-bottom: 25px !important;
        padding-left: 20px;
        padding-right: 20px;
    }

    .footer-dark .row {
        text-align: center;
    }

    .footer-title {
        margin-bottom: 15px;
        font-size: 1rem;
    }

    .footer-contact li {
        justify-content: center;
        align-items: flex-start;
        text-align: left;
        margin-bottom: 12px;
    }

    .footer-contact a {
        max-width: calc(100% - 30px);
        font-size: .9rem;
    }

    .footer-links li {
        margin-bottom: 10px;
    }

    .footer-links a {
        font-size: .9rem;
    }

    .footer-logo {
        width: 90px;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-social {
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-social a {
        width: 38px;
        height: 38px;
    }

    .footer-divider {
        margin-top: 5px;
    }

    .footer-bottom {
        font-size: .78rem;
        line-height: 1.5;
        padding: 0 10px;
    }
}


.product-title-shop {
    color: #416680 !important;
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.25;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    overflow: hidden;
    text-overflow: ellipsis;

    height: 2.5em;
    margin-bottom: 6px;
}

.product-title-shop:hover {
    color: #468e99 !important;
}

.product-price-shop {
    font-size: 1.10rem;
    font-weight: 700;
    color: #1d1d1b;
    margin: 0;
}

.product-unit-shop {
    display: inline-block;
    margin-top: 3px;
    padding: 2px 6px;
    background: transparent;
    border-radius: 50px;

    color: #5b6770;

    font-size: .60rem;
    font-weight: 600;
    letter-spacing: .15px;
}

.product-unit-shop i {
    margin-right: 4px;
    color: #416680;
}


/* ===== PRODUCT CARD (MISMO TAMAÑO DEL SHOP) ===== */

.product-wap {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 18px !important;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 28px rgba(0,0,0,.07);
    transition: transform .2s ease, box-shadow .2s ease;
}

.product-wap:hover{
    transform: translateY(-4px);
    box-shadow:0 16px 36px rgba(0,0,0,.12);
}

.product-wap>.card{
    height:245px;
    border:0;
    border-radius:18px 18px 0 0 !important;
    overflow:hidden;
}

.product-card-img{
    width:100%;
    height:245px;
}

.product-card-img img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.product-wap .card-body{
    height:115px;
    min-height:115px;
    padding:14px;
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
}

@media (max-width:576px){

    .product-wap>.card,
    .product-card-img{
        height:170px;
    }

    .product-wap .card-body{
        height:105px;
        min-height:105px;
        padding:12px 10px;
    }

}