/* Happrun Projector - Konte Theme Recreation */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #161619;
  --color-secondary: #717178;
  --color-accent: #e8e8e8;
  --color-bg: #ffffff;
  --color-bg-alt: #f9f9f9;
  --color-border: #e6e8ea;
  --color-sale: #e02020;
  --font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --header-height: 120px;
  --container-width: 1270px;
  --transition: 0.3s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-family);
  color: var(--color-primary);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.site-header,
.site-footer {
  flex-shrink: 0;
}

.site-main {
  flex: 1 1 auto;
  width: 100%;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--transition);
}

a:hover {
  opacity: 0.7;
}

a.btn:hover,
a.btn-amazon:hover,
a.category-banner:hover,
a.product-image-link:hover,
a.header-icon:hover,
a.logo:hover,
.lang-link:hover {
  opacity: 1;
}

ul {
  list-style: none;
}

/* Forms are visual-only (no submissions), except screen calculator */
form:not(.screen-calculator__form),
.prose form {
  pointer-events: none;
  cursor: default;
}

form:not(.screen-calculator__form) input,
form:not(.screen-calculator__form) textarea,
form:not(.screen-calculator__form) select,
form:not(.screen-calculator__form) button,
.prose form input,
.prose form textarea,
.prose form select,
.prose form button {
  pointer-events: none;
  cursor: not-allowed;
}

form.form--inactive,
form.form--inactive input,
form.form--inactive textarea,
form.form--inactive select,
form.form--inactive button {
  opacity: 0.72;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}

.header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 30px;
  flex: 1;
  min-width: 0;
}

.header-left .main-nav {
  margin-left: 10px;
}

.logo img {
  width: 160px;
  height: auto;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  transition: var(--transition);
}

.main-nav ul {
  display: flex;
  gap: 32px;
}

.main-nav a {
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width var(--transition);
}

.main-nav a:hover::after {
  width: 100%;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.header-right .language-switcher {
  margin-left: 4px;
}

.header-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-primary);
}

.icon-label {
  font-size: 10px;
  letter-spacing: 0.05em;
}

.badge {
  position: absolute;
  top: -5px;
  right: -8px;
  background: var(--color-primary);
  color: white;
  font-size: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Language switcher */
.language-switcher {
  position: relative;
}

.language-switcher-toggle {
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 4px 4px 0 0;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  min-width: 44px;
}

.language-switcher-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--color-primary);
  border-radius: 0 0 4px 4px;
  min-width: 44px;
  z-index: 100;
  overflow: hidden;
}

.language-switcher.open .language-switcher-menu {
  display: block;
}

.language-switcher-menu .lang-link {
  display: block;
  padding: 8px 12px;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
}

.language-switcher-menu .lang-link:hover,
.language-switcher-menu .lang-link.active {
  color: #fff;
  opacity: 1;
}

.language-switcher-menu li:not(:last-child) .lang-link {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Home layout */
body.home .site-main {
  padding: 0;
}

/* Hero Slider */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: var(--color-primary);
}

.hero-slider-track {
  position: relative;
  min-height: clamp(520px, 85vh, 900px);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  z-index: 0;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slide-content {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 80px 20px 100px;
  color: white;
  position: relative;
  z-index: 2;
}

.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.25) 45%,
    rgba(0, 0, 0, 0.08) 100%
  );
  z-index: 1;
}

.hero-slide:first-child {
  background-position: center center;
}

.hero-label {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 24px;
  opacity: 0.9;
}

.hero-title {
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  font-weight: 300;
  line-height: 1.12;
  margin-bottom: 28px;
  max-width: 560px;
}

.hero-slide:not(:first-child) .hero-title {
  font-size: clamp(1.35rem, 2.8vw, 2.25rem);
  max-width: 640px;
}

.hero-subtitle {
  font-size: 14px;
  letter-spacing: 0.06em;
  line-height: 1.6;
  margin-bottom: 32px;
  opacity: 0.92;
  max-width: 480px;
}

.btn-hero {
  width: auto;
  max-width: none;
  min-width: 160px;
  text-align: center;
}

.hero-slider-nav {
  position: absolute;
  left: 20px;
  bottom: 40px;
  z-index: 5;
  display: flex;
  gap: 24px;
  align-items: center;
}

.hero-slider-dot {
  width: 32px;
  height: 2px;
  padding: 0;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.hero-slider-dot.active,
.hero-slider-dot:hover {
  background: #fff;
}

.scroll-down {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: white;
  z-index: 2;
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(4px); }
}

/* Category banners (Konte-style) */
.promo-duo,
.promo-trio {
  display: grid;
  gap: 0;
}

.promo-duo {
  grid-template-columns: repeat(2, 1fr);
}

.promo-trio {
  grid-template-columns: repeat(3, 1fr);
}

.category-banner {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 420px;
  color: #fff;
}

.category-banner img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.category-banner:hover img {
  transform: scale(1.04);
}

.category-banner__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px 48px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.1) 50%, transparent 100%);
  pointer-events: none;
}

.category-banner.align-left .category-banner__content {
  align-items: flex-start;
  text-align: left;
}

.category-banner.align-right .category-banner__content {
  align-items: flex-end;
  text-align: right;
}

.category-banner__category {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: 0.9;
  max-width: 320px;
}

.category-banner__title {
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  font-weight: 400;
  line-height: 1.45;
  margin-bottom: 20px;
  max-width: 380px;
}

.category-banner__button {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  display: inline-block;
}

/* Newsletter */
.newsletter-section {
  background: var(--color-bg-alt);
  padding: 80px 20px;
}

.newsletter-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-section h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400;
  margin-bottom: 15px;
}

.newsletter-section p {
  color: var(--color-secondary);
  margin-bottom: 30px;
  line-height: 1.7;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 0;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 15px 20px;
  border: 1px solid var(--color-border);
  border-right: none;
  font-family: var(--font-family);
  font-size: 14px;
  outline: none;
}

.newsletter-form button {
  padding: 15px 30px;
  background: var(--color-primary);
  color: white;
  border: none;
  font-family: var(--font-family);
  font-size: 14px;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: background var(--transition);
}

.newsletter-form button:hover {
  background: #333;
}

/* Section Titles */
.section-header {
  text-align: center;
  padding: 60px 20px 40px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 10px;
}

.section-header .see-all {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-primary);
  padding-bottom: 2px;
}

/* Shop archive */
.shop-archive {
  padding-bottom: 80px;
}

.shop-archive .page-header {
  margin-bottom: 30px;
}

.page-header__lead {
  max-width: 640px;
  margin: 12px auto 0;
  color: var(--color-secondary);
  line-height: 1.7;
  font-size: 1rem;
}

.products-archive {
  padding: 0;
}

.products-grid--shop {
  padding-top: 0;
  padding-bottom: 32px;
}

.shop-archive__disclosure {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--color-secondary);
  text-align: center;
}

/* Brand story */
.page-body--brand {
  max-width: 800px;
}

.brand-story__hero {
  margin: 0 0 40px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.brand-story__hero img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.brand-story__prose h2:first-child {
  margin-top: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.brand-story__social {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.brand-story__social-heading {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0 0 16px;
}

.brand-story__social-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.brand-story__social-link {
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 3px;
}

.brand-story__social-link:hover {
  border-color: var(--color-primary);
  opacity: 1;
}

/* Product Grid */
.products-section,
.blog-section {
  background: var(--color-bg);
}

.blog-section {
  margin-bottom: 20px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 20px;
  padding: 0 20px;
  max-width: var(--container-width);
  margin: 0 auto;
}

.product-card {
  position: relative;
}

.product-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: left;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-sale);
  color: white;
  font-size: 11px;
  font-weight: 500;
  padding: 5px 8px;
  z-index: 2;
  letter-spacing: 0.04em;
}

.product-image-link {
  display: block;
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--color-bg-alt);
  aspect-ratio: 1;
}

.product-image-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.45s ease;
}

.product-card:hover .product-image-link img {
  transform: scale(1.04);
}

.product-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.product-title {
  font-size: 0.95rem;
  font-weight: 400;
  margin: 0;
  line-height: 1.45;
}

.product-title a:hover {
  opacity: 0.7;
}

.product-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.product-price .price {
  font-size: 1.05rem;
  font-weight: 500;
}

.product-price .regular-price {
  color: var(--color-secondary);
  font-size: 0.9rem;
}

/* Amazon affiliate CTA */
.product-buy-cta {
  margin-top: auto;
  padding-top: 6px;
}

.product-buy-cta--card .product-affiliate-note,
.product-buy-cta--archive .product-affiliate-note {
  display: none;
}

.product-buy-cta--detail .product-view-details {
  display: none;
}

.product-card--archive .product-title {
  font-size: 0.9rem;
}

.product-card--archive .product-buy-cta {
  gap: 0;
}

.product-buy-cta--archive .btn-amazon {
  padding: 7px 12px;
  font-size: 10px;
}

.product-buy-cta--archive .product-view-details {
  margin-top: 8px;
  font-size: 12px;
}

.btn-amazon {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  padding: 8px 16px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 100px;
  font-family: var(--font-family);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition);
}

.btn-amazon:hover {
  background: #2d2d32;
  opacity: 1;
}

.btn-amazon__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
}

.btn-amazon__icon svg {
  display: block;
}

.btn-amazon__label {
  white-space: nowrap;
}

.product-view-details {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--color-secondary);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 2px;
}

.product-view-details:hover {
  color: var(--color-primary);
  opacity: 1;
}

.product-affiliate-note {
  margin: 14px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--color-secondary);
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  font-family: var(--font-family);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--color-primary);
  color: white;
  width: 100%;
  max-width: 200px;
}

.btn-primary:hover {
  background: #333;
  opacity: 1;
}

/* Blog archive */
.blog-archive {
  padding-bottom: 80px;
}

.page-header__meta {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-top: 10px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 28px;
  padding: 48px 20px 0;
  max-width: var(--container-width);
  margin: 0 auto;
}

.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card-image {
  display: block;
  overflow: hidden;
  margin-bottom: 18px;
  aspect-ratio: 16 / 10;
  background: var(--color-bg-alt);
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.blog-card-image-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f0f0f0 0%, #e6e8ea 100%);
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.04);
}

.blog-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.blog-card-date {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-secondary);
}

.blog-card-title {
  font-size: 1.05rem;
  font-weight: 500;
  margin: 0;
  line-height: 1.45;
}

.blog-card-title a:hover {
  opacity: 0.7;
}

.blog-card-excerpt {
  color: var(--color-secondary);
  font-size: 14px;
  margin: 0;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  margin-top: auto;
  padding-top: 8px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-primary);
  padding-bottom: 2px;
  align-self: flex-start;
}

.read-more:hover {
  opacity: 0.7;
}

/* Static pages */
.page-header {
  padding: 60px 20px 36px;
  text-align: center;
  background: var(--color-bg-alt);
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 400;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.2;
}

.page-shell {
  background: var(--color-bg);
}

.page-body {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.page-body--narrow {
  max-width: 720px;
}

.page-body--calculator {
  display: grid;
  gap: 48px;
  max-width: 1100px;
}

.page-body--contact {
  max-width: 1000px;
}

/* Prose (pages + blog) */
.prose {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-primary);
}

.prose h1 {
  font-size: 2rem;
  font-weight: 400;
  margin: 2rem 0 1rem;
  line-height: 1.25;
}

.prose h2 {
  font-size: 1.55rem;
  font-weight: 500;
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}

.prose h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin: 1.75rem 0 0.65rem;
  line-height: 1.35;
}

.prose h4 {
  font-size: 1.05rem;
  font-weight: 500;
  margin: 1.5rem 0 0.5rem;
}

.prose p {
  margin-bottom: 1.15rem;
}

.prose ul,
.prose ol {
  margin: 1rem 0 1.25rem 1.5rem;
  padding-left: 0.5rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose img {
  max-width: 100%;
  height: auto;
  margin: 1.75rem auto;
  border-radius: 6px;
  display: block;
}

/* Responsive video / embeds (WordPress oEmbed iframes) */
.prose iframe,
.prose video,
.prose embed,
.prose object {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 1.75rem 0;
  border: 0;
  border-radius: 6px;
}

.prose .wp-block-embed,
.prose .wp-block-embed__wrapper,
.prose figure.wp-block-embed {
  max-width: 100%;
  margin: 1.75rem 0;
}

.prose .wp-block-embed__wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}

.prose a img {
  display: block;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:hover {
  opacity: 0.75;
}

.prose blockquote {
  border-left: 3px solid var(--color-primary);
  padding: 0.25rem 0 0.25rem 1.25rem;
  margin: 1.75rem 0;
  font-style: italic;
  color: var(--color-secondary);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  font-size: 0.95rem;
}

.prose th,
.prose td {
  border: 1px solid var(--color-border);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--color-bg-alt);
  font-weight: 500;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2rem 0;
}

.prose strong {
  font-weight: 500;
}

/* Hide leftover Elementor in migrated HTML */
.prose .elementor,
.prose [data-elementor],
.prose .e-con {
  display: contents;
}

/* Screen calculator */
.screen-calculator {
  margin: 0 auto;
  padding: clamp(28px, 4vw, 40px);
  background: linear-gradient(145deg, #fafafa 0%, #f3f3f4 100%);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  box-shadow: 0 24px 48px rgba(22, 22, 25, 0.06);
}

.screen-calculator__header {
  margin-bottom: 32px;
  text-align: center;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.screen-calculator__title {
  font-size: clamp(1.65rem, 3.2vw, 2.15rem);
  font-weight: 500;
  margin: 0 0 12px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.screen-calculator__intro {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-secondary);
}

.screen-calculator__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.screen-calculator__form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
}

.screen-calculator__field label,
.screen-calculator__field legend {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 500;
  color: var(--color-secondary);
}

.screen-calculator__field--ratio {
  border: none;
  margin: 0;
  padding: 0;
}

.screen-calculator__field--ratio legend {
  padding: 0;
}

.screen-calculator__distance-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.screen-calculator__distance-row input[type='number'] {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  font-family: var(--font-family);
  font-size: 1.125rem;
  font-weight: 500;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.screen-calculator__distance-row input[type='number']:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(22, 22, 25, 0.08);
  background: #fff;
}

.screen-calculator__unit-toggle {
  display: flex;
  padding: 4px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  flex-shrink: 0;
}

.screen-calculator__unit-option {
  position: relative;
  cursor: pointer;
}

.screen-calculator__unit-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.screen-calculator__unit-option span {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 7px;
  color: var(--color-secondary);
  transition: background var(--transition), color var(--transition);
}

.screen-calculator__unit-option input:checked + span {
  background: var(--color-primary);
  color: #fff;
}

.screen-calculator__unit-option input:focus-visible + span {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.screen-calculator__ratio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.screen-calculator__ratio-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 10px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-bg-alt);
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.screen-calculator__ratio-card input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.screen-calculator__ratio-frame {
  display: block;
  width: 100%;
  max-width: 56px;
  background: rgba(22, 22, 25, 0.12);
  border-radius: 3px;
  transition: background var(--transition);
}

.screen-calculator__ratio-card input:checked + .screen-calculator__ratio-frame {
  background: var(--color-primary);
}

.screen-calculator__ratio-card:has(input:checked) {
  border-color: var(--color-primary);
  background: #fff;
  box-shadow: 0 8px 20px rgba(22, 22, 25, 0.08);
}

.screen-calculator__ratio-card:has(input:focus-visible) {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.screen-calculator__ratio-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-primary);
}

.screen-calculator__submit {
  width: 100%;
  max-width: none;
  padding: 14px 24px;
  font-size: 13px;
  letter-spacing: 0.1em;
}

.screen-calculator__aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.screen-calculator__preview-card {
  padding: 24px;
  background: var(--color-primary);
  border-radius: 16px;
  color: #fff;
}

.screen-calculator__preview-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 20px;
}

.screen-calculator__preview-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  padding: 16px;
}

.screen-calculator__preview-screen {
  width: min(100%, 280px);
  aspect-ratio: 16 / 9;
  max-height: 160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2a2a30 0%, #1a1a1e 100%);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  transition: aspect-ratio 0.35s ease, transform 0.35s ease;
}

.screen-calculator__preview-screen[data-ratio='4:3'] {
  aspect-ratio: 4 / 3;
}

.screen-calculator__preview-screen[data-ratio='21:9'] {
  aspect-ratio: 21 / 9;
}

.screen-calculator__preview-screen.is-updated {
  transform: scale(1.03);
}

.screen-calculator__preview-ratio {
  font-size: 13px;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

.screen-calculator__result {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  min-height: 140px;
}

.screen-calculator__result.has-result {
  border-color: var(--color-primary);
  box-shadow: 0 8px 24px rgba(22, 22, 25, 0.06);
}

.screen-calculator__empty {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-secondary);
}

.screen-calculator__result-title {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-secondary);
}

.screen-calculator__metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0;
}

.screen-calculator__metric {
  padding: 16px;
  background: var(--color-bg-alt);
  border-radius: 12px;
}

.screen-calculator__metric dt {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 8px;
}

.screen-calculator__metric dd {
  margin: 0;
}

.screen-calculator__metric dd strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-primary);
}

.screen-calculator__metric-alt {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--color-secondary);
}

.screen-calculator__error {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-sale);
  padding: 12px 14px;
  background: rgba(224, 32, 32, 0.06);
  border-radius: 10px;
}

@media (max-width: 900px) {
  .screen-calculator__layout {
    grid-template-columns: 1fr;
  }

  .screen-calculator__aside {
    order: -1;
  }

  .screen-calculator__preview-stage {
    min-height: 160px;
  }
}

@media (max-width: 520px) {
  .screen-calculator__distance-row {
    flex-direction: column;
  }

  .screen-calculator__unit-toggle {
    width: 100%;
  }

  .screen-calculator__unit-option {
    flex: 1;
  }

  .screen-calculator__unit-option span {
    text-align: center;
  }

  .screen-calculator__metrics {
    grid-template-columns: 1fr;
  }
}

/* Tools hub & navigation */
.page-shell--tools .page-header {
  margin-bottom: 30px;
}

.page-shell--tools .page-body--tools {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px 80px;
}

.tools-hub__intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
  color: var(--color-secondary);
  line-height: 1.65;
}

.tools-hub__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tools-hub__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px 24px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-bg-alt);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.tools-hub__link:hover {
  border-color: var(--color-primary);
  box-shadow: 0 8px 24px rgba(22, 22, 25, 0.06);
  opacity: 1;
}

.tools-hub__icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.tools-hub__title {
  font-size: 1.15rem;
  font-weight: 500;
  margin: 0 0 8px;
}

.tools-hub__desc {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--color-secondary);
  line-height: 1.5;
  flex: 0;
}

.tools-hub__guide {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--color-secondary);
  line-height: 1.55;
  flex: 1;
}

.tools-hub__cta {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.tool-nav {
  margin-bottom: 32px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tool-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  min-width: min-content;
}

.tool-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 13px;
  white-space: nowrap;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  transition: all var(--transition);
}

.tool-nav__link:hover,
.tool-nav__link.is-active {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
  opacity: 1;
}

.tool-nav__icon {
  font-size: 1rem;
}

.tool-guide {
  margin-bottom: 28px;
  padding: 20px 24px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 10px;
}

.tool-guide__what {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-primary);
}

.tool-guide__how {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-secondary);
}

.tool-guide__label {
  color: var(--color-primary);
  font-weight: 500;
  margin-right: 0.35em;
}

.screen-calculator__select,
.screen-calculator__input-full {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-family);
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #fff;
}

.screen-calculator__select:focus,
.screen-calculator__input-full:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(22, 22, 25, 0.08);
}

.screen-calculator__hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--color-secondary);
}

.screen-calculator__chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.screen-calculator__chip {
  cursor: pointer;
}

.screen-calculator__chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.screen-calculator__chip span {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
}

.screen-calculator__chip input:checked + span {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.screen-calculator__metric--wide {
  grid-column: 1 / -1;
}

.screen-calculator__notice {
  margin: 16px 0 0;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
  border-radius: 6px;
}

.screen-calculator__notice.is-ok {
  background: #eef8f0;
  color: #1a5c2e;
}

.screen-calculator__notice.is-warn {
  background: #fff8e6;
  color: #7a5a00;
}

.throw-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: center;
}

.throw-preview__projector {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.throw-preview__beam {
  flex: 1;
  max-width: 60px;
  height: 2px;
  background: rgba(255, 255, 255, 0.5);
}

.diy-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.diy-preview__frame {
  padding: 8px;
  border: 3px solid rgba(255, 255, 255, 0.85);
  border-radius: 4px;
}

.diy-preview__screen {
  width: min(180px, 100%);
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, 0.15);
}

.diy-preview__screen[data-ratio='4:3'] {
  aspect-ratio: 4 / 3;
}

.diy-preview__screen[data-ratio='21:9'] {
  aspect-ratio: 21 / 9;
}

.lumens-required {
  padding: 16px;
  background: var(--color-bg-alt);
  border-radius: 8px;
  margin-bottom: 16px;
}

.lumens-required strong {
  display: block;
  font-size: 1.75rem;
  margin-top: 4px;
}

.lumens-fit__heading {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 10px;
  color: var(--color-secondary);
}

.lumens-fit__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lumens-fit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  font-size: 13px;
  border-radius: 6px;
  background: var(--color-bg-alt);
}

.lumens-fit__name {
  flex: 1;
  line-height: 1.35;
}

.lumens-fit__badge {
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.lumens-fit.fits-yes .lumens-fit__badge {
  background: #d4edda;
  color: #155724;
}

.lumens-fit.fits-marginal .lumens-fit__badge {
  background: #fff3cd;
  color: #856404;
}

.lumens-fit.fits-no .lumens-fit__badge {
  background: #f8d7da;
  color: #721c24;
}

.tool-products {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}

.tool-products__heading {
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0 0 20px;
  text-align: center;
}

.tool-products__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tool-products__item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.tool-products__card {
  display: flex;
  gap: 12px;
  align-items: center;
  color: inherit;
}

.tool-products__thumb {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: var(--color-bg-alt);
  border-radius: 4px;
}

.tool-products__name {
  display: block;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

.tool-products__price {
  display: block;
  font-size: 14px;
  margin-top: 4px;
}

.btn-secondary--ghost {
  margin-top: 10px;
  border-color: var(--color-border);
}

@media (max-width: 992px) {
  .tools-hub__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tool-products__list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .tools-hub__grid {
    grid-template-columns: 1fr;
  }
}

.prose--article {
  max-width: var(--container-width);
}

/* Contact page */
.contact-page {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}

.contact-page__heading {
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0 0 1.25rem;
}

.contact-social {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 2rem;
}

.contact-social__link {
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 4px;
  display: inline-block;
  align-self: flex-start;
}

.contact-social__link:hover {
  border-color: var(--color-primary);
  opacity: 1;
}

.contact-page__email a {
  font-size: 15px;
  text-decoration: underline;
}

.contact-form {
  display: grid;
  gap: 1.25rem;
}

.contact-form__field label {
  display: block;
  font-size: 14px;
  margin-bottom: 0.45rem;
}

.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-family);
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: #fff;
}

.contact-form__field textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}

.contact-form__submit {
  max-width: 200px;
}

.contact-form__note {
  font-size: 13px;
  color: var(--color-secondary);
  margin: 0;
  line-height: 1.5;
}

.page-content {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 48px 20px 80px;
}

/* 404 Not Found */
.page-not-found .site-main {
  display: flex;
}

.not-found {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100dvh - var(--header-height) - 280px);
  padding: 72px 20px 96px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 255, 255, 0.06) 0%, transparent 70%),
    linear-gradient(180deg, #0d0d10 0%, #161619 55%, #1a1a1f 100%);
  color: #f5f5f5;
}

.not-found__stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.not-found__beam {
  position: absolute;
  top: -10%;
  left: 50%;
  width: min(720px, 120vw);
  height: 70%;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.04) 45%,
    transparent 100%
  );
  clip-path: polygon(42% 0%, 58% 0%, 100% 100%, 0% 100%);
  animation: not-found-beam 6s ease-in-out infinite;
}

.not-found__glow {
  position: absolute;
  top: 18%;
  left: 50%;
  width: 280px;
  height: 280px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  animation: not-found-glow 6s ease-in-out infinite;
}

.not-found__projector {
  position: absolute;
  top: 8%;
  left: 50%;
  width: 96px;
  height: auto;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.35);
}

.not-found__content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  text-align: center;
  animation: not-found-fade-in 0.8s ease both;
}

.not-found__code {
  font-size: clamp(5rem, 18vw, 9rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 0 0 0.5rem;
  background: linear-gradient(180deg, #ffffff 20%, rgba(255, 255, 255, 0.45) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.12));
}

.not-found__subtitle {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 1rem;
}

.not-found__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 400;
  margin: 0 0 1rem;
  line-height: 1.25;
}

.not-found__message {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.62);
  margin: 0 auto 2.25rem;
  max-width: 420px;
  line-height: 1.65;
}

.not-found__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 2.75rem;
}

.btn-not-found {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 14px 28px;
  font-family: var(--font-family);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: all var(--transition);
}

.btn-not-found--primary {
  background: #ffffff;
  color: var(--color-primary);
}

.btn-not-found--primary:hover {
  background: var(--color-accent);
  opacity: 1;
}

.btn-not-found--secondary {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-not-found--secondary:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.06);
  opacity: 1;
}

.not-found__nav-label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  margin: 0 0 1rem;
}

.not-found__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: center;
}

.not-found__links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}

.not-found__links a:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
  opacity: 1;
}

@keyframes not-found-beam {
  0%, 100% {
    opacity: 0.75;
    transform: translateX(-50%) scaleX(1);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scaleX(1.06);
  }
}

@keyframes not-found-glow {
  0%, 100% {
    opacity: 0.6;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.08);
  }
}

@keyframes not-found-fade-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Product Detail */
.product-detail {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 48px 20px 60px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.product-gallery-main {
  background: var(--color-bg-alt);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.product-gallery-thumb {
  padding: 0;
  border: 2px solid transparent;
  background: var(--color-bg-alt);
  cursor: pointer;
  width: 72px;
  height: 72px;
  overflow: hidden;
  transition: border-color var(--transition);
}

.product-gallery-thumb.active,
.product-gallery-thumb:hover {
  border-color: var(--color-primary);
}

.product-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-detail-info {
  position: relative;
}

.product-detail-info .product-badge {
  position: static;
  display: inline-block;
  margin-bottom: 16px;
}

.product-detail-info h1 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  margin-bottom: 20px;
  line-height: 1.3;
}

.product-detail-price {
  margin-bottom: 20px;
}

.product-detail-price .price-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 6px;
}

.product-detail-price .price {
  font-size: 1.75rem;
  font-weight: 500;
}

.product-detail-price del {
  color: var(--color-secondary);
  font-size: 1.1rem;
  margin-left: 10px;
}

.product-detail-description {
  color: var(--color-secondary);
  margin-bottom: 24px;
  line-height: 1.8;
}

.product-buy-cta--detail .btn-amazon {
  width: auto;
  max-width: none;
  padding: 10px 18px;
  font-size: 12px;
}

.product-long-description {
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

/* Product rating (Amazon) */
.product-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 8px 0 14px;
}

.product-rating--sm {
  margin: 4px 0 10px;
  font-size: 13px;
}

.product-rating-stars {
  display: inline-flex;
  gap: 1px;
  color: #e8a317;
  letter-spacing: -1px;
}

.product-rating--sm .product-rating-stars {
  font-size: 14px;
}

.product-rating-value {
  font-weight: 500;
  color: var(--color-primary);
}

.product-rating-count {
  color: var(--color-secondary);
  font-size: 0.92em;
}

.star--empty {
  color: #d4d4d4;
}

/* Product tabs (description / reviews) */
.product-tabs {
  max-width: var(--content-max, 1200px);
  margin: 48px auto 0;
  padding: 0 20px 80px;
}

.product-tabs-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 28px;
}

.product-tabs-btn {
  appearance: none;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 12px 20px;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-secondary);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}

.product-tabs-btn:hover,
.product-tabs-btn.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.product-tabs-count {
  font-weight: 400;
  margin-left: 4px;
}

.product-tabs-panel[hidden] {
  display: none;
}

.product-reviews-summary {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.product-reviews-source {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--color-secondary);
  line-height: 1.6;
}

.product-reviews-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.product-review-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}

.product-review-item:last-child {
  border-bottom: none;
}

.product-review-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin-bottom: 10px;
}

.product-review-stars {
  color: #e8a317;
  font-size: 14px;
  letter-spacing: 1px;
}

.product-review-title {
  font-weight: 500;
  color: var(--color-primary);
}

.product-review-author,
.product-review-date {
  font-size: 13px;
  color: var(--color-secondary);
}

.product-review-body {
  margin: 0;
  line-height: 1.75;
  color: var(--color-primary);
}

.product-detail-info .product-rating {
  margin-top: 4px;
  margin-bottom: 18px;
}

/* Blog post single */
.blog-post {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.blog-post-header,
.blog-post-featured,
.blog-post-content {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.blog-post-content {
  overflow-x: clip;
  min-width: 0;
}

.blog-post-content .prose table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.blog-post-back {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 28px;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.blog-post-back:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  opacity: 1;
}

.blog-post-header {
  margin-bottom: 32px;
}

.blog-post-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 12px;
}

.blog-post-date {
  color: var(--color-secondary);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.blog-post-featured {
  margin-bottom: 36px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.blog-post-featured img {
  width: 100%;
  height: auto;
  display: block;
}

/* Blog: related posts & product recommendations */
.post-recommendations,
.related-posts {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--color-border);
}

.post-recommendations__title,
.related-posts__title {
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0 0 12px;
  text-align: center;
}

.post-recommendations__intro {
  text-align: center;
  color: var(--color-secondary);
  font-size: 15px;
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.post-recommendations__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.post-recommendation-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-bg);
}

.post-recommendation-card__image {
  display: block;
  aspect-ratio: 1;
  background: var(--color-bg-alt);
}

.post-recommendation-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.post-recommendation-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.post-recommendation-card__title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  margin: 0;
}

.post-recommendation-card__title a {
  color: inherit;
}

.post-recommendation-card__title a:hover {
  color: var(--color-accent, var(--color-primary));
  opacity: 1;
}

.post-recommendation-card__price {
  font-size: 15px;
  font-weight: 500;
  margin: 0;
}

.post-recommendation-card .product-buy-cta {
  margin-top: auto;
}

.post-recommendations__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 36px;
}

.post-tool-cta {
  flex: 1 1 280px;
  max-width: 420px;
  padding: 20px;
  background: var(--color-bg-alt);
  border-radius: 8px;
  text-align: center;
}

.post-tool-cta p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.5;
}

.btn-secondary {
  display: inline-block;
  padding: 10px 22px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
  transition: all var(--transition);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: white;
  opacity: 1;
}

.related-posts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Compare page */
.page-shell--compare .page-header {
  margin-bottom: 30px;
}

.page-shell--compare .page-body--compare {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px 80px;
}

.compare-page__intro {
  max-width: 720px;
  margin: 0 auto 12px;
  text-align: center;
  line-height: 1.65;
  color: var(--color-secondary);
}

.compare-page__hint {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin: 0 0 28px;
}

.compare-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 32px;
}

.compare-table {
  width: 100%;
  min-width: 960px;
  border-collapse: collapse;
  font-size: 14px;
}

.compare-table th,
.compare-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  text-align: left;
}

.compare-table thead th {
  background: var(--color-bg-alt);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table__model {
  min-width: 200px;
}

.compare-table__model a {
  font-weight: 500;
  display: block;
  margin-bottom: 6px;
}

.compare-badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  background: var(--color-primary);
  color: white;
  border-radius: 4px;
}

.compare-price {
  display: block;
  font-weight: 500;
}

.compare-price-was {
  display: block;
  font-size: 12px;
  color: var(--color-secondary);
  margin-top: 4px;
}

.compare-table__actions {
  min-width: 160px;
}

.compare-table__actions .product-buy-cta {
  margin-top: 10px;
}

.compare-link-details {
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.compare-page__footer-cta {
  text-align: center;
}

.compare-page__footer-cta .btn-primary {
  display: inline-block;
  width: auto;
  padding-left: 36px;
  padding-right: 36px;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: var(--color-primary);
  color: white;
  padding: 40px 20px;
}

.footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.copyright {
  font-size: 13px;
  opacity: 0.7;
  margin: 0;
}

.footer-affiliate {
  font-size: 11px;
  opacity: 0.65;
  margin: 0;
  line-height: 1.4;
}

.footer-nav ul {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 13px;
  opacity: 0.7;
}

.footer-nav a:hover {
  opacity: 1;
}

/* Responsive */
@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .promo-duo,
  .promo-trio {
    grid-template-columns: 1fr;
  }

  .category-banner {
    min-height: 360px;
  }

  .category-banner img {
    min-height: 360px;
  }

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

  .product-detail {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: white;
    padding: 20px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
    border-bottom: 1px solid var(--color-border);
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 20px;
  }

  .header-right .icon-label {
    display: none;
  }

  .hero-slider-track {
    min-height: 460px;
  }

  .hero-slide-content {
    padding: 60px 20px 90px;
  }

  .hero-slider-nav {
    left: 50%;
    transform: translateX(-50%);
    bottom: 24px;
  }

  .scroll-down {
    display: none;
  }

  .header-left .main-nav {
    margin-left: 0;
  }

  .products-grid {
    gap: 16px;
  }

  .category-banner__content {
    padding: 28px 24px;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 20px;
  }

  .contact-page {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .not-found {
    min-height: calc(100dvh - var(--header-height) - 320px);
    padding: 56px 20px 72px;
  }

  .not-found__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-not-found {
    width: 100%;
    min-width: 0;
  }

  .not-found__projector {
    width: 72px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav ul {
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .post-recommendations__list,
  .related-posts__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input[type="email"] {
    border-right: 1px solid var(--color-border);
  }
}
