﻿/* =========================================
   SAJANZA — Global Premium Stylesheet
   ========================================= */

/* -- Scrollbar -- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #f97316; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #ea580c; }
.scroll-hide::-webkit-scrollbar { display: none; }
.scroll-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* -- Selection -- */
::selection { background: #fed7aa; color: #7c2d12; }

/* -- Root Tokens -- */
:root {
  --brand-50: #fff7ed;
  --brand-100: #ffedd5;
  --brand-400: #fb923c;
  --brand-500: #f97316;
  --brand-600: #ea580c;
  --brand-700: #c2410c;
  --shadow-brand: 0 4px 24px -4px rgba(234,88,12,0.35);
  --shadow-card: 0 2px 16px -4px rgba(0,0,0,0.08);
  --radius-card: 1.25rem;
  --transition-base: 0.2s cubic-bezier(0.4,0,0.2,1);
}

/* -- Body -- */
body {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  background: #f8f9fb;
  color: #1a1a2e;
  -webkit-font-smoothing: antialiased;
}

/* -- Glass -- */
.glass {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.6);
}

/* -- Gradient Text -- */
.gradient-text {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #dc2626 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* -- Brand Button -- */
.btn-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #fff;
  font-weight: 800;
  border-radius: 9999px;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 18px -4px rgba(234,88,12,0.45);
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn-brand:hover { transform: translateY(-2px); box-shadow: 0 8px 28px -4px rgba(234,88,12,0.55); filter: brightness(1.05); }
.btn-brand:active { transform: translateY(0); }

.btn-outline-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: transparent;
  color: #ea580c;
  font-weight: 800;
  border-radius: 9999px;
  font-size: 0.875rem;
  border: 2px solid #ea580c;
  transition: all var(--transition-base);
  cursor: pointer;
  text-decoration: none;
}
.btn-outline-brand:hover { background: #ea580c; color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-brand); }

/* -- Card -- */
.card {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0,0,0,0.04);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.card:hover { box-shadow: 0 8px 32px -8px rgba(0,0,0,0.14); transform: translateY(-2px); }

/* -- Product Card -- */
.product-card {
  background: #fff;
  border-radius: 1rem;
  border: 1px solid #f3f4f6;
  box-shadow: 0 1px 8px -2px rgba(0,0,0,0.07);
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover {
  box-shadow: 0 16px 40px -8px rgba(234,88,12,0.18), 0 4px 16px -4px rgba(0,0,0,0.12);
  transform: translateY(-4px);
  border-color: #fed7aa;
}
.product-card img.card-img { transition: transform 0.4s cubic-bezier(0.4,0,0.2,1); width: 100%; height: 100%; object-fit: cover; }
.product-card:hover img.card-img { transform: scale(1.07); }

/* -- Badge -- */
.badge { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.2rem 0.6rem; border-radius: 9999px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.badge-brand { background: #ffedd5; color: #c2410c; }
.badge-sale  { background: #fee2e2; color: #b91c1c; }
.badge-new   { background: #d1fae5; color: #065f46; }
.badge-hot   { background: linear-gradient(135deg,#f97316,#dc2626); color:#fff; }

/* -- Flash Sale Countdown -- */
.countdown-segment {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: #fff;
  font-weight: 900;
  font-family: 'Courier New', monospace;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 1rem;
  line-height: 1;
  min-width: 38px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(234,88,12,0.4);
  animation: countPulse 1s ease-in-out infinite alternate;
}
.countdown-sep { color: #ea580c; font-weight: 900; font-size: 1.1rem; }
@keyframes countPulse { from { box-shadow: 0 2px 8px rgba(234,88,12,0.3); } to { box-shadow: 0 4px 16px rgba(234,88,12,0.55); } }

/* -- Animations -- */
@keyframes slideUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
.slide-up { animation: slideUp 0.55s cubic-bezier(0.4,0,0.2,1) both; }
.slide-up-delay-1 { animation-delay: 0.1s; }
.slide-up-delay-2 { animation-delay: 0.2s; }
.slide-up-delay-3 { animation-delay: 0.3s; }

@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
.fade-in { animation: fadeIn 0.6s ease both; }

@keyframes pulseStep {
  0%,100% { box-shadow: 0 0 0 5px rgba(234,88,12,0.18); }
  50%     { box-shadow: 0 0 0 10px rgba(234,88,12,0.06); }
}

@keyframes shine { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }
.badge-shine { background: linear-gradient(90deg, #f97316 0%, #fbbf24 50%, #f97316 100%); background-size: 200% auto; animation: shine 2.5s linear infinite; color: #fff; }

/* -- Steps -- */
.step-done   { background: linear-gradient(135deg,#f97316,#ea580c); color:#fff; box-shadow:0 4px 12px rgba(234,88,12,0.4); }
.step-active { background: #fff; color: #ea580c; border: 2px solid #ea580c; box-shadow: 0 0 0 4px rgba(234,88,12,0.15); }
.step-pending{ background: #f3f4f6; color: #9ca3af; }
.step-line-done   { background: linear-gradient(90deg,#f97316,#ea580c); }
.step-line-pending{ background: #e5e7eb; }

/* -- Timeline -- */
.timeline-dot {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-weight: 800;
  transition: all 0.3s ease;
}
.timeline-dot.done { background: linear-gradient(135deg,#f97316,#ea580c); color: #fff; box-shadow: 0 4px 18px rgba(234,88,12,0.5); }
.timeline-dot.active { background: #fff; border: 3px solid #ea580c; color: #ea580c; box-shadow: 0 0 0 5px rgba(234,88,12,0.18); animation: pulseStep 1.5s ease-in-out infinite; }
.timeline-dot.pending { background: #f3f4f6; color: #d1d5db; border: 2px solid #e5e7eb; }

/* -- Input -- */
.input-brand {
  width: 100%;
  border: 2px solid #e5e7eb;
  border-radius: 0.875rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-family: inherit;
  color: #111827;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.input-brand:focus { border-color: #f97316; box-shadow: 0 0 0 4px rgba(249,115,22,0.15); }
.input-brand::placeholder { color: #9ca3af; }

/* -- Toast -- */
.toast {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  z-index: 9999;
  min-width: 280px; max-width: 380px;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: 0 8px 30px -4px rgba(0,0,0,0.18);
  animation: toastIn 0.4s cubic-bezier(0.4,0,0.2,1) both;
}
@keyframes toastIn { from { opacity:0; transform:translateX(40px); } to { opacity:1; transform:translateX(0); } }
.toast-success { background:#fff; border-left: 5px solid #10b981; color:#064e3b; }
.toast-error   { background:#fff; border-left: 5px solid #ef4444; color:#7f1d1d; }

/* -- Section Heading -- */
.section-heading {
  font-size: 1.5rem;
  font-weight: 800;
  color: #111827;
  position: relative;
  padding-left: 1rem;
}
.section-heading::before {
  content: '';
  position: absolute;
  left: 0; top: 10%; bottom: 10%;
  width: 4px;
  border-radius: 99px;
  background: linear-gradient(180deg,#f97316,#ea580c);
}

/* -- Filter Tab -- */
.filter-tab {
  padding: 0.45rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  color: #6b7280;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}
.filter-tab:hover, .filter-tab.active {
  background: linear-gradient(135deg,#f97316,#ea580c);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(234,88,12,0.3);
}

/* -- Category Card -- */
.cat-card {
  background: #fff;
  border-radius: 1.25rem;
  border: 1px solid #f3f4f6;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  text-align: center;
  padding: 1rem 0.75rem;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cat-card:hover { border-color: #fed7aa; box-shadow: 0 8px 24px rgba(234,88,12,0.15); transform: translateY(-3px); }
.cat-card .icon-wrap {
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex; align-items:center; justify-content:center;
  margin-bottom: 0.625rem;
  transition: all 0.25s ease;
  background: #fff7ed;
  color: #ea580c;
  border: 2px solid #fed7aa;
}
.cat-card:hover .icon-wrap { background: linear-gradient(135deg,#f97316,#ea580c); color: #fff; border-color: transparent; box-shadow: 0 6px 18px rgba(234,88,12,0.4); }

/* -- Wishlist -- */
.wishlist-btn {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border: none;
  display: flex; align-items:center; justify-content:center;
  cursor: pointer;
  z-index: 10;
  color: #9ca3af;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.wishlist-btn:hover, .wishlist-btn.active { color: #ef4444; transform: scale(1.1); }
.wishlist-btn.active svg { fill: #ef4444; }

/* -- Quick Add -- */
.quick-add-btn {
  width: 34px; height: 34px;
  border-radius: 10px;
  border: none;
  background: #fff7ed;
  color: #ea580c;
  display: flex; align-items:center; justify-content:center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.quick-add-btn:hover { background: linear-gradient(135deg,#f97316,#ea580c); color: #fff; transform: scale(1.08); box-shadow: 0 4px 12px rgba(234,88,12,0.4); }

/* -- Back to Top -- */
#back-to-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg,#f97316,#ea580c);
  color: #fff;
  display: flex; align-items:center; justify-content:center;
  box-shadow: 0 4px 18px rgba(234,88,12,0.5);
  cursor: pointer;
  border: none;
  z-index: 999;
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
#back-to-top.visible { opacity:1; transform:translateY(0); }
#back-to-top:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(234,88,12,0.6); }

/* -- Thumb Image -- */
.thumb-img {
  width: 72px; height: 72px;
  object-fit: cover;
  border-radius: 0.75rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.thumb-img:hover, .thumb-img.active { border-color: #f97316; box-shadow: 0 0 0 3px rgba(249,115,22,0.2); }

/* -- Pay Method Card -- */
.pay-method-card {
  border: 2px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  background: #fff;
}
.pay-method-card:hover { border-color: #fed7aa; }
.pay-method-card.selected { border-color: #f97316; background: #fff7ed; box-shadow: 0 0 0 3px rgba(249,115,22,0.15); }

/* -- Login Split -- */
.login-left { background: linear-gradient(145deg, #ea580c 0%, #c2410c 40%, #1e1b4b 100%); position: relative; overflow: hidden; }

/* -- Newsletter -- */
.newsletter-wrap {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e1b4b 100%);
  position: relative;
  overflow: hidden;
}

/* -- Underline Anim -- */
.underline-anim { position: relative; text-decoration: none; }
.underline-anim::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; border-radius: 99px; background: #f97316; transition: width 0.3s ease; }
.underline-anim:hover::after { width: 100%; }

/* -- Account Sidebar -- */
.account-sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.875rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  transition: all 0.2s;
  text-decoration: none;
}
.account-sidebar-item:hover, .account-sidebar-item.active { background: linear-gradient(135deg,#fff7ed,#ffedd5); color: #ea580c; }
.account-sidebar-item.active { font-weight: 800; }

/* -- Tab -- */
.tab-btn { padding: 0.6rem 1.25rem; border-radius: 9999px; font-weight: 700; font-size: 0.85rem; cursor: pointer; transition: all 0.2s; border: 2px solid transparent; background: transparent; color: #6b7280; }
.tab-btn.active { background: linear-gradient(135deg,#f97316,#ea580c); color: #fff; box-shadow: 0 4px 14px rgba(234,88,12,0.3); }
.tab-btn:not(.active):hover { border-color: #fed7aa; color: #ea580c; }

/* -- Footer -- */
.footer-dark { background: linear-gradient(175deg, #0f0f1a 0%, #1a1a2e 100%); }

/* -- Coupon -- */
.coupon-input-wrap { display: flex; gap: 0.5rem; }
.coupon-input-wrap input { flex: 1; border: 2px dashed #fed7aa; border-radius: 0.875rem; padding: 0.6rem 1rem; font-size: 0.85rem; background: #fff7ed; color: #92400e; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; outline: none; transition: border-color 0.2s; }
.coupon-input-wrap input:focus { border-color: #f97316; background: #fff; }

/* -- Skeleton -- */
@keyframes skeleton { 0% { background-position: -200px 0; } 100% { background-position: calc(200px + 100%) 0; } }
.skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200px 100%; animation: skeleton 1.5s infinite; border-radius: 8px; }

/* -- Marquee -- */
.notify-marquee { display: flex; overflow: hidden; white-space: nowrap; }
.notify-marquee span { display: inline-block; animation: marqueeScroll 22s linear infinite; }
@keyframes marqueeScroll { from { transform: translateX(100%); } to { transform: translateX(-100%); } }
