
/*reviews below title*/
.title_rating_bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 0;
    flex-wrap: wrap;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
}

/* ⭐ Star & Rating Block */
.star_review_block {
    display: flex;
    align-items: center;
    background: #f3f3f3;
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
}

.rating_star1 {
    color: #f1c40f;
    font-size: 14px;
    display: flex;
    gap: 2px;
}

.rating_average {
    color: #111;
}

.rating_average .average_no {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.total_review_count h3 {
    margin: 0;
    font-size: 13px;
    color: #444;
}

/* 🛡️ Trusted Seal (Already Premium Style) */
.trusted.premium.twinkle {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: linear-gradient(90deg, #000000, #2c2c2c);
    padding: 5px 12px;
    border: 1px solid gold;
    border-radius: 22px;
    color: gold;
    font-size: 13px;
    font-weight: 600;
    gap: 6px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
    transition: background 0.3s, transform 0.3s;
}

.trusted.premium .icon {
    background-color: gold;
    border-radius: 50%;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trusted.premium .icon svg {
    width: 14px;
    height: 14px;
    fill: black;
}

.trusted.premium .brand {
    font-weight: 700;
    font-size: 14px;
}

.trusted.premium .label {
    font-size: 12px;
    color: #f1c40f;
}

.trusted.premium .sparkle {
    position: absolute;
    font-size: 12px;
    color: gold;
    opacity: 0;
    pointer-events: none;
    animation: twinkle 3s infinite ease-in-out;
}

.trusted.premium .sparkle1 {
    top: -6px;
    left: 8px;
    animation-delay: 0s;
}

.trusted.premium .sparkle2 {
    bottom: -6px;
    right: 10px;
    animation-delay: 1.5s;
}

@keyframes twinkle {
    0%, 100% { opacity: 0; transform: scale(0.8) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.3) rotate(30deg); }
}



/* Responsive layout */
.title_rating_bar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.badges_container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Badge styles */
.badge {
    background-color: #e0e0e0;
    color: #333;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge.best_seller {
    background-color: #ffd700;
    color: #000;
}

.badge.verified {
    background-color: #4caf50;
    color: #fff;
}

/* Mobile tweaks */
@media (max-width: 768px) {
    .title_rating_bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .star_review_block,
    .badges_container {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 10px;
    }

    .trusted.premium {
        margin-top: 5px;
    }
}
















/* ===== REVIEW SYSTEM - FLIPKART STYLE ===== */
.reviews-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    padding: 20px;
    margin: 30px 0;
    font-family: Arial, sans-serif;
}

/* Review Summary */
.reviews-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 20px 0;
    border-bottom: 1px solid #e7e7e7;
    gap: 20px;
}

.reviews-summary-left {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 250px;
}

.average-rating {
    text-align: center;
    padding-right: 30px;
    border-right: 1px solid #e7e7e7;
    min-width: 180px;
}

.average-rating-value {
    font-size: 48px;
    font-weight: 500;
    color: #0F1111;
    line-height: 1;
}

.average-stars {
    margin: 5px 0;
}

.average-stars .star {
    color: #FFA41C;
    font-size: 24px;
}

.total-reviews {
    color: #565959;
    font-size: 14px;
}

.star-distribution {
    flex: 1;
    padding-left: 30px;
}

.star-row {
    display: flex;
    align-items: center;
    margin: 8px 0;
}

.star-row span:first-child {
    width: 70px;
    color: #0F1111;
    font-size: 14px;
}

.bar {
    flex: 1;
    height: 8px;
    background: #e7e7e7;
    border-radius: 4px;
    margin: 0 10px;
    overflow: hidden;
}

.fill {
    height: 100%;
    background: #FFA41C;
    border-radius: 4px;
}

.percentage {
    width: 40px;
    color: #565959;
    font-size: 14px;
}

/* Write Review Button */
.write-review-btn {
    background-color: #FFD814;
    color: #0F1111;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    white-space: nowrap;
}

.write-review-btn:hover {
    background-color: #F7CA00;
}

/* Reviews Container */
.reviews-container {
    margin-top: 20px;
}

.review {
    padding: 15px 0;
    border-bottom: 1px solid #e7e7e7;
}

.review-header {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.review-user {
    font-weight: bold;
    color: #0F1111;
}

.review-date {
    color: #565959;
    font-size: 12px;
}

.review-body {
    margin-bottom: 10px;
    line-height: 1.5;
}

.review-images {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.review-images img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e7e7e7;
    cursor: pointer;
    transition: transform 0.2s;
}

.review-images img:hover {
    transform: scale(1.05);
}

.review-actions {
    display: flex;
    gap: 15px;
}

.like-button, .dislike-button {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #565959;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.2s;
}

.like-button:hover, .dislike-button:hover {
    background-color: #f0f0f0;
}

.like-button.active {
    color: #2e7d32;
}

.dislike-button.active {
    color: #c62828;
}

.read-more {
    background: none;
    border: none;
    color: #0066c0;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

.top-images-row {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    overflow-x: auto;
    padding-bottom: 10px;
}

.top-images-row img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e7e7e7;
    cursor: pointer;
    transition: transform 0.2s;
}

.top-images-row img:hover {
    transform: scale(1.05);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 25px;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: modalopen 0.3s;
}

@keyframes modalopen {
    from {opacity: 0; transform: translateY(-20px);}
    to {opacity: 1; transform: translateY(0);}
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e7e7e7;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #0F1111;
}

.close-modal {
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #565959;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #0F1111;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #0F1111;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #a6a6a6;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: #FFA41C;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,164,28,0.3);
}

/* Star Rating */
.star-rating {
    margin: 10px 0;
    display: flex;
}

.star {
    font-size: 30px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
    margin-right: 5px;
}

.star.active,
.star:hover {
    color: #FFA41C;
}

.star-text {
    color: #FFA41C;
    font-weight: 500;
    margin-top: 5px;
    min-height: 20px;
}

/* Character Count */
.char-count {
    text-align: right;
    font-size: 12px;
    color: #565959;
    margin-top: 5px;
}

/* Image Preview */
.image-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.image-preview-container img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e7e7e7;
}

/* Buttons */
.btn-primary {
    background-color: #FFA41C;
    color: #0F1111;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
    width: 100%;
}

.btn-primary:hover {
    background-color: #fa8900;
}

/* Toast Notification */
.toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 16px;
    position: fixed;
    z-index: 1001;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
}

.toast.show {
    visibility: visible;
    opacity: 1;
}

/* Image Modal (for enlarged view) */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    overflow: auto;
}

.image-modal-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.image-modal-content img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.close-image-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-image-modal:hover {
    color: #bbb;
}

/* Responsive */
@media (max-width: 992px) {
    .reviews-summary {
        flex-direction: column;
        align-items: stretch;
    }

    .reviews-summary-left {
        flex-direction: column;
        align-items: flex-start;
    }

    .average-rating {
        border-right: none;
        border-bottom: 1px solid #e7e7e7;
        padding-right: 0;
        padding-bottom: 20px;
        margin-bottom: 20px;
        width: 100%;
    }

    .star-distribution {
        padding-left: 0;
        width: 100%;
    }

    .write-review-btn {
        align-self: flex-end;
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 15px;
    }

    .average-rating-value {
        font-size: 36px;
    }

    .average-stars .star {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .write-review-btn {
        width: 100%;
        text-align: center;
    }

    .star {
        font-size: 24px;
    }

    .review-images img {
        width: 60px;
        height: 60px;
    }

    .top-images-row img {
        width: 80px;
        height: 80px;
    }
}

















.review-section {
  padding: 20px;
  background-color: #fafafa;
  border-radius: 12px;
  max-width: 800px;
  margin: 20px auto;
}

.review-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-user-thumbnail {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #007BFF;
}

.review-user-name {
  font-weight: 600;
  font-size: 16px;
  color: #333;
}

.review-rating {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 16px;
  color: #ffc107; /* star color */
}

.review-content {
  font-size: 15px;
  color: #444;
  line-height: 1.5;
}

.review-media {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.review-media img,
.review-media video {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #ccc;
}

.review-date {
  font-size: 13px;
  color: #888;
  margin-top: 5px;
}











/* Top image thumbnails row */
.top-images-row {
  display: flex;
  gap: 10px;
  margin: 15px 0;
  flex-wrap: wrap;
}

.top-image img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #ccc;
}

/* Review card image grid */
.review-photos {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.review-photos img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #ddd;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.review-photos img:hover {
  transform: scale(1.05);
}

/* Responsive layout */
@media (max-width: 600px) {
  .review-photos img,
  .top-image img {
    width: 80px;
    height: 80px;
  }
}







.rating-title-container {
    display: flex;
    align-items: center;
    gap: 15px; /* Adjust spacing between stars and title */
    margin: 10px 0;
}

.review-rating {
    font-size: 20px; /* Adjust star size if needed */
    color: #ffc107; /* Gold color for stars */
}

.review-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}









/* Active state for buttons */
.like-btn.active, .dislike-btn.active {
    background-color: #f0f0f0;
    border-color: #ccc;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top-color: #333;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}







.login-body {
    text-align: center;
    padding: 20px 0;
}

.login-body p {
    margin-bottom: 20px;
    color: #565959;
}









 .login-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1100;
            backdrop-filter: blur(5px);
        }
        .login-modal-content {
            background: white;
            border-radius: 12px;
            width: 90%;
            max-width: 400px;
            overflow: hidden;
            box-shadow: 0 10px 25px rgba(0,0,0,0.2);
            animation: modalFadeIn 0.3s ease-out;
        }
        @keyframes modalFadeIn {
            from { opacity: 0; transform: translateY(-20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .login-modal-header {
            padding: 20px;
            border-bottom: 1px solid #eee;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .login-modal-header h3 {
            margin: 0;
            font-size: 20px;
        }
        .close-login-modal {
            font-size: 24px;
            cursor: pointer;
            color: #777;
        }
        .login-modal-body {
            padding: 20px;
        }
        .login-options {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin: 20px 0;
        }
        .login-btn {
            padding: 12px;
            border-radius: 8px;
            border: 1px solid #ddd;
            background: white;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }
        .login-btn:hover {
            background: #f9f9f9;
        }
        .social-login {
            background: white;
        }
        .login-footer {
            text-align: center;
            margin-top: 20px;
            color: #666;
        }
        .signup-link {
            color: #0066c0;
            text-decoration: none;
        }
        .submit-login-btn {
            width: 100%;
            padding: 12px;
            background: #0066c0;
            color: white;
            border: none;
            border-radius: 8px;
            font-weight: 500;
            cursor: pointer;
            margin-top: 10px;
        }
        .back-to-options {
            margin-top: 15px;
            color: #0066c0;
            cursor: pointer;
            text-align: center;
        }
    `;

 
