:root {
    --primary: #da012c;
    --world: #97adf5;
    --darkblue: #131e36;
    --darkblue-light: #131e363b;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.5;
}

.bg-darkblue{
    background: linear-gradient(135deg, #0b1630, #1b316a);
}

.bg-world {
    border: 2px solid var(--world) !important ;
    background-color: #007bff26;
}

/*header*/
.main-header {
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.topbar {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 30px;
    background-color: black;
}

.nav-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    text-transform: lowercase;
}

.dropdown-item {
    font-size: 14px;
}

.search-form {
    height: 40px;
}

.cart-icon {
    position: relative;
    font-size: 1.5rem;
    color: #333;
}

.cart-badge {
    position: relative;
    font-size: 0.75rem;
}

.user-icon {
    position: relative;
    font-size: 1.5rem;
    color: #333;
}

/*Categories*/
.product-card {
    border-radius: 4px;
    padding: 10px;
    align-items: center;
    width: 100%;
    color: var(--bs-dark);
    box-shadow: 0px 0px 1px rgba(0, 0, 0, .5);
}

.product-card .product-card-img {
    width: 100%;
    max-height: 250px !important;
    object-fit: contain;
    border-radius: 4px;
    padding: 10px;
}
.product-card-img {
    width: 100%;
    height: 250px !important;
    object-fit: contain;
    border-radius: 4px;
    padding: 10px;
}

.product-info {
    flex: 1;

}

.product-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/************** Producto ***********************/
/***********************************************/
/***********************************************/

.producto-main h1 {
    font-weight: 300;
    font-size: 1.8rem;
}

.producto-main h2 {
    font-weight: 700;
    font-size: 1.5rem;
}

.badge-family {
    margin-right: 5px;
    font-weight: 300;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
}

.form-select {
    font-size: 0.85rem;
}

.main-image {
    width: 100%;
    height: 450px;
    object-fit: contain;
    border-radius: 10px;
}

.thumbnail-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin: 5px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.thumbnail-img:hover,
.thumbnail-img.active {
    border-color: #007bff;
}

#prevBtn {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: white;
    color: rgba(0, 0, 0, .8);
    border: none;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    padding: 0;
    cursor: pointer;
}

#nextBtn {
    position: absolute;
    right: 0;
    top: 50%;
    color: black;
    transform: translateY(-50%);
    z-index: 10;
    background-color: white;
    color: rgba(0, 0, 0, 0.8);
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    padding: 0;
    cursor: pointer;
}

.variants-table th,
.variants-table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
    font-size: 0.85rem;
}

.variants-table th {
    background-color: #f5f5f5;
}

.descripcion p {
    font-size: 0.85rem;
    color: rgba(0, 0, 0, .6);
}

.producto-main .form-text{
    font-size: .65rem;
}

.btnText{
    font-weight: 800 !important;
}



/*login*/
input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    width: 100%;
    padding: 10px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}


.error {
    color: #721c24;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* view cart*/
table {
    border-collapse: collapse;
    width: 100%;
}

th,
td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f5f5f5;
}

.qty-input {
    width: 60px;
}

.fs-7 {
    font-size: 0.9rem;
}

.fs-8 {
    font-size: 0.7rem;
}

.fw-300 {
    font-weight: 300;
}

.semi-bold {
    font-weight: 600;
}


@media (max-width: 576px) {

    .navbar .navbar-toggler {
        width: 3em;
    }

}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    width: 10%;
    text-align: center;
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide .card {
    background-color: transparent;
    color: white;
    background-color: var(--primary);
    border: none;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.cover {
    object-fit: cover;
}

.box-shadow {
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.2);
}

.categories-home {
    transition: .5s ease-in;
    border-radius: 0 20px;
}

.categories-home:hover {
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: .5s ease ease-out;
}

.border20 {
    border-radius: 0 20px;
}

.border2020 {
    border-radius: 0 20px 0 0;
}

.text-shadow {
    text-shadow: 5px 5px 15px rgba(0, 0, 0, .2);
}

.line-height {
    line-height: 90%;
}


/******************/
/***** Home ********/
/***********************/

.category-icon {
    filter: drop-shadow(5px 5px 5px rgba(0, 0, 0, 0.2));
    transition: .5s ease-out;
    cursor: pointer;
}

.category-icon:hover {
    filter: drop-shadow(5px 5px 5px rgba(0, 0, 0, 0.5));
    transition: .2s ease-in;
}



/*Categorias*/
.sentence-case {
    text-transform: lowercase;
    /* todo en minúscula */
}

.sentence-case::first-letter {
    text-transform: uppercase;
    /* solo la primera letra en mayúscula */
}

.cat-strips {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    /* espacio entre tiras */

}

.cat-strip {
    position: relative;
    height: 44px;
    border-radius: 12px;
    overflow: hidden;

}

.cat-strip .fill {
    position: absolute;
    inset: 0;
    /* gradiente “marca” que se estira hacia la derecha */
    background: linear-gradient(90deg,
            hsl(var(--h, 210) 80% 45%) 0%,
            hsl(calc(var(--h, 210) + 20) 85% 45%) 100%);
    transform-origin: left center;
    transform: scaleX(.6);
    /* arranca al 60% del ancho */
    transition: transform .25s ease;
}

.cat-strip:hover .fill,
.cat-strip:focus-within .fill,
.cat-strip.active .fill {
    transform: scaleX(1);
    /* se estira a todo el ancho */
}

.cat-link {
    position: relative;
    z-index: 1;
    display: block;
    padding: 10px 14px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    /* una línea */
    overflow: hidden;
    text-overflow: ellipsis;
    /* si es muy larga, “…” */
}

/* Accesibilidad: foco visible con teclado */
.cat-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, .9);
    outline-offset: 2px;
    border-radius: 10px;
}


.img-wrap {
    position: relative;
}

.shipping-badge {
    position: absolute;
    top: .5rem;
    left: 0;
    padding: .25rem .5rem;
    font-size: .75rem;
    line-height: 1;
    background: var(--primary);
    /* verde tipo Bootstrap success */
    color: #fff;
    border-radius: 0 .5rem 0 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
    user-select: none;
    pointer-events: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .02em;
    opacity: .95;
}


/*************CATEGORIES********************/
/*****************************************/
/*****************************************/


/********filtros***************************/
/* Contenedor moderno */
.filters-modern {
    background: #fff;
    border-radius: 18px;
    padding: 1rem 1.1rem 1.2rem;
    color: #e5e7eb;
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.45),
        0 0 0 1px rgba(148, 163, 184, 0.08);
    font-size: 0.9rem;
}

/* Header */
.filters-header {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.filters-title {
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #9ca3af;
    font-weight: 600;
}

.filters-chip {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    background: #fff;
    color: var(--primary);
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Grupos de filtros */
.filter-group {
    background: #FFF;
    border-radius: 14px;
    padding: 0.65rem 0.7rem 0.8rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.filter-group+.filter-group {
    margin-top: 0.3rem;
}

.filter-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
}

.filter-group-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9ca3af;
    font-weight: 600;
}

/* Labels pequeños */
.filter-label {
    display: block;
    font-size: 0.72rem;
    color: #9ca3af;
    margin-bottom: 0.15rem;
}

/* Inputs / selects dentro del panel moderno */
.filters-modern .filter-input,
.filters-modern .filter-select {
    background: #fff;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    color: var(--primary);
    font-size: 0.8rem;
    padding: 0.4rem 0.55rem;
}

.filters-modern .filter-input::placeholder {
    color: #6b7280;
}

.filters-modern .filter-input:focus,
.filters-modern .filter-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.4);
    outline: none;
}

/* Botones */
.filters-modern .btn-primary.btn-sm {
    border-radius: 999px;
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
}

.filters-modern .btn-outline-secondary.btn-sm {
    border-radius: 999px;
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
    border-color: rgba(148, 163, 184, 0.6);
    color: #e5e7eb;
}

.filters-modern .btn-outline-secondary.btn-sm:hover {
    background: rgba(148, 163, 184, 0.18);
}

/* Botón flotante de filtros */
.filters-toggle-btn {
    position: fixed;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1100;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Ocultar el texto en móviles si querés más compacto */
@media (max-width: 576px) {
    .filters-toggle-btn {
        padding: 0.5rem 0.6rem;
    }

    .filters-toggle-btn span {
        display: none;
    }
}

/* Sidebar */
.filters-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 280px;
    max-width: 92vw;
    transform: translateX(-100%);
    transition: transform 0.26s ease-out;
    z-index: 10001;
    pointer-events: none;
}

.filters-sidebar.open {
    transform: translateX(0);
    pointer-events: auto;
}

.filters-sidebar-inner {
    height: 100%;
    overflow-y: auto;
    padding: 1rem 1rem 1.2rem;
}

/* Backdrop */
.filters-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease-out;
    z-index: 1040;
}

.filters-backdrop.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Botón cerrar dentro del sidebar */
.filters-close-btn {
    border-radius: 999px;
    color: red;
    padding: 0.25rem 0.4rem;
    font-size: 0.8rem;
    width: fit-content;
}

/* BOTÓN VERTICAL PEGADO A LA IZQUIERDA */
.filters-toggle-vertical {
    position: fixed;
    left: 0;
    top: 70%;
    transform: translateY(-50%);
    z-index: 12;
    background: #fff;
    color: var(--primary);
    border: none;
    width: 42px;
    height: 110px;
    border-radius: 0 12px 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow:
        6px 0 20px rgba(0, 0, 0, 0.35),
        inset 0 0 0 1px rgba(255, 255, 255, 0.06);

    transition: background 0.2s ease, transform 0.2s ease;
}

.filters-toggle-vertical i {
    font-size: 22px;
}

/* Efecto hover */
.filters-toggle-vertical:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-50%) scale(1.03);
}

/* Para móviles: botón más chico */
@media (max-width: 576px) {
    .filters-toggle-vertical {
        width: 38px;
        height: 90px;
        border-radius: 0 10px 10px 0;
    }

    .filters-toggle-vertical i {
        font-size: 20px;
    }
}

/********carrito lateral***************/
/* Botón flotante de carrito - vertical en la derecha */
.cart-toggle-btn {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1100;
    width: 44px;
    height: 80px;
    border-radius: 999px 0 0 999px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.4);
}

.cart-toggle-btn i {
    font-size: 1.2rem;
}

@media (max-width: 576px) {
    .cart-toggle-btn {
        height: 96px;
        width: 40px;
    }
}

/* Sidebar del carrito (derecha) */
.cart-sidebar-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 320px;
    max-width: 92vw;
    transform: translateX(100%);
    transition: transform 0.26s ease-out;
    z-index: 10001;
    pointer-events: none;
}

.cart-sidebar-panel.open {
    transform: translateX(0);
    pointer-events: auto;
}

.cart-sidebar-inner {
    height: 100%;
    overflow-y: auto;
    padding: 1rem 1rem 1.2rem;
    background: #fff;
    /* mismo look que filtros */
    border-left: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.55),
        0 0 0 1px rgba(148, 163, 184, 0.08);
    color: #e5e7eb;
}

/* Backdrop del carrito */
.cart-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease-out;
    z-index: 1040;
}

.cart-backdrop.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Botón cerrar dentro del sidebar de carrito */
.cart-close-btn {
    border-radius: 999px;
    color: red;
    padding: 0.25rem 0.4rem;
    font-size: 0.8rem;
    width: fit-content;
}

.cart-item {
    margin-top: 20px;
}

.cart-thumb {
    width: 50px;
}

.cart-item-unit {
    color: #000;
    font-weight: 600;
}

.cart-item-subtotal{
    color: #000;
}

.cart-item-title {
    font-size: .85rem;
    color: var(--primary);
    font-weight: 800;
}

.cart-item-variant {
    font-size: .8rem;
    color: black;
}

.cart-item-price-qty {
    color: var(--dark);
}

.cart-qty-input {
    width: 40%;
}


/***************/

.btn-darkblue{
    background-color: var(--darkblue);
    color: #fff;
    transition: .5s ease;
    font-size: 12px;
}

.btn-darkblue:hover {
    border: 1px solid var(--darkblue);
}

.variant-picker{
    border-radius: 1rem;
        border: 1px solid #e5e7eb;
        box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);

    height: fit-content ;
    padding: 10px;
}