@font-face {
  font-family: Vazirmatn;
  src: url("../fonts/Vazirmatn-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #f4f6f8;
  color: #17202a;
  font-family: Vazirmatn, Arial, sans-serif;
}
a {
  text-decoration: none;
  color: inherit;
}
.avand-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 82px;
  padding: 14px 4%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  background: linear-gradient(
    110deg,
    #0b79b6,
    #0870aa 58%,
    #f36b16 58%,
    #f36b16
  );
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.back-home,
.cart-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.14);
  font-weight: 700;
  transition: 0.2s;
}
.back-home:hover,
.cart-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
}
.cart-link {
  margin-right: auto;
}
.avand-brand {
  text-align: center;
  color: #fff;
  line-height: 1;
}
.avand-brand h1 {
  font-size: 34px;
  margin: 2px 0 5px;
  font-weight: 900;
}
.avand-brand span {
  font-size: 12px;
  opacity: 0.95;
}
.avand-brand .brand-small {
  font-size: 9px;
  letter-spacing: 2px;
  display: block;
}
main {
  max-width: 1200px;
  margin: auto;
  padding: 26px 18px 90px;
}
.avand-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 38px 42px;
  border-radius: 28px;
  background: linear-gradient(135deg, #071d2b, #0d4562);
  color: #fff;
  box-shadow: 0 18px 50px rgba(5, 38, 57, 0.18);
  margin-bottom: 24px;
}
.avand-hero:after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(243, 107, 22, 0.22);
  left: -100px;
  bottom: -150px;
  filter: blur(10px);
}
.eyebrow {
  color: #ff9a59;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
}
.avand-hero h2 {
  font-size: clamp(28px, 4vw, 46px);
  margin: 8px 0;
}
.avand-hero p {
  max-width: 750px;
  line-height: 2;
  color: #dbeaf1;
  margin: 0;
}
.hero-badge {
  position: relative;
  z-index: 1;
  min-width: 145px;
  height: 145px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 35px rgba(255, 255, 255, 0.05);
}
.hero-badge strong {
  font-size: 46px;
  color: #ff9a59;
}
.hero-badge span {
  font-size: 12px;
}
.catalog-filter {
  position: sticky;
  top: 95px;
  z-index: 10;
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  padding: 12px;
  margin: 0 0 24px;
  background: rgba(244, 246, 248, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid #e2e7eb;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}
.filter-button {
  border: 0;
  background: #fff;
  border: 1px solid #dce3e8;
  color: #3c4a54;
  border-radius: 10px;
  padding: 10px 17px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}
.filter-button.active {
  background: #0874ae;
  color: #fff;
  border-color: #0874ae;
}
.catalog-section {
  background: #fff;
  border: 1px solid #e4e9ed;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 10px 32px rgba(18, 39, 52, 0.07);
}
.catalog-section.is-hidden {
  display: none;
}
.section-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: linear-gradient(90deg, #f6f9fb, #fff);
}
.page-chip {
  font-size: 12px;
  color: #0874ae;
  font-weight: 900;
}
.section-title {
  font-size: 20px;
  margin: 0;
  font-weight: 900;
}
.section-category {
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff0e7;
  color: #d95d12;
  font-weight: 800;
}
.section-body {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.8fr);
  gap: 0;
  border-top: 1px solid #eef1f3;
}
.catalog-image-box {
  padding: 18px;
  background: #f7f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}
.catalog-image-box img {
  display: block;
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 7px 22px rgba(0, 0, 0, 0.08);
}
.selector-panel {
  padding: 30px 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
  background: linear-gradient(180deg, #fff, #fbfcfd);
}
.selector-label {
  font-size: 12px;
  color: #71808b;
  font-weight: 800;
}
.product-select {
  width: 100%;
  padding: 13px;
  border: 1px solid #d8e0e5;
  border-radius: 12px;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  color: #18232b;
  outline: none;
}
.product-select:focus {
  border-color: #0874ae;
  box-shadow: 0 0 0 3px rgba(8, 116, 174, 0.1);
}
.selected-box {
  padding: 17px;
  border-radius: 16px;
  background: #f4f8fa;
  border-right: 4px solid #f36b16;
}
.selected-box small {
  color: #77848d;
}
.selected-name {
  font-weight: 900;
  margin-top: 5px;
  line-height: 1.8;
}
.selected-price {
  font-size: 20px;
  font-weight: 900;
  color: #0874ae;
  margin-top: 7px;
}
.add-to-cart {
  border: 0;
  border-radius: 12px;
  padding: 13px;
  background: #f36b16;
  color: #fff;
  font-family: inherit;
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s;
}
.add-to-cart:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(243, 107, 22, 0.25);
}
.add-to-cart:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.floating-cart {
  position: fixed;
  left: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0874ae;
  color: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22);
  z-index: 30;
  font-size: 24px;
}
.floating-cart b {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f36b16;
  font-size: 11px;
}
@media (max-width: 900px) {
  .section-body {
    grid-template-columns: 1fr;
  }
  .selector-panel {
    border-top: 1px solid #eef1f3;
  }
  .avand-hero {
    padding: 30px;
  }
  .catalog-filter {
    top: 82px;
  }
}
@media (max-width: 700px) {
  .avand-header {
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand cart" "back back";
  }
  .avand-brand {
    grid-area: brand;
  }
  .cart-link {
    grid-area: cart;
  }
  .back-home {
    grid-area: back;
    width: 100%;
    margin-top: 3px;
  }
  .avand-brand h1 {
    font-size: 27px;
  }
  .avand-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 26px 22px;
  }
  .hero-badge {
    width: 105px;
    height: 105px;
    min-width: 105px;
  }
  .hero-badge strong {
    font-size: 34px;
  }
  .catalog-filter {
    top: 132px;
  }
  .section-top {
    padding: 15px;
    gap: 10px;
  }
  .section-title {
    font-size: 17px;
  }
  .catalog-image-box {
    padding: 10px;
    min-height: 230px;
  }
  .selector-panel {
    padding: 22px 16px;
  }
}
@media (max-width: 430px) {
  main {
    padding: 18px 10px 80px;
  }
  .catalog-filter {
    top: 130px;
  }
  .filter-button {
    flex: 1;
    padding: 9px 6px;
    font-size: 12px;
  }
  .avand-hero h2 {
    font-size: 28px;
  }
  .avand-hero p {
    font-size: 13px;
  }
  .section-category {
    display: none;
  }
}
