/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  padding: 9px 20px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .15);
  opacity: 0;
  transition: opacity .2s;
}

.btn:hover::after {
  opacity: 1;
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}

.btn-outline:hover {
  background: var(--blue3);
}

.btn-primary {
  background: linear-gradient(135deg, var(--navy), var(--blue2));
  color: #fff;
  box-shadow: 0 4px 14px rgba(26, 79, 191, .3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26, 79, 191, .38);
}

.btn-green {
  background: linear-gradient(135deg, var(--green), var(--green2));
  color: #fff;
  box-shadow: 0 4px 14px rgba(5, 150, 105, .25);
}

.btn-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(5, 150, 105, .32);
}

.btn-white {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 4px 20px rgba(255, 255, 255, .2);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 255, 255, .28);
}

.btn-lg {
  padding: 13px 30px;
  font-size: 15px;
  border-radius: 11px;
}

.btn-ghost {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .25);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .22);
}

/* ── SIDE BUTTONS ── */
.side-cta {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 190;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.side-btn {
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  border: none;
  padding: 22px 12px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .3px;
  transition: all .25s;
  border-radius: 0 12px 12px 0;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
}

.sb-navy {
  background: var(--navy);
  color: #fff;
  box-shadow: 5px 0 20px rgba(14, 42, 92, .25);
}

.sb-navy:hover {
  background: var(--blue2);
  padding-right: 18px;
}

.sb-green {
  background: var(--green2);
  color: #fff;
  box-shadow: 5px 0 20px rgba(5, 150, 105, .25);
}

.sb-green:hover {
  background: var(--green);
  padding-right: 18px;
}

/* ── CHATBOT ── */
.chat-fab {
  position: fixed;
  bottom: 30px;
  left: 26px;
  z-index: 300;
}

.chat-toggle {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--blue2));
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 30px rgba(14, 42, 92, .4);
  transition: transform .2s;
  position: relative;
}

.chat-toggle:hover {
  transform: scale(1.08);
}

.chat-ping-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--blue2);
  animation: ping 2.5s infinite;
  opacity: 0;
}

.chat-ping {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #10B981;
  border: 2.5px solid #fff;
}

.chat-tip {
  position: absolute;
  bottom: 72px;
  left: 0;
  background: var(--dark);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 10px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: all .25s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
}

.chat-tip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 22px;
  border: 6px solid transparent;
  border-top-color: var(--dark);
}

.chat-fab:hover .chat-tip {
  opacity: 1;
  transform: none;
}

.chat-win {
  position: fixed;
  bottom: 106px;
  left: 26px;
  width: 380px;
  max-height: 560px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 24px 80px rgba(14, 42, 92, .2), 0 0 0 1px rgba(14, 42, 92, .07);
  z-index: 300;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom left;
  transform: scale(.88) translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: all .35s cubic-bezier(.34, 1.56, .64, 1);
}

.chat-win.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.cw-head {
  background: linear-gradient(135deg, var(--navy), var(--blue2));
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 13px;
}

.cw-av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cw-info h3 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.cw-info p {
  font-size: 12px;
  color: rgba(255, 255, 255, .7);
  display: flex;
  align-items: center;
  gap: 5px;
}

.online {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6EE7B7;
  display: inline-block;
}

.cw-close {
  margin-right: auto;
  background: rgba(255, 255, 255, .15);
  border: none;
  color: #fff;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.cw-close:hover {
  background: rgba(255, 255, 255, .28);
}

.cw-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: #F8FAFF;
}

.cw-msgs::-webkit-scrollbar {
  width: 4px;
}

.cw-msgs::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 2px;
}

.msg {
  max-width: 85%;
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.75;
  animation: slideIn .3s ease;
}

.msg.bot {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--dark);
  align-self: flex-start;
  border-radius: 4px 14px 14px 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

.msg.user {
  background: var(--blue);
  color: #fff;
  align-self: flex-end;
  border-radius: 14px 4px 14px 14px;
}

.typing-msg {
  background: #fff;
  border: 1px solid var(--border);
  align-self: flex-start;
  border-radius: 4px 14px 14px 14px;
  padding: 12px 16px;
}

.dots {
  display: flex;
  gap: 4px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94A3B8;
  animation: dotpulse 1.2s infinite;
}

.dot:nth-child(2) {
  animation-delay: .2s;
}

.dot:nth-child(3) {
  animation-delay: .4s;
}

.cw-quick {
  padding: 8px 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  background: #fff;
  border-top: 1px solid var(--border);
}

.qbtn {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all .2s;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
}

.qbtn:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.cw-input-row {
  display: flex;
  padding: 11px 13px;
  gap: 8px;
  background: #fff;
  border-top: 1px solid var(--border);
  align-items: center;
}

.cw-input-row input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 9px 13px;
  font-size: 13px;
  outline: none;
  background: #F8FAFF;
  transition: border-color .2s;
}

.cw-input-row input:focus {
  border-color: var(--blue);
  background: #fff;
}

.cw-send {
  background: var(--blue);
  border: none;
  border-radius: 10px;
  width: 39px;
  height: 39px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s;
}

.cw-send:hover {
  background: var(--navy);
}

/* ── MODALS ── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 40, .7);
  backdrop-filter: blur(6px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.overlay.open {
  opacity: 1;
  pointer-events: all;
}

.mbox {
  background: #fff;
  border-radius: 22px;
  width: 500px;
  max-width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  transform: translateY(20px) scale(.97);
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
  position: relative;
}

.overlay.open .mbox {
  transform: none;
}

.mbox::-webkit-scrollbar {
  width: 4px;
}

.mbox::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 2px;
}

.m-header {
  padding: 1.8rem 1.8rem 0;
}

.m-header h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: .4rem;
}

.m-header p {
  font-size: 13.5px;
  color: var(--gray);
  padding-bottom: 1.3rem;
  border-bottom: 1px solid var(--border);
  line-height: 1.7;
}

.m-body {
  padding: 1.4rem 1.8rem 1.8rem;
}

.m-close-btn {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--light);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--gray);
  transition: all .2s;
}

.m-close-btn:hover {
  background: var(--border);
  color: var(--dark);
}

.mrow {
  margin-bottom: 1rem;
}

.mrow label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 6px;
}

.mrow input, .mrow select, .mrow textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 11px;
  padding: 10px 14px;
  font-size: 13.5px;
  outline: none;
  color: var(--dark);
  background: #FAFBFF;
  transition: all .2s;
}

.mrow input:focus, .mrow select:focus, .mrow textarea:focus {
  border-color: var(--blue2);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .08);
}

.mrow textarea {
  resize: vertical;
  min-height: 90px;
}

.mrow .hint {
  font-size: 11.5px;
  color: var(--gray);
  margin-top: 5px;
}

.mgrid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.m-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: .8rem;
  border-top: 1px solid var(--border);
}

.btn-cancel {
  background: var(--light);
  border: none;
  color: var(--gray);
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
}

.btn-cancel:hover {
  background: var(--border);
}

.btn-submit {
  background: linear-gradient(135deg, var(--navy), var(--blue2));
  border: none;
  color: #fff;
  padding: 10px 28px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 4px 14px rgba(26, 79, 191, .28);
  font-family: 'Vazirmatn', Tahoma, sans-serif;
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(26, 79, 191, .35);
}

.btn-submit-green {
  background: linear-gradient(135deg, var(--green), var(--green2));
}

.success-state {
  text-align: center;
  padding: 2rem;
}

.success-ic {
  width: 70px;
  height: 70px;
  background: var(--green3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
}

.success-state h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: .6rem;
}

.success-state p {
  font-size: 13.5px;
  color: var(--gray);
  line-height: 1.8;
}

/* ── PRODUCT DETAIL MODAL ── */
.pdm-img-wrap {
  width: 100%;
  height: 190px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.2rem;
  position: relative;
}

.pdm-img-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdm-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.pdm-section {
  margin-bottom: 1.2rem;
}

.pdm-section h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pdm-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.pdm-list li {
  font-size: 13px;
  color: var(--mid);
  padding-right: 18px;
  position: relative;
  line-height: 1.7;
}

.pdm-list li::before {
  content: '';
  position: absolute;
  right: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green2);
}

.pdm-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pdm-tag {
  background: var(--light);
  border-radius: 7px;
  padding: 4px 13px;
  font-size: 12px;
  color: var(--mid);
  font-weight: 600;
  border: 1px solid var(--border);
}

.pdm-sizes {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pdm-size {
  background: var(--blue3);
  color: var(--blue);
  border-radius: 8px;
  padding: 5px 14px;
  font-size: 12.5px;
  font-weight: 700;
}

/* ── DOWNLOAD BUTTON ── */
.download-fab {
  position: fixed;
  bottom: 30px;
  right: 26px;
  z-index: 300;
}

.download-btn {
  height: 62px;
  padding: 0 24px;
  border-radius: 31px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 30px rgba(217, 119, 6, .4);
  transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
  color: #fff;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
}

.download-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 40px rgba(217, 119, 6, .55);
}

.download-btn:active {
  transform: translateY(-1px) scale(0.98);
}

.download-btn .dl-icon {
  animation: bounce-down 2s infinite ease-in-out;
  display: inline-flex;
}

@keyframes bounce-down {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

