/* Turgus Telegram-style visual layer. Keep this file removable and logic-free. */
:root {
  --turgus-bg: #f4f8fb;
  --turgus-blue: #229ED9;
  --turgus-blue-dark: #168ac0;
  --turgus-text: #17212b;
  --turgus-muted: #6f8191;
  --turgus-line: #dbe8f0;
  --turgus-card: #ffffff;
  --turgus-shadow: 0 10px 28px rgba(34, 158, 217, 0.10), 0 1px 4px rgba(23, 33, 43, 0.06);
  --turgus-shadow-hover: 0 16px 38px rgba(34, 158, 217, 0.16), 0 2px 8px rgba(23, 33, 43, 0.08);
}

html,
body {
  background: var(--turgus-bg);
  color: var(--turgus-text);
}

body {
  font-family: "Open Sans", Arial, sans-serif;
}

a {
  color: var(--turgus-blue);
}

.container-outer,
.home-container {
  background: transparent;
}

#header-bar {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 0 rgba(219, 232, 240, 0.9), 0 8px 26px rgba(34, 158, 217, 0.08);
  backdrop-filter: saturate(140%) blur(10px);
}

#header-bar .inside,
#sub-nav .inside,
.home-container .inner,
#footer .inside,
#header-line .inside {
  max-width: 1180px;
}

#header-bar .logo a {
  border-radius: 14px;
}

#header-bar .logo img {
  max-height: 34px;
}

#header-bar .le-btn {
  color: var(--turgus-muted);
  border-bottom: 0;
}

#header-bar .le-btn:hover,
#header-bar .le-btn.active,
#header-bar .hovered .le-btn {
  color: var(--turgus-blue);
  border-bottom: 0;
  background: rgba(34, 158, 217, 0.08);
}

#header-bar .search-top {
  width: 230px;
}

#header-bar .search-top input[type="text"] {
  height: 36px;
  border: 1px solid var(--turgus-line);
  background: #edf5fa;
  color: var(--turgus-text);
  border-radius: 18px;
  padding: 8px 42px 8px 14px;
}

#header-bar .search-top input[type="text"]:focus {
  border: 1px solid rgba(34, 158, 217, 0.55) !important;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(34, 158, 217, 0.12);
  padding: 8px 42px 8px 14px;
}

#header-bar .search-top button {
  top: 4px;
  right: 4px;
  color: var(--turgus-blue);
  background: #fff;
  box-shadow: 0 1px 4px rgba(23, 33, 43, 0.06);
}

#header-bar .publish,
.home-cat .cat-tab .head .add a,
.mobile-post {
  background: var(--turgus-blue);
  color: #fff !important;
  border-radius: 18px;
  box-shadow: 0 6px 16px rgba(34, 158, 217, 0.25);
}

#header-bar .publish:hover,
.home-cat .cat-tab .head .add a:hover,
.mobile-post:hover {
  background: var(--turgus-blue-dark);
  text-decoration: none;
}

#header-bar .picture {
  border: 2px solid #fff;
  box-shadow: 0 2px 9px rgba(23, 33, 43, 0.12);
}

#header-line {
  background: linear-gradient(180deg, #fff 0%, var(--turgus-bg) 100%);
  border-bottom: 0;
}

#header-line h1 {
  color: var(--turgus-text);
  font-weight: 700;
}

#sub-nav {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 var(--turgus-line);
}

#sub-nav .inside {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}

#sub-nav .inside > a {
  float: none;
  flex: 0 0 auto;
  height: auto;
  margin: 7px 0;
  padding: 9px 14px;
  color: var(--turgus-muted);
  border: 0;
  border-radius: 999px;
  background: transparent;
}

#sub-nav .inside > a:hover,
#sub-nav .inside > a.active {
  color: var(--turgus-blue);
  border: 0;
  background: rgba(34, 158, 217, 0.10);
  text-decoration: none;
}

body#body-search #sub-nav .inside {
  padding-right: 280px;
}

.hc-turgus-categories {
  padding-top: 22px;
  padding-bottom: 4px;
}

.turgus-category-panel {
  float: left;
  width: 100%;
  clear: both;
  background: transparent;
}

.turgus-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 1% 16px 1%;
}

.turgus-category-head h2 {
  margin: 0;
  color: var(--turgus-text);
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
}

.turgus-category-head a {
  flex: 0 0 auto;
  color: var(--turgus-blue);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.turgus-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0 1%;
}

.turgus-category-card {
  display: flex;
  align-items: center;
  min-height: 86px;
  padding: 16px;
  color: var(--turgus-text);
  background: var(--turgus-card);
  border: 1px solid rgba(219, 232, 240, 0.85);
  border-radius: 18px;
  box-shadow: var(--turgus-shadow);
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.turgus-category-card:hover {
  color: var(--turgus-text);
  border-color: rgba(34, 158, 217, 0.30);
  box-shadow: var(--turgus-shadow-hover);
  text-decoration: none;
  transform: translateY(-2px);
}

.turgus-category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  margin-right: 13px;
  color: #fff;
  border-radius: 16px;
  box-shadow: inset 0 -10px 20px rgba(23, 33, 43, 0.10);
}

.turgus-category-icon i {
  color: #fff;
  font-size: 22px;
  line-height: 1;
}

.turgus-category-icon img {
  max-width: 26px;
  max-height: 26px;
}

.turgus-category-name {
  min-width: 0;
  color: var(--turgus-text);
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
  word-break: break-word;
}

.turgus-category-arrow {
  margin-left: auto;
  color: #a6b7c5;
  font-size: 20px;
}

#latest.white,
#latest.white.prem,
.white,
.user_account.content,
#listing.content,
#related.white {
  background: transparent;
}

#latest h2.home {
  margin-bottom: 16px;
}

#latest h2.home span {
  color: var(--turgus-text);
  font-size: 22px;
  font-weight: 700;
}

.white .simple-prod .simple-wrap {
  overflow: hidden;
  border: 1px solid rgba(219, 232, 240, 0.9);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--turgus-shadow);
}

.white .simple-prod .simple-wrap:hover {
  border-color: rgba(34, 158, 217, 0.30);
  box-shadow: var(--turgus-shadow-hover);
  transform: translateY(-2px);
}

.white .simple-prod .item-img-wrap {
  background: #edf5fa;
}

.white .simple-prod .category {
  margin-top: 14px;
}

.white .simple-prod .category a {
  color: var(--turgus-blue);
}

.white .simple-prod a.title {
  color: var(--turgus-text);
  font-weight: 700;
}

.white .simple-prod .location,
.white .simple-prod .description .text {
  color: var(--turgus-muted);
}

.white .simple-prod .bottom {
  border-top-color: #eef5f9;
}

.white .simple-prod .price span {
  color: var(--turgus-blue);
  font-weight: 800;
}

.label,
.white .simple-prod .labels .label {
  border-radius: 999px;
}

.home-see-all a {
  color: var(--turgus-blue);
}

.fancybox-overlay {
  background: rgba(23, 33, 43, 0.24) !important;
}

.fancybox-bg {
  background: rgba(23, 33, 43, 0.24) !important;
}

.fancybox-wrap.home-cat .fancybox-skin,
.fancybox-wrap.home-cat .fancybox-inner,
.fancybox-content .home-cat {
  border-radius: 18px;
}

.fancybox-wrap.home-cat .fancybox-skin {
  background: #fff;
  box-shadow: 0 20px 60px rgba(23, 33, 43, 0.22);
}

.fancybox-wrap.home-cat .fancybox-close {
  top: 12px;
  right: 12px;
  border-radius: 50%;
  background-color: #edf5fa;
}

.home-cat .cat-tab .head {
  height: auto;
  min-height: 64px;
  padding: 14px 56px 14px 18px;
  border-bottom: 1px solid var(--turgus-line);
  border-radius: 18px 18px 0 0;
}

.home-cat .cat-tab .head h2 {
  color: var(--turgus-text);
  font-weight: 700;
}

.home-cat .cat-tab .middle {
  height: 360px;
  padding: 12px;
  border-radius: 0 0 18px 18px;
}

.home-cat .cat-tab .middle a {
  border-radius: 14px;
}

.home-cat .cat-tab .middle a:hover {
  background: rgba(34, 158, 217, 0.08);
  color: var(--turgus-blue);
}

#footer {
  margin-top: 28px;
  padding-top: 18px;
  padding-bottom: 18px;
  background: #fff;
  border-top: 1px solid var(--turgus-line);
  box-shadow: 0 -8px 28px rgba(34, 158, 217, 0.05);
}

#footer .left a,
#footer .left span,
#footer .right a {
  color: var(--turgus-muted);
}

#footer .left a:hover,
#footer .right a:hover {
  color: var(--turgus-blue);
}

#footer .share > span > a {
  border-radius: 50%;
  background: #edf5fa;
}

#footer .share > span > a i {
  color: var(--turgus-blue);
}

#location-picker .shower,
#item-picker .shower {
  border-color: var(--turgus-line);
  border-radius: 14px;
  box-shadow: var(--turgus-shadow);
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="tel"],
textarea,
select {
  border-color: var(--turgus-line);
  border-radius: 12px;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  border-color: rgba(34, 158, 217, 0.55) !important;
  box-shadow: 0 0 0 4px rgba(34, 158, 217, 0.10);
}

@media screen and (max-width: 1200px) {
  #header-bar .search-top {
    width: 190px;
  }

  .turgus-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media screen and (max-width: 1024px) {
  .turgus-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 767px) {
  body {
    background: var(--turgus-bg);
  }

  #header-bar {
    background: #fff;
  }

  #header-bar .le-btn {
    color: var(--turgus-muted);
  }

  #header-bar .le-btn:hover,
  #header-bar .le-btn.active {
    background: rgba(34, 158, 217, 0.08);
  }

  #sub-nav .inside {
    padding-left: 10px;
    padding-right: 10px;
  }

  body#body-search #sub-nav .inside {
    padding-right: 0;
  }

  .hc-turgus-categories {
    padding-top: 16px;
  }

  .turgus-category-head {
    margin: 0 0 12px 0;
  }

  .turgus-category-head h2 {
    font-size: 19px;
  }

  .turgus-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0;
  }

  .turgus-category-card {
    min-height: 74px;
    padding: 12px;
    border-radius: 16px;
  }

  .turgus-category-icon {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
    margin-right: 10px;
    border-radius: 14px;
  }

  .turgus-category-name {
    font-size: 13px;
    line-height: 18px;
  }

  .turgus-category-arrow {
    display: none;
  }

  .white .simple-prod .simple-wrap {
    border-radius: 16px;
  }

  .fancybox-wrap.home-cat,
  .fancybox-wrap.home-cat .fancybox-skin,
  .fancybox-wrap.home-cat .fancybox-outer,
  .fancybox-wrap.home-cat .fancybox-inner {
    max-width: calc(100vw - 24px) !important;
  }

  .home-cat .cat-tab .middle {
    height: auto;
    max-height: calc(100vh - 190px);
  }

  .home-cat .cat-tab .middle a {
    width: 100%;
  }

  #footer {
    margin-top: 18px;
  }
}

@media screen and (max-width: 420px) {
  .turgus-category-grid {
    grid-template-columns: 1fr;
  }
}

/* Stage 4: minimal home layout. */
body#body-home #sub-nav {
  display: none;
}

body#body-home .hc-turgus-categories {
  padding-top: 16px;
  padding-bottom: 10px;
}

body#body-home .turgus-category-head {
  margin: 0 1% 12px 1%;
}

body#body-home .turgus-category-head h2 {
  font-size: 20px;
  line-height: 26px;
}

body#body-home .turgus-category-grid {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  padding: 0 1%;
}

body#body-home .turgus-category-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-height: 0;
  padding: 0;
  color: var(--turgus-text);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  text-align: center;
}

body#body-home .turgus-category-card:hover {
  color: var(--turgus-blue);
  border: 0;
  box-shadow: none;
  transform: translateY(-1px);
}

body#body-home .turgus-category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  margin: 0 0 8px 0;
  background: #fff;
  border: 1px solid rgba(219, 232, 240, 0.95);
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(34, 158, 217, 0.10), 0 1px 4px rgba(23, 33, 43, 0.06);
}

body#body-home .turgus-category-card:hover .turgus-category-icon {
  border-color: rgba(34, 158, 217, 0.32);
  box-shadow: 0 10px 24px rgba(34, 158, 217, 0.16);
}

body#body-home .turgus-category-icon i {
  color: currentColor;
  font-size: 24px;
}

body#body-home .turgus-category-icon img {
  max-width: 28px;
  max-height: 28px;
}

body#body-home .turgus-category-name {
  display: -webkit-box;
  width: 100%;
  min-width: 0;
  max-height: 34px;
  color: var(--turgus-text);
  font-size: 12px;
  font-weight: 700;
  line-height: 17px;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  word-break: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body#body-home .turgus-category-card:hover .turgus-category-name {
  color: var(--turgus-blue);
}

body#body-home .hc-latest {
  padding-top: 6px;
}

body#body-home .hc-latest #latest h2.home {
  margin: 0 1% 14px 1%;
  padding: 0;
  border: 0;
}

body#body-home .hc-latest #latest h2.home span {
  font-size: 20px;
  line-height: 26px;
}

body#body-home .hc-latest #latest .block {
  float: left;
  width: 100%;
  clear: both;
}

body#body-home .hc-latest #latest .block .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 14px 2%;
}

body#body-home .hc-latest .white .simple-prod {
  float: none;
  display: block;
  flex: 0 0 23.5%;
  width: 23.5%;
  margin: 0;
}

body#body-home .hc-latest .white .simple-prod .simple-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 282px;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
}

body#body-home .hc-latest .white .simple-prod .item-img-wrap {
  order: 1;
  float: none;
  flex: 0 0 auto;
  background: #edf5fa;
}

body#body-home .hc-latest .white .simple-prod .img-link {
  height: 0;
  padding-top: 70%;
  background: #edf5fa;
}

body#body-home .hc-latest .white .simple-prod .img-link img {
  max-width: 132%;
  max-height: 132%;
}

body#body-home .hc-latest .white .simple-prod .category {
  display: none;
}

body#body-home .hc-latest .white .simple-prod a.title {
  order: 2;
  display: -webkit-box;
  float: none;
  width: auto;
  height: 40px;
  margin: 11px 12px 4px 12px;
  color: var(--turgus-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  overflow: hidden;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body#body-home .hc-latest .white .simple-prod a.title:hover {
  color: var(--turgus-blue);
}

body#body-home .hc-latest .white .simple-prod .middle {
  order: 3;
  float: none;
  width: auto;
  min-height: 18px;
  margin: 0 12px 8px 12px;
}

body#body-home .hc-latest .white .simple-prod .location {
  float: none;
  width: 100%;
  margin: 0;
  color: var(--turgus-muted);
  font-size: 12px;
  line-height: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body#body-home .hc-latest .white .simple-prod .description {
  display: none;
}

body#body-home .hc-latest .white .simple-prod .bottom {
  order: 4;
  float: none;
  width: auto;
  min-height: 36px;
  margin: auto 12px 0 12px;
  padding: 9px 0 11px 0;
  border-top: 1px solid #eef5f9;
}

body#body-home .hc-latest .white .simple-prod .price {
  float: none;
  width: 100%;
}

body#body-home .hc-latest .white .simple-prod .price span {
  color: var(--turgus-blue);
  font-size: 15px;
  font-weight: 800;
  line-height: 18px;
}

body#body-home .home-see-all {
  margin-top: 16px;
}

@media screen and (max-width: 1200px) {
  body#body-home .turgus-category-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  body#body-home .hc-latest .white .simple-prod {
    flex-basis: 32%;
    width: 32%;
  }
}

@media screen and (max-width: 1024px) {
  body#body-home .turgus-category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body#body-home .hc-latest #latest .block .wrap {
    gap: 12px 2%;
  }
}

@media screen and (max-width: 767px) {
  body#body-home .hc-turgus-categories {
    padding-top: 14px;
    padding-bottom: 6px;
  }

  body#body-home .turgus-category-head {
    margin: 0 0 10px 0;
  }

  body#body-home .turgus-category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 6px;
    padding: 0;
  }

  body#body-home .turgus-category-icon {
    flex-basis: 50px;
    width: 50px;
    height: 50px;
    margin-bottom: 6px;
  }

  body#body-home .turgus-category-icon i {
    font-size: 21px;
  }

  body#body-home .turgus-category-name {
    font-size: 11px;
    line-height: 15px;
  }

  body#body-home .hc-latest #latest h2.home {
    margin-left: 0;
    margin-right: 0;
  }

  body#body-home .hc-latest #latest .block .wrap {
    gap: 10px 3%;
  }

  body#body-home .hc-latest .white .simple-prod {
    flex-basis: 48.5%;
    width: 48.5%;
  }

  body#body-home .hc-latest .white .simple-prod .simple-wrap {
    min-height: 244px;
    border-radius: 15px;
  }

  body#body-home .hc-latest .white .simple-prod a.title {
    height: 38px;
    margin: 9px 10px 3px 10px;
    font-size: 13px;
    line-height: 19px;
  }

  body#body-home .hc-latest .white .simple-prod .middle {
    margin-left: 10px;
    margin-right: 10px;
  }

  body#body-home .hc-latest .white .simple-prod .bottom {
    margin-left: 10px;
    margin-right: 10px;
  }
}

@media screen and (max-width: 420px) {
  body#body-home .turgus-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media screen and (max-width: 340px) {
  body#body-home .hc-latest .white .simple-prod {
    flex-basis: 100%;
    width: 100%;
  }
}
