/* Layout */
.gptb-wrap {
  display: flex;
  gap: 24px;
  align-items: flex-start
}

.gptb-col {
  box-sizing: border-box
}

.gptb-left {
  flex: 1;
  min-width: 520px
}

.gptb-right {
  flex: 1.25;
  min-width: 540px
}

/* Section header bar */
.gptb-group-header {
  background: #111;
  color: #fff;
  padding: 14px 20px;
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  letter-spacing: .2px;
  text-transform: uppercase;
  font-size: 12px;
}

.gptb-group-header:first-of-type {
  margin-top: 0
}

.gptb-header-cols {
  display: flex;
  gap: 104px;
  font-size: 12px;
  align-items: center
}

.gptb-h-price select.gptb-currency {
  margin-left: 10px;
  border: 1px solid #555;
  background: #111;
  color: #fff;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 12px;
  ;
}

/* Rows */
.gptb-row {
  display: flex;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid #e8e8e8;
  padding: 20px 0;
  transition: background .12s
}

.gptb-row:hover {
  background: #fbfbfb
}

/* Columns */
.gptb-col-title {
  flex: 3;
  padding-left: 10px
}

.gptb-col-fac {
  flex: 1
}

.gptb-col-price {
  flex: 1.5;
  text-align: right;
  font-weight: 700;
  font-size: 12px;
}

.gptb-col-qty {
  flex: 1.5;
  text-align: center
}

.gptb-col-cart {
  flex: 1.5;
  text-align: right;
  padding-right: 20px;
}

/* Title + subtitle */
.gptb-title {
  font-weight: 700;
  text-decoration: none;
  color: #111;
  font-size: 12px;
  cursor: default !important;
}

.gptb-title:hover {
  text-decoration: none;
}

/* default: show description, hide 'view details' */
.gptb-details {
  display: block;
  margin: 0;
  padding: 0;
  font-size: 9px;
  /* letter-spacing: .02em; */
  color: #8a8a8a;
  text-transform: uppercase;
}

.gptb-view-details {
  display: none;
  margin: 0;
  padding: 0;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none !important;
  /* letter-spacing: .03em; */
}

/* on row hover: swap visibility */
.gptb-row:hover .gptb-details {
  display: none;
}

.gptb-row:hover .gptb-view-details {
  display: block;
  color: #d0021b;
  text-decoration: none;
}

.gptb-row:hover .gptb-view-details:hover {
  text-decoration: underline;
}


.gptb-sub {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  margin-top: 2px
}

/* Facilities */
.gptb-fac-icons {
  display: flex;
  gap: 10px;
  align-items: center
}

.gptb-fac-icons img {
  width: 22px;
  height: 22px;
  display: inline-block;
  opacity: .85
}

.gptb-fac-icons i {
  font-size: 14px;
  opacity: .8
}

/* Qty control (compact) */
.gptb-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  height: 30px;
  overflow: hidden
}

.gptb-minus,
.gptb-plus {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  line-height: 36px
}

.gptb-minus {
  border-right: 1px solid #cfcfcf
}

.gptb-plus {
  border-left: 1px solid #cfcfcf
}

.gptb-input {
  width: 15px;
  text-align: center;
  border: 0;
  font-weight: 700;
  outline: none;
  -moz-appearance: textfield
}

input.gptb-input {
  background: transparent;
}

.gptb-input::-webkit-outer-spin-button,
.gptb-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0
}

/* Buttons */
.gptb-col-cart .button {
  background: transparent;
  border: 1px solid #222;
  color: #222;
  padding: 3px 7px;
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  border-radius: 4px;
}

.gptb-col-cart .button:hover {
  background: transparent
}


a.added_to_cart {
  display: block;
  margin: 0;
  font-size: 10px;
  text-align: center;
  color: #db0032;
  font-weight: 500;
}

/* Horizontal scroll for iPad and smaller */
@media (max-width: 1024px) {

  .gptb-wrap {
    display: block;
    gap: 24px;
    align-items: flex-start;
  }

  .gptb-left {
    flex: 1;
    min-width: 100%;
  }
}


@media (max-width: 760px) {

  .gptb-group-header,
  .gptb-row {
    width: 713px;
  }

  .gptb-right {
    flex: 1.25;
    min-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }


}












/* === Fix: responsive behavior for >=1025px (desktop) === */
/* Make flex children able to shrink so no forced overflow */
.gptb-col {
  min-width: 0;
  /* allow columns to shrink inside flex container */
}

/* Ensure rows/header are auto-width on desktop and do not cause a horizontal scrollbar */
@media (min-width: 1025px) {
  .gptb-wrap {
    overflow-x: visible;
  }

  /* no page-level horizontal scroll caused by this container */
  .gptb-right {
    overflow-x: visible;
  }

  /* disable small-screen horizontal scroll on right column */
  .gptb-group-header,
  .gptb-row {
    width: auto;
  }

  /* don't force a fixed width */
}

/* === Small screens: keep horizontal scrolling behaviour only when needed === */
@media (max-width: 1024px) {
  .gptb-wrap {
    display: block;
  }

  /* stacked layout under 1024 */
  .gptb-left,
  .gptb-right {
    min-width: 100%;
  }

  /* force each column to full width when stacked */
  .gptb-right {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .gptb-col-cart .button {
    background: #272727;
    color: #fff;
    font-size: 11px;
    height: auto;
    padding: 6px 10px;
    vertical-align: middle;
    width: auto;
    border-radius: 0;
  }

  .gptb-col-fac {
    display: none;
  }

  .gptb-col-qty {
    display: none;
  }

  span.gptb-h-fac {
    display: none;
  }
  .gptb-group-header,
  .gptb-row {
    width: auto;
  }
  .gptb-col-price {
    text-align: left;
}
}

@media (max-width: 760px) {

  .gptb-group-header,
  .gptb-row {
    width: auto;
  }

}

.gptb-row,
.gptb-group-header {
  white-space: normal;
  word-wrap: break-word;
  word-break: break-word;
}

.gptb-col-price,
.gptb-col-qty,
.gptb-col-cart {
  min-width: 0;
}

/* @media (min-width: 1025px) {
  .gptb-left {
    min-width: 360px;
  }

  .gptb-right {
    min-width: 420px;
  }

} */