/* UI Polish - Products Page Refinements */

/* Catalog Shell Improvements */
.catalog-shell {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

/* Enhanced Catalog Header */
.catalog-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.catalog-header h1 {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #0066FF 0%, #00CC88 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.catalog-header p {
    color: #64748B;
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Enhanced Filter Panel */
.catalog-filter-panel {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 100px;
    transition: all 0.2s ease;
}

.catalog-filter-panel:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.filter-section {
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid #F1F5F9;
}

.filter-section.pt-0 {
    padding-top: 0;
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Enhanced Product Grid Spacing */
.grid-modern {
    display: grid;
    gap: 2rem;
}

/* Enhanced Product Cards */
.product-card-modern {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-color: #0066FF;
}

.product-image-wrapper {
    position: relative;
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
    overflow: hidden;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.card-content-modern {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-category {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: linear-gradient(135deg, #E6F2FF 0%, #D1FAE5 100%);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #0066FF;
    margin-bottom: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.card-title-modern {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    flex-grow: 1;
}

.card-title-modern a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.card-title-modern a:hover {
    color: #0066FF;
}

.card-text-modern {
    font-size: 0.875rem;
    color: #64748B;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.card-price-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.price-current {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0066FF 0%, #00CC88 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced Buttons */
.btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-gradient-blue,
.btn-gradient {
    background: linear-gradient(135deg, #0066FF 0%, #00CC88 100%);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-gradient-blue:hover,
.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 102, 255, 0.3);
    color: white;
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.w-full {
    width: 100%;
}

/* Results Header Polish */
.results-header {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 1.25rem 1.75rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.results-header h5 {
    font-weight: 700;
    color: #0F172A;
    font-size: 1.05rem;
    margin: 0;
}

.sort-dropdown {
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 0.625rem 2.5rem 0.625rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0F172A;
    cursor: pointer;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230F172A' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    appearance: none;
    transition: all 0.2s ease;
}

.sort-dropdown:hover,
.sort-dropdown:focus {
    border-color: #0066FF;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

/* Badge Positioning */
.badge-position {
    position: absolute;
    z-index: 10;
}

.badge-position.left {
    top: 1rem;
    left: 1rem;
}

.badge-position.right {
    top: 1rem;
    right: 1rem;
}

.badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.badge-blue {
    background: linear-gradient(135deg, #0066FF 0%, #00CC88 100%);
    color: white;
}

.badge-gold {
    background: linear-gradient(135deg, #FFD700 0%, #FFD700 100%);
    color: #0F172A;
}

/* Form Control Enhancements */
.form-control,
.form-select {
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    color: #0F172A;
    transition: all 0.2s ease;
    background-color: #ffffff;
}

.form-control:focus,
.form-select:focus {
    border-color: #0066FF;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.form-control::placeholder {
    color: #94A3B8;
}