body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
}

.entry-content {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

h1,
h2,
h3 {
    color: #111;
}

a {
    color: #0073aa;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* --- BLACK FRIDAY BANNER --- */
.promo-banner {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: #ffffff;
    text-align: center;
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    animation: shine 3s infinite;
}

.promo-text {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0;
}

.promo-text .highlight {
    color: #ffd700;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

@keyframes shine {
    0% {
        transform: translate(-100%, -100%) rotate(45deg);
    }

    100% {
        transform: translate(100%, 100%) rotate(45deg);
    }
}

/* --- TOC --- */
#toc_container {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 4px;
}

.toc_title {
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
}

.toc_list {
    list-style: none;
    padding: 0;
}

.toc_list li {
    margin-bottom: 5px;
}

.toc_list a {
    text-decoration: none;
    color: #333;
}

.toc_list a:hover {
    color: #0073aa;
}

/* --- CAROUSEL (AT A GLANCE) --- */
.product-carousel-container {
    overflow-x: auto;
    padding-bottom: 20px;
    margin-bottom: 40px;
}

.products-grid {
    display: flex;
    gap: 20px;
    padding: 10px;
}

.product-card {
    min-width: 240px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.product-card img {
    max-width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: contain;
}

/* .product-title { font-size: 1rem; margin: 10px 0 5px; } */
.product-subtitle {
    font-size: 0.85rem;
    color: #e67e22;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.product-features {
    list-style: none;
    padding: 0;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 15px;
}

.product-features li {
    margin-bottom: 3px;
}

.amazon-link {
    background: #FF9900;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
}

.amazon-link:hover {
    background: #e68a00;
    text-decoration: none;
}


.image-container {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.image-container img {
    max-width: 100%;
    height: auto;
}

.main-image-container {
    position: relative;
    text-align: center;
    background: #fff;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.amazon-rating-box {
    background: #fdfdfd;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.25rem;
    margin: 1.5rem 0;
    font-family: system-ui, -apple-system, sans-serif;
}

.rating-header-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.rating-number {
    font-size: 2rem;
    font-weight: 800;
    color: #1a202c;
}

.stars-wrapper {
    color: #ffa41c;
    /* Amazon Gold */
    font-size: 1.25rem;
    letter-spacing: 2px;
}

.total-reviews-text {
    font-size: 0.85rem;
    color: #718096;
    display: block;
}

/* Progress Bar Rows */
.rating-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.star-label {
    font-size: 0.85rem;
    color: #4a5568;
    width: 45px;
    white-space: nowrap;
}

.progress-bar-bg {
    flex-grow: 1;
    background-color: #edf2f7;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar-fill {
    background-color: #ffa41c;
    height: 100%;
    border-radius: 5px;
    transition: width 0.5s ease-in;
}

.percentage-text {
    font-size: 0.85rem;
    color: #718096;
    width: 35px;
    text-align: right;
}


/* theme css  */

/* Scoped Product Review Widget Styles */
.prod-review-widget {
    --primary-color: #0056b3;
    --accent-color: #003d82;
    --pros-bg: #f0f9f0;
    --pros-border: #4CAF50;
    --pros-color: #2E7D32;
    --cons-bg: #fff5f5;
    --cons-border: #f44336;
    --cons-color: #C62828;
    --light-gray: #f9f9f9;
    --border-color: #e1e1e1;
    --text-dark: #333;
    --text-light: #666;

    /* Reset and base styles for the widget */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif !important;
    color: #2d3748 !important;
    line-height: 1.6 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400 !important;
    font-size: 17px !important;
    letter-spacing: 0.01em !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    text-decoration: none !important;
    list-style: none !important;
    outline: none !important;
    vertical-align: baseline !important;
}

.prod-review-widget *,
.prod-review-widget *::before,
.prod-review-widget *::after {
    box-sizing: inherit !important;
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

.prod-review-widget .review-card {
    max-width: 1000px;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px auto;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.prod-review-widget .review-header {
    margin: 20px;
    border: 2px solid #047c22;
    background-color: #ffffff;
    padding: 10px;
    /* Add padding for better spacing */
    position: relative;
    box-shadow: 0 12px 18px rgba(19, 146, 32, 0.336);
    /* Soft shadow */
    text-align: center
}

.prod-review-widget .review-best {
    display: inline-block;
    font-size: 16px;
    text-transform: uppercase;
    background-color: rgb(48, 124, 13);
    color: white;
    padding: 4px 10px;
    border-radius: 8px;
    margin-left: 10px;
    margin-top: 10px;
    margin-bottom: 2px;
    /* Minimal space between badge and title */
}

.prod-review-widget .review-best .h3 {
    display: inline-block;
    font-size: 16px;
    text-transform: uppercase;
    background-color: rgb(48, 124, 13);
    color: white;
    padding: 4px 10px;
    border-radius: 8px;
    margin-left: 10px;
    margin-top: 10px;
    margin-bottom: 2px;
    /* Minimal space between badge and title */
}

.prod-review-widget .review-title {
    margin: 0;
    font-size: 1.4em;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    color: #000000;
    letter-spacing: -0.5px;
    padding-top: 0;
    /* Remove additional spacing */
}

/* Responsive adjustments for small devices */
@media (max-width: 768px) {
    .prod-review-widget .review-header {
        padding: 8px;
    }

    .prod-review-widget .review-best {
        font-size: 14px;
        padding: 3px 8px;
        margin-bottom: 1px;
        /* Minimal gap on mobile */
    }

    .prod-review-widget .review-title {
        font-size: 1.2em;
        padding-top: 0;
        /* No additional padding */
    }
}

@media (max-width: 480px) {
    .prod-review-widget .review-best {
        font-size: 12px;
        padding: 2px 6px;
        margin-bottom: 1px;
        /* Minimal gap on small screens */
    }

    .prod-review-widget .review-title {
        font-size: 1.1em;
        padding-top: 0;
        /* No additional padding */
    }
}

.prod-review-widget .content-wrapper {
    display: flex;
    flex-direction: row;
    padding: 5px 5px;
    gap: 1px;
}

@media (max-width: 768px) {
    .prod-review-widget .content-wrapper {
        flex-direction: column;
    }
}

/* .prod-review-widget .image-container {
    flex: 1;
    text-align: center;
} */

.product-image {
    width: 100%;
    max-width: 400px;
    height: 400px;
    border-radius: 8px;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.product-image:hover {
    transform: scale(1.02);
}

.prod-review-widget .details-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.prod-review-widget .cta-button {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 14px 30px;
    font-size: 19px;
    font-weight: 600;
    cursor: pointer;
    margin: 0px auto 0;
    border-radius: 30px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 280px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 86, 179, 0.3);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.prod-review-widget .cta-button:hover {
    transform: translateY(-12px);
    box-shadow: 0 8px 20px rgba(0, 86, 179, 0.4);
}

.prod-review-widget .cta-button:active {
    transform: translateY(0);
}

.prod-review-widget .button-icon {
    margin-left: 12px;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.prod-review-widget .cta-button:hover .button-icon {
    transform: translateX(4px);
}

.prod-review-widget .specs-container {
    margin: 10px 20px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    padding: 5px;
}

.prod-review-widget .spec-item {
    display: flex;
    padding: 12px 10px;
    background-color: white;
    font-size: 16px;
}

.prod-review-widget .spec-item:nth-child(odd) {
    background-color: var(--light-gray);
}

.prod-review-widget .spec-label {
    font-weight: 500;
    flex: 1.5;
    color: #1a202c;
    margin-right: 10px;
    letter-spacing: 0.3px;
}

.prod-review-widget .spec-value {
    flex: 1.5;
    color: #4a5568;
    padding-left: 5px;
    font-weight: 400;
}

.prod-review-widget .pros-cons-content {
    padding: 5px 30px 15px;
}

.prod-review-widget .pros-cons {
    display: flex;
    margin: 5px 0;
    gap: 25px;
}

@media (max-width: 768px) {
    .prod-review-widget .pros-cons {
        flex-direction: column;
    }
}

.prod-review-widget .pros,
.prod-review-widget .cons {
    flex: 1;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.prod-review-widget .pros {
    background-color: var(--pros-bg);
    border-left: 5px solid var(--pros-border);
}

.prod-review-widget .cons {
    background-color: var(--cons-bg);
    border-left: 5px solid var(--cons-border);
}

.prod-review-widget .pros h3,
.prod-review-widget .cons h3 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.08);
    text-align: center;
}

.prod-review-widget .pros h3 {
    color: var(--pros-color);
}

.prod-review-widget .cons h3 {
    color: var(--cons-color);
}

.prod-review-widget .pro-item,
.prod-review-widget .con-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    line-height: 1.5;
    font-size: 14px;
}

.key {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.08);
    text-align: center
}

.prod-review-widget .pro-icon,
.prod-review-widget .con-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
    margin-top: 2px;
    font-weight: bold;
}

.prod-review-widget .pro-icon {
    background-color: var(--pros-border);
    color: white;
}

.prod-review-widget .con-icon {
    background-color: var(--cons-border);
    color: white;
}

.prod-review-widget .review-section {
    background-color: #ffffffe8;
    padding: 5px 10px;
    border-top: 1px solid var(--border-color);
}

.prod-review-widget .review-content {
    max-width: 900px;
    margin: 0 auto 25px;
    line-height: 1.7;
    font-size: 16px;
    color: var(--text-dark);
    padding: 5px;
}

.options {
    padding: 12px;
}

.prod-review-widget .review-content p {
    margin-bottom: 1.5em;
    font-size: 1.1em;
    font-weight: 400;
    line-height: 1.8;
    color: #000000;
    max-width: 85ch;
    margin-left: auto;
    margin-right: auto;
}

/* Strong/Bold text styling - Override CSS reset */
.prod-review-widget strong,
.prod-review-widget .review-content strong,
.prod-review-widget .review-section strong,
.prod-review-widget .pros-cons strong,
.prod-review-widget .review-best strong {
    font-weight: 700 !important;
    color: #1a202c !important;
    font-family: inherit !important;
}

/* Ensure bold text is visible on all backgrounds */
.prod-review-widget .review-best strong {
    color: white !important;
}

.prod-review-widget .review-meta {
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
    font-style: italic;
    margin-top: 15px;
}

.prod-review-widget .rating {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.prod-review-widget .star {
    color: gold;
    font-size: 24px;
    margin: 0 2px;
}

/* Custom gallery styles to match the page theme */
.prod-review-widget .gallery-section {
    padding: 5px;
    background-color: white;
    border-top: 1px solid var(--border-color);
    margin-bottom: 10px;
}

.prod-review-widget .gallery-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 600;
}

.prod-review-widget .gallery-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 5px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* .prod-review-widget .main-image-container {
    flex: 1;
    position: relative;
    margin-bottom: 15px;
    border-radius: 6px;
    overflow: hidden;
} */

.prod-review-widget .main-image {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.prod-review-widget .main-image:hover {
    transform: scale(1.02);
}

.prod-review-widget .nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 86, 179, 0.7);
    color: white;
    border: none;
    padding: 15px 10px;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s;
}

.prod-review-widget .nav-button:hover {
    background: var(--primary-color);
}

.prod-review-widget .prev {
    left: 0;
    border-radius: 0 5px 5px 0;
}

.prod-review-widget .next {
    right: 0;
    border-radius: 5px 0 0 5px;
}

.prod-review-widget .caption {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    margin: 10px 0;
}

.prod-review-widget .thumbnails {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.prod-review-widget .thumbnail-container {
    cursor: pointer;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.prod-review-widget .thumbnail-container:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 86, 179, 0.2);
}

.prod-review-widget .thumbnails img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
}

.prod-review-widget .thumbnails img:hover,
.prod-review-widget .thumbnails img.active {
    transform: scale(1.05);
}

/* Amazon Button Styles */
.prod-review-widget .amazon-button-container {
    text-align: center;
    padding: 10px 10px;
    background-color: white;
    border-top: 1px solid var(--border-color);
}

.prod-review-widget .amazon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    font-size: 19px;
    font-weight: 600;
    padding: 14px 30px;
    text-decoration: none;
    box-shadow: 0 6px 15px rgba(0, 86, 179, 0.3);
    transition: all 0.3s ease;
    max-width: 320px;
    width: 100%;
    margin: 0 auto 10px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .prod-review-widget .amazon-button {
        font-size: 15px;
        padding: 4px 10px;

    }
}

.prod-review-widget .amazon-button:hover {
    transform: translateY(-12px);
    box-shadow: 0 8px 20px rgba(0, 86, 179, 0.4);
}

.prod-review-widget .amazon-button:active {
    transform: translateY(0);
}

.prod-review-widget .amazon-button-icon {
    margin-right: 10px;
    display: flex;
    align-items: center;
    color: white;
}

.prod-review-widget .amazon-button-text {
    white-space: nowrap;
}

.prod-review-widget .amazon-disclaimer {
    color: var(--text-light);
    font-size: 12px;
    margin-top: 10px;
    font-style: italic;
}

/* Lightbox Styles - Scoped and Conflict-Free */
#constrained-lightbox {
    display: none !important;
    position: fixed !important;
    z-index: 10000 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: auto !important;
    background-color: rgba(0, 0, 0, 0.9) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-sizing: border-box !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif !important;
}

.constrained-lightbox-content {
    position: relative !important;
    margin: auto !important;
    padding: 0 !important;
    width: 90% !important;
    max-width: 1200px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    box-sizing: border-box !important;
}

.constrained-lightbox-close {
    position: absolute !important;
    top: 15px !important;
    right: 35px !important;
    color: #f1f1f1 !important;
    font-size: 40px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    z-index: 10001 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    line-height: 1 !important;
    font-family: inherit !important;
    transition: color 0.3s ease !important;
}

.constrained-lightbox-close:hover {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5) !important;
}

.constrained-lightbox-image {
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-sizing: border-box !important;
    max-height: 80vh !important;
    object-fit: contain !important;
}

.constrained-lightbox-caption {
    text-align: center !important;
    color: #ccc !important;
    padding: 10px 0 !important;
    font-size: 18px !important;
    margin: 0 !important;
    border: none !important;
    background: none !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
    line-height: 1.4 !important;
}

.constrained-lightbox-prev,
.constrained-lightbox-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: rgba(0, 0, 0, 0.5) !important;
    color: white !important;
    border: none !important;
    padding: 16px !important;
    cursor: pointer !important;
    font-size: 18px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
    transition: background-color 0.3s ease !important;
    border-radius: 4px !important;
}

.constrained-lightbox-prev {
    left: 16px !important;
}

.constrained-lightbox-next {
    right: 16px !important;
}

.constrained-lightbox-prev:hover,
.constrained-lightbox-next:hover {
    background: rgba(0, 0, 0, 0.8) !important;
}

/* Responsive lightbox styles */
@media (max-width: 768px) {
    .constrained-lightbox-content {
        width: 95% !important;
        top: 50% !important;
    }

    .constrained-lightbox-close {
        top: 10px !important;
        right: 20px !important;
        font-size: 30px !important;
    }

    .constrained-lightbox-prev,
    .constrained-lightbox-next {
        padding: 12px !important;
        font-size: 16px !important;
    }

    .constrained-lightbox-prev {
        left: 10px !important;
    }

    .constrained-lightbox-next {
        right: 10px !important;
    }

    .constrained-lightbox-caption {
        font-size: 16px !important;
        padding: 8px 0 !important;
    }
}

.amazon-btn {
    display: inline-block;
    background: #f0c14b;
    border: 1px solid #a88734;
    border-radius: 3px;
    color: #111;
    padding: 8px 20px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset;
}

.amazon-btn:hover {
    background: #e5b440;
}

.amazon-btn i {
    margin-right: 5px;
}

.product-title {
    color: #333;
    /* Default text color */
    font-size: 16px;
    /* Increased by 1px */
    line-height: 1.4;
    font-weight: bold;
    /* Added bold */
}

.product-title:hover {
    color: #c7511f;
    text-decoration: underline;
}

.rating-badge {
    margin-top: 5px;
    padding: 5px;
    border-top: 1px solid #eee;
}

/* --- RESET & BASE --- */
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 10px;
    /* Reduced for mobile */
}

.entry-content {
    max-width: 1000px;
    /* Increased for better desktop view */
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    /* Responsive padding */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

@media (min-width: 768px) {
    .entry-content {
        padding: 40px;
    }

    body {
        padding: 20px;
    }
}

/* --- RESPONSIVE TABLE (STRIKING CHANGE) --- */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

@media (max-width: 767px) {
    .comparison-table thead {
        display: none;
    }

    /* Hide headers on mobile */

    .comparison-table,
    .comparison-table tbody,
    .comparison-table tr,
    .comparison-table td {
        display: block;
        width: 100%;
    }

    .comparison-table tr {
        margin-bottom: 20px;
        border: 2px solid #eee;
        border-radius: 10px;
        padding: 10px;
    }

    .comparison-table td {
        text-align: left !important;
        border: none !important;
        padding: 8px 0 !important;
        position: relative;
    }

    /* Create labels for the table data */
    .comparison-table td:not(:first-child)::before {
        content: attr(data-label);
        font-weight: bold;
        display: block;
        font-size: 12px;
        color: #888;
        text-transform: uppercase;
    }
}

/* --- REVIEW WIDGET RESPONSIVENESS --- */
.prod-review-widget .review-card {
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.prod-review-widget .content-wrapper {
    display: flex;
    flex-direction: column;
    /* Mobile Default */
    padding: 15px;
    gap: 1px;
}

@media (min-width: 768px) {
    .prod-review-widget .content-wrapper {
        flex-direction: row;
        /* Desktop Side-by-Side */
    }
}

/* Pros & Cons Grid */
.prod-review-widget .pros-cons {
    display: grid;
    grid-template-columns: 1fr;
    /* Stacked on mobile */
    gap: 15px;
    padding: 15px;
}

@media (min-width: 768px) {
    .prod-review-widget .pros-cons {
        grid-template-columns: 1fr 1fr;
        /* Side-by-side on desktop */
    }
}

/* Images */
.product-image {
    width: 100%;
    height: auto;
    max-width: 400px;
    display: block;
    margin: 0 auto;
}

/* --- BUTTONS (Touch Friendly) --- */
.cta-button,
.amazon-button,
.amazon-link {
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 100%;
    /* Full width on mobile for easier tapping */
    min-height: 50px;
    margin: 10px 0;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.2s ease;
}

@media (min-width: 768px) {

    .cta-button,
    .amazon-button {
        width: fit-content;
        padding: 14px 40px;
    }
}

/* --- RATING BOX --- */
.rating-header-inline {
    flex-direction: column;
    text-align: center;
}

@media (min-width: 480px) {
    .rating-header-inline {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* --- GALLERY TWEAKS --- */
.thumbnails {
    display: flex;
    overflow-x: auto;
    /* Allow horizontal swipe for thumbnails on mobile */
    padding-bottom: 10px;
    gap: 10px;
    justify-content: flex-start;
}

@media (min-width: 768px) {
    .thumbnails {
        justify-content: center;
        overflow-x: visible;
    }
}

.thumbnail-container img {
    width: 60px;
    height: 60px;
}

/* ============================================================
   1. BASE STYLES (Mobile First - applies to everyone)
   ============================================================ */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 10px;
    /* Tight padding for small screens */
    line-height: 1.6;
}

.entry-content {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
}

/* Images should never overflow their container */
img {
    max-width: 100%;
    height: auto;
}

/* Buttons: Big and easy to tap on mobile */
.cta-button,
.amazon-button {
    display: flex;
    width: 100%;
    /* Full width on mobile */
    justify-content: center;
    padding: 15px;
    margin: 10px 0;
    font-weight: bold;
    border-radius: 30px;
    text-decoration: none;
}

/* ============================================================
   2. TABLE RESPONSIVENESS (The "Card" Shift)
   ============================================================ */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

/* TARGET: Only screens smaller than 768px */
@media screen and (max-width: 767px) {
    .comparison-table thead {
        display: none;
    }

    /* Hide headers */

    .comparison-table tr {
        display: block;
        border: 2px solid #eee;
        margin-bottom: 15px;
        border-radius: 10px;
        padding: 10px;
    }

    .comparison-table td {
        display: block;
        text-align: left !important;
        padding: 5px 0;
        border: none !important;
    }

    /* Add labels using the data-label attribute from HTML */
    .comparison-table td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #888;
        display: block;
        font-size: 0.75rem;
    }

    .options {
        padding: 8px;
    }
}

/* ============================================================
   3. DESKTOP BREAKPOINT (min-width: 768px)
   ============================================================ */
@media screen and (min-width: 768px) {
    body {
        padding: 30px;
    }

    .entry-content {
        padding: 40px;
    }

    /* Review Widget: Side-by-Side layout */
    .prod-review-widget .content-wrapper {
        display: flex;
        flex-direction: row;
        /* Image on left, text on right */
        gap: 1px;
        align-items: flex-start;
    }

    .image-container {
        flex: 1;
    }

    .details-container {
        flex: 1.2;
    }

    /* Pros & Cons: Two columns */
    .prod-review-widget .pros-cons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    /* Buttons: Don't take up full width on desktop */
    .cta-button,
    .amazon-button {
        width: auto;
        padding: 12px 35px;
        display: inline-flex;
    }

    /* Tables: Restore standard look */
    .comparison-table td {
        border: 1px solid #ddd !important;
        padding: 12px !important;
    }
}

/* ============================================================
   4. EXTRA SMALL BREAKPOINT (For very small phones)
   ============================================================ */
@media screen and (max-width: 480px) {
    .rating-number {
        font-size: 1.5rem;
    }

    .review-title {
        font-size: 1.1rem;
    }

    .promo-text {
        font-size: 0.9rem;
    }

    .options {
        padding: 5px;
    }
}

.entry-content {
    padding: 0px !important;
    margin: 0px !important;
}