@font-face {
  font-family: vazir;
  src: url("../fonts/Vazirmatn-VariableFont_wght.ttf");
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding: 0;
  font-family: vazir, Arial, Helvetica, sans-serif;
  direction: rtl;
  background: #f5f5f5;
  color: #222;
}
button,
select,
input {
  font-family: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
}
.camelion-products {
  width: 94%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px 0 80px;
}
.products-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  margin-bottom: 25px;
  text-align: center;
}
.products-title h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 800;
}
.camelion-logo-text {
  font-family: Arial, sans-serif;
  font-size: 32px;
  font-weight: 800;
  font-style: italic;
  color: #fff;
  background: #e21b23;
  padding: 8px 18px;
  border-radius: 10px;
  line-height: 1;
}
.catalog-intro {
  width: 100%;
  margin-bottom: 25px;
  padding: 25px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
}
.catalog-intro h2 {
  margin: 0 0 10px;
  font-size: 23px;
}
.catalog-intro p {
  margin: 0;
  color: #666;
  line-height: 2;
  font-size: 15px;
}
.catalog-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 30px;
}
.filter-button {
  border: 1px solid #ccc;
  background: #fff;
  color: #333;
  padding: 9px 14px;
  border-radius: 10px;
  transition: 0.2s ease;
}
.filter-button:hover {
  transform: translateY(-1px);
}
.filter-button.active {
  background: #222;
  color: #fff;
  border-color: #222;
}
.catalog-section {
  margin-bottom: 30px;
  padding: 24px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 7px 25px rgba(0, 0, 0, 0.08);
}
.catalog-section.is-hidden {
  display: none;
}
.catalog-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #eee;
}
.catalog-section-header h2 {
  margin: 6px 0;
  font-size: 24px;
}
.catalog-section-header p {
  margin: 0;
  color: #777;
  font-size: 14px;
}
.catalog-page {
  display: inline-block;
  font-size: 13px;
  color: #888;
}
.catalog-brand {
  font-family: Arial, sans-serif;
  font-size: 25px;
  font-weight: 800;
  font-style: italic;
  color: #fff;
  background: #e21b23;
  padding: 8px 15px;
  border-radius: 8px;
  white-space: nowrap;
}
.catalog-content {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
  gap: 30px;
  align-items: start;
}
.catalog-image-box {
  width: 100%;
  overflow: hidden;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  background: #fafafa;
}
.catalog-image-box img {
  display: block;
  width: 100%;
  height: auto;
}
.product-control {
  width: 100%;
  padding: 22px;
  background: #fafafa;
  border: 1px solid #e7e7e7;
  border-radius: 14px;
}
.product-control > label {
  display: block;
  margin-bottom: 9px;
  font-weight: 700;
}
.camelion-product-select {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background: #fff;
  color: #222;
  font-size: 14px;
  outline: none;
}
.camelion-product-select:focus {
  border-color: #555;
}
.selected-product-info {
  margin-top: 18px;
}
.selected-name-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
}
.selected-name-row span {
  flex-shrink: 0;
  color: #666;
}
.selected-product-name {
  text-align: left;
  line-height: 1.8;
}
.price-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  padding: 12px;
  margin-top: 12px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background: #f8f8f8;
  font-size: 15px;
}
.camelion-selected-price {
  font-size: 16px;
  font-weight: 800;
}
.camelion-add-to-cart {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 13px 16px;
  border: 0;
  border-radius: 10px;
  background: #222;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: 0.2s ease;
}
.camelion-add-to-cart:hover:not(:disabled) {
  transform: translateY(-1px);
  opacity: 0.9;
}
.camelion-add-to-cart:disabled {
  background: #bbb;
  color: #eee;
}
.floating-cart {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #222;
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 7px 25px rgba(0, 0, 0, 0.2);
}
.floating-cart:hover {
  opacity: 0.9;
}
.cart-icon {
  font-size: 20px;
}
.cart-text {
  font-size: 14px;
}
.cart-badge {
  min-width: 23px;
  height: 23px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: #222;
  font-size: 12px;
  font-weight: 700;
}
@media (max-width: 991px) {
  .camelion-products {
    width: 92%;
  }
  .catalog-content {
    grid-template-columns: 1fr;
  }
  .product-control {
    padding: 20px;
  }
  .products-title h1 {
    font-size: 28px;
  }
}
@media (max-width: 600px) {
  .camelion-products {
    width: 94%;
    padding-top: 20px;
  }
  .products-title {
    gap: 12px;
  }
  .products-title h1 {
    font-size: 22px;
  }
  .camelion-logo-text {
    font-size: 22px;
    padding: 7px 12px;
  }
  .catalog-intro {
    padding: 18px;
  }
  .catalog-intro h2 {
    font-size: 19px;
  }
  .catalog-intro p {
    font-size: 13px;
  }
  .catalog-section {
    padding: 16px;
    border-radius: 14px;
  }
  .catalog-section-header {
    align-items: flex-start;
  }
  .catalog-section-header h2 {
    font-size: 20px;
  }
  .catalog-brand {
    font-size: 18px;
    padding: 7px 10px;
  }
  .product-control {
    padding: 15px;
  }
  .selected-name-row,
  .price-display {
    flex-wrap: wrap;
  }
  .selected-product-name {
    width: 100%;
    text-align: right;
  }
  .floating-cart {
    left: 12px;
    bottom: 12px;
    padding: 10px 13px;
  }
}
@media (max-width: 400px) {
  .products-title h1 {
    font-size: 19px;
  }
  .camelion-logo-text {
    font-size: 19px;
  }
  .catalog-filter {
    gap: 6px;
  }
  .filter-button {
    padding: 7px 10px;
    font-size: 12px;
  }
  .cart-text {
    display: none;
  }
}

.back-home {
  display: inline-block;
  padding: 10px 20px;
  margin: 20px;
  border-radius: 10px;

  background: #222;
  color: #fff;

  text-decoration: none;
  font-size: 15px;
  font-weight: 700;

  transition: 0.3s;
}

.back-home:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}
