/* ==========================================================================
   Single product bundle
   ========================================================================== */

.pc-product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }

/* The info column is the taller of the two, so the gallery is the one that
   can usefully stick; making both sticky would do nothing for the column
   that is actually scrolling. */
.pc-product-gallery { position: sticky; top: 96px; }

/* ---------- Gallery ---------- */
.pc-product-media {
  position: relative; /* anchors the gallery arrows */
  border-radius: 26px; aspect-ratio: 1 / 1; display: flex; align-items: center;
  justify-content: center; overflow: hidden;
}
.pc-product-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-product-mono { font-family: var(--pc-serif); font-size: 130px; color: rgba(46, 42, 34, .3); }

/* ---------- Gallery arrows ---------- */
.pc-gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 40px; height: 40px; border: 1px solid var(--pc-border); border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--pc-ink); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 12px rgba(46, 42, 34, .12);
  transition: background .15s, transform .15s;
}
.pc-gallery-arrow:hover { background: var(--pc-yellow); transform: translateY(-50%) scale(1.06); }
.pc-gallery-prev { left: 14px; }
.pc-gallery-next { right: 14px; }
@media (max-width: 620px) {
  .pc-gallery-arrow { width: 34px; height: 34px; }
  .pc-gallery-prev { left: 10px; }
  .pc-gallery-next { right: 10px; }
}

.pc-product-thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; justify-content: center; }
.pc-thumb {
  width: 72px; height: 72px; border-radius: 14px; overflow: hidden; padding: 0; cursor: pointer;
  border: 2px solid var(--pc-border); background: var(--pc-surface);
}
.pc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-thumb:hover { border-color: var(--pc-border2); }
.pc-thumb.active { border-color: var(--pc-yellow); }

/* ---------- Info ---------- */
.pc-product-title {
  font-size: 38px; margin: 0 0 14px; padding-bottom: 14px; line-height: 1.1;
  border-bottom: 1px solid var(--pc-border);
}

/* Star rating — two stacked rows, the gold one clipped to the score. */
.pc-rating { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; flex-wrap: wrap; }
.pc-stars { position: relative; display: inline-block; line-height: 1; white-space: nowrap; }
.pc-stars-off, .pc-stars-on { font-size: 19px; letter-spacing: 3px; }
.pc-stars-off { color: #E2DACA; }
.pc-stars-on {
  position: absolute; top: 0; left: 0; overflow: hidden;
  color: var(--pc-gold); white-space: nowrap;
}
.pc-rating-score { font-weight: 800; font-size: 14px; color: var(--pc-ink); }
.pc-rating-count { font-size: 13px; color: var(--pc-muted2); font-weight: 700; }
.pc-rating-count::before { content: '·'; margin-right: 8px; opacity: .6; }

/* Price sits under the short description. */
.pc-product-price {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  font-family: var(--pc-serif); font-style: italic; font-weight: 700;
  font-size: 34px; color: var(--pc-ink); margin: 0 0 20px;
}
.pc-product-price .woocommerce-Price-amount { font-family: var(--pc-serif); }
.pc-product-price del { color: var(--pc-muted3); font-size: .68em; }
.pc-product-price ins { text-decoration: none; }
.pc-price-prefix {
  font-family: var(--pc-sans); font-style: normal; font-weight: 800;
  font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--pc-muted2);
}
.pc-price-value { transition: opacity .18s ease; }
.pc-product-price.is-updating .pc-price-value { opacity: .35; }

.pc-product-stock { font-size: 13px; font-weight: 800; margin-bottom: 18px; }
.pc-product-stock.in { color: var(--pc-teal); }
.pc-product-stock.out { color: #C0562E; }

.pc-product-desc { font-size: 16px; line-height: 1.65; color: #5F5747; margin: 0 0 24px; }
.pc-product-desc p { margin: 0 0 12px; }

/* Short-description bullets become a tick list: teal tick, bold feature
   name in ink, explanation in muted grey. */
.pc-product-desc ul { list-style: none; margin: 0 0 12px; padding: 0; }
.pc-product-desc ul li {
  position: relative; padding: 5px 0 5px 28px; font-size: 15px;
  line-height: 1.55; color: var(--pc-muted);
}
.pc-product-desc ul li::before {
  content: "✓"; position: absolute; left: 2px; top: 5px;
  color: var(--pc-teal); font-weight: 800;
}
.pc-product-desc ul li strong,
.pc-product-desc ul li b { color: var(--pc-ink); font-weight: 800; }


/* ==========================================================================
   Buy box — our own markup, not WooCommerce's variations_form
   ========================================================================== */
/* "Decide" area — price, buy box and the checkout promise grouped into one
   soft card, so it separates from the "read" content above it. */
.pc-buy-card {
  background: var(--pc-surface); border: 1px solid var(--pc-border);
  border-radius: var(--pc-radius); padding: 24px;
  box-shadow: 0 3px 16px rgba(46, 42, 34, .06);
  margin-bottom: 24px;
}
.pc-buy-card .pc-product-price { margin-top: 0; }
.pc-buy-card .pc-product-usp { margin-bottom: 0; }

.pc-buy { margin-bottom: 24px; }
.pc-buy-card .pc-buy:last-of-type { margin-bottom: 0; }

/* ---------- Variation dropdowns ---------- */
.pc-buy-options { margin-bottom: 18px; }
.pc-buy-field + .pc-buy-field { margin-top: 14px; }
.pc-buy-field label {
  display: block; margin-bottom: 7px; font-weight: 800; font-size: 12px;
  text-transform: uppercase; letter-spacing: .06em; color: var(--pc-muted2);
}
.pc-buy select {
  width: 100%; padding: 15px; border: 1px solid var(--pc-border2); border-radius: 13px;
  background: var(--pc-surface); font-family: var(--pc-sans); font-size: 15px;
  color: var(--pc-ink); appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%232E2A22' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.pc-buy select:focus { border-color: var(--pc-teal); outline: none; }
.pc-buy-reset {
  margin-top: 10px; background: none; border: none; padding: 0; cursor: pointer;
  font-family: var(--pc-sans); font-size: 13px; font-weight: 800; color: var(--pc-teal);
}

/* ---------- Quantity + button + view basket, one row ---------- */
.pc-buy-row { display: flex; align-items: stretch; gap: 10px; flex-wrap: nowrap; }

.pc-buy-qty {
  flex: 0 0 auto; display: flex; align-items: center;
  border: 1px solid var(--pc-border2); border-radius: 13px; background: var(--pc-surface); overflow: hidden;
}
.pc-qty-btn {
  width: 38px; align-self: stretch; border: none; background: none; cursor: pointer;
  font-size: 18px; font-weight: 800; color: var(--pc-muted); line-height: 1;
}
.pc-qty-btn:hover { background: var(--pc-surface2); color: var(--pc-ink); }
/* The extra `input` in the selector outranks the global input[type="number"]
   rule, whose padding and border were clipping two-digit quantities. */
.pc-buy-qty input.pc-qty-input {
  width: 52px; border: none; border-radius: 0; text-align: center;
  padding: 15px 2px; background: none;
  font-family: var(--pc-sans); font-weight: 800; font-size: 16px; color: var(--pc-ink);
  -moz-appearance: textfield;
}
.pc-qty-input::-webkit-outer-spin-button,
.pc-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pc-qty-input:focus { outline: none; }

.pc-buy-btn {
  flex: 1 1 auto; min-width: 0; min-height: 56px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: none; border-radius: 13px; cursor: pointer;
  background: var(--pc-ink); color: var(--pc-bg);
  font-family: var(--pc-sans); font-weight: 800; font-size: 16px;
  transition: background .15s, opacity .15s;
}
.pc-buy-btn:hover { background: var(--pc-ink-soft); }
.pc-buy-btn:disabled { background: var(--pc-muted3); cursor: not-allowed; opacity: .7; }

.pc-buy-spinner { display: none; width: 17px; height: 17px; flex: none; }
.pc-buy-btn.is-loading .pc-buy-spinner {
  display: block; border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff; border-radius: 50%; animation: pc-spin .7s linear infinite;
}
@keyframes pc-spin { to { transform: rotate(360deg); } }

.pc-view-cart {
  flex: 0 0 auto; display: none; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 20px; border-radius: 13px; white-space: nowrap;
  border: 1px solid var(--pc-border2); background: var(--pc-surface);
  color: var(--pc-ink); font-weight: 800; font-size: 15px;
}
.pc-view-cart:hover { background: var(--pc-surface2); color: var(--pc-ink); }
.pc-view-cart.is-visible { display: inline-flex; }

/* ---------- Messages ---------- */
.pc-buy-msg { display: none; margin: 12px 0 0; font-size: 14px; font-weight: 700; padding: 12px 15px; border-radius: 12px; }
.pc-buy-msg.is-error { display: block; background: #FFF1ED; color: #A8452C; }
.pc-buy-msg.is-info { display: block; background: var(--pc-yellow-soft); color: #6B5A1F; }
.pc-buy-oos { font-weight: 800; color: #C0562E; }

/* ---------- Service promises ---------- */
.pc-product-usp {
  display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 22px;
  border: 1px solid var(--pc-border); border-radius: 18px;
  background: var(--pc-surface); overflow: hidden;
}
.pc-usp {
  display: flex; align-items: center; gap: 11px; padding: 16px 14px;
  border-left: 1px solid var(--pc-border);
}
.pc-usp:first-child { border-left: none; }
.pc-usp-icon {
  width: 38px; height: 38px; flex: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.pc-usp-icon .pc-icon { opacity: 1; color: var(--pc-ink); }
.pc-usp-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.pc-usp-text strong { font-size: 13px; font-weight: 800; color: var(--pc-ink); }
.pc-usp-text span { font-size: 12px; color: var(--pc-muted2); }

/* Express checkout buttons (Google Pay etc.) sit below, full width. */
.pc-product-info .wc-stripe-product-checkout-container,
.pc-product-info #wc-stripe-payment-request-wrapper,
.pc-product-info .wc-stripe-payment-request-wrapper,
.pc-product-info .wcpay-payment-request-wrapper,
.pc-product-info .ppc-button-wrapper {
  width: 100% !important; float: none !important; clear: both; margin: 0 0 20px !important;
}

/* ---------- Long description & related ---------- */
.pc-product-details { margin-top: 56px; max-width: var(--pc-measure); }

/* ---------- Details + video rail (70 / 30) ---------- */
.pc-product-details.has-videos {
  max-width: none;
  display: grid; grid-template-columns: 7fr 3fr; gap: 36px; align-items: start;
}
.pc-video-rail {
  position: sticky; top: 96px;
  background: var(--pc-surface); border: 1px solid var(--pc-border);
  border-radius: var(--pc-radius-sm); padding: 16px;
  box-shadow: 0 2px 12px rgba(46, 42, 34, .06);
}
.pc-video-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.pc-video-title { font-weight: 800; font-size: 15px; color: var(--pc-ink); }
.pc-video-nav { display: inline-flex; align-items: center; gap: 8px; }
.pc-video-count { font-size: 13px; font-weight: 700; color: var(--pc-muted2); }
.pc-video-btn {
  width: 30px; height: 30px; border: 1px solid var(--pc-border); border-radius: 9px;
  background: var(--pc-surface2); color: var(--pc-ink); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.pc-video-btn:hover { background: var(--pc-yellow); }

.pc-video-slide { display: none; }
.pc-video-slide.is-active { display: block; }

/* Empty state — no videos yet. Same 9:16 box, soft tinted placeholder. */
.pc-video-soon.is-active {
  aspect-ratio: 9 / 16; border-radius: 12px;
  background: linear-gradient(160deg, var(--pc-yellow-soft), var(--pc-surface2));
  border: 2px dashed var(--pc-border2);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center; padding: 24px; color: var(--pc-teal);
}
.pc-video-soon-title { font-family: var(--pc-serif); font-size: 22px; color: var(--pc-ink); }
.pc-video-soon-sub { font-size: 13px; color: var(--pc-muted); max-width: 200px; }
.pc-video-slide iframe,
.pc-video-slide video {
  width: 100%; aspect-ratio: 9 / 16; border: 0; border-radius: 12px;
  background: #111; display: block; object-fit: cover;
}

@media (max-width: 900px) {
  .pc-product-details.has-videos { grid-template-columns: 1fr; }
  .pc-video-rail { position: static; max-width: 420px; }
}
/* Rich text: serif headings with a short gold underline, brand bullets,
   generous rhythm. Selectors stay generic so any editor content works. */
.pc-product-longdesc { font-size: 16px; line-height: 1.7; color: #5F5747; }
.pc-product-longdesc > p:first-child { font-size: 17.5px; color: var(--pc-ink-soft); }
.pc-product-longdesc h2,
.pc-product-longdesc h3 {
  position: relative; margin: 38px 0 14px; padding-bottom: 10px; color: var(--pc-ink);
}
.pc-product-longdesc h2 { font-size: 26px; }
.pc-product-longdesc h3 { font-size: 21px; }
.pc-product-longdesc h2::after,
.pc-product-longdesc h3::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 44px; height: 3px; border-radius: 2px; background: var(--pc-yellow);
}
.pc-product-longdesc ul { list-style: none; margin: 0 0 18px; padding: 0; }
.pc-product-longdesc ul li {
  position: relative; padding: 6px 0 6px 26px;
}
.pc-product-longdesc ul li::before {
  content: ""; position: absolute; left: 4px; top: 15px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--pc-teal);
}
.pc-product-longdesc ul li strong,
.pc-product-longdesc ul li b { color: var(--pc-ink); }
.pc-product-longdesc ol { margin: 0 0 18px; padding-left: 22px; }
.pc-product-longdesc ol li { padding: 5px 0; }
.pc-product-longdesc strong, .pc-product-longdesc b { color: var(--pc-ink); }
.pc-product-longdesc table { width: 100%; border-collapse: collapse; margin: 0 0 18px; }
.pc-product-longdesc table td, .pc-product-longdesc table th {
  border: 1px solid var(--pc-border); padding: 10px 14px; font-size: 15px;
}
.pc-product-longdesc table th { background: var(--pc-surface2); }
.pc-related-title { font-size: 28px; margin: 56px 0 18px; }

/* ---------- FAQ ---------- */
.pc-product-faq { margin-top: 56px; }
.pc-product-faq .pc-section-title { font-size: 28px; margin-bottom: 20px; }

/* ---------- Reviews ----------
   [cusrev_all_reviews] renders a stacked list. The plugin owns pagination,
   the media lightbox and the show-more state, so nothing here sets `display`
   or `position` on its elements — rows, type and colour only. */
.pc-product-reviews { margin-top: 56px; }
.pc-product-reviews .pc-section-title { font-size: 28px; margin-bottom: 20px; }

/* Each review as a table-style row: divider line, no card chrome. */
/* The plugin's own rules (.cr-all-reviews-shortcode ol li.review) set
   border: 0 and zero the container padding at higher specificity, so the
   card selectors must go through the same path to win. */
.pc-reviews-list .cr-all-reviews-shortcode ol li.review,
.pc-reviews-list .cr-all-reviews-shortcode ol li.comment {
  background: var(--pc-surface); border: 1px solid var(--pc-border);
  border-radius: var(--pc-radius-sm); box-shadow: 0 2px 12px rgba(46, 42, 34, .06);
  padding: 26px 26px 22px; margin: 0 0 18px;
}
.pc-reviews-list .cr-comment-text { font-size: 15px; line-height: 1.6; color: #4C463A; background: transparent; border: 0; }
.pc-reviews-list .woocommerce-review__author { font-weight: 800; color: var(--pc-ink); }
.pc-reviews-list .woocommerce-review__published-date,
.pc-reviews-list .cr-meta-author-featured-date { color: var(--pc-muted2); font-size: 13px; }
.pc-reviews-list .woocommerce-review__verified { color: var(--pc-teal); font-weight: 700; font-size: 13px; }
.pc-reviews-list .crstar-rating-svg { color: var(--pc-gold); }

/* Search bar, review count and sort row: hidden — the list is short and the
   summary card already tells the story. */
.pc-reviews-list .cr-ajax-search,
.pc-reviews-list .cr-count-row,
.pc-reviews-list .cr-count-filtered-reviews { display: none; }

/* The customer-photos strip renders as an empty band before photos exist. */
.pc-reviews-list .cr-ajax-reviews-cus-images-div { display: none; }

/* Broken country-flag images next to author names: hide until flags load. */
.pc-reviews-list .ivole-review-country-icon:not([src]),
.pc-reviews-list .ivole-review-country-icon[src=""] { display: none; }

/* ---------- Two-column layout ----------
   The shortcode prints .cr-summaryBox-wrap (score + histogram) followed by
   #reviews (the list). A grid on its wrapper puts the summary in a sticky
   card on the left and the reviews in a card on the right. */
.pc-reviews-list .cr-all-reviews-shortcode {
  display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: start;
}
.pc-reviews-list .cr-summaryBox-wrap {
  position: sticky; top: 96px;
  background: var(--pc-surface); border: 1px solid var(--pc-border);
  border-radius: var(--pc-radius-sm); padding: 26px 24px;
  box-shadow: 0 2px 12px rgba(46, 42, 34, .06);
  display: flex; flex-direction: column; gap: 18px;
}
.pc-reviews-list .cr-summaryBox-wrap .ivole-summaryBox,
.pc-reviews-list .cr-summaryBox-wrap .cr-overall-rating-wrap {
  width: 100%; flex: none;
}
.pc-reviews-list .cr-all-reviews-shortcode > ol.commentlist {
  list-style: none; margin: 0; padding: 0;
}
/* Everything except the summary card lives in the right column. The visible
   grid children are the summary box, ol.commentlist and the show-more button
   (hidden rows don't create grid items), so pin the latter two explicitly. */
.pc-reviews-list .cr-all-reviews-shortcode > ol.commentlist,
.pc-reviews-list .cr-show-more-button,
.pc-reviews-list .cr-show-more-review-spinner,
.pc-reviews-list .cr-search-no-reviews { grid-column: 2; }
.pc-reviews-list .cr-show-more-button { justify-self: center; }

.pc-reviews-list .cr-all-reviews-shortcode ol li.review:last-child,
.pc-reviews-list .cr-all-reviews-shortcode ol li.comment:last-child { margin-bottom: 0; }

.pc-reviews-list .cr-average-rating { font-family: var(--pc-serif); font-size: 46px; color: var(--pc-ink); }
.pc-reviews-list .cr-total-rating-count { color: var(--pc-muted2); font-size: 14px; }

@media (max-width: 900px) {
  .pc-reviews-list .cr-all-reviews-shortcode { grid-template-columns: 1fr; }
  .pc-reviews-list .cr-summaryBox-wrap { position: static; }
  .pc-reviews-list .cr-all-reviews-shortcode ol li.review,
  .pc-reviews-list .cr-all-reviews-shortcode ol li.comment { padding: 20px 18px 18px; }
  .pc-reviews-list .cr-all-reviews-shortcode > ol.commentlist,
  .pc-reviews-list .cr-show-more-button,
  .pc-reviews-list .cr-show-more-review-spinner,
  .pc-reviews-list .cr-search-no-reviews { grid-column: 1; }
}
.pc-reviews-list button {
  background: var(--pc-ink); color: var(--pc-bg); border: none; border-radius: 11px;
  padding: 12px 22px; font-family: var(--pc-sans); font-weight: 800; font-size: 14px; cursor: pointer;
}
.pc-reviews-list button:hover { background: var(--pc-ink-soft); }

@media (max-width: 620px) {
  .pc-gallery-arrow { width: 34px; height: 34px; }
  .pc-gallery-prev { left: 10px; }
  .pc-gallery-next { right: 10px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .pc-product-layout { grid-template-columns: 1fr; gap: 28px; }
  .pc-product-gallery { position: static; }
}
@media (max-width: 620px) {
  .pc-product-title { font-size: 28px; }
  .pc-product-price { font-size: 26px; }
  .pc-product-usp { grid-template-columns: 1fr; }
  .pc-usp { border-left: none; border-top: 1px solid var(--pc-border); }
  .pc-usp:first-child { border-top: none; }
  .pc-buy-row { flex-wrap: wrap; }
  .pc-view-cart { flex: 1 0 100%; }
}
