.product-card {
    border: 1px solid #000000;
    border-radius: 12px;
    padding: 15px;
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-img-action-wrap {
    position: relative;
}

.product-img {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.favorite-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #ffc107;
    background: white;
    border-radius: 50%;
    padding: 5px;
    cursor: pointer;
    border: 1px solid #eee;
    z-index: 5;
}

.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
}

.product-badges .hot {
    background-color: #ff3a28;
    color: white;
    font-size: 12px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 3px;
}

.title-marg {
    font-size: 12px;
}

.product-category p {
    color: #888;
    text-decoration: none;
    font-weight: 600;
}

.product-title {
    font-size: 14px;
    font-weight: 500;
    height: 30px;
}

.ellipsis-text {
    display: -webkit-box;          /* 1. Use old flexbox model (for compatibility) */
    -webkit-line-clamp: 2;         /* 2. Limit text to 3 lines */
    -webkit-box-orient: vertical;  /* 3. Arrange content vertically */
    overflow: hidden;              /* 4. Hide overflow */
    text-overflow: ellipsis;
    font-weight: 500;               /* Semi-bold (better than 700 for readability) */
    font-size: 12px;  
    color: #333;                    /* Dark gray (better contrast than pure black) */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; /* Modern stack */
}
.product-title a {
    color: #333;
    text-decoration: none;
}

.product-title a:hover {
    color: #f7941d;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.category-image {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden; 
    position: relative; 
    background: #f0f0f0;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}

/*
.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
} */

.current-price {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-top: 5px;
}

/* .quantity-cart-row {
    display: flex;
    align-items: center;
    gap: 10px;
} */

.quantity-input {
    width: 100%;
}

.quantity-input .qty-vals {
    width: 60%;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 0px;
    padding: 6px;
    margin: 0 -1px;
    height: 38px;
}

.quantity-input .qty-btn {
    width: 20%;
    height: 38px;
    background: #fcee1f;
    border: 1px solid #ddd;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.quantity-input .qty-btn:hover {
    background: #76787a;
}

.quantity-input .minus-btn {
    border-radius: 50px 0 0 50px;
}

/* Right Button */
.quantity-input .plus-btn {
    border-radius: 0 50px 50px 0;
}

/* Remove input number arrows */
.quantity-input input::-webkit-outer-spin-button,
.quantity-input input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.quantity-input input[type=number] {
    -moz-appearance: textfield;
}
/* .qty-vals {
    width: 100%;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px; 
} */

.add-to-cart-btn {
    /* background-color: #fcee1f; */
    background: #fcee1f;   
    border: none;
    color: black;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    transition: background-color 0.3s ease;
    flex-grow: 1;
    width: 100%;
    text-align: center;
}

.add-to-cart-btn:hover {
    /* background-color: #e78200; */
}

@media (max-width: 767px) {
    .quantity-cart-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .quantity-input {
        width: 100%;
        margin-bottom: 10px;
    }
}

.product-slider-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
}

.product-slider {
    display: flex;
    transition: transform 0.5s ease;
}

.product-slide {
    flex: 0 0 auto;
    width: calc(16.666% - 20px); /* For 6 items per view */
    margin-right: 20px;
}

.slider-navigation {
    display: flex;
    gap: 10px;
}
.slider-navigation-trending {
    display: flex;
    gap: 10px;
}

.slider-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-btn:hover:not(:disabled) {
    background-color: #f9f9f9;
    border-color: #ddd;
}

.slider-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .product-slide {
        width: calc(20% - 20px); /* 5 items per view */
    }
}

@media (max-width: 992px) {
    .product-slide {
        width: calc(25% - 20px); /* 4 items per view */
    }
}

@media (max-width: 768px) {
    .product-slide {
        width: calc(33.333% - 20px); /* 3 items per view */
    }
}

@media (max-width: 576px) {
    .product-slide {
        width: calc(50% - 20px); /* 2 items per view */
    }
}

@media (max-width: 400px) {
    .product-slide {
        width: calc(100% - 20px); /* 1 item per view */
    }
}
