/* =========================================================
   PAGES - CATEGORY (categoria.php)
   Estilo NABANI - lujo minimal / oscuro
   ========================================================= */

/* ---------- CONTENEDOR GENERAL ---------- */
.category-page{
    width: 100%;
    padding-top: 6px; /* pegado al nav */
  }
  
  /* ---------- HERO FULL WIDTH ---------- */
  .category-hero{
    position: relative;
    width: 100%;
    min-height: 180px;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  
  /* Overlay (para oscurecer imagen/fondo) */
  .category-hero-overlay{
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 40%, rgba(255,255,255,0.08), rgba(0,0,0,0.7));
    z-index: 1;
  }
  
  /* Contenido del hero */
  .category-hero-inner{
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding: 26px 18px 24px;
  }
  
  .category-eyebrow{
    display: inline-block;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
  }
  
  .category-hero-inner h2{
    font-family: 'Playfair Display', serif;
    font-size: clamp(26px, 3vw, 38px);
    letter-spacing: 1.4px;
    margin: 0;
    color: #ffffff;
    text-transform: uppercase;
  }
  
  .category-tagline{
    margin: 6px 0 0;
    font-size: 15px;
    line-height: 1.3;
    color: rgba(255,255,255,0.9);
  }
  
  .category-desc{
    margin: 6px 0 0;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(255,255,255,0.78);
  }
  
  /* Estado not found */
  .category-hero-notfound{
    min-height: 200px;
  }
  
  .category-hero-notfound .category-hero-inner h2{
    font-size: 30px;
  }
  
  /* ---------- BACKGROUNDS POR CATEGORÍA (opcional) ---------- */
  .cat-anillos{
    background: linear-gradient(135deg, #070707, #0d0d0d);
  }
  .cat-brazaletes{
    background: linear-gradient(135deg, #070707, #0b0b0b);
  }
  .cat-aretes{
    background: linear-gradient(135deg, #070707, #0c0c0c);
  }
  .cat-collares{
    background: linear-gradient(135deg, #070707, #0b0b0b);
  }
  .cat-generic{
    background: linear-gradient(135deg, #070707, #0b0b0b);
  }
  
  /* ---------- FILTROS ---------- */
  .category-filters{
    width: 100%;
    margin: 8px auto 14px;
    padding: 0 22px;
  }
  
  .filters-inner{
    display: grid;
    grid-template-columns: 2fr 2fr 1.2fr;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .filters-group{
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 10px 12px;
  }
  
  .filters-label{
    display: block;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    margin-bottom: 8px;
  }
  
  .filters-chips{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .filter-chip{
    appearance: none;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(0,0,0,0.25);
    color: rgba(255,255,255,0.92);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    cursor: pointer;
    transition: transform .12s ease, border-color .15s ease, background .15s ease;
  }
  
  .filter-chip:hover{
    transform: translateY(-1px);
    border-color: rgba(255,255,255,0.28);
    background: rgba(255,255,255,0.05);
  }
  
  .filters-order{
    display: flex;
    flex-direction: column;
  }
  
  .filter-select{
    width: 100%;
    padding: 9px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(0,0,0,0.25);
    color: rgba(255,255,255,0.95);
    outline: none;
  }
  
  /* ---------- HEADER PRODUCTOS ---------- */
  .category-products{
    width: 100%;
    padding: 0 22px 30px;
  }
  
  .category-products-header{
    max-width: 1200px;
    margin: 10px auto 14px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
  }
  
  .category-products-header h3{
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.96);
  }
  
  .category-products-count{
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
  }
  
  .no-products{
    max-width: 1200px;
    margin: 0 auto;
    color: rgba(255,255,255,0.75);
  }
  
  /* ---------- GRID 4 x 4 ---------- */
  .products-grid.products-grid-compact{
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }
  
  /* ---------- CARD COMPACTA ---------- */
  .product-card-compact{
    border-radius: 16px;
    overflow: hidden;
  }
  
  .product-card-link{
    display: block;
    text-decoration: none;
    color: inherit;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
  }
  
  .product-card-link:hover{
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.05);
  }
  
  /* Imagen cuadrada */
  .product-thumb{
    width: 100%;
    aspect-ratio: 1 / 1;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  
  .product-thumb img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .25s ease;
  }
  
  .product-card-link:hover .product-thumb img{
    transform: scale(1.04);
  }
  
  .product-thumb-placeholder{
    font-size: 13px;
    opacity: .7;
  }
  
  /* Texto */
  .product-body{
    padding: 12px 12px 14px;
  }
  
  .product-title{
    margin: 0;
    font-size: 16px;
    line-height: 1.2;
    color: rgba(255,255,255,0.95);
  }
  
  .product-meta{
    margin: 6px 0 0;
    font-size: 12px;
    letter-spacing: 0.3px;
    color: rgba(255,255,255,0.72);
  }
  
  /* clamp 2 líneas */
  .clamp-2{
    margin: 10px 0 0;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .product-price{
    margin: 10px 0 0;
    font-weight: 700;
    color: #ffffff;
  }
  
  .product-cta{
    display: inline-block;
    margin-top: 10px;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    border-bottom: 1px solid rgba(255,255,255,0.35);
    padding-bottom: 2px;
  }
  
  /* ---------- RESPONSIVE ---------- */
  @media (max-width: 1100px){
    .filters-inner{
      grid-template-columns: 1fr 1fr;
    }
  
    .products-grid.products-grid-compact{
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }
  
  @media (max-width: 740px){
    .category-hero{
      min-height: 160px;
    }
  
    .category-hero-inner{
      padding: 22px 16px 20px;
    }
  
    .filters-inner{
      grid-template-columns: 1fr;
    }
  
    .products-grid.products-grid-compact{
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  
  @media (max-width: 420px){
    .products-grid.products-grid-compact{
      grid-template-columns: 1fr;
    }
  }
/* ====== CTA centrados en producto ====== */
.product-actions{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
  }
  
  .product-actions form{
    margin: 0;
  }
  
  .product-actions .btn,
  .product-actions .btn-primary{
    min-width: 210px;          /* opcional: que se vean “pro” */
    text-align: center;
  }
  
  @media (max-width: 520px){
    .product-actions .btn,
    .product-actions .btn-primary{
      width: 100%;
      min-width: 0;
    }
  }
    