:root {
  --page-soft: #f6f8fb;
  --page-border: #dfe4ec;
  --page-muted: #667085;
  --page-blue-soft: #edf3ff;
  --color-border-tertiary: #e1e6ee;
  --border-radius-lg: 18px;
}

.catalog-main,
.product-detail-main {
  background:
    radial-gradient(circle at 8% 0%, rgba(23, 63, 167, 0.055), transparent 28rem),
    linear-gradient(180deg, #ffffff 0, var(--page-soft) 680px, #ffffff 100%);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 28px;
  color: #7c8494;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.breadcrumbs a:hover { color: var(--navy); }
.breadcrumbs span[aria-hidden="true"] { color: #b2b8c4; }

.catalog-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--page-border);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 255, 0.94)),
    radial-gradient(circle at 84% 18%, rgba(20, 166, 160, 0.12), transparent 28rem);
}
.catalog-hero::after {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  right: -150px;
  bottom: -300px;
  border: 1px solid rgba(23, 63, 167, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 62px rgba(23, 63, 167, 0.025), 0 0 0 124px rgba(20, 166, 160, 0.025);
}
.catalog-hero-inner {
  position: relative;
  z-index: 1;
  min-height: 314px;
  padding: 66px 0 62px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  gap: 64px;
}
.catalog-hero-copy { width: 100%; max-width: none; }
.catalog-hero h1,
.product-view-panel h1 {
  margin: 15px 0 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -2.6px;
}
.catalog-hero h1 { width: 100%; max-width: none; font-size: clamp(48px, 5vw, 72px); }
.catalog-hero p { width: 100%; max-width: none; margin: 0; color: #4b5a70; font-size: 17px; line-height: 1.72; }
.catalog-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(94px, 1fr));
  border: 1px solid var(--page-border);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}
.catalog-stats div { min-width: 112px; padding: 19px 17px; text-align: center; }
.catalog-stats div + div { border-left: 1px solid var(--page-border); }
.catalog-stats strong { display: block; margin-bottom: 2px; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 28px; font-weight: 500; }
.catalog-stats span { display: block; color: var(--page-muted); font-size: 10px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase; }

.catalog-section { padding: 40px 0 108px; }
.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  margin-bottom: 19px;
}
.catalog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.catalog-filter button {
  min-height: 43px;
  padding: 0 16px;
  border: 1px solid var(--page-border);
  border-radius: 999px;
  background: #ffffff;
  color: #344054;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}
.catalog-filter button:hover { border-color: rgba(23, 63, 167, 0.45); transform: translateY(-1px); }
.catalog-filter button.active { border-color: var(--navy); background: var(--navy); color: #ffffff; box-shadow: 0 8px 18px rgba(23, 63, 167, 0.2); }
.catalog-filter button span { margin-left: 5px; opacity: 0.7; }
.catalog-controls { display: flex; align-items: center; gap: 10px; }
.catalog-controls label { position: relative; display: flex; align-items: center; }
.catalog-controls .search-icon {
  position: absolute;
  left: 15px;
  width: 17px;
  height: 17px;
  color: #7d8798;
  pointer-events: none;
}
.catalog-controls input,
.catalog-controls select {
  height: 45px;
  border: 1px solid var(--page-border);
  background: #ffffff;
  color: var(--ink);
  outline: 0;
  font-size: 12px;
  font-weight: 700;
}
.catalog-controls input { width: 238px; padding: 0 15px 0 42px; border-radius: 999px; }
.catalog-controls select { min-width: 148px; padding: 0 35px 0 14px; border-radius: 10px; cursor: pointer; }
.catalog-controls input:focus,
.catalog-controls select:focus { border-color: rgba(23, 63, 167, 0.55); box-shadow: 0 0 0 3px rgba(23, 63, 167, 0.08); }
.catalog-status { margin: 0 0 20px; color: var(--page-muted); font-size: 12px; font-weight: 700; }

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.catalog-card {
  min-width: 0;
  height: 100%;
  border: 1px solid var(--page-border);
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.catalog-card:hover { transform: translateY(-5px); border-color: rgba(23, 63, 167, 0.28); box-shadow: var(--shadow-lg); }
.catalog-card[hidden] { display: none; }
.catalog-card > a { height: 100%; display: flex; flex-direction: column; }
.catalog-image {
  position: relative;
  height: 258px;
  padding: 18px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.96), transparent 38%),
    linear-gradient(150deg, #f1f5fb, #e8f2f4);
}
.catalog-image::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -48px;
  bottom: -52px;
  border: 1px solid rgba(23, 63, 167, 0.1);
  border-radius: 50%;
}
.catalog-image img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; transition: transform 300ms ease; }
.catalog-card:hover .catalog-image img { transform: scale(1.035); }
.catalog-copy { flex: 1; padding: 19px 19px 20px; display: flex; flex-direction: column; }
.catalog-category { color: var(--navy); font-size: 10px; font-weight: 850; letter-spacing: 1.1px; text-transform: uppercase; }
.catalog-card h2 { min-height: 43px; margin: 8px 0 9px; font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 500; line-height: 1.07; letter-spacing: -0.45px; }
.catalog-card p { margin: 0 0 17px; color: #667085; font-size: 12px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.catalog-card-footer { margin-top: auto; padding-top: 12px; border-top: 1px solid #edf0f4; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #4f5a6d; font-size: 11px; font-weight: 800; }
.catalog-card-footer span:last-child { color: var(--navy); }
.catalog-empty { padding: 80px 20px; border: 1px dashed #ccd3df; border-radius: 18px; background: #ffffff; text-align: center; }
.catalog-empty h2 { margin: 0 0 8px; font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.catalog-empty p { margin: 0; color: var(--page-muted); }

.product-detail-main { min-height: 70vh; }
.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(390px, 0.78fr);
  align-items: start;
  gap: 62px;
  padding: 34px 0 74px;
}
.product-gallery-panel {
  position: sticky;
  top: 18px;
  min-width: 0;
}
.gallery-main {
  position: relative;
  height: 610px;
  padding: 34px;
  border: 1px solid var(--page-border);
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 19% 14%, rgba(255, 255, 255, 0.96), transparent 34%),
    radial-gradient(circle at 85% 86%, rgba(20, 166, 160, 0.12), transparent 34%),
    linear-gradient(145deg, #f2f6fb, #e7f0f1);
  box-shadow: var(--shadow-sm);
}
.gallery-main::before {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  right: -96px;
  top: -96px;
  border: 1px solid rgba(23, 63, 167, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(23, 63, 167, 0.025);
}
.gallery-main img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.gallery-thumb {
  height: 92px;
  padding: 8px;
  border: 1px solid var(--page-border);
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.gallery-thumb:hover { transform: translateY(-2px); }
.gallery-thumb.active { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(23, 63, 167, 0.09); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }

.product-view-panel { padding-top: 20px; }
.product-view-panel h1 { margin-top: 14px; font-size: clamp(42px, 4vw, 61px); }
.product-pill {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--page-blue-soft);
  color: var(--navy);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}
.product-detail-summary { max-width: 720px; margin: 0; color: #526074; font-size: 16px; line-height: 1.75; }
.product-facts {
  margin-top: 27px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--page-border);
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
}
.product-facts div { min-height: 78px; padding: 16px 18px; }
.product-facts div:nth-child(even) { border-left: 1px solid var(--page-border); }
.product-facts div:nth-child(n+3) { border-top: 1px solid var(--page-border); }
.product-facts span { display: block; margin-bottom: 4px; color: #8991a1; font-size: 10px; font-weight: 850; letter-spacing: 0.9px; text-transform: uppercase; }
.product-facts strong { font-size: 14px; }
.detail-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.detail-actions .button { min-height: 55px; padding-inline: 24px; }
.button-outline { border-color: #c8cfda; background: #ffffff; color: #303b4f; }
.button-outline:hover { border-color: var(--navy); color: var(--navy); }
.professional-note {
  margin-top: 18px;
  padding: 15px 17px;
  border-left: 3px solid var(--teal);
  border-radius: 0 10px 10px 0;
  background: #eef9f7;
  color: #48615f;
  font-size: 11px;
  line-height: 1.65;
}
.professional-note strong { color: #234945; }

.product-content-layout {
  padding-bottom: 100px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 44px;
}
.product-body {
  min-width: 0;
  padding: 46px 50px 54px;
  border: 1px solid var(--page-border);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  color: #374151;
  font-size: 15px;
  line-height: 1.78;
  overflow: hidden;
}
.product-body > :first-child { margin-top: 0 !important; }
.product-body > :last-child { margin-bottom: 0 !important; }
.product-body h1,
.product-body h2,
.product-body h3 {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.5px;
}
.product-body h2 { margin: 42px 0 16px; font-size: 34px; }
.product-body h3 { margin: 28px 0 11px; font-size: 24px; }
.product-body p { margin: 0 0 17px; }
.product-body ul,
.product-body ol { margin: 0 0 20px; padding-left: 23px; }
.product-body li + li { margin-top: 7px; }
.product-body strong { color: #1f2937; }
.product-body img { width: 100%; height: auto; margin: 20px 0; border-radius: 18px; object-fit: contain; }
.product-body a { color: var(--navy); font-weight: 750; text-decoration: underline; text-decoration-color: rgba(23, 63, 167, 0.28); text-underline-offset: 3px; }
.product-body .feature-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 42px;
  padding: 34px 0;
  border-bottom: 1px solid var(--page-border);
}
.product-body .feature-section:first-of-type { padding-top: 0; }
.product-body .feature-section:last-child { border-bottom: 0; padding-bottom: 0; }
.product-body .feature-section.reverse .feature-img { order: 2; }
.product-body .feature-img { min-width: 0 !important; max-width: none !important; }
.product-body .feature-img img { margin: 0; background: #f3f6fa; }
.product-body .feature-text { min-width: 0 !important; }
.product-body .banner-button {
  min-height: 48px;
  margin-top: 10px;
  border-radius: 999px !important;
  background: var(--navy) !important;
  color: #ffffff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  text-decoration: none;
}

.product-side-panel { position: sticky; top: 18px; display: grid; gap: 16px; }
.product-side-card {
  padding: 24px;
  border: 1px solid var(--page-border);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}
.product-side-card.highlight { background: linear-gradient(145deg, #143b94, #0e2d64); color: #ffffff; border-color: transparent; }
.product-side-card h2 { margin: 0 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 24px; font-weight: 500; line-height: 1.12; }
.product-side-card p { margin: 0; color: #667085; font-size: 12px; line-height: 1.65; }
.product-side-card.highlight p { color: #dbe5ff; }
.product-side-card .side-icon { width: 38px; height: 38px; margin-bottom: 17px; border-radius: 11px; background: var(--page-blue-soft); color: var(--navy); display: grid; place-items: center; }
.product-side-card.highlight .side-icon { background: rgba(255, 255, 255, 0.13); color: #ffffff; }
.product-side-card .side-icon svg { width: 20px; height: 20px; }
.side-list { margin: 17px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.side-list li { position: relative; padding-left: 20px; color: #566175; font-size: 12px; line-height: 1.5; }
.side-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--teal); font-weight: 900; }
.product-side-card a { display: inline-flex; margin-top: 16px; color: var(--navy); font-size: 12px; font-weight: 850; }

.related-section { padding: 82px 0 108px; border-top: 1px solid var(--page-border); }
.related-heading { margin-bottom: 30px; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.related-heading h2 { margin: 10px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 3vw, 46px); font-weight: 400; letter-spacing: -1.2px; }
.related-heading a { color: var(--navy); font-size: 12px; font-weight: 850; }
.related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.related-card { border: 1px solid var(--page-border); border-radius: 16px; overflow: hidden; background: #ffffff; transition: transform 200ms ease, box-shadow 200ms ease; }
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.related-card img { width: 100%; height: 215px; padding: 16px; object-fit: contain; background: linear-gradient(145deg, #f2f5fa, #e9f1f3); }
.related-card div { padding: 16px; }
.related-card span { color: var(--navy); font-size: 10px; font-weight: 850; letter-spacing: 0.9px; text-transform: uppercase; }
.related-card h3 { margin: 7px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 18px; font-weight: 500; line-height: 1.12; }

@media (max-width: 1240px) {
  .catalog-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 38px; }
  .catalog-stats { grid-template-columns: 1fr; }
  .catalog-stats div { min-width: 0; padding: 12px 17px; }
  .catalog-stats div + div { border-left: 0; border-top: 1px solid var(--page-border); }
  .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catalog-toolbar { grid-template-columns: 1fr; }
  .catalog-controls { justify-content: flex-end; }
  .product-detail-layout { gap: 38px; }
  .gallery-main { height: 540px; }
  .product-content-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 28px; }
  .product-body { padding: 40px; }
}

@media (max-width: 980px) {
  .catalog-hero-inner { min-height: 0; grid-template-columns: 1fr; align-items: start; gap: 30px; }
  .catalog-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catalog-stats div { padding: 16px; }
  .catalog-stats div + div { border-top: 0; border-left: 1px solid var(--page-border); }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-detail-layout { grid-template-columns: 1fr; gap: 32px; }
  .product-gallery-panel,
  .product-side-panel { position: static; }
  .gallery-main { height: 570px; }
  .product-view-panel { padding-top: 0; }
  .product-content-layout { grid-template-columns: 1fr; }
  .product-side-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .breadcrumbs { padding-top: 20px; }
  .catalog-hero-inner { padding: 48px 0; }
  .catalog-hero h1 { font-size: 45px; letter-spacing: -1.7px; }
  .catalog-hero p { font-size: 15px; }
  .catalog-section { padding: 30px 0 76px; }
  .catalog-toolbar { gap: 16px; }
  .catalog-filter { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; scrollbar-width: thin; }
  .catalog-filter button { flex: 0 0 auto; }
  .catalog-controls { align-items: stretch; flex-direction: column; }
  .catalog-controls input,
  .catalog-controls select { width: 100%; }
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-image { height: 300px; }
  .product-detail-layout { padding-top: 24px; }
  .gallery-main { height: 430px; padding: 22px; border-radius: 18px; }
  .gallery-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gallery-thumb { height: 72px; padding: 5px; }
  .product-view-panel h1 { font-size: 43px; letter-spacing: -1.8px; }
  .product-facts { grid-template-columns: 1fr; }
  .product-facts div:nth-child(even) { border-left: 0; }
  .product-facts div:nth-child(n+2) { border-top: 1px solid var(--page-border); }
  .detail-actions { align-items: stretch; flex-direction: column; }
  .detail-actions .button { width: 100%; }
  .product-content-layout { padding-bottom: 76px; gap: 20px; }
  .product-body { padding: 28px 22px 34px; border-radius: 18px; font-size: 14px; }
  .product-body h2 { font-size: 29px; }
  .product-body h3 { font-size: 22px; }
  .product-body .feature-section { grid-template-columns: 1fr; gap: 22px; padding: 26px 0; }
  .product-body .feature-section.reverse .feature-img { order: 0; }
  .product-body [style*="min-width"] { min-width: 0 !important; flex-basis: 100% !important; }
  .product-side-panel { grid-template-columns: 1fr; }
  .related-section { padding: 66px 0 82px; }
  .related-heading { align-items: start; flex-direction: column; }
  .related-grid { grid-template-columns: 1fr; }
  .related-card img { height: 250px; }
}

@media (max-width: 430px) {
  .catalog-stats { grid-template-columns: 1fr; }
  .catalog-stats div + div { border-left: 0; border-top: 1px solid var(--page-border); }
  .gallery-main { height: 350px; }
  .gallery-thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}