/* ========== Archive (standard WC) ========== */
li.product.taheri-oos-product .taheri-thumb-wrap {
  position: relative;
  display: block;
  overflow: hidden;
}
li.product.taheri-oos-product .taheri-oos-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 20;
  background: #d50000;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 8px 12px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  pointer-events: none;
  white-space: nowrap;
}
li.product.taheri-oos-product img,
li.product.taheri-oos-product .wp-post-image {
  filter: grayscale(100%) brightness(0.93) contrast(1.03) !important;
}
li.product.taheri-oos-product .price,
li.product.taheri-oos-product .price * {
  opacity: 0.40 !important;
  filter: blur(2px) !important;
}

/* ========== Your custom carousel cards (item-pro) ========== */
article.item-pro.taheri-oos-custom { position: relative; }
article.item-pro.taheri-oos-custom .thumb-pro { position: relative; overflow: hidden; border-radius: 8px; }
article.item-pro.taheri-oos-custom img {
  filter: grayscale(100%) brightness(0.93) contrast(1.03) !important;
}
article.item-pro.taheri-oos-custom .index-prices-pro,
article.item-pro.taheri-oos-custom .index-prices-pro * {
  filter: blur(2px) !important;
}
article.item-pro.taheri-oos-custom .taheri-oos-badge-custom {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 50;
  background: #d50000;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  pointer-events: none;
  white-space: nowrap;
}

/* ========== Single product grayscale ========== */
body.taheri-oos-single-product .woocommerce-product-gallery img,
body.taheri-oos-single-product .woocommerce-product-gallery__image img,
body.taheri-oos-single-product .flex-viewport img {
  filter: grayscale(100%) brightness(0.95) contrast(1.02) !important;
}

/* ========== Modal ========== */
.taheri-oos-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
.taheri-oos-modal-overlay.active { opacity: 1; visibility: visible; }

.taheri-oos-modal-content {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 15px 40px rgba(0,0,0,.3);
  width: 92%;
  max-width: 460px;
  padding: 22px;
  direction: rtl;
  text-align: right;
  transform: scale(.92);
  transition: transform .3s ease;
}
.taheri-oos-modal-overlay.active .taheri-oos-modal-content { transform: scale(1); }

.taheri-oos-modal-header {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f3f3f3;
}
.taheri-oos-welcome-text { font-size: 14px; line-height: 1.9; color: #333; margin: 10px 0 16px; }

.taheri-oos-form-group { margin-bottom: 14px; }
.taheri-oos-form-group label { display:block; margin-bottom: 6px; font-weight: 700; font-size: 13px; color:#555; }

.taheri-oos-form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 14px;
  outline: none;
}
.taheri-oos-modal-footer { display:flex; gap: 10px; margin-top: 16px; }

.taheri-oos-btn {
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  border: 0;
}
.taheri-oos-btn-success { background:#28a745; color:#fff; }
.taheri-oos-btn-secondary { background:#f1f1f1; color:#333; }

.taheri-oos-success-msg {
  display:none;
  background:#d4edda;
  color:#155724;
  border: 1px solid #c3e6cb;
  padding: 16px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.9;
  text-align:center;
}
