/*
Theme Name: Tinted Glasses Blocksy Child
Template: blocksy
Version: 1.0.1
Text Domain: tinted-glasses
*/

:root {
  --tg-ink: #111418;
  --tg-text: #1f2933;
  --tg-muted: #68727f;
  --tg-line: rgba(18, 24, 31, 0.12);
  --tg-soft: #f4f6f8;
  --tg-soft-2: #eef4f2;
  --tg-accent: #0e6f80;
  --tg-accent-dark: #0a5060;
}

body {
  color: var(--tg-text);
  letter-spacing: 0;
}

a {
  color: var(--tg-accent-dark);
}

.site-main {
  overflow-x: clip;
}

.tg-page-shell {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.home .ct-container-full {
  padding-top: 0;
}

body.home .hero-section {
  display: none;
}

.tg-section {
  padding: clamp(44px, 6vw, 84px) 0;
  border-top: 1px solid var(--tg-line);
}

.tg-section:first-child {
  border-top: 0;
}

.tg-inner {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
}

.tg-home-top {
  padding-top: 0;
  background: #fff;
}

.tg-home-intro {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
  padding: clamp(18px, 3vw, 30px) 0 14px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.55fr);
  gap: clamp(18px, 4vw, 56px);
  align-items: end;
}

.tg-eyebrow {
  margin: 0 0 8px;
  color: var(--tg-accent-dark);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tg-home-intro h1 {
  margin: 0;
  color: var(--tg-ink);
  font-size: clamp(34px, 5.2vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

.tg-home-intro p {
  margin: 0;
  color: var(--tg-muted);
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.55;
}

.tg-kicker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--tg-line);
  background: var(--tg-line);
}

.tg-kicker {
  min-height: 100px;
  background: #fff;
  padding: 18px;
}

.tg-kicker strong {
  display: block;
  color: var(--tg-ink);
  font-size: 14px;
  line-height: 1.25;
}

.tg-kicker span {
  display: block;
  margin-top: 7px;
  color: var(--tg-muted);
  font-size: 13px;
  line-height: 1.4;
}

.tg-section-head {
  max-width: 760px;
  margin-bottom: 26px;
}

.tg-section-head h2 {
  margin: 0;
  color: var(--tg-ink);
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.04;
  letter-spacing: 0;
}

.tg-section-head p {
  margin: 12px 0 0;
  color: var(--tg-muted);
  font-size: 16px;
  line-height: 1.6;
}

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

.tg-lens-link,
.tg-product-link,
.tg-guide-row {
  color: inherit;
  text-decoration: none;
}

.tg-lens-link {
  min-height: 122px;
  border: 1px solid var(--tg-line);
  border-radius: 8px;
  padding: 16px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: center;
  background: #fff;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.tg-lens-link:hover {
  border-color: rgba(14, 111, 128, 0.42);
  transform: translateY(-1px);
}

.tg-lens-swatch {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--tg-line);
  overflow: hidden;
  background: #f7f7f7;
}

.tg-lens-swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tg-lens-name {
  display: block;
  color: var(--tg-ink);
  font-size: 16px;
  font-weight: 760;
  line-height: 1.22;
}

.tg-lens-meta {
  display: block;
  margin-top: 6px;
  color: var(--tg-muted);
  font-size: 13px;
  line-height: 1.35;
}

.tg-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.tg-product-link {
  display: block;
}

.tg-product-media {
  aspect-ratio: 1 / 1;
  background: var(--tg-soft);
  border-radius: 8px;
  overflow: hidden;
}

.tg-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.tg-product-link:hover .tg-product-media img {
  transform: scale(1.03);
}

.tg-product-title {
  display: block;
  margin-top: 12px;
  color: var(--tg-ink);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 680;
}

.tg-product-price {
  display: block;
  margin-top: 5px;
  color: var(--tg-muted);
  font-size: 14px;
}

.tg-guide-list {
  border-top: 1px solid var(--tg-line);
}

.tg-guide-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--tg-line);
}

.tg-guide-row strong {
  color: var(--tg-ink);
  font-size: 17px;
}

.tg-guide-row span {
  color: var(--tg-muted);
  line-height: 1.5;
}

.tg-guide-row em {
  color: var(--tg-accent-dark);
  font-style: normal;
  font-weight: 760;
}

.tg-final {
  background: var(--tg-soft-2);
}

.tg-final .tg-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.tg-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--tg-ink);
  color: #fff;
  text-decoration: none;
  font-weight: 760;
}

.tg-button:hover {
  color: #fff;
  background: var(--tg-accent-dark);
}

.tg-currency-switcher {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}

.tg-currency-switcher__label {
  color: var(--tg-muted);
}

@media (max-width: 900px) {
  .tg-home-intro {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .tg-kicker-grid,
  .tg-lens-grid,
  .tg-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tg-guide-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .tg-final .tg-inner {
    display: block;
  }

  .tg-final .tg-button {
    margin-top: 18px;
  }
}

@media (max-width: 560px) {
  .tg-inner,
  .tg-home-intro {
    width: min(100vw - 28px, 1180px);
  }

  .tg-home-intro h1 {
    font-size: clamp(32px, 14vw, 52px);
  }

  .tg-kicker-grid,
  .tg-lens-grid,
  .tg-product-grid {
    grid-template-columns: 1fr;
  }

  .tg-kicker {
    min-height: auto;
  }
}
