/* ===============================================================
   Product Card Standardized Styles
   Based on sedratech.txt - Consistency and Discipline Principle
   ================================================================ */

/* Main Product Card Container */
.product-card {
    transition: all 0.3s ease;
    border: none;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* Product Image Section */
.product-image {
    position: relative;
    overflow: hidden;
    padding-top: 65%;
    flex-shrink: 0;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* Product Badges Section */
.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.badge-precent {
    background: #ff4757;
    color: white;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-block;
    margin-right: 5px;
}

.badge-new {
    background: #2ed573;
    color: white;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-block;
}

/* Product Compare/Action Button */
.product-compare {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 2;
}

/* Product Info Section */
.product-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Product Title - STRICT RULE: Same size regardless of name length */
.product-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
    line-height: 1.4;
    height: 2.8em;
    min-height: 2.8em;
    max-height: 2.8em;
}

.product-title:hover {
    color: #0289D6;
}

/* Product Price Section */
.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ff4757;
    margin-bottom: 15px;
    margin-top: auto;
}

.product-price strike {
    color: #b2bec3;
    font-size: 0.9rem;
    margin-right: 8px;
}

/* Product Actions Buttons */
.product-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.btn-buy {
    flex: 1;
    background: #0289D6;
    color: white;
    border: none;
    padding: 8px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-buy:hover {
    background: #026da8;
    transform: translateY(-2px);
}

.btn-buy:active {
    transform: translateY(0);
}

.btn-cart {
    width: 40px;
    height: 40px;
    background: #161E35;
    color: white;
    border: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
    cursor: pointer;
}

.btn-cart:hover {
    background: #0a0d19;
    transform: scale(1.05);
}

.btn-cart:active {
    transform: scale(0.95);
}

.btn-cart svg {
    transition: all 0.3s ease;
}

.btn-cart:hover svg {
    transform: scale(1.1);
}

/* Responsive Design */
@media (min-width: 992px) {
    .col-lg-2-4 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

@media (max-width: 768px) {
    .product-card {
        margin-bottom: 0.75rem;
    }
    
    .product-title {
        font-size: 0.9rem;
        height: 2.8em;
        min-height: 2.8em;
        max-height: 2.8em;
    }
    
    .product-price {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .product-info {
        padding: 12px;
    }
    
    .product-title {
        font-size: 0.85rem;
        height: 2.8em;
        min-height: 2.8em;
        max-height: 2.8em;
    }
    
    .btn-buy,
    .btn-cart {
        height: 36px;
        font-size: 0.85rem;
    }
}
