/* ==========================================================================
   ARAB AUTO TECH STORE — PURE CSS DESIGN SYSTEM & ARCHITECTURE (2026)
   Accent Color: #84754e | Palette: Technical Automotive Premium Editorial
   ========================================================================== */

:root {
  /* Core Store Brand Tokens */
  --store-accent: #84754e;
  --store-accent-hover: #6e613f;
  --store-accent-light: #9e8e63;
  --store-accent-subtle: rgba(132, 117, 78, 0.12);
  --store-accent-border: rgba(132, 117, 78, 0.28);
  --store-accent-glow: rgba(132, 117, 78, 0.22);
  
  /* Warm Tint Mixes */
  --store-warm-tint: #fbf9f4;
  --store-warm-tint-dark: #1a1814;
  --store-sand-surface: #f4eee2;
  --store-sand-border: #e6dfcf;

  /* Public Dark Mode & Light Mode Surface Architecture */
  --store-bg: #f8f7f4;
  --store-surface: #ffffff;
  --store-surface-elevated: #ffffff;
  --store-border: #e2dcd0;
  --store-border-subtle: #eee9df;
  
  --store-text: #111827;
  --store-text-muted: #4b5563;
  --store-text-subtle: #6b7280;
  
  /* Radii Standards */
  --store-radius-sm: 8px;
  --store-radius-md: 14px;
  --store-radius-lg: 20px;
  --store-radius-xl: 28px;

  /* Shadow Architecture */
  --store-shadow-subtle: 0 2px 10px rgba(0, 0, 0, 0.03);
  --store-shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.06), 0 2px 6px -1px rgba(0, 0, 0, 0.03);
  --store-shadow-lg: 0 16px 40px -8px rgba(0, 0, 0, 0.09), 0 4px 12px -2px rgba(0, 0, 0, 0.04);
  --store-shadow-accent: 0 8px 24px -4px rgba(132, 117, 78, 0.25);
}

.dark {
  --store-bg: #0b0f19;
  --store-surface: #111724;
  --store-surface-elevated: #182030;
  --store-border: #232c3f;
  --store-border-subtle: #1c2434;
  
  --store-text: #f0f4f8;
  --store-text-muted: #94a3b8;
  --store-text-subtle: #64748b;
  
  --store-warm-tint: #1c1913;
  --store-sand-surface: #171510;
  --store-sand-border: #2c281e;
  
  --store-shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.2);
  --store-shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.4);
  --store-shadow-lg: 0 16px 40px -8px rgba(0, 0, 0, 0.6);
}

/* Global Reset & Body for Store */
body.store-body {
  background-color: var(--store-bg);
  color: var(--store-text);
  font-family: 'Cairo', 'Tajawal', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Custom Typography Utilities */
.font-store-heading {
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.font-store-editorial {
  font-family: 'Tajawal', 'Cairo', sans-serif;
}

.font-store-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Custom Badge Pill */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  background-color: var(--store-accent-subtle);
  color: var(--store-accent);
  border: 1px solid var(--store-accent-border);
}

/* Primary Button */
.btn-store-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--store-radius-md);
  font-size: 0.875rem;
  font-weight: 700;
  background-color: var(--store-accent);
  color: #ffffff !important;
  border: 1px solid transparent;
  box-shadow: var(--store-shadow-accent);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn-store-primary:hover {
  background-color: var(--store-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px -4px rgba(132, 117, 78, 0.35);
}

.btn-store-primary:active {
  transform: translateY(0);
}

/* Secondary Button */
.btn-store-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--store-radius-md);
  font-size: 0.875rem;
  font-weight: 700;
  background-color: var(--store-surface);
  color: var(--store-text);
  border: 1px solid var(--store-border);
  box-shadow: var(--store-shadow-subtle);
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn-store-secondary:hover {
  background-color: var(--store-surface-elevated);
  border-color: var(--store-accent);
  color: var(--store-accent);
  transform: translateY(-1px);
}

/* Editorial Glass Card */
.store-card {
  background-color: var(--store-surface);
  border: 1px solid var(--store-border);
  border-radius: var(--store-radius-lg);
  box-shadow: var(--store-shadow-subtle);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.store-card:hover {
  border-color: var(--store-accent-border);
  box-shadow: var(--store-shadow-md);
  transform: translateY(-2px);
}

/* Controlled Product Card Frame */
.product-card-image-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  background-color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.store-card:hover .product-card-image-frame img {
  transform: scale(1.04);
}

/* Hero Carousel Custom Styles */
.hero-slider-item {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Cart Drawer Slide-over Animation */
.cart-drawer-panel {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Big Typography Overlay */
.big-editorial-text {
  font-family: 'Cairo', sans-serif;
  font-weight: 900;
  font-size: clamp(3rem, 11vw, 8.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  opacity: 0.035;
  user-select: none;
  pointer-events: none;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Filter Tab Styling */
.filter-pill {
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 700;
  background-color: var(--store-surface);
  color: var(--store-text-muted);
  border: 1px solid var(--store-border);
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.filter-pill:hover {
  border-color: var(--store-accent);
  color: var(--store-text);
}

.filter-pill.active {
  background-color: var(--store-accent);
  color: #ffffff;
  border-color: var(--store-accent);
  box-shadow: 0 4px 14px rgba(132, 117, 78, 0.3);
}

/* Admin Dashboard Specific */
.admin-card {
  background-color: var(--store-surface);
  border: 1px solid var(--store-border);
  border-radius: var(--store-radius-md);
  padding: 20px;
}

/* Scrollbar Customization */
.store-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.store-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.store-scrollbar::-webkit-scrollbar-thumb {
  background: var(--store-border);
  border-radius: 9999px;
}

.store-scrollbar::-webkit-scrollbar-thumb:hover {
  background: var(--store-accent);
}
