/* ==================================================
   KRAFEX — VARIABLES
   ================================================== */

:root {
    --color-default: #0A0A0B;
    --color-second: #0F3D2E;
    --color-white: gold;
    --color-body: #0A0A0B;
    --color-light: #CFA6A1;
}


/* ==================================================
   TOPBAR
   ================================================== */

.topbar {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 60px;

    display: flex;
    align-items: center;

    background-color: var(--color-default);

    padding: 0 20px;

    z-index: 20;

    box-sizing: border-box;
}


/* ==================================================
   LOGO
   ================================================== */

.topbar-logo {
    width: 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;

    flex-shrink: 0;
}

.topbar-logo img {
    width: 48px;
    height: 48px;

    object-fit: contain;

    display: block;
}


/* ==================================================
   BARRA DE BÚSQUEDA
   ================================================== */

.topbar-search {
    flex: 1;

    display: flex;
    justify-content: center;

    margin: 0 30px;
}

.topbar-search-box {
    width: 100%;
    max-width: 500px;
    height: 36px;

    display: flex;
    align-items: center;

    background-color: #2A2A2E;

    border-radius: 6px;

    padding: 0 12px;

    box-sizing: border-box;

    transition: all .3s ease;
}


/* ICONO BUSCAR */

.topbar-search-box i {
    min-width: auto;

    height: auto;
    line-height: normal;

    font-size: 20px;

    color: var(--color-white);
}


/* INPUT */

.topbar-search-box input {
    width: 100%;
    height: 100%;

    border: none;
    outline: none;

    background: transparent;

    color: var(--color-white);

    font-size: 14px;

    padding-left: 8px;
}

.topbar-search-box input::placeholder {
    color: #CFA6A1;
}


/* EFECTO AL BUSCAR */

.topbar-search-box:focus-within {
    box-shadow: 0 0 0 1px var(--color-white);
}


/* ==================================================
   ACCIONES TOPBAR
   ================================================== */

.topbar-actions {
    display: flex;
    align-items: center;

    gap: 5px;

    flex-shrink: 0;
}


/* BOTONES */

.topbar-item {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;

    border-radius: 5px;

    transition: all .3s ease;
}


/* ICONOS */

.topbar-item i {
    min-width: auto;

    height: auto;
    line-height: normal;

    font-size: 21px;

    color: var(--color-white);

    transition: all .3s ease;
}


/* HOVER */

.topbar-item:hover {
    background-color: var(--color-second);
}

.topbar-item:hover i {
    color: white;

    transform: scale(1.05);
}

/* =========================================
   KRAFEX — CONTADOR DE BOLSA
   ========================================= */

.cart-item {
    position: relative;
}


/* CONTADOR */

.cart-counter {
    position: absolute;

    top: -5px;
    right: -7px;

    min-width: 17px;
    height: 17px;

    padding: 0 4px;

    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #CFA6A1;
    color: #0A0A0B;

    border-radius: 50%;

    font-size: 10px;
    font-weight: 700;

    line-height: 1;

    border: 2px solid #0A0A0B;

    z-index: 5;
}

/* ==================================================
   SIDEBAR
   ================================================== */

.sidebar {
    height: calc(100% - 60px);

    width: 60px;

    padding: 6px 8px;

    background-color: var(--color-default);

    transition: all .5s ease;

    position: fixed;

    top: 60px;
    left: 0;

    z-index: 30;

    box-sizing: border-box;
}


.sidebar.open {
    width: 150px;
}


/* ==================================================
   EXPANDER
   ================================================== */

.sidebar .expander {
    height: 40px;

    display: flex;
    align-items: center;

    position: relative;

    padding: 0 25px;
}


.sidebar .expander #btn {
    position: absolute;

    top: 50%;
    right: 0;

    transform: translateY(-50%);

    font-size: 20pt;

    font-weight: bold;

    text-align: right;

    margin-right: 15px;

    cursor: pointer;

    transition: all .5s ease;

    color: var(--color-white);
}


/* SIDEBAR ABIERTO */

.sidebar.open .expander #btn {
    text-align: left;

    margin-right: -5px;

    transform: rotateY(180deg);

    top: 50%;
}


/* ==================================================
   CATEGORY / INICIO
   ================================================== */

.category {
    background: var(--color-second);

    width: 9vh;

    margin-left: -10px;

    padding: 10px 5px;

    color: var(--color-white);

    font-size: 10pt;

    font-weight: bold;
}


/* ==================================================
   ICONOS SIDEBAR
   ================================================== */

.sidebar i {
    color: var(--color-white);

    height: 60px;

    line-height: 60px;

    min-width: 40px;

    text-align: center;
}


/* ==================================================
   LI
   ================================================== */

.sidebar li {
    position: relative;

    margin: 5px 0;

    list-style: none;
}


/* ==================================================
   LINKS
   ================================================== */

.sidebar li a {
    display: flex;

    height: 100%;
    width: 100%;

    align-items: center;

    text-decoration: none;

    background-color: var(--color-default);

    position: relative;

    transition: all .5s ease;

    z-index: 12;
}


/* ==================================================
   EFECTO HOVER
   ================================================== */

.sidebar li a::after {
    content: "";

    position: absolute;

    width: 100%;
    height: 100%;

    transform: scaleX(0);

    background-color: var(--color-white);

    border-radius: 5px;

    transition: transform .3s ease-in-out;

    transform-origin: left;

    z-index: -2;
}


.sidebar li a:hover::after {
    transform: scaleX(1);
}


.sidebar li a:hover .descriptor,
.sidebar li a:hover i {
    color: var(--color-default);
}


/* ==================================================
   DESCRIPTORES
   ================================================== */

.sidebar li a .descriptor {
    color: var(--color-white);

    font-size: 11pt;

    font-weight: 400;

    white-space: nowrap;

    pointer-events: none;

    transition: all .4s ease;

    opacity: 0;
}


.sidebar.open li a .descriptor {
    opacity: 1;

    pointer-events: auto;

    margin-left: 10px;
}


/* ==================================================
   ICONOS DE LOS ITEMS
   ================================================== */

.sidebar li i {
    height: 35px;

    line-height: 35px;

    font-size: 18pt;

    border-radius: 5px;
}


/* ==================================================
   TOOLTIP
   ================================================== */

.sidebar li .tooltip {
    position: absolute;

    top: -20px;

    left: calc(100% + 15px);

    z-index: 50;

    background-color: var(--color-white);

    box-shadow: 0 5px 10px rgba(0, 0, 0, .3);

    padding: 6px 14px;

    font-size: 15px;

    font-weight: 400;

    border-radius: 5px;

    white-space: nowrap;

    opacity: 0;

    pointer-events: none;
}


.sidebar li:hover .tooltip {
    opacity: 1;

    pointer-events: auto;

    transition: all .4s ease;

    top: 50%;

    transform: translateY(-50%);
}


.sidebar.open li .tooltip {
    display: none;
}


/* ==================================================
   INPUTS SIDEBAR
   ================================================== */

.sidebar input {
    font-size: 15px;

    color: var(--color-white);

    font-weight: 400;

    outline: none;

    height: 35px;

    width: 35px;

    border: none;

    border-radius: 5px;

    background-color: var(--color-second);

    transition: all .5s ease;
}


.sidebar input::placeholder {
    color: var(--color-light);
}


.sidebar.open input {
    width: 100%;

    padding: 0 20px 0 50px;
}


/* ==================================================
   SUBMENÚS
   ================================================== */

.sidebar > li > ul {
    display: none;

    margin: 0;

    padding: 0;

    list-style: none;
}


.sidebar > li.active > ul {
    display: block;
}


.sidebar > li > ul > li {
    background-color: var(--color-default);

    color: white;

    margin: 2px 0;
}


/* ==================================================
   ACTIVO
   ================================================== */

.actived {
    background-color: #ffffff50;
}


/* ==================================================
   RESPONSIVE
   ================================================== */

@media screen and (max-width: 920px) {

    .topbar {
        height: 55px;

        padding: 0 10px;
    }


    .topbar-logo {
        width: 50px;
    }


    .topbar-logo img {
        width: 40px;
        height: 40px;
    }


    .topbar-search {
        margin: 0 10px;
    }


    .topbar-search-box {
        max-width: none;

        height: 34px;
    }


    .topbar-item {
        width: 32px;
        height: 32px;
    }


    .topbar-item i {
        font-size: 18px;
    }


    .sidebar {
        top: 55px;

        height: calc(100% - 55px);
    }

}
/* ==================================================
   KRAFEX — COLOR GENERAL DE LA PÁGINA
   ================================================== */

html,
body {
    margin: 0;
    padding: 0;

    width: 100%;
    min-height: 100%;

    background-color: #0A0A0B;

    color: #F5F1E8;
}


/* FONDO PRINCIPAL */

body {
    min-height: 100vh;

    background-color: #0A0A0B;

    font-family: Arial, sans-serif;
}


/* CONTENIDO */

.content {
    min-height: 100vh;

    background-color: #0A0A0B;

    color: #F5F1E8;

    box-sizing: border-box;
}


/* SELECCIÓN DE TEXTO */

::selection {
    background-color: gold;
    color: #0A0A0B;
}
/* ==================================================
   KRAFEX — LÍNEAS SEPARADORAS
   ================================================== */

/* Línea debajo del TOPBAR */

.topbar {
    border-bottom: 1px solid rgba(255, 215, 0, 1)
}


/* Línea a la derecha del SIDEBAR */

.sidebar {
    border-right: 1px solid rgba(255, 215, 0, 1)
}
/* ==================================================
   KRAFEX — COLOR DE ENLACES
   ================================================== */

a {
    color: gold;
    text-decoration: none
}

/* =========================================
   KRAFEX — ENLACE VISITADO TEMPORAL
   ========================================= */

a {
    color: gold
    text-decoration none
}

/* Letras en rosa */
a.visited-temporary {
    color: #CFA6A1 !important;
}

/* Iconos en rosa */
a.visited-temporary .material-symbols-rounded {
    color: #CFA6A1 !important;
}
/* =========================================
   KRAFEX — INICIO / BANNER
   ========================================= */

.home {
    width: 100%;
    box-sizing: border-box;
    padding: 20px;
}

.banner-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.banner {
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
}

.banner img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}
/* ==================================================
   KRAFEX — ACCESOS RÁPIDOS
   ================================================== */

.quick-access {
    width: calc(100% - 40px);
    max-width: 1400px;

    margin: 40px auto 0;
    padding: 28px;

    box-sizing: border-box;

    background: #0A0A0B;

    border: 1px solid #2A2A2E;
    border-radius: 18px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.25);

}


/* ==================================================
   TÍTULO
   ================================================== */

.quick-access-title {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 22px;
}


.quick-access-title h2 {
    margin: 0;

    color: #F5F1E8;

    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.3px;
}


/* Línea decorativa */

.quick-access-title::after {
    content: "";

    display: block;

    width: 45px;
    height: 2px;

    background: #D6C3A3;

    border-radius: 10px;
}


/* ==================================================
   GRID
   ================================================== */

.quick-access-grid {
    display: grid;

    grid-template-columns: repeat(6, 1fr);

    gap: 14px;
}


/* ==================================================
   TARJETAS
   ================================================== */

.quick-access-card {
    position: relative;

    min-height: 115px;

    padding: 20px 12px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    background: #2A2A2E;

    border: 1px solid rgba(214, 195, 163, 0.12);

    border-radius: 12px;

    color: #D6C3A3;

    text-decoration: none;

    overflow: hidden;

    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        background-color 0.35s ease,
        box-shadow 0.35s ease;
}


/* Brillo sutil */

.quick-access-card::before {
    content: "";

    position: absolute;

    width: 100%;
    height: 100%;

    top: 0;
    left: 0;

    background: linear-gradient(
        120deg,
        transparent 30%,
        rgba(214, 195, 163, 0.06),
        transparent 70%
    );

    transform: translateX(-100%);

    transition: transform 0.6s ease;
}


/* ==================================================
   ICONOS
   ================================================== */

.quick-access-card .material-symbols-rounded {
    font-size: 30px;

    color: #D6C3A3;

    margin-bottom: 12px;

    transition:
        color 0.35s ease,
        transform 0.35s ease;
}


/* ==================================================
   TEXTO
   ================================================== */

.quick-access-card span {
    color: #F5F1E8;

    font-size: 13px;
    font-weight: 500;

    text-align: center;

    transition: color 0.35s ease;
}


/* ==================================================
   HOVER
   ================================================== */

.quick-access-card:hover {

    transform: translateY(-5px);

    background: #0F3D2E;

    border-color: #D6C3A3;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.35);
}


.quick-access-card:hover::before {
    transform: translateX(100%);
}


.quick-access-card:hover .material-symbols-rounded {

    color: #CFA6A1;

    transform: translateY(-2px) scale(1.08);
}


.quick-access-card:hover span {
    color: #F5F1E8;
}


/* ==================================================
   ACTIVE
   ================================================== */

.quick-access-card:active {
    transform: translateY(-2px) scale(0.98);
}


/* ==================================================
   RESPONSIVE
   ================================================== */

@media screen and (max-width: 1100px) {

    .quick-access-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}


@media screen and (max-width: 600px) {

    .quick-access {
        width: calc(100% - 24px);

        padding: 20px;

        margin-top: 25px;

        border-radius: 14px;
    }


    .quick-access-grid {
        grid-template-columns: repeat(2, 1fr);

        gap: 10px;
    }


    .quick-access-card {
        min-height: 100px;
    }

}
/* ==================================================
   KRAFEX — SELECCIONES / 4 PRODUCTOS
   ================================================== */

.selected-products {
    width: calc(100% - 40px);
    max-width: 1400px;

    margin: 35px auto 0;
    padding: 28px;

    box-sizing: border-box;

    background: #0A0A0B;

    border: 1px solid #2A2A2E;
    border-radius: 18px;
}


/* ==================================================
   TÍTULO
   ================================================== */

.selected-products-title {
    margin-bottom: 22px;
}

.selected-products-title h2 {
    margin: 0;

    color: #F5F1E8;

    font-size: 22px;
    font-weight: 500;
}


/* ==================================================
   GRID — 4 PRODUCTOS
   ================================================== */

.selected-products-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
}


/* ==================================================
   TARJETA DEL PRODUCTO
   ================================================== */

.selected-product {
    display: block;

    color: #D6C3A3;
    text-decoration: none;

    transition: transform 0.35s ease;
}


/* ==================================================
   IMAGEN
   ================================================== */

.selected-product-image {
    width: 100%;
    aspect-ratio: 1 / 1;

    overflow: hidden;

    background: #2A2A2E;

    border: 1px solid rgba(214, 195, 163, 0.12);

    border-radius: 12px;
}


.selected-product-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.5s ease;
}


/* ==================================================
   PRECIO
   ================================================== */

.selected-product-price {
    margin-top: 10px;

    color: #D6C3A3;

    font-size: 16px;
    font-weight: 600;
}


/* ==================================================
   HOVER
   ================================================== */

.selected-product:hover {
    transform: translateY(-5px);
}


.selected-product:hover .selected-product-image {
    border-color: #D6C3A3;
}


.selected-product:hover .selected-product-image img {
    transform: scale(1.04);
}


.selected-product:hover .selected-product-price {
    color: #CFA6A1;
}


/* ==================================================
   RESPONSIVE
   ================================================== */

@media screen and (max-width: 900px) {

    .selected-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media screen and (max-width: 500px) {

    .selected-products {
        width: calc(100% - 24px);
        padding: 20px;
        border-radius: 14px;
    }

    .selected-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .selected-product-price {
        font-size: 15px;
    }

}
/* ==================================================
   KRAFEX — CARRUSEL FINAL
   ================================================== */

.final-carousel {

    width: calc(100% - 40px);
    max-width: 1400px;

    margin: 35px auto 50px;

}


/* CONTENEDOR */

.final-carousel-container {

    position: relative;

    width: 100%;
    height: 320px;

    overflow: hidden;

    background: #0A0A0B;

    border: 1px solid #2A2A2E;

    border-radius: 18px;

}


/* ==================================================
   SLIDES
   ================================================== */

.final-carousel-slide {

    position: absolute;

    inset: 0;

    opacity: 0;

    pointer-events: none;

    transition: opacity 0.7s ease;

}


.final-carousel-slide.active {

    opacity: 1;

    pointer-events: auto;

}


.final-carousel-slide img {

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

}


/* ==================================================
   BOTONES
   ================================================== */

.carousel-button {

    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    width: 44px;
    height: 44px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid rgba(214, 195, 163, 0.45);

    border-radius: 50%;

    background: rgba(10, 10, 11, 0.75);

    color: #D6C3A3;

    cursor: pointer;

    z-index: 5;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;

}


.carousel-prev {

    left: 18px;

}


.carousel-next {

    right: 18px;

}


.carousel-button:hover {

    background: #D6C3A3;

    color: #0A0A0B;

    transform: translateY(-50%) scale(1.08);

}


/* ==================================================
   INDICADORES
   ================================================== */

.carousel-indicators {

    position: absolute;

    left: 50%;
    bottom: 16px;

    transform: translateX(-50%);

    display: flex;

    align-items: center;

    gap: 7px;

    z-index: 5;

}


.carousel-dot {

    width: 7px;
    height: 7px;

    display: block;

    border-radius: 50%;

    background: #F5F1E8;

    opacity: 0.45;

    transition:
        width 0.3s ease,
        opacity 0.3s ease,
        background 0.3s ease;

}


.carousel-dot.active {

    width: 22px;

    border-radius: 10px;

    background: #D6C3A3;

    opacity: 1;

}


/* ==================================================
   RESPONSIVE
   ================================================== */

@media screen and (max-width: 600px) {

    .final-carousel {

        width: calc(100% - 24px);

        margin-bottom: 30px;

    }


    .final-carousel-container {

        height: 220px;

        border-radius: 14px;

    }


    .carousel-button {

        width: 36px;
        height: 36px;

    }


    .carousel-prev {

        left: 10px;

    }


    .carousel-next {

        right: 10px;

    }

}