
@import url('https://fonts.googleapis.com/css?family=Poppins');

/* ── Overlay de carga ──────────────────────────────────── */
#wait {
    background: rgba(50, 50, 50, 0.3);
    width: 100vw;
    height: 100vh;
    display: none;
    top: 0;
    position: fixed;
    z-index: 9999;
}

#wait div {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ── Utilidades globales ───────────────────────────────── */
a:hover, a:focus {
    text-decoration: none;
}

.custom-button:focus {
    outline: 0;
}

.single-category-margin {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
}

/* ── Categorías ────────────────────────────────────────── */
.single-category {
    width: calc(25% - 10px);
    margin: 5px;
    background-color: transparent;
    transition: 0.5s;
    position: relative;
    overflow: visible;
}

.img-update-cont {
    width: 150px;
    height: 150px;
    padding: 10px;
}

.img-update-cont img {
    width: 100%;
    height: auto;
}

/* ── Productos ─────────────────────────────────────────── */
.img-product-table {
    width: 75px;
    height: 75px;
    padding: 10px;
}

.img-product-table img {
    width: 100%;
    height: auto;
}

/* ── Carrito ───────────────────────────────────────────── */
.product-img-cart {
    max-width: 50px;
}

.quantity-input {
    width: 60px;
}

.quantity-btn {
    background-color: transparent;
    border: none;
}

.separation {
    margin-top: 1em;
}

/* ── Usuario ───────────────────────────────────────────── */
.user-card {
    padding: 1rem;
    width: 50%;
    margin: 0 auto;
}

/* ── Responsive ────────────────────────────────────────── */
@media (min-width: 1200px) {
    .single-category { width: calc(20% - 10px); }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .single-category { width: calc(25% - 10px); }
}

@media (min-width: 768px) and (max-width: 991px) {
    .single-category { width: calc(33.33% - 10px); }
    .user-card { width: 100%; }
}

@media only screen and (max-width: 767px) {
    .single-category { width: calc(50% - 10px); }
    .user-card { width: 100%; }
}

@media only screen and (max-width: 500px) {
    .single-category { width: calc(100% - 10px); }
}
