/* =====================================================
   WC Catálogos – Frontend Styles
   Clean, mobile-first, works with any theme.
===================================================== */

.wcc-main { padding: 40px 20px; }

/* Header */
.wcc-catalog-wrap { max-width: 1200px; margin: 0 auto; }
.wcc-catalog-header {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid #eee;
}
.wcc-catalog-title { font-size: 28px; margin: 0; }
.wcc-catalog-count {
    font-size: 13px;
    color: #888;
    background: #f0f0f0;
    padding: 3px 10px;
    border-radius: 20px;
}
.wcc-catalog-empty { text-align: center; color: #aaa; padding: 40px 0; font-size: 16px; }

/* Grid */
.wcc-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

/* Product card */
.wcc-product-card {
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, transform .2s;
}
.wcc-product-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,.1);
    transform: translateY(-2px);
}

.wcc-product-card-img {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f8f8f8;
}
.wcc-product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.wcc-product-card:hover .wcc-product-card-img img { transform: scale(1.04); }

.wcc-product-card-body {
    padding: 14px 14px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.wcc-product-card-cat   { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: #999; }
.wcc-product-card-name  { margin: 0; font-size: 14px; line-height: 1.4; }
.wcc-product-card-name a { color: inherit; text-decoration: none; }
.wcc-product-card-name a:hover { color: #2271b1; }
.wcc-product-card-sku  { font-size: 11px; color: #bbb; font-family: monospace; display: block; margin-top: 2px; }
.wcc-product-card-price { font-size: 16px; font-weight: 700; color: #222; margin-top: auto; padding-top: 8px; }
.wcc-product-card-price del { opacity: .5; font-weight: 400; font-size: 13px; }
.wcc-product-card-price ins { text-decoration: none; }

/* Footer buttons */
.wcc-product-card-footer {
    padding: 12px 14px 14px;
    display: flex;
    gap: 8px;
}
.wcc-product-card-footer.wcc-footer-single .wcc-btn-view {
    flex: 1;
}
.wcc-btn-view,
.wcc-btn-cart {
    flex: 1;
    text-align: center;
    padding: 8px 6px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.wcc-btn-view {
    border: 1px solid #2271b1;
    color: #2271b1;
    background: transparent;
}
.wcc-btn-view:hover { background: #2271b1; color: #fff; }

.wcc-btn-cart {
    background: #2271b1;
    color: #fff;
    border: 1px solid #2271b1;
}
.wcc-btn-cart:hover { background: #1a5a94; border-color: #1a5a94; }

/* Responsive */
@media (max-width: 600px) {
    .wcc-catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .wcc-catalog-title { font-size: 22px; }
}
@media (max-width: 380px) {
    .wcc-catalog-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   FILTERS BAR
===================================================== */
.wcc-filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
    align-items: center;
}

.wcc-filter-search {
    position: relative;
    flex: 1;
    min-width: 200px;
}
.wcc-filter-search input {
    width: 100%;
    padding: 9px 36px 9px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
    transition: border-color .15s;
}
.wcc-filter-search input:focus { border-color: #2271b1; }
.wcc-search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    pointer-events: none;
    display: flex;
}

.wcc-filter-select select {
    padding: 9px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    outline: none;
    transition: border-color .15s;
}
.wcc-filter-select select:focus { border-color: #2271b1; }

/* =====================================================
   ALPHABET BAR
===================================================== */
.wcc-alpha-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 24px;
    padding: 12px 14px;
    background: #f8f8f8;
    border-radius: 8px;
    border: 1px solid #eee;
}
.wcc-alpha-btn {
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    color: #555;
    transition: background .12s, color .12s, border-color .12s;
    line-height: 1.4;
}
.wcc-alpha-btn:hover {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}
.wcc-alpha-btn.active {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

/* =====================================================
   STATE INDICATORS
===================================================== */
.wcc-state-loading,
.wcc-state-empty {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-size: 15px;
}
.wcc-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #ddd;
    border-top-color: #2271b1;
    border-radius: 50%;
    animation: wcc-spin .7s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}
@keyframes wcc-spin { to { transform: rotate(360deg); } }

/* =====================================================
   LOAD MORE
===================================================== */
.wcc-load-more-wrap {
    text-align: center;
    margin-top: 36px;
}
.wcc-btn-load-more {
    display: inline-block;
    padding: 12px 40px;
    border: 2px solid #2271b1;
    border-radius: 6px;
    background: transparent;
    color: #2271b1;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.wcc-btn-load-more:hover {
    background: #2271b1;
    color: #fff;
}
.wcc-btn-load-more:disabled {
    opacity: .6;
    cursor: default;
}

/* =====================================================
   RESPONSIVE FILTERS
===================================================== */
@media (max-width: 600px) {
    .wcc-filters-bar { flex-direction: column; }
    .wcc-filter-search, .wcc-filter-select { width: 100%; }
    .wcc-filter-select select { width: 100%; }
    .wcc-alpha-btn { padding: 3px 6px; font-size: 11px; }
}
