@font-face {
  font-family: Titillium;
  src: url("assets/fonts/titillium-light-webfont.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #333;
  --muted: #999;
  --line: #e5e5e5;
  --paper: #fff;
  --canvas: #f5f5f5;
  --soft-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  --rail: 80px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: #444;
  font-family: Titillium, Arial, sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.5;
}
button, input { font: inherit; }
button { color: inherit; }
a { color: var(--ink); text-decoration: none; transition: color .2s ease, background-color .2s ease, opacity .2s ease; }
img { max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }

.skip-link {
  position: fixed;
  top: -60px;
  left: 100px;
  z-index: 500;
  background: #222;
  color: white;
  padding: 10px 16px;
}
.skip-link:focus { top: 8px; }

.left-rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 110;
  width: var(--rail);
  background: #fff;
  box-shadow: var(--soft-shadow), 1px 0 rgba(0, 0, 0, 0.05);
}
.rail-search {
  display: grid;
  width: 60px;
  height: 62px;
  margin: 10px;
  padding: 0;
  place-items: center;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  cursor: pointer;
  transition: background .2s ease, border-radius .2s ease;
}
.rail-search:hover, .rail-search[aria-expanded="true"] { background: #f1f1f1; }
.rail-search[aria-expanded="true"] { border-radius: 10px 0 0 10px; }
.rail-search svg, .mobile-search svg, .search-control svg {
  width: 27px;
  fill: none;
  stroke: #333;
  stroke-width: 1.9;
  stroke-linecap: round;
}

.page-shell { margin-left: var(--rail); min-width: 0; }
.site-header {
  position: relative;
  z-index: 100;
  min-height: 150px;
  padding: 0 40px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
}
.brand-row { height: 80px; display: flex; align-items: center; }
.site-title {
  flex: 0 0 auto;
  font-size: 36px;
  font-weight: 300;
  letter-spacing: -.5px;
  line-height: 60px;
  white-space: nowrap;
}
.site-description {
  margin: 3px 0 0 20px;
  color: #aaa;
  font-size: 16px;
  white-space: nowrap;
}
.mobile-search, .menu-toggle { display: none; }

.main-nav { min-height: 69px; display: flex; justify-content: flex-end; }
.main-nav > ul { display: flex; flex-wrap: wrap; align-content: flex-start; justify-content: flex-end; }
.main-nav > ul > li { position: relative; display: flex; align-items: center; margin: 16px 20px 0 0; height: 36px; }
.main-nav > ul > li:last-child { margin-right: 0; }
.main-nav a { color: #666; font-size: 16px; font-weight: 400; white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { color: #222; }
.main-nav li > button {
  margin: 2px 0 0 3px;
  padding: 0 3px 3px;
  color: #aaa;
  font-family: Arial, sans-serif;
  font-size: 19px;
  line-height: 1;
  background: none;
  border: 0;
  cursor: pointer;
}
.main-nav li > ul {
  position: absolute;
  top: calc(100% + 14px);
  left: -12px;
  z-index: 30;
  width: 210px;
  max-height: 0;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  background: #333;
  border-radius: 4px;
  transform: translateY(6px);
  transition: opacity .15s linear, transform .15s linear;
}
.main-nav li > ul::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 18px;
  border: 8px solid transparent;
  border-bottom-color: #333;
}
.main-nav li:hover > ul, .main-nav li:focus-within > ul, .main-nav li.submenu-open > ul {
  max-height: 600px;
  padding: 10px 0;
  overflow: visible;
  opacity: 1;
  transform: translateY(0);
}
.main-nav li li a { display: block; padding: 7px 20px; color: #eee; font-size: 15px; }
.main-nav li li a:hover { color: #ccc; background: rgba(255, 255, 255, .08); }

.search-drawer {
  position: fixed;
  top: 10px;
  left: 70px;
  z-index: 109;
  width: 0;
  height: 62px;
  overflow: hidden;
  opacity: 0;
  background: #f1f1f1;
  border-radius: 0 10px 10px 0;
  transition: width .24s ease, opacity .2s ease;
}
.search-drawer.open { width: 420px; opacity: 1; }
.search-inner { position: relative; width: 410px; padding: 12px 12px 12px 16px; }
.search-inner > label, .search-inner > p { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.search-control { position: relative; }
.search-control svg { position: absolute; top: 8px; left: 10px; width: 20px; stroke: #aaa; }
.search-control input {
  width: 100%;
  height: 38px;
  padding: 6px 58px 6px 38px;
  color: #777;
  background: #fff;
  border: 1px solid #ddd;
  outline: none;
}
.search-control input:focus { border-color: #bbb; }
.search-control button {
  position: absolute;
  top: 1px;
  right: 1px;
  height: 36px;
  padding: 0 10px;
  color: #777;
  background: #fff;
  border: 0;
  cursor: pointer;
}

.main-layout { display: flex; position: relative; min-height: 600px; padding-right: 300px; }
.catalog-column { order: 1; width: 100%; padding: 20px; min-width: 0; }
.sidebar { order: 2; width: 300px; margin-right: -300px; position: relative; z-index: 2; }
.catalog-status {
  min-height: 0;
  margin: 20px;
  color: #888;
  font-size: 14px;
}
.catalog-status:empty { display: none; }
.catalog-status strong { color: #333; font-weight: 600; }
.catalog-status button {
  margin-left: 10px;
  padding: 3px 10px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  cursor: pointer;
}

.product-grid { display: flex; flex-wrap: wrap; justify-content: space-between; }
.product-card { width: 25%; padding: 20px; }
.card-inner {
  height: 100%;
  overflow: hidden;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--soft-shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover .card-inner { transform: translateY(-2px); box-shadow: 0 7px 24px rgba(0, 0, 0, .09); }
.card-media { position: relative; display: block; overflow: hidden; background: #eee; aspect-ratio: 2 / 3; }
.media-open { display: block; width: 100%; height: 100%; padding: 0; background: none; border: 0; cursor: pointer; }
.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .01;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, .75), transparent 50%);
  transition: opacity .4s ease;
}
.product-card:hover .card-media::after, .card-media:focus::after { opacity: .42; }
.card-media img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 10px 10px 0 0; }
.card-categories {
  position: absolute;
  right: 0;
  bottom: -100px;
  left: 0;
  z-index: 2;
  padding: 20px 20px 14px;
  opacity: 0;
  pointer-events: none;
  transition: bottom .3s ease, opacity .3s ease;
}
.product-card:hover .card-categories, .product-card:focus-within .card-categories { bottom: 0; opacity: 1; }
.card-categories button {
  margin: 0 4px 4px 0;
  padding: 3px 11px;
  color: #bbb;
  font-size: 14px;
  background: rgba(0, 0, 0, .65);
  border: 0;
  border-radius: 10px;
  pointer-events: auto;
  cursor: pointer;
}
.card-categories button:hover { color: #333; background: #eee; }
.card-title { margin: 0; padding: 20px 20px 0; line-height: 1.42; }
.card-title button {
  display: block;
  width: 100%;
  padding: 0;
  color: #111;
  font-size: 16px;
  font-weight: 600;
  line-height: inherit;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
}
.card-title button:hover { color: #555; }
.card-meta { display: flex; gap: 20px; margin: 0; padding: 14px 20px; color: #999; font-size: 14px; }
.card-meta span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.card-meta svg { width: 15px; height: 15px; fill: none; stroke: #999; stroke-width: 1.7; }
.empty-state { width: 100%; margin: 20px; padding: 70px 30px; text-align: center; background: #fff; border-radius: 10px; box-shadow: var(--soft-shadow); }
.empty-state h2 { margin: 0 0 8px; color: #333; }

.pagination { margin: 30px 20px 55px; }
.page-summary { margin-bottom: 16px; color: #999; text-align: center; }
.page-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.page-buttons button {
  min-width: 38px;
  height: 38px;
  padding: 0 11px;
  color: #555;
  font-weight: 600;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  cursor: pointer;
}
.page-buttons button:hover { border-color: #ddd; }
.page-buttons button[aria-current="page"] { color: #fff; background: #333; }
.page-buttons button:disabled { opacity: .35; cursor: default; }
.page-ellipsis { padding: 8px 4px; color: #aaa; }

.widget {
  margin-top: 40px;
  padding: 40px;
  color: #777;
  font-size: 14px;
  background: #fff;
  border-radius: 10px 0 0 10px;
  box-shadow: var(--soft-shadow);
}
.widget h2 { margin: 0 0 16px; color: #222; font-size: 16px; font-weight: 600; }
.widget-search { position: relative; display: block; }
.widget-search span { position: absolute; top: 6px; left: 9px; color: #aaa; font-family: Arial, sans-serif; font-size: 17px; }
.widget-search input {
  width: 100%;
  height: 38px;
  padding: 6px 8px 6px 28px;
  color: #777;
  background: #fff;
  border: 2px solid #e5e5e5;
  outline: 0;
}
.widget-search input:focus { border-color: #ccc; }
.category-list > li, .archive-widget li { padding: 5px 0; color: #bbb; }
.category-list button {
  padding: 0;
  color: #777;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
}
.category-list button::before { content: "▰"; display: inline-block; width: 17px; margin-right: 3px; color: #ccc; font-size: 10px; transform: skew(-8deg); }
.category-list button:hover, .category-list button.active { color: #222; }
.category-list button.active { font-weight: 600; }
.category-list .children { margin: 5px 0 0 15px; }
.category-list .children li { padding: 4px 0; }
.archive-widget a { color: #777; }
.archive-widget a::before { content: "▣"; margin-right: 7px; color: #ccc; font-size: 10px; }

.site-footer { position: relative; padding-bottom: 70px; color: #777; border-top: 1px solid #e5e5e5; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5%; padding: 30px 50px; border-bottom: 1px solid #e5e5e5; }
.footer-grid section { padding: 20px 0; }
.footer-grid h2 { margin: 0 0 16px; color: #333; font-size: 16px; }
.contact-details { display: grid; gap: 7px; }
.contact-details a { overflow-wrap: anywhere; }
.footer-product { padding: 8px 0; border-bottom: 1px solid #e9e9e9; }
.footer-product a { display: block; color: #555; font-weight: 600; }
.footer-product span { color: #aaa; font-size: 13px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 26px 50px; color: #777; }
.footer-bottom a { color: #444; }

.floating-actions { position: fixed; right: 28px; bottom: 25px; z-index: 90; display: grid; gap: 10px; }
.float-button { display: grid; width: 54px; height: 54px; padding: 0; place-items: center; color: #fff; font-size: 28px; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 8px 20px rgba(0, 0, 0, .1); cursor: pointer; }
.float-button.whatsapp { background: #2bdc68; }
.float-button.telegram { background: #3498db; }
.float-button.toggle-chat { margin-top: 181px; background: #a675d6; }
.float-button span { transform: translateY(-1px); }
.float-button svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.float-button.telegram svg { fill: #fff; stroke: none; }
.floating-actions.collapsed .whatsapp, .floating-actions.collapsed .telegram { display: none; }

.product-dialog {
  width: min(1040px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  padding: 0;
  overflow: hidden auto;
  background: #fff;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, .35);
}
.product-dialog::backdrop { background: rgba(20, 20, 20, .72); backdrop-filter: blur(2px); }
.dialog-close { position: absolute; top: 12px; right: 14px; z-index: 4; width: 42px; height: 42px; color: #222; font: 300 34px/1 Arial, sans-serif; background: rgba(255,255,255,.92); border: 0; border-radius: 50%; box-shadow: var(--soft-shadow); cursor: pointer; }
.dialog-layout { display: grid; grid-template-columns: minmax(320px, 52%) 1fr; }
.dialog-image { min-height: 660px; background: #eee; }
.dialog-image img { display: block; width: 100%; height: 100%; min-height: 660px; object-fit: cover; }
.dialog-copy { padding: 58px 42px 42px; }
.dialog-copy .eyebrow { margin: 0 0 10px; color: #aaa; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.dialog-copy h1 { margin: 0 0 16px; color: #222; font-size: 34px; font-weight: 300; line-height: 1.18; }
.dialog-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; color: #999; }
.dialog-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 28px; }
.dialog-tags button { padding: 5px 12px; color: #777; background: #eee; border: 0; border-radius: 12px; cursor: pointer; }
.product-facts { margin: 0 0 30px; border-top: 1px solid #eee; }
.product-facts div { display: grid; grid-template-columns: 100px 1fr; gap: 14px; padding: 11px 0; border-bottom: 1px solid #eee; }
.product-facts dt { color: #999; }
.product-facts dd { margin: 0; color: #333; }
.source-button { display: inline-flex; padding: 10px 18px; color: #fff; font-weight: 600; background: #333; border-radius: 6px; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.source-button.secondary { color: #555; background: #eee; }

.skeleton { position: relative; overflow: hidden; background: #e9e9e9; }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent); transform: translateX(-100%); animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

@media (max-width: 1680px) { .product-card { width: 33.3333%; } }
@media (max-width: 1280px) {
  .product-card { width: 50%; }
  .site-description { overflow: hidden; text-overflow: ellipsis; }
  .main-nav > ul > li { margin-right: 14px; }
}

@media (max-width: 1080px) {
  :root { --rail: 0px; }
  .left-rail { display: none; }
  .page-shell { margin-left: 0; }
  .site-header { min-height: 0; padding: 0; }
  .brand-row { position: relative; height: 71px; justify-content: center; border-bottom: 1px solid #eee; }
  .site-title { font-size: 32px; line-height: 50px; }
  .site-description { display: none; }
  .mobile-search, .menu-toggle { position: absolute; top: 17px; display: grid; width: 38px; height: 38px; padding: 8px; place-items: center; background: none; border: 0; cursor: pointer; }
  .mobile-search { left: 10px; }
  .mobile-search svg { width: 23px; }
  .menu-toggle { right: 11px; gap: 4px; align-content: center; }
  .menu-toggle span { display: none; }
  .menu-toggle::before { content: "☰"; display: block; color: #333; font: 24px/1 Arial, sans-serif; }
  .main-nav { display: block; max-height: 0; min-height: 0; overflow: hidden; transition: max-height .45s ease; }
  .main-nav.open { max-height: 1800px; }
  .main-nav > ul { display: block; }
  .main-nav > ul > li { display: flex; flex-wrap: wrap; height: auto; margin: 0; border-bottom: 1px solid rgba(0,0,0,.07); }
  .main-nav > ul > li > a { flex: 1; padding: 13px 20px; color: #333; font-weight: 600; }
  .main-nav li > button { width: 55px; margin: 0; padding: 11px; border-left: 1px solid rgba(0,0,0,.07); }
  .main-nav li > ul { position: static; width: 100%; border-radius: 0; transform: none; }
  .main-nav li:hover > ul { max-height: 0; padding: 0; opacity: 0; overflow: hidden; }
  .main-nav li.submenu-open > ul { max-height: 600px; padding: 4px 0; opacity: 1; background: #f7f7f7; overflow: hidden; }
  .main-nav li > ul::before { display: none; }
  .main-nav li li a { padding: 9px 40px; color: #444; }
  .main-nav li li a:hover { background: #eee; color: #222; }
  .search-drawer { top: 71px; left: 0; right: 0; width: 100%; height: 0; border-radius: 0; transition: height .25s ease, opacity .2s ease; }
  .search-drawer.open { width: 100%; height: 64px; }
  .search-inner { width: 100%; padding: 12px 18px; }
  .main-layout { display: block; padding-right: 0; }
  .catalog-column { padding: 20px; }
  .sidebar { width: 100%; margin: 20px 0 0; }
  .sidebar .widget { margin-top: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; }
  .category-widget, .archive-widget { display: none; }
  .product-card { width: 33.3333%; }
}

@media (max-width: 959px) { .product-card { width: 50%; } }

@media (max-width: 820px) {
  .dialog-layout { grid-template-columns: 1fr; }
  .dialog-image, .dialog-image img { min-height: 0; max-height: 65vh; }
  .dialog-image img { object-position: center; }
  .dialog-copy { padding: 36px 28px; }
  .dialog-copy h1 { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 0; padding: 20px; }
}

@media (max-width: 620px) {
  .catalog-column { padding: 0; }
  .product-card { width: 100%; padding: 20px 20px 0; }
  .catalog-status { padding-top: 20px; }
  .card-title { padding-top: 18px; }
  .pagination { margin: 34px 20px 45px; }
  .widget { padding: 30px 20px; }
  .floating-actions { right: 15px; bottom: 25px; }
  .float-button.toggle-chat { margin-top: 80px; }
  .float-button { width: 48px; height: 48px; }
  .product-dialog { width: calc(100vw - 20px); max-height: calc(100vh - 20px); }
  .footer-bottom { flex-direction: column; align-items: center; padding: 26px 20px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
