/* ============================================================
   Basava Mobile Shop — Custom styles layered on top of Tailwind
   Luxury Black & Gold theme
   ============================================================ */

:root {
  --gold: #D4AF37;
  --gold-dark: #B8860B;
  --gold-light: #F4C430;
  --matte: #0F0F0F;
  --richblack: #050505;
  --surface: #1A1A1A;
  --cardbg: #111111;
  --borderc: #2A2A2A;
}

html { scroll-behavior: smooth; }

body { font-family: 'Inter', system-ui, sans-serif; }
h1, h2, h3, h4, .font-heading { font-family: 'Poppins', 'Inter', sans-serif; }

/* Header: transparent on hero, solid black after scroll */
#site-header.scrolled {
  background-color: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--borderc);
}

/* Product card hover */
.product-card {
  background: var(--cardbg);
  border: 1px solid var(--borderc);
  border-radius: 12px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.product-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(212, 175, 55, 0.12);
}
.product-card img { transition: transform 0.35s ease; }
.product-card:hover img { transform: scale(1.05); }

/* Buttons */
.btn-primary {
  background: var(--gold);
  color: #000;
  border-radius: 10px;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn-primary:hover { background: var(--gold-dark); box-shadow: 0 0 20px rgba(212,175,55,0.25); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { background: #3a3a3a; color: #888; cursor: not-allowed; box-shadow: none; }

.btn-secondary {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.2s ease;
}
.btn-secondary:hover { background: rgba(212,175,55,0.08); }

/* Badges */
.badge { display:inline-block; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.02em; }
.badge-new { background: rgba(34,197,94,0.15); color: #22C55E; }
.badge-used { background: rgba(245,158,11,0.15); color: #F59E0B; }
.badge-out { background: rgba(239,68,68,0.15); color: #EF4444; }
.badge-limited { background: rgba(245,158,11,0.15); color: #F59E0B; }
.badge-discount { background: #EF4444; color: #fff; padding: 4px 10px; font-weight: 700; box-shadow: 0 1px 3px rgba(0,0,0,0.18); }
.badge-featured { background: rgba(212,175,55,0.15); color: var(--gold); }

/* Inputs */
.form-input {
  background: var(--surface);
  border: 1px solid var(--borderc);
  color: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.2s ease;
}
.form-input:focus { outline: none; border-color: var(--gold); }
.form-input.error { border-color: #EF4444; }

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, #1a1a1a 25%, #232323 37%, #1a1a1a 63%);
  background-size: 400% 100%;
  animation: skeleton-loading 1.4s ease infinite;
}
@keyframes skeleton-loading {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* Fade / slide utility animations */
.fade-in { animation: fadeIn 0.4s ease both; }
.slide-up { animation: slideUp 0.35s ease both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* Scrollbar (subtle, matches theme) */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--richblack); }
::-webkit-scrollbar-thumb { background: var(--borderc); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

/* Focus visibility for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Quantity stepper */
.qty-stepper { display: flex; align-items: center; border: 1px solid var(--borderc); border-radius: 10px; overflow: hidden; }
.qty-stepper button { width: 36px; height: 36px; background: var(--surface); color: #fff; font-size: 16px; }
.qty-stepper button:hover { background: var(--gold); color: #000; }
.qty-stepper input { width: 44px; text-align: center; background: var(--cardbg); color: #fff; border: none; }

/* Order timeline */
.timeline-step { position: relative; padding-left: 28px; }
.timeline-step::before {
  content: '';
  position: absolute; left: 0; top: 2px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--borderc); border: 2px solid var(--borderc);
}
.timeline-step.done::before { background: var(--gold); border-color: var(--gold); }
.timeline-step::after {
  content: ''; position: absolute; left: 6px; top: 16px; bottom: -20px; width: 2px; background: var(--borderc);
}
.timeline-step:last-child::after { display: none; }
.timeline-step.done::after { background: var(--gold); }

/* Homepage banner frame: keep uploaded artwork fully inside the bordered slider. */
.homepage-banner-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #080808;
}
#homepage-banners {
  overflow: hidden;
}

/* ===== Homepage visual refresh ===== */
.home-banner-section { margin-bottom: 0; }
.home-banner-frame { isolation: isolate; }
.home-banner-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025), inset 0 -30px 60px rgba(0,0,0,.12);
  z-index: 25;
}
.home-banner-slide img { object-fit: cover !important; }
.home-categories { position: relative; }
.home-category-card {
  background: linear-gradient(180deg, #111111 0%, #0d0d0d 100%);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
}
.home-category-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.25); }
.home-category-image { min-width: 0; }
@media (max-width: 640px) {
  .home-banner-section { padding-left: 8px !important; padding-right: 8px !important; }
  .home-banner-frame { border-radius: 14px; }
  .home-categories { padding-top: 22px !important; padding-bottom: 26px !important; }
  .home-category-card { border-radius: 14px; }
}
