/* 
   Expert-Level Technical Luxury UI for Dr NS Labs Products
   Focus: Structural clarity, Molecular highlights, and Deep Hierarchy
*/

:root {
    --expert-primary: #334155;
    /* Slate/Charcoal */
    --expert-accent: #64748b;
    /* Medium Grey */
    --expert-bg-gray: #f8fafc;
    --expert-border: #e2e8f0;
    --expert-text: #0f172a;
}

/* Category Info Bar (Hero Style) */
#cat-info-bar {
    background: #ffffff !important;
    border: 1px solid var(--expert-border) !important;
    border-left: 6px solid #475569 !important;
    /* Thick charcoal border */
    border-radius: 4px !important;
    padding: 15px 20px !important;
    /* Reduced padding */
    margin-bottom: 20px !important;
    /* Reduced margin */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: all 0.4s ease;
}

#cat-info-name {
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    color: var(--expert-text) !important;
    margin-bottom: 8px !important;
    letter-spacing: -0.01em;
}

#cat-info-desc {
    font-size: 0.95rem !important;
    color: #555 !important;
    line-height: 1.6 !important;
    max-width: 800px;
}

/* Modern Product Card Grid */
#az-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 10px 0;
}

.modern-product-card {
    background: #fff;
    border: 1px solid var(--expert-border);
    border-radius: 8px;
    padding: 15px;
    /* Reduced from 20px */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.modern-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--expert-primary);
    opacity: 0;
    transition: opacity 0.3s;
}

.modern-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--expert-accent);
}

.modern-product-card:hover::before {
    opacity: 1;
}

.modern-card-header {
    margin-bottom: 10px;
    /* Reduced */
    text-align: center;
}

.modern-card-title {
    font-size: 0.98rem;
    /* Slightly smaller */
    font-weight: 700;
    color: var(--expert-primary);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    /* height: 2.8em;  */
}

.modern-card-media {
    background: #fdfdfd;
    border-radius: 6px;
    padding: 10px;
    /* Reduced */
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    /* Reduced */
    border: 1px solid #f1f3f5;
    margin-bottom: 12px;
    /* Reduced */
}

.modern-card-img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
    mix-blend-mode: multiply;
    /* Helps blend white background images */
    transition: transform 0.5s;
}

.modern-product-card:hover .modern-card-img {
    transform: scale(1.08);
}

.modern-card-placeholder {
    color: #cbd5e0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-card-actions {
    text-align: center;
    margin-top: 10px;
}

.modern-card-info-table {
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 6px;
    margin-bottom: 8px;
}

.modern-card-info-table .card-text {
    margin: 0 0 3px;
    /* Reduced from 5px */
    font-size: 0.78rem;
    color: #475569;
    display: flex;
    justify-content: space-between;
}

.modern-card-info-table b {
    color: var(--expert-primary);
    font-weight: 700;
}

/* Expert Detail Button */
.view-details-btn.Expert {
    background: #ffffff;
    color: var(--expert-primary);
    border: 1.5px solid var(--expert-primary);
    padding: 8px 16px;
    /* Reduced */
    border-radius: recognition;
    border-radius: 4px;
    /* More professional rectangular round */
    font-size: 0.85rem;
    font-weight: 700;
    width: 100% !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.view-details-btn.Expert:hover {
    background: var(--expert-primary);
    color: #fff !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.view-details-btn.Expert i {
    font-size: 10px;
    transition: transform 0.2s;
}

.view-details-btn.Expert:hover i {
    transform: translateX(4px);
}

/* Sidebar Refinement */
.cat-sidebar-panel {
    background: #fff;
    border: 1px solid var(--expert-border);
    border-radius: 12px;
    padding: 5px;
    overflow: hidden;
}

.cat-sidebar-title {
    background: var(--expert-primary);
    color: #fff;
    padding: 15px 20px;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cat-sidebar-list {
    list-style: none;
    padding: 10px;
    margin: 0;
}

.cat-sidebar-item {
    padding: 5px 6px;
    font-size: 0.9rem;
    color: #444;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #f8f9fa;
}

.cat-sidebar-item:last-child {
    border-bottom: none;
}

.cat-sidebar-item:hover {
    background: #f1f5f9;
    color: var(--expert-primary);
    padding-left: 20px;
}

.cat-sidebar-item.active {
    background: rgba(51, 65, 85, 0.05);
    color: var(--expert-primary);
    font-weight: 700;
}

.cat-dot {
    width: 6px;
    height: 6px;
    background: var(--expert-accent);
    border-radius: 50%;
    opacity: 0.4;
}

.cat-sidebar-item.active .cat-dot {
    opacity: 1;
    box-shadow: 0 0 8px rgba(100, 116, 139, 0.4);
}

/* Mobile Search Refinement */
.product_search_bg {
    position: relative;
    background: #fff;
    border: 1.5px solid var(--expert-border);
    border-radius: 50px;
    padding: 5px 20px;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.product_search_bg:focus-within {
    border-color: var(--expert-primary);
    box-shadow: 0 0 0 4px rgba(55, 67, 142, 0.05);
}

.product_search_view {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    padding: 8px 0;
    font-size: 0.95rem;
}

.product_search_bg .icon-magnifiying-glass {
    color: #888;
    font-size: 1.1rem;
}