/* ===================================
   PRODUCT CARDS FRONTEND STYLES
   =================================== */
.cbb-faq-section h2,
.cbb-faq-section h3,
.cbb-faq-section h4{
  font-size:inherit !important;
  line-height:inherit !important;
}

.cbb-product-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.cbb-product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.cbb-product-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cbb-product-card-link:hover .cbb-product-card {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.cbb-product-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f5f5f5;
}

.cbb-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cbb-product-card-link:hover .cbb-product-image img {
    transform: scale(1.05);
}

.cbb-product-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cbb-product-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.cbb-product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.cbb-stars {
    display: flex;
    gap: 2px;
}

.cbb-star {
    font-size: 18px;
}

.cbb-star-full {
    color: #FFA41C;
}

.cbb-star-half {
    color: #FFA41C;
}

.cbb-star-empty {
    color: #ddd;
}

.cbb-rating-text {
    margin-left: 8px;
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

.cbb-product-description {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
}

.cbb-product-price {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.cbb-product-button {
    margin-top: auto;
}

.cbb-button {
    display: block;
    width: 100%;
    padding: 12px 24px;
    background: #3498db;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.cbb-product-card-link:hover .cbb-button {
    background: #2980b9;
    transform: translateY(-2px);
}

/* ===================================
   COMPARISON TABLE FRONTEND STYLES
   =================================== */

.cbb-comparison-table-wrapper {
    margin: 30px 0;
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cbb-comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    min-width: 600px;
}

.cbb-comparison-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.cbb-comparison-table th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.cbb-comparison-table th:last-child {
    border-right: none;
}

.cbb-comparison-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.2s ease;
}

.cbb-comparison-table tbody tr:hover {
    background: #f8f9fa;
}

.cbb-comparison-table tbody tr:last-child {
    border-bottom: none;
}

.cbb-comparison-table td {
    padding: 15px 20px;
    font-size: 14px;
    color: #555;
    border-right: 1px solid #e0e0e0;
}



.cbb-table-button:hover {
    background: #2980b9;
    transform: translateY(-2px);
    color: #fff !important;
}

/* ===================================
   FAQ FRONTEND STYLES
   =================================== */

.cbb-faq-section {
    margin: 30px 0;
    max-width: 800px;
}

.cbb-faq-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.cbb-faq-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cbb-faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    transition: background 0.3s ease;
    user-select: none;
}

.cbb-faq-question:hover {
    background: #e9ecef;
}

.cbb-faq-question.active {
    background: #3498db;
    color: white;
}

.cbb-faq-question h3 {
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 600;
    flex: 1;
    padding-right: 20px;
}

.cbb-faq-toggle {
    font-size: 24px !important;
    font-weight: 700;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    color: #3498db;
    transition: transform 0.3s ease, background 0.3s ease;
}

.cbb-faq-question.active .cbb-faq-toggle {
    transform: rotate(45deg);
    background: white;
    color: #3498db;
}

.cbb-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
}

.cbb-faq-answer.active {
    max-height: 1000px;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
}

.cbb-faq-answer p {
    margin: 0 0 10px 0;
    line-height: 1.6;
    color: #555;
}

.cbb-faq-answer p:last-child {
    margin-bottom: 0;
}

/* ===================================
   REVIEWS FRONTEND STYLES - AMAZON STYLE
   =================================== */

.cbb-reviews-section.amazon-style {
    margin: 30px 0;
   
}

/* Rating Summary Section */
.cbb-reviews-summary {
    display: flex;
    gap: 40px;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
}

.cbb-summary-left {
    flex: 0 0 180px;
    text-align: left;
}

.cbb-average-rating {
    margin-bottom: 8px;
}

.cbb-rating-number {
    font-size: 48px;
    font-weight: 400;
    color: #0F1111;
    line-height: 1;
}

.cbb-out-of {
    font-size: 14px;
    color: #565959;
    margin-left: 5px;
}

.cbb-summary-stars {
    margin: 8px 0;
}

.cbb-summary-stars .cbb-stars {
    justify-content: flex-start;
    font-size: 18px;
}

.cbb-total-reviews {
    font-size: 14px;
    color: #007185;
    margin-top: 5px;
}

.cbb-summary-right {
    flex: 1;
}

.cbb-rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cbb-rating-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cbb-rating-label {
    font-size: 13px;
    color: #007185;
    min-width: 45px;
    cursor: pointer;
    text-decoration: none;
}

.cbb-rating-label:hover {
    color: #C7511F;
    text-decoration: underline;
}

.cbb-rating-bar {
    flex: 1;
    height: 18px;
    background: #e7e7e7;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.cbb-rating-bar-fill {
    height: 100%;
    background: #FFA41C;
    transition: width 0.3s ease;
}

.cbb-rating-percent {
    font-size: 13px;
    color: #007185;
    min-width: 35px;
    text-align: right;
}

/* Reviews List */
.cbb-reviews-list {
    margin-top: 20px;
}

.cbb-reviews-heading {
    font-size: 18px;
    font-weight: 700;
    color: #0F1111;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e7e7e7;
}

/* Individual Review Items */
.cbb-review-item.amazon-style {
    background: #fff;
    border-bottom: 1px solid #e7e7e7;
    padding: 14px 0;
    margin-bottom: 0;
}

.cbb-review-item.amazon-style:last-child {
    border-bottom: none;
}

.cbb-review-item.amazon-style .cbb-review-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.cbb-review-item.amazon-style .cbb-review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.cbb-review-item.amazon-style .cbb-review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cbb-review-item.amazon-style .cbb-review-avatar-default {
    background: #232F3E;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
}

.cbb-review-author-info {
    flex: 1;
}

.cbb-review-item.amazon-style .cbb-review-name {
    font-size: 13px;
    font-weight: 700;
    color: #0F1111;
}

.cbb-review-content {
    margin-left: 0;
}

.cbb-review-item.amazon-style .cbb-review-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.cbb-review-item.amazon-style .cbb-review-rating .cbb-stars {
    margin: 0;
    font-size: 16px;
}

.cbb-review-item.amazon-style .cbb-review-title {
    font-size: 14px;
    font-weight: 700;
    color: #0F1111;
    display: inline;
}

.cbb-review-meta-line {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #565959;
}

.cbb-review-date {
    color: #565959;
}

.cbb-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #C7511F;
    font-weight: 700;
}

.cbb-verified-badge svg {
    color: #C7511F;
}

.cbb-review-item.amazon-style .cbb-review-text {
    font-size: 14px;
    line-height: 1.5;
    color: #0F1111;
    margin-bottom: 12px;
}

/* Review Images */
.cbb-review-images {
    display: flex;
    gap: 8px;
    margin: 12px 0;
    flex-wrap: wrap;
}

.cbb-review-image {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #ddd;
    transition: transform 0.2s ease;
}

.cbb-review-image:hover {
    transform: scale(1.05);
    border-color: #C7511F;
}

.cbb-review-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cbb-review-helpful {
    padding-top: 8px;
}

.cbb-helpful-text {
    font-size: 13px;
    color: #007185;
    font-weight: 400;
    cursor: pointer;
}

.cbb-helpful-text:hover {
    color: #C7511F;
    text-decoration: underline;
}

/* Seller Reply Section */
.cbb-review-reply {
    margin-top: 16px;
    padding: 12px 16px;
    background: #f7f7f7;
    border-left: 3px solid #C7511F;
    border-radius: 4px;
}

.cbb-reply-header {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #0F1111;
    margin-bottom: 8px;
}

.cbb-reply-header svg {
    color: #C7511F;
}

.cbb-reply-text {
    font-size: 13px;
    line-height: 1.5;
    color: #0F1111;
}

/* ===================================
   RESPONSIVE STYLES
   =================================== */

@media (max-width: 768px) {
    .cbb-product-cards {
        grid-template-columns: 1fr;
    }

    .cbb-comparison-table-wrapper {
        margin: 20px -15px;
    }

    .cbb-comparison-table th,
    .cbb-comparison-table td {
        padding: 10px;
        font-size: 13px;
    }

    .cbb-faq-question h3 {
        font-size: 16px!important;
    }

    .cbb-reviews-summary {
        flex-direction: column;
        gap: 20px;
        padding: 16px;
    }

    .cbb-summary-left {
        flex: none;
    }

    .cbb-rating-number {
        font-size: 36px;
    }
}