/* ==========================================================================
   TEJ MOBILES & GADGETS — Unified Global Design System (2026)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Global Brand Palette */
  --color-primary-indigo: #4F46E5;
  --color-primary-dark: #3730A3;
  --color-accent-rose: #F43F5E;
  
  /* Global Neutral Surface Palette */
  --color-bg-base: #F8FAFC;
  --color-bg-alt: #F1F5F9;
  --color-surface-white: #FFFFFF;
  --color-dark-midnight: #0B0F19;

  /* Global Typography Colors */
  --color-text-primary: #0F172A;
  --color-text-secondary: #475569;
  --color-text-muted: #94A3B8;

  /* Global Borders & Elevation */
  --color-border-subtle: #E2E8F0;
  --color-border-hover: #CBD5E1;

  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-card: 0 1px 3px 0 rgba(15, 23, 42, 0.04);
  --shadow-card-hover: 0 10px 20px -4px rgba(79, 70, 229, 0.12), 0 4px 8px -2px rgba(15, 23, 42, 0.04);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --transition-smooth: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-base);
  color: var(--color-text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-base);
}

::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Glassmorphism Header */
.glass-header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-subtle);
}

/* Page Banner Header */
.page-header-banner {
  background-color: var(--color-surface-white);
  border-bottom: 1px solid var(--color-border-subtle);
  padding: 2rem 0;
  margin-bottom: 2rem;
}

/* Midnight Hero Gradient */
.hero-midnight-gradient {
  background: radial-gradient(circle at 80% 30%, rgba(99, 102, 241, 0.35) 0%, transparent 60%),
              radial-gradient(circle at 20% 70%, rgba(244, 63, 94, 0.25) 0%, transparent 50%),
              linear-gradient(180deg, #0B0F19 0%, #111827 100%) !important;
}

/* ==========================================================================
   UNIFORM COMPACT PRODUCT CARD SYSTEM
   ========================================================================== */

.product-card {
  background-color: var(--color-surface-white);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(79, 70, 229, 0.35);
}

/* Studio Product Image Wrapper */
.product-card .image-wrapper {
  position: relative;
  width: 100%;
  height: 180px;
  background-color: #F8FAFC;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #F1F5F9;
}

.product-card .image-wrapper img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-card:hover .image-wrapper img {
  transform: scale(1.04);
}

/* Compact Content Area */
.product-card .card-body-compact {
  padding: 0.875rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex-grow: 1;
  justify-content: space-between;
}

.product-card .brand-tag {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-primary-indigo);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Fixed Warning: Standard ellipsis single-line truncation */
.product-card .product-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card .rating-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
}

.product-card .price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  border-top: 1px solid #F1F5F9;
  margin-top: 0.25rem;
}

.product-card .price-main {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-text-primary);
}

.product-card .price-old {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-decoration: line-through;
  margin-left: 0.35rem;
}

/* Badges & Buttons */
.card-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 10;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-flagship {
  background-color: var(--color-primary-indigo);
  color: #FFFFFF;
}

.badge-sale {
  background-color: var(--color-accent-rose);
  color: #FFFFFF;
}

.wishlist-btn-compact {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 10;
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  transition: all 0.2s ease;
}

.wishlist-btn-compact:hover {
  color: var(--color-accent-rose);
  background: #FFFFFF;
}

.add-cart-btn-compact {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background-color: var(--color-primary-indigo);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.add-cart-btn-compact:hover {
  background-color: var(--color-primary-dark);
}

.btn-indigo {
  background-color: var(--color-primary-indigo);
  color: #FFFFFF !important;
  transition: var(--transition-smooth);
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.2);
}

.btn-indigo:hover {
  background-color: var(--color-primary-dark);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
  transform: translateY(-1px);
}

/* Form Controls */
input[type="text"],
input[type="email"],
select,
textarea {
  background-color: var(--color-surface-white) !important;
  border: 1px solid var(--color-border-subtle) !important;
  color: var(--color-text-primary) !important;
  transition: var(--transition-smooth);
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  border-color: var(--color-primary-indigo) !important;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15) !important;
  outline: none !important;
}