/* === CATÁLOGO PAGE === */

/* Breadcrumb */
.breadcrumb {
    padding: 20px 0;
    font-size: 13px;
    color: var(--color-gray);
}

.breadcrumb a {
    color: var(--color-gray);
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--color-dark);
}

.breadcrumb span {
    margin: 0 8px;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 40px;
}

.page-header__info {
    flex: 1;
}

.page-header__title {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 12px;
}

.page-header__desc {
    font-size: 15px;
    color: var(--color-gray);
    line-height: 1.6;
    max-width: 500px;
}

/* Service badge */
.service-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--color-white);
    border: 1px solid #E5E7EB;
    border-radius: var(--radius);
    padding: 16px 24px;
    white-space: nowrap;
}

.service-badge__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-badge__icon svg {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
}

.service-badge__text {
    display: flex;
    flex-direction: column;
}

.service-badge__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-primary);
}

.service-badge__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-dark);
}

/* Catalog Layout */
.catalog {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
    padding-bottom: 60px;
}

/* Sidebar Filters */
.filters {
    position: sticky;
    top: 100px;
    align-self: start;
}

.filters__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-dark);
    padding-bottom: 12px;
    border-bottom: 1px solid #E5E7EB;
    margin-bottom: 16px;
}

.filters__group {
    margin-bottom: 24px;
}

.filters__group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 8px 0;
}

.filters__group-header h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-dark);
}

.filters__group-header svg {
    width: 16px;
    height: 16px;
    color: var(--color-gray);
    transition: transform 0.2s;
}

.filters__options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.filters__option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.filters__option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border: 1.5px solid #D1D5DB;
    border-radius: 3px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: all 0.2s;
}

.filters__option input[type="checkbox"]:checked {
    background: var(--color-primary);
    border-color: var(--color-primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

.filters__option label {
    font-size: 13px;
    color: var(--color-gray-dark);
    cursor: pointer;
}

.filters__clear {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: var(--color-white);
    border: 1px solid #E5E7EB;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-dark);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.filters__clear:hover {
    background: var(--color-gray-light);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Product Card */
.product-card {
    background: var(--color-white);
    border: 1px solid #E5E7EB;
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.product-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.product-card__header {
    position: relative;
    padding: 12px 12px 0;
}

.product-card__badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--color-dark);
    color: var(--color-white);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 3px;
}

.product-card__badge--edificio {
    background: var(--color-dark);
}

.product-card__badge--casa {
    background: #16A34A;
}

.product-card__badge--cerraduras {
    background: #6B7280;
}

.product-card__badge--oficina {
    background: #2563EB;
}

.product-card__img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: #F9FAFB;
    border-radius: 6px;
}

.product-card__body {
    padding: 20px;
}

.product-card__name {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 4px;
    line-height: 1.3;
}

.product-card__model {
    font-size: 12px;
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: 12px;
}

.product-card__price {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 4px;
}

.product-card__price span {
    font-size: 12px;
    font-weight: 400;
    color: var(--color-gray);
    margin-left: 4px;
}

.product-card__price--consultar {
    font-size: 14px;
    font-style: italic;
    color: var(--color-gray);
    font-weight: 500;
}

.product-card__desc {
    font-size: 13px;
    color: var(--color-gray);
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn--specs {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-dark);
    background: var(--color-white);
    border: 1px solid #E5E7EB;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}

.btn--specs:hover {
    background: var(--color-gray-light);
}

.btn--specs svg {
    width: 16px;
    height: 16px;
}

.btn--whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-white);
    background: #25D366;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}

.btn--whatsapp:hover {
    background: #1EBE57;
}

.btn--whatsapp svg {
    width: 16px;
    height: 16px;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
    padding-bottom: 20px;
}

.pagination__btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #E5E7EB;
    border-radius: var(--radius);
    background: var(--color-white);
    color: var(--color-gray);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination__btn:hover {
    border-color: var(--color-dark);
    color: var(--color-dark);
}

.pagination__btn.active {
    background: var(--color-dark);
    border-color: var(--color-dark);
    color: var(--color-white);
}

.pagination__btn svg {
    width: 16px;
    height: 16px;
}

/* WhatsApp floating button */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 999;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
    color: var(--color-white);
}

/* Responsive */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-header {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .catalog {
        grid-template-columns: 1fr;
    }

    .filters {
        position: static;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .page-header__title {
        font-size: 28px;
    }
}
