:root {
  --red: #c8102e;
  --red-dark: #a40d25;
  --ink: #161616;
  --charcoal: #303030;
  --muted: #686868;
  --line: #dedede;
  --soft: #f3f3f3;
  --white: #fff;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding-top: 82px;
  background: #fff;
  color: var(--ink);
  font-family: "Inter", sans-serif;
}
.rico-navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}
.rico-nav-wrapper {
  max-width: 1500px;
  margin: auto;
  min-height: 82px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.rico-logo {
  display: flex;
  align-items: center;
}
.rico-logo img {
  height: 52px;
  width: auto;
}
.rico-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
}
.rico-menu a,
.rico-actions a,
.hero-actions a {
  text-decoration: none;
}
sl-button.nav-btn::part(base) {
  background: transparent;
  border: 1px solid transparent;
  color: #333;
  border-radius: 10px;
  font-weight: 600;
  padding: 8px 12px;
}
sl-button.nav-btn::part(base):hover {
  background: #f3f3f3;
  border-color: #ddd;
  color: #111;
}
sl-button.nav-btn.active::part(base) {
  background: rgba(200, 16, 46, 0.09);
  border-color: rgba(200, 16, 46, 0.24);
  color: var(--red);
}
.rico-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 385px;
  justify-content: flex-end;
}
.search-form {
  width: 220px;
}
sl-input.search-box::part(base) {
  height: 45px;
  background: #f4f4f4;
  border: 1px solid #ddd;
  border-radius: 11px;
}
sl-input.search-box::part(input) {
  color: #222;
}
sl-button.wsp-btn::part(base) {
  height: 45px;
  background: #303030;
  border-color: #303030;
  color: #fff;
  border-radius: 11px;
  font-weight: 700;
}
.breadcrumbs {
  max-width: 1500px;
  margin: auto;
  padding: 20px 24px;
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  color: #777;
  font-size: 13px;
}
.breadcrumbs a {
  color: #555;
  text-decoration: none;
}
.breadcrumbs strong {
  color: #222;
}
.product-hero {
  max-width: 1500px;
  margin: auto;
  padding: 8px 24px 46px;
  display: grid;
  grid-template-columns: minmax(360px, 1.05fr) minmax(380px, 0.95fr);
  gap: 55px;
  align-items: center;
}
.product-visual {
  position: relative;
  min-height: 570px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #fff, #f0f0f0);
  overflow: hidden;
}
.product-visual::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 7%;
  height: 9%;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.14);
  filter: blur(30px);
}
.product-visual img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  padding: 14px;
  object-fit: contain;
  mix-blend-mode: multiply;
  transform: scale(1);
}

.product-gallery {
  min-width: 0;
}

.product-gallery .product-visual {
  border: 1px solid #e4e4e4;
  border-radius: 24px;
  box-shadow: 0 20px 55px rgba(20, 20, 20, 0.08);
}

.product-gallery-main {
  transition: opacity 0.16s ease, transform 0.2s ease;
}

.product-gallery-main.changing {
  opacity: 0.55;
  transform: scale(0.985);
}

.gallery-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: rgba(25, 25, 25, 0.78);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.gallery-arrow:hover {
  background: var(--red);
  transform: translateY(-50%) scale(1.06);
}

.gallery-prev { left: 18px; }
.gallery-next { right: 18px; }

.gallery-counter {
  position: absolute;
  z-index: 5;
  right: 18px;
  bottom: 16px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(25, 25, 25, 0.76);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.gallery-thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  padding: 3px 2px 7px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.gallery-thumbnail {
  flex: 0 0 82px;
  height: 72px;
  padding: 4px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #f2f2f2;
  cursor: pointer;
  opacity: 0.68;
  transition: border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.gallery-thumbnail:hover,
.gallery-thumbnail.active {
  border-color: var(--red);
  opacity: 1;
  transform: translateY(-2px);
}

.gallery-thumbnail img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 7px;
}
.featured-line {
  position: absolute;
  z-index: 3;
  left: 0;
  top: 0;
  width: 6px;
  height: 38%;
  background: var(--red);
}
.category-label {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: #333;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.product-code {
  margin-top: 18px;
  color: #747474;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.product-summary h1 {
  margin: 5px 0 9px;
  font-size: clamp(48px, 6vw, 82px);
  letter-spacing: -0.055em;
  line-height: 1;
}
.product-lead {
  max-width: 660px;
  color: #444;
  font-size: 17px;
  line-height: 1.65;
}
.quick-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 22px;
  margin: 24px 0;
}
.quick-specs div {
  position: relative;
  padding: 15px 8px 15px 37px;
  border-bottom: 1px solid #d4d4d4;
  min-width: 0;
}
.quick-specs i {
  position: absolute;
  left: 5px;
  top: 18px;
  color: var(--red);
}
.quick-specs strong {
  display: block;
  overflow-wrap: anywhere;
}
.quick-specs span {
  display: block;
  margin-top: 3px;
  color: #777;
  font-size: 12px;
}
.product-price {
  margin: 18px 0;
  color: #191919;
  font-size: 31px;
  font-weight: 800;
}
.product-price small {
  display: block;
  margin-bottom: 3px;
  color: #777;
  font-size: 12px;
  font-weight: 500;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
sl-button.primary-action::part(base) {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
}
sl-button.primary-action::part(base):hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}
sl-button.secondary-action::part(base) {
  background: #eee;
  border-color: #d2d2d2;
  color: #222;
  border-radius: 10px;
  font-weight: 700;
}
.detail-tabs {
  position: sticky;
  top: 82px;
  z-index: 100;
  display: flex;
  justify-content: center;
  gap: 5px;
  padding: 11px 24px;
  background: #f2f2f2;
  border-block: 1px solid #d6d6d6;
}
sl-button.detail-tab::part(base) {
  background: transparent;
  border-color: transparent;
  color: #404040;
  border-radius: 8px;
  font-weight: 650;
}
sl-button.detail-tab.selected::part(base) {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.detail-panel {
  display: none;
  max-width: 1500px;
  margin: auto;
  padding: 55px 24px 70px;
}
.detail-panel.visible {
  display: block;
}
.eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.detail-panel h2 {
  margin: 0 0 25px;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.035em;
}
.overview-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
}
.long-description {
  max-width: 900px;
  color: #444;
  line-height: 1.8;
}
.overview-grid aside {
  align-self: start;
  padding: 30px;
  background: #333;
  color: #fff;
  border-left: 6px solid var(--red);
}
.overview-grid aside h3 {
  margin-top: 0;
}
.overview-grid aside li {
  margin: 12px 0;
  color: #eee;
}
.spec-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.spec-group {
  padding: 25px;
  background: #f4f4f4;
  border-top: 4px solid #3a3a3a;
}
.spec-group h3 {
  margin: 0 0 14px;
}
.spec-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(200px, 1.2fr);
  gap: 20px;
  padding: 13px 0;
  border-top: 1px solid #d8d8d8;
}
.spec-row span {
  color: #666;
}
.spec-row strong {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.supply-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.supply-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.supply-row:nth-child(even) {
  background: var(--soft);
}
.supply-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.supply-type {
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.supply-code {
  font-size: 16px;
  overflow-wrap: anywhere;
}
.supply-description {
  color: #555;
  line-height: 1.45;
}
.supply-yield {
  flex: 0 0 auto;
  color: #666;
  font-size: 13px;
  text-align: right;
}
.supply-yield strong {
  color: var(--ink);
}
.documents-list {
  display: grid;
  gap: 10px;
}
.document-row {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 16px 18px;
  background: #f3f3f3;
  color: #222;
  text-decoration: none;
  border-left: 4px solid #3a3a3a;
}
.document-row > i {
  color: var(--red);
  font-size: 25px;
}
.document-row div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}
.document-row span {
  color: #777;
  font-size: 12px;
}
sl-button.download-action::part(base) {
  background: #333;
  border-color: #333;
  color: #fff;
}
.empty-state {
  padding: 25px;
  background: #f3f3f3;
  color: #666;
}
@media (max-width: 1120px) {
  .rico-menu {
    display: none;
  }
  .product-hero {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .rico-actions {
    min-width: 0;
  }
  .product-visual {
    min-height: 470px;
  }
}
@media (max-width: 780px) {
  body {
    padding-top: 72px;
  }
  .rico-nav-wrapper {
    min-height: 72px;
    padding: 10px 15px;
  }
  .rico-logo img {
    height: 43px;
  }
  .search-form {
    display: none;
  }
  .product-hero {
    grid-template-columns: 1fr;
    padding-inline: 16px;
  }
  .product-visual {
    min-height: 390px;
  }
  .product-summary h1 {
    font-size: 54px;
  }
  .detail-tabs {
    top: 72px;
    justify-content: flex-start;
    overflow-x: auto;
    padding-inline: 12px;
  }
  .overview-grid,
  .spec-groups {
    grid-template-columns: 1fr;
  }
  .supply-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 14px 12px;
  }
  .supply-yield {
    text-align: left;
  }
  .spec-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .quick-specs {
    grid-template-columns: 1fr;
  }
  .breadcrumbs,
  .detail-panel {
    padding-inline: 16px;
  }
}
.product-price .copy-cost-line {
  display: block;
  margin-top: 5px;
  font-size: 22px;
  line-height: 1.25;
}
.product-price .copy-cost-line strong {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.product-price .copy-cost-pending {
  font-size: 18px;
}
.product-price .copy-cost-note {
  display: block;
  max-width: 520px;
  margin-top: 8px;
  font-size: 10px;
  line-height: 1.45;
  color: #737373;
  text-transform: none;
  letter-spacing: 0;
}

@media (min-width: 781px) {
  body {
    padding-top: 74px;
  }
  .rico-nav-wrapper {
    min-height: 74px;
    padding: 9px 22px;
    max-width: 1380px;
  }
  .rico-logo img {
    height: 47px;
  }
  .rico-actions {
    min-width: 350px;
  }
  .search-form {
    width: 205px;
  }
  .breadcrumbs {
    max-width: 1380px;
    padding: 17px 22px;
  }
  .product-hero {
    max-width: 1380px;
    padding: 7px 22px 40px;
    gap: 48px;
  }
  .product-visual {
    min-height: 510px;
  }
  .product-visual img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
  }
  .product-summary h1 {
    font-size: clamp(43px, 5.4vw, 73px);
  }
  .product-lead {
    font-size: 16px;
  }
  .detail-tabs {
    top: 74px;
    padding: 9px 22px;
  }
  .detail-panel {
    max-width: 1380px;
    padding: 48px 22px 60px;
  }
  .detail-panel h2 {
    font-size: clamp(28px, 3.6vw, 42px);
  }
  .overview-grid {
    gap: 52px;
  }
}
