/**
 * Ravian Pharmaceuticals Limited
 * Dedicated Stylesheet: products.css
 * Brand Approach: Royal Blue + Soft Warm Yellow/Gold (Airy, Light & Modern)
 */

.inner-page-hero {
    background: radial-gradient(circle at 85% 30%, rgba(245, 158, 11, 0.08) 0%, rgba(29, 78, 216, 0.06) 40%, #FFFFFF 85%);
    padding: 30px 0 30px;
    border-bottom: 1px solid var(--rp-border);
    position: relative;
    overflow: hidden;
}

.inner-breadcrumb-nav .breadcrumb {
    margin-bottom: 12px;
    background: transparent;
    padding: 0;
    font-size: 13.5px;
    font-weight: 600;
}

.inner-breadcrumb-nav .breadcrumb-item a {
    color: var(--rp-blue);
}

.inner-breadcrumb-nav .breadcrumb-item.active {
    color: var(--rp-text-muted);
}

.inner-hero-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--rp-navy);
    line-height: 1.2;
    margin-bottom: 12px;
}

.inner-hero-subtitle {
    font-size: 16.5px;
    color: var(--rp-text-muted);
    max-width: 650px;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Products Filter Bar Card */
.catalog-control-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    padding: 24px 30px;
    box-shadow: 0 8px 25px rgba(22, 51, 92, 0.06);
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

.product-search-input {
    width: 100%;
    background: #F8FAFD;
    border: 1.5px solid #E2E8F0;
    border-radius: 50px;
    padding: 8px 20px 8px 45px;
    font-size: 14px;
    color: var(--rp-text-main);
    transition: all 0.25s ease;
}

.product-search-input:focus {
    background: #FFFFFF;
    border-color: var(--rp-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.search-input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--rp-blue);
    font-size: 15px;
    pointer-events: none;
}

.dosage-select-box {
    background: #F8FAFD;
    border: 1.5px solid #E2E8F0;
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--rp-navy);
    cursor: pointer;
    transition: all 0.2s ease;
}

.dosage-select-box:focus {
    border-color: var(--rp-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

/* Category Filter Pills */
.category-filter-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #F1F5F9;
}

.cat-filter-btn {
    border-radius: var(--rp-radius-pill);
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 700;
    border: 1.5px solid #E2E8F0;
    background: #FFFFFF;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cat-filter-btn:hover,
.cat-filter-btn.active {
    background: var(--rp-blue);
    color: #FFFFFF;
    border-color: var(--rp-blue);
}

/* Product Card Styling */
.product-grid-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 18px;
    padding: 18px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 14px rgba(22, 51, 92, 0.03);
    transition: all 0.25s ease;
}

.product-grid-card:hover {
    border-color: var(--rp-blue-border);
    transform: translateY(-5px);
    box-shadow: 0 14px 35px rgba(29, 78, 216, 0.10);
}
.product-card-thumb-wrap {
    /* height: 180px; */
    /* background: #F8FAFD; */
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* padding: 16px; */
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.product-card-thumb-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.product-grid-card:hover .product-card-thumb-wrap img {
    transform: scale(1.08);
}

.prod-badge-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--rp-yellow-light);
    color: var(--rp-yellow-dark);
    border: 1px solid var(--rp-yellow-border);
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.prod-card-title {
    font-family: var(--rp-font-heading);
    font-size: 17px;
    font-weight: 800;
    color: var(--rp-navy);
    margin-bottom: 6px;
    line-height: 1.3;
}

.prod-card-salt {
    font-size: 12.5px;
    color: #475569;
    line-height: 1.45;
    margin-bottom: 10px;
    flex-grow: 1;
}

.prod-card-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #64748B;
    background: #F8FAFD;
    padding: 6px 12px;
    border-radius: 8px;
    margin-bottom: 14px;
    border: 1px solid #F1F5F9;
}

.prod-card-meta-row strong {
    color: var(--rp-navy);
}

.prod-card-btn-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}
.btn-prod-details {
    flex: 1;
    background: #fdfee2;
    color: #000;
    font-family: var(--rp-font-heading);
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--rp-radius-pill);
    border: 1px solid #f8e9bd;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}
.btn-prod-details:hover {
    background: var(--rp-blue);
    color: #FFFFFF;
}

.btn-prod-enquire-quick {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--rp-yellow);
    color: #16335C;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-prod-enquire-quick:hover {
    background: #FBBF24;
    transform: scale(1.1);
}

/* Product Detail Modal */
.product-modal-dialog {
    max-width: 700px;
}

.prod-modal-img-wrap {
    height: 260px;
    background: #F8FAFD;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 1px solid #E2E8F0;
}

.prod-modal-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Responsive */
@media (max-width: 991px) {
    .inner-hero-title {
        font-size: 24px;
    }
    .catalog-control-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    padding: 10px 8px;
    box-shadow: 0 8px 25px rgba(22, 51, 92, 0.06);
    margin-top: -30px;
    position: relative;
    z-index: 10;
}
.category-filter-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
    padding-top: 7px;
    border-top: 1px solid #F1F5F9;
}
}

/* ==========================================================================
   PRODUCT HIGHLIGHT TARGET (When called via Navbar Search Dropdown by ID)
   ========================================================================== */
@keyframes cardPulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 16px rgba(37, 99, 235, 0);
        transform: scale(1.025);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
        transform: scale(1);
    }
}

.product-card-col.product-highlight-target .product-grid-card {
    border-color: #2563EB !important;
    animation: cardPulseGlow 1.4s ease-in-out 2;
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.28) !important;
}

