@import url('https://fonts.bunny.net/css?family=instrument-sans:400,500,600,700');

:root {
  --three-s-bg: #f6f3ee;
  --three-s-surface: #fffdf8;
  --three-s-surface-strong: #ffffff;
  --three-s-ink: #1d232c;
  --three-s-muted: #68707d;
  --three-s-line: rgba(29, 35, 44, 0.1);
  --three-s-accent: #d9662b;
  --three-s-accent-strong: #bf4f18;
  --three-s-accent-soft: rgba(217, 102, 43, 0.12);
  --three-s-shadow: 0 22px 60px rgba(26, 32, 44, 0.08);
  --three-s-radius-xl: 32px;
  --three-s-radius-lg: 24px;
  --three-s-radius-md: 18px;
  --three-s-radius-sm: 12px;
}

html,
body {
  background:
    radial-gradient(circle at top left, rgba(217, 102, 43, 0.12), transparent 32%),
    linear-gradient(180deg, #fbf8f3 0%, #f4f1eb 100%);
  color: var(--three-s-ink);
  font-family: "Instrument Sans", "Segoe UI", sans-serif;
}

body.three-s-body {
  min-height: 100vh;
}

a,
a:hover,
a:focus {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.three-s-container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.three-s-page {
  padding-bottom: 56px;
}

.three-s-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 18px 0;
  backdrop-filter: blur(18px);
  background: rgba(246, 243, 238, 0.86);
  border-bottom: 1px solid rgba(29, 35, 44, 0.06);
}

.three-s-header__inner {
  display: flex;
  align-items: center;
  gap: 18px;
}

.three-s-brand {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  min-width: 150px;
}

.three-s-brand__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--three-s-accent);
}

.three-s-brand__wordmark {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.three-s-header__search {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  max-width: 520px;
  background: var(--three-s-surface-strong);
  border: 1px solid rgba(29, 35, 44, 0.08);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.05);
  overflow: hidden;
}

.three-s-header__search input {
  flex: 1 1 auto;
  border: 0;
  background: transparent;
  padding: 14px 18px;
  font-size: 15px;
  color: var(--three-s-ink);
}

.three-s-header__search button {
  border: 0;
  background: var(--three-s-accent);
  color: #fff;
  font-weight: 700;
  padding: 14px 22px;
}

.three-s-header__nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.three-s-header__nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--three-s-muted);
  font-weight: 600;
  transition: 0.2s ease;
}

.three-s-header__nav a span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--three-s-accent-soft);
  color: var(--three-s-accent);
  font-size: 12px;
}

.three-s-header__nav a:hover {
  color: var(--three-s-ink);
  background: rgba(255, 255, 255, 0.75);
}

.three-s-eyebrow,
.three-s-section__eyebrow,
.three-s-panel-card__label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--three-s-accent);
}

.three-s-hero {
  padding: 44px 0 18px;
}

.three-s-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.9fr);
  gap: 24px;
  align-items: stretch;
}

.three-s-hero__copy,
.three-s-hero__panel {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--three-s-radius-xl);
  box-shadow: var(--three-s-shadow);
}

.three-s-hero__copy {
  padding: 38px;
}

.three-s-hero__copy h1,
.three-s-subhero h1 {
  margin: 14px 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.three-s-lead,
.three-s-subhero__lead {
  max-width: 660px;
  margin: 0;
  color: var(--three-s-muted);
  font-size: 18px;
  line-height: 1.7;
}

.three-s-hero__actions,
.three-s-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.three-s-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.three-s-button:hover {
  transform: translateY(-1px);
}

.three-s-button--primary {
  background: var(--three-s-accent);
  color: #fff;
  box-shadow: 0 18px 34px rgba(191, 79, 24, 0.24);
}

.three-s-button--ghost {
  background: rgba(255, 255, 255, 0.84);
  color: var(--three-s-ink);
  border: 1px solid rgba(29, 35, 44, 0.1);
}

.three-s-button--small {
  min-height: 38px;
  padding: 0 14px;
  background: rgba(29, 35, 44, 0.06);
  color: var(--three-s-ink);
}

.three-s-button--block {
  width: 100%;
}

.three-s-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.three-s-stat {
  padding: 18px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(29, 35, 44, 0.06);
  border-radius: var(--three-s-radius-md);
}

.three-s-stat strong {
  display: block;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.three-s-stat span {
  color: var(--three-s-muted);
  font-size: 14px;
}

.three-s-hero__panel {
  padding: 22px;
}

.three-s-panel-card {
  height: 100%;
  padding: 24px;
  border-radius: calc(var(--three-s-radius-xl) - 8px);
  background:
    linear-gradient(160deg, rgba(217, 102, 43, 0.12), rgba(255, 255, 255, 0.9) 58%),
    #fff;
  border: 1px solid rgba(217, 102, 43, 0.12);
}

.three-s-panel-card h2 {
  margin: 14px 0 10px;
  font-size: 28px;
  line-height: 1.15;
}

.three-s-panel-card p {
  margin: 0 0 18px;
  color: var(--three-s-muted);
  line-height: 1.7;
}

.three-s-bullet-list {
  margin: 0;
  padding-left: 18px;
  color: var(--three-s-ink);
}

.three-s-bullet-list li + li {
  margin-top: 10px;
}

.three-s-section {
  padding: 18px 0;
}

.three-s-section--compact {
  padding-top: 8px;
}

.three-s-section--muted .three-s-container,
.three-s-subhero .three-s-container {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: var(--three-s-radius-xl);
  box-shadow: var(--three-s-shadow);
  padding: 28px;
}

.three-s-section__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 18px;
}

.three-s-section__head h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -0.04em;
}

.three-s-text-link {
  color: var(--three-s-accent-strong);
  font-weight: 700;
}

.three-s-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.three-s-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(29, 35, 44, 0.08);
}

.three-s-chip strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(29, 35, 44, 0.06);
}

.three-s-chip.is-active {
  background: var(--three-s-accent);
  border-color: var(--three-s-accent);
  color: #fff;
}

.three-s-chip.is-active strong {
  background: rgba(255, 255, 255, 0.18);
}

.three-s-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.three-s-card-grid--featured {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.three-s-card-grid--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.three-s-product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border-radius: var(--three-s-radius-lg);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(29, 35, 44, 0.08);
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.07);
}

.three-s-product-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #f5efe6, #ece8df);
}

.three-s-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.three-s-product-card:hover .three-s-product-card__media img {
  transform: scale(1.03);
}

.three-s-product-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 20px;
}

.three-s-product-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--three-s-muted);
}

.three-s-product-card__meta a {
  color: var(--three-s-accent-strong);
  font-weight: 700;
}

.three-s-product-card h3 {
  margin: 12px 0 10px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.three-s-product-card p {
  margin: 0;
  color: var(--three-s-muted);
  line-height: 1.7;
}

.three-s-product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 18px;
}

.three-s-product-card__price {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.three-s-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.three-s-mini-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: var(--three-s-radius-md);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(29, 35, 44, 0.08);
}

.three-s-mini-card img {
  width: 84px;
  height: 68px;
  object-fit: cover;
  border-radius: var(--three-s-radius-sm);
}

.three-s-mini-card strong,
.three-s-mini-card span {
  display: block;
}

.three-s-mini-card span {
  margin-top: 6px;
  color: var(--three-s-muted);
}

.three-s-empty-state {
  padding: 38px;
  text-align: center;
  border-radius: var(--three-s-radius-lg);
  background: rgba(255, 255, 255, 0.9);
  border: 1px dashed rgba(29, 35, 44, 0.16);
}

.three-s-empty-state h3 {
  margin-top: 0;
  font-size: 28px;
}

.three-s-subhero {
  padding: 28px 0 12px;
}

.three-s-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--three-s-muted);
  font-size: 14px;
}

.three-s-breadcrumbs a:not(:last-child)::after {
  content: "/";
  margin-left: 10px;
  color: rgba(104, 112, 125, 0.5);
}

.three-s-subhero__head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
}

.three-s-subhero__aside {
  min-width: 160px;
  padding: 18px 20px;
  border-radius: var(--three-s-radius-md);
  background: rgba(29, 35, 44, 0.04);
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}

.three-s-subhero__aside strong {
  display: block;
  font-size: 30px;
  line-height: 1;
  margin: 0;
}

.three-s-subhero__aside span {
  display: block;
}

.three-s-subhero__aside .three-s-text-link {
  display: block;
  margin-top: 2px;
}

.three-s-richtext,
.three-s-richtext p,
.three-s-richtext ul {
  color: var(--three-s-muted);
  line-height: 1.8;
}

.three-s-richtext p:last-child {
  margin-bottom: 0;
}

.three-s-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
  margin-bottom: 22px;
}

.three-s-toolbar__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.three-s-toolbar__group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--three-s-muted);
}

.three-s-toolbar select,
.three-s-qty input {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(29, 35, 44, 0.12);
  border-radius: 14px;
  background: #fff;
}

.three-s-pagination {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-top: 22px;
  color: var(--three-s-muted);
}

.three-s-product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.85fr);
  gap: 22px;
}

.three-s-product-media,
.three-s-product-summary,
.three-s-detail-panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(29, 35, 44, 0.08);
  border-radius: var(--three-s-radius-lg);
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.06);
}

.three-s-product-media {
  padding: 20px;
}

.three-s-product-media__main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 430px;
  border-radius: var(--three-s-radius-md);
  background: linear-gradient(135deg, #f6efe5, #ebe7de);
  overflow: hidden;
}

.three-s-product-media__main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.three-s-product-media__placeholder {
  padding: 32px;
  color: var(--three-s-muted);
}

.three-s-product-media__thumbs {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.three-s-product-media__thumb {
  width: 88px;
  height: 88px;
  padding: 0;
  border: 1px solid rgba(29, 35, 44, 0.1);
  border-radius: var(--three-s-radius-sm);
  background: #fff;
  overflow: hidden;
}

.three-s-product-media__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.three-s-product-summary {
  padding: 26px;
}

.three-s-product-summary__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--three-s-muted);
  font-size: 14px;
}

.three-s-price-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
  padding: 20px;
  border-radius: var(--three-s-radius-md);
  background: linear-gradient(145deg, rgba(217, 102, 43, 0.12), rgba(255, 255, 255, 0.95));
  border: 1px solid rgba(217, 102, 43, 0.14);
}

.three-s-price-box strong {
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.three-s-price-box span {
  color: var(--three-s-muted);
}

.three-s-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.three-s-spec-card {
  padding: 16px;
  border-radius: 16px;
  background: rgba(29, 35, 44, 0.04);
}

.three-s-spec-card span {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--three-s-muted);
}

.three-s-spec-card strong {
  font-size: 16px;
}

.three-s-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.three-s-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(29, 35, 44, 0.06);
  color: var(--three-s-muted);
  font-size: 13px;
  font-weight: 700;
}

.three-s-buy-panel {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--three-s-line);
}

.three-s-toolbar__group--qty {
  width: 100%;
  margin-bottom: 14px;
}

.three-s-qty {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 10px;
  align-items: center;
}

.three-s-qty__button {
  min-height: 44px;
  border: 1px solid rgba(29, 35, 44, 0.12);
  border-radius: 14px;
  background: #fff;
  font-size: 22px;
  line-height: 1;
}

.three-s-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
  margin-top: 22px;
}

.three-s-detail-panel {
  padding: 24px;
}

.three-s-detail-panel h2 {
  margin: 0 0 16px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.three-s-related {
  margin-top: 28px;
}

.three-s-footer {
  padding: 20px 0 36px;
}

.three-s-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) auto auto;
  gap: 18px;
  align-items: center;
  padding: 24px 28px;
  border-radius: var(--three-s-radius-xl);
  background: rgba(27, 31, 37, 0.96);
  color: rgba(255, 255, 255, 0.88);
}

.three-s-footer__inner p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.62);
}

.three-s-footer__links,
.three-s-footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.three-s-footer__meta {
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 1100px) {
  .three-s-card-grid,
  .three-s-card-grid--featured,
  .three-s-card-grid--compact,
  .three-s-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .three-s-hero__grid,
  .three-s-product-layout,
  .three-s-detail-grid,
  .three-s-footer__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .three-s-header__inner {
    flex-wrap: wrap;
  }

  .three-s-header__search,
  .three-s-header__nav {
    width: 100%;
    max-width: none;
  }

  .three-s-header__nav {
    justify-content: space-between;
  }

  .three-s-stats,
  .three-s-spec-grid,
  .three-s-mini-grid,
  .three-s-card-grid,
  .three-s-card-grid--featured,
  .three-s-card-grid--compact {
    grid-template-columns: 1fr;
  }

  .three-s-section--muted .three-s-container,
  .three-s-subhero .three-s-container,
  .three-s-hero__copy,
  .three-s-hero__panel {
    padding: 22px;
  }

  .three-s-subhero__head,
  .three-s-section__head,
  .three-s-pagination {
    flex-direction: column;
    align-items: flex-start;
  }

  .three-s-subhero__aside {
    align-items: flex-start;
    text-align: left;
    white-space: normal;
  }

  .three-s-product-media__main {
    min-height: 280px;
  }
}

/*
 * Legacy ShopKing desktop header can remain active on some installations.
 * Force that header back into normal flow with an opaque background so it
 * stops overlapping the clone layout on wide screens.
 */
@media (min-width: 992px) {
  body > header:not(.three-s-header),
  .otherhead header:not(.three-s-header) {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    z-index: 60 !important;
    padding: 18px 0 !important;
    margin: 0 0 24px !important;
    background: rgba(12, 14, 18, 0.96) !important;
    border-bottom: 0 !important;
    box-shadow: 0 18px 40px rgba(15, 18, 27, 0.18) !important;
    backdrop-filter: none !important;
  }

  body > header:not(.three-s-header) .container,
  .otherhead header:not(.three-s-header) .container {
    width: min(1180px, calc(100% - 32px));
    padding-left: 0;
    padding-right: 0;
  }

  body > header:not(.three-s-header) .row,
  .otherhead header:not(.three-s-header) .row {
    display: flex;
    align-items: center;
  }

  body > header:not(.three-s-header) .appmenu,
  .otherhead header:not(.three-s-header) .appmenu {
    display: none !important;
  }

  body > header:not(.three-s-header) #logo,
  .otherhead header:not(.three-s-header) #logo {
    flex: 0 0 auto;
    width: auto;
    padding-left: 0;
  }

  body > header:not(.three-s-header) #logo img,
  .otherhead header:not(.three-s-header) #logo img {
    max-width: 190px;
    max-height: 52px;
  }

  body > header:not(.three-s-header) .menusp,
  .otherhead header:not(.three-s-header) .menusp {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 24px;
  }

  body > header:not(.three-s-header) #top-links,
  .otherhead header:not(.three-s-header) #top-links {
    flex: 0 0 auto;
    width: auto;
    margin-top: 0 !important;
    padding-left: 0;
    text-align: right;
  }

  body > header:not(.three-s-header) #top-links li svg,
  .otherhead header:not(.three-s-header) #top-links li svg {
    fill: rgba(255, 255, 255, 0.92) !important;
  }

  body > header:not(.three-s-header) .list-inline,
  .otherhead header:not(.three-s-header) .list-inline {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    margin: 0;
  }

  body > header:not(.three-s-header) + .three-s-page,
  .otherhead header:not(.three-s-header) + .three-s-page {
    padding-top: 8px;
  }
}
