/* ============================================
   QuintecCBD – BudPop-Style Single Product Page
   ============================================ */

/* ---- Layout ---- */
.quintec-single-product .quintec-woo-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 60px;
}
.quintec-single-product .woocommerce-breadcrumb {
    font-size: 13px;
    color: #888;
    margin-bottom: 24px;
    padding: 0;
}
.quintec-single-product .woocommerce-breadcrumb a {
    color: #16a34a;
    text-decoration: none;
}

/* ---- Two-column product layout ---- */
.quintec-single-product div.product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}
@media (max-width: 768px) {
    .quintec-single-product div.product {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ---- Gallery (left) ---- */
.quintec-single-product .woocommerce-product-gallery {
    position: sticky;
    top: 100px;
}
.quintec-single-product .woocommerce-product-gallery .woocommerce-product-gallery__image img {
    border-radius: 12px;
    background: #f8f9fa;
}
.quintec-single-product .woocommerce-product-gallery .flex-control-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    padding: 0;
    list-style: none;
}
.quintec-single-product .woocommerce-product-gallery .flex-control-thumbs li {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s;
}
.quintec-single-product .woocommerce-product-gallery .flex-control-thumbs li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.quintec-single-product .woocommerce-product-gallery .flex-control-thumbs li:hover,
.quintec-single-product .woocommerce-product-gallery .flex-control-thumbs .flex-active {
    border-color: #16a34a;
}

/* ---- Badges ---- */
.qpp-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.qpp-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.qpp-badge-cat {
    background: #e8f5e9;
    color: #16a34a;
}
.qpp-badge-best {
    background: #fef3c7;
    color: #b45309;
}
.qpp-badge-sale {
    background: #fee2e2;
    color: #dc2626;
}

/* ---- Title ---- */
.quintec-single-product .product_title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
    margin: 8px 0 12px;
    font-family: 'Poppins', sans-serif;
}

/* ---- Price ---- */
.qpp-price-wrap {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.qpp-price-was {
    font-size: 16px;
    color: #999;
}
.qpp-price-was del {
    text-decoration: line-through;
}
.qpp-price-now {
    font-size: 26px;
    font-weight: 700;
    color: #16a34a;
}
.qpp-price-to {
    font-size: 18px;
    color: #666;
    font-weight: 500;
}

/* ---- Rating inline ---- */
.qpp-rating-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.qpp-rating-inline .star-rating {
    font-size: 14px;
}
.qpp-rating-link {
    font-size: 13px;
    color: #555;
    text-decoration: none;
    border-bottom: 1px dotted #aaa;
    transition: color .2s, border-color .2s;
    line-height: 1;
}
.qpp-rating-link:hover {
    color: #14321e;
    border-color: #14321e;
}

/* ---- Highlights ---- */
.qpp-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.qpp-highlights li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}
.qpp-highlights li svg {
    flex-shrink: 0;
}

/* ---- Variations (Pack Selector) ---- */
.quintec-single-product .variations_form .variations {
    width: 100%;
    border: none;
}
.quintec-single-product .variations_form .variations td.label {
    display: block;
    width: 100%;
    padding: 0 0 8px;
}
.quintec-single-product .variations_form .variations td.label label {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
}
.quintec-single-product .variations_form .variations td.value {
    display: block;
    width: 100%;
    padding: 0 0 16px;
}
.quintec-single-product .variations_form .variations select {
    display: none !important;
}

/* Pack size buttons */
.qpp-pack-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}



/* ============================================================
   PROP-65 DISCLAIMER ACCORDION
============================================================ */
.qpp-prop65 {
    margin: 12px 0 6px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

/* Toggle button */
.qpp-prop65-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #fffbeb;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    color: #92400e;
    text-align: left;
    transition: background .2s;
}
.qpp-prop65-toggle:hover {
    background: #fef3c7;
}
.qpp-prop65-icon {
    display: flex;
    align-items: center;
    color: #b45309;
    flex-shrink: 0;
}
.qpp-prop65-toggle > span:nth-child(2) {
    flex: 1;
    font-size: 12.5px;
    color: #92400e;
}
.qpp-prop65-chevron {
    color: #b45309;
    flex-shrink: 0;
    transition: transform .3s ease;
}
.qpp-prop65-toggle[aria-expanded="true"] .qpp-prop65-chevron {
    transform: rotate(180deg);
}

/* Body */
.qpp-prop65-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}
.qpp-prop65-inner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #fffbeb;
    border-top: 1px solid #fde68a;
}
.qpp-prop65-inner svg {
    flex-shrink: 0;
    margin-top: 1px;
}
.qpp-prop65-inner p {
    font-size: 12.5px;
    line-height: 1.7;
    color: #44403c;
    margin: 0;
}
.qpp-prop65-inner p strong {
    color: #78350f;
}
.qpp-prop65-inner p a {
    color: #92400e;
    font-size: 12.5px;
}
.qpp-prop65-inner p a:hover {
    color: #78350f;
}
/* ============================================================
   END PROP-65
============================================================ */

/* ============================================================
   PACK SELECTOR — Bottle card style
============================================================ */
.qpp-pack-selector {
    margin: 20px 0 16px;
}
.qpp-pack-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #374151;
    margin: 0 0 12px;
}

/* Cards row */
.qpp-pack-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
@media (max-width: 520px) {
    .qpp-pack-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Individual card */
.qpp-pcard {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 8px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: border-color .2s, box-shadow .2s, background .2s;
    text-align: center;
    min-height: 160px;
    justify-content: center;
}
.qpp-pcard:hover {
    border-color: #c9a456;
    box-shadow: 0 2px 12px rgba(201,164,86,.18);
}
.qpp-pcard.active {
    border-color: #c9a456;
    background: #fffbf0;
    box-shadow: 0 0 0 1px #c9a456, 0 4px 18px rgba(201,164,86,.2);
}

/* Badge (POPULAR / BEST VALUE) */
.qpp-pcard-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #14321e, #1a4d2e);
    color: #d4b56a;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .1em;
    padding: 3px 10px;
    border-radius: 99px;
    white-space: nowrap;
}

/* Bottle icon — fixed height, overflow visible so bottles never clip */
.qpp-pcard-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    height: 56px;
    width: 100%;
    overflow: visible;
}
.qpp-pcard-icon svg {
    overflow: visible;
    max-width: 100%;
    height: 52px;
    width: auto;
}

/* Text parts */
.qpp-pcard-qty {
    font-size: 12px;
    font-weight: 700;
    color: #111;
    letter-spacing: .04em;
    line-height: 1.2;
}
.qpp-pcard-servings {
    font-size: 10.5px;
    color: #6b7280;
    font-weight: 400;
}
.qpp-pcard-price {
    font-size: 14px;
    font-weight: 700;
    color: #14321e;
    margin-top: 4px;
    line-height: 1;
}
.qpp-pcard-per {
    font-size: 9.5px;
    color: #9ca3af;
    font-weight: 400;
}
.qpp-pcard-save {
    font-size: 10px;
    font-weight: 700;
    color: #d4b56a;
    background: rgba(201,164,86,.12);
    border: 1px solid rgba(201,164,86,.3);
    border-radius: 99px;
    padding: 2px 8px;
    margin-top: 4px;
}

/* Savings chip next to price */
.qpp-price-saving {
    display: inline-flex;
    align-items: center;
    background: #14321e;
    color: #d4b56a;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 99px;
    margin-left: 10px;
    vertical-align: middle;
}
/* ============================================================
   END PACK SELECTOR
============================================================ */

/* ---- Quantity + Add to Cart ---- */
.quintec-single-product .single_add_to_cart_button {
    background: #16a34a !important;
    color: #fff !important;
    border: none;
    border-radius: 8px;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s;
    font-family: 'Poppins', sans-serif;
}
.quintec-single-product .single_add_to_cart_button:hover {
    background: #15803d !important;
}
.quintec-single-product .quantity {
    display: inline-flex;
    align-items: center;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 12px;
}
.quintec-single-product .quantity .qty {
    border: none;
    width: 50px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    -moz-appearance: textfield;
    padding: 12px 4px;
}
.quintec-single-product .quantity .qty::-webkit-outer-spin-button,
.quintec-single-product .quantity .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.quintec-single-product .woocommerce-variation-add-to-cart {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}
.quintec-single-product .reset_variations {
    font-size: 12px;
    color: #999;
}

/* ---- Trust Section ---- */
.qpp-trust {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}
.qpp-free-ship {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
    margin-bottom: 12px;
}
.qpp-free-ship svg {
    color: #16a34a;
}
.qpp-guarantees {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.qpp-guarantees li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
}
.qpp-safe-checkout {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}
.qpp-checkout-title {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.qpp-pay-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.qpp-pay-icons img,
.qpp-pay-icons svg {
    opacity: 0.7;
    transition: opacity 0.2s;
}
.qpp-pay-icons img:hover,
.qpp-pay-icons svg:hover {
    opacity: 1;
}

/* Hide old trust badges */
.product-trust-badges {
    display: none !important;
}

/* ---- Full-width sections below product ---- */
.qpp-description,
.qpp-reviews {
    grid-column: 1 / -1;
    max-width: 900px;
    margin: 40px auto 0;
    padding: 0 20px;
}

/* ---- Description ---- */
.qpp-section-heading {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
    font-family: 'Poppins', sans-serif;
    padding-bottom: 12px;
    border-bottom: 2px solid #16a34a;
    display: inline-block;
}
.qpp-desc-body {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
}
.qpp-desc-body h2, .qpp-desc-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin-top: 28px;
    margin-bottom: 8px;
}
.qpp-desc-body p {
    margin-bottom: 14px;
}

/* ---- Reviews Section ---- */
.qpp-reviews {
    margin-top: 50px;
    padding-bottom: 60px;
}
.qpp-reviews-sub {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
}

.qpp-reviews-overview {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    align-items: center;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 30px;
}
@media (max-width: 600px) {
    .qpp-reviews-overview {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
        padding: 24px 16px;
    }
}

.qpp-reviews-score {
    text-align: center;
}
.qpp-big-num {
    font-size: 52px;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1;
    font-family: 'Poppins', sans-serif;
}
.qpp-score-stars {
    margin: 8px 0 4px;
}
.qpp-score-stars .star-rating {
    margin: 0 auto;
}
.qpp-score-count {
    font-size: 13px;
    color: #888;
}

/* Rating bars */
.qpp-reviews-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.qpp-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.qpp-bar-label {
    font-size: 13px;
    color: #666;
    min-width: 45px;
    text-align: right;
}
.qpp-bar-track {
    flex: 1;
    height: 10px;
    background: #e5e7eb;
    border-radius: 99px;
    overflow: hidden;
}
.qpp-bar-fill {
    height: 100%;
    background: #fbbf24;
    border-radius: 99px;
    transition: width 0.5s ease;
}
.qpp-bar-num {
    font-size: 13px;
    color: #888;
    min-width: 24px;
    text-align: right;
}
.qpp-bar-pct {
    font-size: 13px;
    color: #888;
    min-width: 35px;
    text-align: right;
}

/* Add review button */
.qpp-add-review-btn {
    display: inline-block;
    padding: 12px 32px;
    background: #1a1a2e;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 30px;
}
.qpp-add-review-btn:hover {
    background: #333;
}

/* Review form */
#qpp-review-form {
    background: #f8f9fa;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 30px;
}
#qpp-review-form .comment-form label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: #333;
}
#qpp-review-form .comment-form input[type="text"],
#qpp-review-form .comment-form input[type="email"],
#qpp-review-form .comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
}
#qpp-review-form .comment-form textarea {
    min-height: 100px;
    resize: vertical;
}
/* ---- Star rating selector ---- */
.comment-form-rating {
  margin-bottom: 16px;
}
.comment-form-rating label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  color: #333;
}
.qpp-star-rating {
  display: inline-flex;
  gap: 6px;
  cursor: pointer;
  margin-bottom: 6px;
}
.qpp-star {
  font-size: 32px;
  color: #d1d5db;
  transition: color 0.15s, transform 0.15s;
  line-height: 1;
  user-select: none;
}
.qpp-star:hover,
.qpp-star.hovered,
.qpp-star.selected {
  color: #fbbf24;
  transform: scale(1.15);
}
.qpp-rating-msg {
  display: block;
  font-size: 12px;
  color: #9ca3af;
  margin-top: 4px;
  font-style: italic;
}

#qpp-review-form .form-submit .submit,
#qpp-review-form .comment-form .submit {
    background: #16a34a;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
#qpp-review-form .form-submit .submit:hover {
    background: #15803d;
}

/* Review cards */
.qpp-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.qpp-review-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 24px;
    transition: box-shadow 0.2s;
}
.qpp-review-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.qpp-review-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.qpp-review-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}
.qpp-review-info {
    flex: 1;
}
.qpp-review-info strong {
    display: block;
    font-size: 15px;
    color: #1a1a2e;
}
.qpp-review-date {
    font-size: 12px;
    color: #999;
}
.qpp-review-stars {
    display: flex;
    gap: 2px;
}
.qpp-review-body {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

/* ---- Variation price display ---- */
.quintec-single-product .woocommerce-variation-price {
    margin-bottom: 12px;
}
.quintec-single-product .woocommerce-variation-price .price {
    font-size: 24px;
    font-weight: 700;
    color: #16a34a;
}
.quintec-single-product .woocommerce-variation-price .price del {
    font-size: 16px;
    color: #999;
    font-weight: 400;
}
.quintec-single-product .woocommerce-variation-price .price ins {
    text-decoration: none;
}

/* ---- Hide default WooCommerce stuff ---- */
.quintec-single-product .woocommerce-tabs {
    display: none !important;
}
.quintec-single-product .related.products {
    display: none !important;
}



/* ============================================================
   COLLAGE REVIEW CAROUSEL  (qrv-)
============================================================ */
.qrv-section {
    width: 100%;
    flex-basis: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 60px 20px 40px;
    box-sizing: border-box;
}

/* Header */
.qrv-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.qrv-title {
    font-size: 26px;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 10px;
    font-family: 'Poppins', sans-serif;
}
.qrv-summary-row {
    display: flex;
    align-items: center;
    gap: 14px;
}
.qrv-big-score {
    font-size: 52px;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1;
    font-family: 'Poppins', sans-serif;
}
.qrv-stars-row {
    display: flex;
    gap: 2px;
    margin-bottom: 4px;
}
.qrv-count-label {
    font-size: 13px;
    color: #6b7280;
}
.qrv-write-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #14321e, #1a4d2e);
    color: #d4b56a;
    border: none;
    border-radius: 8px;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity .2s;
    flex-shrink: 0;
}
.qrv-write-btn:hover { opacity: .85; }

/* Rating bars (compact horizontal) */
.qrv-bars-row {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.qrv-bar-item {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 100px;
}
.qrv-bar-star {
    font-size: 11px;
    color: #6b7280;
    white-space: nowrap;
    width: 28px;
    flex-shrink: 0;
}
.qrv-bar-track {
    flex: 1;
    height: 6px;
    background: #e5e7eb;
    border-radius: 99px;
    overflow: hidden;
}
.qrv-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    border-radius: 99px;
    transition: width .8s ease;
    width: 0;
}
.qrv-bar-pct {
    font-size: 11px;
    color: #9ca3af;
    width: 28px;
    flex-shrink: 0;
    text-align: right;
}

/* Carousel wrapper */
.qrv-carousel-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}
.qrv-track-outer {
    flex: 1;
    overflow: hidden;
    min-width: 0;
    width: 0; /* forces flex child to shrink to container */
}
.qrv-track {
    display: flex;
    gap: 16px;
    transition: transform .45s cubic-bezier(.4,0,.2,1);
    align-items: stretch;
    will-change: transform;
}

/* Cards — sized by JS via inline width */
.qrv-card {
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
    transition: box-shadow .2s, transform .2s;
    box-sizing: border-box;
}
.qrv-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,.09);
    transform: translateY(-2px);
}
/* Size variants for collage feel */
.qrv-card--sm  { min-height: 140px; background: #fffbf0; }
.qrv-card--md  { min-height: 170px; background: #fff; }
.qrv-card--lg  { min-height: 200px; background: #f0fdf4; }

/* Compact padding when 6-per-view */
@media (min-width: 1100px) {
    .qrv-card {
        padding: 14px 16px;
        gap: 7px;
        border-radius: 12px;
    }
    .qrv-card-body {
        font-size: 12.5px;
        line-height: 1.65;
        -webkit-line-clamp: 4;
    }
    .qrv-card--lg .qrv-card-body { -webkit-line-clamp: 5; }
    .qrv-card--sm .qrv-card-body { -webkit-line-clamp: 3; }
    .qrv-card-avatar { width: 28px; height: 28px; font-size: 12px; }
    .qrv-card-meta strong { font-size: 12px; }
    .qrv-card-meta span { font-size: 10px; }
    .qrv-verified { font-size: 9px; }
}

.qrv-card-stars { display: flex; gap: 2px; flex-shrink: 0; }

.qrv-card-body {
    font-size: 13.5px;
    line-height: 1.75;
    color: #374151;
    margin: 0;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}
.qrv-card--lg .qrv-card-body { -webkit-line-clamp: 7; }
.qrv-card--sm .qrv-card-body { -webkit-line-clamp: 3; }

.qrv-card-author {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0,0,0,.06);
    margin-top: auto;
    flex-shrink: 0;
}
.qrv-card-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #14321e, #1a4d2e);
    color: #d4b56a;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.qrv-card-meta { flex: 1; min-width: 0; }
.qrv-card-meta strong {
    display: block;
    font-size: 13px;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.qrv-card-meta span {
    font-size: 11px;
    color: #9ca3af;
}
.qrv-verified {
    font-size: 10px;
    color: #16a34a;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Nav arrows */
.qrv-nav {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all .2s;
    color: #374151;
}
.qrv-nav:hover {
    border-color: #c9a456;
    color: #c9a456;
    box-shadow: 0 2px 8px rgba(201,164,86,.2);
}

/* Dots */
.qrv-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
}
.qrv-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #d1d5db;
    cursor: pointer;
    padding: 0;
    transition: background .2s, transform .2s;
}
.qrv-dot.active {
    background: #c9a456;
    transform: scale(1.3);
}

/* Write review form */
.qrv-form-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 40px 0 16px;
    font-family: 'Poppins', sans-serif;
}
#qrv-form-wrap {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 28px;
    margin-top: 32px;
}

/* Responsive — card widths handled by JS, only layout tweaks here */
@media (max-width: 640px) {
    .qrv-section    { padding: 32px 16px 24px; }
    .qrv-header     { flex-direction: column; align-items: flex-start; gap: 12px; }
    .qrv-summary-row { gap: 10px; }
    .qrv-big-score  { font-size: 40px; }
    .qrv-bars-row   { flex-direction: column; gap: 6px; }
    .qrv-bar-item   { min-width: unset; width: 100%; }
    .qrv-nav        { width: 32px; height: 32px; flex-shrink: 0; }
    .qrv-carousel-wrap { gap: 6px; }
}
/* ============================================================
   END REVIEW CAROUSEL
============================================================ */



/* ============================================================
   YOU MAY ALSO LIKE — Related Products Slider (qrp-)
   ============================================================ */
.qrp-section {
    width: 100%;
    flex-basis: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 60px 0 20px;
    padding: 0 20px;
    box-sizing: border-box;
    overflow: visible;
}
.qrp-header {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 28px;
    border-bottom: 2px solid #16a34a;
    padding-bottom: 12px;
}
.qrp-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}
.qrp-subtitle {
    font-size: 14px;
    color: #16a34a;
    font-weight: 500;
}

/* Slider layout */
.qrp-slider-outer {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}
.qrp-track-wrap {
    overflow: hidden;
    flex: 1;
    min-width: 0;
    width: 100%;
}
.qrp-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

/* Arrow buttons */
.qrp-arrow {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #374151;
    transition: all 0.2s;
    z-index: 2;
}
.qrp-arrow:hover {
    border-color: #c9a456;
    color: #c9a456;
    background: #fffbf0;
}
.qrp-arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

/* Card */
.qrp-card {
    flex: 0 0 calc(25% - 15px);
    min-width: calc(25% - 15px);
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.25s, transform 0.25s;
    box-sizing: border-box;
}
.qrp-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.10);
    transform: translateY(-3px);
}
@media (max-width: 900px) {
    .qrp-card { flex: 0 0 calc(50% - 10px); min-width: calc(50% - 10px); }
}
@media (max-width: 640px) {
    /* On mobile: no slider, clean 2-col grid */
    .qrp-section { padding: 0 16px; }
    .qrp-slider-outer { flex-direction: column; gap: 0; }
    .qrp-arrow { display: none !important; }
    .qrp-track-wrap {
        overflow: visible !important;
        width: 100% !important;
    }
    .qrp-track {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
        transform: none !important;
        transition: none !important;
        width: 100% !important;
    }
    .qrp-card {
        flex: unset !important;
        min-width: unset !important;
        max-width: unset !important;
        width: 100% !important;
    }
}

/* Sale badge — matches homepage .onsale */
.qrp-sale-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: #EF4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    z-index: 2;
    line-height: 1.5;
}

/* Image — matches homepage aspect-ratio 1/1 */
.qrp-img-wrap {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f8f9fa;
}
.qrp-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.qrp-card:hover .qrp-img-wrap img {
    transform: scale(1.04);
}

/* Card body — matches homepage padding/gap */
.qrp-card-body {
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Stars row — matches .quintec-loop-rating */
.qrp-stars {
    display: flex;
    align-items: center;
    gap: 1px;
    padding: 0.5rem 1rem 0.25rem;
}
.qrp-review-count {
    font-size: 0.72rem;
    color: #6B7280;
    font-weight: 500;
    margin-left: 4px;
}

/* Subscribe line — matches .quintec-subscribe-line */
.qrp-subscribe {
    font-size: 0.78rem;
    color: #6B7280;
    padding: 0 1rem 0.25rem;
    margin: 0;
}

/* Product name — matches .woocommerce-loop-product__title */
.qrp-name {
    font-family: 'Poppins', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: #1A1A1A;
    padding: 0.875rem 1rem 0.25rem;
    margin: 0;
    line-height: 1.4;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.qrp-name:hover { color: #5B7C3F; }

/* Price — matches ul.products .price */
.qrp-price {
    padding: 0 1rem 0.25rem;
    color: #5B7C3F;
    font-weight: 700;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    margin: 0;
}
.qrp-price del {
    color: #9CA3AF;
    font-size: 0.82em;
    font-weight: 400;
    margin-right: 0.3em;
}
.qrp-price ins { text-decoration: none; }

/* Button — matches ul.products .button */
.qrp-btn {
    display: block;
    margin: auto 1rem 1rem;
    background: #5B7C3F;
    color: #fff;
    border: none;
    border-radius: 9999px;
    padding: 0.65rem 1rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background 0.22s, box-shadow 0.22s;
    cursor: pointer;
    margin-top: auto;
}
.qrp-btn:hover {
    background: #4A6833;
    box-shadow: 0 4px 12px rgba(91,124,63,0.3);
    color: #fff;
    text-decoration: none;
}

/* ===== MOBILE RESPONSIVE FIXES — Single Product Description ===== */

/* Prevent horizontal scroll at page root for product pages */
body.single-product,
body.single-product #page,
body.single-product #content {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

/* Container safety on mobile */
body.single-product .container,
body.single-product .quintec-woo-wrapper {
    box-sizing: border-box !important;
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
}

/* Prevent the whole page from horizontal scrolling */
.quintec-single-product {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

.quintec-single-product .quintec-woo-wrapper {
    overflow-x: hidden !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

/* Description & reviews sections: full-width on mobile, contained */
.qpp-description,
.qpp-reviews {
    width: 100% !important;
    max-width: 900px !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    padding: 0 16px !important;
}

/* Description body: all content contained, no overflow */
.qpp-desc-body {
    overflow-x: hidden !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* All images inside description stay within bounds */
.qpp-desc-body img,
.qpp-desc-body figure img,
.qpp-desc-body table,
.qpp-desc-body pre,
.qpp-desc-body iframe,
.qpp-desc-body video,
.qpp-desc-body embed {
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
}

/* Tables responsive: scroll horizontally within their own container */
.qpp-desc-body table {
    display: block !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Pre/code blocks: scroll within, don't push page */
.qpp-desc-body pre,
.qpp-desc-body code {
    white-space: pre-wrap !important;
    word-break: break-all !important;
    overflow-x: auto !important;
    max-width: 100% !important;
}

/* Product grid: prevent overflow on mobile */
.quintec-single-product div.product {
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

/* Product summary column: no overflow */
.quintec-single-product .summary,
.quintec-single-product .woocommerce-product-gallery {
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    min-width: 0 !important;
}

/* Related products section */
.qrp-section {
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: visible !important;
    padding: 0 16px !important;
}

/* Reviews overview: no overflow on small screens */
.qpp-reviews-overview {
    box-sizing: border-box !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* Pack/variant buttons: wrap on small screens */
.qpp-pack-buttons {
    flex-wrap: wrap !important;
}

/* ---- Mobile-specific overrides (<= 768px) ---- */
@media (max-width: 768px) {
    .quintec-single-product .quintec-woo-wrapper {
        padding: 16px 16px 40px !important;
    }

    .qpp-description,
    .qpp-reviews {
        padding: 0 0 !important;
        margin-top: 28px !important;
    }

    .qpp-desc-body {
        font-size: 14px !important;
        line-height: 1.75 !important;
    }

    .qpp-desc-body h2,
    .qpp-desc-body h3 {
        font-size: 16px !important;
        margin-top: 20px !important;
    }

    .quintec-single-product div.product {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .quintec-single-product .woocommerce-product-gallery {
        position: static !important;
    }

    .qpp-section-heading {
        font-size: 20px !important;
    }

    .qrp-section {
        padding: 0 !important;
        margin-top: 40px !important;
        overflow-x: visible !important;
    }
}

/* ===== RELATED PRODUCTS — 2-col grid on mobile ===== */
@media (max-width: 640px) {
    /* Kill the slider, become a static 2-col grid */
    .qrp-slider-outer {
        flex-direction: column !important;
        gap: 0 !important;
    }
    .qrp-arrow {
        display: none !important;
    }
    .qrp-track-wrap {
        overflow: visible !important;
        width: 100% !important;
    }
    .qrp-track {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
        transform: none !important;
        transition: none !important;
        flex-wrap: unset !important;
    }
    .qrp-card {
        flex: unset !important;
        min-width: unset !important;
        width: 100% !important;
    }
}
/* ===== END MOBILE RESPONSIVE FIXES ===== */