/* ==========================================================================
   FILE 4 OF 10: styles-modals.css (100% CENTER-LOCKED MOBILE PRODUCT PAGE)
   YAADEIN FOREVER - ZERO HORIZONTAL OVERFLOW, MEESHO-STYLE SQUARE PHOTO
   SLIDER, MOBILE BOTTOM-SHEETS, SIZE COMPARISON & CHECKOUT
   ========================================================================== */

@keyframes modalPopIn {
  0% { opacity: 0; transform: translateY(18px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes mobileSheetSlideUp {
  0% { opacity: 0; transform: translateY(100%); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes stepPulse {
  0% { box-shadow: 0 0 0 0 rgba(244, 51, 151, 0.55); transform: scale(1); }
  70% { box-shadow: 0 0 0 8px rgba(244, 51, 151, 0); transform: scale(1.06); }
  100% { box-shadow: 0 0 0 0 rgba(244, 51, 151, 0); transform: scale(1); }
}

@keyframes confettiFall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ==========================================================================
   1. MEESHO-STYLE PRODUCT DETAIL MODAL (100% LOCKED WIDTH ON MOBILE)
   ========================================================================== */
.full-page-modal {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100vw;
  background: #f4f4f8;
  z-index: 1500;
  overflow-y: auto;
  overflow-x: hidden !important;
  display: none;
  padding-bottom: 70px;
}

.full-page-modal.open,
.full-page-modal.active {
  display: block;
  animation: modalPopIn 0.2s ease-out;
}

.modal-sticky-topbar,
.pd-sticky-header-bar {
  position: sticky;
  top: 0;
  z-index: 25;
  width: 100%;
  max-width: 100vw;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  color: var(--text-dark);
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.back-btn,
.pd-back-btn,
.share-wa-top-btn {
  background: #f3f4f7;
  color: var(--text-dark);
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 800;
  border: 1px solid var(--border-light);
  cursor: pointer;
  flex-shrink: 0;
}

.breadcrumb-trail {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  text-align: center;
}

/* CRITICAL FIX: minmax(0, 1fr) prevents children from stretching mobile window */
.meesho-pd-container,
.pd-body-container {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 0 0 74px;
  overflow-x: hidden;
}

/* ==========================================================================
   2. CENTER SWIPEABLE PRODUCT IMAGE SLIDER (MEESHO / FLIPKART RATIO)
   ========================================================================== */
.pd-gallery-column {
  background: #ffffff;
  padding: 10px 12px 14px;
  border-bottom: 1px solid var(--border-light);
  width: 100%;
  min-width: 0;
  max-width: 100vw;
  overflow: hidden;
}

.pd-swipe-stage,
.pd-carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 330px;
  aspect-ratio: 1 / 1;
  height: auto;
  margin: 0 auto;
  background: #f8f9fb;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid var(--border-light);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  touch-action: pan-y;
  user-select: none;
}

.pd-swipe-stage img,
.pd-carousel-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease;
}

.slider-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #1e1e24;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
  box-shadow: 0 3px 10px rgba(0,0,0,0.22);
  cursor: pointer;
}

.slider-nav-arrow.prev { left: 8px; }
.slider-nav-arrow.next { right: 8px; }

.printed-slots-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.82);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 99px;
  z-index: 4;
}

.cover-text-overlay {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(35, 6, 25, 0.9);
  color: var(--royal-gold-bright);
  font-family: 'Playfair Display', serif;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 99px;
  border: 1.5px solid var(--royal-gold);
  white-space: nowrap;
  pointer-events: none;
  display: none;
  z-index: 5;
}

.dimension-arrows-badge {
  position: absolute;
  bottom: 6px;
  left: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.88);
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 7px;
  font-size: 0.65rem;
  font-weight: 700;
  text-align: center;
  z-index: 4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pd-slider-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}

.slider-dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: #d0d4dc;
  transition: all 0.2s ease;
  cursor: pointer;
}

.slider-dot.active {
  width: 22px;
  background: var(--meesho-pink);
}

.pd-thumbs-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  overflow-x: auto;
  max-width: 100%;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.pd-thumbs-row::-webkit-scrollbar { display: none; }

.pd-thumb-item {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--border-light);
  cursor: pointer;
  flex-shrink: 0;
}

.pd-thumb-item.active {
  border-color: var(--meesho-pink);
  transform: scale(1.05);
}

.pd-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zoom-lens,
.zoom-result-window {
  display: none;
}

.pd-interactive-tools-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  max-width: 330px;
  margin-left: auto;
  margin-right: auto;
}

.tool-pill-btn {
  flex: 1;
  background: linear-gradient(135deg, #fff0f7, #fce2f1);
  color: var(--meesho-purple);
  border: 1px solid rgba(244, 51, 151, 0.4);
  padding: 8px 6px;
  border-radius: 9px;
  font-size: 0.71rem;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
}

/* ==========================================================================
   3. PRODUCT INFO CARDS (100% CENTERED & CONTAINED WITHIN MOBILE WIDTH)
   ========================================================================== */
.pd-info-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  min-width: 0;
  max-width: 100vw;
  padding: 0 8px;
}

.pd-section-card {
  background: #ffffff;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.pd-product-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #18181b;
  line-height: 1.35;
  flex: 1;
  word-wrap: break-word;
}

.pd-share-mini-btn {
  background: #f5f6f8;
  color: var(--text-dark);
  padding: 5px 9px;
  border-radius: 7px;
  font-size: 0.68rem;
  font-weight: 800;
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}

.pd-price-main-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px;
  margin: 7px 0 6px;
}

.pd-current-price { font-size: 1.4rem; font-weight: 900; color: #18181b; }
.pd-mrp-strike { font-size: 0.82rem; color: var(--text-muted); text-decoration: line-through; }
.pd-discount-pct {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--bachat-green);
  background: var(--bachat-green-bg);
  padding: 2px 7px;
  border-radius: 5px;
}

.pd-meesho-verify-strip {
  background: linear-gradient(90deg, #fff5fa, #fdf2f8);
  border: 1px dashed var(--meesho-pink);
  border-radius: 9px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.74rem;
  margin-bottom: 8px;
}

.meesho-verify-btn {
  background: var(--meesho-purple);
  color: #ffffff;
  font-size: 0.67rem;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 99px;
  white-space: nowrap;
}

.pd-prepaid-discount-bar {
  background: var(--bachat-green-bg);
  border: 1px solid rgba(3, 141, 99, 0.35);
  color: #02593f;
  padding: 8px 10px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  margin-bottom: 8px;
}

.prepaid-icon { font-size: 1.15rem; flex-shrink: 0; }

.pd-rating-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 6px;
  border-top: 1px solid #f0f2f5;
}

.pd-rating-meta { font-size: 0.72rem; color: var(--text-muted); font-weight: 600; }
.variant-label { display: block; font-size: 0.78rem; font-weight: 800; margin-bottom: 6px; color: var(--text-dark); }

.variant-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.variant-pill-btn {
  padding: 6px 11px;
  border-radius: 99px;
  border: 1.5px solid #cfd4dc;
  background: #ffffff;
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
}

.variant-pill-btn.active {
  background: var(--meesho-pink-light);
  color: var(--meesho-pink);
  border-color: var(--meesho-pink);
  font-weight: 800;
}

/* Visual Size Comparison Chart */
.yf-size-compare-card {
  background: #f8f9fc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 10px;
  padding: 8px;
  margin: 6px 0 8px;
  width: 100%;
  overflow: hidden;
}

.yf-size-visual-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4px;
  padding: 8px 2px 2px;
}

.yf-size-rect {
  border: 2px solid #6b114d;
  background: linear-gradient(135deg, #fff0f7, #fce2f1);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #3b0a2a;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 1;
}

.yf-size-rect.active {
  background: linear-gradient(135deg, #3b0a2a, #f43397);
  color: #ffd54f;
  border-color: #d4af37;
}

/* Horizontal Cover Themes Strip Contained Safely */
.themes-horizontal-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  width: 100%;
  max-width: 100%;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.themes-horizontal-strip::-webkit-scrollbar { display: none; }

.theme-thumb-btn {
  min-width: 60px;
  padding: 6px 4px;
  border-radius: 9px;
  border: 1.5px solid var(--border-light);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 0.62rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

.theme-thumb-btn.active {
  border-color: var(--meesho-pink);
  background: var(--meesho-pink-light);
}

.theme-color-swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.15);
}

.pd-cover-text-box {
  margin-top: 10px;
  background: var(--royal-cream);
  padding: 10px;
  border-radius: 10px;
  border: 1.5px solid var(--royal-gold);
}

.pd-cover-text-box label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 5px;
  color: var(--meesho-maroon);
}

.pd-cover-text-box input {
  width: 100%;
  padding: 8px 10px;
  border: 1.5px solid #cbd0d8;
  border-radius: 8px;
  font-size: 0.8rem;
  outline: none;
}

.deliv-row {
  background: #fdfefe;
  border: 1px solid #cbe9dc;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 0.74rem;
  margin: 6px 0;
  color: #038d63;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.text-link-btn { color: var(--meesho-pink); font-weight: 800; font-size: 0.74rem; cursor: pointer; white-space: nowrap; }
.pd-three-trust-badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.pd-trust-pill {
  background: #f8f9fc;
  border: 1px solid var(--border-light);
  padding: 6px 3px;
  border-radius: 7px;
  font-size: 0.64rem;
  font-weight: 700;
  text-align: center;
}

.highlights-top-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.highlights-top-bar h3 { font-size: 0.85rem; }
.copy-share-btn {
  background: var(--meesho-pink-light);
  color: var(--meesho-purple);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 6px;
  cursor: pointer;
}

.highlights-two-col-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.hl-item {
  background: #fafbfc;
  padding: 7px 8px;
  border-radius: 7px;
  border: 1px solid #eef0f4;
  font-size: 0.7rem;
  word-wrap: break-word;
}
.hl-item span { display: block; color: var(--text-muted); font-size: 0.63rem; }

.pd-rating-summary-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0 10px;
  border-bottom: 1px solid #f0f2f5;
  margin-bottom: 8px;
}

.rating-big-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--bachat-green-bg);
  color: var(--bachat-green);
  border: 2px solid var(--bachat-green);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rating-big-circle strong { font-size: 0.9rem; font-weight: 900; }
.rating-big-circle small { font-size: 0.58rem; font-weight: 700; }
.rating-bars-col { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.r-bar-line { display: flex; align-items: center; gap: 6px; font-size: 0.66rem; color: var(--text-muted); }
.r-bar-line span:first-child { width: 54px; flex-shrink: 0; }
.r-track { flex: 1; height: 6px; background: #e9ecf2; border-radius: 99px; overflow: hidden; }
.r-fill { height: 100%; background: var(--bachat-green); }
.pd-inline-reviews-list { display: flex; flex-direction: column; gap: 8px; }

/* ==========================================================================
   4. FIXED BOTTOM BAR (GLOWING BUY NOW PULSE)
   ========================================================================== */
.pd-sticky-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  height: 60px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  padding: 8px 12px;
  border-top: 1.5px solid var(--border-light);
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 10px;
  z-index: 1040;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

.pd-add-cart-btn {
  height: 44px;
  background: #ffffff;
  color: #1e1e24;
  border: 2px solid #1e1e24;
  border-radius: 11px;
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.pd-buy-now-btn {
  height: 44px;
  background: linear-gradient(135deg, #f43397, #b81d77);
  color: #ffffff;
  border-radius: 11px;
  font-weight: 800;
  font-size: 0.84rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  animation: buyNowPulse 2.4s infinite ease-in-out;
  cursor: pointer;
}

/* ==========================================================================
   5. NATIVE MOBILE SLIDE-UP BOTTOM SHEETS & CHECKOUT WINDOWS
   ========================================================================== */
.custom-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(6px);
  z-index: 1600;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.custom-modal-backdrop.open,
.custom-modal-backdrop.active { display: flex; }

.custom-modal-box {
  background: #ffffff;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: modalPopIn 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 640px) {
  .custom-modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }
  .custom-modal-box {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 22px 22px 0 0;
    animation: mobileSheetSlideUp 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  }
}

.checkout-modal-wide,
.invoice-modal-box { max-width: 860px; }

.modal-header-bar {
  background: linear-gradient(135deg, var(--meesho-maroon), var(--meesho-purple));
  color: #ffffff;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--royal-gold);
}

.modal-header-bar h3 { font-size: 0.88rem; color: #ffffff; }
.close-modal-x {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal-scroll-body {
  padding: 14px;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
}

.checkout-steps-bar {
  background: #f8f9fc;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}

.c-step { display: flex; align-items: center; gap: 5px; }
.c-step span {
  width: 21px; height: 21px; border-radius: 50%; background: #d5d9e2; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 0.68rem; font-weight: 800;
}
.c-step.active { color: var(--meesho-pink); }
.c-step.active span { background: var(--meesho-pink); }
.c-step.done { color: var(--bachat-green); }
.c-step.done span { background: var(--bachat-green); }
.c-step-line { width: 32px; height: 2px; background: #d5d9e2; }
.c-step-line.active { background: var(--bachat-green); }

.step1-card { background: #ffffff; border: 1px solid var(--border-light); border-radius: 12px; padding: 11px 12px; margin-bottom: 10px; }
.step1-address-text { font-size: 0.76rem; color: var(--text-muted); line-height: 1.4; margin-bottom: 8px; }
.step1-live-delivery-banner { background: var(--bachat-green-bg); color: #02593f; border: 1px solid rgba(3, 141, 99, 0.35); padding: 8px 10px; border-radius: 8px; font-size: 0.74rem; font-weight: 700; margin-bottom: 8px; }
.step1-sale-timer-strip { background: #fff0f5; border: 1px dashed var(--meesho-pink); color: var(--meesho-maroon); padding: 7px 10px; border-radius: 8px; display: flex; align-items: center; justify-content: space-between; font-size: 0.73rem; margin-bottom: 10px; }
.step1-timer-pill { background: var(--urgency-red); color: #ffffff; padding: 2px 7px; border-radius: 5px; font-size: 0.7rem; }
.step1-product-row { display: flex; gap: 10px; align-items: center; }
.step1-product-row img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; border: 1px solid var(--border-light); }
.price-detail-row { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 6px; }
.green-discount-row { color: var(--bachat-green); font-weight: 700; }
.total-order-row { font-size: 0.9rem; color: var(--text-dark); font-weight: 900; }
.step1-savings-footer { margin-top: 8px; background: var(--bachat-green-bg); color: var(--bachat-green); padding: 6px 10px; border-radius: 6px; font-size: 0.73rem; font-weight: 800; text-align: center; }

.step1-sticky-bottom {
  position: sticky; bottom: 0; left: 0; right: 0; height: 60px; background: #ffffff;
  border-top: 1px solid var(--border-light); padding: 6px 14px;
  display: flex; align-items: center; justify-content: space-between; box-shadow: 0 -2px 10px rgba(0,0,0,0.06); z-index: 5;
}
.step1-bottom-left strong { display: block; font-size: 1.06rem; color: var(--text-dark); }
.step1-bottom-left span { font-size: 0.68rem; font-weight: 800; color: var(--meesho-pink); }
.step1-continue-btn { background: linear-gradient(135deg, var(--meesho-pink), var(--meesho-purple)); color: #ffffff; font-weight: 800; font-size: 0.85rem; height: 42px; padding: 0 26px; border-radius: 10px; cursor: pointer; }

.login-promo-strip, .portal-info-banner { background: var(--royal-cream); border: 1px solid var(--royal-gold); color: #5a4200; padding: 9px 11px; border-radius: 9px; font-size: 0.74rem; margin-bottom: 10px; }
.portal-detected-box { background: #f8f9fc; border: 1.5px solid var(--bachat-green); border-radius: 12px; padding: 11px 12px; margin-top: 10px; }
.upsell-combo-banner { background: linear-gradient(90deg, #fff8db, #ffe699); border: 1.5px solid var(--royal-gold); border-radius: 10px; padding: 9px 11px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 0.73rem; }
.upsell-fire { background: var(--urgency-red); color: #fff; font-weight: 800; padding: 2px 6px; border-radius: 4px; font-size: 0.6rem; }
.upsell-toggle-label { background: var(--meesho-maroon); color: var(--royal-gold-bright); padding: 6px 10px; border-radius: 7px; font-weight: 800; display: flex; align-items: center; gap: 5px; cursor: pointer; white-space: nowrap; }

.input-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.field-wrap { margin-bottom: 9px; }
.field-wrap label { display: block; font-size: 0.74rem; font-weight: 700; margin-bottom: 3px; }
.field-wrap input, .field-wrap select, .field-wrap textarea { width: 100%; padding: 9px 11px; border: 1.5px solid #cbd0d8; border-radius: 8px; font-size: 16px; background: #ffffff; }
.sku-preview-banner { background: linear-gradient(90deg, #0f172a, #2d0620); color: var(--royal-gold-bright); padding: 9px 12px; border-radius: 9px; font-size: 0.72rem; display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; border: 1px solid var(--royal-gold); }
.payment-radio-card { display: flex; align-items: flex-start; gap: 8px; padding: 11px; border: 1.5px solid var(--border-light); border-radius: 11px; margin-bottom: 8px; cursor: pointer; background: #ffffff; }
.payment-radio-card.selected { border-color: var(--bachat-green); background: #f4fbf8; }
.pay-radio-content { flex: 1; }
.pay-title-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.77rem; margin-bottom: 3px; }
.recommended-badge { background: var(--bachat-green); color: #fff; font-size: 0.6rem; font-weight: 800; padding: 2px 7px; border-radius: 99px; }
.cod-tag { background: var(--royal-gold-bright); color: #230619; font-size: 0.6rem; font-weight: 800; padding: 2px 7px; border-radius: 99px; }
.pay-Amount-line { font-size: 0.73rem; color: var(--text-muted); }
.green-text { color: var(--bachat-green); font-weight: 700; }
.summary-breakdown-box { background: #f8f9fc; border: 1px solid var(--border-light); border-radius: 9px; padding: 9px 11px; font-size: 0.74rem; margin-bottom: 10px; }
.upi-payment-qr-box { background: #f2fbf7; border: 1.5px solid var(--bachat-green); border-radius: 11px; padding: 11px; margin-bottom: 10px; }
.upi-box-header { display: flex; justify-content: space-between; font-size: 0.75rem; margin-bottom: 8px; }
.qr-and-buttons-flex { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.qr-canvas-holder { background: #ffffff; padding: 6px; border-radius: 8px; border: 1px solid var(--border-light); display: flex; justify-content: center; }
.upi-intent-buttons { flex: 1; min-width: 170px; }
.upi-app-btn { display: block; text-align: center; background: linear-gradient(135deg, #038d63, #047857); color: #ffffff; font-weight: 800; font-size: 0.78rem; padding: 10px; border-radius: 8px; margin-bottom: 5px; }
.upi-small-note { font-size: 0.67rem; color: var(--text-muted); margin-bottom: 4px; }
.confirm-order-master-btn { width: 100%; background: linear-gradient(135deg, var(--meesho-pink), var(--meesho-purple)); color: #ffffff; font-weight: 800; font-size: 0.86rem; padding: 13px; border-radius: 11px; cursor: pointer; }

.photo-uploader-box { background: #ffffff; padding: 12px; border-radius: 12px; border: 2px dashed var(--meesho-purple); text-align: center; }
.photo-counter-header { display: flex; justify-content: space-between; font-size: 0.73rem; margin-bottom: 5px; }
.progress-bar-track { height: 8px; background: #e9ecf2; border-radius: 99px; overflow: hidden; margin-bottom: 8px; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--meesho-pink), var(--bachat-green)); transition: width 0.25s ease; }
.upload-photos-big-btn { display: block; width: 100%; text-align: center; background: linear-gradient(135deg, var(--meesho-purple), var(--meesho-maroon)); color: #ffffff; font-weight: 800; font-size: 0.78rem; padding: 11px; border-radius: 9px; cursor: pointer; }
.upload-helper-note { font-size: 0.67rem; color: var(--text-muted); margin-top: 5px; }
.blur-warning-alert { margin-top: 8px; background: #fff3cd; color: #856404; border: 1px solid #ffeeba; padding: 8px 10px; border-radius: 8px; font-size: 0.71rem; font-weight: 700; text-align: left; }
.selected-thumbs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 6px; margin-top: 10px; max-height: 220px; overflow-y: auto; }
.thumb-wrap-item { position: relative; height: 68px; border-radius: 8px; overflow: hidden; border: 1.5px solid var(--border-light); }
.thumb-wrap-item img { width: 100%; height: 100%; object-fit: cover; }
.thumb-index-badge { position: absolute; top: 2px; left: 2px; background: rgba(15, 23, 42, 0.86); color: #ffd54f; font-size: 0.58rem; font-weight: 900; padding: 1px 5px; border-radius: 4px; }
.thumb-remove-x { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; background: rgba(217, 28, 36, 0.94); color: #fff; font-size: 0.62rem; font-weight: 800; display: flex; align-items: center; justify-content: center; cursor: pointer; }

.order-success-panel { margin-top: 14px; background: #f4fbf7; border: 2px solid var(--bachat-green); border-radius: 14px; padding: 14px; }
#job-card-canvas { width: 100%; max-width: 440px; border: 2px solid var(--meesho-maroon); border-radius: 8px; background: #fff; margin-top: 6px; }
.post-order-actions-col { display: flex; flex-direction: column; gap: 8px; }
.action-big-btn { padding: 11px 12px; border-radius: 9px; font-weight: 800; font-size: 0.78rem; text-align: center; color: #ffffff; }
.wa-send-btn { background: #25d366; }
.invoice-dl-btn { background: #131921; }

.center-text { text-align: center; }
.flipbook-stage { width: 255px; height: 300px; margin: 10px auto; perspective: 1100px; position: relative; cursor: pointer; }
.wiro-spiral-spine { position: absolute; left: 0; top: 8px; bottom: 8px; width: 16px; background: repeating-linear-gradient(to bottom, #d4af37 0px, #d4af37 6px, #222 6px, #222 12px); border-radius: 4px; z-index: 5; }
.book-page-leaf { width: 100%; height: 100%; background: linear-gradient(135deg, #3b0a2a, #6b114d); color: #ffffff; border: 3px solid var(--royal-gold); border-radius: 6px 14px 14px 6px; padding: 14px 12px 14px 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; transform-origin: left center; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: var(--shadow-md); overflow: hidden; position: relative; transform-style: preserve-3d; }
.book-page-leaf.flipping-anim { transform: rotateY(-180deg) scale(0.96); }
.flip-user-photo-frame { width: 100%; height: 165px; border-radius: 8px; overflow: hidden; border: 2px solid var(--royal-gold-bright); margin: 6px 0; background: #000; flex: 1; }
.flip-user-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.page-tag { background: var(--royal-gold-bright); color: #230619; font-size: 0.62rem; font-weight: 800; padding: 2px 8px; border-radius: 99px; align-self: flex-start; }

.golden-scratch-card { width: 100%; max-width: 320px; margin: 0 auto; border-radius: 16px; overflow: hidden; border: 2.5px solid var(--royal-gold); cursor: pointer; }
.scratch-foil { background: linear-gradient(110deg, #d4af37 20%, #fff1a8 50%, #b8860b 80%); background-size: 200% 100%; animation: goldShimmer 3.5s infinite linear; color: #2b061e; padding: 40px 16px; font-weight: 900; font-size: 0.92rem; }
.scratch-prize { background: #fff9ec; padding: 22px 14px; color: var(--meesho-maroon); }
.coupon-code-pill { display: inline-block; margin-top: 8px; background: var(--bachat-green); color: #fff; font-size: 0.7rem; font-weight: 800; padding: 3px 10px; border-radius: 99px; }

.track-input-group { display: flex; gap: 6px; margin-top: 8px; }
.track-input-group input { flex: 1; padding: 9px 11px; border: 1.5px solid var(--border-light); border-radius: 8px; font-size: 16px; }
.onsite-timeline-card { margin-top: 12px; background: #ffffff; border: 1.5px solid var(--bachat-green); border-radius: 12px; padding: 13px; }
.timeline-step-item { display: flex; align-items: flex-start; gap: 10px; position: relative; padding-bottom: 12px; }
.timeline-step-item:last-child { padding-bottom: 0; }
.tl-dot { width: 21px; height: 21px; border-radius: 50%; background: var(--bachat-green); color: #fff; font-size: 0.65rem; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.tl-dot.pending { background: #d5d9e2; color: #5c5f66; }
.tl-dot.active-pulse { background: var(--meesho-pink); animation: stepPulse 1.4s infinite; }
.tl-content strong { display: block; font-size: 0.78rem; color: var(--text-dark); }
.tl-content small { font-size: 0.68rem; color: var(--text-muted); }
.gst-invoice-paper { padding: 16px; background: #ffffff; color: #000000; font-size: 0.78rem; border: 1px solid #ccc; }
.yf-confetti-piece { position: fixed; top: -10px; width: 10px; height: 14px; z-index: 4000; pointer-events: none; animation: confettiFall 2.6s ease-in forwards; }

@media (min-width: 768px) {
  body:not(.mobile-simulator-active) .meesho-pd-container {
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 16px;
    padding: 14px;
    align-items: start;
  }
  body:not(.mobile-simulator-active) .pd-gallery-column {
    border-radius: 14px;
    border: 1px solid var(--border-light);
    position: sticky;
    top: 56px;
  }
  body:not(.mobile-simulator-active) .pd-sticky-bottom-bar {
    max-width: 980px;
    margin: 0 auto;
    border-radius: 14px 14px 0 0;
  }
}

@media print {
  body * { visibility: hidden; }
  #gst-invoice-modal, #printable-gst-invoice-area, #printable-gst-invoice-area * { visibility: visible; }
  #printable-gst-invoice-area { position: absolute; left: 0; top: 0; width: 100%; border: none; }
  .no-print { display: none !important; }
}