/* Modern Product Grid Standard for Category Pages */
.product-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 25px;
    padding: 10px 0;
}

.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(123, 47, 247, 0.12) !important;
    border-color: rgba(123, 47, 247, 0.2);
}

.product-card-img {
    height: 240px;
    width: 100%;
    background: #fbfbfc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    position: relative;
    overflow: hidden;
}

.product-card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card:hover .product-card-img img {
    transform: scale(1.1);
}

.product-card-actions {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: 5;
    opacity: 0;
    width: fit-content;
}

.product-card:hover .product-card-actions {
    bottom: 15px;
    opacity: 1;
}

.action-icon {
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-purple);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 14px;
}

.action-icon:hover {
    background: var(--primary-purple);
    color: #fff;
    transform: scale(1.1);
}

.product-card-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
    background: #fff;
}

.product-card-category {
    font-size: 10px;
    color: var(--primary-purple);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.product-card-title {
    font-size: 13px;
    font-weight: 600;
    color: #2d3436;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 34px;
}

.product-card-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    flex-wrap: wrap;
}

.price-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.card-current-price {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}

.card-old-price {
    font-size: 11px;
    text-decoration: line-through;
    color: #a0a0a0;
}

.buy-now-btn {
    background: var(--purple-gradient);
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.buy-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(123, 47, 247, 0.2);
    filter: brightness(1.1);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--purple-gradient);
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(123, 47, 247, 0.2);
}

/* Slider Controls Inside Card */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--primary-purple);
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 11;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.product-card:hover .slider-arrow {
    opacity: 1;
}

.slider-arrow.prev { left: 8px; }
.slider-arrow.next { right: 8px; }

.slider-arrow:hover {
    background: var(--primary-purple);
    color: #fff;
}

.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 4;
}

.slider-dot {
    width: 5px;
    height: 5px;
    background: rgba(0,0,0,0.15);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--primary-purple);
    width: 12px;
    border-radius: 4px;
}

@media (max-width: 1400px) {
    .product-grid {
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 20px;
    }
}

@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 15px;
    }
}

@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
    .product-card-img {
        height: 180px;
    }
}
