/* ===== PRODUCT CARD ===== */
.view-product {
  position: absolute;
  top: -220%;
  left: 0;
  width: 100vw;
  height: 500%;
  z-index: 1;
  opacity: 0;
}
.featured-overlay-1, .featured-overlay-4 {
  position: relative;
  width: 100vw;
  max-width: 1536px;
  z-index: 3;
}
.featured-overlay-2 {
  position: relative;
  width: 100vw;
  max-width: 1536px;
  z-index: 4;
  border-top: solid #D4AF37;
}
.featured-overlay-2 .featured-container {
  opacity: 1;
  transform: translateY(0);
}
.featured-container {
  opacity: 0;
  transform: translateY(100px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
  position: relative;
  width: 100vw;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  background: transparent;
}
.featured-container.visible {
  opacity: 1;
  transform: translateY(0);
}
.featured-products {
  position: relative;
  background-color: transparent;
  transition: background-color 0.5s ease, backdrop-filter 0.5s ease;
}
.featured-products.scrolled {
  background-color: #F8F6F3c0;
  backdrop-filter: blur(8px);
}
.feautured-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: -1rem;
  direction: rtl;
}
.section-title {
  position: relative;
  font-size: 1.5rem;
  font-weight: 700;
  color: #191E2A;
  right: 2rem;
  text-align: right;
}
.more-link {
  position: absolute;
  left: 0rem;
  font-size: 1rem;
  color: #A89F91;
  text-decoration: none;
  transition: color 0.3s ease;
  margin-left: 3rem;
  text-align: left;
}
.scroll-wrapper {
  position: absolute;
  overflow: hidden;
}
.more-link:hover {
  color: #D4AF37;
}
.product-scroll {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 0 2rem;
  padding-bottom: 1rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.product-scroll::-webkit-scrollbar {
  display: none;
}
.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  border-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #191E2A;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: opacity 0.3s ease;
  z-index: 10;
}
.scroll-arrow.left { left: 2rem;}
.scroll-arrow.right { right: 2rem; }
.section-spacer{
  flex: 0 0 auto;
  height: 5px;
  scroll-snap-align: start;
}
.product-card {
  flex: 0 0 auto;
  width: 300px;
  height: 400px;
  position: relative;
  border-radius: 5px;
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: 0 0px 0px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s ease;
}
.product-image {
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
}
.product-img {
  width: 300px;
}
.product-img-sub {
  position: absolute;
  right: 0px;
  width: 300px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.product-card:hover .product-img-sub {
  opacity: 1;
}
.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform 0.4s ease;
  z-index: 0;
}
.product-card:hover::before {
  transform: scale(1.05);
}
.product-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.product-card:hover .product-image {
  transform: scale(1.05);
}
.product-info {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 1rem;
  z-index: 1;
  background: #F8F6F3;
  color: #191E2A;
}
.product-title {
  font-size: 1.1rem;
  margin-bottom: -1rem;
  color: #191E2A;
}
.product-subtitle {
  font-size: 0.8rem;
  margin-bottom: -0.6rem;
  color: #A89F91;
}
.product-code {
  position: absolute;
  top: 15px;
  font-size: 0.8rem;
  color: #A89F91;
  left: 50px;
  margin-top: 0.3rem;
}
.info-text {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.price {
  position: relative;
  font-size: 1rem;
  top: 0.5rem;
  font-family: 'Vazirmatn';
  font-weight: bold;
  color: #D4AF37;
  text-decoration: none;
  bottom: 0rem;
}
.special-price {
  display: none;
  font-size: 1rem;
  font-family: 'Vazirmatn';
  font-weight: bold;
  color: red;
  text-decoration: none;
  margin-top: 1.5rem;
  margin-bottom: 0rem;
}
.has-offer .price {
  font-size: 0.7rem;
  color: gray;
  text-decoration: line-through;
  margin-bottom: -1.5rem;
}
.has-offer .special-price {
  display: block;
}
.badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background-color: crimson;
  color: white;
  font-size: 0.8rem;
  padding: 0.3rem 0.6rem;
  border-radius: 0.4rem;
  font-weight: bold;
  z-index: 3;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  display: none;
}
.has-offer .badge {
  display: block;
}
.out-of-stock {
  color: gray;
  font-weight: bold;
  font-size: 1.1rem;
}
.product-card.out-of-stock img.product-img {
  filter: grayscale(100%);
  opacity: 0.6;
  transition: filter 0.3s ease, opacity 0.3s ease;
}
.heart-box {
  background-color: #A89F91;
  position: absolute;
  height: 35px;
  width: 35px;
  bottom: 1rem;
  left: 3rem;
  display: flex;
  opacity: 0;
  transition: opacity 0.3s ease;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  cursor: pointer;
  z-index: 2;
  transition: background-color 250ms ease;
}
.heart-box:hover {
  background-color: #D4AF37;
}
.product-card:hover .heart-box {
  opacity: 1;
}
.heart-icon {
  width: 20px;
  height: 20px;
}
.heart-outline { display: block; }
.heart-filled { display: none; }
.heart-box.favorited {
  opacity: 1;
}
.heart-box.favorited .heart-outline { display: none; }
.heart-box.favorited .heart-filled { display: block; }
.product-card.orbit-enabled::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%'><rect x='1' y='1' width='298' height='398' rx='5' ry='5' fill='none' stroke='red' stroke-width='2' stroke-dasharray='200 1200' stroke-linejoin='round' stroke-linecap='round'><animate attributeName='stroke-dashoffset' from='0' to='-1400' dur='4s' repeatCount='indefinite'/></rect></svg>");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.add-to-cart {
  display: block;
  position: absolute;
  width: calc(100% - 60px);
  right: 0;
  bottom: 0;
  padding: 0.4rem 1rem;
  font-size: x-large;
  background-color: #A89F91;
  color: white;
  font-family: 'Vazirmatn';
  border: none;
  border-radius: 10px;
  align-self: flex-end;
  cursor: pointer;
  opacity: 1;
  transition: background-color 250ms ease;
}
.add-to-cart:hover {
  background-color: #D4AF37;
}
.quantity-selector {
  position: absolute;
  display: flex;
  width: calc(100% - 60px);
  right: 0rem;
  bottom: 0;
  padding: 0.4rem 0rem;
  font-size: x-large;  
  align-items: center;
  gap: 0.5rem;
  background-color: #A89F91;
  border-radius: 10px;
  color: white;
  justify-content: space-around;
  z-index: 2;
  transition: background-color 250ms ease;
}
.quantity-selector:hover {
  background-color: #D4AF37;
}
.quantity-selector button {
  background: transparent;
  border: none;
  color: white;
  font-size: 1rem;
  cursor: pointer;
}
.quantity-selector .quantity {
  font-family: 'Vazirmatn';
}
.quantity-selector .increase, .quantity-selector .decrease {
  font-size: x-large;
}
.remind-me {
  display: block;
  position: absolute;
  width: calc(100% - 60px);
  right: 0;
  bottom: 0;
  padding: 0.4rem 1rem;
  font-size: x-large;
  border: none;
  background-color: #D4AF37;
  color: white;
  font-family: 'Vazirmatn';
  border-radius: 10px;
  align-self: flex-end;
  cursor: pointer;
  opacity: 1;
}
.remind-me.active {
  background-color: transparent;
  color: #D4AF37;
  box-shadow: inset 0 0 0 2px #D4AF37;
}
.fast-buy-btn {
  display: none;
  position: absolute;
  width: calc(50% - 15px);
  right: calc(50% - 45px);
  bottom: 0;
  padding: 0.4rem 1rem;
  font-size: x-large;
  background-color: #ff5722;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: 'Vazirmatn';
  transition: background-color 250ms ease;
  z-index: 2;
}
.fast-buy-btn.visible {
  display: block;
}
.fast-buy-btn:hover {
  background-color: #e64a19;
}
.quantity-selector.with-fast-buy {
  width: calc(50% - 55px);
  right: 0;
  left: calc(50% + 5px);
}

/* ===== CATEGORY SECTION ===== */
.categories-section {
  position: relative;
  background-color: #F8F6F3;
}
.categories-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  direction: rtl;
}
.categories-row {
  display: flex;
  padding-left: 3rem;
  padding-right: 3rem;
  gap: 2rem;
  justify-content: space-around;
  flex-wrap: wrap;
  direction: rtl;
  padding-bottom: 1rem;
}
.category-card {
  flex: 0 0 auto;
  width: 300px;
  height: 350px;
  position: relative;
  border-radius: 0px;
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: 0 0px 0px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s ease;
  background-size: cover;
  background-position: top, center;
  background-repeat: no-repeat;
}
.category-card:hover::before {
  transform: scale(1.05);
}
.category-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.category-info {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 50px;
  padding-bottom: 1rem;
  text-align: center;
  z-index: 1;
  background: #F8F6F3;
  color: #191E2A;
}
.category-info h3 {
  font-size: 1.2rem;
  color: #191E2A;
}

/* ===== SHIPPING BANNER ===== */
.shipping-banner {
  background: linear-gradient(135deg, #191E2A 0%, #2c3447 100%);
  color: #F8F6F3;
  padding: 2.5rem 2rem;
  margin: 2rem auto;
  width: calc(100% - 4rem);
  max-width: 1472px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
  direction: rtl;
  z-index: 5;
}
.shipping-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: rgba(212, 175, 55, 0.05);
  border-radius: 50%;
  z-index: 0;
}
.shipping-icon-box {
  background: #D4AF37;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #191E2A;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
  z-index: 1;
}
.shipping-text-content {
  z-index: 1;
}
.shipping-banner h2 {
  font-size: 1.8rem;
  margin: 0 0 0.5rem 0;
  font-weight: 900;
  color: #D4AF37;
}
.shipping-banner p {
  font-size: 1.1rem;
  margin: 0;
  opacity: 0.9;
  line-height: 1.6;
}
.shipping-badge-24h {
  background: crimson;
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 5px;
  font-weight: bold;
  margin-right: 10px;
  display: inline-block;
  font-family: 'Vazirmatn';
}

/* ===== SUPPORT WIDGET ===== */
.support-button {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  background: #d4af37;
  color: #191e2a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  z-index: 9999;
}
.support-button:hover {
  background: #A89F91;
}
.support-widget {
  position: fixed;
  bottom: 90px;
  left: 20px;
  width: 300px;
  height: 360px;
  background-color: #F8F6F3c0;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all .25s ease;
}
.support-widget.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.support-header {
  background: #D4AF37;
  color: #191E2A;
  font-weight: bold;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.support-header button {
  background: none;
  border: none;
  color: #191E2A;
  font-size: 20px;
  cursor: pointer;
}
.support-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 12px;
}
.support-section {
  height: calc(100% - 60px);
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
}
.hidden {
  display: none;
}
.support-section h4 {
  margin-bottom: 5px;
  margin-top: 20px;
}
.faq-widget-search {
  font-family: "vazirmatn";
  font-size: 13px;
  border-radius: 5px;
  border: solid 1px lightgray;
  padding: 5px 8px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 6px;
  background: #fff;
  color: #191e2a;
}
.support-section .faq-wrapper {
  flex: 1;
  min-height: 0;
}
.support-section .faq-container {
  height: 100%;
  min-height: 0;
}
.faq-container .no-results {
  padding: 8px 0;
  font-size: 13px;
  color: #888;
}
.faq-container {
  display: block;
  height: 180px;
  overflow-y: auto;
  padding-right: 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.faq-container::-webkit-scrollbar {
  display: none;
}
.faq-page-wrapper {
  position: relative;
}
.faq-page-wrapper .faq-container {
  height: auto;
  max-height: none;
  overflow: visible;
  padding-right: 12px;
  padding-bottom: 1.5rem;
}
.faq-item {
  border-bottom: 1px solid #eee;
  padding: 8px 0;
}
.faq-question {
  cursor: pointer;
  font-weight: 550;
  color: #333;
}
.faq-question:hover {
  color: #D4AF37;
}
.faq-answer {
  margin-top: 6px;
  font-size: 13px;
  color: #555;
}
.chat-messages {
  height: 240px;
  overflow-y: auto;
  margin-bottom: 10px;
  padding: 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.chat-messages::-webkit-scrollbar {
  display: none;
}
.chat-message {
  margin-bottom: 8px;
  display: flex;
  justify-content: flex-start;
  padding: 0 8px;
  border-radius: 8px;
  position: relative;
}
.message-content {
  margin-top: 4px;
  font-size: 14px;
  color: #191e2a;
}
.message-container.admin {
  background-color: white;
  width: 220px;
  padding: 5px 10px;
  border-radius: 10px;
  position: relative;
  left: -18px;
  text-align:left
}
.message-container.user {
  background-color: white;
  width: 220px;
  padding: 5px 10px;
  border-radius: 10px;
  position: relative;
  left: 18px;
}
.msg-time {
  font-size: x-small;
  color: gray;
}
.chat-input {
  position: absolute;
  bottom: 12px;
  width: calc(100% - 24px);
  display: flex;
  gap: 6px;
}
.chat-input input {
  flex: 1;
  padding: 6px;
  font-family: 'Vazirmatn';
  border-radius: 5px;
  border: none;
}
.chat-input button {
  padding: 6px 14px;
  cursor: pointer;
  font-family: 'Vazirmatn';
  font-weight: bold;
  border-radius: 5px;
  border: none;
  background-color: #A89F91;
  color: white;
}
.chat-input button:hover {
  background-color: #D4AF37;
}
.support-btn-container{
  display: flex;
  position: absolute;
  bottom: 12px;
  left: 12px;
  width: calc(100% - 24px);
  justify-content: space-between;
}
.support-chat-btn, .support-call-btn {
  position: relative;
  width: calc(50% - 6px);
  padding: 0.4rem 1rem;
  font-size: medium;
  font-weight: 500;
  background-color: #A89F91;
  color: white;
  font-family: 'Vazirmatn';
  border: none;
  border-radius: 10px;
  cursor: pointer;
}
.support-call-btn a {
  width: 100%;
  text-decoration: none;
  color: white;
}
.support-chat-btn:hover {
  background-color: #D4AF37;
}
.support-call-btn:hover {
  background-color: #49d437;
}
.msg-time {
  font-size: x-small;
  color: gray;
}
.new-message-badge {
  position: absolute;
  bottom: 60px;
  left: 10px;
  background: #d4af37;
  color: #000;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(0,0,0,0.25);
  transition: opacity .2s, transform .2s;
  z-index: 1;
}
.new-message-badge.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

/* ===== TIMER ===== */
.timer-box {
  display: flex;
  position: absolute;
  left: 2rem;
  top: 1.5rem;
  background: crimson;
  width: 80px;
  border-radius: 4px;
  gap: 8px;
  font-size: 14px;
  font-weight: bold;
  color: white;
  direction: ltr;
}
.timer-label {
  color: #191E2A;
}
.timer-countdown {
  position: relative;
  left: 0.5rem;
  font-family: 'Vazirmatn';
  text-align: end;
  padding: 4px 0px;
}

/* ===== WELCOME NOTIFICATION BUBBLE ===== */
.welcome-notification {
  position: fixed;
  bottom: 100px;
  left: 20px;
  background: #F8F6F3;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 15px;
  padding: 18px 22px;
  max-width: 340px;
  z-index: 9998;
  direction: rtl;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  font-family: 'Vazirmatn', sans-serif;
}
.welcome-notification.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.welcome-notification .close-notification {
  position: absolute;
  top: 8px;
  left: 12px;
  background: none;
  border: none;
  font-size: 20px;
  color: #A89F91;
  cursor: pointer;
  transition: color 0.3s ease;
  padding: 0;
  line-height: 1;
}
.welcome-notification .close-notification:hover {
  color: #D4AF37;
}
.welcome-notification .notification-icon {
  display: inline-block;
  margin-left: 8px;
  font-size: 20px;
  color: #D4AF37;
}
.welcome-notification .notification-text {
  color: #191E2A;
  font-size: 14px;
  line-height: 1.8;
  padding-left: 20px;
}
.welcome-notification .notification-text .highlight {
  color: #D4AF37;
  font-weight: bold;
}
.welcome-notification .notification-text .phone-number {
  color: #D4AF37;
  font-weight: bold;
  text-decoration: none;
  direction: ltr;
  display: inline-block;
  font-size: 16px;
}
.welcome-notification .notification-text .phone-number:hover {
  color: #A67C52;
  text-decoration: underline;
}
.welcome-notification .notification-text .scroll-hint {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #A89F91;
}

@media (max-width: 767px) {
  .welcome-notification {
    bottom: 140px;
    left: 16px;
    right: 16px;
    max-width: none;
    padding: 14px 18px;
  }
  .welcome-notification .notification-text {
    font-size: 13px;
    padding-left: 10px;
  }
  .welcome-notification .notification-text .phone-number {
    font-size: 14px;
  }
}