/* ==========================================
   ALAKART BIO PHARMA - CATEGORY DETAIL PAGES CSS
========================================== */

/* Category Hero Section */
.category-hero {
    position: relative;
    width: 100%;
    min-height: 480px;
    display: flex;
    align-items: center;
    background-color: #0A2E22; /* Deep forest green fallback */
    background-image: 
        linear-gradient(to right, rgba(10, 46, 34, 0.95) 0%, rgba(10, 46, 34, 0.7) 100%),
        url('../assets/about-home-botanical.webp');
    background-size: cover;
    background-position: center;
    padding: 120px 0 70px;
    overflow: hidden;
}

.category-hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    color: #ffffff;
}

/* Breadcrumbs */
.category-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    font-weight: 600;
    margin-bottom: 16px;
    flex-wrap: wrap;
    color: #94a3b8;
    letter-spacing: 0.2px;
}

.category-breadcrumbs a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-breadcrumbs a:hover {
    color: #34D399;
}

.category-breadcrumbs span.separator {
    color: #64748b;
}

.category-breadcrumbs span.current {
    color: #34D399;
}

/* Hero Titles */
.category-hero h1 {
    font-size: 2.35rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    margin: 0 0 14px 0;
    letter-spacing: -0.4px;
}

.category-hero p {
    font-size: 0.96rem;
    color: #e2e8f0;
    line-height: 1.6;
    margin: 0;
    max-width: 760px;
    font-weight: 400;
}

/* ==========================================
   CATEGORY QUICK-NAV BAR (PILLS)
========================================== */
.category-nav-bar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    position: relative;
    z-index: 10;
    padding: 16px 0;
}

.category-pills-list {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
    list-style: none;
    margin: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-pills-list::-webkit-scrollbar {
    display: none;
}

.category-pill-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #475569;
    background: #f1f5f9;
    text-decoration: none;
    white-space: nowrap;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-pill-link:hover {
    background: #e2e8f0;
    color: #0F3F2F;
}

/* Active Pill Themes */
.pill-respiratory.active {
    background: #F0F9FF;
    color: #0284C7;
    border-color: #0EA5E9;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.18);
}

.pill-diabetic.active {
    background: #ECFDF5;
    color: #059669;
    border-color: #10B981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.18);
}

.pill-rasayana.active {
    background: #FFFBEB;
    color: #D97706;
    border-color: #F59E0B;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.18);
}

.pill-wellness.active {
    background: #FAF5FF;
    color: #7C3AED;
    border-color: #8B5CF6;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.18);
}

/* ==========================================
   PRODUCTS SHOWCASE GRID SECTION
========================================== */
.category-products-section {
    padding: 80px 0 120px;
    background-color: #FAF8F5; /* Warm modern apothecary foundation */
    min-height: 60vh;
}

.products-showcase-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 36px;
    align-items: stretch;
}

/* Individual Product Card */
.product-detail-card {
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 340px;
    max-width: 100%;
    margin: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-detail-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 55px rgba(15, 63, 47, 0.11);
}

/* Product Visual Showcase Box */
.product-visual-box {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
}

.visual-teal { background: radial-gradient(circle at 50% 50%, #E0F2FE, #BAE6FD); }
.visual-green { background: radial-gradient(circle at 50% 50%, #D1FAE5, #A7F3D0); }
.visual-orange { background: radial-gradient(circle at 50% 50%, #FEF3C7, #FDE68A); }
.visual-purple { background: radial-gradient(circle at 50% 50%, #EDE9FE, #DDD6FE); }

.product-img-render {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-detail-card:hover .product-img-render {
    transform: scale(1.08) translateY(-4px);
}

/* Stylized Emblem Fallback if photo not available */
.product-emblem-badge {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 54px;
    background: #ffffff;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-detail-card:hover .product-emblem-badge {
    transform: scale(1.12) rotate(8deg);
}

/* Product Card Content */
.product-info-block {
    padding: 30px 28px 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-subtag {
    display: inline-block;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    margin-bottom: 8px;
}

.tag-teal { color: #0284C7; }
.tag-green { color: #059669; }
.tag-orange { color: #D97706; }
.tag-purple { color: #7C3AED; }

.product-info-block h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0F3F2F;
    margin: 0 0 12px 0;
    line-height: 1.35;
    letter-spacing: -0.2px;
}

.product-description-text {
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.65;
    margin: 0 0 20px 0;
}

/* Benefits Checklist */
.product-benefits {
    margin-top: auto;
    margin-bottom: 8px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.product-benefits h6 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.product-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-benefits li {
    font-size: 0.86rem;
    color: #334155;
    font-weight: 500;
    display: flex;
    align-items: baseline;
    gap: 9px;
}

.checkmark-icon {
    font-weight: 900;
}
.check-teal { color: #0EA5E9; }
.check-green { color: #10B981; }
.check-purple { color: #8B5CF6; }

/* E-Commerce Buy Links Placeholder Section */
.buy-links-section {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.buy-label {
    display: block;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    font-weight: 700;
    margin-bottom: 12px;
}

.buy-buttons-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    border-width: 1.5px;
    border-style: solid;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.buy-icon {
    font-size: 14px;
    line-height: 1;
}

/* Amazon Theme */
.btn-amazon {
    background-color: #FFFBEB;
    color: #92400E;
    border-color: #F59E0B;
}

.btn-amazon:hover {
    background-color: #F59E0B;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
    transform: translateY(-2px);
}

/* Flipkart Theme */
.btn-flipkart {
    background-color: #EFF6FF;
    color: #1E40AF;
    border-color: #3B82F6;
}

.btn-flipkart:hover {
    background-color: #2563EB;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transform: translateY(-2px);
}

/* JioMart Theme */
.btn-jiomart {
    background-color: #ECFDF5;
    color: #047857;
    border-color: #10B981;
}

.btn-jiomart:hover {
    background-color: #059669;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
    transform: translateY(-2px);
}

/* Inquire / Action Button */
.btn-inquire {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-width: 2px;
    border-style: solid;
}

.btn-teal {
    color: #ffffff;
    background: #0284C7;
    border-color: #0284C7;
}
.btn-teal:hover {
    background: #0369A1;
    border-color: #0369A1;
    box-shadow: 0 8px 22px rgba(2, 132, 199, 0.28);
    color: #ffffff;
}

.btn-green {
    color: #ffffff;
    background: #059669;
    border-color: #059669;
}
.btn-green:hover {
    background: #047857;
    border-color: #047857;
    box-shadow: 0 8px 22px rgba(5, 150, 105, 0.28);
    color: #ffffff;
}

.btn-orange {
    color: #ffffff;
    background: #D97706;
    border-color: #D97706;
}
.btn-orange:hover {
    background: #B45309;
    border-color: #B45309;
    box-shadow: 0 8px 22px rgba(217, 119, 6, 0.28);
    color: #ffffff;
}

.btn-purple {
    color: #ffffff;
    background: #7C3AED;
    border-color: #7C3AED;
}
.btn-purple:hover {
    background: #6D28D9;
    border-color: #6D28D9;
    box-shadow: 0 8px 22px rgba(124, 58, 237, 0.28);
    color: #ffffff;
}

/* ==========================================
   RESPONSIVE BREAKPOINTS FOR CATEGORY PAGES
========================================== */
@media (max-width: 992px) {
    .category-hero {
        min-height: 340px;
        padding: 110px 0 45px;
    }
    .category-hero h1 {
        font-size: 2.0rem;
    }
    .category-products-section {
        padding: 55px 0 80px;
    }
    .products-showcase-grid {
        flex-direction: column;
        align-items: center;
        gap: 24px;
        max-width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .category-hero {
        padding: 100px 0 40px;
    }
    .category-nav-bar {
        padding: 10px 0;
    }
    .category-pills-list {
        gap: 8px;
    }
    .category-pill-link {
        padding: 7px 15px;
        font-size: 0.82rem;
    }
    .product-info-block {
        padding: 24px 20px 22px;
    }
}

@media (max-width: 576px) {
    .category-hero {
        min-height: auto;
        padding: 95px 0 35px;
    }
    .category-hero h1 {
        font-size: 1.55rem;
        margin-bottom: 10px;
    }
    .category-hero p {
        font-size: 0.85rem;
        line-height: 1.55;
    }
    .category-products-section {
        padding: 40px 0 65px;
    }
    .products-showcase-grid {
        gap: 20px;
    }
    .product-detail-card {
        border-radius: 20px;
    }
    .product-info-block {
        padding: 20px 16px 18px;
    }
    .product-info-block h3 {
        font-size: 1.15rem;
        margin-bottom: 8px;
    }
    .product-description-text {
        font-size: 0.84rem;
        line-height: 1.55;
        margin-bottom: 16px;
    }
    .product-visual-box {
        height: 190px;
    }
    .product-benefits ul li {
        font-size: 0.82rem;
        padding: 6px 0;
    }
    .buy-buttons-group {
        gap: 8px;
    }
    .buy-btn {
        flex: 1 1 auto;
        padding: 8px 12px;
        font-size: 0.78rem;
    }
}

@media (max-width: 400px) {
    .category-hero h1 {
        font-size: 1.38rem;
    }
    .category-pill-link {
        padding: 6px 12px;
        font-size: 0.78rem;
    }
    .product-info-block {
        padding: 18px 14px 16px;
    }
    .product-info-block h3 {
        font-size: 1.08rem;
    }
    .product-visual-box {
        height: 170px;
    }
}
