/* Sportie Revival - Premium Styles */

:root {
    --premium-green: #144D17; /* More sophisticated, deeper green */
    --premium-green-light: #237A27;
    --premium-accent: #E31E30; /* Sportie Red */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.5);
    --premium-shadow: 0 10px 30px rgba(0, 0, 0, 0.06), 0 4px 6px rgba(0, 0, 0, 0.02);
    --premium-shadow-hover: 0 30px 60px -12px rgba(0, 0, 0, 0.12);
    --premium-black: #0B0B0B;
    --premium-gray: #6E6E73; /* Apple-style Gray */
    --premium-bg-light: #FBFBFB;
    --premium-transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Category Filter Revamp */
.premium-sidebar {
    border: 1px solid var(--glass-border) !important;
    background: var(--glass-bg) !important;
    backdrop-filter: blur(25px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(200%) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04) !important;
    border-radius: 28px !important;
}

/* Sidebar Header */
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 15px;
    margin-bottom: 10px;
}

.sidebar-header h5 {
    font-size: 1.1rem;
    color: var(--premium-black);
    letter-spacing: -0.5px;
}

.clear-filters {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--premium-gray) !important;
    transition: var(--premium-transition);
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(0,0,0,0.03);
}

.clear-filters:hover {
    color: var(--premium-black) !important;
    background: rgba(0,0,0,0.06);
    transform: translateY(-1px);
}

.premium-accordion .accordion-item {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(0,0,0,0.03) !important;
    margin-bottom: 0 !important;
    border-radius: 0 !important;
}

.premium-accordion .accordion-item:last-child {
    border-bottom: none !important;
}

.premium-accordion .accordion-button {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--premium-black);
    padding: 20px 0;
    letter-spacing: -0.2px;
    box-shadow: none !important;
}

.premium-accordion .accordion-button:not(.collapsed) {
    color: var(--premium-green);
    background: transparent;
    padding-bottom: 10px;
}

.premium-accordion .accordion-button::after {
    background-size: 10px;
    width: 10px;
    height: 10px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Filter Pills */
.filter__options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.filter__pill {
    display: inline-block;
}

.filter__pill .btn-check + .btn-outline-dark {
    border: 1px solid #E5E5E7;
    background: #ffffff;
    color: #1D1D1F;
    font-size: 0.82rem;
    padding: 8px 18px;
    font-weight: 500;
    border-radius: 12px !important;
    transition: var(--premium-transition);
}

.filter__pill:hover .btn-outline-dark {
    transform: translateY(-2px);
    border-color: #C1C1C1;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.filter__pill .btn-check:checked + .btn-outline-dark {
    background-color: var(--premium-green);
    border-color: var(--premium-green);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 8px 16px rgba(20, 77, 23, 0.15);
}

/* Scrollbar Refinement */
.filter-scroll {
    max-height: 220px;
    overflow-y: auto;
    padding-right: 8px;
}

.filter-scroll::-webkit-scrollbar {
    width: 3px;
}

.filter-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.filter-scroll::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 10px;
}

.filter-scroll::-webkit-scrollbar-thumb:hover {
    background: #cccccc;
}

/* Product Card Premium Styles */
/* Product Card Premium Styles */
.product-card {
    display: block;
    text-decoration: none !important;
    background: #fff;
    border-radius: 24px !important;
    overflow: hidden;
    transition: var(--premium-transition);
    box-shadow: var(--premium-shadow);
    border: 1px solid transparent;
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--premium-shadow-hover);
    border-color: rgba(20, 77, 23, 0.08);
}

.product-card__image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5;
    background: var(--premium-bg-light);
}

.product-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-card__image {
    transform: scale(1.08);
}

.product-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    backdrop-filter: blur(2px);
}

.product-card:hover .product-card__overlay {
    opacity: 1;
}

.product-card__content {
    padding: 20px;
    background: white;
}

.product-card__brand {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--premium-gray);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.product-card__name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--premium-black);
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    transition: color 0.3s ease;
}

.product-card:hover .product-card__name {
    color: var(--premium-green);
}

.product-card__price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 12px;
}

.product-card__price-current {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--premium-black);
}

.product-card__price-old {
    text-decoration: line-through;
    color: var(--premium-gray);
    font-size: 0.95rem;
    font-weight: 500;
}

.discount-badge-premium {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #FF3B30; /* More vibrant red */
    color: #fff;
    padding: 6px 14px;
    border-radius: 12px; /* Apple-style rounded corners */
    font-weight: 800;
    font-size: 0.85rem;
    z-index: 5;
    box-shadow: 0 4px 15px rgba(255, 59, 48, 0.3);
}

/* Category Filter Section Premium Layout */
.listing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--premium-shadow);
}

.listing-header__title {
    font-weight: 800;
    color: var(--premium-black);
    margin-bottom: 0 !important;
}

.listing-header__sorting {
    display: flex;
    align-items: center;
    gap: 20px;
}

.listing-header__count {
    font-size: 0.9rem;
    color: var(--premium-gray);
    font-weight: 500;
}

.selectbox {
    border: 1px solid #E5E5E5;
    border-radius: 12px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--premium-black);
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.selectbox:hover {
    border-color: var(--premium-green);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Sidebar Custom Scrollbar */
.premium-sidebar::-webkit-scrollbar {
    width: 4px;
}

.premium-sidebar::-webkit-scrollbar-thumb {
    background: #E5E5E5;
    border-radius: 10px;
}

/* Horizontal Product Styling (Bonus) */
.horizontal-product {
    background: white;
    border-radius: 16px;
    padding: 10px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.horizontal-product:hover {
    background: #FDFDFD;
    transform: translateX(5px);
    box-shadow: var(--premium-shadow);
    border-color: #F0F0F0;
}

.shadow-premium {
    box-shadow: var(--premium-shadow);
}

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

.product-fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
