/* ============================================================
   Dorojay.com — 3D Effects & Glassmorphism  v2.0
   ============================================================ */

/* ── 3D Card Tilt ─────────────────────────────────────── */
.product-card {
  transform-style: flat;
  will-change: auto;
}

.product-card.tilt-active {
  transition: box-shadow 0.1s ease;
}

.product-card .card-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255,255,255,0.1) 0%,
    transparent 65%
  );
  transition: opacity 0.3s;
  z-index: 10;
}
.product-card:hover .card-shine { opacity: 1; }

/* ── Hero Carousel ────────────────────────────────────── */
.hero-section.hero-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 0;
  padding-top: 72px; /* below navbar */
  background: #f1f5f9;
}

.hero-carousel-track { position: relative; width: 100%; }

/* ── Slide ────────────────────────────────────────────── */
.hero-slide {
  display: none;
  position: relative;
  width: 100%;
  background: #e2e8f0;
}
.hero-slide.active {
  display: block;
  animation: heroFadeIn 0.5s ease forwards;
}
@keyframes heroFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Full-bleed image */
.hero-slide-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  object-position: center;
}

/* Empty placeholder when no banners */
.hero-slide-empty {
  height: auto;
  background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
}

/* Button — centered, bottom of slide */
.hero-slide-btn-wrap {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}
.hero-slide-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--cyan));
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
}
.hero-slide-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.28);
  color: #ffffff;
}

/* ── Arrows ───────────────────────────────────────────── */
.hero-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.5);
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffffff;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.hero-carousel-arrow:hover {
  background: rgba(0,0,0,0.45);
  transform: translateY(-50%) scale(1.08);
}
.hero-carousel-prev { left: 16px; }
.hero-carousel-next { right: 16px; }

/* ── Dots ─────────────────────────────────────────────── */
.hero-carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 10;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, width 0.25s;
}
.hero-dot.active {
  width: 22px;
  border-radius: 999px;
  background: #ffffff;
}

/* ── Category Cards ────────────────────────────────────── */
.category-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  cursor: pointer;
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
}
.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(8,145,178,0.07) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}
.category-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
  opacity: 0;
  transition: opacity 0.35s;
}
.category-card:hover {
  border-color: rgba(8,145,178,0.3);
  transform: translateY(-8px) scale(1.025);
  box-shadow: 0 16px 48px rgba(8,145,178,0.1), 0 4px 16px rgba(0,0,0,0.06);
}
.category-card:hover::before { opacity: 1; }
.category-card:hover::after  { opacity: 1; }
.category-card-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s;
}
.category-card:hover .category-card-icon { transform: scale(1.08); }
.category-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.category-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-head);
}
.category-card-count {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 5px;
}

/* ── Flash Sale Section ────────────────────────────────── */
.flash-sale-section {
  background: linear-gradient(135deg,
    rgba(217,119,6,0.06) 0%,
    rgba(8,145,178,0.05) 50%,
    rgba(217,119,6,0.04) 100%);
  border-top: 1px solid rgba(217,119,6,0.12);
  border-bottom: 1px solid rgba(217,119,6,0.12);
  padding: 70px 0;
}
.flash-sale-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}
.flash-sale-title-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
}
.flash-bolt {
  font-size: 36px;
  filter: drop-shadow(0 0 14px var(--gold));
  animation: float 3s ease-in-out infinite;
}
.flash-sale-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-weight: 700;
  display: block;
  margin-bottom: 3px;
}
.flash-sale-title-text {
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 800;
  color: var(--text-primary);
}
.countdown-timer {
  display: flex;
  gap: 10px;
  align-items: center;
}
.countdown-block {
  text-align: center;
  min-width: 62px;
}
.countdown-num {
  display: block;
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding: 10px 12px;
  background-color: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  line-height: 1;
  min-width: 62px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.countdown-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-top: 6px;
}
.countdown-sep {
  font-size: 28px;
  font-weight: 800;
  color: var(--gold);
  margin-top: -12px;
  text-shadow: 0 0 12px var(--gold-glow);
}

/* ── Testimonials ─────────────────────────────────────── */
.testimonial-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: -14px;
  left: 18px;
  font-size: 120px;
  font-family: Georgia, serif;
  color: rgba(8,145,178,0.06);
  line-height: 1;
  pointer-events: none;
}
.testimonial-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 100%, rgba(217,119,6,0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.testimonial-card:hover {
  border-color: rgba(8,145,178,0.2);
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.testimonial-card:hover::after { opacity: 1; }
.testimonial-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 17px;
  color: #ffffff;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(8,145,178,0.2);
}
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-name { font-weight: 700; font-size: 15px; }
.testimonial-stars { margin-top: 4px; }

/* ── Login/Register Page ──────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 30% 50%, rgba(8,145,178,0.07) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(217,119,6,0.05) 0%, transparent 50%),
              #f1f5f9;
}
#authCanvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.auth-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  backdrop-filter: blur(32px);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-lg);
  padding: 48px 42px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.04);
}
.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}
.auth-logo .logo-text {
  font-size: 28px;
}
.auth-tabs {
  display: flex;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border-glass);
  gap: 4px;
}
.auth-tab {
  flex: 1;
  padding: 13px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: var(--transition);
}
.auth-tab.active {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

/* ── Dashboard Layout ─────────────────────────────────── */
.dashboard-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
  align-items: start;
}
.dashboard-sidebar {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--radius-lg);
  padding: 26px 18px;
  position: sticky;
  top: 124px;
}
.dashboard-page {
  padding: 94px 0;
}
.dash-nav { display: flex; flex-direction: column; gap: 4px; }
.dash-nav-link {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text-muted);
  transition: var(--transition);
}
.dash-nav-link:hover { background: rgba(0,0,0,0.04); color: var(--text-primary); }
.dash-nav-link.active {
  background: rgba(8,145,178,0.08);
  color: var(--cyan);
  border: 1px solid rgba(8,145,178,0.18);
}
.dash-nav-link svg { opacity: 0.7; flex-shrink: 0; }

/* ── Checkout Steps ───────────────────────────────────── */
.checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 44px;
}
.checkout-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
}
.checkout-step::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  width: 130px;
  height: 1px;
  background: var(--border-glass);
}
.checkout-step:last-child::after { display: none; }
.checkout-step.active::after { background: #e2e8f0; }
.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dim);
  position: relative;
  z-index: 1;
  transition: var(--transition);
}
.checkout-step.done .step-circle {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
  box-shadow: none;
}
.checkout-step.active .step-circle {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
  box-shadow: none;
}
.step-label {
  font-size: 11px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.checkout-step.done   .step-label { color: #16a34a; }
.checkout-step.active .step-label { color: #2563eb; font-weight: 700; }

/* ── Glow Ring on hover ────────────────────────────────── */
.glow-ring {
  position: relative;
}
.glow-ring::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--gold), var(--cyan), var(--gold));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
}
.glow-ring:hover::after { opacity: 1; }

/* ── Neon Text ─────────────────────────────────────────── */
.neon-gold {
  color: var(--gold);
  text-shadow: 0 1px 4px var(--gold-glow);
}
.neon-cyan {
  color: var(--cyan);
  text-shadow: 0 1px 4px var(--cyan-glow);
}

/* ── Product detail 3D image ──────────────────────────── */
.product-detail-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid var(--border-glass);
  aspect-ratio: 1;
  cursor: zoom-in;
  transform-style: preserve-3d;
}
.product-detail-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.product-detail-img-wrap:hover img { transform: scale(1.06) rotate3d(0.5,0.5,0,7deg); }

/* ── Cart page ─────────────────────────────────────────── */
.cart-table-item {
  display: grid;
  grid-template-columns: 88px 1fr auto auto auto;
  gap: 18px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-glass);
}
.qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.qty-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.03);
  color: var(--text-muted);
  font-size: 18px;
  font-weight: 300;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}
.qty-btn:hover { background: rgba(8,145,178,0.1); color: var(--cyan); }
.qty-input {
  width: 48px;
  height: 36px;
  text-align: center;
  background: transparent;
  border: none;
  border-left: 1px solid var(--border-glass);
  border-right: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
}

/* ── Horizontal Scroll Row ─────────────────────────────── */
.scroll-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.scroll-row::-webkit-scrollbar { display: none; }

/* ── Payment Method Cards ─────────────────────────────── */
.payment-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1.5px solid var(--border-glass);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s ease;
  background: #ffffff;
}
.payment-option:hover {
  border-color: rgba(8,145,178,0.3);
  background: rgba(8,145,178,0.04);
}
.payment-option.selected {
  border-color: var(--cyan);
  background: rgba(8,145,178,0.07);
  box-shadow: 0 0 0 4px rgba(8,145,178,0.08);
}
.payment-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 22px;
}
.payment-method-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}
.payment-method-sub {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 2px;
}

/* ── Order Success Page ────────────────────────────────── */
.order-success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(6,182,212,0.15));
  border: 2px solid rgba(16,185,129,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 36px;
  animation: popIn 0.6s ease;
}

/* ── Stats Cards ──────────────────────────────────────── */
.stat-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--stat-accent, linear-gradient(90deg, var(--gold), var(--cyan)));
}
.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0,0,0,0.12);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.stat-value {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 14px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
}
.stat-change {
  font-size: 13px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.stat-change.up   { color: #10b981; }
.stat-change.down { color: #ef4444; }

/* ── Why-us section ───────────────────────────────────── */
.why-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.35s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--icon-color, var(--cyan)), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}
.why-card:hover {
  transform: translateY(-6px);
  border-color: rgba(8,145,178,0.18);
  box-shadow: 0 16px 48px rgba(8,145,178,0.08);
}
.why-card:hover::before { opacity: 1; }
.why-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 30px;
  background: #f1f5f9;
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.35s, box-shadow 0.35s;
}
.why-card:hover .why-icon {
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(8,145,178,0.15);
}
.why-title {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}
.why-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── CTA section ──────────────────────────────────────── */
.cta-section {
  position: relative;
  padding: 90px 0;
  overflow: hidden;
  background: radial-gradient(ellipse at 30% 50%, rgba(217,119,6,0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(8,145,178,0.06) 0%, transparent 60%),
              #f8fafc;
}
.cta-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 0;
  padding: 60px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.cta-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #0f172a, var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cta-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.cta-coupon-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border: 1.5px dashed rgba(245,158,11,0.5);
  border-radius: 0;
  background: rgba(245,158,11,0.05);
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 28px;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 0.05em;
}
.cta-coupon-badge:hover {
  background: rgba(245,158,11,0.1);
  border-color: var(--gold);
  box-shadow: 0 0 24px rgba(245,158,11,0.2);
}

/* ── Responsive ────────────────────────────────────────── */
/* Mobile responsive handled by assets/css/mobile.css */
