* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
}

html {
  min-width: 320px;
}

body {
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(255, 179, 128, 0.16), rgba(253, 251, 247, 0) 360px),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.5;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(var(--container-max), calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(18px);
}

.header-content {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-base);
  font-weight: 850;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  box-shadow: 0 10px 22px rgba(230, 92, 0, 0.22);
}

.logo-icon,
.badge-tg {
  background: var(--accent);
  color: #ffffff;
}

.search-box {
  flex: 1 1 280px;
  max-width: 420px;
}

.header-actions {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
}

.search-box input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  outline: 0;
  padding: 0 18px;
}

.search-box input::placeholder {
  color: var(--muted);
}

.search-box input:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: var(--focus-ring);
}

.theme-toggle {
  display: inline-flex;
  min-height: 42px;
  min-width: 98px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 9px 12px;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  padding: 4px;
}

.language-btn {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 850;
  padding: 7px 9px;
}

.language-btn:hover,
.language-btn:focus-visible,
.language-btn.is-active {
  background: var(--accent);
  color: var(--accent-text);
  outline: 0;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(230, 92, 0, 0.18);
  outline: 0;
}

.main-content {
  flex: 1;
  padding-block: clamp(32px, 7vw, 80px) var(--space-12);
}

body[data-page="product"] .main-content {
  padding-block: 16px 36px;
}

.section-heading {
  max-width: 820px;
  margin-bottom: clamp(28px, 5vw, 48px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(2.8rem, 7vw, 4rem);
  font-weight: 500;
  line-height: 1.04;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 600;
  line-height: 1.2;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.category-section,
.catalog-section {
  margin-top: 26px;
}

.section-row {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.section-row.compact {
  margin-bottom: 14px;
}

.back-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 72%, #111827);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 850;
  padding: 10px 14px;
  box-shadow: 0 2px 0 rgba(20, 23, 31, 0.12);
}

.back-button:hover,
.back-button:focus-visible {
  background: var(--accent-strong);
  outline: 0;
}

.product-back-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-bottom: 22px;
  border: 1px solid color-mix(in srgb, var(--accent) 72%, #111827);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 850;
  padding: 10px 14px;
  box-shadow: 0 2px 0 rgba(20, 23, 31, 0.12);
}

body[data-page="product"] .product-back-link {
  min-height: 32px;
  margin-bottom: 10px;
  padding: 6px 10px;
  font-size: 0.88rem;
}

.product-back-link:hover,
.product-back-link:focus-visible {
  background: var(--accent-strong);
  color: var(--accent-text);
  outline: 0;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tab {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 750;
  padding: 8px 14px;
}

.filter-tab:hover,
.filter-tab.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-text);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.category-card {
  display: grid;
  min-height: 172px;
  align-content: start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  padding: 24px;
  text-align: left;
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.category-card:hover,
.category-card:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 46%, var(--line));
  box-shadow: var(--shadow);
  outline: 0;
  transform: translateY(-2px);
}

.category-card-name {
  font-size: 1.08rem;
  font-weight: 700;
}

.category-card-description {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.category-card-count {
  width: fit-content;
  margin-top: auto;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-soft) 20%, var(--surface));
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 9px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: 16px;
}

.product-card {
  display: flex;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.product-card:hover,
.product-card:focus-within {
  border-color: color-mix(in srgb, var(--accent) 46%, var(--line));
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card-link {
  display: flex;
  width: 100%;
  min-height: 100%;
  flex-direction: column;
}

.card-image-container,
.card-media {
  position: relative;
  display: block;
  height: 220px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.card-image {
  position: absolute;
  inset: 18px;
  width: calc(100% - 36px);
  height: calc(100% - 36px);
  object-fit: contain;
  object-position: center;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 11px;
  padding: 18px;
}

.product-title,
.card-title {
  display: -webkit-box;
  min-height: 2.7em;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 1rem;
  line-height: 1.35;
}

.category-badge {
  width: fit-content;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-soft) 20%, transparent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
  padding: 6px 9px;
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.stars {
  color: var(--accent-strong);
  letter-spacing: 0;
  white-space: nowrap;
}

.product-price,
.price {
  color: var(--accent);
  font-size: 1.35rem;
  font-weight: 850;
}

.product-info .product-price {
  font-size: 2rem;
  font-weight: 900;
}

.button,
.cta-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--accent) 70%, #111827);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 800;
  text-align: center;
  box-shadow: var(--shadow-pressed);
}

.button {
  margin-top: auto;
  padding: 10px 12px;
  font-size: 0.92rem;
}

.button:hover,
.cta-button:hover {
  background: var(--accent-strong);
  filter: none;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

body[data-page="product"] .breadcrumb {
  display: inline-flex;
  margin-right: 12px;
  margin-bottom: 10px;
  font-size: 0.88rem;
}

.breadcrumb a {
  color: var(--text);
  font-weight: 700;
}

.product-detail {
  display: grid;
  gap: 24px;
}

.product-detail-card {
  display: grid;
  gap: clamp(12px, 1.8vw, 18px);
  padding: clamp(16px, 2.8vw, 26px);
  box-shadow: var(--shadow-soft);
}

.product-detail-card-header {
  max-width: 700px;
}

.product-detail-card h1 {
  max-width: 700px;
  margin: 0;
  color: var(--text);
  font-size: clamp(1.75rem, 3.25vw, 2.55rem);
  line-height: 1;
}

.product-detail-card .rich-eyebrow {
  margin-bottom: 6px;
}

.product-detail-card .rich-description {
  display: none;
}

.product-detail-card-stage {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(280px, 0.82fr);
  align-items: start;
  gap: clamp(18px, 3.2vw, 40px);
}

.product-detail-copy {
  display: grid;
  min-width: 0;
  gap: 14px;
}

.product-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.product-detail-meta .product-price {
  color: var(--rich-accent);
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 950;
}

.product-detail-meta .rating {
  color: var(--muted);
}

.product-detail-benefits {
  padding-right: 0;
}

.product-detail-benefit {
  border-radius: var(--radius);
  min-height: 74px;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 20px 14px 16px;
  width: 100% !important;
}

.product-detail-benefit:nth-child(n) {
  width: 100% !important;
}

.product-detail-benefit .rich-item-title {
  max-width: none;
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  line-height: 1.22;
}

.product-detail-actions {
  display: flex;
}

.product-detail-actions .cta-button {
  width: 100%;
  max-width: 520px;
}

.product-detail-gallery-panel {
  display: grid;
  min-width: 0;
  justify-items: end;
}

.product-detail-card .product-gallery {
  width: min(100%, 340px);
  gap: 8px;
}

.product-gallery {
  display: grid;
  gap: 12px;
}

.product-main-image,
.product-hero-image {
  display: grid;
  min-height: 340px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 24px;
}

.product-main-image {
  cursor: zoom-in;
}

.product-detail-card .product-main-image {
  position: relative;
  min-height: 0;
  height: clamp(260px, 30vw, 330px);
  aspect-ratio: auto;
  overflow: hidden;
  border: 8px solid #ffffff;
  background: #ffffff;
  padding: 0;
  box-shadow: 0 24px 42px rgba(17, 24, 39, 0.11);
  transform: rotate(0.8deg);
}

.product-main-image:focus-visible {
  border-color: var(--accent-strong);
  box-shadow: var(--focus-ring);
  outline: 0;
}

.detail-image {
  width: 100%;
  height: clamp(320px, 42vw, 430px);
  object-fit: contain;
  object-position: center;
}

.product-detail-card .detail-image {
  position: absolute;
  inset: clamp(10px, 1.4vw, 16px);
  width: calc(100% - (clamp(10px, 1.4vw, 16px) * 2));
  height: calc(100% - (clamp(10px, 1.4vw, 16px) * 2));
  max-width: 100%;
  max-height: 100%;
  object-fit: contain !important;
  object-position: center !important;
  filter: drop-shadow(0 18px 18px rgba(39, 30, 17, 0.16));
}

.product-thumbnails {
  display: flex;
  max-width: 100%;
  min-height: 62px;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 8px;
  scrollbar-width: thin;
}

.thumbnail-button {
  position: relative;
  display: block;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: #ffffff;
  padding: 4px;
}

.product-detail-card .thumbnail-button {
  width: 52px;
  height: 52px;
  flex-basis: 52px;
}

.thumbnail-button:hover,
.thumbnail-button:focus-visible,
.thumbnail-button.is-active {
  border-color: var(--accent-strong);
  outline: 0;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 22%, transparent);
}

.thumbnail-image {
  position: absolute;
  inset: 4px;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border-radius: 5px;
  object-fit: contain;
  object-position: center;
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.76);
  padding: 20px;
}

.image-modal-dialog {
  position: relative;
  display: grid;
  width: min(980px, 100%);
  max-height: calc(100vh - 40px);
  gap: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.image-modal-frame {
  display: grid;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  background: #ffffff;
  padding: 16px;
}

.modal-image {
  width: 100%;
  height: min(68vh, 620px);
  object-fit: contain;
  object-position: center;
}

.image-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}

.image-modal-close:hover,
.image-modal-close:focus-visible {
  background: var(--accent-strong);
  outline: 0;
}

.product-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.product-info h1 {
  margin-bottom: 0;
  font-size: clamp(1.9rem, 4.8vw, 3rem);
}

.benefits {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefits li {
  position: relative;
  padding-left: 28px;
  color: var(--text);
}

.benefits li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(8, 116, 67, 0.12);
}

.cta-button {
  width: 100%;
  max-width: 420px;
  padding: 14px 18px;
  font-size: 1rem;
}

.product-rich-content {
  display: grid;
  gap: 28px;
  margin-top: clamp(48px, 8vw, 88px);
}

.rich-block {
  --rich-bg: var(--surface);
  --rich-accent: var(--accent);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--rich-bg);
  color: var(--text);
  padding: clamp(22px, 5vw, 56px);
}

.rich-heading {
  max-width: 720px;
  margin-bottom: clamp(24px, 4vw, 42px);
}

.rich-eyebrow {
  margin: 0 0 8px;
  color: var(--rich-accent);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.rich-title {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  line-height: 1.08;
}

.rich-description {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--muted);
}

.rich-item {
  min-width: 0;
}

.rich-item-copy {
  min-width: 0;
}

.rich-item-icon {
  display: inline-grid;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--rich-accent) 45%, transparent);
  border-radius: 50%;
  background: #ffffff;
  color: var(--rich-accent);
  font-size: 0.84rem;
  font-weight: 900;
}

.rich-item-title {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.25;
}

.rich-item-text {
  margin: 5px 0 0;
  color: #606773;
  font-size: 0.9rem;
}

.rich-media-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.rich-orbit-stage {
  position: relative;
  display: grid;
  min-height: 460px;
  place-items: center;
}

.rich-orbit-media {
  position: relative;
  z-index: 2;
  width: min(42%, 360px);
  aspect-ratio: 1;
  overflow: visible;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 50%;
  background: #ffffff;
  padding: 28px;
  box-shadow: 0 18px 44px rgba(32, 36, 44, 0.12);
}

.rich-orbit-media::before,
.rich-orbit-media::after {
  position: absolute;
  z-index: -1;
  border: 1px solid color-mix(in srgb, var(--rich-accent) 38%, transparent);
  border-radius: 50%;
  content: "";
  inset: -46px;
}

.rich-orbit-media::after {
  border-style: dashed;
  inset: -92px;
}

.rich-orbit-items {
  position: absolute;
  inset: 0;
}

.rich-orbit-item {
  position: absolute;
  display: flex;
  width: min(250px, 27%);
  align-items: center;
  gap: 12px;
}

.rich-orbit-item::after {
  position: absolute;
  z-index: 0;
  width: clamp(30px, 6vw, 84px);
  border-top: 1px solid color-mix(in srgb, var(--rich-accent) 58%, transparent);
  content: "";
}

.rich-orbit-item:nth-child(1) {
  top: 5%;
  left: 2%;
}

.rich-orbit-item:nth-child(1)::after,
.rich-orbit-item:nth-child(3)::after {
  right: -58px;
}

.rich-orbit-item:nth-child(2) {
  top: 5%;
  right: 2%;
}

.rich-orbit-item:nth-child(2)::after,
.rich-orbit-item:nth-child(4)::after {
  left: -58px;
}

.rich-orbit-item:nth-child(3) {
  bottom: 5%;
  left: 2%;
}

.rich-orbit-item:nth-child(4) {
  right: 2%;
  bottom: 5%;
}

.rich-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.rich-steps::before {
  position: absolute;
  top: 31px;
  right: 6%;
  left: 6%;
  border-top: 2px dotted color-mix(in srgb, var(--rich-accent) 52%, transparent);
  content: "";
}

.rich-step {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: start;
  gap: 14px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  padding: 20px;
}

.rich-step-number {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 50%;
  background: var(--rich-accent);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 900;
  box-shadow: 0 0 0 7px var(--rich-bg);
}

.rich-doodle-layout,
.rich-icon-list-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  align-items: center;
  gap: clamp(24px, 6vw, 72px);
}

.rich-doodle-media,
.rich-icon-list-media {
  min-height: 360px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #ffffff;
  padding: 24px;
}

.rich-doodle-media .rich-media-image,
.rich-icon-list-media .rich-media-image {
  height: 360px;
}

.rich-doodle-notes,
.rich-icon-list {
  display: grid;
  gap: 14px;
}

.rich-doodle-note {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 2px dashed color-mix(in srgb, var(--rich-accent) 60%, transparent);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  padding: 14px;
  transform: rotate(var(--note-rotation));
}

.rich-doodle-note::before {
  position: absolute;
  top: 50%;
  left: -32px;
  width: 28px;
  border-top: 2px solid var(--rich-accent);
  content: "";
}

.rich-icon-list-layout {
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1fr);
}

.rich-icon-list-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 0 16px;
}

.rich-icon-list-item:not(:last-child)::after {
  position: absolute;
  bottom: 0;
  left: 68px;
  width: calc(100% - 68px);
  border-top: 2px dotted color-mix(in srgb, var(--rich-accent) 46%, transparent);
  content: "";
}

.rich-feature-banners {
  display: grid;
  gap: 12px;
  width: 100%;
  padding-right: min(33%, 330px);
}

.rich-feature-stage {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 500px;
  align-items: center;
}

.rich-feature-media {
  position: absolute;
  top: 50%;
  right: -1%;
  z-index: 2;
  display: grid;
  width: min(42%, 410px);
  height: 92%;
  place-items: center;
  overflow: hidden;
  border: 8px solid #ffffff;
  border-radius: var(--radius);
  background: #ffffff;
  padding: 0;
  box-shadow: 0 26px 48px rgba(48, 38, 23, 0.18);
  transform: translateY(-50%) rotate(1.2deg);
}

.rich-feature-media .rich-media-image {
  position: absolute;
  inset: clamp(10px, 2vw, 18px);
  display: block;
  width: calc(100% - (clamp(10px, 2vw, 18px) * 2));
  height: calc(100% - (clamp(10px, 2vw, 18px) * 2));
  max-width: 100%;
  max-height: 100%;
  object-fit: contain !important;
  object-position: center !important;
  filter: drop-shadow(0 18px 18px rgba(39, 30, 17, 0.16));
  mix-blend-mode: normal;
}

.rich-feature-banner {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  min-height: 108px;
  align-items: center;
  gap: 18px;
  border: 0;
  border-left: 5px solid var(--rich-accent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--rich-accent) 10%, #ffffff);
  padding: 20px 42px 20px 22px;
  box-shadow: 0 12px 28px rgba(48, 38, 23, 0.08);
}

.rich-feature-banner:nth-child(2) {
  width: 94%;
  background: color-mix(in srgb, var(--rich-accent) 15%, #ffffff);
}

.rich-feature-banner:nth-child(3) {
  width: 88%;
  background: color-mix(in srgb, var(--rich-accent) 20%, #ffffff);
}

.rich-feature-banner:nth-child(4) {
  width: 82%;
  background: color-mix(in srgb, var(--rich-accent) 25%, #ffffff);
}

.rich-feature-banner .rich-item-icon {
  border-color: color-mix(in srgb, var(--rich-accent) 55%, transparent);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 18px rgba(48, 38, 23, 0.1);
}

.rich-feature-banner .rich-item-title {
  max-width: 560px;
  font-size: clamp(1rem, 1.8vw, 1.22rem);
}

.product-detail-card .product-detail-benefits {
  gap: 8px;
  padding-right: 0;
}

.product-detail-card .product-detail-benefit {
  width: 100% !important;
  min-height: 58px;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  border-radius: var(--radius);
  padding: 10px 14px;
}

.product-detail-card .product-detail-benefit:nth-child(n) {
  width: 100% !important;
}

.product-detail-card .product-detail-benefit .rich-item-icon {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
  font-size: 0.75rem;
}

.product-detail-card .product-detail-benefit .rich-item-title {
  max-width: none;
  font-size: 0.94rem;
  line-height: 1.18;
}

@media (max-width: 940px) {
  .product-detail-card {
    padding: 18px;
  }

  .product-detail-card-stage {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-detail-gallery-panel {
    grid-row: 1;
    justify-items: center;
  }

  .product-detail-card .product-gallery {
    width: min(100%, 340px);
  }

  .product-detail-card .product-main-image {
    height: clamp(240px, 64vw, 310px);
    transform: none;
  }

  .product-detail-actions .cta-button {
    max-width: none;
  }

  .product-detail-benefit {
    min-height: 68px;
    padding-block: 12px;
  }

  .rich-layout-feature-banners .rich-heading {
    margin-bottom: 22px;
  }

  .rich-feature-stage {
    display: grid;
    min-height: 0;
    align-items: stretch;
    gap: 18px;
    overflow: visible;
  }

  .rich-feature-media {
    position: relative;
    top: auto;
    right: auto;
    grid-row: 1;
    width: min(100%, 520px);
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
    justify-self: center;
    box-sizing: border-box;
    padding: 0;
    transform: none;
  }

  .rich-feature-banners {
    padding-right: 0;
  }

  .rich-feature-banner {
    width: 100% !important;
    border-radius: var(--radius);
  }
}

.dark-theme .rich-block {
  border-color: #3a3a3a;
  background: #1e1e1e;
  color: #f1f5f9;
}

.dark-theme .rich-title,
.dark-theme .rich-item-title {
  color: #ffffff;
}

.dark-theme .rich-description,
.dark-theme .rich-item-text {
  color: #cbd5e1;
}

.dark-theme .rich-step,
.dark-theme .rich-doodle-note,
.dark-theme .rich-feature-banner {
  border-color: #3a3a3a;
  background: #252525;
}

.dark-theme .rich-feature-media {
  border-radius: var(--radius);
  background: #ffffff;
  padding: 0;
}

.dark-theme .rich-feature-media .rich-media-image {
  mix-blend-mode: normal;
}

.dark-theme .rich-step-number {
  box-shadow: 0 0 0 7px #1e1e1e;
}

.dark-theme .rich-eyebrow,
.dark-theme .rich-item-icon {
  color: var(--rich-accent) !important;
}

.dark-theme .rich-step-number {
  color: #ffffff !important;
}

.not-found,
.empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  padding: 22px;
}

.secondary-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border-radius: var(--radius);
  background: var(--text);
  color: var(--bg);
  font-weight: 800;
  padding: 10px 14px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
  padding-block: 22px;
  font-size: 0.92rem;
}

.dark-theme h1,
.dark-theme h2,
.dark-theme h3,
.dark-theme p,
.dark-theme span,
.dark-theme a,
.dark-theme .product-title {
  color: #f1f5f9 !important;
}

.dark-theme .brand-mark,
.dark-theme .logo-icon,
.dark-theme .badge-tg,
.dark-theme .button,
.dark-theme .cta-button,
.dark-theme .back-button,
.dark-theme .product-back-link,
.dark-theme .language-btn.is-active,
.dark-theme .filter-tab.is-active {
  color: #111111 !important;
}

.dark-theme .stars {
  color: var(--accent-strong) !important;
}

.dark-theme .eyebrow,
.dark-theme .category-badge {
  color: var(--success) !important;
}

.dark-theme .product-card {
  border: 1px solid #333333;
  background-color: #1e1e1e;
}

.dark-theme .card-body {
  background-color: #1e1e1e;
}

.dark-theme .card-image-container,
.dark-theme .card-media {
  border-color: #333333;
  background-color: #ffffff;
}

.dark-theme .product-main-image,
.dark-theme .product-hero-image,
.dark-theme .thumbnail-button,
.dark-theme .image-modal-frame {
  border-color: #333333;
  background-color: #ffffff;
}

.dark-theme .image-modal-dialog {
  border-color: #333333;
  background-color: #1e1e1e;
}

.dark-theme .image-modal-close {
  color: #111111;
}

.dark-theme .product-title {
  color: #ffffff !important;
}

.dark-theme .product-price {
  color: var(--accent-strong) !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 620px) {
  .site-header {
    position: static;
  }

  .header-content {
    display: grid;
    min-height: 0;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 10px;
    padding-block: 12px;
  }

  .brand {
    justify-content: flex-start;
  }

  .search-box {
    flex: 0 0 auto;
    max-width: none;
  }

  .search-box input {
    min-height: 42px;
  }

  .header-actions {
    display: grid;
    width: 100%;
    flex: 0 0 auto;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 8px;
  }

  .header-actions .search-box {
    grid-column: 1 / -1;
  }

  .theme-toggle {
    width: 100%;
    min-width: 0;
  }

  .language-switcher {
    width: 100%;
    justify-content: center;
  }

  .image-modal {
    padding: 10px;
  }

  .image-modal-dialog {
    max-height: calc(100vh - 20px);
    padding: 12px;
  }

  .modal-image {
    height: min(62vh, 520px);
  }

  .product-rich-content {
    gap: 18px;
    margin-top: 42px;
  }

  .product-detail-card {
    gap: 12px;
    padding: 14px;
  }

  .product-detail-card h1 {
    font-size: clamp(1.45rem, 7.5vw, 2rem);
    line-height: 1.04;
  }

  .product-detail-card .rich-description {
    font-size: 0.92rem;
  }

  .product-detail-card .product-main-image {
    height: clamp(210px, 61vw, 260px);
    border-width: 6px;
    padding: 0;
  }

  .product-detail-card .product-thumbnails {
    justify-content: flex-start;
    min-height: 62px;
    gap: 8px;
  }

  .product-detail-card .thumbnail-button {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .product-detail-meta {
    display: grid;
    gap: 8px;
  }

  .product-detail-meta .product-price {
    font-size: 1.42rem;
  }

  .product-detail-benefit {
    grid-template-columns: 44px minmax(0, 1fr);
    min-height: 56px;
    gap: 11px;
    padding: 9px 11px;
  }

  .product-detail-benefit .rich-item-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .product-detail-benefit .rich-item-title {
    font-size: 0.9rem;
  }

  .rich-block {
    padding: 20px;
  }

  .rich-orbit-stage {
    min-height: 0;
    gap: 18px;
  }

  .rich-orbit-media {
    width: min(100%, 280px);
  }

  .rich-orbit-media::before,
  .rich-orbit-media::after,
  .rich-orbit-item::after,
  .rich-steps::before,
  .rich-doodle-note::before {
    display: none;
  }

  .rich-orbit-items {
    position: static;
    display: grid;
    width: 100%;
    gap: 10px;
  }

  .rich-orbit-item {
    position: static;
    display: flex;
    width: 100%;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.78);
    padding: 14px;
  }

  .rich-steps {
    grid-template-columns: 1fr;
  }

  .rich-step {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

  .rich-step-number {
    grid-row: 1 / span 2;
  }

  .rich-doodle-layout,
  .rich-icon-list-layout {
    grid-template-columns: 1fr;
  }

  .rich-doodle-media,
  .rich-icon-list-media {
    min-height: 280px;
  }

  .rich-doodle-media .rich-media-image,
  .rich-icon-list-media .rich-media-image {
    height: 280px;
  }

  .rich-doodle-note {
    transform: none;
  }

  .rich-icon-list-layout .rich-icon-list-media {
    grid-row: 1;
  }

  .rich-feature-banner {
    grid-template-columns: 48px minmax(0, 1fr);
    width: 100% !important;
    gap: 12px;
    border-radius: var(--radius);
    padding: 15px;
  }

  .rich-feature-stage {
    gap: 16px;
  }

  .rich-feature-media {
    width: 100%;
    max-width: 460px;
    aspect-ratio: 1 / 0.86;
  }

  .rich-feature-banners {
    padding-right: 0;
  }

  .rich-feature-banner .rich-item-icon {
    width: 44px;
    height: 44px;
  }

  .dark-theme .rich-orbit-item {
    border-color: #3a3a3a;
    background: #252525;
  }
}

@media (min-width: 760px) {
  .section-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
}

@media (min-width: 820px) {
  .main-content {
    padding-block: 42px 64px;
  }

  .product-detail:not(.product-detail-card) {
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
    align-items: center;
    gap: 44px;
  }
}
