/* Product Card Styles */
.product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.product-image-container {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    background: #f5f5f5;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-skeleton {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.product-title {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    margin-bottom: 10px;
    transition: color 0.2s ease;
}

.product-title:hover {
    color: #666;
}

.product-category {
    color: #666;
    font-size: 0.875rem;
    margin: 4px 0;
    cursor: pointer;
}


.wishlist-icon {
    border: 0;
    background: transparent;
    color: #ff4d6d;
    width: 18px;
    height: 18px;
    min-width: 18px;  
    min-height: 18px;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: inline-flex;       
    align-items: center;
    justify-content: center;
}

.wishlist-icon:hover {
    transform: scale(1.2);
}

.price-current {
    font-weight: 800 !important;
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.price-old {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* Button Styles */
.product-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.add-cart-btn {
    color: var(--cartBtnText, #fff);
    background: var(--cartBtnBg, #000);
}

.add-cart-btn:hover {
    color: var(--cartBtnHoverText, #fff);
    background: var(--cartBtnHoverBg, #333);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.add-cart-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.buy-btn {
    color: var(--buyBtnText, #fff);
    background: var(--buyBtnBg, #000);
}

.buy-btn:hover {
    color: var(--buyBtnHoverText, #fff);
    background: var(--buyBtnHoverBg, #333);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.buy-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Responsive Design */
@media (min-width: 601px) and (max-width: 790px) {
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

@media only screen and (max-width: 500px) {
    .product-btn {
        font-size: 12px;
        padding: 6px 8px;
    }
}

@media (min-width: 1001px) and (max-width: 1024px) {
    .product-btn {
        font-size: 12px;
    }
}

@media (min-width: 701px) and (max-width: 724px) {
    .product-btn {
        font-size: 12px;
    }
}

@media (min-width: 601px) and (max-width: 630px) {
    .product-btn {
        font-size: 12px;
    }
}

@media only screen and (max-width: 393px) {
    .product-btn {
        font-size: 11px;
        padding: 6px 6px;
    }
}