/* Orvellies Enhanced E-Commerce Styling */

/* --- Stock Badges on Product Cards --- */
.stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  margin-top: 6px;
}
.stock-in {
  background: #eafaf1;
  color: #1e7e48;
}
.stock-in:before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #27ae60;
}
.stock-low {
  background: #fff8e6;
  color: #b7791f;
}
.stock-low:before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d69e2e;
}
.stock-out {
  background: #fde8e8;
  color: #c53030;
}
.stock-out:before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e53e3e;
}

/* --- Catalog Filter Controls --- */
.catalog-filters {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 16px rgba(118, 82, 163, 0.05);
}
.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink);
}
.filter-group select, .filter-group input[type="text"] {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  background: #fffdfd;
}
.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 13px;
  user-select: none;
}
.filter-checkbox input {
  accent-color: var(--green);
  width: 16px;
  height: 16px;
}

/* --- Native Checkout Modal --- */
.checkout-modal-content {
  max-width: 650px;
  margin: 0 auto;
}
.checkout-steps {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.step-item {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.step-item.active {
  color: var(--green);
}
.step-item.active .step-num {
  background: var(--green);
  color: white;
}
.step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e7dde9;
  display: inline-grid;
  place-items: center;
  font-size: 11px;
}

.payment-method-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 16px 0;
}
@media (max-width: 600px) {
  .payment-method-cards {
    grid-template-columns: 1fr;
  }
}
.pm-card {
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #ffffff;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.pm-card:hover {
  border-color: #bd9ccf;
}
.pm-card.selected {
  border-color: var(--green);
  background: #fbf5fc;
}
.pm-card input[type="radio"] {
  accent-color: var(--green);
  margin-top: 3px;
}
.pm-card-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 2px;
}
.pm-card-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.mfs-instructions {
  background: #fdf5f8;
  border: 1px solid #f2cfdc;
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
  font-size: 13px;
  line-height: 1.6;
}
.copy-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e3a9c4;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  color: #ad175e;
  margin: 6px 0;
  cursor: pointer;
  transition: background 0.15s;
}
.copy-pill:hover {
  background: #fff0f5;
}
.copy-pill button {
  border: 0;
  background: #ad175e;
  color: white;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
}

.checkout-summary-box {
  background: #f7eff7;
  border-radius: 12px;
  padding: 16px;
  margin: 18px 0;
  border: 1px solid #ebdbe9;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
  color: #493952;
}
.summary-line.total {
  border-top: 1px solid #dfc7db;
  padding-top: 10px;
  margin-top: 8px;
  font-weight: 700;
  font-size: 17px;
  color: var(--green);
}

/* --- Receipt & Confirmation Modal --- */
.receipt-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  margin: 16px 0;
  box-shadow: 0 8px 30px rgba(118, 82, 163, 0.08);
}
.receipt-header-banner {
  text-align: center;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--line);
}
.order-badge-success {
  display: inline-block;
  background: #e6f9ed;
  color: #1b7a43;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 10px;
}
.order-id-display {
  font-size: 24px;
  font-family: var(--serif);
  color: var(--green);
  font-weight: 700;
  letter-spacing: 0.5px;
}
.receipt-action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}
@media (max-width: 500px) {
  .receipt-action-buttons {
    grid-template-columns: 1fr;
  }
}
.btn-email-action {
  background: #7652a3;
  color: white;
  border: 1px solid #623f8f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-email-action:hover {
  background: #623f8f;
}


/* --- Compatibility Matrix Matrix Cards --- */
.compat-matrix-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
@media (max-width: 600px) {
  .compat-matrix-grid {
    grid-template-columns: 1fr;
  }
}
.compat-rule-card {
  padding: 12px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.5;
  border: 1px solid transparent;
}
.compat-safe {
  background: #eefaf3;
  border-color: #c3ebd2;
  color: #176538;
}
.compat-warn {
  background: #fff9e6;
  border-color: #fae49d;
  color: #946200;
}
.compat-avoid {
  background: #fdf0f0;
  border-color: #f7c3c3;
  color: #9e1f1f;
}

/* --- Routine Quiz Bundle Card --- */
.quiz-bundle-card {
  background: linear-gradient(135deg, #fbf2f8 0%, #f6effc 100%);
  border: 1.5px solid #dfc1e5;
  border-radius: 16px;
  padding: 20px;
  margin: 18px 0;
  text-align: left;
}
.quiz-bundle-items {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 12px 0;
}
.quiz-mini-item {
  flex: none;
  width: 110px;
  text-align: center;
  font-size: 11px;
}
.quiz-mini-item img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  background: white;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 4px;
}

/* --- Mobile Bottom Floating Cart --- */
.mobile-cart-floater {
  display: none;
}
@media (max-width: 700px) {
  .mobile-cart-floater {
    display: flex;
    position: fixed;
    bottom: 70px;
    left: 16px;
    right: 16px;
    background: linear-gradient(110deg, #674187, #8e589c);
    color: white;
    border-radius: 30px;
    padding: 12px 20px;
    align-items: center;
    justify-content: space-between;
    z-index: 50;
    box-shadow: 0 8px 24px rgba(103, 65, 135, 0.4);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
}
