@import "fonts.css";
@import "utility.css";

* {
  font-family: Vazir;
}

main {
  min-height: 180px;
}

/* header */
header .price-box {
  padding: 0.4rem 1.2rem;
  font-weight: 500;
}

header .navbar-brand img {
  width: 50px;
  vertical-align: text-bottom;
}

header .navbar-brand span {
  font-size: 1.5rem;
}

header .navbar-nav a {
  color: var(--secondary);
  font-weight: bold;
}
header .cart-basket .count {
  width: 19px;
  font-size: 0.5rem;
  vertical-align: super;
}

.navbar-toggler:focus-visible,
.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

@media only screen and (max-width: 768px) {
  body header.sticky-top {
    border-bottom: 0px !important;
    background: none;
  }
  /* تغییر نمایش هدر صفحه اصلی */
  header .navbar > div {
    background: var(--background);
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
  }
}
@media only screen and (max-width: 678px) {
  header .navbar-brand span {
    font-size: 1rem;
  }
  header .navbar-brand img {
    width: 36px;
    vertical-align: text-top;
  }
}

/* main home */
.baners img {
  width: 800px;
}

.banners-box img {
  width: 300px;
}

.product-item img,
.product-img {
  width: 160px;
  height: 250px;
}

.blog-item img {
  width: 100%;
  height: 170px;
}

.blog-item p.description {
  text-overflow: clip;
  overflow: hidden;
  height: 65px;
  white-space: pre-wrap;
  text-align: justify;
}

.custom-swiper-nav .next,
.custom-swiper-nav .prev {
  background: var(--border);
  color: var(--secondary);
  padding: 7px 12px;
  border: none;
  border-radius: 11px;
  position: absolute;
  top: 50%;
  z-index: 2;
}

.custom-swiper-nav .next {
  left: -20px;
}

.custom-swiper-nav .prev {
  right: -20px;
}

@media only screen and (max-width: 768px) {
  .baners img {
    width: 100%;
  }
}

/* product style 2 */
.product-item-style-2 > div {
  transition: all 0.5s ease-in-out;
  -webkit-transition: all 0.5s ease-in-out;
  -moz-transition: all 0.5s ease-in-out;
  -ms-transition: all 0.5s ease-in-out;
  -o-transition: all 0.5s ease-in-out;
}
.product-item-style-2:hover > div {
  box-shadow: 0 0 10px 0 rgb(193 193 193 / 40%);
}
.product-item-style-2 img {
  width: 110px;
  height: 154px;
}

/* footer */

footer .nav-item {
  display: flex;
  align-items: center;
}

/* shopping */
.qty-box {
  display: flex;
  align-items: center;
  border-radius: 8px;
  width: fit-content;
  overflow: hidden;
}
.qty-box button {
  border: none;
  width: 35px;
  height: 35px;
  font-weight: bold;
}
.qty-box input {
  width: 50px;
  text-align: center;
  border: none;
  outline: none;
}

/* blog */
.search-box {
  padding-right: 2rem;
}
.blog-category-items > li {
  text-wrap-mode: nowrap;
}

.blog-category-items a {
  background-color: var(--background);
  color: var(--primary);
  border-radius: 4px;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  -ms-border-radius: 4px;
  -o-border-radius: 4px;
}
.blog-category-items a:hover {
  background: var(--accent);
  color: var(--white);
}
.blog-category-items a.active {
  background: var(--accent);
  color: var(--white);
}

.pagination a {
  background-color: var(--accent);
  color: var(--white);
  border-radius: 4px;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  -ms-border-radius: 4px;
  -o-border-radius: 4px;
}
.pagination a:hover,
.pagination a.active {
  background-color: var(--accent-hover);
  color: var(--white);
  border: 1px solid var(--accent-hover);
}

/* blog-detials */

.article-img-palceholder {
  height: 500px;
}

@media only screen and (max-width: 1024px) {
  .article-img-palceholder {
    height: 350px;
  }
}

@media only screen and (max-width: 650px) {
  .article-img-palceholder {
    height: 250px;
  }
}

.blog .content h1,
.blog .content h2,
.blog .content h3,
.blog .content h4,
.blog .content h5,
.blog .content h6 {
  margin: 3rem 0 1rem 0;
}
.blog .content p {
  color: var(--secondary);
  line-height: 32px;
}

.widget-related-post img {
  width: 75px;
}

/* page 404 */
.error-code {
  font-size: 8rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 2px;
}

.error-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: -10px;
}

.error-text {
  font-size: 1rem;
  margin-top: 10px;
  margin-bottom: 25px;
}

/* comming soon */
.update-icon {
  font-size: 80px;
  color: var(--accent-hover);
  margin-bottom: 20px;
}

/* amimation */

@keyframes scanLine {
  0% {
    top: 0;
  }
  100% {
    top: 100%;
  }
}

/* login-page */

.auth-card {
  background-color: var(--white);
  border-radius: 24px;
  padding: 2.5rem;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 4px_ 30px rgba(0, 0, 0, 0.05);
  border: 1px solid #e9ecef;
}

@media (max-width: 576px) {
  .auth-card {
    padding: 2rem 1.5rem;
  }
}

.logo {
  letter-spacing: 1px;
  font-weight: 500;
  color: var(--secondary);
}
.logo img {
  width: 70px;
}
.form-control {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  text-align: right;
  font-size: 0.9rem;
}

.otp-inputs {
  display: flex;
  justify-content: space-between;
  direction: ltr;
}
.otp-input {
  width: 50px;
  height: 50px;
  text-align: center;
  font-size: 1.2rem;
}

/* shop general */
.shop .step-nav .step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #999;
  font-weight: 500;
  width: 85px;
  font-size: 12px;
}
.shop .step-nav .step-item .step-icon {
  width: 65px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  border: 3px solid var(--border);
  padding: 4px;
}
.shop .step-nav .step-item.active {
  color: var(--color-primary-100);
  font-weight: 600;
}
.shop .step-nav .step-item.active .step-icon {
  border-color: var(--accent);
}
.shop .step-nav .step-item .step-icon span {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.shop .step-nav .line-step {
  width: 120px;
  height: 2px;
  flex-grow: 1;
  background-color: var(--border);
  margin-bottom: 23px;
}
.shop .step-nav .line-step.active {
  background-color: var(--accent);
}
.shop .step-nav .step-item.passed {
  color: #34d399;
}
.shop .step-nav .step-item.passed .step-icon {
  border-color: #34d399;
}
.shop .step-nav .step-item.passed .step-icon span {
  background: #34d399;
}

/* cart */
.cart-page .cart-box {
  background: #fff;
  border: 1px solid rgba(111, 66, 193, 0.08);
  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  -webkit-transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  -moz-transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  -ms-transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  -o-transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.cart-page .cart-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06) !important;
  border-color: var(--border);
}

.cart-page .cart-product-img-wrap {
  width: 92px;
  height: 92px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fafafa 0%, #f3f3f3 100%);
  margin: 0 auto;
}

.cart-page .product-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.08));
}
.cart-page .product-title {
  line-height: 1.8;
  font-weight: 700;
  border-bottom: 1px dotted var(--border);
}

.cart-page .cart-box .product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  font-size: 0.88rem;
  color: var(--#5a6772);
  margin: 0;
  padding: 0;
  list-style: none;
}

.cart-page .cart-box .product-meta li {
  position: relative;
  padding-inline-start: 0.9rem;
}

.cart-page .cart-box .product-meta li::before {
  content: "•";
  position: absolute;
  inset-inline-start: 0;
  color: #d0d0d0;
}

.cart-page .cart-box .price-tag {
  margin-top: 0.85rem;
  font-weight: 800;
  font-size: 1.05rem;
}

.cart-page .btn-continue {
  border-radius: 10px;
  padding: 0.6rem 2rem;
  display: inline-block;
  text-align: center;
  width: 150px;
}

.cart-page .remove-btn {
  background: none;
  border: none;
  color: var(--error);
  font-size: 1.3rem;
}

@media (max-width: 576px) {
  .cart-page .cart-box {
    border-radius: 16px;
  }

  .cart-page .cart-box .cart-product-img-wrap {
    width: 76px;
    height: 76px;
    border-radius: 14px;
    align-self: flex-start;
  }

  .cart-page .cart-box .product-img {
    width: 60px;
    height: 60px;
  }

  .cart-page .cart-box .product-title {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .cart-page .cart-box .product-meta {
    font-size: 0.82rem;
    gap: 0.25rem 0.6rem;
  }

  .cart-page .cart-box .price-tag {
    font-size: 0.98rem;
  }

  .cart-page .cart-box .remove-btn {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }
}
/* checkout */

.form-control,
.form-select {
  border-radius: 0.75rem;
}
.checkout-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #5a2ec0;
}
.btn-purple {
  background-color: #6f42c1;
  color: #fff;
  border-radius: 0.75rem;
}
.btn-purple:hover {
  background-color: #5b34a2;
  color: #fff;
}

@media screen and (max-width: 600px) {
  .step-item {
    font-size: 12px;
  }
  .cart-page .cart-box {
    border-radius: 16px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
    padding: 0rem;
    margin-bottom: 1rem;
  }
}

/* Invoice */

.invoice-page .summary-card {
  background: var(--white);
  box-shadow: 0 0 15px #0001;
}

.invoice-page .accordion-button:not(.collapsed) {
  background-color: var(--background);
  color: var(--accent);
}
.invoice-page .summary-card .accordion-button:focus {
  box-shadow: unset;
}
.invoice-page .payment-method {
  border: 1px solid #ddd;
  padding: 15px;
  cursor: pointer;
  transition: 0.2s;
  font-size: 14px;
}
.invoice-page .payment-method.active {
  border-color: var(--accent);
  background: var(--background);
}
.invoice-page .btn-primary-custom {
  padding: 10px 30px;
  border-radius: 10px;
}
.invoice-page .btn-primary-custom:disabled {
  background: #d1b3ff;
}
.invoice-page .coupon-box {
  background: #fff2b8;
  padding: 20px;
  border-radius: 12px;
}

/* payment-success */

.success-box {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  max-width: 600px;
  margin: 50px auto;
  text-align: center;
  box-shadow: 0 0 20px #0001;
}
.success-icon {
  font-size: 70px;
  color: #2ecc71;
  animation: pop 0.4s ease-out;
}
@keyframes pop {
  0% {
    transform: scale(0.4);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
.btn-main {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 35px;
  border-radius: 12px;
  font-size: 16px;
}
.btn-main:hover {
  background: var(--accent-hover);
}

/* payment-failed */

.fail-box {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  max-width: 620px;
  margin: 60px auto;
  text-align: center;
  box-shadow: 0 0 20px #0001;
}

.fail-icon {
  font-size: 70px;
  color: var(--error);
  animation: pop 0.4s ease-out;
}

@keyframes pop {
  0% {
    transform: scale(0.4);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.order-box {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 15px;
  margin-top: 20px;
}

.btn-outline-custom {
  border: 1px solid #8a2be2;
  color: #8a2be2;
  padding: 10px 35px;
  border-radius: 12px;
  background: white;
}
