/**
 * Vitrine / Home — Etapa 3
 */

.catalog-vitrine {
    padding-top: var(--space-section-mobile);
    padding-bottom: var(--space-section-mobile);
    background:
        radial-gradient(ellipse 90% 55% at 50% -8%, rgba(150, 195, 34, 0.07), transparent 58%),
        linear-gradient(180deg, var(--color-bg) 0%, var(--color-border-subtle) 100%);
}

.catalog-vitrine > .container {
    max-width: var(--catalog-layout-max-width);
}

@media (min-width: 768px) {
    .catalog-vitrine {
        padding-top: var(--space-section);
        padding-bottom: calc(var(--space-section) + 0.5rem);
    }
}

.catalog-section-header {
    margin-bottom: 1.5rem;
    padding: 1.15rem 1.15rem 1.2rem 1rem;
    background: linear-gradient(
        135deg,
        var(--color-surface) 0%,
        var(--color-border-subtle) 42%,
        var(--color-surface) 100%
    );
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm), 0 0 0 1px rgba(255, 255, 255, 0.65) inset;
    position: relative;
    overflow: hidden;
}

.catalog-section-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
}

.catalog-section-header::after {
    content: '';
    position: absolute;
    right: -2rem;
    top: -2.5rem;
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(150, 195, 34, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.catalog-section-header__inner {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding-left: 0.35rem;
    position: relative;
    z-index: 1;
}

.catalog-section-header__mark {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    background: linear-gradient(145deg, rgba(150, 195, 34, 0.22) 0%, rgba(150, 195, 34, 0.1) 100%);
    color: var(--color-accent);
    font-size: 1.35rem;
    line-height: 1;
    border: 1px solid rgba(150, 195, 34, 0.28);
    box-shadow: 0 4px 14px rgba(150, 195, 34, 0.15);
}

.catalog-section-header__text {
    min-width: 0;
    flex: 1;
}

.catalog-section-header__eyebrow {
    margin: 0 0 0.2rem;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--color-accent);
}

.catalog-section-header__title {
    font-size: clamp(1.3rem, 2.2vw, var(--text-3xl));
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 0.35rem;
    letter-spacing: var(--tracking-tight);
    line-height: var(--leading-tight);
}

.catalog-section-header__subtitle {
    margin: 0;
    max-width: 42ch;
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    color: var(--color-text-muted);
}

@media (min-width: 768px) {
    .catalog-section-header {
        padding: 1.35rem 1.5rem 1.4rem 1.15rem;
        margin-bottom: 1.75rem;
    }

    .catalog-section-header__inner {
        gap: 1rem;
        padding-left: 0.5rem;
    }

    .catalog-section-header__mark {
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
    }

    .catalog-section-header__subtitle {
        font-size: var(--text-base);
    }
}

body.dark-theme .catalog-vitrine {
    background:
        radial-gradient(ellipse 90% 55% at 50% -8%, rgba(150, 195, 34, 0.1), transparent 58%),
        linear-gradient(180deg, var(--color-bg) 0%, rgba(0, 0, 0, 0.15) 100%);
}

body.dark-theme .catalog-section-header {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.04) 0%,
        var(--color-surface) 55%,
        var(--color-surface) 100%
    );
    border-color: var(--color-border);
    box-shadow: none;
}

body.dark-theme .catalog-section-header::after {
    background: radial-gradient(circle, rgba(150, 195, 34, 0.12) 0%, transparent 70%);
}

body.dark-theme .catalog-section-header__mark {
    background: rgba(150, 195, 34, 0.18);
    border-color: rgba(150, 195, 34, 0.28);
    color: var(--color-accent-bright);
}

body.dark-theme .catalog-section-header__eyebrow {
    color: var(--color-accent-bright);
}

/* Busca rápida — mesmo componente visual do header (.header-search-form) */
.catalog-quick-search {
    margin-bottom: 1.35rem;
    padding: 1rem 1.1rem 1.05rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.catalog-quick-search__inner {
    margin: 0 auto;
    max-width: 680px;
}

.catalog-search-form {
    width: 100%;
}

.catalog-quick-search__hint {
    margin: 0.5rem 0 0;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-align: center;
}

/* Toolbar */
.catalog-toolbar {
    margin-bottom: 1.25rem;
}

.catalog-toolbar__panel {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1rem 1.15rem;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.catalog-toolbar__panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent) 0%, rgba(150, 195, 34, 0.35) 100%);
}

.catalog-toolbar__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}

.catalog-toolbar__label {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--color-text-muted);
    white-space: nowrap;
}

.catalog-toolbar__divider {
    width: 1px;
    height: 1.75rem;
    background: var(--color-border);
    flex-shrink: 0;
}

.catalog-toolbar__group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.catalog-toolbar__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    transition:
        background-color var(--transition),
        border-color var(--transition),
        color var(--transition),
        box-shadow var(--transition),
        transform var(--transition);
    cursor: pointer;
}

.catalog-toolbar__btn:hover {
    background: rgba(150, 195, 34, 0.08);
    border-color: rgba(150, 195, 34, 0.45);
    color: var(--color-accent-hover);
    transform: translateY(-1px);
}

.catalog-toolbar__btn.is-active {
    background: rgba(150, 195, 34, 0.14);
    border-color: var(--color-accent);
    color: var(--color-accent-hover);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(150, 195, 34, 0.18);
}

.catalog-toolbar__chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.catalog-toolbar__chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    cursor: pointer;
    transition: background-color var(--transition), border-color var(--transition), color var(--transition);
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.catalog-toolbar__chip:hover {
    background: rgba(150, 195, 34, 0.08);
    border-color: rgba(150, 195, 34, 0.45);
    color: var(--color-accent-hover);
}

.catalog-toolbar__chip.is-active {
    background: rgba(150, 195, 34, 0.14);
    border-color: var(--color-accent);
    color: var(--color-accent-hover);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(150, 195, 34, 0.16);
}

.catalog-toolbar__marca-wrap {
    flex: 1 1 200px;
    min-width: 0;
}

.catalog-toolbar__marca-wrap .catalog-toolbar__chips {
    flex: 1 1 auto;
}

.catalog-toolbar__select {
    min-width: 160px;
    max-width: 220px;
    font-size: var(--text-sm);
    border-radius: var(--radius-sm);
    border-color: var(--color-border);
    padding: 0.4rem 0.65rem;
}

.catalog-toolbar__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    margin-bottom: 0.75rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text);
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.catalog-toolbar__toggle:hover {
    border-color: rgba(150, 195, 34, 0.4);
    box-shadow: var(--shadow-md);
}

.catalog-toolbar__toggle i {
    transition: transform var(--transition);
}

.catalog-toolbar__toggle[aria-expanded="true"] i.bi-chevron-down {
    transform: rotate(180deg);
}

.catalog-toolbar__collapse {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.catalog-toolbar__collapse .catalog-toolbar__group {
    width: 100%;
}

.catalog-toolbar__collapse .catalog-toolbar__btn {
    flex: 1 1 auto;
    justify-content: center;
}

.catalog-toolbar__collapse-block + .catalog-toolbar__collapse-block {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border-subtle);
}

/* Cards de produto — vitrine */
.products-grid {
    --product-card-gap: var(--product-card-gap-mobile);
    --bs-gutter-x: var(--product-card-gap);
    --bs-gutter-y: var(--product-card-gap);
}

.products-grid > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

.products-grid .product-card {
    width: 100%;
    flex: 1;
}

@keyframes catalogProductReveal {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.products-grid > [class*="col-"] {
    animation: catalogProductReveal 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.products-grid > [class*="col-"]:nth-child(1) { animation-delay: 0.02s; }
.products-grid > [class*="col-"]:nth-child(2) { animation-delay: 0.05s; }
.products-grid > [class*="col-"]:nth-child(3) { animation-delay: 0.08s; }
.products-grid > [class*="col-"]:nth-child(4) { animation-delay: 0.11s; }
.products-grid > [class*="col-"]:nth-child(5) { animation-delay: 0.14s; }
.products-grid > [class*="col-"]:nth-child(6) { animation-delay: 0.17s; }
.products-grid > [class*="col-"]:nth-child(7) { animation-delay: 0.2s; }
.products-grid > [class*="col-"]:nth-child(8) { animation-delay: 0.23s; }
.products-grid > [class*="col-"]:nth-child(9) { animation-delay: 0.26s; }
.products-grid > [class*="col-"]:nth-child(10) { animation-delay: 0.29s; }
.products-grid > [class*="col-"]:nth-child(11) { animation-delay: 0.32s; }
.products-grid > [class*="col-"]:nth-child(12) { animation-delay: 0.35s; }

.product-info {
    padding: var(--card-padding-mobile);
    gap: 0.55rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    isolation: isolate;
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.product-card::before {
    display: none;
}

.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 3;
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(150, 195, 34, 0.38);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(150, 195, 34, 0.08);
}

.product-card:hover::after {
    transform: scaleX(1);
}

.product-card:focus-within {
    border-color: rgba(150, 195, 34, 0.45);
    box-shadow: var(--focus-ring), var(--shadow-md);
}

.product-link {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

.product-link:hover {
    text-decoration: none;
    color: inherit;
}

.product-link:hover .product-name {
    color: var(--color-accent-hover);
}

.product-card .badge.bg-success {
    animation: pulse-promo 2s infinite;
    font-size: var(--text-xs);
    padding: 0.35rem 0.65rem;
}

@keyframes pulse-promo {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(150, 195, 34, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(150, 195, 34, 0);
    }
}

body.dark-theme .product-price-promo {
    color: var(--color-accent-bright);
}

.product-card__media {
    display: block;
    position: relative;
    padding: 0.85rem 0.85rem 0.65rem;
    background:
        radial-gradient(ellipse 80% 70% at 50% 30%, rgba(150, 195, 34, 0.05), transparent 70%),
        var(--color-border-subtle);
    border-bottom: 1px solid var(--color-border-subtle);
    text-decoration: none;
    overflow: hidden;
}

.product-card__media .product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    object-position: center;
    background: transparent;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-card__badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    z-index: 2;
}

.product-card__badge {
    display: inline-block;
    padding: 0.28rem 0.62rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: var(--radius-full);
    line-height: 1.2;
    box-shadow: 0 2px 8px rgba(45, 55, 72, 0.12);
    backdrop-filter: blur(4px);
}

.product-card__badge--offer {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
    color: var(--color-text-inverse);
}

.product-card__badge--in {
    background: rgba(56, 161, 105, 0.92);
    color: #fff;
}

.product-card__badge--out {
    background: rgba(229, 62, 62, 0.92);
    color: #fff;
}

.product-name {
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: 0;
    color: var(--color-text);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7rem;
    transition: color var(--transition);
}

.product-card__meta {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    min-height: 1rem;
    font-weight: 500;
}

.product-card__code {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity var(--transition), max-height var(--transition);
}

.product-card:hover .product-card__code,
.product-card:focus-within .product-card__code {
    opacity: 1;
    max-height: 1.5rem;
}

.product-card__price-wrap {
    margin-top: auto;
    padding: 0.55rem 0.65rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(90deg, rgba(150, 195, 34, 0.09) 0%, rgba(150, 195, 34, 0.02) 72%);
}

.product-price {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-accent);
    margin: 0;
    text-shadow: none;
    line-height: var(--leading-tight);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.product-price--consulta {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    font-weight: 600;
}

.product-price-promocional {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.5rem;
    margin: 0;
}

.product-price-promocional .product-price--was {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-decoration: line-through;
    font-variant-numeric: tabular-nums;
}

.product-price-promo {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-accent);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.catalog-vitrine .add-to-cart-btn {
    width: 100%;
    margin-top: 0.35rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.catalog-vitrine .product-card:hover .add-to-cart-btn:not(:disabled):not(.disabled) {
    box-shadow: var(--shadow-success);
}

.add-to-cart-btn::before {
    display: none;
}

/* Hover/disabled: design-system.css (CTA unificado Fase 13) */

/* Skeleton loading */
.product-card--skeleton {
    pointer-events: none;
}

.skeleton-block {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 0;
    background: linear-gradient(90deg, var(--color-border-subtle) 25%, var(--color-border) 50%, var(--color-border-subtle) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.2s ease-in-out infinite;
}

.skeleton-line {
    height: 0.85rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(90deg, var(--color-border-subtle) 25%, var(--color-border) 50%, var(--color-border-subtle) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.2s ease-in-out infinite;
    margin-bottom: 0.5rem;
}

.skeleton-line--title { width: 85%; height: 1rem; }
.skeleton-line--price { width: 45%; height: 1.25rem; }
.skeleton-line--btn { width: 100%; height: 44px; margin-top: 0.5rem; margin-bottom: 0; }

@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Empty / error states */
.catalog-empty-state {
    text-align: center;
    padding: 3.25rem 1.75rem;
    color: var(--color-text-muted);
    background: var(--color-surface);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.catalog-empty-state i {
    color: var(--color-accent);
    opacity: 0.55;
    margin-bottom: 1rem;
    display: block;
    font-size: 2.75rem;
}

.catalog-empty-state h4 {
    font-size: var(--text-lg);
    color: var(--color-text);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.catalog-empty-state p {
    margin-bottom: 1rem;
    font-size: var(--text-sm);
    max-width: 36ch;
    margin-left: auto;
    margin-right: auto;
}

/* Paginação */
.catalog-pagination {
    margin-top: 2.25rem;
    padding: 1.35rem 1rem 0.5rem;
    border-top: 1px solid var(--color-border);
    background: linear-gradient(180deg, transparent 0%, rgba(150, 195, 34, 0.03) 100%);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.catalog-pagination .pagination {
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.catalog-pagination .pagination .page-link {
    border-radius: var(--radius-full);
    min-width: 2.5rem;
    padding: 0.5rem 0.9rem;
    font-size: var(--text-sm);
    font-weight: 600;
    border-color: var(--color-border);
    color: var(--color-text);
    box-shadow: none;
    transition:
        background-color var(--transition),
        border-color var(--transition),
        color var(--transition),
        box-shadow var(--transition),
        transform var(--transition);
}

.catalog-pagination .pagination .page-link:hover:not(:disabled) {
    background: rgba(150, 195, 34, 0.1);
    border-color: rgba(150, 195, 34, 0.45);
    color: var(--color-accent-hover);
    transform: translateY(-1px);
}

.catalog-pagination .pagination button.page-link {
    background: var(--color-surface);
    line-height: inherit;
}

.catalog-pagination .pagination button.page-link:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.catalog-pagination .pagination .page-item.disabled .page-link {
    background: var(--color-bg);
    color: var(--color-text-muted);
    opacity: 0.65;
}

.catalog-pagination .pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
    border-color: var(--color-accent);
    color: var(--color-text-inverse);
    box-shadow: 0 4px 12px rgba(150, 195, 34, 0.28);
}

.catalog-pagination .pagination-info {
    margin-top: 1rem;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    font-weight: 500;
}

body.dark-theme .catalog-toolbar__panel,
body.dark-theme .catalog-toolbar__collapse,
body.dark-theme .catalog-toolbar__toggle {
    background: var(--color-surface);
    border-color: var(--color-border);
}

body.dark-theme .catalog-toolbar__btn {
    background: var(--color-surface-elevated);
    border-color: var(--color-border);
    color: var(--color-text);
}

body.dark-theme .catalog-toolbar__btn.is-active {
    background: rgba(150, 195, 34, 0.18);
    border-color: var(--color-accent);
    color: var(--color-accent-bright);
}

body.dark-theme .catalog-toolbar__chip {
    background: var(--color-surface-elevated);
    border-color: var(--color-border);
    color: var(--color-text);
}

body.dark-theme .catalog-toolbar__chip.is-active {
    background: rgba(150, 195, 34, 0.18);
    border-color: var(--color-accent);
    color: var(--color-accent-bright);
}

body.dark-theme .product-card {
    background: var(--color-surface);
    border-color: var(--color-border);
}

body.dark-theme .product-card:hover {
    border-color: rgba(150, 195, 34, 0.42);
    box-shadow: var(--shadow-lg);
}

body.dark-theme .product-card__media {
    background:
        radial-gradient(ellipse 80% 70% at 50% 30%, rgba(150, 195, 34, 0.08), transparent 70%),
        var(--color-surface-elevated);
    border-bottom-color: var(--color-border);
}

body.dark-theme .product-card__price-wrap {
    background: linear-gradient(90deg, rgba(150, 195, 34, 0.14) 0%, rgba(150, 195, 34, 0.04) 72%);
}

body.dark-theme .catalog-quick-search {
    background: var(--color-surface);
    border-color: var(--color-border);
}

body.dark-theme .catalog-empty-state {
    background: var(--color-surface);
    border-color: var(--color-border);
}

body.dark-theme .catalog-pagination .pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
    border-color: var(--color-accent);
    color: var(--color-text-inverse);
}

/* =============================================================================
   Grid responsivo — 1 / 2 / 3 / 5 colunas (5 no desktop ≥992px)
   ============================================================================= */

.products-grid {
    --product-card-gap: 1.125rem;
}

@media (min-width: 768px) {
    .products-grid {
        --product-card-gap: 1.35rem;
    }
}

/* <576px — 1 coluna */
@media (max-width: 575.98px) {
    .products-grid > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }
}

/* 576–767px — 2 colunas */
@media (min-width: 576px) and (max-width: 767.98px) {
    .products-grid > [class*="col-"] {
        flex: 0 0 50%;
        max-width: 50%;
        width: 50%;
    }
}

/* 768–991px — 3 colunas (tablet) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .products-grid > [class*="col-"] {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
        width: 33.333333%;
    }
}

/* ≥992px — 5 colunas por linha */
@media (min-width: 992px) {
    .products-grid > [class*="col-"] {
        flex: 0 0 20%;
        max-width: 20%;
        width: 20%;
    }

    .products-grid {
        --product-card-gap: 1.1rem;
    }

    .products-grid .product-name {
        font-size: 0.8125rem;
        min-height: 2.35rem;
    }

    .products-grid .product-price,
    .products-grid .product-price-promo {
        font-size: 1.05rem;
    }

    .products-grid .product-card__media {
        padding: 0.7rem 0.7rem 0.55rem;
    }

    .products-grid .product-info {
        padding: 0.85rem;
        gap: 0.45rem;
    }

    .products-grid .add-to-cart-btn {
        min-height: 42px;
        padding: 0.55rem 0.75rem;
        font-size: 0.8125rem;
    }
}

@media (min-width: 1200px) {
    .products-grid {
        --product-card-gap: 1.35rem;
    }

    .products-grid .product-name {
        font-size: var(--text-sm);
        min-height: 2.5rem;
    }

    .products-grid .product-price,
    .products-grid .product-price-promo {
        font-size: var(--text-xl);
    }
}

@media (min-width: 1400px) {
    .products-grid {
        --product-card-gap: 1.5rem;
    }
}

.product-info {
    padding: var(--card-padding-mobile);
}

.product-card__media {
    padding: 0.85rem 0.85rem 0.65rem;
}

@media (min-width: 768px) {
    .product-info {
        padding: var(--card-padding-desktop);
    }

    .product-card__media {
        padding: 1rem 1rem 0.75rem;
    }
}

.catalog-toolbar__panel,
.catalog-toolbar__collapse {
    padding: var(--card-padding-mobile);
}

@media (min-width: 768px) {
    .catalog-toolbar__panel,
    .catalog-toolbar__collapse {
        padding: var(--card-padding-desktop);
    }
}

@media (prefers-reduced-motion: reduce) {
    .products-grid > [class*="col-"],
    .product-card,
    .product-card__media .product-image,
    .catalog-toolbar__btn,
    .catalog-pagination .pagination .page-link {
        animation: none;
        transition: none;
    }

    .product-card:hover {
        transform: none;
    }

    .product-card:hover .product-image {
        transform: none;
    }
}
