/* ==================================================
   TABS DE NAVEGACION
================================================== */

.tabs{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
    margin:40px 0;
    flex-wrap:wrap;
}

.tab-btn{
    background:#1b1b1b;
    color:#d4af37;
    border:none;
    padding:12px 25px;
    cursor:pointer;
    font-size:15px;
    border-radius:8px;
    transition:all .3s ease;
}

.tab-btn:hover{
    background:#2a2a2a;
}

.tab-btn.active{
    background:#d4af37;
    color:#111;
}

/* ==================================================
   CONTENEDORES DE SECCIONES
================================================== */

.tab-content{
    display:none;
    width:95%;
    max-width:1400px;
    margin:auto;
}

.tab-content.active{
    display:block;
}

/* ==================================================
   TITULO PRINCIPAL
================================================== */

.subtitle{
    text-align:center;
    color:#999;
    margin-top:10px;
    margin-bottom:25px;
    font-size:15px;
}

/* ==================================================
   TITULOS DE CATEGORIAS
================================================== */

h2{
    color:#d4af37;
    text-align:center;
    margin:30px 0 20px;
    font-size:28px;
    letter-spacing:1px;
}

/* ==================================================
   GRID GENERAL (ITEMS)
================================================== */

.grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(210px, 210px));
    justify-content:center;
    gap:20px;
    margin-bottom:40px;
}

/* ==================================================
   TARJETAS GENERALES
================================================== */

.product-card{
    background:#1a1a1a;
    border:1px solid #333;
    border-radius:12px;
    padding:12px;
    text-align:center;
    transition:all .3s ease;
    box-shadow:0 4px 15px rgba(0,0,0,.35);
}

.product-card:hover{
    transform:translateY(-5px);
    border-color:#d4af37;
    box-shadow:0 8px 25px rgba(212,175,55,.20);
}

/* ==================================================
   IMANES DE PRODUCTOS (FORZADO PARA HOSTING)
================================================== */

.image-box {
    width: 100%;
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* El !important asegura que el hosting no use 'cover' por error */
.image-box img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important; 
    display: block !important;
}
/* ==================================================
   NOMBRE DE PRODUCTOS
================================================== */

.product-card h3{
    color:#fff;
    font-size:15px;
    margin-bottom:8px;
    font-weight:600;
}

/* ==================================================
   DESCRIPCIONES
================================================== */

.item-description{
    color:#bdbdbd;
    font-size:13px;
    line-height:1.5;
    margin:12px 0 15px;
    min-height:60px;
}

/* ==================================================
   PRECIOS
================================================== */

.price{
    display:inline-block;
    margin:8px auto 15px;
    padding:8px 15px;

    background:#111;
    border:1px solid #d4af37;
    border-radius:20px;

    color:#d4af37;
    font-size:18px;
    font-weight:bold;
}

/* ==================================================
   BOTONES DE COMPRA
================================================== */

.buy-btn{
    margin-top:auto;

    display:block;
    width:100%;

    padding:12px;

    text-decoration:none;
    text-align:center;

    color:#111;

    background:linear-gradient(
        180deg,
        #d4af37,
        #b8860b
    );

    border-radius:8px;
    font-weight:bold;

    transition:.3s;
}

.buy-btn:hover{
    transform:translateY(-2px);
    box-shadow:0 5px 15px rgba(212,175,55,.35);
}

/* ==================================================
   SECCION VIP
================================================== */

.large{
    max-width:320px;
    margin:auto;

    display:flex;
    flex-direction:column;
    align-items:center;
}

.large .item-description{
    text-align:center;
    width:100%;
}

.large .price{
    text-align:center;
}

.large h3{
    text-align:center;
}

/* ==================================================
   BENEFICIOS VIP
================================================== */

.vip-benefits{
    list-style:none;
    padding:0;
    margin:15px 0;
    text-align:left;
}

.vip-benefits li{
    color:#d6d6d6;
    padding:6px 0;
    border-bottom:1px solid #2c2c2c;
    font-size:14px;
}

.vip-benefits li:last-child{
    border-bottom:none;
}
/* Contenedor flexible ajustado para juntar más las tarjetas */
.vip-container {
    display: flex;
    justify-content: center; /* Mantiene el grupo centrado en la pantalla */
    gap: 15px;               /* Reduce la separación del medio a solo 15 píxeles */
    flex-wrap: wrap;         /* Se adapta a celulares si es necesario */
    margin-top: 20px;
    max-width: 800px;        /* Limita el ancho máximo del bloque para que no se separen en pantallas gigantes */
    margin-left: auto;       /* Junto con el de abajo, centra todo el bloque */
    margin-right: auto;
}

/* Forzamos a que las tarjetas VIP tengan un tamaño fijo ideal */
.vip-container .product-card.large {
    width: 320px;            /* Controla el ancho de cada tarjeta */
    flex-grow: 0;            /* Evita que se estiren de más hacia los lados */
    flex-shrink: 0;          /* Evita que se deformen */
}
/* --- ESTILOS EXCLUSIVOS PARA LAS IMÁGENES DE PETS --- */

/* Contenedor de la imagen de los pets */
#pet .image-box {
    width: 70px;       /* Ajusta el ancho del cuadro del pet */
    height: 70px;      /* Ajusta la altura del cuadro del pet */
    margin: 0 auto 15px;/* Centra el cuadro y da espacio abajo */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.2); /* Fondo sutil para que resalte el pet */
    border-radius: 8px; /* Bordes redondeados para el contenedor */
}

/* La imagen del pet como tal */
#pet .product-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Evita que el renderizado del sprite/pet se deforme */
    filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.5)); /* Le da una sombra genial al personaje */
    transition: transform 0.3s ease; /* Suaviza la animación al pasar el mouse */
}

/* Efecto Hover: Cuando pasas el mouse sobre la tarjeta, el pet se agranda un poco */
#pet .product-card:hover .product-img {
    transform: scale(1.1); 
}
/* --- ESTILOS EXCLUSIVOS PARA LAS IMÁGENES DE LOS OARK (MONTURAS) --- */

/* Selecciona los image-box que están dentro de la cuadrícula de Items (Oark) */
#oark h2 ~ .grid .product-card .image-box {
    width: 100px;       /* Un poco más grandes, ideal para monturas */
    height: 100px;      
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(255,170,0,0.15) 0%, rgba(0,0,0,0) 70%); /* Destello dorado de fondo */
    border-radius: 12px;
}

/* La imagen de la montura Oark */
#oark h2 ~ .grid .product-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
     transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Efecto de rebote suave */
}

/* Efecto Hover: La montura sobresale y se inclina sutilmente al pasar el mouse */
#oark h2 ~ .grid .product-card:hover .product-img {
    transform: scale(1.15) translateY(-5px); 
}
/* ==================================================
   SECCION WEB CREDITS (WC)
================================================== */

.wc-grid{
    display:grid;
    grid-template-columns:repeat(3, 220px);
    justify-content:center;
    gap:25px;
    margin-bottom:40px;
}

#wc .product-card{
    min-height:330px;
}

#wc .product-card h3{
    color:#d4af37;
    font-size:20px;
    font-weight:bold;
}

#wc .item-description{
    min-height:80px;
}

/* ==================================================
   PROMOCION GUILD
================================================== */

.guild-offer{
    border:2px solid #d4af37;
    position:relative;
}

.guild-offer::before{
    content:"PROMOCIÓN";

    position:absolute;
    top:10px;
    right:10px;

    background:#d4af37;
    color:#111;

    font-size:11px;
    font-weight:bold;

    padding:4px 8px;
    border-radius:5px;
}

/* ==================================================
   RESPONSIVE GENERAL
================================================== */

@media(max-width:768px){

    .grid{
        grid-template-columns:repeat(auto-fit, minmax(170px,170px));
        gap:15px;
    }

    .image-box{
        height:130px;
    }

    .product-card{
        padding:10px;
    }
}

/* ==================================================
   RESPONSIVE WC
================================================== */

@media(max-width:900px){

    .wc-grid{
        grid-template-columns:repeat(2,220px);
    }

}

@media(max-width:550px){

    .wc-grid{
        grid-template-columns:1fr;
        max-width:220px;
        margin:auto;
    }

}

@media(max-width:480px){

    .grid{
        grid-template-columns:minmax(180px,220px);
    }

    .product-card{
        width:100%;
    }
}