/**
 * BookRivo WooCommerce Single Product Page Styles
 *
 * Hero presentation, gallery, editorial tabs, specifications, mobile sticky bar, and FBT upsell pickgrid.
 * @package BookRivo
 */

/* ==========================================================================
   BookRivo Single Book UX Design System (Matching Approved Reference)
   ========================================================================== */


.bookrivo-single-product-page .notice {
  background: var(--green);
  color: #e8eee8;
  text-align: center;
  font-size: 12.5px;
  padding: 8px 16px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.bookrivo-single-product-page .wrap {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.bookrivo-single-product-page .bread {
  color: #818a83;
  font-size: 12.5px;
  padding: 18px 0 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.bookrivo-single-product-page .bread a {
  color: #586960;
  text-decoration: none;
  transition: color 0.15s;
}

.bookrivo-single-product-page .bread a:hover {
  color: var(--green);
}

.bookrivo-single-product-page .bread b {
  color: var(--green);
  font-weight: 700;
}

.bookrivo-single-product-page > .wrap > .product,
.bookrivo-single-product-page > .product {
  display: grid;
  grid-template-columns: minmax(280px, 410px) minmax(0, 1fr);
  gap: 44px;
  padding: 8px 0 42px;
  align-items: start;
}

/* Gallery Showcase */
.bookrivo-single-product-page .gallery {
  background: linear-gradient(155deg, #f6f7f1 0%, #efefe5 100%);
  border: 1px solid #e6e7dc;
  border-radius: 16px;
  padding: 36px 24px 26px;
  position: sticky;
  top: 96px;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  box-sizing: border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 8px 28px rgba(24, 57, 47, 0.04);
}

.bookrivo-single-product-page .gallery .badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: #c88b34;
  color: white;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.3px;
  z-index: 5;
}

/* Clean Flat Book Cover Presentation (No artificial 3D spines, rotations, or skew) */
.bookrivo-single-product-page .gallery .book {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: fit-content;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border: none !important;
  border-left: none !important;
  border-radius: 4px;
  background: #192723;
  color: white;
  transform: none !important;
  box-shadow: 0 8px 24px rgba(24, 57, 47, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.bookrivo-single-product-page .gallery .book:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 28px rgba(24, 57, 47, 0.16), 0 3px 8px rgba(0, 0, 0, 0.06);
}

/* Ensure all book formats (Hardcover, Paperback, Ebook, Pocket) render identically flat without artificial spines or overlays */
.bookrivo-single-product-page .gallery .book.binding-hardcover,
.bookrivo-single-product-page .gallery .book.binding-paperback,
.bookrivo-single-product-page .gallery .book.binding-ebook,
.bookrivo-single-product-page .gallery .book.binding-pocket {
  border: none !important;
  border-left: none !important;
  border-radius: 4px;
  transform: none !important;
  box-shadow: 0 8px 24px rgba(24, 57, 47, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
}

.bookrivo-single-product-page .gallery .book.binding-hardcover:hover,
.bookrivo-single-product-page .gallery .book.binding-paperback:hover,
.bookrivo-single-product-page .gallery .book.binding-ebook:hover,
.bookrivo-single-product-page .gallery .book.binding-pocket:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 28px rgba(24, 57, 47, 0.16), 0 3px 8px rgba(0, 0, 0, 0.06);
}

/* Eliminate artificial spine highlights, creases, and pseudo-element overlays */
.bookrivo-single-product-page .gallery .book::before,
.bookrivo-single-product-page .gallery .book::after,
.bookrivo-single-product-page .gallery .book.binding-hardcover::before,
.bookrivo-single-product-page .gallery .book.binding-hardcover::after,
.bookrivo-single-product-page .gallery .book.binding-paperback::before,
.bookrivo-single-product-page .gallery .book.binding-paperback::after,
.bookrivo-single-product-page .gallery .book.binding-ebook::before,
.bookrivo-single-product-page .gallery .book.binding-ebook::after,
.bookrivo-single-product-page .gallery .book.binding-pocket::before,
.bookrivo-single-product-page .gallery .book.binding-pocket::after {
  display: none !important;
  content: none !important;
}

.bookrivo-single-product-page .gallery .book .book-cover-img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
  object-position: center;
  background: transparent;
  border-radius: 4px;
  display: block;
}

.bookrivo-single-product-page .gallery .book small {
  z-index: 1;
  color: #dbbb80;
  letter-spacing: 2px;
  font-size: 11px;
  text-transform: uppercase;
}

.bookrivo-single-product-page .gallery .book strong {
  z-index: 1;
  font-family: var(--bookrivo-font-body);
  font-size: 26px;
  margin: 18px 0;
  padding: 0 12px;
  line-height: 1.25;
}

.bookrivo-single-product-page .gallery .book span {
  z-index: 1;
  color: #f5e4c5;
  font-size: 12px;
}

.bookrivo-single-product-page .gallery .thumbs {
  position: static;
  margin-top: 14px;
  margin-bottom: 0;
  display: flex;
  gap: 8px;
  z-index: 6;
  justify-content: center;
}

/* Gallery Sample Reading Button Placement & Style */
.bookrivo-single-product-page .gallery-sample-btn-wrap {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  width: 100%;
  z-index: 5;
}

.bookrivo-single-product-page .gallery-sample-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #ffffff;
  color: var(--green, #12372d);
  border: 1.5px solid #b8cbbd;
  border-radius: 8px;
  padding: 8px 18px;
  font-family: var(--bookrivo-font-body, system-ui, -apple-system, sans-serif);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(24, 57, 47, 0.05);
  text-decoration: none;
  box-sizing: border-box;
}

.bookrivo-single-product-page .gallery-sample-btn:hover {
  border-color: var(--green, #12372d);
  background: #f2f7f3;
  color: var(--green, #12372d);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(24, 57, 47, 0.09);
}

.bookrivo-single-product-page .gallery-sample-btn:focus-visible {
  outline: 2px solid var(--green, #12372d);
  outline-offset: 2px;
}

.bookrivo-single-product-page .gallery-sample-btn svg {
  color: #a87932;
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.bookrivo-single-product-page .gallery-sample-btn:hover svg {
  transform: scale(1.08);
}

.bookrivo-single-product-page .gallery .thumb {
  width: 36px;
  height: 45px;
  border: 2px solid white;
  border-radius: 4px;
  background: #333;
  color: white;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.15s, border-color 0.15s;
}

.bookrivo-single-product-page .gallery .thumb.active {
  border-color: var(--green);
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(21, 57, 46, 0.35);
}

.bookrivo-single-product-page .gallery .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #f5f2ea;
  display: block;
}

/* Info Column */
.bookrivo-single-product-page .info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
}

/* 1. Top Meta Cleanup: Single Compact Category Chip */
.bookrivo-single-product-page .info .pdp-kicker,
.bookrivo-single-product-page .info .kicker {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.bookrivo-single-product-page .info .pdp-kicker::before,
.bookrivo-single-product-page .info .kicker::before {
  display: none !important;
  content: none !important;
}

.bookrivo-single-product-page .info .kicker-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  background: #f5efe2;
  border: 1px solid #e6d8be;
  color: #8c6327;
  font-family: var(--bookrivo-font-body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-decoration: none;
  line-height: 1.3;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.bookrivo-single-product-page .info .kicker-chip:hover {
  background: #ecdfca;
  border-color: #d6c098;
  color: var(--green);
}

/* 2. Strong Product Title & Contributor Hierarchy */
.bookrivo-single-product-page .info h1 {
  font-family: var(--bookrivo-font-heading);
  font-size: clamp(24px, 2.75vw, 34px);
  margin: 2px 0 8px;
  line-height: 1.32;
  color: var(--green);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.bookrivo-single-product-page .info .by {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-family: var(--bookrivo-font-body);
  font-size: 14px;
  color: #54665c;
  margin-bottom: 14px;
  line-height: 1.55;
}

.bookrivo-single-product-page .info .by-group {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.bookrivo-single-product-page .info .by-label {
  color: #6b7b71;
  font-weight: 500;
}

.bookrivo-single-product-page .info .by-sep {
  color: #b4c0b8;
  font-weight: 700;
}

.bookrivo-single-product-page .info .by a {
  color: #1c583e;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dashed rgba(28, 88, 62, 0.35);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.bookrivo-single-product-page .info .by a:hover {
  color: var(--green);
  border-bottom-style: solid;
  border-bottom-color: var(--green);
}

/* Price & Availability Summary Bar */
.bookrivo-single-product-page .info .pdp-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 13px 16px;
  margin: 0 0 16px;
  background: #fbfaf6;
  border: 1px solid #e7e5dc;
  border-radius: 12px;
}

.bookrivo-single-product-page .info .price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  flex-wrap: wrap;
  font-family: var(--bookrivo-font-body);
}

.bookrivo-single-product-page .info .price strong {
  font-size: 30px;
  color: var(--green);
  font-weight: 700;
  line-height: 1.1;
}

.bookrivo-single-product-page .info .price .old {
  text-decoration: line-through;
  color: #8c968e;
  font-size: 16px;
  font-weight: 500;
}

.bookrivo-single-product-page .info .price .off {
  background: #faebd9;
  border: 1px solid #edd0af;
  color: #9e4f19;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.3;
  align-self: center;
}

.bookrivo-single-product-page .info .pdp-status-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.bookrivo-single-product-page .info .pdp-availability-pill,
.bookrivo-single-product-page .info .stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eaf5ee;
  border: 1px solid #cce5d4;
  color: #21683b;
  font-size: 12.5px;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.bookrivo-single-product-page .info .pdp-availability-pill .stock-dot,
.bookrivo-single-product-page .info .stock .stock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #258549;
  box-shadow: 0 0 0 3px rgba(37, 133, 73, 0.16);
}

.bookrivo-single-product-page .info .pdp-availability-pill.out-of-stock,
.bookrivo-single-product-page .info .stock.out-of-stock {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.bookrivo-single-product-page .info .pdp-availability-pill.out-of-stock .stock-dot,
.bookrivo-single-product-page .info .stock.out-of-stock .stock-dot {
  background: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.16);
}

.bookrivo-single-product-page .info .stars.pdp-review-jump {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 12.5px;
  text-decoration: none;
  color: #6b7870;
  transition: color 0.15s ease;
}

.bookrivo-single-product-page .info .stars.pdp-review-jump:hover {
  color: var(--green);
}

.bookrivo-single-product-page .info .stars .star-icons {
  color: #c58b2b;
  letter-spacing: 1px;
  font-size: 13px;
  line-height: 1;
}

.bookrivo-single-product-page .info .stars.is-no-rating {
  color: #5c6b61;
}

.bookrivo-single-product-page .info .stars .star-prompt-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8c9b91;
  transition: color 0.15s ease;
}

.bookrivo-single-product-page .info .stars.is-no-rating:hover .star-prompt-icon {
  color: #c58b2b;
}

.bookrivo-single-product-page .info .stars .star-label,
.bookrivo-single-product-page .info .stars .star-count {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 3. Highlighted Book Hook Card */
.bookrivo-single-product-page .info .book-hook-card {
  position: relative;
  background: linear-gradient(135deg, #f5f8f4 0%, #faf8f1 100%);
  border: 1px solid #dce5dc;
  border-left: 4px solid var(--green);
  border-radius: 10px;
  padding: 13px 16px 14px;
  margin: 0 0 18px;
  max-width: 100%;
  box-shadow: 0 2px 8px rgba(24, 57, 47, 0.03);
}

.bookrivo-single-product-page .info .book-hook-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--bookrivo-font-body);
  font-size: 11.5px;
  font-weight: 700;
  color: #9b6c28;
  margin-bottom: 5px;
  letter-spacing: 0.3px;
}

.bookrivo-single-product-page .info .book-hook-label svg {
  color: #b88435;
  flex-shrink: 0;
}

.bookrivo-single-product-page .info .book-hook-text {
  margin: 0;
  color: #21372c;
  font-family: var(--bookrivo-font-body);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.65;
}

/* 4 & 5. Purchase Action Area + Secondary Look Inside Button */
.bookrivo-single-product-page .info form.cart {
  margin: 0 0 12px;
}

.bookrivo-single-product-page .info .purchase {
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.bookrivo-single-product-page .info .purchase .actions {
  display: flex;
  flex: 1;
  min-width: 200px;
}

.bookrivo-single-product-page .info .purchase .actions .primary {
  width: 100%;
}

.bookrivo-single-product-page .info .purchase .qty {
  border: 1.5px solid #cfd9d1;
  display: inline-flex;
  border-radius: 9px;
  align-items: center;
  background: #ffffff;
  height: 46px;
  box-sizing: border-box;
  overflow: hidden;
  flex-shrink: 0;
}

.bookrivo-single-product-page .info .purchase .qty button {
  border: 0;
  background: none;
  padding: 0 13px;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  color: #173d2d;
  height: 100%;
  transition: background-color 0.15s ease;
}

.bookrivo-single-product-page .info .purchase .qty button:hover {
  background: #eff4ef;
}

.bookrivo-single-product-page .info .purchase .qty input.qty-input {
  width: 38px;
  min-width: 32px;
  text-align: center;
  border: none;
  background: transparent;
  font-family: var(--bookrivo-font-body);
  font-weight: 700;
  font-size: 14.5px;
  color: #173d2d;
  outline: none;
  padding: 0;
  -moz-appearance: textfield;
}

.bookrivo-single-product-page .info .purchase .qty input.qty-input::-webkit-outer-spin-button,
.bookrivo-single-product-page .info .purchase .qty input.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.bookrivo-single-product-page .primary {
  background: var(--green);
  color: #ffffff;
  border: 1.5px solid var(--green);
  border-radius: 9px;
  padding: 0 24px;
  min-width: 172px;
  font-family: var(--bookrivo-font-body);
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-sizing: border-box;
  box-shadow: 0 3px 10px rgba(24, 57, 47, 0.16);
}

.bookrivo-single-product-page .primary:hover {
  background: #214d3d;
  border-color: #214d3d;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(24, 57, 47, 0.22);
}

/* Suppress duplicate WooCommerce 'View Cart' links beside the button */
.bookrivo-single-product-page .purchase .added_to_cart,
.bookrivo-single-product-page .bundlebar .added_to_cart,
.bookrivo-campaign-landing-page .added_to_cart {
  display: none !important;
}

/* Single Product Button Icon & Spinner Elements */
.bookrivo-single-product-page .primary .bookrivo-btn-cart-icon,
.bookrivo-single-product-page .primary .bookrivo-btn-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bookrivo-single-product-page .primary .bookrivo-btn-spinner {
  width: 15px;
  height: 15px;
  border: 2.2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: bookrivoCartSpinner 0.6s linear infinite;
  flex-shrink: 0;
}

/* Pending State: "Adding..." with loading indicator */
.bookrivo-single-product-page .primary.is-loading {
  background: #234f3e !important;
  border-color: #234f3e !important;
  color: #ffffff !important;
  opacity: 0.92;
  cursor: wait !important;
  pointer-events: none;
  transform: none !important;
}

/* Successful Persistent State: "✓ Added to Cart" (Soft-Green Styling) */
.bookrivo-single-product-page .primary.is-in-cart,
.bookrivo-single-product-page .primary.added {
  background: #eef7f2 !important;
  color: #1b5e3a !important;
  border: 1.5px solid #a3d9b8 !important;
  box-shadow: 0 1px 3px rgba(27, 94, 58, 0.08) !important;
}

.bookrivo-single-product-page .primary.is-in-cart:hover,
.bookrivo-single-product-page .primary.added:hover {
  background: #e2f2e9 !important;
  color: #14492c !important;
  border-color: #88cfa4 !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(27, 94, 58, 0.12) !important;
}

.bookrivo-single-product-page .primary.is-in-cart .bookrivo-btn-check svg,
.bookrivo-single-product-page .primary.added .bookrivo-btn-check svg {
  stroke: #1b5e3a;
}

/* Out-of-Stock Disabled Button State */
.bookrivo-single-product-page .primary.is-out-of-stock {
  background: #64748b !important;
  border-color: #64748b !important;
  color: #ffffff !important;
  cursor: not-allowed !important;
  opacity: 0.85;
  box-shadow: none !important;
  transform: none !important;
}

/* Quantity Stepper Locked State when Simple Product is Already in Cart */
.bookrivo-single-product-page .info .purchase .qty.is-locked {
  background: #f4f7f4;
  border-color: #dce4de;
  opacity: 0.72;
}

.bookrivo-single-product-page .info .purchase .qty.is-locked button {
  cursor: not-allowed;
  color: #8fa095;
  pointer-events: none;
}

.bookrivo-single-product-page .info .purchase .qty.is-locked input.qty-input {
  color: #5c7064;
  pointer-events: none;
}

/* Toast Error Styling */
.bookrivo-single-product-page .toast.is-error {
  background: #b91c1c;
}

.bookrivo-single-product-page .outline,
.bookrivo-single-product-page .purchase .look-inside-button.bookrivo-look-inside-btn {
  position: static !important;
  top: auto !important;
  left: auto !important;
  z-index: auto !important;
  margin: 0 !important;
  border: 1.5px solid #b8cbbd !important;
  border-radius: 9px !important;
  padding: 0 18px !important;
  background: #ffffff !important;
  color: var(--green) !important;
  font-family: var(--bookrivo-font-body) !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  cursor: pointer;
  transition: all 0.18s ease;
  height: 46px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(24, 57, 47, 0.05) !important;
}

.bookrivo-single-product-page .outline:hover,
.bookrivo-single-product-page .purchase .look-inside-button.bookrivo-look-inside-btn:hover {
  border-color: var(--green) !important;
  background: #f2f7f3 !important;
  color: var(--green) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(24, 57, 47, 0.09) !important;
}

.bookrivo-single-product-page .purchase .look-inside-button.bookrivo-look-inside-btn svg {
  color: #a87932;
  flex-shrink: 0;
}

/* Supportive Multi-Book Shopping CTA Bar */
.bookrivo-single-product-page .info .pdp-multibook-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 9px 13px;
  margin: 0 0 16px;
  background: #f8faf8;
  border: 1px dashed #cbd9ce;
  border-radius: 9px;
}

.bookrivo-single-product-page .info .multibook-copy {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: #52655a;
  font-weight: 500;
}

.bookrivo-single-product-page .info .multibook-copy svg {
  color: #266b49;
  flex-shrink: 0;
}

.bookrivo-single-product-page .info .multibook-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 0;
  padding: 2px 0;
  color: var(--green);
  font-family: var(--bookrivo-font-body);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border-bottom: 1.5px solid rgba(24, 57, 47, 0.35);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.bookrivo-single-product-page .info .multibook-cta-link:hover {
  color: #9e6d25;
  border-bottom-color: #9e6d25;
}

.bookrivo-single-product-page .info .multibook-cta-link .cta-text-full {
  display: inline;
}

.bookrivo-single-product-page .info .multibook-cta-link .cta-text-short {
  display: none;
}

/* 6. Redesigned Trust/Service Highlights (3 Compact Mini-Cards) */
.bookrivo-single-product-page .info .pdp-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}

.bookrivo-single-product-page .info .pdp-trust-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  background: #ffffff;
  border: 1px solid #e4eae4;
  border-radius: 9px;
  box-shadow: 0 1px 2px rgba(24, 57, 47, 0.03);
}

.bookrivo-single-product-page .info .pdp-trust-card .trust-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #eff5f0;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bookrivo-single-product-page .info .pdp-trust-card .trust-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.bookrivo-single-product-page .info .pdp-trust-card .trust-text strong {
  font-family: var(--bookrivo-font-body);
  font-size: 12px;
  font-weight: 700;
  color: #1c3a2e;
  line-height: 1.25;
}

.bookrivo-single-product-page .info .pdp-trust-card .trust-text small {
  font-family: var(--bookrivo-font-body);
  font-size: 10.5px;
  color: #6b7c72;
  line-height: 1.3;
  margin-top: 1px;
}

/* 7. Redesigned Quick Book Specs (Polished Mini-Spec Cards Grid) */
.bookrivo-single-product-page .info .pdp-quick-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  gap: 10px;
  margin: 0 0 22px;
}

.bookrivo-single-product-page .info .spec-mini-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  background: #faf9f5;
  border: 1px solid #e6e4da;
  border-radius: 9px;
}

.bookrivo-single-product-page .info .spec-mini-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #f1eadb;
  color: #966827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bookrivo-single-product-page .info .spec-mini-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.bookrivo-single-product-page .info .spec-mini-label {
  font-family: var(--bookrivo-font-body);
  font-size: 11px;
  color: #707c74;
  font-weight: 500;
  line-height: 1.2;
}

.bookrivo-single-product-page .info .spec-mini-value {
  font-family: var(--bookrivo-font-body);
  font-size: 13px;
  color: #18392f;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2px;
}

/* 8. Product Tabs Polish & Selective Editorial Serif Typography */
.bookrivo-single-product-page .info .tabnav {
  border-bottom: 1.5px solid #e3e8e3;
  display: flex;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.bookrivo-single-product-page .info .tabnav button {
  background: transparent;
  border: 0;
  border-bottom: 2.5px solid transparent;
  padding: 10px 14px;
  color: #5f7065;
  font-family: var(--bookrivo-font-body);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  border-radius: 8px 8px 0 0;
  outline: none;
  margin-bottom: -1.5px;
}

.bookrivo-single-product-page .info .tabnav button:hover {
  color: var(--green);
  background: #f5f8f5;
}

.bookrivo-single-product-page .info .tabnav button.active {
  color: var(--green);
  font-weight: 700;
  background: #f4f7f4;
  border-bottom: 2.5px solid var(--green);
}

.bookrivo-single-product-page .info .tabcontent-wrap {
  margin-top: 16px;
  background: #ffffff;
  border: 1px solid #e7ece7;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 2px 10px rgba(24, 57, 47, 0.02);
}

.bookrivo-single-product-page .info .description {
  font-family: var(--bookrivo-font-body);
  font-size: 14px;
  color: #2f4238;
  max-width: 780px;
  line-height: 1.75;
}

/* Global Noto Sans Bengali for long-form description & flap text */
.bookrivo-single-product-page .info .pdp-editorial-prose {
  font-family: var(--bookrivo-font-editorial);
  font-size: 15px;
  color: #26382f;
  line-height: 1.85;
}

.bookrivo-single-product-page .info .pdp-editorial-prose p,
.bookrivo-single-product-page .info .description p {
  margin: 0 0 14px;
}

.bookrivo-single-product-page .info .pdp-editorial-prose p:last-child,
.bookrivo-single-product-page .info .description p:last-child {
  margin-bottom: 0;
}

/* Original Flap Copy Card */
.bookrivo-single-product-page .info .flap-copy-card {
  background: #fdfbf6;
  border: 1px solid #ede4d1;
  border-radius: 10px;
  padding: 16px 18px;
}

.bookrivo-single-product-page .info .flap-copy-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--bookrivo-font-body);
  font-size: 11.5px;
  font-weight: 700;
  color: #9a6b26;
  background: #f6eedc;
  border: 1px solid #e6d6b8;
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 12px;
}

/* Book Details / Specifications Table */
.bookrivo-single-product-page .info .bookrivo-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--bookrivo-font-body);
  font-size: 13.5px;
}

.bookrivo-single-product-page .info .bookrivo-specs-table tr {
  border-bottom: 1px solid #edf2ed;
}

.bookrivo-single-product-page .info .bookrivo-specs-table tr:last-child {
  border-bottom: none;
}

.bookrivo-single-product-page .info .bookrivo-specs-table th {
  text-align: left;
  padding: 10px 12px;
  color: #586b5f;
  font-weight: 600;
  width: 36%;
  background: #fafcfa;
  border-radius: 6px 0 0 6px;
}

.bookrivo-single-product-page .info .bookrivo-specs-table td {
  padding: 10px 14px;
  color: #173d2d;
  font-weight: 700;
}

/* Available at Other Stores Tab */
.bookrivo-single-product-page .info .bookrivo-ext-stores-wrap {
  padding: 4px 0;
}

.bookrivo-single-product-page .info .ext-store-lead {
  font-family: var(--bookrivo-font-body);
  font-size: 13.5px;
  color: #54665b;
  margin: 0 0 14px;
}

.bookrivo-single-product-page .info .ext-store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}

.bookrivo-single-product-page .info .ext-store-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  background: #fbfcfa;
  border: 1px solid #d8e3da;
  border-radius: 9px;
  text-decoration: none;
  color: #173d2d;
  font-family: var(--bookrivo-font-body);
  font-size: 13.5px;
  font-weight: 700;
  transition: all 0.16s ease;
}

.bookrivo-single-product-page .info .ext-store-card:hover {
  background: #f2f7f3;
  border-color: var(--green);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(24, 57, 47, 0.06);
}

.bookrivo-single-product-page .info .ext-store-cta {
  font-size: 12px;
  color: #a6742b;
  font-weight: 700;
}

/* Sections */
.bookrivo-single-product-page .section {
  padding: 38px 0;
  border-top: 1px solid #eaede7;
}

.bookrivo-single-product-page .sectop {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.bookrivo-single-product-page .eyebrow {
  font-size: 11px;
  color: #bc883b;
  letter-spacing: 2px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.bookrivo-single-product-page .section h2 {
  font-family: var(--bookrivo-font-heading);
  font-size: 25px;
  line-height: 1.3;
  margin: 4px 0;
  color: var(--green);
  font-weight: 700;
}

.bookrivo-single-product-page .section .sub {
  font-size: 13px;
  color: #718076;
}

/* Upsell Multi-Book Section */
.bookrivo-single-product-page .upsell {
  background: var(--paper);
}

.bookrivo-single-product-page .pickgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.bookrivo-single-product-page .pick {
  border: 1px solid #e2e8e2;
  border-radius: 12px;
  padding: 14px 16px;
  background: #ffffff;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  box-sizing: border-box;
}

.bookrivo-single-product-page .pick:hover {
  border-color: #a7c0af;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(18, 55, 45, 0.06);
}

.bookrivo-single-product-page .pick.checked {
  border-color: #5f9272;
  background: #f6fbf7;
  box-shadow: 0 0 0 1px #5f9272, 0 3px 10px rgba(95, 146, 114, 0.1);
}

.bookrivo-single-product-page .pick .check {
  accent-color: #12372D;
  width: 18px;
  height: 18px;
  position: absolute;
  right: 12px;
  top: 12px;
  cursor: pointer;
  margin: 0;
  z-index: 2;
}

/* Front Cover Container & Image Presentation */
.bookrivo-single-product-page .fbt-cover-container,
.bookrivo-single-product-page .mini-book {
  flex: 0 0 76px;
  width: 76px;
  height: 110px;
  background: #f7f5f0;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 6px;
  padding: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: none;
  box-sizing: border-box;
}

.bookrivo-single-product-page .fbt-cover-container img,
.bookrivo-single-product-page .mini-book img,
.bookrivo-single-product-page .fbt-cover-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
  display: block;
  border-radius: 4px;
}

.bookrivo-single-product-page .fbt-cover-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #12372D;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 6px;
  border-radius: 4px;
}

.bookrivo-single-product-page .pbody {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bookrivo-single-product-page .ptitle {
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.4;
  color: #12372D;
  margin: 0 0 3px;
  padding-right: 22px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.bookrivo-single-product-page .pmeta {
  color: #6f7a74;
  font-size: 11px;
  font-weight: 500;
  margin: 0 0 6px;
}

.bookrivo-single-product-page .pprice {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  line-height: 1.2;
}

.bookrivo-single-product-page .fbt-sale-price,
.bookrivo-single-product-page .fbt-regular-price-only {
  font-size: 15px;
  font-weight: 800;
  color: #12372D;
  text-decoration: none;
}

.bookrivo-single-product-page .fbt-regular-price {
  font-size: 12px;
  color: #8c9690;
  text-decoration: line-through;
  font-weight: 500;
}

.bookrivo-single-product-page .fbt-discount-pill {
  font-size: 10px;
  font-weight: 700;
  background: rgba(199, 154, 87, 0.15);
  color: #996a2c;
  padding: 1px 5px;
  border-radius: 3px;
  line-height: 1.3;
}

/* FBT Dynamic Summary Bar */
.bookrivo-single-product-page .bundlebar {
  margin-top: 20px;
  background: #f4f8f5;
  border: 1px solid #d5e2d7;
  border-radius: 12px;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  box-sizing: border-box;
}

.bookrivo-single-product-page .bundlebar-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bookrivo-single-product-page .bundlebar-count {
  font-size: 12px;
  font-weight: 600;
  color: #567261;
}

.bookrivo-single-product-page .bundlebar-financials {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.bookrivo-single-product-page .bundlebar-total-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.bookrivo-single-product-page .bundlebar-cur-total {
  font-size: 26px;
  font-weight: 900;
  color: #12372D;
  line-height: 1.1;
}

.bookrivo-single-product-page .bundlebar-reg-total {
  font-size: 15px;
  font-weight: 500;
  color: #8c9690;
  text-decoration: line-through;
}

.bookrivo-single-product-page .bundlebar-savings-row {
  display: inline-flex;
  align-items: center;
}

.bookrivo-single-product-page .bundlebar-savings-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(18, 55, 45, 0.08);
  color: #12372D;
  border: 1px solid rgba(18, 55, 45, 0.15);
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.bookrivo-single-product-page .bundlebar-savings-badge svg {
  flex-shrink: 0;
  color: #12372D;
}

.bookrivo-single-product-page .bundlebar-savings-badge strong {
  font-weight: 800;
  color: #12372D;
}

.bookrivo-single-product-page .bundlebar-note {
  font-size: 11px;
  color: #65796d;
}

.bookrivo-single-product-page .bundlebar-cta {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.bookrivo-single-product-page .bundlebar-cta button.primary {
  padding: 13px 24px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  white-space: nowrap;
  font-family: 'Noto Sans Bengali', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.bookrivo-single-product-page .bundlebar-cta button.primary.is-success,
.bookrivo-single-product-page .bundlebar-cta button.primary.is-in-cart {
  background: #15803d !important;
  border-color: #15803d !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(21, 128, 61, 0.28) !important;
  cursor: default;
}

.bookrivo-single-product-page .bundlebar-cta button.primary.is-success:hover,
.bookrivo-single-product-page .bundlebar-cta button.primary.is-in-cart:hover {
  background: #166534 !important;
  border-color: #166534 !important;
  color: #ffffff !important;
}

.bookrivo-single-product-page .bundlebar-cta button.primary.is-loading {
  background: #234f3e !important;
  border-color: #234f3e !important;
  color: #ffffff !important;
  opacity: 0.92;
  cursor: wait !important;
  pointer-events: none;
}

.bookrivo-single-product-page .bundlebar-cta .fbt-feedback-msg {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  margin-top: 8px;
  padding: 6px 12px;
  border-radius: 6px;
  font-family: 'Noto Sans Bengali', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.bookrivo-single-product-page .bundlebar-cta .fbt-feedback-msg.is-error {
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.bookrivo-single-product-page .bundlebar-cta .fbt-feedback-msg.is-warning {
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
}

/* Recommendations Grid */
.bookrivo-single-product-page .recs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.bookrivo-single-product-page .rec {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  padding: 14px;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.bookrivo-single-product-page .rec:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(24, 53, 45, 0.06);
}

/* Mobile Sticky Bar (Hidden by default on desktop) */
.bookrivo-single-product-page .sticky {
  display: none !important;
}

/* Interactive Toast */
.bookrivo-single-product-page .toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: var(--green);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  display: none;
  z-index: 1000;
  font-size: 13.5px;
  font-weight: 700;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .bookrivo-single-product-page > .wrap > .product,
  .bookrivo-single-product-page > .product {
    grid-template-columns: minmax(250px, 340px) minmax(0, 1fr);
    gap: 32px;
  }
  .bookrivo-single-product-page .info .pdp-trust-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 850px) {
  .bookrivo-single-product-page > .wrap > .product,
  .bookrivo-single-product-page > .product {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 24px;
  }
  .bookrivo-single-product-page .gallery {
    position: relative;
    top: auto;
    min-height: 360px;
    padding: 28px 20px 24px;
  }
  .bookrivo-single-product-page .pickgrid {
    grid-template-columns: 1fr 1fr;
  }
  .bookrivo-single-product-page .recs {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  /* 1. Mobile Delivery Upsell Reminder */
  .bookrivo-single-product-page .info .pdp-multibook-bar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 7px 11px 8px;
    margin: 0 0 14px;
    border-radius: 8px;
    border: 1px dashed #cbd9ce;
    background: #f8faf8;
  }
  .bookrivo-single-product-page .info .multibook-copy {
    font-size: 11.5px;
    line-height: 1.35;
    gap: 6px;
    color: #45584d;
  }
  .bookrivo-single-product-page .info .multibook-copy svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }
  .bookrivo-single-product-page .info .multibook-cta-link {
    font-size: 11.5px;
    padding: 0;
    margin-left: 20px;
    line-height: 1.3;
  }
  .bookrivo-single-product-page .info .multibook-cta-link .cta-text-full {
    display: none;
  }
  .bookrivo-single-product-page .info .multibook-cta-link .cta-text-short {
    display: inline;
  }

  /* 2. Mobile Delivery Benefits: ONE Compact Vertically Stacked Group */
  .bookrivo-single-product-page .info .pdp-trust-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #ffffff;
    border: 1px solid #dce4dd;
    border-radius: 9px;
    overflow: hidden;
    margin: 0 0 14px;
    box-shadow: 0 1px 2px rgba(24, 57, 47, 0.03);
  }
  .bookrivo-single-product-page .info .pdp-trust-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 12px;
    min-height: 38px;
    height: 38px;
    box-sizing: border-box;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }
  .bookrivo-single-product-page .info .pdp-trust-card + .pdp-trust-card {
    border-top: 1px solid #edf2ee;
  }
  .bookrivo-single-product-page .info .pdp-trust-card .trust-icon {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    background: #eef5f0;
    color: var(--green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .bookrivo-single-product-page .info .pdp-trust-card .trust-icon svg {
    width: 13px;
    height: 13px;
  }
  .bookrivo-single-product-page .info .pdp-trust-card .trust-text {
    flex-direction: row;
    align-items: center;
  }
  .bookrivo-single-product-page .info .pdp-trust-card .trust-text strong {
    font-size: 12.5px;
    font-weight: 600;
    color: #1a382b;
    line-height: 1.2;
  }
  /* On mobile ONLY, visually hide redundant secondary descriptions */
  .bookrivo-single-product-page .info .pdp-trust-card .trust-text small {
    display: none;
  }

  /* 3. Mobile Book Information: Compact 2-Column Grid */
  .bookrivo-single-product-page .info .pdp-quick-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 16px;
  }
  .bookrivo-single-product-page .info .spec-mini-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    min-height: 40px;
    background: #faf9f5;
    border: 1px solid #e7e5dc;
    border-radius: 7px;
    box-sizing: border-box;
  }
  .bookrivo-single-product-page .info .spec-mini-icon {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: #f1eadb;
    color: #966827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .bookrivo-single-product-page .info .spec-mini-icon svg {
    width: 12px;
    height: 12px;
  }
  .bookrivo-single-product-page .info .spec-mini-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  .bookrivo-single-product-page .info .spec-mini-label {
    font-size: 10px;
    color: #6c7870;
    line-height: 1.15;
    font-weight: 500;
  }
  .bookrivo-single-product-page .info .spec-mini-value {
    font-size: 12px;
    font-weight: 700;
    color: #173d2d;
    line-height: 1.25;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* 4. Product Tabs on Mobile */
  .bookrivo-single-product-page .info .tabnav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 5px;
    padding: 2px 2px 6px;
    margin: 4px 0 0;
    border-bottom: 1.5px solid #e3e8e3;
    -webkit-mask-image: linear-gradient(to right, black calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(to right, black calc(100% - 24px), transparent 100%);
  }
  .bookrivo-single-product-page .info .tabnav::-webkit-scrollbar {
    display: none;
  }
  .bookrivo-single-product-page .info .tabnav button {
    white-space: nowrap;
    padding: 7px 12px;
    font-size: 12.5px;
    font-weight: 600;
    flex-shrink: 0;
    border-radius: 6px;
    border: 0;
    background: transparent;
    border-bottom: 2px solid transparent;
    transition: all 0.15s ease;
  }
  .bookrivo-single-product-page .info .tabnav button.active {
    color: var(--green);
    background: #eaf1ec;
    font-weight: 700;
    border-bottom-color: var(--green);
  }

  /* 5. Mobile Sales Hook Card */
  .bookrivo-single-product-page .info .book-hook-card {
    padding: 10px 13px 11px;
    margin: 0 0 14px;
    border-radius: 8px;
  }
  .bookrivo-single-product-page .info .book-hook-label {
    font-size: 11px;
    margin-bottom: 4px;
  }
  .bookrivo-single-product-page .info .book-hook-text {
    font-size: 13.5px;
    line-height: 1.55;
    word-break: break-word;
  }
}

@media (max-width: 560px) {
  .bookrivo-single-product-page .wrap {
    padding: 0 15px;
  }
  .bookrivo-single-product-page .bread {
    font-size: 11px;
    padding: 12px 0 10px;
  }
  .bookrivo-single-product-page .gallery {
    min-height: auto;
    padding: 22px 14px 20px;
  }
  .bookrivo-single-product-page .gallery .book {
    transform: none !important;
    max-height: 280px;
    max-width: 240px;
  }
  .bookrivo-single-product-page .gallery .book .book-cover-img {
    max-height: 280px;
    max-width: 240px;
  }
  .bookrivo-single-product-page .info .pdp-summary-bar {
    padding: 11px 13px;
    gap: 10px;
  }
  .bookrivo-single-product-page .info .price strong {
    font-size: 26px;
  }
  .bookrivo-single-product-page .info .purchase {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
  }
  .bookrivo-single-product-page .info .purchase.purchase-out-of-stock {
    grid-template-columns: 1fr;
  }
  .bookrivo-single-product-page .info .purchase .primary {
    width: 100%;
    min-width: 0;
    padding: 0 14px;
    font-size: 13.5px;
  }
  .bookrivo-single-product-page .sticky .primary {
    min-width: 0;
    height: 38px;
  }
  .bookrivo-single-product-page .info .purchase .look-inside-button.bookrivo-look-inside-btn {
    grid-column: 1 / -1;
    width: 100%;
  }
  .bookrivo-single-product-page .info .tabcontent-wrap {
    padding: 14px 15px;
  }
  .bookrivo-single-product-page .pickgrid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .bookrivo-single-product-page .section {
    padding: 28px 0;
  }
  .bookrivo-single-product-page .section h2 {
    font-size: 22px;
  }
  .bookrivo-single-product-page .bundlebar {
    align-items: stretch;
    flex-direction: column;
    padding: 16px;
    gap: 14px;
  }
  .bookrivo-single-product-page .fbt-cover-container,
  .bookrivo-single-product-page .pick .mini-book {
    width: 68px;
    height: 98px;
    flex: 0 0 68px;
  }
  .bookrivo-single-product-page .bundlebar-cta,
  .bookrivo-single-product-page .bundlebar-cta button.primary,
  .bookrivo-single-product-page .bundlebar button {
    width: 100%;
  }
  .bookrivo-single-product-page .recs {
    gap: 10px;
  }
  .bookrivo-single-product-page .rec {
    padding: 10px;
  }
  .bookrivo-single-product-page .rec .mini-book {
    width: 86px;
    height: 127px;
  }
  .bookrivo-single-product-page > .wrap > .product,
  .bookrivo-single-product-page > .product {
    padding-bottom: 20px;
  }
}

/* ==========================================================================
   MOBILE STICKY ADD TO CART BAR (Up to 767px)
   ========================================================================== */
@media (max-width: 767px) {
  .bookrivo-single-product-page .sticky {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    transform: translateY(105%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, visibility 0.28s ease;
  }

  body.pdp-sticky-active .bookrivo-single-product-page .sticky,
  .bookrivo-single-product-page.pdp-sticky-active .sticky {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .bookrivo-single-product-page .sticky-price-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    line-height: 1.15;
    flex-shrink: 0;
    min-width: 0;
  }

  .bookrivo-single-product-page .sticky-price-wrap .sticky-price {
    font-size: 19px;
    font-weight: 800;
    color: var(--green, #12372d);
    font-family: var(--bookrivo-font-body, system-ui, sans-serif);
    letter-spacing: -0.01em;
  }

  .bookrivo-single-product-page .sticky-price-wrap .sticky-price-old {
    font-size: 12px;
    color: #718096;
    text-decoration: line-through;
    margin-top: 1px;
    font-weight: 500;
  }

  .bookrivo-single-product-page .sticky-btn-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1 1 auto;
    min-width: 0;
  }

  .bookrivo-single-product-page .sticky .primary.sticky-buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    max-width: 220px;
    min-height: 44px;
    padding: 10px 18px;
    background: var(--green, #12372d);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-family: var(--bookrivo-font-body, system-ui, sans-serif);
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(18, 55, 45, 0.15);
    transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
  }

  .bookrivo-single-product-page .sticky .primary.sticky-buy-btn:hover {
    background: #0d2b23;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(18, 55, 45, 0.22);
  }

  .bookrivo-single-product-page .sticky .primary.sticky-buy-btn:active {
    transform: translateY(0);
  }

  .bookrivo-single-product-page .sticky .primary.sticky-buy-btn.is-out-of-stock {
    background: #e2e8f0 !important;
    color: #94a3b8 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .bookrivo-single-product-page .sticky .primary.sticky-buy-btn.is-in-cart {
    background: #0d2b23;
  }

  /* WhatsApp Collision Prevention on Single Product */
  .whatsapp-sticky-icon {
    transition: bottom 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s ease !important;
  }

  body.pdp-sticky-active .whatsapp-sticky-icon {
    bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.single-product {
    padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 360px) {
  .bookrivo-single-product-page .sticky {
    padding: 8px 12px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    gap: 8px;
  }
  .bookrivo-single-product-page .sticky-price-wrap .sticky-price {
    font-size: 16.5px;
  }
  .bookrivo-single-product-page .sticky-price-wrap .sticky-price-old {
    font-size: 11px;
  }
  .bookrivo-single-product-page .sticky .primary.sticky-buy-btn {
    font-size: 13px;
    padding: 9px 12px;
    min-height: 42px;
  }
}
