/* ================================
   Catalog Page V2 (Renovyte)
   ================================ */

.catalog-container {
    display: flex;
    max-width: 1400px;
    margin: var(--space-8) auto;
    padding: 0 var(--space-4);
    gap: var(--space-8);
}

/* Machined Sidebar */
.catalog-sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* Hero Filter Section */
.filter-section-hero {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border: none;
    color: white;
    padding: var(--space-6);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.filter-section-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.filter-hero-content {
    position: relative;
    z-index: 1;
}

.filter-hero-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-3);
    opacity: 0.9;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.filter-hero-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: var(--space-2);
    letter-spacing: 0.5px;
}

.filter-hero-subtitle {
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.95;
    line-height: 1.5;
}

.filter-section {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: var(--space-5);
    margin-bottom: var(--space-4);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.filter-section:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-color: rgba(184, 134, 11, 0.2);
}

.filter-header {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: var(--space-5);
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: var(--space-3);
    border-bottom: 2px solid rgba(184, 134, 11, 0.15);
}

.filter-header i {
    color: var(--accent-primary);
    font-size: 1.1rem;
}

.filter-group {
    margin-bottom: var(--space-5);
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: var(--space-3);
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-label i {
    color: var(--accent-primary);
    font-size: 0.9rem;
}

/* Select Wrapper for Modern Look */
.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-primary);
    pointer-events: none;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.select-wrapper:hover::after {
    transform: translateY(-50%) scale(1.2);
}

/* Premium Select Styles */
.filter-select {
    width: 100%;
    background: linear-gradient(to bottom, #FFFFFF 0%, #F8F8FA 100%);
    border: 2px solid rgba(0, 0, 0, 0.08);
    padding: 14px 40px 14px 18px;
    border-radius: 12px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    appearance: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.filter-select:hover {
    background: #FFFFFF;
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.15);
}

.filter-select:focus {
    border-color: var(--accent-primary);
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(184, 134, 11, 0.1);
    outline: none;
    transform: translateY(-2px);
}

.filter-select:disabled {
    background: #F0F0F2;
    border-color: rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

/* Enhanced Filter Buttons */
.filter-search-btn,
.filter-reset-btn {
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: var(--space-4);
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.filter-search-btn {
    background: linear-gradient(135deg, var(--text-primary) 0%, #000 100%);
    color: white;
}

.filter-search-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.filter-search-btn:active {
    transform: translateY(-1px);
}

.filter-reset-btn {
    background: white;
    color: var(--text-secondary);
    border: 2px solid rgba(0, 0, 0, 0.1);
    box-shadow: none;
}

.filter-reset-btn:hover {
    background: #F8F8FA;
    color: var(--text-primary);
    border-color: rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Enhanced Category List */
.subcategory-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.subcategory-item {
    margin-bottom: var(--space-2);
}

.subcategory-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(to right, #F8F8FA 0%, #FFFFFF 100%);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.subcategory-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--accent-primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.subcategory-link:hover::before {
    transform: scaleY(1);
}

.subcategory-link i:first-child {
    color: var(--accent-primary);
    font-size: 1rem;
}

.subcategory-link span {
    flex: 1;
}

.subcategory-link i:last-child {
    color: var(--text-secondary);
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.subcategory-link:hover {
    background: white;
    border-color: var(--accent-primary);
    color: var(--text-primary);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.15);
}

.subcategory-link:hover i:last-child {
    transform: translateX(3px);
}

/* Product Grid V2 */
.catalog-main {
    flex: 1;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-4);
}

.product-card {
    background: var(--bg-surface);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    animation: fadeInScale 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) both;
    min-height: 360px; /* Shorter for mobile density */
}

@media (min-width: 769px) {
    .product-card {
        min-height: 480px; /* Taller on desktop */
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 0 0 1.5px var(--accent-primary);
    z-index: 10;
}

.product-image-wrapper {
    position: relative;
    aspect-ratio: 1 / 1; /* Fixed aspect ratio */
    background: #F8F8FA; /* Light gray background */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px; /* Internal padding so products don't touch edges */
    overflow: hidden;
    max-height: 180px; /* Cap height for mobile density - Jumia/Amazon style */
}

@media (min-width: 769px) {
    .product-image-wrapper {
        max-height: none; /* Remove cap on desktop */
    }
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Maintain aspect ratio, no distortion */
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card:hover .product-image {
    transform: scale(1.1) rotate(2deg);
}

/* Quick Action Icons (Top-Right Overlay) */
.product-quick-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-quick-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: var(--text-secondary);
}

.product-quick-btn:hover {
    background: white;
    color: var(--accent-primary);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-quick-btn i {
    font-size: 0.9rem;
}

/* Make entire card tappable */
.product-card {
    cursor: pointer;
}

.product-card:active {
    transform: scale(0.98);
}

.product-details {
    padding: 16px;
    background: white;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex: 1; /* Take remaining space */
}

.product-category {
    font-size: 11px; /* Apple/Shopify standard */
    color: #6B7280; /* Muted gray */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px; /* Tighter spacing */
    margin-bottom: 6px;
    display: block;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-category:hover {
    color: var(--accent-primary, #B8860B);
    text-decoration: underline;
}

.product-title {
    font-family: var(--font-display);
    font-size: 15px; /* Standard readable size */
    font-weight: 600; /* Semi-bold */
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
    height: 2.8em; /* Fixed height for 2 lines */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Max 2 lines */
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .product-title {
        font-size: 14px; /* Slightly smaller on mobile */
    }
}

.product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto; /* Push to bottom */
    padding-top: 8px;
}

.product-price {
    font-size: 16px; /* Standard e-commerce pricing */
    font-weight: 700; /* Bold */
    color: var(--text-primary);
    font-family: var(--font-display);
    line-height: 1;
}

@media (max-width: 768px) {
    .product-price {
        font-size: 15px; /* Slightly smaller on mobile */
    }
}

/* Mobile Filter UI */
.mobile-filter-trigger {
    display: none;
    position: sticky;
    top: 70px;
    /* Below navbar */
    left: 0;
    width: 100%;
    z-index: 90;
    padding: 10px var(--space-4);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-filter-toggle {
    width: 100%;
    height: 48px;
    /* Standard 48px tap target */
    background: var(--text-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.filter-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2500;
    /* Between trigger and drawer */
    backdrop-filter: blur(4px);
}

.filter-backdrop.active {
    display: block;
}

/* Mobile Adjustments */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 992px) {
    .mobile-filter-trigger {
        display: block;
    }

    .catalog-container {
        flex-direction: column;
        margin-top: 0;
    }

    .catalog-sidebar {
        position: fixed;
        top: 0;
        left: -350px;
        /* Wider hide to be safe */
        width: 340px;
        max-width: 85vw;
        height: 100vh;
        z-index: 3000;
        background: white;
        padding: var(--space-10) var(--space-4) var(--space-4);
        box-shadow: 20px 0 50px rgba(0, 0, 0, 0.15);
        transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        overflow-y: auto;
        visibility: hidden;
    }

    .catalog-sidebar.active {
        transform: translateX(350px);
        visibility: visible;
    }

    .filter-close-btn {
        display: flex;
        position: absolute;
        top: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        background: var(--bg-primary);
        color: var(--text-primary);
        border: 1px solid var(--border-color);
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 10;
        font-size: 1.2rem;
        transition: all 0.2s;
    }

    .filter-close-btn:hover {
        background: var(--accent-primary);
        color: white;
    }

    .catalog-main {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .product-card {
        border-radius: 0;
        border-right: none;
        border-left: none;
        width: 100%;
        max-width: 100%;
    }

    .catalog-container {
        padding: 0;
    }
}

/* ── Mobile: icon actions always visible, card tappable ── */
@media (hover: none),
(max-width: 992px) {
    .product-quick-actions {
        opacity: 1; /* Always visible on mobile */
    }
    
    .product-card:active {
        transform: scale(0.98);
    }
    
    .product-quick-btn:active {
        transform: scale(0.95);
    }
}


/* ================================
   Premium Search & Header V3
   ================================ */

.catalog-header {
    margin-bottom: var(--space-8);
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.breadcrumb-item a {
    color: var(--text-secondary);
    transition: color 0.2s;
}

.breadcrumb-item a:hover {
    color: var(--accent-primary);
}

.breadcrumb-item.active {
    color: var(--accent-primary);
}

.breadcrumb-item+.breadcrumb-item::before {
    content: '/';
    margin-right: 10px;
    opacity: 0.3;
}

/* --- Search Container V3 --- */
.search-part-number {
    max-width: 850px;
    margin: 0 auto;
    width: 100%;
}

.search-container-v3 {
    display: flex;
    align-items: center;
    background: white;
    padding: 8px;
    border-radius: 60px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.search-container-v3::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(184, 134, 11, 0.05),
            transparent);
    transition: left 0.6s ease-in-out;
}

.search-container-v3:hover::before {
    left: 100%;
}

.search-container-v3:focus-within {
    box-shadow: 0 25px 60px rgba(184, 134, 11, 0.15);
    border-color: var(--accent-primary);
    transform: scale(1.01);
}

.search-icon-v3 {
    margin-left: 25px;
    color: var(--accent-primary);
    font-size: 1.2rem;
    filter: drop-shadow(0 0 5px rgba(184, 134, 11, 0.2));
}

.search-part-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 15px 25px;
    font-family: var(--font-primary);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-primary);
    outline: none;
}

.search-part-input::placeholder {
    color: var(--text-secondary);
    font-family: var(--font-display);
    opacity: 0.5;
    letter-spacing: 0.5px;
}

.search-divider-v3 {
    width: 1px;
    height: 30px;
    background: rgba(0, 0, 0, 0.06);
    margin: 0 15px;
}

.search-btn-v3 {
    background: var(--text-primary);
    color: white;
    border: none;
    padding: 14px 35px;
    border-radius: 50px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.search-btn-v3::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: -1;
}

.search-btn-v3:hover {
    color: white;
    box-shadow: 0 10px 25px rgba(184, 134, 11, 0.4);
}

.search-btn-v3:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.search-btn-v3 i {
    font-size: 1rem;
    transition: transform 0.4s ease;
}

.search-btn-v3:hover i {
    transform: translateX(5px) rotate(-10deg);
}

/* --- Trending Tags V3 --- */
.trending-tags {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding: 0 30px;
    flex-wrap: wrap;
    animation: fadeInSlideUp 0.8s ease backwards 0.2s;
}

@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.trending-tags span {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 1.5px;
    opacity: 0.7;
}

.trending-tag {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.04);
    padding: 6px 16px;
    border-radius: 30px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.trending-tag:hover {
    background: white;
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(184, 134, 11, 0.1);
}

/* View Options Refinement */
.view-options {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    padding: 5px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    align-self: flex-end;
}

.view-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
}

.view-btn.active {
    background: var(--text-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.view-btn:hover:not(.active) {
    color: var(--accent-primary);
    background: rgba(184, 134, 11, 0.05);
}

@media (max-width: 768px) {
    .search-container-v3 {
        border-radius: 20px;
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }

    .search-icon-v3 {
        display: none;
    }

    .search-divider-v3 {
        display: none;
    }

    .search-btn-v3 {
        width: 100%;
        justify-content: center;
    }

    .trending-tags {
        justify-content: center;
        padding: 0;
    }
}

/* ================================
   Results Toolbar
   ================================ */
.results-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    gap: 16px;
    flex-wrap: wrap;
}

.results-count {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.results-count strong {
    color: var(--text-primary);
    font-weight: 800;
}

.results-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-select {
    background: #F8F8FA;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 8px 36px 8px 14px;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%23B8860B' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: all 0.2s ease;
}

.sort-select:hover,
.sort-select:focus {
    border-color: var(--accent-primary);
    background-color: #FFFFFF;
    outline: none;
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}

/* In-Stock Badge - Bottom Left of Card */
.product-stock-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(39, 174, 96, 0.12);
    color: #27AE60;
    border: 1px solid rgba(39, 174, 96, 0.25);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 3;
    white-space: nowrap;
}

/* ================================
   Star Ratings Row
   ================================ */
.product-rating-row {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 20px; /* Fixed height - Apple/Shopify standard */
    margin-bottom: 8px;
}

.product-stars {
    font-size: 13px;
    color: var(--accent-primary);
    letter-spacing: 1px;
    line-height: 1;
}

.product-review-count {
    font-size: 12px;
    color: #6B7280; /* Muted gray */
    font-weight: 500;
    line-height: 1;
    white-space: nowrap; /* Never wrap */
}

/* ================================
   Wishlist Button on Cards
   ================================ */
.product-wishlist-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: white;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.product-wishlist-btn:hover,
.product-wishlist-btn.active {
    color: #e74c3c;
    border-color: rgba(231, 76, 60, 0.3);
    background: rgba(231, 76, 60, 0.06);
    transform: scale(1.1);
}

/* Also ensure price row stays aligned */
.product-price-row {
    align-items: center;
}

/* ================================
   Active Filter Chips
   ================================ */
.active-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px 0;
    margin-bottom: 4px;
}

.active-filters-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.active-filter-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(184, 134, 11, 0.08);
    border: 1px solid rgba(184, 134, 11, 0.25);
    color: var(--text-primary);
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    animation: chipSlideIn 0.2s ease;
}

@keyframes chipSlideIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.chip-remove {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.75rem;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.chip-remove:hover {
    color: #e74c3c;
}

.clear-all-filters {
    background: none;
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.clear-all-filters:hover {
    background: rgba(231, 76, 60, 0.08);
    border-color: #e74c3c;
}

/* ================================
   Compatibility Banner
   ================================ */
.compat-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 25px;
    border-radius: 16px;
    margin-bottom: var(--space-6);
    animation: slideInDown 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) both;
    font-size: 0.95rem;
    line-height: 1.5;
    border: 1px solid transparent;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.compat-banner i:first-child {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.compat-banner--info {
    background: rgba(184, 134, 11, 0.05);
    border-color: rgba(184, 134, 11, 0.2);
    color: var(--text-primary);
}

.compat-banner--info i:first-child {
    color: var(--accent-primary);
}

.compat-banner--warning {
    background: rgba(192, 57, 43, 0.04);
    border-color: rgba(192, 57, 43, 0.15);
    color: #c0392b;
}

.compat-banner--warning i:first-child {
    color: #c0392b;
}

.compat-banner div {
    flex: 1;
}

.compat-banner a {
    color: inherit;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.compat-banner a:hover {
    color: var(--accent-primary);
    opacity: 0.8;
}

.compat-banner--warning strong {
    font-weight: 900;
    display: block;
    margin-bottom: 2px;
}

@media (max-width: 768px) {
    .compat-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 18px;
        font-size: 0.85rem;
    }
}


/* ================================
   List View Styles
   ================================ */

#productGrid.list-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#productGrid.list-view .product-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    max-width: 100%;
    height: auto;
    padding: 20px;
}

#productGrid.list-view .product-img-wrap {
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    margin-right: 24px;
}

#productGrid.list-view .product-img {
    width: 100%;
    height: 100%;
}

#productGrid.list-view .product-info {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#productGrid.list-view .product-category {
    margin-bottom: 4px;
}

#productGrid.list-view .product-name {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

#productGrid.list-view .product-rating {
    margin-bottom: 8px;
}

#productGrid.list-view .product-price {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

#productGrid.list-view .product-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

#productGrid.list-view .product-actions {
    margin-top: auto;
    display: flex;
    gap: 12px;
}

@media (max-width: 768px) {
    #productGrid.list-view .product-card {
        flex-direction: column;
        text-align: center;
    }
    
    #productGrid.list-view .product-img-wrap {
        margin-right: 0;
        margin-bottom: 16px;
        width: 120px;
        height: 120px;
    }
    
    #productGrid.list-view .product-info {
        text-align: center;
    }
    
    #productGrid.list-view .product-actions {
        justify-content: center;
    }
}

/* ===========================
   GLOBAL IMAGE OUTLINE REMOVAL
   Remove all outlines from product images
   =========================== */
.product-card,
.product-card img,
.product-img-wrap,
.product-img-wrap img,
.product-img,
.related-product-card,
.related-product-card img,
.featured-img-wrap,
.featured-img-wrap img,
.deal-card img {
    border: 0 !important;
    border-width: 0 !important;
    outline: 0 !important;
    outline-width: 0 !important;
    outline-style: none !important;
    outline-color: transparent !important;
    box-shadow: none !important;
}
