/* User-supplied brand font (IRANSansWeb / font_nbt.ttf) — used site-wide, replacing the
   previous system-font fallback stack. */
@font-face {
  font-family: "IRANSansWeb";
  src: url("/fonts/IRANSansWeb.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bs-font-sans-serif: "IRANSansWeb", Tahoma, "Segoe UI", "Vazirmatn", sans-serif;
  --bs-body-font-family: var(--bs-font-sans-serif);
}

html, body {
  font-family: "IRANSansWeb", Tahoma, "Segoe UI", "Vazirmatn", sans-serif;
  background: #f7f7f9;
  color: #23272f;
}

a { text-decoration: none; }

.brand-text { font-weight: 700; font-size: 1.1rem; color: #b91c1c; }
.phone-badge { font-weight: 600; }

/* ---------- Hero Slider ---------- */
.hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin: 1.25rem 0;
  background: #111;
  height: 340px;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease-in-out;
  display: flex;
  align-items: center;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.55);
}
.hero-caption {
  position: absolute;
  right: 5%;
  color: #fff;
  max-width: 90%;
  z-index: 2;
}
.hero-caption h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: .4rem; }
.hero-caption p { font-size: 1rem; opacity: .9; }

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255,255,255,.85);
  border: none;
  border-radius: 50%;
  width: 42px; height: 42px;
  font-size: 1.2rem;
  cursor: pointer;
}
.hero-arrow.prev { right: 16px; }
.hero-arrow.next { left: 16px; }

.hero-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.hero-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: none; cursor: pointer;
}
.hero-dot.active { background: #fff; }

/* ---------- Brand circles ---------- */
.brand-circles {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 1.5rem 0;
}
.brand-circle { text-align: center; }
.brand-circle .circle-img {
  width: 110px; height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.brand-circle .circle-name { display: block; margin-top: .5rem; font-weight: 700; }
.brand-circle .circle-count { display: block; font-size: .8rem; color: #777; }

/* ---------- Product cards ---------- */
.product-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  height: 100%;
  transition: box-shadow .2s;
}
.product-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.product-card img { border-radius: 10px 10px 0 0; width: 100%; height: 180px; object-fit: cover; }
.product-card .card-body { padding: .9rem; }
.product-price { color: #b91c1c; font-weight: 700; }
.brand-badge { display: inline-block; font-size: .75rem; background: #eee; border-radius: 6px; padding: 2px 8px; margin-bottom: .3rem; }

/* ---------- Product details ---------- */
.product-detail-img { width: 100%; max-height: 420px; object-fit: contain; background: #fff; border-radius: 10px; }
.product-detail-price { font-size: 1.6rem; }

/* ---------- Cart ---------- */
.cart-link { position: relative; font-weight: 600; }
.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  margin-inline-start: 4px;
  border-radius: 50%;
  background: #b91c1c;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  vertical-align: top;
}

.add-to-cart-form { display: flex; align-items: center; gap: .5rem; margin-top: .5rem; }
.add-to-cart-form .qty-input {
  width: 70px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: .4rem .5rem;
  text-align: center;
}
.btn-cart {
  background: #b91c1c;
  border: none;
  color: #fff;
  border-radius: 8px;
  padding: .55rem 1.1rem;
  font-weight: 700;
  transition: background .2s;
}
.btn-cart:hover { background: #991414; color: #fff; }
.btn-cart-sm {
  background: #b91c1c;
  border: none;
  color: #fff;
  border-radius: 6px;
  padding: .35rem .6rem;
  font-size: .8rem;
  font-weight: 600;
  width: 100%;
}
.btn-cart-sm:hover { background: #991414; color: #fff; }

.cart-table { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.cart-table img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.cart-line-qty {
  width: 70px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: .3rem .4rem;
  text-align: center;
}
.cart-total-box {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  padding: 1.25rem;
}
.cart-empty {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  padding: 3rem 1.5rem;
  text-align: center;
}
.checkout-summary {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  padding: 1.25rem;
}
.order-confirmation {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  padding: 3rem 1.5rem;
  text-align: center;
}
.order-confirmation .order-id {
  display: inline-block;
  background: #f3f3f3;
  border-radius: 8px;
  padding: .5rem 1rem;
  font-weight: 700;
  color: #b91c1c;
  margin: .75rem 0;
}

/* ---------- Admin panel ---------- */
.admin-login-box {
  max-width: 360px;
  margin: 3rem auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  padding: 2rem 1.5rem;
}
.admin-table {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  padding: .5rem;
}
.admin-price-input {
  width: 130px;
}
.footer-admin-link {
  color: #adb5bd;
  font-size: .75rem;
}
.footer-admin-link:hover {
  color: #6c757d;
}
