/* ==========================================================
   ESTILOS DE LA TIENDA PÚBLICA (FRONTEND)
   ========================================================== */

body { 
    font-family: 'Poppins', sans-serif; 
    background-color: #fcfcfc; 
    color: #333; 
}

a { text-decoration: none; color: inherit; }

/* --- TOP BAR & NAVBAR --- */
.top-bar { background-color: #222; color: #bbb; font-size: 0.8rem; padding: 8px 0; }
.top-bar a { color: #bbb; transition: 0.3s; }
.top-bar a:hover { color: #fff; }
.search-mini { background: transparent; border: none; border-bottom: 1px solid #555; color: #fff; padding: 2px 5px; outline: none; font-size: 0.8rem;}

.navbar { padding: 20px 0; background: #fff; }
.navbar-brand { font-weight: 800; font-size: 1.8rem; letter-spacing: 2px; color: #222; }
.nav-link { font-weight: 500; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; margin: 0 10px; color: #555 !important; }
.nav-link:hover { color: #000 !important; }
.cart-icon { position: relative; font-size: 1.3rem; }
.cart-badge { position: absolute; top: -5px; right: -8px; background: #ff6b6b; color: white; border-radius: 50%; width: 18px; height: 18px; font-size: 0.6rem; display: flex; align-items: center; justify-content: center; font-weight: bold;}

/* --- SECCIÓN DEBEJO DEL BANNER PRINCIPAL --- */

.feature-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    transition: transform 0.3s ease;
}
.feature-box:hover {
    transform: translateY(-5px);
}
.feature-icon {
    font-size: 2.2rem;
    color: #222; /* Negro sólido para un look más premium */
}
.feature-text h6 {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    color: #1a1a1a;
}
.feature-text p {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
}

/* ==========================================================
   MEJORA DE CÍRCULOS DE CATEGORÍAS (Premium)
   ========================================================== */

/* Contenedor circular principal */
.category-circle-wrap {
    width: 100px; 
    height: 100px;
    background-color: #ffffff !important;
    border: 2px solid #eee;
    overflow: hidden; /* Recorta la imagen en forma de círculo */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

/* La imagen dentro del círculo */
.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajusta cualquier foto al círculo sin estirarla */
    transition: transform 0.5s ease;
}

/* --- EFECTOS HOVER --- */

/* La tarjeta completa se eleva */
.group-item:hover .category-circle-wrap {
    transform: translateY(-8px); /* Elevación */
    border-color: #d35400 !important; /* Tu color naranja */
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

/* Zoom suave a la imagen */
.group-item:hover .category-img {
    transform: scale(1.15);
}

/* Texto de la categoría */
.group-item span {
    display: block;
    margin-top: 12px;
    transition: all 0.3s ease;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #333;
}

.group-item:hover span {
    color: #d35400 !important;
    transform: translateY(-2px);
}

/* --- TARJETAS DE PRODUCTO --- */
.product-card { 
    border: none; 
    background: transparent; 
    transition: all 0.3s ease; 
    text-decoration: none; 
    display: block; 
}

.product-img-wrap { 
    background-color: #f4f5f7; 
    aspect-ratio: 1/1; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    overflow: hidden; 
    margin-bottom: 15px; 
    position: relative; 
    border-radius: 8px; 
}

.product-img-wrap img { 
    max-width: 80%; 
    max-height: 80%; 
    object-fit: contain; 
    transition: transform 0.5s ease; 
    mix-blend-mode: multiply; 
}

.product-card:hover .product-img-wrap img { transform: scale(1.08); }

.product-action {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    transition: bottom 0.3s ease;
}
.product-card:hover .product-action { bottom: 15px; }

.action-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #fff;
    color: #222;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: 0.2s;
    border: none;
    cursor: pointer;
}
.action-btn:hover { background: #222; color: #fff; transform: translateY(-3px); }

.stars { color: #f5b301; font-size: 0.75rem; margin-bottom: 6px; }
.product-title { font-size: 0.95rem; font-weight: 600; color: #222; margin-bottom: 5px; text-transform: capitalize; }
.product-price { font-weight: 800; color: #d35400; font-size: 1.1rem; }

/* --- TABS --- */
.nav-tabs-minimal { border-bottom: none; justify-content: center; gap: 30px; margin-bottom: 40px; }
.nav-tabs-minimal .nav-link { border: none; color: #888; font-size: 0.85rem; padding: 5px 0; border-bottom: 2px solid transparent; }
.nav-tabs-minimal .nav-link.active { color: #d35400; background: transparent; border-bottom: 2px solid #d35400; font-weight: 600; }

/* ==========================================================
   PÁGINA DE PRODUCTO (MARKETPLACE MINIMALISTA EN B/N)
   ========================================================== */
   
.marketplace-nav { background: #fff; border-bottom: 1px solid #e0e0e0; padding: 15px 0; }

.product-container-layout { background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); padding: 30px; margin-top: 20px; margin-bottom: 40px; }

/* Galería */
.gallery-wrapper { display: flex; gap: 20px; }
.thumbnails-col { display: flex; flex-direction: column; gap: 10px; width: 60px; }
.thumb-box { width: 60px; height: 60px; border: 1px solid #e0e0e0; border-radius: 6px; padding: 4px; cursor: pointer; transition: 0.2s; background: #fff; display: flex; align-items: center; justify-content: center; }
.thumb-box:hover, .thumb-box.active { border-color: #111; box-shadow: 0 0 0 1px #111; }
.thumb-box img { max-width: 100%; max-height: 100%; object-fit: contain; }

.main-img-col { flex-grow: 1; display: flex; align-items: center; justify-content: center; background: #fcfcfc; border-radius: 8px; padding: 20px; min-height: 450px; }
.main-img-col img { max-width: 100%; max-height: 400px; object-fit: contain; mix-blend-mode: multiply; }

/* Buy Box (Información) */
.buy-box { padding-left: 20px; }
.product-brand { color: #555; font-size: 0.85rem; font-weight: 600; text-decoration: none; margin-bottom: 5px; display: inline-block; text-transform: uppercase; letter-spacing: 1px; }
.product-brand:hover { color: #111; text-decoration: underline; }
.product-title { font-size: 1.4rem; font-weight: 600; color: #111; line-height: 1.3; margin-bottom: 10px; }

.rating-stars { color: #111; font-size: 0.9rem; margin-bottom: 20px; }
.rating-stars span { color: #555; font-size: 0.85rem; margin-left: 8px; cursor: pointer; }
.rating-stars span:hover { color: #111; text-decoration: underline; }

.price-block { margin-bottom: 25px; }
.price-current { font-size: 2.2rem; font-weight: 400; color: #111; line-height: 1; }
.payment-info { font-size: 0.85rem; color: #111; display: flex; align-items: center; gap: 5px; margin-top: 5px; font-weight: 500; }

/* Selectores de Variante */
.variant-title { font-size: 0.9rem; font-weight: 600; color: #111; margin-bottom: 8px; }
.variant-options { display: flex; gap: 10px; margin-bottom: 25px; flex-wrap: wrap; }
.variant-btn { border: 1px solid #ccc; background: #fff; padding: 8px 16px; border-radius: 6px; font-size: 0.9rem; color: #333; cursor: pointer; transition: 0.2s; }
.variant-btn:hover { border-color: #111; }
.variant-btn.selected { border-color: #111; color: #fff; background: #111; font-weight: 600; }

/* Botones de Acción Minimalistas */
.action-buttons { display: flex; flex-direction: column; gap: 10px; margin-bottom: 25px; }
.btn-buy-now { background: #111; color: white; border: 1px solid #111; padding: 14px; border-radius: 6px; font-weight: 600; font-size: 1rem; transition: 0.2s; }
.btn-buy-now:hover { background: #000; color: white; }
.btn-add-cart { background: #fff; color: #111; border: 1px solid #111; padding: 14px; border-radius: 6px; font-weight: 600; font-size: 1rem; transition: 0.2s; }
.btn-add-cart:hover { background: #f4f5f7; color: #111; }

/* Trust Badges Minimalistas */
.trust-benefits { border: 1px solid #e0e0e0; border-radius: 8px; padding: 15px; display: flex; flex-direction: column; gap: 15px; }
.trust-item { display: flex; align-items: flex-start; gap: 12px; }
.trust-item i { font-size: 1.2rem; color: #111; margin-top: 2px; }
.trust-item-text h6 { font-size: 0.85rem; font-weight: 600; color: #111; margin: 0 0 2px 0; }
.trust-item-text p { font-size: 0.8rem; color: #666; margin: 0; line-height: 1.3; }
.trust-item-text a { color: #111; text-decoration: underline; font-weight: 500; }
.trust-item-text a:hover { color: #000; }

@media (max-width: 992px) {
    .gallery-wrapper { flex-direction: column-reverse; }
    .thumbnails-col { flex-direction: row; width: 100%; overflow-x: auto; padding-bottom: 5px; }
    .main-img-col { min-height: 300px; }
    .buy-box { padding-left: 0; margin-top: 20px; }
}

/* ==========================================================
   NUEVOS ESTILOS AGREGADOS (CANTIDAD, DESCRIPCIONES, AGOTADOS)
   ========================================================== */

/* Variantes agotadas (Corrección para que se vean tachadas) */
.variant-btn.out-of-stock { 
    opacity: 0.6; 
    background-color: #f9f9f9; 
    color: #888; 
    border-color: #eee; 
    cursor: not-allowed; 
    text-decoration: line-through; 
}
.stock-badge { 
    font-size: 0.7rem; 
    padding: 2px 6px; 
    border-radius: 4px; 
    margin-left: 10px; 
    vertical-align: middle; 
    text-decoration: none !important;
}

/* Estado desactivado para miniaturas que no corresponden a la variante */
.disabled-thumb {
    opacity: 0.25 !important;
    pointer-events: none;
    filter: grayscale(100%);
    border-color: #f0f0f0 !important;
}

/* Selector de Cantidad */
.qty-container { 
    display: flex; 
    align-items: center; 
    border: 1px solid #e0e0e0; 
    border-radius: 6px; 
    width: 120px; 
    overflow: hidden; 
    background: #fff;
}
.qty-btn { 
    background: transparent; 
    border: none; 
    padding: 10px 15px; 
    font-size: 1.2rem; 
    cursor: pointer; 
    color: #333; 
    transition: 0.2s;
}
.qty-btn:hover { 
    background: #f4f5f7; 
}
.qty-input { 
    border: none; 
    text-align: center; 
    width: 100%; 
    font-weight: 600; 
    font-size: 1rem; 
    padding: 10px 0; 
    outline: none; 
    -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button, 
.qty-input::-webkit-inner-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}

/* Sección de descripción (Zona inferior de la página de producto) */
.description-section { 
    background-color: #fff; 
    padding: 60px 0; 
    border-top: 1px solid #eaeaea; 
}
.long-description { 
    color: #444; 
    line-height: 1.8; 
    font-size: 1rem; 
}
.long-description p { 
    margin-bottom: 1.2rem; 
}
.info-sidebar { 
    background-color: #fcfcfc; 
    border: 1px solid #f0f0f0; 
    padding: 30px; 
    border-radius: 8px; 
}
.info-sidebar-title { 
    font-size: 0.9rem; 
    text-transform: uppercase; 
    font-weight: 700; 
    letter-spacing: 1px; 
    color: #111; 
    margin-bottom: 20px; 
}