/* GripBar product page: Fadi's layout (Figma IxDuFC58MUkKsW0A4l7yNd, desktop 9:502, phone 95:3205),
   dressed in the current site's brand (colours in cart.css). Grey boxes are windows for pictures and videos
   that come later. */
:root {
  --gutter: 15px;
  --ph: #e3e5eb;
  --ph-line: #bfc4cc;
  --ph-text: #6b7380;
  --soft: #f4f4f6;
}

/* The current site's styles (Bootstrap 3 and the builder's theme, which sizes, centres and capitalises every
   heading in #r8_content) also reach these elements: set what Fadi's design needs, at the theme's strength.
   Each section is a theme band (.stripeOuter: full window width) with a Bootstrap .container inside. */
.gb-section { padding: 40px 0; font-family: "Montserrat", sans-serif; color: #444; line-height: 1.5; }
.gb-section .container::before, .gb-section .container::after, .gb-sticky .container::before, .gb-sticky .container::after { content: none; }
#r8_content .gb-section h1, #r8_content .gb-section h2, #r8_content .gb-section h3, #r8_content .gb-dialog h2 {
  text-transform: none;
  text-align: left;
  margin: 0;
  line-height: 1.2;
}
#r8_content .gb-section p { margin: 0; }
.gb-section ul.arrows { list-style: none; padding: 0; margin: 0; }
.gb-section ul.arrows li { position: relative; padding-left: 22px; margin-bottom: 10px; }
.gb-section ul.arrows li::before { content: "\25B6"; position: absolute; left: 0; top: 2px; color: var(--red); font-size: 11px; }
.gb-grey { background: var(--soft); }
.gb-ph {
  display: grid;
  place-items: center;
  background: var(--ph);
  border: 1px solid var(--ph-line);
  color: var(--ph-text);
  font-size: 12px;
  text-align: center;
  padding: 12px;
}
#r8_content .gb-section .gb-h2 { font-size: 28px; font-weight: 700; text-align: center; color: var(--navy); margin-bottom: 20px; }
#r8_content .gb-section .gb-left { text-align: left; }
.gb-mobile-only { display: none; }

/* 1. Buy box and gallery. */
.gb-crumbs { font-size: 12px; color: var(--ph-text); margin: 0 0 20px; }
.gb-crumbs a { color: var(--ph-text); }
.gb-buy-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.gb-buy-row > * { min-width: 0; }
.gb-stage { position: relative; }
.gb-slide { height: 520px; display: none; }
.gb-slide.is-active { display: grid; }
.gb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #ccd1d9;
  color: var(--navy);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}
.gb-prev { left: 15px; }
.gb-next { right: 15px; }
.gb-counter {
  position: absolute;
  right: 15px;
  bottom: 15px;
  background: rgba(13, 58, 87, 0.85);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  border-radius: 13px;
  padding: 5px 10px;
}
.gb-dots { display: none; }
.gb-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.gb-thumb { height: 90px; cursor: pointer; font: inherit; font-size: 12px; }
.gb-thumb[aria-current="true"] { border-color: var(--navy); border-width: 2px; }

.gb-info { display: flex; flex-direction: column; gap: 14px; }
.gb-info p { margin: 0; }
#r8_content .gb-section .gb-title { font-size: 38px; font-weight: 700; color: var(--navy); text-align: left; }
.gb-rating { font-size: 13px; color: var(--ph-text); }
.gb-lead { font-size: 16px; color: var(--ph-text); }
.gb-price { font-size: 28px; font-weight: 700; color: var(--navy); }
.gb-callout { background: var(--soft); border: 1px solid var(--ph-line); border-radius: 6px; padding: 12px 16px; font-size: 13px; }
.gb-callout-title { font-weight: 600; color: var(--navy); }
.gb-label { font-size: 13px; font-weight: 600; color: var(--navy); }
.gb-label-row { display: flex; gap: 12px; align-items: center; }
.gb-size-link { font-size: 12px; }
.gb-chips, .gb-sizes, .gb-qty { display: flex; flex-wrap: wrap; gap: 8px; }
.gb-sizes, .gb-qty { gap: 6px; }
.gb-chip {
  border: 1px solid var(--navy);
  background: var(--white);
  color: var(--navy);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.gb-box {
  width: 46px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--navy);
  border-radius: 4px;
  background: var(--white);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.gb-chip[aria-pressed="true"], .gb-box[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.gb-box:disabled { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }
.gb-qty-n { cursor: default; }
.gb-hint { font-size: 13px; color: var(--ph-text); }
.gb-add { font-size: 16px; padding: 13px 24px; }
.gb-delivery { border: 1px solid var(--ph-line); border-radius: 6px; padding: 12px 16px; font-size: 13px; color: var(--ph-text); line-height: 20px; }
.gb-delivery a { color: var(--ph-text); }
.gb-pay { display: flex; gap: 8px; margin-top: 6px; }
.gb-pay-badge { width: 56px; height: 30px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.gb-pay-shop { background: #5a31f4; color: var(--white); }
.gb-pay-paypal { background: #ffc439; color: #003087; }
.gb-pay-gpay { background: var(--white); border: 1px solid #cccccc; color: #3d4042; }

/* 2. Details and demo. */
.gb-two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.gb-accordion { display: flex; flex-direction: column; gap: 10px; }
.gb-accordion details, .gb-faq-list details { background: var(--white); border: 1px solid var(--ph-line); border-radius: 6px; }
.gb-accordion summary, .gb-faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.gb-accordion summary::-webkit-details-marker, .gb-faq-list summary::-webkit-details-marker { display: none; }
.gb-accordion summary::after, .gb-faq-list summary::after { content: "+"; font-size: 18px; font-weight: 400; }
.gb-accordion details[open] summary::after, .gb-faq-list details[open] summary::after { content: "−"; }
.gb-accordion details > :not(summary), .gb-faq-list details > :not(summary) { margin: 0 16px 14px; font-size: 14px; }
.gb-demo { height: 260px; }

/* 3. Comparison. */
.gb-compare-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 12px; }
.gb-card { border: 1px solid var(--ph-line); border-radius: 12px; padding: 32px 36px; display: flex; flex-direction: column; gap: 20px; }
#r8_content .gb-card h3 { font-size: 22px; font-weight: 700; color: var(--navy); }
#r8_content .gb-card-dark h3 { color: var(--white); }
.gb-card-row { border-top: 1px solid var(--ph-line); padding-top: 16px; }
.gb-card-row p { margin: 0; }
.gb-card-row p:first-child { font-size: 13px; color: var(--ph-text); }
.gb-card-row p:last-child { font-size: 18px; font-weight: 600; color: var(--navy); }
.gb-card-dark { background: var(--navy); border-color: var(--navy); }
.gb-card-dark h3, .gb-card-dark .gb-card-row p:last-child { color: var(--white); }
.gb-card-dark .gb-card-row { border-color: rgba(255, 255, 255, 0.25); }
.gb-card-dark .gb-card-row p:first-child { color: #b2bac7; }

/* 4. Reviews. */
.gb-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gb-review { height: 170px; }

/* 5. James. */
.gb-james-row { display: flex; gap: 40px; align-items: center; }
.gb-james-photo { width: 300px; height: 200px; flex: none; }
.gb-james-text p { font-size: 14px; color: var(--ph-text); margin: 0 0 10px; }
#r8_content .gb-section .gb-james-text .gb-h2 { font-size: 24px; margin-bottom: 10px; }

/* 6. FAQ. */
.gb-faq-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 20px; }
.gb-faq-list summary { font-size: 15px; }

/* 7. Sticky Add to cart bar. */
.gb-sticky[hidden] { display: none; }
.gb-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; background: var(--white); border-top: 1px solid var(--navy); box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08); }
.gb-sticky-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 14px; padding-bottom: 14px; }
.gb-sticky-summary { display: flex; align-items: center; gap: 20px; min-width: 0; }
.gb-sticky-text { margin: 0; font-size: 14px; font-weight: 600; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gb-sticky-add { font-size: 15px; }
.gb-sticky-note { margin: 0; font-size: 12px; color: var(--ph-text); text-align: center; }
.gb-mob { display: none; }
body.has-sticky { padding-bottom: 80px; }

/* Size guide panel. */
.gb-dialog { border: 1px solid var(--navy); padding: 24px; width: min(520px, calc(100% - 32px)); }
.gb-dialog::backdrop { background: rgba(0, 0, 0, 0.4); }
.gb-dialog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.gb-dialog-head h2 { margin: 0; font-size: 20px; font-weight: 700; }
.gb-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 14px; }
.gb-table th { background: var(--navy); color: var(--white); text-align: left; padding: 8px 10px; }
.gb-table td { border: 1px solid var(--ph-line); padding: 8px 10px; color: var(--navy); }
.gb-table th:first-child, .gb-table td:first-child { width: 110px; }

/* Phones: Fadi's phone frame 95:3205. */
@media (max-width: 900px) {
  .gb-section { padding: 28px 0; }
  .gb-crumbs, .gb-thumbs, .gb-arrow { display: none; }
  .gb-buy-row, .gb-two, .gb-compare-cards, .gb-three { grid-template-columns: 1fr; gap: 24px; }
  .gb-buy .container { padding: 0; }
  .gb-info { padding: 0 var(--gutter); }
  .gb-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .gb-slides::-webkit-scrollbar { display: none; }
  .gb-slide, .gb-slide.is-active { display: grid; flex: 0 0 100%; height: 340px; scroll-snap-align: start; }
  .gb-counter { top: 15px; bottom: auto; }
  .gb-dots { display: flex; gap: 6px; position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); }
  .gb-dots span { width: 6px; height: 6px; border-radius: 3px; background: rgba(13, 58, 87, 0.3); }
  .gb-dots span.is-active { width: 16px; background: var(--navy); }
  #r8_content .gb-section .gb-title { font-size: 30px; }
  .gb-james-row { flex-direction: column; align-items: stretch; }
  .gb-james-photo { width: 100%; height: 220px; }
  .gb-mobile-only { display: block; }
  .gb-sticky-row { flex-direction: column; align-items: stretch; gap: 6px; padding-top: 10px; padding-bottom: 10px; }
  .gb-sticky-summary { order: 3; justify-content: center; }
  .gb-sticky-text, .gb-desk { display: none; }
  .gb-mob { display: inline; }
  .gb-sticky-note.gb-mob { display: block; order: 2; }
  .gb-sticky-add { width: 100%; }
  body.has-sticky { padding-bottom: 130px; }
}
