/* ========================================
   PRODUCT & TREATMENT CARDS BUNDLE
   Optimized CSS for product and treatment displays
   ======================================== */

/* PRODUCT GRID ALIGNMENT */
.papular-block.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.papular-block .col-md-3 {
    display: flex;
    margin-bottom: 30px;
}

.papular-block .item {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.papular-block .item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.papular-block .item-img {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.papular-block .item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.4s ease-in-out;
}

.papular-block .item:hover .item-img img {
    transform: scale(1.05);
}

.papular-block .item-name {
    padding: 20px 15px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100px;
}

.papular-block .item-name a {
    font-size: 16px;
    font-weight: 600;
    color: #2d3a4b;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    line-height: 1.4;
}

.papular-block .item-name a:hover {
    color: #49a01b;
}

.papular-block .item-name p {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.papular-block .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(73, 160, 27, 0.9);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.papular-block .item:hover .overlay {
    opacity: 1;
}

.papular-block .overlay .inn a {
    background: #2d3a4b;
    color: #fff;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    line-height: 45px;
    display: inline-block;
    text-align: center;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.papular-block .overlay .inn a:hover {
    background: #49a01b;
    color: #2d3a4b;
    transform: scale(1.1);
}

/* PRODUCT CARDS SPECIFIC */
.papular-block .item .product-short-desc {
    font-size: 13px;
    line-height: 1.4;
    color: #666;
    margin-bottom: 5px;
    min-height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.papular-block .item .btn-see-more {
    font-size: 11px;
    color: #49a01b;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-top: 0;
    margin-bottom: 3px;
    transition: all 0.3s ease;
}

.papular-block .item .btn-see-more:hover {
    color: #2d3a4b;
    text-decoration: none;
}

.papular-block .item .product-action-section {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 8px 10px !important;
    margin-top: 3px !important;
    gap: 15px !important;
    visibility: visible !important;
    background: transparent !important;
}

.papular-block .item .product-action-section .price {
    font-size: 18px !important;
    font-weight: bold !important;
    color: #2c5f2d !important;
    white-space: nowrap !important;
    text-align: left !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    background: transparent !important;
}

.papular-block .item .product-action-section .price small {
    font-size: 13px !important;
    color: #2c5f2d !important;
}

.papular-block .item .product-action-section .btn-primary {
    background: #2d3a4b !important;
    border: 2px solid #2d3a4b !important;
    color: #fff !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    padding: 4px 10px !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-align: center;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.papular-block .item .product-action-section .btn-primary i {
    font-size: 10px;
    margin-right: 3px;
}

.papular-block .item .product-action-section .btn-primary:hover {
    background: #49a01b !important;
    border-color: #49a01b !important;
    color: #2d3a4b !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(73, 160, 27, 0.3);
}

/* TREATMENT CARDS SPECIFIC */
.papular-block.teatmentrow .item-name {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    padding: 15px 10px 5px;
}

.papular-block.teatmentrow .item-name a {
    font-size: 18px;
    font-weight: bold;
    color: #2d3a4b;
    margin-bottom: 10px;
    display: block;
    line-height: 1.3;
}

.treatment-short-desc {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin-bottom: 5px;
    min-height: 60px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.treatment-booking-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    margin-top: 5px;
    gap: 10px;
}

.papular-block.teatmentrow .price {
    font-size: 18px !important;
    font-weight: bold !important;
    color: #2c5f2d !important;
    white-space: nowrap;
    flex: 0 0 35%;
    text-align: left;
}

.papular-block.teatmentrow .price small {
    font-size: 13px !important;
    color: #2c5f2d !important;
}

.papular-block.teatmentrow .btn-primary {
    background: #2d3a4b !important;
    border: 2px solid #2d3a4b !important;
    color: #fff !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    padding: 5px 8px !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

.papular-block.teatmentrow .btn-primary i {
    font-size: 10px;
    margin-right: 3px;
}

.papular-block.teatmentrow .btn-primary:hover {
    background: #49a01b !important;
    border-color: #49a01b !important;
}
    transition: all 0.3s ease;
    white-space: nowrap;
    flex: 0 0 50%;
    text-align: center;
}

.papular-block.teatmentrow .btn-primary:hover {
    background: #49a01b !important;
    border-color: #49a01b !important;
    color: #2d3a4b !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(73, 160, 27, 0.3);
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .papular-block .col-md-3 {
        width: 33.333%;
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
    
    .papular-block .item-img {
        height: 250px;
    }
}

@media (max-width: 767px) {
    .papular-block .col-md-3 {
        width: 50%;
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .papular-block .item-img {
        height: 220px;
    }
    
    .papular-block .item-name {
        padding: 15px 10px;
        min-height: 80px;
    }
    
    .treatment-booking-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .papular-block.teatmentrow .btn-primary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .papular-block .col-md-3 {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .papular-block .item-img {
        height: 280px;
    }
}
