/* Lusaka Eye Hospital - Optical Dispensary & Products Showroom
   Design Language: LEH Portal Design System (Slate-50, Blue-600, rounded-2xl, Inter)
*/

.optical-section {
    padding: 5.5rem 0 6rem 0;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

/* Category Filter Bar */
.optical-filter-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin: 2.5rem 0 3rem 0;
}

.optical-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.15rem;
    border-radius: 9999px;
    border: 1px solid var(--border-color);
    background-color: #ffffff;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.optical-filter-btn i {
    font-size: 1rem;
    color: var(--text-light);
    transition: color 0.2s ease;
}

.optical-filter-btn:hover {
    border-color: #cbd5e1;
    color: var(--primary-color);
    background-color: #f8fafc;
    transform: translateY(-1px);
}

.optical-filter-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.optical-filter-btn.active i {
    color: #ffffff;
}

/* Optical Products Grid */
.optical-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .optical-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .optical-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* Optical Product Card */
.optical-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, opacity 0.3s ease;
}

.optical-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 38px -8px rgba(15, 23, 42, 0.14), 0 4px 12px rgba(0, 0, 0, 0.04);
    border-color: #cbd5e1;
}

.optical-card.is-hidden {
    display: none;
}

/* Visual Presentation Stage with High-Res Product Photography */
.optical-stage {
    position: relative;
    width: 100%;
    height: 220px;
    background-color: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    overflow: hidden;
}

.optical-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.optical-stage-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.28) 0%, rgba(15, 23, 42, 0) 40%, rgba(15, 23, 42, 0.15) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Category & Feature Badges */
.optical-badge-top {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 0.725rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    z-index: 3;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.badge-frame {
    background-color: rgba(239, 246, 255, 0.92);
    color: #1d4ed8;
    border: 1px solid rgba(191, 219, 254, 0.9);
}

.badge-lens {
    background-color: rgba(240, 253, 244, 0.92);
    color: #15803d;
    border: 1px solid rgba(187, 247, 208, 0.9);
}

.badge-contact {
    background-color: rgba(254, 242, 242, 0.92);
    color: #b91c1c;
    border: 1px solid rgba(254, 202, 202, 0.9);
}

.badge-pediatric {
    background-color: rgba(254, 243, 199, 0.92);
    color: #b45309;
    border: 1px solid rgba(253, 230, 138, 0.9);
}

.optical-pill-right {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.725rem;
    font-weight: 700;
    background-color: rgba(255, 255, 255, 0.92);
    color: #1e293b;
    border: 1px solid rgba(226, 232, 240, 0.95);
    padding: 0.28rem 0.7rem;
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 3;
}

/* Card Content Body */
.optical-body {
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.optical-title {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.35;
    margin-bottom: 0.4rem;
    letter-spacing: -0.015em;
}

.optical-subtitle {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.optical-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

/* Specifications Matrix */
.optical-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding: 0.85rem;
    background-color: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
}

.spec-item {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
}

.spec-value {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1e293b;
}

/* Highlights Checklist */
.optical-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex-grow: 1;
}

.optical-features-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.825rem;
    color: #475569;
}

.optical-features-list li i {
    color: #10b981;
    font-size: 0.95rem;
    flex-shrink: 0;
}

/* Action Button */
.btn-inquire-product {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--primary-color);
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: none;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-inquire-product:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
    color: #ffffff;
}

/* Optical Lab Assurance Banner */
.optical-perks-bar {
    margin-top: 3.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.75rem;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
}

@media (min-width: 768px) {
    .optical-perks-bar {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

.optical-perk-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.perk-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background-color: #eff6ff;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.perk-text h4 {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.perk-text p {
    font-size: 0.775rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}
