/* Product Catalog Styles - 3 columns x 2 rows layout */

/* Hero section adjustments for catalog */
.hero-section.hero-no-mobile-image {
    position: relative;
    overflow: hidden;
}

/* Product catalog grid - 3 columns layout */
@media (min-width: 1200px) {
    /* 3 columns on extra large screens */
    .ltn__product-area .col-xl-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    /* 3 columns on large screens */
    .ltn__product-area .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    /* 2 columns on tablets */
    .ltn__product-area .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 767px) {
    /* 1 column on mobile */
    .ltn__product-area .col-sm-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Let medication-card.css styles apply - just ensure proper positioning */
.ltn__product-area .product-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    right: auto;
    z-index: 10;
}

/* Card styling to match reference images */
.ltn__product-item-3 {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease;
    height: auto;
    min-height: 420px;
    display: flex;
    flex-direction: column;
}

.ltn__product-item-3:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* Force image container to behave like grid system */
.ltn__product-item-3 .product-img {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

/* Force all images to same constraints */
.ltn__product-item-3 .product-img img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

.ltn__product-item-3 .product-img:hover img {
    transform: scale(1.05);
}


/* Product hover actions */
.product-hover-action {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ltn__product-item:hover .product-hover-action {
    opacity: 1;
}

.product-hover-action ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
}

.product-hover-action a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.product-hover-action a:hover {
    background: #007bff;
    color: white;
    transform: scale(1.1);
}

/* Make product info flexible to fill space */
.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Product title styling */
.product-title a {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.2;
}

.product-title a:hover {
    color: #2c3e50;
    text-decoration: none;
}

/* Medication dividers */
.medication-divider {
    border: none;
    height: 1px;
    background: #e9ecef;
    margin: 10px 0;
}

/* Medication-specific content styles */
.medication-component {
    color: #6c757d;
    font-size: 14px;
    margin: 8px 0 15px 0;
    font-style: normal;
}

.medication-component p {
    margin-bottom: 0;
}

/* Medication specs with divider line */
.medication-specs-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 0 15px 0;
    font-size: 11px;
    color: #6c757d;
    padding: 0 10px;
}

.concentration-detail {
    text-align: left;
    flex: 1;
}

.formulation-detail {
    text-align: right;
    flex: 1;
}

/* Price styling with smaller symbols */
.product-price {
    margin-bottom: 20px;
    white-space: nowrap;
}

.price-main {
    font-size: 28px;
    font-weight: 700;
    color: #17a2b8;
    display: inline-block;
    line-height: 1;
}

.price-main .currency-symbol {
    font-size: 18px;
    vertical-align: top;
    margin-right: 2px;
}

.price-main .currency-code {
    font-size: 16px;
    font-weight: 500;
    margin-left: 4px;
}

.price-old {
    font-size: 16px;
    color: #6c757d;
    margin-left: 10px;
}

.price-old .currency-symbol {
    font-size: 14px;
}

/* Action buttons like reference images */
.medication-action-buttons {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.btn-medication-action {
    flex: 1;
    background: #17a2b8;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    font-size: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    line-height: 1.2;
}

.btn-medication-action:hover {
    background: #138496;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Hide hover actions to match reference design */
.product-hover-action {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 1199px) {
    .ltn__product-item-3 .product-img {
        height: 200px;
        padding: 10px;
    }
    
    .ltn__product-item-3 .product-img img {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 991px) {
    .ltn__product-item-3 .product-img {
        height: 180px;
        padding: 8px;
    }
    
    .ltn__product-item-3 .product-img img {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 767px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .ltn__product-item-3 {
        padding: 15px;
    }
    
    .ltn__product-item-3 .product-img {
        height: 160px;
        padding: 10px;
    }
    
    .ltn__product-item-3 .product-img img {
        width: 120px;
        height: 120px;
    }
    
    .product-title a {
        font-size: 16px;
    }
    
    .price-main {
        font-size: 24px;
    }
    
    .medication-action-buttons {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 576px) {
    .ltn__product-area .ltn__product-item-3 {
        max-width: 400px;
        margin: 0 auto 30px auto;
    }
}

/* Section subtitle styling */
.section-subtitle-2 {
    padding: 15px 30px;
    border-radius: 25px;
    margin: 0 auto;
}

/* Container adjustments */
.container-fluid .row.justify-content-center {
    max-width: 1400px;
    margin: 0 auto;
}

/* Ensure proper spacing */
.ltn__product-area.mb-120 {
    margin-bottom: 120px;
}

.ltn__product-area.mt-25 {
    margin-top: 25px;
}