/* ============================================================
   eshop/css/common.css — Shared styles for all eShop themes
   ============================================================ */

/* ── CSS Custom Properties ── */
:root {
  --eshop-primary: #4f46e5;
  --eshop-primary-hover: #4338ca;
  --eshop-accent: #7c3aed;
  --eshop-header-bg: #ffffff;
  --eshop-footer-bg: #1f2937;
  --eshop-body-bg: #f9fafb;
  --eshop-text: #1f2937;
  --eshop-text-muted: #6b7280;
  --eshop-border: #e5e7eb;
  --eshop-success: #10b981;
  --eshop-danger: #ef4444;
  --eshop-warning: #f59e0b;
  --eshop-radius: 0.5rem;
  --eshop-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --eshop-shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.12);
  --eshop-transition: 0.2s ease;
}

/* ── Typography — Inter ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

body.eshop-body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--eshop-text);
  background-color: var(--eshop-body-bg);
  -webkit-font-smoothing: antialiased;
}

/* ── Announcement Bar ── */
.eshop-announcement-bar {
  background: var(--eshop-primary);
  color: #fff;
  text-align: center;
  padding: 0.4rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.eshop-announcement-bar a {
  color: #fff;
  text-decoration: underline;
}

/* ── Product Card ── */
.eshop-product-card {
  border-radius: var(--eshop-radius);
  overflow: hidden;
  transition: transform var(--eshop-transition), box-shadow var(--eshop-transition);
}

.eshop-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--eshop-shadow-lg);
}

.eshop-product-card .card-img-top {
  transition: transform 0.3s ease;
}

.eshop-product-card:hover .card-img-top {
  transform: scale(1.03);
}

/* ── Rating Stars ── */
.eshop-star-rating .fa-star {
  font-size: 0.85rem;
}

.eshop-star-rating .fa-star.text-warning {
  color: #f59e0b !important;
}

/* ── Hover lift utility ── */
.hover-lift {
  transition: transform var(--eshop-transition), box-shadow var(--eshop-transition);
}

.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: var(--eshop-shadow-lg);
}

/* ── Quick link cards ── */
.eshop-link-card {
  transition: transform var(--eshop-transition), box-shadow var(--eshop-transition);
  border-radius: var(--eshop-radius);
}

.eshop-link-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--eshop-shadow-lg);
}

/* ── Cart Sidebar Drawer ── */
.eshop-cart-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 380px;
  max-width: 90vw;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  z-index: 1060;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.eshop-cart-drawer.open {
  right: 0;
}

.eshop-cart-drawer-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--eshop-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.eshop-cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
}

.eshop-cart-drawer-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--eshop-border);
}

.eshop-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1055;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.eshop-cart-overlay.show {
  opacity: 1;
  pointer-events: all;
}

/* ── Mobile Bottom Navigation ── */
.eshop-mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--eshop-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.4rem 0;
  z-index: 1040;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
}

.eshop-mobile-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--eshop-text-muted);
  font-size: 0.65rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  transition: color var(--eshop-transition);
}

.eshop-mobile-nav a.active,
.eshop-mobile-nav a:hover {
  color: var(--eshop-primary);
}

.eshop-mobile-nav a i {
  font-size: 1.15rem;
  margin-bottom: 0.15rem;
}

/* Hide mobile nav on desktop */
@media (min-width: 768px) {
  .eshop-mobile-nav {
    display: none;
  }
}

/* Body padding for mobile nav */
@media (max-width: 767.98px) {
  body.eshop-body {
    padding-bottom: 60px;
  }
}

/* ── Order Tracking Timeline ── */
.eshop-timeline {
  padding: 0 1rem;
}

.eshop-timeline::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: var(--eshop-border);
  z-index: 0;
}

.eshop-timeline-step {
  position: relative;
  z-index: 1;
}

.eshop-timeline-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #fff;
  margin: 0 auto;
}

.eshop-timeline-dot.bg-light {
  color: var(--eshop-text-muted);
}

/* ── Responsive Utilities ── */
@media (max-width: 575.98px) {
  .eshop-product-card .card-body {
    padding: 0.75rem;
  }

  .eshop-product-card h6 {
    font-size: 0.85rem;
  }
}

/* ── Page content prose ── */
.eshop-page-content {
  line-height: 1.75;
}

.eshop-page-content h2,
.eshop-page-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.eshop-page-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--eshop-radius);
}

/* ── Badges ── */
.badge.bg-success-subtle {
  background-color: #d1fae5;
}

/* ── [x-cloak] hide until Alpine init ── */
[x-cloak] {
  display: none !important;
}


/* ============================================================
   ENHANCED UI — Blinkit-level polish
   ============================================================ */

/* ── Skeleton Loader ── */
.skeleton {
  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--eshop-radius);
}

.skeleton-text {
  height: 14px;
  margin-bottom: 8px;
  border-radius: 4px;
}

.skeleton-text.w-75 { width: 75%; }
.skeleton-text.w-50 { width: 50%; }
.skeleton-text.w-25 { width: 25%; }

.skeleton-img {
  aspect-ratio: 1;
  border-radius: var(--eshop-radius);
}

.skeleton-card {
  border-radius: var(--eshop-radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--eshop-border);
}

.skeleton-card .skeleton-img {
  width: 100%;
  height: 0;
  padding-bottom: 100%;
}

.skeleton-card .skeleton-body {
  padding: 12px;
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}


/* ── Toast Notifications ── */
.eshop-toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  max-width: 360px;
  width: calc(100% - 32px);
}

.eshop-toast {
  pointer-events: all;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--eshop-text);
  animation: toast-in 0.35s ease forwards;
  overflow: hidden;
  position: relative;
}

.eshop-toast.removing {
  animation: toast-out 0.3s ease forwards;
}

.eshop-toast-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.eshop-toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 0 0 10px 10px;
  animation: toast-progress linear forwards;
}

.eshop-toast.success .eshop-toast-icon {
  background: #dcfce7;
  color: var(--eshop-success);
}
.eshop-toast.success .eshop-toast-progress {
  background: var(--eshop-success);
}

.eshop-toast.error .eshop-toast-icon {
  background: #fee2e2;
  color: var(--eshop-danger);
}
.eshop-toast.error .eshop-toast-progress {
  background: var(--eshop-danger);
}

.eshop-toast.info .eshop-toast-icon {
  background: #dbeafe;
  color: #3b82f6;
}
.eshop-toast.info .eshop-toast-progress {
  background: #3b82f6;
}

.eshop-toast.warning .eshop-toast-icon {
  background: #fef3c7;
  color: var(--eshop-warning);
}
.eshop-toast.warning .eshop-toast-progress {
  background: var(--eshop-warning);
}

.eshop-toast-close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--eshop-text-muted);
  cursor: pointer;
  padding: 0 2px;
  font-size: 1rem;
  line-height: 1;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.eshop-toast-close:hover {
  opacity: 1;
}

@keyframes toast-in {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

@keyframes toast-out {
  from { transform: translateX(0);    opacity: 1; }
  to   { transform: translateX(100%); opacity: 0; }
}

@keyframes toast-progress {
  from { width: 100%; }
  to   { width: 0%; }
}


/* ── Scroll Reveal ── */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-on-scroll.reveal-left {
  transform: translateX(-20px);
}

.reveal-on-scroll.reveal-left.revealed {
  transform: translateX(0);
}

.reveal-on-scroll.reveal-right {
  transform: translateX(20px);
}

.reveal-on-scroll.reveal-right.revealed {
  transform: translateX(0);
}

.reveal-on-scroll.reveal-scale {
  transform: scale(0.95);
}

.reveal-on-scroll.reveal-scale.revealed {
  transform: scale(1);
}


/* ── Lazy Image Blur-Up ── */
.lazy-blur {
  filter: blur(10px);
  transition: filter 0.4s ease;
}

.lazy-blur.loaded {
  filter: blur(0);
}


/* ── Floating Action Buttons ── */
.eshop-fab {
  position: fixed;
  z-index: 1030;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-size: 1.4rem;
  line-height: 1;
}

.eshop-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.eshop-fab:active {
  transform: scale(0.95);
}

.eshop-fab-whatsapp {
  bottom: 80px;
  right: 16px;
  background: #25D366;
  color: #fff;
}

.eshop-fab-whatsapp:hover {
  color: #fff;
}

.eshop-fab-scroll-top {
  bottom: 80px;
  right: 16px;
  background: var(--eshop-primary);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.2s ease;
}

.eshop-fab-scroll-top:hover {
  color: #fff;
}

.eshop-fab-scroll-top.visible {
  opacity: 1;
  pointer-events: all;
}

@media (min-width: 768px) {
  .eshop-fab-whatsapp {
    bottom: 24px;
  }

  .eshop-fab-scroll-top {
    bottom: 24px;
    right: 80px;
  }
}


/* ── Glass Card ── */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--eshop-radius);
}


/* ── Gradient Text ── */
.text-gradient {
  background: linear-gradient(135deg, var(--eshop-primary), var(--eshop-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ── Pulse Animation (stock alert) ── */
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--eshop-danger);
  display: inline-block;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  50%      { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}


/* ── Offer Badge ── */
.offer-badge {
  animation: offer-bounce 2s ease-in-out infinite;
}

@keyframes offer-bounce {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}

.offer-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--eshop-danger);
  color: #fff;
  padding: 4px 12px 4px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
  z-index: 5;
}


/* ── Price Highlight ── */
.price-highlight {
  animation: price-pop 0.3s ease;
}

@keyframes price-pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}


/* ── Horizontal Scroll Section ── */
.hscroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 12px;
  padding-bottom: 8px;
}

.hscroll::-webkit-scrollbar {
  display: none;
}

.hscroll > * {
  scroll-snap-align: start;
  flex-shrink: 0;
}


/* ── Deal Card ── */
.deal-card {
  background: linear-gradient(135deg, var(--eshop-primary), var(--eshop-accent));
  color: #fff;
  border-radius: 16px;
  padding: 20px;
  min-width: 260px;
  position: relative;
  overflow: hidden;
}

.deal-card::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.deal-card .deal-timer {
  display: flex;
  gap: 6px;
}

.deal-card .deal-timer-unit {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 4px 8px;
  text-align: center;
  min-width: 40px;
  font-weight: 700;
  font-size: 0.85rem;
}

.deal-card .deal-timer-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  opacity: 0.8;
}


/* ── Countdown Timer ── */
.countdown {
  display: flex;
  gap: 4px;
  font-weight: 700;
}

.countdown-unit {
  background: var(--eshop-danger);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  min-width: 28px;
  text-align: center;
}

.countdown-separator {
  color: var(--eshop-danger);
  font-weight: 700;
  line-height: 1.6;
}


/* ── Free Delivery Progress ── */
.delivery-progress {
  height: 6px;
  border-radius: 3px;
  background: var(--eshop-border);
  overflow: hidden;
}

.delivery-progress-bar {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--eshop-success), #34d399);
  transition: width 0.5s ease;
}


/* ── Cart Shake ── */
@keyframes cart-shake {
  0%, 100% { transform: rotate(0); }
  25%      { transform: rotate(-8deg); }
  75%      { transform: rotate(8deg); }
}

.cart-shake {
  animation: cart-shake 0.4s ease;
}


/* ── Confetti ── */
@keyframes confetti-fall {
  0%   { transform: translateY(-100vh) rotate(0); opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.confetti-piece {
  position: fixed;
  width: 10px;
  height: 10px;
  top: -10px;
  z-index: 9999;
  pointer-events: none;
  animation: confetti-fall 3s ease-in forwards;
}


/* ── Step Indicator (Checkout) ── */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 1rem;
}

.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  border: 2px solid var(--eshop-border);
  color: var(--eshop-text-muted);
  background: #fff;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.step-dot.active {
  background: var(--eshop-primary);
  color: #fff;
  border-color: var(--eshop-primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
}

.step-dot.done {
  background: var(--eshop-success);
  color: #fff;
  border-color: var(--eshop-success);
}

.step-line {
  flex: 1;
  height: 2px;
  background: var(--eshop-border);
  transition: background 0.3s ease;
}

.step-line.done {
  background: var(--eshop-success);
}

.step-label {
  font-size: 0.7rem;
  color: var(--eshop-text-muted);
  margin-top: 4px;
  text-align: center;
}

.step-label.active {
  color: var(--eshop-primary);
  font-weight: 600;
}


/* ── Animated Checkmark ── */
.checkmark-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #dcfce7;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: check-pop 0.5s ease;
}

@keyframes check-pop {
  0%   { transform: scale(0); }
  50%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.checkmark-circle svg {
  animation: check-draw 0.5s 0.3s ease forwards;
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
}

@keyframes check-draw {
  to { stroke-dashoffset: 0; }
}


/* ── Sticky Add-to-Cart Bar (Mobile) ── */
.sticky-atc-bar {
  position: fixed;
  bottom: 60px;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--eshop-border);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1035;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
}

.sticky-atc-bar.visible {
  transform: translateY(0);
}

.sticky-atc-bar .sticky-atc-price {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--eshop-text);
}

.sticky-atc-bar .sticky-atc-name {
  font-size: 0.75rem;
  color: var(--eshop-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

@media (min-width: 768px) {
  .sticky-atc-bar {
    display: none;
  }
}


/* ── Qty Stepper (inline on card) ── */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--eshop-primary);
  border-radius: 8px;
  overflow: hidden;
}

.qty-stepper button {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--eshop-primary);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.qty-stepper button:active {
  background: rgba(79, 70, 229, 0.1);
}

.qty-stepper button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.qty-stepper span {
  min-width: 24px;
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--eshop-primary);
  user-select: none;
}


/* ── Trust Badges ── */
.trust-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--eshop-text-muted);
}

.trust-badge i {
  font-size: 1rem;
  color: var(--eshop-success);
}


/* ── Marquee (announcement) ── */
.marquee {
  overflow: hidden;
  white-space: nowrap;
}

.marquee-inner {
  display: inline-block;
  animation: marquee-scroll 20s linear infinite;
}

.marquee:hover .marquee-inner {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}


/* ── Mobile Bottom Sheet Filter ── */
.bottom-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1049;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.bottom-sheet-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 1050;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  max-height: 70vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.bottom-sheet.open {
  transform: translateY(0);
}

.bottom-sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: #d1d5db;
  margin: 8px auto 16px;
}

.bottom-sheet-header {
  padding: 0 16px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--eshop-border);
}

.bottom-sheet-body {
  padding: 16px;
}


/* ── Utility: Staggered animation children ── */
.stagger-children > *:nth-child(1)  { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2)  { animation-delay: 0.10s; }
.stagger-children > *:nth-child(3)  { animation-delay: 0.15s; }
.stagger-children > *:nth-child(4)  { animation-delay: 0.20s; }
.stagger-children > *:nth-child(5)  { animation-delay: 0.25s; }
.stagger-children > *:nth-child(6)  { animation-delay: 0.30s; }
.stagger-children > *:nth-child(7)  { animation-delay: 0.35s; }
.stagger-children > *:nth-child(8)  { animation-delay: 0.40s; }
.stagger-children > *:nth-child(9)  { animation-delay: 0.45s; }
.stagger-children > *:nth-child(10) { animation-delay: 0.50s; }


/* ── Utility: Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .skeleton {
    animation: none;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}


/* ============================================================
   Shared product-card controls (ADD button, qty stepper, animations)
   These were previously inline on home.html only, which broke
   category/search/list pages. Moved here so they load on every page.
   ============================================================ */

/* ── Blinkit-style ADD button ── */
.btn-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 30px;
  border-radius: 8px;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid #a5d6a7;
  cursor: pointer;
  transition: all 0.15s;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 0 12px;
}
.btn-add:hover:not(:disabled) { background: #c8e6c9; border-color: #81c784; }
.btn-add:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── Qty stepper (inline on card) ── */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  height: 30px;
  border-radius: 8px;
  background: #2e7d32;
  overflow: hidden;
}
.qty-stepper button {
  width: 28px;
  height: 30px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}
.qty-stepper button:hover { background: rgba(255, 255, 255, 0.18); }
.qty-stepper button:active { background: rgba(255, 255, 255, 0.28); }
.qty-stepper button:disabled { opacity: 0.45; cursor: not-allowed; }
.qty-stepper span {
  min-width: 24px;
  text-align: center;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
}

/* ── Cart-icon shake (on add-to-cart success) ── */
@keyframes eshop-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-3px); }
  40% { transform: translateX(3px); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
}
.eshop-shake { animation: eshop-shake .5s ease; }

/* ── Low-stock pulse dot ── */
@keyframes eshop-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

[x-cloak] { display: none !important; }

/* ============================================================
   Account section — shared design system (.acc-*)
   Used across dashboard, orders, payments, addresses, profile,
   wishlist (all account/*.html templates via _layout.html)
   ============================================================ */
.acc-shell {
  padding-top: 20px;
  padding-bottom: 40px;
}

/* ── Sidebar (account nav) ── */
.acc-nav {
  position: sticky;
  /* Offset clears the sticky header (~60px) + category pill bar (~34px)
     plus a little breathing room. Keeps the sidebar visible when the
     order detail page scrolls long. */
  top: 100px;
  z-index: 5;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 65%);
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 0 0 1px rgba(15, 23, 42, 0.02);
}
.acc-nav-user {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  margin: -4px -4px 10px -4px;
  background: #ffffff;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
}
.acc-nav-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--eshop-primary, #0ea5e9), var(--eshop-accent, #7c3aed));
  color: #fff; font-weight: 700; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center;
  text-transform: uppercase; flex-shrink: 0;
}
.acc-nav-user-info { min-width: 0; flex: 1; }
.acc-nav-user-name {
  font-weight: 600; color: #0f172a; font-size: .92rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.acc-nav-user-email {
  font-size: .75rem; color: #94a3b8;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.acc-nav-verified {
  display: inline-flex; align-items: center; gap: 3px;
  background: #dcfce7; color: #166534;
  font-size: .6rem; font-weight: 700; padding: 2px 7px; border-radius: 999px;
  margin-top: 3px;
}

.acc-nav-list { display: flex; flex-direction: column; gap: 3px; }
.acc-nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px;
  color: #475569; font-size: .88rem; font-weight: 500;
  text-decoration: none;
  transition: background .15s, color .15s, box-shadow .15s, transform .15s;
}
.acc-nav-link:hover {
  background: #ffffff; color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.acc-nav-link.is-active {
  background: #ffffff;
  color: var(--eshop-primary, #0ea5e9);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), inset 3px 0 0 var(--eshop-primary, #0ea5e9);
  padding-left: 15px;
}
.acc-nav-link i { width: 18px; text-align: center; font-size: .95rem; flex-shrink: 0; }
.acc-nav-link .acc-nav-badge {
  margin-left: auto; background: #f1f5f9; color: #475569;
  font-size: .65rem; font-weight: 700;
  padding: 2px 7px; border-radius: 999px; min-width: 20px; text-align: center;
}
.acc-nav-link.is-active .acc-nav-badge {
  background: var(--eshop-primary, #0ea5e9); color: #fff;
}
.acc-nav-divider {
  height: 1px; background: #f1f5f9;
  margin: 10px 0;
}
.acc-nav-logout {
  display: flex; align-items: center; gap: 12px;
  background: none; border: none; width: 100%;
  padding: 10px 12px; border-radius: 10px;
  color: #dc2626; font-size: .88rem; font-weight: 600;
  cursor: pointer; text-align: left;
  transition: background .15s;
}
.acc-nav-logout:hover { background: #fef2f2; }
.acc-nav-logout i { width: 18px; text-align: center; font-size: .95rem; }

/* ── Page header ── */
.acc-page-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 20px;
}
.acc-page-title {
  font-size: 1.4rem; font-weight: 700; color: #0f172a; margin: 0; line-height: 1.2;
}
.acc-page-subtitle {
  font-size: .86rem; color: #64748b; margin-top: 4px;
}

/* ── Stat cards ── */
.acc-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px; margin-bottom: 24px;
}
@media (max-width: 991.98px) {
  .acc-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 479.98px) {
  .acc-stat-grid { grid-template-columns: 1fr; }
}
.acc-stat {
  --acc-stat-accent: #e2e8f0;
  background: #fff; border-radius: 16px; border: 1px solid #eef2f7;
  padding: 18px 20px 16px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 14px; row-gap: 2px;
  align-items: center;
  position: relative; overflow: hidden;
  text-decoration: none; color: inherit;
}
.acc-stat::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--acc-stat-accent);
  opacity: .7;
}
.acc-stat:hover {
  transform: translateY(-2px);
  border-color: #e0e7ff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}
.acc-stat-icon {
  grid-column: 1; grid-row: 1 / span 2;
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; align-self: center;
}
.acc-stat-icon.blue    { background: #eff6ff; color: #2563eb; }
.acc-stat-icon.green   { background: #ecfdf5; color: #059669; }
.acc-stat-icon.red     { background: #fef2f2; color: #dc2626; }
.acc-stat-icon.amber   { background: #fffbeb; color: #d97706; }
.acc-stat-icon.pink    { background: #fdf2f8; color: #db2777; }
.acc-stat-icon.indigo  { background: #eef2ff; color: #4f46e5; }
.acc-stat.accent-blue   { --acc-stat-accent: #bfdbfe; }
.acc-stat.accent-green  { --acc-stat-accent: #bbf7d0; }
.acc-stat.accent-red    { --acc-stat-accent: #fecaca; }
.acc-stat.accent-amber  { --acc-stat-accent: #fde68a; }
.acc-stat.accent-pink   { --acc-stat-accent: #fbcfe8; }
.acc-stat.accent-indigo { --acc-stat-accent: #c7d2fe; }
.acc-stat-label {
  grid-column: 2; grid-row: 1;
  font-size: .72rem; font-weight: 600; color: #64748b;
  text-transform: uppercase; letter-spacing: .05em;
  line-height: 1.2;
}
.acc-stat-value {
  grid-column: 2; grid-row: 2;
  font-size: 1.55rem; font-weight: 700; color: #0f172a; line-height: 1.15;
  letter-spacing: -0.01em;
}
.acc-stat-value.is-danger { color: #dc2626; }
.acc-stat-value.is-success { color: #16a34a; }
.acc-stat-foot {
  grid-column: 1 / -1; grid-row: 3;
  margin-top: 10px; padding-top: 10px;
  border-top: 1px dashed #e5e7eb;
  font-size: .78rem; color: var(--eshop-primary, #0ea5e9);
  font-weight: 600; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: space-between;
  gap: 6px;
}
.acc-stat-foot:hover { color: var(--eshop-primary-hover, #0284c7); }
.acc-stat-foot::after {
  content: "\f061"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  font-size: .7rem; opacity: .7; transition: transform .18s ease;
}
.acc-stat-foot:hover::after { transform: translateX(3px); }

/* ── Card / section ── */
.acc-card {
  background: #fff; border-radius: 16px; border: 1px solid #eef2f7;
  overflow: hidden;
}
.acc-card-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
}
.acc-card-title {
  font-size: 1rem; font-weight: 600; color: #0f172a; margin: 0;
}
.acc-card-link {
  font-size: .82rem; font-weight: 600;
  color: var(--eshop-primary, #0ea5e9); text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
}
.acc-card-link:hover { color: var(--eshop-primary-hover, #0284c7); }
.acc-card-body { padding: 18px; }
.acc-card-body.is-flush { padding: 0; }

/* ── Status pills ── */
.acc-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .7rem; font-weight: 700; padding: 3px 10px;
  border-radius: 999px; letter-spacing: .01em;
  white-space: nowrap;
}
.acc-pill.is-pending   { background: #fef3c7; color: #92400e; }
.acc-pill.is-confirmed { background: #dbeafe; color: #1e40af; }
.acc-pill.is-shipped   { background: #cffafe; color: #0e7490; }
.acc-pill.is-delivered { background: #dcfce7; color: #166534; }
.acc-pill.is-cancelled { background: #fee2e2; color: #991b1b; }
.acc-pill.is-returned  { background: #f3e8ff; color: #6b21a8; }
.acc-pill.is-paid      { background: #dcfce7; color: #166534; }
.acc-pill.is-partial   { background: #fef3c7; color: #92400e; }
.acc-pill.is-failed    { background: #fee2e2; color: #991b1b; }
.acc-pill.is-neutral   { background: #f1f5f9; color: #475569; }

/* ── Empty state ── */
.acc-empty {
  text-align: center; padding: 56px 20px;
}
.acc-empty-icon {
  width: 84px; height: 84px; border-radius: 50%;
  background: #f1f5f9; color: #94a3b8;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px; font-size: 2rem;
}
.acc-empty-title { font-size: 1.1rem; font-weight: 600; color: #0f172a; margin: 0 0 6px; }
.acc-empty-sub { font-size: .88rem; color: #64748b; margin: 0 0 20px; }
.acc-empty-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--eshop-primary, #0ea5e9); color: #fff;
  border-radius: 999px; padding: 10px 24px;
  font-weight: 600; text-decoration: none;
  transition: filter .15s;
}
.acc-empty-cta:hover { filter: brightness(.93); color: #fff; }

/* ── Order rows ── */
.acc-order-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px; align-items: center;
  padding: 16px 18px; border-bottom: 1px solid #f1f5f9;
  text-decoration: none; color: inherit;
  transition: background .15s;
}
.acc-order-row:last-child { border-bottom: none; }
.acc-order-row:hover { background: #f8fafc; color: inherit; }
.acc-order-thumb {
  width: 54px; height: 54px; border-radius: 10px;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  display: flex; align-items: center; justify-content: center;
  color: #94a3b8; font-size: 1.1rem;
  overflow: hidden; flex-shrink: 0;
}
.acc-order-thumb img { width: 100%; height: 100%; object-fit: cover; }
.acc-order-info { min-width: 0; }
.acc-order-id { font-weight: 600; color: #0f172a; font-size: .92rem; margin-bottom: 2px; }
.acc-order-date { font-size: .76rem; color: #64748b; margin-bottom: 6px; }
.acc-order-right { text-align: right; }
.acc-order-total { font-weight: 600; color: #0f172a; font-size: .98rem; }
.acc-order-items { font-size: .74rem; color: #94a3b8; }

/* ── Address cards ── */
.acc-addr-card {
  background: #fff; border-radius: 14px; border: 1.5px solid #eef2f7;
  padding: 18px; height: 100%;
  display: flex; flex-direction: column; position: relative;
  transition: border-color .15s;
}
.acc-addr-card:hover { border-color: #cbd5e1; }
.acc-addr-card.is-default {
  border-color: var(--eshop-primary, #0ea5e9);
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.03), #fff);
}
.acc-addr-card .acc-addr-icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: #eff6ff; color: #2563eb;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.acc-addr-card .acc-addr-icon.is-work { background: #fef3c7; color: #b45309; }
.acc-addr-card .acc-addr-icon.is-other { background: #eef2ff; color: #4f46e5; }
.acc-addr-name { font-weight: 600; color: #0f172a; font-size: .95rem; }
.acc-addr-phone { font-size: .8rem; color: #64748b; }
.acc-addr-body {
  font-size: .85rem; color: #334155; line-height: 1.5;
  margin: 12px 0;
}
.acc-addr-actions {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto;
}
.acc-addr-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 14px; border-radius: 999px;
  font-size: .78rem; font-weight: 600;
  background: #f8fafc; color: #475569;
  border: 1px solid #e2e8f0; cursor: pointer; text-decoration: none;
  transition: all .15s;
}
.acc-addr-btn:hover { background: #f1f5f9; color: #0f172a; border-color: #cbd5e1; }
.acc-addr-btn.is-primary { background: var(--eshop-primary, #0ea5e9); color: #fff; border-color: transparent; }
.acc-addr-btn.is-primary:hover { filter: brightness(.93); color: #fff; }
.acc-addr-btn.is-danger { color: #dc2626; }
.acc-addr-btn.is-danger:hover { background: #fef2f2; color: #991b1b; border-color: #fecaca; }

/* ── Form / profile ── */
.acc-form-section {
  background: #fff; border-radius: 16px; border: 1px solid #eef2f7;
  padding: 22px 24px; margin-bottom: 16px;
}
.acc-field { margin-bottom: 16px; }
.acc-field label {
  display: block; font-size: .78rem; font-weight: 600;
  color: #334155; margin-bottom: 6px;
  letter-spacing: .02em;
}
.acc-field .acc-input {
  display: block; width: 100%;
  padding: 10px 14px; font-size: .92rem;
  background: #f8fafc; border: 1.5px solid #e2e8f0;
  border-radius: 10px; transition: border-color .15s, background .15s;
  color: #0f172a;
}
.acc-field .acc-input:focus {
  outline: none; border-color: var(--eshop-primary, #0ea5e9);
  background: #fff;
}
.acc-field-hint { font-size: .72rem; color: #94a3b8; margin-top: 4px; }

.acc-btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 22px;
  background: var(--eshop-primary, #0ea5e9); color: #fff;
  border: none; border-radius: 999px;
  font-size: .88rem; font-weight: 600;
  cursor: pointer; transition: filter .15s, transform .1s;
  text-decoration: none;
}
.acc-btn-primary:hover { filter: brightness(.93); color: #fff; }
.acc-btn-primary:active { transform: scale(.98); }

.acc-btn-outline {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 20px;
  background: transparent; color: #475569;
  border: 1.5px solid #e2e8f0; border-radius: 999px;
  font-size: .85rem; font-weight: 600;
  cursor: pointer; transition: all .15s;
  text-decoration: none;
}
.acc-btn-outline:hover { border-color: #cbd5e1; color: #0f172a; background: #f8fafc; }

/* ── Responsive ── */
@media (max-width: 991.98px) {
  .acc-nav { position: static; margin-bottom: 16px; }
}

/* ── Wishlist heart on product cards ── */
.wishlist-btn-card {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: none;
  z-index: 5;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}
.wishlist-btn-card:hover {
  transform: scale(1.08);
  background: #fff;
}
.wishlist-btn-card i {
  font-size: 0.86rem;
  line-height: 1;
  display: block;
}

