/**
 * Single Lens Page Styles
 * Professional Modern Design
 * 
 * @package Camera_Pro_Theme
 * @version 2.0.0
 */

/* ========================================
   BASE LAYOUT
   ======================================== */

.single-lens-page {
    padding: 2rem 0 4rem;
    min-height: 70vh;
}

.single-lens-article {
    background: linear-gradient(135deg, rgba(30, 42, 74, 0.95) 0%, rgba(20, 30, 55, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 212, 170, 0.1);
}

/* ========================================
   BREADCRUMBS
   ======================================== */

.lens-breadcrumbs {
    margin-bottom: 2.5rem;
}

.breadcrumb-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: rgba(0, 212, 170, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 170, 0.15);
}

.breadcrumb-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #00d4aa;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.breadcrumb-link:hover {
    background: rgba(0, 212, 170, 0.1);
    transform: translateX(3px);
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.2rem;
}

.breadcrumb-current {
    color: #fff;
    font-weight: 500;
}

/* ========================================
   HEADER SECTION
   ======================================== */

.lens-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.1) 0%, rgba(79, 172, 254, 0.1) 100%);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.header-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(0, 212, 170, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.lens-header-content {
    position: relative;
    z-index: 1;
    padding-right: 160px;
}

.lens-brand-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, #00d4aa, #4facfe);
    color: #fff;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.lens-title {
    font-size: 3rem;
    color: #fff;
    margin: 1rem 0;
    font-weight: 700;
    text-shadow: 0 4px 20px rgba(0, 212, 170, 0.3);
}

.lens-pitch {
    font-style: italic;
    color: #00d4aa;
    font-size: 1.3rem;
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.lens-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin: 1rem 0;
}

.lens-meta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.lens-premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1a1d23;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.lens-taxonomies {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.lens-category-badge,
.lens-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 2px solid;
}

.lens-category-badge {
    background: rgba(0, 212, 170, 0.1);
    border-color: #00d4aa;
    color: #00d4aa;
}

.lens-type-badge {
    background: rgba(79, 172, 254, 0.1);
    border-color: #4facfe;
    color: #4facfe;
}

/* Category Color Variations */
.lens-category-badge.category-premium {
    background: rgba(255, 215, 0, 0.1);
    border-color: #ffd700;
    color: #ffd700;
}

.lens-category-badge.category-mid-range {
    background: rgba(79, 172, 254, 0.1);
    border-color: #4facfe;
    color: #4facfe;
}

.lens-category-badge.category-budget {
    background: rgba(76, 175, 80, 0.1);
    border-color: #4caf50;
    color: #4caf50;
}

/* ========================================
   RATING DISPLAY
   ======================================== */

.lens-rating-display {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 2;
}

.rating-container {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: rgba(10, 14, 22, 0.55);
    backdrop-filter: blur(8px);
    border-radius: 14px;
    border: 2px solid rgba(0, 212, 170, 0.45);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.stars {
    display: flex;
    gap: 0.25rem;
}

.star {
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.star.filled {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.star.half {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.star.empty {
    color: rgba(255, 255, 255, 0.2);
}

.rating-info {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.rating-number {
    font-size: 1.6rem;
    font-weight: 700;
    color: #00d4aa;
}

.rating-divider {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.3);
}

.rating-max {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
}

.rating-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   CONTENT LAYOUT
   ======================================== */

.lens-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.lens-top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

/* Technical Specs pulled out of the 2-col grid – spans full width */
.lens-full-specs-fullwidth {
    margin-top: 2.5rem;
}

/* ========================================
   SIDEBAR
   ======================================== */

.lens-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Featured Image */
.lens-featured-image {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    max-height: 450px; /* Add max height */
}

.image-wrapper {
    position: relative;
    background: rgba(20, 30, 55, 0.6);
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(0, 212, 170, 0.2);
    max-height: 450px; /* Add max height */
}

.lens-image {
    width: 100%;
    height: auto;
    max-height: 450px; /* Add max height constraint */
    object-fit: contain; /* Changed from cover to contain */
    display: block;
    transition: transform 0.5s ease;
}

.image-wrapper:hover .lens-image {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 212, 170, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.image-wrapper:hover .image-overlay {
    opacity: 1;
}

/* Quick Specs & Price Cards */
.lens-quick-specs-card,
.lens-price-card {
    background: rgba(20, 30, 55, 0.8);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 212, 170, 0.2);
}

.card-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.2rem;
    color: #00d4aa;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.specs-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.quick-spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.quick-spec-item:last-child {
    border-bottom: none;
}

.quick-spec-item:hover {
    padding-left: 0.5rem;
    background: rgba(0, 212, 170, 0.05);
}

.spec-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.spec-value {
    color: #fff;
    font-weight: 600;
}

/* ========================================
   PRICE CARD
   ======================================== */

.price-card-content {
    text-align: center;
}

.price-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #00d4aa;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.price-value-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin: 1.5rem 0;
}

.currency-symbol {
    font-size: 1.5rem;
    color: #00d4aa;
    margin-top: 0.5rem;
}

.price-value {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.btn-buy-amazon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #ff9900, #ffb84d);
    color: #000;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.3);
    margin-top: 1.5rem;
}

.btn-buy-amazon:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 153, 0, 0.4);
}

.price-card-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Key specs inside price card */
.price-card-specs {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.price-spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    gap: 0.5rem;
}

.price-spec-row:last-child {
    border-bottom: none;
}

.price-spec-label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
    white-space: nowrap;
}

.price-spec-label i {
    color: #00d4aa;
    font-size: 0.7rem;
    width: 12px;
    text-align: center;
}

.price-spec-value {
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    text-align: right;
}

/* ========================================
   MAIN CONTENT SECTIONS
   ======================================== */

.lens-main-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.section-card {
    background: rgba(20, 30, 55, 0.6);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 212, 170, 0.2);
}

.section-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 212, 170, 0.2);
}

.features-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ── Key Features collapse ─────────────────────── */
.features-body {
    overflow: hidden;
    transition: height 0.35s ease;
}
.features-body.is-collapsed {
    display: none;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.8rem;
    color: #fff;
    font-weight: 600;
}

.entry-content {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: 1rem;
}

/* ── Overview read-more toggle ─────────────────── */
.overview-extra {
    display: none;
}
.overview-body.is-expanded .overview-extra {
    display: block;
}
.overview-body.is-collapsed > p:first-child::after {
    content: '\2026'; /* … */
    color: rgba(255,255,255,0.5);
    margin-left: 2px;
}
.overview-toggle-wrap {
    margin-top: 0.75rem;
}
.overview-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    border: 1px solid rgba(0, 212, 170, 0.4);
    color: #00d4aa;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s, border-color 0.2s;
}
.overview-toggle:hover {
    background: rgba(0, 212, 170, 0.1);
    border-color: #00d4aa;
}
.overview-toggle .toggle-icon {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}
/* ─────────────────────────────────────────────── */

.entry-content h2,
.entry-content h3 {
    color: #00d4aa;
    margin: 2rem 0 1rem;
}

/* ── Rich content typography (the_content() output) ── */

/* h2 — section headings */
.overview-body h2,
.entry-content h2 {
    font-size: 1.45rem;
    font-weight: 800;
    color: #ffffff;
    margin: 40px 0 16px;
    padding: 16px 20px;
    background: rgba(0, 212, 170, 0.07);
    border-left: 4px solid #00d4aa;
    border-radius: 0 12px 12px 0;
    line-height: 1.3;
}
.overview-body h2:first-child,
.entry-content h2:first-child {
    margin-top: 0;
}

/* h3 — sub-sections */
.overview-body h3,
.entry-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #00d4aa;
    margin: 28px 0 10px;
    padding-left: 14px;
    border-left: 3px solid rgba(0, 212, 170, 0.5);
    line-height: 1.4;
}

/* h4 */
.overview-body h4,
.entry-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    margin: 20px 0 8px;
}

/* Unordered lists */
.overview-body ul,
.entry-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.overview-body ul li,
.entry-content ul li {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 212, 170, 0.12);
    border-radius: 10px;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    transition: background 0.2s;
}

.overview-body ul li:hover,
.entry-content ul li:hover {
    background: rgba(0, 212, 170, 0.06);
}

/* Bold labels inside list items */
.overview-body ul li strong,
.entry-content ul li strong {
    color: #ffffff;
    font-weight: 700;
    margin-right: 4px;
}

/* Ordered lists */
.overview-body ol,
.entry-content ol {
    padding-left: 0;
    margin: 0 0 24px;
    counter-reset: item;
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
}

.overview-body ol li,
.entry-content ol li {
    counter-increment: item;
    padding: 10px 16px 10px 52px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 212, 170, 0.12);
    border-radius: 10px;
    position: relative;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.overview-body ol li::before,
.entry-content ol li::before {
    content: counter(item);
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #00d4aa, #4facfe);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Standalone bold paragraph = FAQ question */
.overview-body p > strong:only-child,
.entry-content p > strong:only-child {
    display: block;
    color: #00d4aa;
    font-size: 1.05rem;
    padding: 10px 16px;
    border-left: 3px solid rgba(0, 212, 170, 0.5);
    border-radius: 0 8px 8px 0;
    background: rgba(0, 212, 170, 0.05);
    margin-bottom: 0;
}

/* HR */
.overview-body hr,
.entry-content hr {
    border: none;
    border-top: 1px solid rgba(0, 212, 170, 0.2);
    margin: 32px 0;
}

/* ─────────────────────────────────────────────── */

/* ========================================
   FEATURES GRID
   ======================================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(0, 212, 170, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 170, 0.2);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(0, 212, 170, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.2);
}

.feature-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #00d4aa, #4facfe);
    border-radius: 12px;
    flex-shrink: 0;
}

.feature-icon {
    font-size: 1.5rem;
}

.feature-text {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
}

/* ========================================
   SPECIFICATIONS TABLE
   ======================================== */

.specs-table-wrapper {
    overflow-x: auto;
}

.specs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.specs-table tr {
    transition: background 0.3s ease;
}

.specs-table tr:hover {
    background: rgba(0, 212, 170, 0.05);
}

.specs-table th,
.specs-table td {
    padding: 1.25rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.specs-table th {
    color: #00d4aa;
    font-weight: 600;
    width: 35%; /* Adjusted width for full table */
}

.specs-table th i {
    margin-right: 0.5rem;
}

.specs-table td {
    color: #fff;
    font-size: 1rem;
}

/* ========================================
   RELATED LENSES
   ======================================== */

.related-lenses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.related-lens-card {
    display: flex;
    flex-direction: column;
    background: rgba(20, 30, 55, 0.6);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 170, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
}

.related-lens-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 170, 0.2);
    border-color: #00d4aa;
}

.related-lens-image {
    height: 200px;
    overflow: hidden;
    background: rgba(10, 20, 40, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-lens-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-lens-card:hover .related-lens-image img {
    transform: scale(1.1);
}

.placeholder-image {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.2);
}

.related-lens-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.related-lens-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
}

.related-brand,
.related-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.view-details {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #00d4aa;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* ========================================
   THREE COLUMN LAYOUT WITH SIDEBARS
   ======================================== */

.full-width-container {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 1rem;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 0.75rem;
}

.lens-main-container {
    max-width: 100%;
    padding: 0;
}

/* ========================================
   RELATED SIDEBARS
   ======================================== */

.lens-related-sidebar {
    position: relative;
}

.sidebar-sticky {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding: 1.5rem;
    background: rgba(20, 30, 55, 0.6);
    border-radius: 16px;
    border: 1px solid rgba(0, 212, 170, 0.2);
    backdrop-filter: blur(10px);
}

/* Custom Scrollbar for Sidebars */
.sidebar-sticky::-webkit-scrollbar {
    width: 6px;
}

.sidebar-sticky::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.sidebar-sticky::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 170, 0.5);
    border-radius: 10px;
}

.sidebar-sticky::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 170, 0.7);
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    color: #00d4aa;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 212, 170, 0.3);
    font-weight: 600;
}

.sidebar-lenses-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Type-grouped entries in right sidebar */
.sidebar-type-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-type-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #00d4aa;
    padding: 0 0.25rem;
    opacity: 0.85;
}

/* Sidebar Lens Cards */
.sidebar-lens-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(30, 42, 74, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 170, 0.1);
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

.sidebar-lens-card:hover {
    background: rgba(30, 42, 74, 0.6);
    border-color: #00d4aa;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.2);
}

.sidebar-lens-image {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(10, 20, 40, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-lens-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sidebar-lens-card:hover .sidebar-lens-image img {
    transform: scale(1.1);
}

.sidebar-placeholder {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.2);
}

.sidebar-type-badge {
    position: absolute;
    bottom: 4px;
    left: 4px;
    padding: 2px 6px;
    background: rgba(79, 172, 254, 0.9);
    color: #fff;
    font-size: 0.65rem;
    border-radius: 4px;
    font-weight: 600;
}

.sidebar-lens-info {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
    min-width: 0;
}

.sidebar-lens-title {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sidebar-lens-brand {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.sidebar-lens-brand:before {
    content: "📷";
    font-size: 0.85rem;
}

.sidebar-lens-price {
    font-size: 0.85rem;
    color: #00d4aa;
    font-weight: 700;
}

.sidebar-lens-price:before {
    content: "💰 ";
    font-size: 0.9rem;
}

.sidebar-empty-message {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    padding: 2rem 1rem;
    font-style: italic;
}

/* Left Sidebar Accent */
.lens-left-sidebar .sidebar-title {
    color: #4facfe;
}

.lens-left-sidebar .sidebar-lens-card:hover {
    border-color: #4facfe;
}

/* Right Sidebar Accent */
.lens-right-sidebar .sidebar-title {
    color: #ff9900;
}

.lens-right-sidebar .sidebar-lens-card:hover {
    border-color: #ff9900;
}

/* ========================================
   ALTERNATIVE LENSES SECTIONS
   ======================================== */

.lens-alternative-sections {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 3rem;
}

.alternative-lenses-section {
    background: rgba(20, 30, 55, 0.6);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 212, 170, 0.2);
}

.alternative-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 212, 170, 0.2);
    flex-wrap: wrap;
    gap: 1rem;
}

.alternative-section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.8rem;
    color: #fff;
    font-weight: 600;
    margin: 0;
}

.alternative-section-badge {
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mid-range-badge {
    background: linear-gradient(135deg, #4facfe, #00d4aa);
    color: #fff;
}

.budget-badge {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
    color: #fff;
}

/* Mid-Range Section Accent */
.mid-range-lenses-section {
    border-color: rgba(79, 172, 254, 0.3);
}

.mid-range-lenses-section .alternative-section-header {
    border-bottom-color: rgba(79, 172, 254, 0.3);
}

.mid-range-lenses-section .alternative-section-title {
    color: #4facfe;
}

/* Budget Section Accent */
.budget-lenses-section {
    border-color: rgba(76, 175, 80, 0.3);
}

.budget-lenses-section .alternative-section-header {
    border-bottom-color: rgba(76, 175, 80, 0.3);
}

.budget-lenses-section .alternative-section-title {
    color: #4caf50;
}

/* Alternative Lenses Grid */
.alternative-lenses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.alternative-lens-card {
    display: flex;
    flex-direction: column;
    background: rgba(30, 42, 74, 0.6);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 170, 0.15);
    transition: all 0.3s ease;
    text-decoration: none;
}

.alternative-lens-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 212, 170, 0.3);
}

.mid-range-card:hover {
    border-color: #4facfe;
    box-shadow: 0 15px 40px rgba(79, 172, 254, 0.3);
}

.budget-card:hover {
    border-color: #4caf50;
    box-shadow: 0 15px 40px rgba(76, 175, 80, 0.3);
}

.alternative-lens-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: rgba(10, 20, 40, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.alternative-lens-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.alternative-lens-card:hover .alternative-lens-image img {
    transform: scale(1.15);
}

.alternative-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.alternative-lens-card:hover .alternative-overlay {
    opacity: 1;
}

.alternative-placeholder {
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.2);
}

.alternative-lens-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.alternative-lens-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.alternative-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.alternative-lens-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.alternative-spec {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    padding: 0.3rem 0.6rem;
    background: rgba(0, 212, 170, 0.1);
    border-radius: 6px;
}

.alternative-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: #00d4aa;
    font-weight: 700;
}

.alternative-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.rating-stars {
    color: #ffd700;
}

.rating-value {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.alternative-view-details {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #00d4aa;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.5rem;
    transition: gap 0.3s ease;
}

.alternative-lens-card:hover .alternative-view-details {
    gap: 1rem;
}

/* ========================================
   SPECIFICATIONS LAYOUT WITH SIDEBAR
   ======================================== */

.specs-content-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
}

/* Specs Sidebar Widgets */
.specs-sidebar-widgets {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.spec-widget {
    background: rgba(30, 42, 74, 0.4);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 212, 170, 0.15);
    transition: all 0.3s ease;
}

.spec-widget:hover {
    border-color: rgba(0, 212, 170, 0.3);
    transform: translateX(5px);
}

.widget-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: #00d4aa;
    margin-bottom: 1rem;
    font-weight: 600;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 212, 170, 0.2);
}

.widget-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Compatibility Widget */
.compatibility-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.1), rgba(79, 172, 254, 0.1));
    border-radius: 8px;
    border: 1px solid rgba(0, 212, 170, 0.3);
}

.mount-icon {
    font-size: 1.5rem;
}

.mount-name {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

.widget-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin: 0;
}

.widget-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #00d4aa;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.widget-link:hover {
    gap: 0.75rem;
    color: #4facfe;
}

/* Stats Widget */
.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(0, 212, 170, 0.05);
    border-radius: 8px;
}

.stat-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Rating Highlight Widget */
.rating-highlight-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.rating-circle {
    position: relative;
    width: 120px;
    height: 120px;
}

.rating-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.rating-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 8;
}

.rating-fill {
    fill: none;
    stroke: url(#ratingGradient);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dasharray 1s ease;
}

.rating-number-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: 700;
    color: #00d4aa;
}

.rating-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

/* Share Widget */
.share-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.facebook-btn {
    background: #1877f2;
}

.twitter-btn {
    background: #1da1f2;
}

.linkedin-btn {
    background: #0077b5;
}

.email-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 1400px) {
    .full-width-container {
        grid-template-columns: 260px 1fr 260px;
        gap: 0.75rem;
    }
}

@media (max-width: 1200px) {
    .full-width-container {
        grid-template-columns: 220px 1fr 220px;
        gap: 0.75rem;
    }

    .lens-top-row {
        gap: 2rem;
    }

    .specs-content-layout {
        grid-template-columns: 1fr;
    }
    
    .specs-sidebar-widgets {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 960px) {
    .full-width-container {
        grid-template-columns: 1fr;
    }

    .lens-related-sidebar {
        display: none;
    }

    .lens-top-row {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .lens-top-row {
        grid-template-columns: 1fr;
    }

    .specs-sidebar-widgets {
        grid-template-columns: 1fr;
    }

    .lens-header-content {
        padding-right: 0;
    }

    .lens-rating-display {
        position: static;
        margin-top: 1.5rem;
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .lens-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .price-value {
        font-size: 2.5rem;
    }
}

/* ========================================
   SIDEBAR ALTERNATIVE CATEGORY CARDS
   ======================================== */

.sidebar-alternative-categories {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-category-card {
    background: rgba(20, 30, 55, 0.8);
    border-radius: 12px;
    border: 2px solid;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sidebar-category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Clickable Category Header */
.category-card-header-link {
    text-decoration: none;
    display: block;
}

.category-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.category-card-header-link:hover .category-card-header {
    background: rgba(255, 255, 255, 0.05);
    padding-left: 1.25rem;
}

.category-card-header i:first-child {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.category-card-header-link:hover .category-card-header i:first-child {
    transform: scale(1.1);
}

.category-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex: 1;
}

.category-header-arrow {
    font-size: 0.9rem;
    margin-left: auto;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.category-card-header-link:hover .category-header-arrow {
    opacity: 1;
    transform: translateX(3px);
}

.category-card-content {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    text-decoration: none;
    transition: background 0.3s ease;
}

.category-card-content:hover {
    background: rgba(255, 255, 255, 0.02);
}

.category-card-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(10, 20, 40, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card-content:hover .category-card-image img {
    transform: scale(1.1);
}

.category-card-placeholder {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.2);
}

.category-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.category-card-lens-title {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.category-card-brand {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.category-card-specs {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.category-card-price {
    font-size: 0.9rem;
    font-weight: 700;
}

.category-card-view {
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

/* Empty Card State */
.sidebar-category-card.empty-card {
    opacity: 0.6;
}

.category-empty-message {
    text-align: center;
    padding: 2rem 1rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin: 0;
}

/* ── Tags Section ───────────────────────────────────────────── */
/* -- Tags Sidebar Card -- */
/* Tags full-width section */
.lens-tags-fullwidth {
    margin-top: 2.5rem;
}

/* Price + Category Cards – 3-column horizontal row */
.price-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
    align-items: stretch;
}

.price-row-card {
    margin: 0 !important;
}

/* ── Category cards in the horizontal price row – enhanced product-card layout ── */
.price-row-card.sidebar-category-card {
    display: flex;
    flex-direction: column;
    position: relative; /* anchor for stretched link */
}

/* Stretch the lens-post link across the entire card */
.price-row-card.sidebar-category-card .category-card-content::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Keep the category-archive header link clickable above the stretched layer */
.price-row-card.sidebar-category-card .category-card-header-link {
    position: relative;
    z-index: 2;
}

.price-row-card.sidebar-category-card .category-card-header {
    padding: 1rem 1.25rem;
}

.price-row-card.sidebar-category-card .category-card-title {
    font-size: 1rem;
    letter-spacing: 0.6px;
}

.price-row-card.sidebar-category-card .category-card-content {
    flex-direction: column;
    gap: 0;
    padding: 0;
    flex: 1;
}

.price-row-card.sidebar-category-card .category-card-image {
    width: 100%;
    height: 160px;
    border-radius: 0;
    flex-shrink: 0;
}

.price-row-card.sidebar-category-card .category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.price-row-card.sidebar-category-card .category-card-info {
    padding: 1rem 1.25rem 1.25rem;
    gap: 0.5rem;
}

.price-row-card.sidebar-category-card .category-card-lens-title {
    font-size: 1rem;
    line-height: 1.4;
}

.price-row-card.sidebar-category-card .category-card-brand {
    font-size: 0.8rem;
}

.price-row-card.sidebar-category-card .category-card-specs {
    font-size: 0.8rem;
}

.price-row-card.sidebar-category-card .category-card-price {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 0.25rem;
}

.price-row-card.sidebar-category-card .category-card-view {
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.4rem;
}

.lens-tags-fullwidth .section-header {
    margin-bottom: 1.25rem;
}

.lens-tags-fullwidth .lens-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.sidebar-tags-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.25rem;
    margin-top: 1rem;
}

.sidebar-tags-title {
    font-size: .85rem;
    font-weight: 600;
    color: #00d4aa;
    margin: 0 0 .85rem;
    display: flex;
    align-items: center;
    gap: .45rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.sidebar-tags-title i {
    font-size: .8rem;
}

.lens-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.lens-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .75rem;
    border-radius: 999px;
    background: rgba(0, 212, 170, 0.08);
    border: 1px solid rgba(0, 212, 170, 0.22);
    color: #00d4aa;
    font-size: .75rem;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: .02em;
    transition: background .2s, border-color .2s, transform .15s;
}

.lens-tag-pill i {
    font-size: .65rem;
    opacity: .7;
}

.lens-tag-pill:hover {
    background: rgba(0, 212, 170, 0.18);
    border-color: rgba(0, 212, 170, 0.5);
    transform: translateY(-1px);
    color: #00d4aa;
    text-decoration: none;
}
