/* =============================================
   GRIP SOCKS PAGE
   ============================================= */

/* ── HERO ── */
.gs-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 680px;
  border-bottom: 1px solid var(--grey-200);
  overflow: hidden;
  padding-top: 88px;
}

.gs-hero-content {
  padding: 60px 48px 60px 80px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gs-hero-title {
  font-family: var(--font-display);
  font-size: clamp(96px, 11vw, 160px);
  line-height: 0.85;
  color: var(--white);
  margin: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.gs-hero-sub {
  font-size: 15px;
  font-weight: 300;
  color: var(--grey-400);
  line-height: 1.8;
  max-width: 400px;
}

.gs-hero-price {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.gs-price-main {
  font-family: var(--font-display);
  font-size: 54px;
  color: var(--accent);
  line-height: 1;
}

.gs-price-note {
  font-size: 14px;
  color: var(--grey-500);
  font-weight: 300;
}

/* Hero visual — mosaic */
.gs-hero-visual {
  padding: 24px 40px 24px 0;
  display: flex;
  align-items: center;
}

.gs-hero-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.gs-mc-img {
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.gs-mc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s ease;
}

.gs-mc-img:hover img {
  transform: scale(1.05);
}

/* ── PRODUCT SELECTOR ── */
.gs-product {
  padding: 80px 0;
  border-bottom: 1px solid var(--grey-200);
}

.gs-product-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* Visual / thumbnails */
.gs-img-stage {
  position: relative;
  background: #f8f8f8;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.gs-stage-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  transition: opacity 0.3s ease;
  padding: 12px;
  box-sizing: border-box;
}

.gs-img-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--accent);
  color: var(--black);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 3px;
}

.gs-thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.gs-thumb {
  flex: 1;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 4px;
  border: 1.5px solid var(--grey-200);
  cursor: pointer;
  transition: border-color 0.2s;
  padding: 0;
  background: #f8f8f8;
}

.gs-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  padding: 4px;
  box-sizing: border-box;
}

.gs-thumb--active {
  border-color: var(--accent);
}

/* Form panel */
.gs-product-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 8px;
}

.gs-product-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 4vw, 60px);
  line-height: 0.92;
  color: var(--white);
  margin: 0;
}

/* ── QUANTITY STEPPER ── */
.gs-qty-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
}

.gs-qty-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--grey-200);
  border-radius: 6px;
  overflow: hidden;
}

.gs-qty-btn {
  width: 44px;
  height: 44px;
  background: var(--grey-100);
  border: none;
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.gs-qty-btn:hover {
  background: rgba(212,255,26,0.12);
  color: var(--accent);
}

.gs-qty-num {
  width: 52px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--white);
  border-left: 1px solid var(--grey-200);
  border-right: 1px solid var(--grey-200);
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
}

.gs-qty-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gs-qty-total {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--accent);
  line-height: 1;
}

.gs-qty-per {
  font-size: 12px;
  color: var(--grey-500);
  font-weight: 300;
}

.gs-qty-hint {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
  min-height: 18px;
  transition: opacity 0.2s;
}

/* Bundle row — keep for legacy, hide it */
.gs-bundle-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.gs-bundle-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 22px;
  background: var(--grey-100);
  border: 1.5px solid var(--grey-200);
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}

.gs-bundle-btn--active {
  border-color: var(--accent);
  background: rgba(212,255,26,0.05);
}

.gs-bundle-btn:hover:not(.gs-bundle-btn--active) {
  border-color: rgba(212,255,26,0.4);
}

.gs-bundle-tag {
  position: absolute;
  top: -11px;
  left: 14px;
  background: var(--accent);
  color: var(--black);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 3px;
}

.gs-bundle-qty {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-500);
  margin-top: 4px;
}

.gs-bundle-price {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--white);
  line-height: 1;
}

.gs-bundle-btn--active .gs-bundle-price {
  color: var(--accent);
}

.gs-bundle-price em {
  font-style: normal;
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-left: 6px;
}

.gs-bundle-sub {
  font-size: 11px;
  color: var(--grey-500);
  font-weight: 300;
  margin-top: 2px;
}

/* Option blocks */
.gs-option-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gs-option-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-500);
}

.gs-option-label span {
  color: var(--white);
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
}

/* Colour swatches */
.gs-colour-swatches {
  display: flex;
  gap: 10px;
  padding-bottom: 20px;
}

.gs-swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  outline: 2px solid transparent;
  outline-offset: 3px;
  transition: outline-color 0.2s, transform 0.2s;
  position: relative;
}

.gs-swatch[data-colour="White"]  { background: #f0f0f0; border-color: #ccc; }
.gs-swatch[data-colour="Black"]  { background: #1a1a1a; border-color: #444; }
.gs-swatch[data-colour="Blue"]   { background: #2347c8; }
.gs-swatch[data-colour="Green"]  { background: #1a7a3c; }
.gs-swatch[data-colour="Red"]    { background: #c41f1f; }

.gs-swatch--active {
  outline-color: var(--accent);
  transform: scale(1.1);
}

/* Size buttons */
.gs-size-row {
  display: flex;
  gap: 10px;
}

.gs-size-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 18px;
  background: var(--grey-100);
  border: 1.5px solid var(--grey-200);
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, background 0.2s, opacity 0.2s;
}

.gs-size-btn--active {
  border-color: var(--accent);
  background: rgba(212,255,26,0.05);
}

.gs-size-btn--disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.gs-size-label {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--white);
  line-height: 1;
}

.gs-size-sub {
  font-size: 11px;
  color: var(--grey-500);
  letter-spacing: 0.06em;
}

.gs-size-note {
  font-size: 12px;
  color: var(--grey-500);
  font-weight: 300;
  margin: 0;
  font-style: italic;
}

/* Ensure hidden attribute always wins over display rules */
#gsSingleOptions[hidden],
#gsBundlePairs[hidden] {
  display: none !important;
}

/* ── BUNDLE PAIR CUSTOMISER ── */
.gs-bundle-pairs {
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: gsFadeIn 0.25s ease;
}

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

.gs-pair-row {
  border: 1px solid var(--grey-200);
  border-radius: 6px;
  padding: 16px 18px;
  background: var(--grey-100);
  transition: border-color 0.2s;
}

.gs-pair-row:hover {
  border-color: rgba(212,255,26,0.25);
}

.gs-pair-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.gs-pair-num {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--grey-500);
}

.gs-pair-summary {
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.gs-pair-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gs-pair-swatches {
  display: flex;
  gap: 8px;
}

.gs-pair-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: outline-color 0.15s, transform 0.15s;
}

.gs-pair-swatch--active {
  outline-color: var(--accent);
  transform: scale(1.12);
}

.gs-pair-sizes {
  display: flex;
  gap: 8px;
}

.gs-pair-size-btn {
  flex: 1;
  padding: 8px 12px;
  background: var(--black);
  border: 1.5px solid var(--grey-200);
  border-radius: 4px;
  color: var(--grey-400);
  font-size: 12px;
  font-family: var(--font-body);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, opacity 0.2s;
  text-align: center;
}

.gs-pair-size-btn--active {
  border-color: var(--accent);
  color: var(--white);
  background: rgba(212,255,26,0.05);
}

.gs-pair-size-btn--disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* Order summary */
.gs-order-summary {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 8px;
  border-top: 1px solid var(--grey-200);
}

.gs-summary-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  color: var(--grey-400);
}

.gs-summary-price {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--accent);
}

.gs-order-btn {
  text-align: center;
  display: block;
  width: 100%;
  border: none;
  cursor: pointer;
}

.gs-order-note {
  font-size: 12px;
  font-weight: 300;
  color: var(--grey-500);
  line-height: 1.7;
  margin: 0;
}

/* ── ORDER PANEL ── */
.gs-order-panel {
  background: rgba(212,255,26,0.04);
  border: 1px solid rgba(212,255,26,0.25);
  border-radius: 8px;
  animation: gsFadeIn 0.3s ease;
  overflow: hidden;
}

.gs-order-panel-inner {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.gs-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gs-panel-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--white);
  letter-spacing: 0.04em;
  margin: 0;
}

.gs-panel-close {
  background: none;
  border: none;
  color: var(--grey-500);
  font-size: 14px;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
}

.gs-panel-close:hover {
  color: var(--white);
}

/* Panel breakdown (order summary lines) */
.gs-panel-breakdown {
  background: var(--grey-100);
  border-radius: 6px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gs-panel-line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--grey-400);
}

.gs-panel-line--pair {
  font-size: 12px;
  color: var(--grey-500);
}

.gs-panel-line--total {
  border-top: 1px solid var(--grey-200);
  padding-top: 8px;
  margin-top: 4px;
  font-size: 14px;
  color: var(--white);
  font-weight: 500;
}

.gs-panel-line--total span:last-child {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--accent);
}

/* Panel inputs */
.gs-panel-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gs-panel-input,
.gs-panel-textarea {
  width: 100%;
  background: var(--grey-100);
  border: 1.5px solid var(--grey-200);
  border-radius: 6px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--white);
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}

.gs-panel-input::placeholder,
.gs-panel-textarea::placeholder {
  color: var(--grey-500);
}

.gs-panel-input:focus,
.gs-panel-textarea:focus {
  outline: none;
  border-color: rgba(212,255,26,0.5);
  box-shadow: 0 0 0 3px rgba(212,255,26,0.08);
}

.gs-panel-submit {
  text-align: center;
  border: none;
  cursor: pointer;
  width: 100%;
}

.gs-panel-note {
  font-size: 12px;
  font-weight: 300;
  color: var(--grey-500);
  line-height: 1.7;
  margin: 0;
  text-align: center;
}

/* ── FEATURES ── */
.gs-features {
  border-bottom: 1px solid var(--grey-200);
}

.gs-features-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.gs-feature {
  padding: 56px 40px;
  border-right: 1px solid var(--grey-200);
  border-top: 1px solid var(--grey-200);
  transition: background 0.3s;
}

.gs-feature:last-child {
  border-right: none;
}

.gs-feature:hover {
  background: var(--grey-100);
}

.gs-feature-icon {
  display: block;
  font-size: 24px;
  color: var(--accent);
  margin-bottom: 20px;
}

.gs-feature h3 {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--white);
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}

.gs-feature p {
  font-size: 14px;
  font-weight: 300;
  color: var(--grey-400);
  line-height: 1.8;
  margin: 0;
}

/* ── AS WORN BY ── */
.gs-worn {
  padding: 100px 0;
  border-bottom: 1px solid var(--grey-200);
  background: var(--grey-100);
}

.gs-worn-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.gs-worn-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 88px);
  line-height: 0.92;
  color: var(--white);
  margin: 16px 0 24px;
}

.gs-worn-text p {
  font-size: 15px;
  font-weight: 300;
  color: var(--grey-400);
  line-height: 1.85;
  max-width: 440px;
  margin-bottom: 32px;
}

.gs-worn-img {
  border-radius: 6px;
  overflow: hidden;
}

.gs-worn-img img {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .gs-hero {
    grid-template-columns: 1fr;
    height: auto;
    padding: 88px 0 0;
    gap: 0;
  }

  .gs-hero-content {
    padding: 48px 40px 40px;
  }

  .gs-hero-title {
    font-size: clamp(64px, 10vw, 140px);
  }

  .gs-hero-visual {
    padding: 0 0 24px;
    width: 100%;
    overflow: hidden;
  }

  .gs-hero-mosaic {
    border-radius: 0;
    width: 100%;
  }

  .gs-product-inner {
    grid-template-columns: 1fr;
    padding: 0 40px;
  }

  .gs-features-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .gs-feature:nth-child(2) {
    border-right: none;
  }

  .gs-worn-inner {
    grid-template-columns: 1fr;
    padding: 0 40px;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .gs-hero-content {
    padding: 40px 24px 32px;
  }

  .gs-hero-title {
    font-size: clamp(44px, 13vw, 88px);
  }

  .gs-hero-visual {
    padding: 0 0 20px;
    width: 100%;
    overflow: hidden;
  }

  .gs-hero-mosaic {
    gap: 3px;
    width: 100%;
  }

  .gs-mc-img {
    aspect-ratio: 2 / 3;
  }

  .gs-product-inner {
    padding: 0 24px;
  }

  .gs-bundle-row {
    grid-template-columns: 1fr;
  }

  .gs-features-inner {
    grid-template-columns: 1fr;
  }

  .gs-feature {
    border-right: none;
  }

  .gs-worn-inner {
    padding: 0 24px;
  }
}
