/* ===== G4 Product Page (all classes prefixed g4-) ===== */
:root, .g4-wrap {
  --g4-green: #0a6b46;
  --g4-green-dark: #085536;
  --g4-green-soft: #eaf5f0;
  --g4-ink: #0f172a;
  --g4-text: #64748b;
  --g4-line: #e2e8f0;
  --g4-bg: #f6f8f7;
  --g4-star: #fbbf24;
}

.g4-wrap {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--g4-ink);
  background: #fff;
  line-height: 1.5;
  box-sizing: border-box;
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

.g4-wrap * {
  box-sizing: border-box;
}

.g4-wrap a {
  color: inherit;
  text-decoration: none;
}

.g4-wrap button {
  font-family: inherit;
  cursor: pointer;
}

.g4-ico {
  width: 1em;
  height: 1em;
  display: inline-block;
  flex: none;
  vertical-align: middle;
}

.g4-ico svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------- top grid ---------- */
.g4-top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

/* gallery */
.g4-main {
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(15,23,42,.08);
  aspect-ratio: 1 / 0.82;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.g4-main-img {
  width: 86%;
  height: 100%;
  transition: opacity .25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.g4-main-img svg,
.g4-main-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.g4-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--g4-green);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2px;
  padding: 8px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
}

.g4-zoom,
.g4-arrow {
  position: absolute;
  background: #fff;
  border: 0;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(15,23,42,.15);
  color: var(--g4-ink);
  font-size: 20px;
  transition: .2s;
  z-index: 2;
}

.g4-zoom {
  top: 16px;
  right: 16px;
  font-size: 22px;
}

.g4-arrow {
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
}

.g4-arrow:hover,
.g4-zoom:hover {
  background: var(--g4-green);
  color: #fff;
}

.g4-prev { left: 10px; }
.g4-next { right: 10px; }

.g4-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.g4-thumb {
  border: 1px solid var(--g4-line);
  border-radius: 8px;
  background: #fff;
  padding: 0;
  aspect-ratio: 1 / 1.05;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(15,23,42,.06);
  transition: .2s;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.g4-thumb svg,
.g4-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.g4-thumb.is-active {
  border: 2px solid var(--g4-green);
}

.g4-thumb:hover {
  transform: translateY(-2px);
}

/* summary */
.g4-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--g4-green);
  margin-bottom: 14px;
}

.g4-crumbs .g4-sep {
  color: #94a3b8;
  font-size: 11px;
  display: inline-flex;
}

.g4-crumbs a:hover {
  text-decoration: underline;
}

.g4-crumbs .g4-cur {
  color: var(--g4-text);
}

.g4-title {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.5px;
  margin-bottom: 12px;
  color: var(--g4-ink);
}

.g4-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--g4-text);
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.g4-stars {
  display: flex;
  gap: 2px;
  color: var(--g4-star);
  font-size: 20px;
}

.g4-rating a {
  color: var(--g4-green);
}

.g4-rating a:hover {
  text-decoration: underline;
}

.g4-price-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.g4-price {
  font-size: 32px;
  font-weight: 800;
  color: var(--g4-green);
  line-height: 1;
}

.g4-price del {
  color: #94a3b8;
  font-size: 22px;
  font-weight: 500;
  margin-right: 8px;
}

.g4-price ins {
  text-decoration: none;
  color: var(--g4-green);
}

.g4-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
}

.g4-stock-badge.g4-in-stock {
  background: var(--g4-green-soft);
  color: var(--g4-green);
}

.g4-stock-badge.g4-out-stock {
  background: #fef2f2;
  color: #dc2626;
}

.g4-stock-badge .g4-ico {
  font-size: 12px;
}

.g4-short {
  font-size: 17px;
  color: var(--g4-text);
  margin-bottom: 26px;
  max-width: 560px;
  line-height: 1.5;
}

.g4-var {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 20px;
}

.g4-var label {
  font-weight: 700;
  font-size: 17px;
  color: var(--g4-ink);
}

.g4-select-wrap {
  position: relative;
  flex: 1;
}

.g4-select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 50px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0 44px 0 18px;
  font-size: 17px;
  font-family: inherit;
  color: var(--g4-text);
  background: #fff;
  outline: none;
  transition: .2s;
  cursor: pointer;
}

.g4-select:focus {
  border-color: var(--g4-green);
  box-shadow: 0 0 0 3px rgba(10,107,70,.15);
}

.g4-select.g4-err {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220,38,38,.15);
}

.g4-select-wrap .g4-ico {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--g4-ink);
  font-size: 16px;
}

.g4-buy {
  display: flex;
  gap: 22px;
  margin-bottom: 30px;
}

.g4-qty {
  display: flex;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  height: 58px;
  background: #fff;
}

.g4-qty button {
  width: 60px;
  border: 0;
  background: #fff;
  font-size: 22px;
  color: var(--g4-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .2s;
}

.g4-qty button:hover {
  background: var(--g4-green-soft);
}

.g4-qty input {
  width: 60px;
  border: 0;
  border-left: 1px solid var(--g4-line);
  border-right: 1px solid var(--g4-line);
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  font-family: inherit;
  outline: none;
  -moz-appearance: textfield;
}

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

.g4-add {
  flex: 1;
  height: 58px;
  border: 0;
  border-radius: 8px;
  background: var(--g4-green);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: .2s;
}

.g4-add:hover {
  background: var(--g4-green-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(10,107,70,.25);
}

.g4-add .g4-ico {
  font-size: 22px;
}

.g4-perks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 26px;
}

.g4-perk {
  text-align: center;
  padding: 4px 10px;
  border-left: 1px solid var(--g4-line);
}

.g4-perk:first-child {
  border-left: 0;
}

.g4-perk .g4-ico {
  font-size: 38px;
  color: var(--g4-green);
  margin-bottom: 12px;
}

.g4-perk h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--g4-ink);
}

.g4-perk p {
  font-size: 14px;
  color: var(--g4-text);
  line-height: 1.35;
}

.g4-save {
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--g4-green-soft);
  border-radius: 10px;
  padding: 22px 26px;
}

.g4-save .g4-ico {
  font-size: 44px;
  color: var(--g4-green);
}

.g4-save h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--g4-ink);
}

.g4-save p {
  font-size: 16px;
  color: #334155;
}

/* ---------- bottom ---------- */
.g4-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 44px;
  margin-top: 44px;
  align-items: start;
}

.g4-tabs {
  display: flex;
  gap: 40px;
  border-bottom: 1px solid var(--g4-line);
}

.g4-tab {
  background: none;
  border: 0;
  padding: 16px 4px;
  font-size: 18px;
  font-weight: 600;
  color: #334155;
  position: relative;
  transition: .2s;
  cursor: pointer;
}

.g4-tab:hover,
.g4-tab.is-active {
  color: var(--g4-green);
}

.g4-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: var(--g4-green);
  border-radius: 3px 3px 0 0;
}

.g4-panel {
  display: none;
  padding-top: 24px;
  animation: g4fade .3s ease;
}

.g4-panel.is-active {
  display: block;
}

@keyframes g4fade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

.g4-panel > p {
  font-size: 17px;
  color: var(--g4-text);
  max-width: 880px;
  line-height: 1.6;
}

.g4-specs {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-top: 34px;
}

.g4-spec {
  text-align: center;
  padding: 2px 8px;
  border-left: 1px solid var(--g4-line);
}

.g4-spec:first-child {
  border-left: 0;
}

.g4-spec .g4-ico {
  font-size: 34px;
  color: var(--g4-green);
  margin-bottom: 12px;
}

.g4-spec b {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--g4-ink);
}

.g4-spec span {
  font-size: 14px;
  color: var(--g4-text);
}

.g4-table {
  width: 100%;
  border-collapse: collapse;
  max-width: 760px;
  font-size: 16px;
}

.g4-table th,
.g4-table td {
  border: 1px solid var(--g4-line);
  padding: 12px 16px;
  text-align: left;
}

.g4-table th {
  width: 220px;
  background: var(--g4-bg);
  font-weight: 600;
  color: var(--g4-ink);
}

.g4-table td {
  color: var(--g4-text);
}

.g4-review {
  border-bottom: 1px solid var(--g4-line);
  padding: 18px 0;
  max-width: 820px;
}

.g4-review:last-child {
  border: 0;
}

.g4-review .g4-stars {
  font-size: 16px;
  margin-bottom: 6px;
}

.g4-review strong {
  font-size: 16px;
  color: var(--g4-ink);
}

.g4-review small {
  color: var(--g4-text);
  margin-left: 8px;
}

.g4-review p {
  color: var(--g4-text);
  margin-top: 6px;
}

.g4-review.g4-review-new {
  animation: g4NewReview .6s ease;
  background: var(--g4-green-soft);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 12px;
}

@keyframes g4NewReview {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

.g4-feat {
  background: var(--g4-bg);
  border: 1px solid var(--g4-line);
  border-radius: 12px;
  padding: 22px 26px;
}

.g4-feat h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--g4-ink);
}

.g4-feat li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: #334155;
  padding: 6px 0;
}

.g4-feat li .g4-ico {
  font-size: 22px;
  color: var(--g4-green);
}

/* lightbox */
.g4-lb {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  padding: 30px;
}

.g4-lb.is-open {
  display: flex;
}

.g4-lb-box {
  background: #fff;
  border-radius: 14px;
  width: min(720px, 100%);
  aspect-ratio: 1 / 0.85;
  padding: 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.g4-lb-box svg,
.g4-lb-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.g4-lb-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  font-size: 22px;
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* toast */
.g4-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: var(--g4-ink);
  color: #fff;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(120px);
  opacity: 0;
  transition: .35s;
  z-index: 1000000;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}

.g4-toast.is-show {
  transform: none;
  opacity: 1;
}

.g4-toast .g4-ico {
  color: #4ade80;
  font-size: 20px;
}

/* WRITE A REVIEW MODAL */
.g4-review-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.g4-review-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.7);
  backdrop-filter: blur(3px);
}

.g4-review-modal-box {
  position: relative;
  background: #fff;
  width: min(540px, 100%);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 16px 40px rgba(15,23,42,.2);
  z-index: 2;
  animation: g4fade .25s ease;
}

.g4-review-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--g4-line);
  background: #fff;
  font-size: 20px;
  color: var(--g4-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: .2s;
}

.g4-review-modal-close:hover {
  background: #f1f5f9;
  color: var(--g4-ink);
}

.g4-review-modal-header h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--g4-ink);
  margin-bottom: 4px;
}

.g4-review-modal-header p {
  font-size: 14px;
  color: var(--g4-text);
  margin-bottom: 20px;
}

.g4-form-row {
  margin-bottom: 16px;
}

.g4-form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--g4-ink);
  margin-bottom: 6px;
}

.g4-req {
  color: #dc2626;
}

.g4-star-picker {
  display: flex;
  align-items: center;
  gap: 4px;
}

.g4-picker-star {
  background: none;
  border: 0;
  font-size: 28px;
  color: #cbd5e1;
  padding: 0;
  line-height: 1;
  cursor: pointer;
  transition: color .15s;
}

.g4-picker-star.is-active,
.g4-picker-star:hover {
  color: var(--g4-star);
}

.g4-picker-hint {
  font-size: 13px;
  color: var(--g4-text);
  margin-left: 10px;
  font-weight: 500;
}

.g4-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.g4-input,
.g4-textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--g4-ink);
  outline: none;
  transition: .2s;
}

.g4-input:focus,
.g4-textarea:focus {
  border-color: var(--g4-green);
  box-shadow: 0 0 0 3px rgba(10,107,70,.15);
}

.g4-form-footer {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.g4-form-feedback {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
}

.g4-form-feedback.is-success {
  background: var(--g4-green-soft);
  color: var(--g4-green-dark);
  border: 1px solid rgba(10,107,70,.2);
}

.g4-form-feedback.is-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.g4-btn-submit-review {
  height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--g4-green);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: .2s;
}

.g4-btn-submit-review:hover {
  background: var(--g4-green-dark);
}

/* ---------- responsive ---------- */
@media(max-width: 1020px) {
  .g4-top,
  .g4-bottom {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .g4-specs {
    grid-template-columns: repeat(4, 1fr);
    row-gap: 24px;
  }
  .g4-spec:nth-child(5) {
    border-left: 0;
  }
}

@media(max-width: 600px) {
  .g4-wrap {
    padding: 14px 12px 40px;
  }
  .g4-perks {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 20px;
  }
  .g4-perk:nth-child(3) {
    border-left: 0;
  }
  .g4-var {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .g4-buy {
    gap: 12px;
  }
  .g4-qty button,
  .g4-qty input {
    width: 44px;
  }
  .g4-add {
    font-size: 17px;
  }
  .g4-tabs {
    gap: 18px;
    overflow-x: auto;
  }
  .g4-tab {
    font-size: 16px;
    white-space: nowrap;
  }
  .g4-specs {
    grid-template-columns: repeat(2, 1fr);
  }
  .g4-spec:nth-child(odd) {
    border-left: 0;
  }
  .g4-spec:nth-child(5) {
    border-left: 0;
  }
  .g4-save {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  .g4-thumbs {
    gap: 6px;
  }
  .g4-feat {
    padding: 18px;
  }
  .g4-form-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   G4 PREMIUM PRODUCT SLIDER CAROUSEL
   ========================================================================== */
.g4-ps-wrapper {
  position: relative;
  width: 100%;
  margin: 36px auto;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.g4-ps-header {
  margin-bottom: 24px;
}

.g4-ps-header-content {
  width: 100%;
}

.g4-ps-heading {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px 0;
  letter-spacing: -0.4px;
  line-height: 1.25;
}

.g4-ps-subheading {
  font-size: 15px;
  color: #64748b;
  margin: 0;
  line-height: 1.45;
}

.g4-ps-controls-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 32px;
  margin-bottom: 8px;
  width: 100%;
}

.g4-ps-nav-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  flex-shrink: 0;
  padding: 0;
  outline: none;
}

.g4-ps-nav-btn:hover {
  background: var(--g4-green, #0a6b46);
  border-color: var(--g4-green, #0a6b46);
  color: #ffffff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 18px rgba(10, 107, 70, 0.28);
}

.g4-ps-nav-btn:active {
  transform: scale(0.96);
}

.g4-ps-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: relative;
  width: 100%;
  padding: 14px 4px 22px 4px;
  margin: -14px -4px -22px -4px;
  box-sizing: border-box;
}

.g4-ps-viewport::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.g4-ps-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 20px;
  width: max-content;
  margin: 0;
  padding: 4px 2px;
  list-style: none;
  box-sizing: border-box;
}

.g4-ps-slide {
  flex: 0 0 280px;
  width: 280px;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  display: block;
}

.g4-ps-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

.g4-ps-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -10px rgba(15, 23, 42, 0.12);
  border-color: #cbd5e1;
}

.g4-ps-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.9;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.g4-ps-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.g4-ps-badge-sale {
  background: #dc2626;
  color: #ffffff;
}

.g4-ps-badge-feat {
  background: var(--g4-green, #0a6b46);
  color: #ffffff;
}

.g4-ps-badge-out {
  background: #64748b;
  color: #ffffff;
}

.g4-ps-img-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.g4-ps-img-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.g4-ps-card:hover .g4-ps-img-link img {
  transform: scale(1.06);
}

.g4-ps-details {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.g4-ps-cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--g4-green, #0a6b46);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  display: block;
}

.g4-ps-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 10px 0;
  min-height: 44px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.g4-ps-title a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.15s ease;
}

.g4-ps-title a:hover {
  color: var(--g4-green, #0a6b46);
}

.g4-ps-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #64748b;
}

.g4-ps-rating .g4-stars {
  display: flex;
  gap: 2px;
  font-size: 14px;
}

.g4-ps-rating-count {
  font-weight: 600;
  color: #475569;
}

.g4-ps-price-box {
  margin-bottom: 18px;
}

.g4-ps-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--g4-green, #0a6b46);
  letter-spacing: -0.3px;
}

.g4-ps-action {
  margin-top: auto;
}

.g4-ps-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 46px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.22s ease;
  box-sizing: border-box;
}

/* Variable Options Button: Navigates to PDP */
.g4-ps-btn-options {
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}

.g4-ps-btn-options:hover {
  background: var(--g4-green, #0a6b46);
  border-color: var(--g4-green, #0a6b46);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(10, 107, 70, 0.25);
}

.g4-ps-btn-options .g4-ico {
  font-size: 14px;
  transition: transform 0.2s ease;
}

.g4-ps-btn-options:hover .g4-ico {
  transform: translateX(3px);
}

/* Single Add to Cart Button: AJAX Cart Action */
.g4-ps-btn-add {
  background: var(--g4-green, #0a6b46);
  color: #ffffff;
}

.g4-ps-btn-add:hover {
  background: var(--g4-green-dark, #085536);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(10, 107, 70, 0.28);
}

.g4-ps-btn-disabled {
  background: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
}

/* Dots */
.g4-ps-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.g4-ps-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  border: 0;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  outline: none;
}

.g4-ps-dot.is-active {
  width: 28px;
  border-radius: 12px;
  background: var(--g4-green, #0a6b46);
}




