/* Dental Sonic Chile — Clean Production Storefront & Payment Gateway Styles */
:root {
  --ds-blue: #238BD4;
  --ds-blue-dark: #10598B;
  --ds-blue-hover: #1B77B8;
  --ds-pay-blue: #2F6DF6;
  --ds-dark: #141414;
  --ds-surface: #F6F7F9;
  --ds-border: #E5E7EB;
  --ds-green: #0E7C5B;
  --ds-green-bg: #E8F7F1;
}

html {
  scroll-behavior: smooth;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}

body {
  color: var(--ds-dark);
  background: #ffffff;
  overflow-x: clip;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

.ds-scroll::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
.ds-scroll::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 999px;
}

/* Countdown bar */
.ds-countdown-bar {
  background: #111318;
  color: #ffffff;
}
.ds-cd-box {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  min-width: 34px;
  padding: 2px 5px;
  text-align: center;
  line-height: 1.05;
}

/* Quantity Breaks cards (Clean Shrine PRO without gaudy effects) */
.ds-qb-card {
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  cursor: pointer;
  position: relative;
}
.ds-qb-card:hover {
  border-color: #93c5fd;
}
.ds-qb-card.active {
  border-color: var(--ds-blue);
  background: #f5faff;
}
.ds-qb-radio {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1.5px solid #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #fff;
}
.ds-qb-card.active .ds-qb-radio {
  border-color: var(--ds-blue);
}
.ds-qb-card.active .ds-qb-radio::after {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--ds-blue);
}
.ds-qb-badge {
  position: absolute;
  top: -10px;
  right: 12px;
  background: var(--ds-blue);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 2px 9px;
  border-radius: 999px;
  text-transform: uppercase;
}

/* Product Features Hotspots */
.ds-hotspot {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--ds-blue);
  color: #fff;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(16, 89, 139, 0.35);
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease, background 0.18s ease;
  z-index: 10;
}
.ds-hotspot.active {
  background: #141414;
  transform: translate(-50%, -50%) scale(1.12);
}

/* Before / After Comparison Slider */
.ds-ba-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  user-select: none;
  touch-action: pan-y;
}
.ds-ba-after {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.ds-ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2.5px;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  z-index: 10;
}
.ds-ba-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--ds-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
  border: 2px solid var(--ds-blue);
}
.ds-ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 20;
  margin: 0;
}

/* Cart Drawer (Exact DentalSonic clean aesthetic) */
.ds-cart-drawer {
  transform: translateX(100%);
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}
.ds-cart-drawer.open {
  transform: translateX(0);
}
.ds-cart-upsell-card {
  background: #ffffff;
  border: 1px solid #eceef2;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.045);
}
.ds-cart-btn-blue {
  background: #238BD4;
  color: #ffffff;
  border-radius: 10px;
  transition: background-color 0.15s ease;
}
.ds-cart-btn-blue:hover {
  background: #1b77b8;
}
.ds-savings-pill {
  background: #E8F7F1;
  color: #0E7C5B;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 11px;
  display: inline-block;
}

/* Comparison table highlight column */
.ds-comp-highlight {
  background: linear-gradient(180deg, #10598B 0%, #238BD4 100%);
  color: #ffffff;
}

/* Shopify-like Checkout Inputs (16px on mobile prevents iOS Safari auto-zoom) */
.chk-input {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  padding: 11px 13px;
  font-size: 16px;
  color: #141414;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
@media (min-width: 640px) {
  .chk-input {
    font-size: 14px;
  }
}
.chk-input:focus {
  outline: none;
  border-color: #238BD4;
  box-shadow: 0 0 0 3px rgba(35, 139, 212, 0.14);
}
.chk-input::placeholder {
  color: #9ca3af;
}

/* Galio-Pay style Payment Gateway Card */
.ds-pay-shell {
  background: #F5F6FA;
  min-height: 100vh;
}
.ds-pay-card {
  background: #ffffff;
  border: 1px solid #e6e8ef;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
}
.ds-pay-method-box {
  border: 1.5px solid #2F6DF6;
  background: #ffffff;
  border-radius: 10px;
  color: #1D4ED8;
}
.ds-pay-timer-box {
  background: #EEF4FF;
  border: 1px solid #DBEAFE;
  border-radius: 12px;
}
.ds-pay-progress-track {
  height: 7px;
  background: #DBEAFE;
  border-radius: 999px;
  overflow: hidden;
}
.ds-pay-progress-fill {
  height: 100%;
  background: #2F6DF6;
  border-radius: 999px;
  transition: width 1s linear;
}
.ds-pay-data-box {
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
}

/* Live pulsing status dot (subtle gateway indicator) */
@keyframes dsSoftPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}
.ds-status-dot {
  animation: dsSoftPulse 1.8s ease-in-out infinite;
}

/* Toast */
@keyframes dsToastIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.ds-toast {
  animation: dsToastIn 0.2s ease forwards;
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.pb-safe {
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
}
