/* Modern Products Page Styles */

.modern-filter-section {
    background: var(--modern-accent);
    border: 1px solid var(--modern-secondary);
    border-radius: 12px;
    padding: 1.5rem;
}

.modern-filter-title {
    color: var(--brand-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.modern-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.modern-product-item {
    background: var(--modern-accent);
    border: 1px solid var(--modern-secondary);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.modern-product-item > a {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.modern-product-item > a > .p-4 {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 110px;
}

.modern-product-item > a > .p-4 h5 {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.4;
    flex: 1;
    margin-bottom: 0.5rem;
}

.modern-product-item > a > .p-4 .h5 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: auto;
    display: block;
}

.modern-product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
    color: inherit;
    text-decoration: none;
}

.modern-product-image {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.modern-out-of-stock {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.modern-pagination {
    background: var(--modern-accent);
    border-radius: 25px;
    padding: 0.5rem;
}

.modern-page-link {
    background: transparent;
    border: none;
    color: var(--modern-text);
    padding: 0;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    min-width: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    line-height: 1;
}

.modern-pagination .page-item {
    display: flex;
    align-items: center;
}

.modern-page-link:hover {
    background: var(--brand-color) !important;
    color: white !important;
}

.modern-page-link.active {
    background: var(--brand-color) !important;
    color: white !important;
}

.modern-page-link:focus-visible {
    outline: 2px solid var(--brand-color);
    outline-offset: 2px;
}

.modern-product-item:focus-within {
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.quantity-btn .btn:focus,
.quantity-btn .btn:focus-visible {
    box-shadow: none !important;
    outline: none !important;
}