/**
 * Pune Plant Store - Farmer & Nursery Wholesale System CSS
 * Dedicated styles for wholesale catalog, tray calculators, and checkout modal
 */

:root {
  --pps-green-deep: #1b4d3e;
  --pps-green-light: #2f765e;
  --pps-green-bg: #f2f8f5;
  --pps-accent-gold: #c85a32;
  --pps-border: #e2e8f0;
  --pps-text: #1e293b;
  --pps-text-muted: #64748b;
}

body.modal-open {
  overflow: hidden;
}

/* Wholesale Header & Badges */
.wholesale-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 9999px;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.wholesale-badge-gold {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.wholesale-badge-green {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.wholesale-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wholesale-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.12);
}

/* Tray Stepper Controls */
/* Tray Stepper Controls - Modern Premium Design */
.tray-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid #e2e8f0;
  border-radius: 0.85rem;
  overflow: hidden;
  background: #f8fafc;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tray-stepper:focus-within {
  border-color: #3f7a1f;
  box-shadow: 0 0 0 3px rgba(63, 122, 31, 0.12);
}

.tray-stepper-btn {
  width: 2.35rem;
  height: 2.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #1e293b;
  font-size: 1.15rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.tray-stepper-btn:hover:not(:disabled) {
  background: #e2e8f0;
  color: #0f172a;
}

.tray-stepper-btn:active:not(:disabled) {
  background: #cbd5e1;
  transform: scale(0.96);
}

.tray-stepper-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.tray-stepper-input {
  width: 3.25rem;
  height: 2.35rem;
  text-align: center;
  font-weight: 800;
  font-size: 0.95rem;
  border: none;
  background: #ffffff;
  outline: none;
  color: #0f172a;
}

/* Modal and Drawer Styles */
.pps-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.pps-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.pps-modal-panel {
  background: #ffffff;
  border-radius: 1rem;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.pps-modal-backdrop.active .pps-modal-panel {
  transform: scale(1);
}

/* Drawer for Cart */
.pps-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
  z-index: 9990;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.pps-drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.pps-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  z-index: 9991;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
}

.pps-drawer.active {
  transform: translateX(0);
}

/* Float WhatsApp Button */
.pps-whatsapp-floating {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 8888;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #25D366;
  color: #ffffff;
  padding: 0.75rem 1.15rem;
  border-radius: 9999px;
  box-shadow: 0 10px 25px -5px rgba(37, 211, 102, 0.45);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pps-whatsapp-floating:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 28px -4px rgba(37, 211, 102, 0.55);
}

.pps-whatsapp-icon {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}

@media (max-width: 640px) {
  .pps-whatsapp-floating span {
    display: none;
  }
  .pps-whatsapp-floating {
    padding: 0.85rem;
    bottom: 4.5rem; /* above mobile navigation bar if present */
  }
}

/* 4 Placecard Gallery Thumbnails & Video Switcher */
.placecard-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.placecard-thumb:hover {
  border-color: #10b981;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.placecard-thumb.active {
  border-color: #047857;
  box-shadow: 0 0 0 2px #a7f3d0, 0 4px 12px rgba(4, 120, 87, 0.2);
}

.placecard-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.placecard-video-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  color: #ffffff;
  font-size: 1.25rem;
}

/* Wholesale Portal Main Media Prev/Next Arrows */
.wholesale-media-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  color: #1c1917;
  font-size: 1.35rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.wholesale-media-arrow.left {
  left: 0.75rem;
}

.wholesale-media-arrow.right {
  right: 0.75rem;
}

.wholesale-media-arrow:hover {
  background-color: #ffffff;
  color: #047857;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

