/**
 * Best Sellers Grid Styles
 * Matches the Home Creative mockup design
 */

/* Best Sellers Section Container */
.best-sellers-section {
    background: #f9f9f9;
    padding: 4rem 2rem;
}

/* Category Filters */
.best-sellers-categories {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    margin: 2rem 0 3rem;
    flex-wrap: wrap;
}

.category-filter {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #1a1a1a;
    text-decoration: none;
    padding-bottom: 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-filter:hover {
    color: #d4145a;
}

.category-filter.active {
    color: #1a1a1a;
    border-bottom: 2px solid #d4145a;
    padding-bottom: 0.25rem;
}

/* Best Sellers Grid */
.best-sellers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Product Card */
.best-sellers-product-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.best-sellers-product-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

/* Product Image */
.product-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* 1:1 aspect ratio */
    background: #f5f5f5;
    overflow: hidden;
}

.product-image-wrapper a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.best-sellers-product-card:hover .product-image {
    transform: scale(1.05);
}

.placeholder-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-image::after {
    content: 'No Image';
    color: #999;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Product Separator */
.product-separator {
    margin: 0;
    border: none;
    border-top: 1px solid #e0e0e0;
}

/* Product Info */
.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    text-align: left;
}

.product-name {
    /*font-family: 'Poppins', sans-serif;*/
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0 0 0.5rem;
    color: #1a1a1a;
    line-height: 1.4;
}

.product-category {
    font-family: 'Roboto', sans-serif;
    font-size: 1.0rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
    color: black;
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 0.75rem;
    padding: 0 1.5rem 1.5rem;
}

.btn-showroom,
.btn-wishlist {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #6B7280;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #fff;
    flex-shrink: 0;
}

.btn-showroom:hover,
.btn-wishlist:hover {
    background: #4B5563;
    transform: scale(1.1);
}

.btn-showroom:disabled,
.btn-wishlist:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    opacity: 0.5;
}

.btn-showroom:disabled:hover,
.btn-wishlist:disabled:hover {
    transform: none;
}

.btn-wishlist.added {
    background: #d4145a;
    animation: pulse 0.6s ease;
}

.btn-wishlist.added svg {
    fill: #fff;
}

/* In Wishlist State - Persistent Highlight */
.btn-wishlist.in-wishlist {
    background: #d4145a;
}

.btn-wishlist.in-wishlist svg {
    fill: #fff;
}

.btn-wishlist.in-wishlist:hover {
    background: #b01149;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Loading State */
.best-sellers-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem;
    font-size: 1.1rem;
    color: #666;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .best-sellers-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .best-sellers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .best-sellers-categories {
        gap: 1rem;
        font-size: 0.8rem;
    }

    .category-filter {
        font-size: 0.8rem;
    }

    .product-name {
        font-size: 0.9rem;
    }

    .product-category {
        font-size: 0.75rem;
    }

    .btn-showroom,
    .btn-wishlist {
        width: 38px;
        height: 38px;
    }

    .btn-showroom svg,
    .btn-wishlist svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .best-sellers-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .best-sellers-section {
        padding: 3rem 1rem;
    }

    .best-sellers-categories {
        gap: 0.75rem;
    }
}


/* Accessibility */
/*
.btn-showroom:focus,
.btn-wishlist:focus {
    outline: 2px solid #d4145a;
    outline-offset: 2px;
}

.category-filter:focus {
    outline: 2px solid #d4145a;
    outline-offset: 4px;
}
*/