@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

:root{
    --cc-bg: #ffffff;
    --cc-surface: #f7f8fb;
    --cc-card: #ffffff;
    --cc-border: #eee7eb;
    --cc-border-strong: #e7d7df;
    --cc-text: #25283a;
    --cc-text-soft: #6b7280;
    --cc-text-muted: #9ca3af;
    --cc-pink: #F7B5CD;
    --cc-pink-soft: #fff4f8;
    --cc-pink-soft-2: #fff8fb;
    --cc-pink-border: #f1c7d8;
    --cc-brand: #b56a8a;
    --cc-black: #111111;
    --cc-green-bg: #effaf3;
    --cc-green-border: #d7ebde;
    --cc-green-text: #2f7a4d;
    --cc-red-bg: #fff2f3;
    --cc-red-border: #f1d1d6;
    --cc-red-text: #b94c5e;
    --cc-shadow-sm: 0 6px 20px rgba(20,20,20,.04);
    --cc-shadow-md: 0 8px 22px rgba(20,20,20,.05);
    --cc-shadow-lg: 0 14px 28px rgba(20,20,20,.09);
}

*{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Montserrat', sans-serif;
}

.cc-category-page{
    background:var(--cc-bg);
}

/* breadcrumb / espaciado */
.cc-category-page .cc-breadcrumb-wrap{
    margin:0;
    padding:8px 0 4px;
}

.cc-category-page .cc-section{
    padding-top:4px;
}

/* LAYOUT */
.category-layout{
    display:grid;
    grid-template-columns:270px minmax(0, 1fr);
    gap:22px;
    align-items:start;
}

.category-content{
    min-width:0;
}

.category-header{
    margin-bottom:10px;
}

.category-header-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:14px;
}

.category-header-top h1{
    margin:0 0 4px;
    font-size:1.42rem;
    line-height:1.08;
    color:var(--cc-text);
    font-weight:800;
    letter-spacing:-.02em;
}

.category-header-top p{
    margin:0;
    color:var(--cc-text-soft);
    font-size:.88rem;
    font-weight:500;
}

/* BOTÓN MÓVIL */
.mobile-filter-btn{
    display:none;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-height:48px;
    padding:0 24px;
    border:1px solid #ecc7d8;
    border-radius:16px;
    background:#fff;
    color:#20304a;
    font-weight:900;
    cursor:pointer;
    box-shadow:0 8px 20px rgba(0,0,0,.06);
    white-space:nowrap;
    flex-shrink:0;
    transition:.18s ease;
}

.mobile-filter-btn:hover{
    transform:translateY(-1px);
}

/* SIDEBAR */
.category-sidebar{
    position:relative;
    overflow:visible;
}

.sidebar-card{
    background:#fff;
    border:1px solid #ececf2;
    border-radius:22px;
    padding:20px;
    margin-bottom:18px;
    box-shadow:0 6px 24px rgba(16,24,40,.04);
    overflow:visible;
}

.cc-sidebar-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}

.cc-sidebar-close{
    display:none;
    border:none;
    background:#fff1f6;
    color:#cf4a85;
    width:38px;
    height:38px;
    border-radius:999px;
    font-size:18px;
    font-weight:900;
    cursor:pointer;
    box-shadow:0 6px 16px rgba(0,0,0,.08);
}

.sidebar-card h3{
    margin:0;
    font-size:22px;
    line-height:1.2;
    color:#111827;
    font-weight:800;
}

.sidebar-card h4{
    margin:16px 0 10px;
    font-size:16px;
    font-weight:800;
    color:#111827;
}

.sidebar-card select{
    width:100%;
    height:46px;
    border:1px solid #e5e7ef;
    background:#f7f8fb;
    border-radius:14px;
    padding:0 14px;
    font-size:14px;
    color:#24324a;
    outline:none;
    box-sizing:border-box;
}

.sidebar-card select:focus{
    border-color:#f97362;
    background:#fff;
}

.btn-filter{
    width:100%;
    margin-top:5px;
    height:42px;
    border:none;
    border-radius:12px;
    background:var(--cc-pink);
    color:#2f3142;
    font-weight:800;
    cursor:pointer;
    transition:.18s ease;
}

.btn-filter:hover{
    transform:translateY(-1px);
    box-shadow:0 8px 16px rgba(247,181,205,.24);
}

.sidebar-category-list{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.sidebar-category-list a{
    text-decoration:none;
    color:#374151;
    font-size:.92rem;
    padding:10px 12px;
    border-radius:12px;
    transition:all .18s ease;
    border:1px solid transparent;
    font-weight:500;
}

.sidebar-category-list a:hover{
    background:var(--cc-pink-soft);
    color:#111827;
}

.sidebar-category-list a.is-active,
.sidebar-category-list a.current,
.sidebar-category-list a[aria-current="page"]{
    background:var(--cc-pink-soft-2);
    border-color:var(--cc-pink-border);
    box-shadow:0 0 0 2px rgba(247,181,205,.16);
    color:#111827;
    font-weight:700;
}

/* BUSCADOR LATERAL */
.cc-search-pro{
    position:relative;
    width:100%;
    margin-bottom:14px;
    z-index:300;
}

.cc-search-box{
    display:flex;
    align-items:center;
    gap:10px;
    background:#fff;
    border:2px solid #f3c1d4;
    border-radius:16px;
    padding:8px 10px;
    box-shadow:0 10px 25px rgba(0,0,0,.05);
    transition:all .25s ease;
}

.cc-search-box:focus-within{
    border-color:#e78fb3;
    box-shadow:0 12px 30px rgba(231,143,179,.18);
}

.cc-search-box input{
    flex:1;
    border:none !important;
    outline:none;
    font-size:15px;
    color:#222;
    background:transparent !important;
    padding:10px 8px;
    box-shadow:none !important;
}

.cc-search-box button{
    border:none;
    background:linear-gradient(135deg,#f7b5cd,#ec8fb5);
    color:#fff;
    width:42px;
    height:42px;
    border-radius:12px;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
}

.cc-search-suggestions{
    position:absolute;
    top:calc(100% + 10px);
    left:0;
    right:0;
    background:#fff;
    border:1px solid #f1d7e2;
    border-radius:18px;
    box-shadow:0 18px 45px rgba(0,0,0,.10);
    overflow:hidden;
    z-index:99999;
    display:none;
    max-height:420px;
    overflow-y:auto;
}

.cc-search-suggestion-item{
    display:flex;
    align-items:center;
    gap:12px;
    padding:12px 14px;
    border-bottom:1px solid #f7edf2;
    text-decoration:none;
    color:#222;
    transition:background .2s ease;
}

.cc-search-suggestion-item:hover{
    background:#fff5f9;
}

.cc-search-suggestion-thumb{
    width:56px;
    height:56px;
    border-radius:12px;
    object-fit:contain;
    background:#fff;
    border:1px solid #f2e3ea;
    padding:4px;
    flex-shrink:0;
}

.cc-search-suggestion-info{
    flex:1;
    min-width:0;
}

.cc-search-suggestion-title{
    font-size:14px;
    font-weight:700;
    color:#1f1f1f;
    margin-bottom:3px;
    line-height:1.3;
}

.cc-search-suggestion-meta{
    font-size:12px;
    color:#666;
    margin-bottom:4px;
}

.cc-search-suggestion-price{
    font-size:15px;
    font-weight:800;
    color:#111;
}

.cc-search-highlight{
    background:#ffe4ef;
    color:#b10059;
    padding:1px 3px;
    border-radius:6px;
    font-weight:700;
}

.cc-search-empty{
    padding:18px;
    font-size:14px;
    color:#666;
    text-align:center;
}

.cc-search-footer-link{
    display:block;
    padding:12px 14px;
    text-align:center;
    text-decoration:none;
    font-weight:800;
    color:#c43d79;
    background:#fff7fa;
}

.cc-search-section-title{
    padding:12px 14px 8px;
    font-size:12px;
    font-weight:900;
    letter-spacing:.12em;
    color:#9b5977;
    border-bottom:1px solid #f7edf2;
    background:#fff;
}

.cc-search-suggestion-item-cat{
    justify-content:space-between;
}

.cc-search-suggestion-arrow{
    font-size:22px;
    line-height:1;
    color:#b76b8b;
    font-weight:900;
}

/* CARRUSELES HORIZONTALES - LIMPIO */
/* REEMPLAZA SOLO EL BLOQUE DEL RAIL POR ESTE */
/* ===== CATEGORÍAS EN CARDS ===== */
.cc-categories-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:14px;
  margin:14px 0 18px;
}

.cc-category-card{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  min-height:168px;
  padding:12px 10px 14px;
  background:#fff;
  border:1px solid #ececec;
  border-radius:14px;
  text-decoration:none;
  box-shadow:0 4px 14px rgba(17,24,39,.06);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.cc-category-card:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 24px rgba(17,24,39,.10);
  border-color:#f3bfd2;
}

.cc-category-card.is-active{
  border-color:#f7b5cd;
  box-shadow:0 10px 24px rgba(247,181,205,.22);
}

.cc-category-card-img{
  width:100%;
  height:108px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:10px;
  overflow:hidden;
}

.cc-category-card-img img{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  display:block;
}

.cc-category-card-name{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  text-align:center;
  font-size:13px;
  line-height:1.25;
  font-weight:700;
  color:#111827;
  text-decoration:underline;
  text-underline-offset:2px;
  min-height:32px;
}

@media (max-width:1199px){
  .cc-categories-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
}

@media (max-width:991px){
  .cc-categories-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
  }

  .cc-category-card{
    min-height:160px;
  }
}

@media (max-width:640px){
  .cc-categories-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
    margin:10px 0 16px;
  }

  .cc-category-card{
    min-height:154px;
    padding:10px 8px 12px;
    border-radius:16px;
  }

  .cc-category-card-img{
    height:96px;
    margin-bottom:8px;
  }

  .cc-category-card-name{
    font-size:12.5px;
    min-height:30px;
  }
}





.brand-chip{
    flex:0 0 auto;
    min-width:72px;
    height:46px;
    border:1px solid var(--cc-border);
    border-radius:12px;
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:6px 10px;
    text-decoration:none;
    box-shadow:0 4px 14px rgba(20,20,20,.04);
    transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.brand-chip:hover{
    transform:translateY(-2px);
    border-color:var(--cc-pink-border);
    box-shadow:0 8px 18px rgba(20,20,20,.07);
}

.brand-chip img{
    max-width:100%;
    max-height:24px;
    object-fit:contain;
    display:block;
}

.brand-chip span{
    font-size:.74rem;
    color:#374151;
    font-weight:700;
    text-align:center;
    white-space:nowrap;
}

.brand-chip.is-active{
    border-color:var(--cc-pink-border);
    box-shadow:0 0 0 2px rgba(247,181,205,.16);
    background:var(--cc-pink-soft-2);
}

/* GRID DE PRODUCTOS */
.category-product-grid{
    margin-top:8px;
}

.ccp-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(205px, 1fr));
    gap:12px;
    align-items:stretch;
}

/* CARD PREMIUM */
.ccp-card{
    display:flex;
    flex-direction:column;
    min-height:100%;
    padding:14px 14px 12px;
    background:#fff;
    border:1px solid var(--cc-border);
    border-radius:16px;
    overflow:hidden;
    text-decoration:none;
    color:inherit;
    box-shadow:var(--cc-shadow-md);
    transition:transform .20s ease, box-shadow .20s ease, border-color .20s ease;
}

.ccp-card:hover{
    transform:translateY(-3px);
    box-shadow:var(--cc-shadow-lg);
    border-color:var(--cc-pink-border);
}

.ccp-media{
    position:relative;
    margin-bottom:10px;
}

.ccp-badges{
    position:absolute;
    top:15px;
    left:12px;
    z-index:2;
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:6px;
    flex-wrap:wrap;
    min-height:20px;
}

.ccp-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:20px;
    padding:3px 8px;
    border-radius:999px;
    font-size:10px;
    font-weight:800;
    line-height:1;
    white-space:nowrap;
    border:1px solid #f1d4df;
    background:#fff4f8;
    color:#2f3142;
}

.ccp-badge-offer{
    background:#f7d541;
    color:#302600;
}

.ccp-badge-discount{
    background:#ffd6e6;
    color:#d12a73;
}

.ccp-badge-ok{
    background:#edf8f0;
    color:#1f8a4c;
    border:1px solid #cfe9d8;
}

.ccp-badge-out{
    background:#fff2f2;
    color:#c53b3b;
    border:1px solid #f3d1d1;
}

.ccp-badge-new{
    background:#eaf4ff;
    color:#2463c7;
    border:1px solid #cfe1ff;
}

.ccp-badge-featured{
    background:#fff0f6;
    color:#cf2e6c;
    border:1px solid #ffd6e6;
}

.ccp-image-wrap{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:150px;
    max-height:150px;
    padding:8px;
    border-radius:16px;
    overflow:hidden;
    background:#fff;
}

.ccp-image{
    display:block;
    max-width:100%;
    max-height:100px;
    width:auto;
    height:auto;
    object-fit:contain;
    transition:transform .22s ease;
}

.ccp-card:hover .ccp-image{
    transform:scale(1.04);
}

.ccp-body{
    
   
    display:flex;
    flex-direction:column;
    flex:1;
    padding-top:2px;
    gap:0;
}

.ccp-brand{
    font-size:.66rem;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.045em;
    color:#cd7b9b;
    line-height:1.1;
    margin-bottom:5px;
}

.ccp-title{
    margin:0 0 6px;
    font-size:12px;
    font-weight:600;
    line-height:1.28;
    color:var(--cc-text);
    min-height:2.1em;
    max-height:2.1em;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
    word-break:break-word;
    text-wrap:balance;
}

.ccp-title a{
    color:inherit;
    text-decoration:none;
}

.ccp-title a:hover{
    text-decoration:none;
}

.ccp-rating-row{
    display:flex;
    align-items:center;
    gap:6px;
    flex-wrap:wrap;
    min-height:16px;
    margin-bottom:6px;
}

.ccp-stars{
    display:flex;
    align-items:center;
    gap:1px;
    line-height:1;
}

.ccp-stars span{
    font-size:11px;
    color:#d1d5db;
}

.ccp-stars span.active{
    color:#f2b01e;
}

.ccp-rating-text{
    font-size:11px;
    color:var(--cc-text-soft);
    white-space:nowrap;
}

.ccp-sku{
    font-size:11px;
    color:var(--cc-text-muted);
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    margin-bottom:8px;
    min-height:0;
}

.ccp-price-wrap{
    margin-top:0;
}

.ccp-price-row{
    display:flex;
    align-items:flex-end;
    gap:7px;
    flex-wrap:wrap;
    line-height:1;
}

.ccp-price-offer,
.ccp-price{
    font-size:.98rem;
    font-weight:900;
    color:#e31e6f;
    line-height:1.04;
}

.ccp-price-old{
    font-size:.85rem;
    color:#7a8092;
    text-decoration:line-through;
    line-height:1.05;
}

.ccp-saving{
    margin-top:3px;
    color:#e31e6f;
    font-weight:800;
    font-size:12px;
    line-height:1.15;
}

.ccp-stock-row{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
    margin-top:8px;
    min-height:24px;
    padding-top:0;
}

.stock-pill{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:5px;
    min-height:22px;
    padding:3px 10px;
    border-radius:999px;
    font-size:10.5px;
    font-weight:800;
    line-height:1;
    white-space:nowrap;
    background:var(--cc-green-bg);
    color:var(--cc-green-text);
    border:1px solid var(--cc-green-border);
}

.stock-pill-danger{
    background:var(--cc-red-bg);
    color:var(--cc-red-text);
    border-color:var(--cc-red-border);
}

.stock-pill-icon{
    font-size:.80rem;
    line-height:1;
}

/* PAGINADO */
.cc-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(4px, 1vw, 10px);
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    margin: 2rem 0;
    padding: 8px 4px;
}

.cc-pagination::-webkit-scrollbar {
    height: 3px;
}

.cc-pagination::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.cc-pagination::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 10px;
}

.cc-pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: clamp(6px, 2vw, 10px) clamp(10px, 2vw, 16px);
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 40px;
    color: #4a5568;
    font-size: clamp(12px, 3vw, 14px);
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.cc-pagination-pages {
    display: flex;
    align-items: center;
    gap: clamp(4px, 1.5vw, 8px);
    flex-wrap: nowrap;
    flex-shrink: 1;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.cc-pagination-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: clamp(32px, 8vw, 40px);
    height: clamp(32px, 8vw, 40px);
    padding: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    color: #4a5568;
    font-size: clamp(12px, 3vw, 14px);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.cc-pagination-page.is-active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

@media (hover: hover) {
    .cc-pagination-page:hover:not(.is-active) {
        background: #f7fafc;
        border-color: #cbd5e0;
        transform: translateY(-2px);
    }
    
    .cc-pagination-btn:hover:not(.is-disabled) {
        background: #f7fafc;
        border-color: #cbd5e0;
        transform: translateY(-1px);
    }
}

.cc-pagination-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: clamp(32px, 8vw, 40px);
    height: clamp(32px, 8vw, 40px);
    color: #a0aec0;
    font-size: clamp(14px, 4vw, 16px);
    font-weight: 500;
    flex-shrink: 0;
}

.cc-pagination-arrow {
    font-size: clamp(16px, 4vw, 20px);
    font-weight: 600;
    line-height: 1;
}

@media (max-width: 375px) {
    .cc-pagination {
        gap: 4px;
        padding: 8px 2px;
    }
    
    .cc-pagination-pages {
        gap: 3px;
    }
    
    .cc-pagination-page {
        min-width: 30px;
        height: 30px;
        font-size: 11px;
    }
    
    .cc-pagination-dots {
        min-width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .cc-pagination-label {
        display: none;
    }
    
    .cc-pagination-btn {
        padding: 6px 10px;
        min-width: 36px;
    }
}

@media (min-width: 376px) and (max-width: 414px) {
    .cc-pagination-page {
        min-width: 34px;
        height: 34px;
        font-size: 12px;
    }
    
    .cc-pagination-dots {
        min-width: 34px;
        height: 34px;
    }
}

@media (min-width: 415px) and (max-width: 768px) {
    .cc-pagination-page {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
    
    .cc-pagination-dots {
        min-width: 36px;
        height: 36px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .cc-pagination-page {
        min-width: 38px;
        height: 38px;
        font-size: 14px;
    }
}

@media (min-width: 1025px) {
    .cc-pagination {
        gap: 10px;
    }
    
    .cc-pagination-pages {
        gap: 8px;
    }
    
    .cc-pagination-page {
        min-width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .cc-pagination-page:hover {
        transform: translateY(-2px);
    }
}

@media (pointer: coarse) {
    .cc-pagination-page,
    .cc-pagination-btn {
        cursor: pointer;
        min-width: 40px;
        min-height: 40px;
    }
    
    .cc-pagination-page:hover:not(.is-active) {
        transform: none;
        background: white;
    }
    
    .cc-pagination-page:active:not(.is-active) {
        background: #edf2f7;
        transform: scale(0.95);
        transition: transform 0.1s;
    }
    
    .cc-pagination-btn:active:not(.is-disabled) {
        background: #edf2f7;
        transform: scale(0.97);
    }
}

@media (pointer: fine) {
    .cc-pagination-page {
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* ESTADO VACÍO */
.empty-box{
    background:#fff;
    border:1px solid var(--cc-border);
    border-radius:22px;
    padding:34px 22px;
    text-align:center;
    box-shadow:var(--cc-shadow-sm);
}

.empty-box h3{
    margin:0 0 8px;
    font-size:1.1rem;
    color:var(--cc-text);
    font-weight:800;
}

.empty-box p{
    margin:0;
    color:var(--cc-text-soft);
}

/* SEO BOX */
.category-seo-box{
    margin-top:16px;
    background:#fff;
    border:1px solid var(--cc-border);
    border-radius:18px;
    padding:10px;
    box-shadow:var(--cc-shadow-sm);
}

.category-seo-box h2{
    margin:0 0 10px;
    font-size:1.06rem;
    color:var(--cc-text);
    font-weight:800;
}

.category-seo-box p{
    margin:0;
    color:#5f6673;
    line-height:1.6;
}

/* STARS GLOBAL */
.cc-stars{
    display:flex;
    align-items:center;
    gap:4px;
    font-size:14px;
    margin:6px 0;
    flex-wrap:wrap;
}
.star{
    font-size:14px;
    line-height:1;
}
.star.full{
    color:#f7b500;
}
.star.half{
    color:#f7b500;
    opacity:.55;
}
.star.empty{
    color:#ddd;
}
.cc-stars-count{
    font-size:12px;
    color:#666;
    margin-left:6px;
}

/* TABLET */
@media (max-width: 1100px){
    .category-layout{
        grid-template-columns:250px minmax(0, 1fr);
        gap:18px;
    }

    .ccp-grid{
        grid-template-columns:repeat(auto-fill, minmax(185px, 1fr));
        gap:11px;
    }
}

/* SIDEBAR MÓVIL */
@media (max-width: 991px){
    .category-layout{
        grid-template-columns:1fr;
    }

    .category-sidebar{
        display:none;
    }

    .category-sidebar.is-open{
        display:block !important;
        position:fixed !important;
        inset:0 auto 0 0;
        width:min(92vw,380px);
        max-width:380px;
        height:100vh;
        overflow:auto;
        background:#fff;
        z-index:99999;
        padding:16px;
        box-shadow:0 24px 60px rgba(0,0,0,.18);
    }

    body.cc-sidebar-open{
        overflow:hidden;
    }

    body.cc-sidebar-open::before{
        content:"";
        position:fixed;
        inset:0;
        background:rgba(0,0,0,.35);
        z-index:99998;
    }

    .cc-sidebar-close{
        display:inline-flex;
        align-items:center;
        justify-content:center;
    }

    .category-header-top{
        align-items:center;
    }

    .mobile-filter-btn{
        display:inline-flex;
    }
}

/* MÓVIL / TABLET */
@media (max-width: 768px){
    .category-rail-arrow{
        display:none;
    }

    .category-rail-scroll{
        padding-left:0;
        padding-right:0;
    }

    .ccp-grid{
        grid-template-columns:repeat(2, minmax(0, 1fr));
        gap:10px;
    }

    .category-header-top{
        align-items:center;
        gap:10px;
        flex-wrap:nowrap;
    }

    .mobile-filter-btn{
        min-height:44px;
        padding:0 20px;
        border-radius:15px;
    }

    .subcat-chip{
        min-width:86px;
        max-width:98px;
    }

    .subcat-chip-img{
        width:66px;
        height:66px;
        border-radius:14px;
    }

    .ccp-title{
        font-size:.80rem;
    }

    .ccp-price,
    .ccp-price-offer{
        font-size:.92rem;
    }
}

/* MÓVIL PEQUEÑO */
@media (max-width: 640px){
    .category-header-top{
        display:flex;
        flex-direction:column;
        align-items:flex-start;
        gap:10px;
        margin-bottom:10px;
    }

    .category-header-top h1{
        font-size:1.75rem;
        line-height:1.05;
        margin:0;
        white-space:normal;
        word-break:normal;
        overflow-wrap:break-word;
    }

    .category-header-top p{
        font-size:.92rem;
        margin:0;
    }

    .mobile-filter-btn{
        align-self:flex-start;
        min-height:40px;
        padding:9px 14px;
        border-radius:12px;
        font-size:.92rem;
        font-weight:800;
    }

    .category-rail-shell{
        margin-bottom:10px;
    }

    .subcat-chip{
        min-width:88px;
        max-width:96px;
        gap:6px;
    }

    .subcat-chip-img{
        width:64px;
        height:64px;
        border-radius:14px;
    }

    .subcat-chip span{
        font-size:.74rem;
        line-height:1.18;
    }

    .brand-chip{
        min-width:74px;
        height:46px;
        border-radius:12px;
        padding:6px 10px;
    }

    .brand-chip img{
        max-height:22px;
    }

    .brand-chip span{
        font-size:.74rem;
    }

    .ccp-grid{
        grid-template-columns:1fr !important;
        gap:12px;
    }

    .ccp-card{
        display:grid !important;
        grid-template-columns:96px minmax(0,1fr) !important;
        gap:12px !important;
        padding:12px !important;
        border-radius:18px !important;
        align-items:center !important;
    }

    .ccp-media{
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
        padding:0 !important;
        margin:0 !important;
        background:transparent !important;
        aspect-ratio:auto;
    }

    .ccp-image-wrap{
        width:96px !important;
        height:96px !important;
        min-height:96px !important;
        max-height:96px !important;
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
        padding:6px !important;
        border-radius:14px !important;
        background:#f7f7f7 !important;
        margin:0 auto !important;
        overflow:visible !important;
        position:relative !important;
        padding-top:20px !important;
        padding-bottom:26px !important;
    }

    .ccp-image{
        max-width:82px !important;
        max-height:82px !important;
        width:auto !important;
        height:auto !important;
        object-fit:contain !important;
        display:block !important;
        margin:0 auto !important;
    }

    .ccp-body{
        padding:0 !important;
        gap:3px !important;
    }

    .ccp-brand{
        font-size:.70rem !important;
        letter-spacing:.08em !important;
        margin:0 0 2px !important;
    }

    .ccp-title{
        font-size:.88rem !important;
        line-height:1.18 !important;
        font-weight:700 !important;
        margin:0 0 4px !important;
        min-height:auto !important;
        max-height:2.45em !important;
        overflow:hidden !important;
        display:-webkit-box !important;
        -webkit-line-clamp:2 !important;
        -webkit-box-orient:vertical !important;
        text-wrap:balance;
    }

    .ccp-rating-row{
        margin:0 0 4px !important;
        min-height:auto !important;
    }

    .ccp-rating-text,
    .ccp-sku{
        font-size:.72rem !important;
    }

    .ccp-price,
    .ccp-price-offer{
        font-size:1.05rem !important;
        line-height:1.1 !important;
        margin:2px 0 4px !important;
    }

    .ccp-price-old{
        font-size:.78rem !important;
    }

    .ccp-saving{
        font-size:.78rem !important;
        margin:0 0 4px !important;
    }

    .ccp-stock-row{
        padding-top:0 !important;
        margin-top:2px !important;
    }

    .stock-pill{
        min-height:24px !important;
        padding:0 10px !important;
        font-size:.70rem !important;
    }

    .ccp-badges{
        position:absolute !important;
        inset:0 !important;
        width:auto !important;
        height:auto !important;
        pointer-events:none !important;
        z-index:8 !important;
        top:auto;
        left:auto;
        gap:4px !important;
    }

    .ccp-badges .ccp-badge-offer{
        position:absolute !important;
        top:-20px !important;
        left:-8px !important;
        min-height:20px !important;
        padding:0 8px !important;
        border-radius:999px !important;
        font-size:.64rem !important;
        font-weight:800 !important;
        line-height:20px !important;
        white-space:nowrap !important;
        z-index:10 !important;
        background-color:#FF0000;
        color:#fff;
    }

    .ccp-badges .ccp-badge-discount{
        position:absolute !important;
        top:-20px !important;
        left:48px !important;
        min-height:20px !important;
        padding:0 8px !important;
        border-radius:999px !important;
        font-size:.62rem !important;
        font-weight:800 !important;
        line-height:20px !important;
        white-space:nowrap !important;
        z-index:10 !important;
    }

    .ccp-badges .ccp-badge-new{
        position:absolute !important;
        top:-22px !important;
        left:0 !important;
        min-height:20px !important;
        padding:0 8px !important;
        border-radius:999px !important;
        font-size:.64rem !important;
        font-weight:800 !important;
        line-height:20px !important;
        white-space:nowrap !important;
        z-index:10 !important;
    }

    .ccp-badges .ccp-badge-ok,
    .ccp-badges .ccp-badge-out{
        position:absolute !important;
        left:6px !important;
        bottom:-12px !important;
        top:auto !important;
        min-height:20px !important;
        padding:0 8px !important;
        border-radius:999px !important;
        font-size:.62rem !important;
        font-weight:800 !important;
        line-height:20px !important;
        white-space:nowrap !important;
        z-index:9 !important;
    }

    .cc-pagination{
        padding:10px 14px !important;
        gap:10px !important;
        justify-content:center !important;
        border-radius:18px !important;
    }

    .cc-pagination-pages{
        gap:10px !important;
        padding:0 2px !important;
        width:100%;
        overflow-x:auto !important;
        overflow-y:hidden !important;
        scrollbar-width:none;
        -ms-overflow-style:none;
        white-space:nowrap !important;
        justify-content:center !important;
        flex-wrap:nowrap !important;
    }

    .cc-pagination-pages::-webkit-scrollbar{
        display:none;
    }

    .cc-pagination-btn,
    .cc-pagination-page{
        width:42px !important;
        height:42px !important;
        min-width:42px !important;
        min-height:42px !important;
        flex:0 0 42px !important;
        padding:0 !important;
        margin:0 !important;
        border-radius:999px !important;
    }

    .cc-pagination-label{
        display:none;
    }

    .cc-pagination > *{
        margin:0 !important;
    }
}

/* TABLET / LAPTOP / PC badges */
@media (min-width: 641px){
    .ccp-media,
    .ccp-image-wrap{
        position:relative !important;
        overflow:visible !important;
    }

    .ccp-badges{
        position:absolute !important;
        inset:0 !important;
        width:auto !important;
        height:auto !important;
        pointer-events:none !important;
        z-index:8 !important;
    }

    .ccp-badges .ccp-badge-offer{
        position:absolute !important;
        top:-12px !important;
        left:-4px !important;
        min-height:22px !important;
        padding:0 10px !important;
        border-radius:999px !important;
        font-size:.72rem !important;
        font-weight:800 !important;
        line-height:22px !important;
        white-space:nowrap !important;
        z-index:10 !important;
        background-color:#FF1493 !important;
        color:#fff !important;
    }

    .ccp-badges .ccp-badge-discount{
        position:absolute !important;
        top:-12px !important;
        left:78px !important;
        min-height:22px !important;
        padding:0 10px !important;
        border-radius:999px !important;
        font-size:.70rem !important;
        font-weight:800 !important;
        line-height:22px !important;
        white-space:nowrap !important;
        z-index:10 !important;
    }

    .ccp-badges .ccp-badge-new{
        position:absolute !important;
        top:-12px !important;
        left:-4px !important;
        min-height:22px !important;
        padding:0 10px !important;
        border-radius:999px !important;
        font-size:.72rem !important;
        font-weight:800 !important;
        line-height:22px !important;
        white-space:nowrap !important;
        z-index:10 !important;
    }

    .ccp-badges .ccp-badge-ok,
    .ccp-badges .ccp-badge-out{
        position:absolute !important;
        left:6px !important;
        bottom:-12px !important;
        top:auto !important;
        min-height:20px !important;
        padding:0 8px !important;
        border-radius:999px !important;
        font-size:.62rem !important;
        font-weight:800 !important;
        line-height:20px !important;
        white-space:nowrap !important;
        z-index:9 !important;
    }

    .ccp-image-wrap{
        padding-top:12px !important;
        padding-bottom:18px !important;
    }
}

/* AJUSTE FINO: MÁS AIRE EN LAS CARDS */
.ccp-card{
    padding: 14px 14px 16px !important;
}

.ccp-media{
    margin-bottom: 14px !important;
}

.ccp-image-wrap{
    min-height: 126px !important;
    max-height: 126px !important;
    padding: 10px !important;
    border-radius: 16px !important;
}

.ccp-image{
    max-height: 108px !important;
}

.ccp-body{
    gap: 0 !important;
}

.ccp-brand{
    margin-bottom: 7px !important;
}

.ccp-title{
    margin: 0 0 8px !important;
    line-height: 1.32 !important;
}

.ccp-rating-row{
    margin-bottom: 8px !important;
}

.ccp-sku{
    margin-bottom: 10px !important;
}

.ccp-price-wrap{
    margin-top: 2px !important;
}

.ccp-saving{
    margin-top: 5px !important;
}

.ccp-stock-row{
    margin-top: 12px !important;
    padding-top: 2px !important;
}

@media (max-width: 640px){
    .ccp-card{
        padding: 13px 13px 15px !important;
    }

    .ccp-media{
        margin-bottom: 12px !important;
    }

    .ccp-image-wrap{
        width: 250px !important;
        height: 250px !important;
        min-height: 250px !important;
        max-height: 250px !important;
        padding: 8px !important;
         align-items: center;
         justify-content: center;
    }

    .ccp-image{
        max-width: 250px !important;
        max-height: 250px !important;
    }

    .ccp-brand{
        margin-bottom: 4px !important;
    }

    .ccp-title{
        margin: 0 0 6px !important;
    }

    .ccp-rating-row{
        margin: 0 0 6px !important;
    }

    .ccp-sku{
        margin: 0 0 8px !important;
    }

    .ccp-stock-row{
        margin-top: 10px !important;
    }
}

/* CATÁLOGO ELEGANTE TIPO HOME / DESTACADOS */
.ccp-grid{
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)) !important;
  gap: 16px !important;
  align-items: stretch !important;
}

.ccp-card{
  display: flex !important;
  flex-direction: column !important;
  min-height: 100% !important;
  padding: 14px 14px 12px !important;
  border-radius: 22px !important;
  background: #ffffff !important;
  border: 1px solid #ece7ee !important;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.04) !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease !important;
}

.ccp-card:hover{
  transform: translateY(0) !important;
  box-shadow: 0 14px 26px rgba(17, 24, 39, 0.08) !important;
  border-color: #f0d7e3 !important;
}

.ccp-media{
  position: relative !important;
  margin-bottom: 12px !important;
  min-height: 170px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.ccp-image-wrap{
  width: 100% !important;
  min-height: 150px !important;
  max-height: 150px !important;
  height: 150px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px !important;
  border-radius: 18px !important;
  background: #fafafa !important;
  overflow: hidden !important;
}

.ccp-image{
  max-width: 100% !important;
  max-height: 126px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
  transition: transform .18s ease !important;
}

.ccp-card:hover .ccp-image{
  transform: scale(1.03) !important;
}

.ccp-badges{
  position: absolute !important;
  top: -4px !important;
  left: 0 !important;
  right: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
  z-index: 4 !important;
  pointer-events: none !important;
}

.ccp-badge{
  min-height: 24px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 24px !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(17,24,39,.06) !important;
}

.ccp-badge-offer{
  background: #ff1e8a !important;
  color: #fff !important;
}

.ccp-badge-discount{
  background: #f8d8e8 !important;
  color: #d42c73 !important;
}

.ccp-badge-new{
  background: #8a2be2 !important;
  color: #fff !important;
}

.ccp-badge-featured{
  background: #f6c137 !important;
  color: #111 !important;
}

.ccp-badge-ok{
  background: #18c45c !important;
  color: #fff !important;
}

.ccp-badge-out{
  background: #ef4444 !important;
  color: #fff !important;
}

.ccp-body{
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  padding: 0 2px !important;
  gap: 0 !important;
}

.ccp-brand{
  margin: 0 0 5px !important;
  font-size: 11px !important;
  line-height: 1.1 !important;
  font-weight: 800 !important;
  color: #b46d91 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
}

.ccp-title{
  margin: 0 0 7px !important;
  font-size: 14px !important;
  line-height: 1.28 !important;
  font-weight: 700 !important;
  color: #24324a !important;
  min-height: 36px !important;
  max-height: 36px !important;
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  text-wrap: balance !important;
}

.ccp-rating-row{
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 0 6px !important;
  min-height: 18px !important;
}

.ccp-stars{
  gap: 2px !important;
}

.ccp-stars span{
  font-size: 11px !important;
  color: #d4d7de !important;
}

.ccp-stars span.active{
  color: #f4b400 !important;
}

.ccp-rating-text{
  font-size: 11px !important;
  color: #7c8596 !important;
}

.ccp-sku{
  margin: 0 0 10px !important;
  font-size: 11px !important;
  color: #a0a7b4 !important;
  line-height: 1.15 !important;
  min-height: 13px !important;
}

.ccp-price-wrap{
  margin-top: auto !important;
}

.ccp-price-row{
  display: flex !important;
  align-items: baseline !important;
  gap: 7px !important;
  flex-wrap: wrap !important;
}

.ccp-price,
.ccp-price-offer{
  font-size: 16px !important;
  font-weight: 900 !important;
  color: #e91e63 !important;
  line-height: 1 !important;
}

.ccp-price-old{
  font-size: 13px !important;
  color: #8a90a0 !important;
  text-decoration: line-through !important;
  line-height: 1 !important;
}

.ccp-saving{
  margin-top: 4px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  color: #e91e63 !important;
  line-height: 1.1 !important;
}

.ccp-stock-row{
  margin-top: 10px !important;
  min-height: 26px !important;
}

.stock-pill{
  min-height: 24px !important;
  padding: 0 11px !important;
  border-radius: 999px !important;
  background: #e8f6ec !important;
  color: #1d8a4c !important;
  border: 1px solid #cfead8 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 24px !important;
  box-shadow: none !important;
}

.stock-pill-danger{
  background: #fff1f1 !important;
  color: #c53b3b !important;
  border-color: #f3c9c9 !important;
}

/* RESPONSIVE */
@media (max-width: 768px){
  .ccp-grid{
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: 12px !important;
  }

  .ccp-card{
    padding: 12px 12px 11px !important;
    border-radius: 18px !important;
  }

  .ccp-media{
    min-height: 146px !important;
    margin-bottom: 10px !important;
  }

  .ccp-image-wrap{
    min-height: 128px !important;
    max-height: 128px !important;
    height: 128px !important;
    border-radius: 15px !important;
    padding: 8px !important;
  }

  .ccp-image{
    max-height: 106px !important;
  }

  .ccp-title{
    font-size: 13px !important;
    min-height: 34px !important;
    max-height: 34px !important;
  }

  .ccp-price,
  .ccp-price-offer{
    font-size: 15px !important;
  }

  .ccp-badge{
    min-height: 22px !important;
    line-height: 22px !important;
    font-size: 10px !important;
    padding: 0 9px !important;
  }
}

@media (max-width: 640px){
  .ccp-grid{
    grid-template-columns: 1fr !important;
  }

  .ccp-card{
    display: grid !important;
    grid-template-columns: 98px minmax(0,1fr) !important;
    gap: 12px !important;
    align-items: center !important;
    padding: 12px !important;
    border-radius: 18px !important;
  }

  .ccp-media{
    min-height: auto !important;
    margin: 0 !important;
  }

  .ccp-image-wrap{
    width: 98px !important;
    height: 98px !important;
    min-height: 98px !important;
    max-height: 98px !important;
    padding: 8px !important;
    border-radius: 14px !important;
  }

  .ccp-image{
    max-height: 82px !important;
  }

  .ccp-body{
    padding: 0 !important;
  }

  .ccp-brand{
    font-size: 10px !important;
    margin-bottom: 3px !important;
  }

  .ccp-title{
    font-size: 14px !important;
    line-height: 1.18 !important;
    min-height: auto !important;
    max-height: 2.45em !important;
    margin-bottom: 5px !important;
  }

  .ccp-rating-row{
    margin-bottom: 4px !important;
  }

  .ccp-sku{
    margin-bottom: 8px !important;
  }

  .ccp-price,
  .ccp-price-offer{
    font-size: 16px !important;
  }

  .ccp-stock-row{
    margin-top: 8px !important;
  }

  .ccp-badges{
    top: -10px !important;
    left: 0 !important;
  }
}

/* DESKTOP / LAPTOP / TABLET */
@media (min-width: 641px){
  .ccp-card{
    display: flex !important;
    flex-direction: column !important;
    padding: 14px 14px 16px !important;
    border-radius: 22px !important;
    min-height: 100% !important;
  }

  .ccp-media{
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    margin-bottom: 14px !important;
    min-height: auto !important;
  }

  .ccp-badges{
    position: static !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    min-height: 26px !important;
    margin-bottom: 10px !important;
    pointer-events: none !important;
  }

  .ccp-badges .ccp-badge{
    position: static !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    min-height: 24px !important;
    line-height: 24px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
    border-radius: 999px !important;
    box-shadow: none !important;
  }

  .ccp-badges .ccp-badge-offer{
    background: #f4c533 !important;
    color: #111 !important;
  }

  .ccp-badges .ccp-badge-discount{
    background: #f7d8e7 !important;
    color: #d63d7b !important;
  }

  .ccp-badges .ccp-badge-new{
    background: #8a2be2 !important;
    color: #fff !important;
  }

  .ccp-badges .ccp-badge-featured{
    background: #f4c533 !important;
    color: #111 !important;
  }

  .ccp-badges .ccp-badge-ok,
  .ccp-badges .ccp-badge-out{
    order: 10 !important;
    margin-top: 8px !important;
    min-height: 26px !important;
    line-height: 26px !important;
    padding: 0 16px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    border-radius: 999px !important;
    align-self: center !important;
  }

  .ccp-badges .ccp-badge-ok{
    background: #22c55e !important;
    color: #fff !important;
    border: none !important;
  }

  .ccp-badges .ccp-badge-out{
    background: #ef4444 !important;
    color: #fff !important;
    border: none !important;
  }

  .ccp-image-wrap{
    width: 100% !important;
    height: 170px !important;
    min-height: 170px !important;
    max-height: 170px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px !important;
    border-radius: 18px !important;
    background: #fafafa !important;
    overflow: hidden !important;
  }

  .ccp-image{
    max-width: 100% !important;
    max-height: 132px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
  }

  .ccp-body{
   
    flex-direction: column !important;
    padding: 0 2px !important;
  }

  .ccp-brand{
    margin: 0 0 6px !important;
    font-size: 12px !important;
    line-height: 1.1 !important;
  }

  .ccp-title{
    margin: 0 0 8px !important;
    font-size: 16px !important;
    line-height: 1.22 !important;
    font-weight: 700 !important;
    min-height: 39px !important;
    max-height: 39px !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
  }

  .ccp-rating-row{
    margin: 0 0 8px !important;
    min-height: 18px !important;
  }

  .ccp-rating-text{
    font-size: 12px !important;
  }

  .ccp-sku{
    margin: 0 0 12px !important;
    font-size: 12px !important;
  }

  .ccp-price-wrap{
    margin-top: auto !important;
  }

  .ccp-price,
  .ccp-price-offer{
    font-size: 17px !important;
    font-weight: 900 !important;
  }

  .ccp-price-old{
    font-size: 14px !important;
  }

  .ccp-saving{
    margin-top: 4px !important;
    font-size: 13px !important;
  }

  .ccp-stock-row{
    margin-top: 5px !important;
  }

  .stock-pill{
    min-height: 26px !important;
    padding: 0 12px !important;
    font-size: 11px !important;
    border-radius: 999px !important;
  }
}

/* TABLET FINO */
@media (min-width: 641px) and (max-width: 991px){
  .ccp-grid{
    grid-template-columns: repeat(3, minmax(0,1fr)) !important;
    gap: 14px !important;
  }

  .ccp-card{
    padding: 13px 13px 15px !important;
  }

  .ccp-image-wrap{
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
  }

  .ccp-image{
    max-height: 122px !important;
  }

  .ccp-title{
    font-size: 15px !important;
  }
}



/* =========================
   FIX RAIL CATEGORÍAS / MARCAS
   sin tocar cards ni diseño
   ========================= */

.category-header,
.category-rail-shell,
.category-rail-scroll,
.category-subcats,
.category-brands {
    position: relative;
}

.category-rail-shell {
    z-index: 5;
    overflow: visible !important;
}

.category-rail-scroll,
.category-subcats,
.category-brands {
    z-index: 6;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    pointer-events: auto !important;
    touch-action: pan-x !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-behavior: smooth;
}

.category-rail-arrow {
    z-index: 20 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
}

/* Asegura que los chips sigan siendo clickeables */
.subcat-chip,
.brand-chip {
    position: relative;
    z-index: 7;
    pointer-events: auto !important;
}

/* Evita que cualquier capa del sidebar quede estorbando fuera de su uso */
.cc-sidebar-backdrop[hidden] {
    display: none !important;
    pointer-events: none !important;
}

body:not(.cc-sidebar-open) .cc-sidebar-backdrop {
    display: none !important;
    pointer-events: none !important;
}

body:not(.cc-sidebar-open)::before {
    content: none !important;
    display: none !important;
    pointer-events: none !important;
}

/* Cuando el sidebar no está abierto, jamás debe existir una capa fija encima */
body:not(.cc-sidebar-open) .category-content,
body:not(.cc-sidebar-open) .category-header,
body:not(.cc-sidebar-open) .category-rail-shell {
    isolation: isolate;
}

.cc-sidebar-backdrop[hidden]{
    display:none !important;
    pointer-events:none !important;
}

body:not(.cc-sidebar-open)::before{
    content:none !important;
    display:none !important;
    pointer-events:none !important;
}

body:not(.cc-sidebar-open) .cc-sidebar-backdrop{
    display:none !important;
    pointer-events:none !important;
}




.cc-category-only-page .category-layout{
    display:block;
}
.cc-category-only-page .category-content{
    width:100%;
    max-width:100%;
}
.cc-category-only-page .category-header{
    margin-bottom:18px;
}
.cc-category-only-page .category-header-top{
    display:block;
    margin-bottom:16px;
}
.cc-category-only-page .category-header-top h1{
    margin:0 0 6px;
}
.cc-category-only-page .category-header-top p{
    margin:0;
}

.cc-categories-grid{
    display:grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:16px;
    margin:10px 0 24px;
}

.cc-category-card{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;
    min-height:180px;
    padding:12px 12px 14px;
    background:#fff;
    border:1px solid #e9e9e9;
    border-radius:16px;
    text-decoration:none;
    box-shadow:0 4px 14px rgba(17,24,39,.06);
    transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.cc-category-card:hover{
    transform:translateY(-2px);
    box-shadow:0 10px 24px rgba(17,24,39,.10);
    border-color:#f3bfd2;
}

.cc-category-card-img{
    width:100%;
    height:120px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-bottom:10px;
    overflow:hidden;
}

.cc-category-card-img img{
    max-width:100%;
    max-height:100%;
    object-fit:contain;
    display:block;
}

.cc-category-card-name{
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
    min-height:34px;
    text-align:center;
    font-size:14px;
    line-height:1.25;
    font-weight:700;
    color:#111827;
    text-decoration:underline;
    text-underline-offset:2px;
}

.cc-category-intro{
    margin:0 0 14px;
    color:#4b5563;
    font-size:14px;
}

@media (max-width:1199px){
    .cc-categories-grid{
        grid-template-columns:repeat(4, minmax(0, 1fr));
        gap:14px;
    }
}

@media (max-width:991px){
    .cc-categories-grid{
        grid-template-columns:repeat(3, minmax(0, 1fr));
        gap:14px;
    }

    .cc-category-card{
        min-height:170px;
    }

    .cc-category-card-img{
        height:108px;
    }
}

@media (max-width:640px){
    .cc-categories-grid{
        grid-template-columns:repeat(2, minmax(0, 1fr));
        gap:18px;
        margin:8px 0 18px;
    }

    .cc-category-card{
        min-height:160px;
        padding:10px 8px 12px;
        border-radius:16px;
    }

    .cc-category-card-img{
        height:96px;
        margin-bottom:8px;
    }

    .cc-category-card-name{
        font-size:12.5px;
        min-height:30px;
    }
}

.cc-home-product-card,
.cc-variant-card {
    content-visibility: auto;
    contain-intrinsic-size: 320px;
}