/* ==========================================================================
   DeoriaShop - Digital Product E-Commerce Stylesheet
   Modern, Clean, Responsive (Vanilla CSS3, Flexbox & CSS Grid)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design Tokens & Variables
   -------------------------------------------------------------------------- */
:root {
  --font-primary: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --font-heading: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Brand Palette */
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;
  --primary-glow: rgba(79, 70, 229, 0.25);
  --accent: #06b6d4;
  --accent-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #06b6d4 100%);
  
  /* Neutrals & Dark Theme Accents */
  --bg-body: #0b0f19;
  --bg-surface: #111827;
  --bg-surface-elevated: #1f2937;
  --bg-surface-card: rgba(17, 24, 39, 0.75);
  --bg-glass: rgba(17, 24, 39, 0.85);
  
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(99, 102, 241, 0.5);
  
  /* Feedback Colors */
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.12);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.12);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.12);
  
  /* Spacing & Layout */
  --container-max: 1200px;
  --header-height: 72px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.25), 0 2px 4px -2px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.35), 0 4px 6px -4px rgba(0, 0, 0, 0.35);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   Reset & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body.modal-open,
body.cart-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img, svg {
  display: block;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
  user-select: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   Typography & Utilities
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.section-title {
  font-size: 2.35rem;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Buttons & Badges
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline {
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: #818cf8;
  background: rgba(99, 102, 241, 0.08);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-icon-only {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: var(--radius-md);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.badge-accent {
  background: rgba(236, 72, 153, 0.18);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.badge-discount {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-normal);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 42px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}

.brand-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px var(--primary-glow);
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-key-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.header-key-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
}

.cart-trigger-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  transition: all var(--transition-normal);
}

.cart-trigger-btn:hover {
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg-surface);
  transition: transform var(--transition-fast);
}

.cart-badge.visible {
  display: flex;
}

.cart-badge.bump {
  animation: badgeBump 300ms ease;
}

@keyframes badgeBump {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  padding: 84px 0 64px;
  overflow: hidden;
  text-align: center;
}

.hero-glow {
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 420px;
  background: radial-gradient(circle at 50% 40%, rgba(99, 102, 241, 0.22) 0%, rgba(139, 92, 246, 0.12) 40%, rgba(11, 15, 25, 0) 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(20px);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.28);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: #c7d2fe;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.12);
}

.hero-pill-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.hero-title {
  font-size: clamp(2.3rem, 5.5vw, 3.7rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
  line-height: 1.14;
}

.hero-subtitle {
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 38px;
  line-height: 1.68;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 44px;
}

.hero-trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

.trust-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
  transition: all var(--transition-fast);
}

.trust-badge-item:hover {
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.08);
  color: var(--text-main);
}

.trust-badge-item svg {
  color: #10b981;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Filter & Catalog Controls
   -------------------------------------------------------------------------- */
.catalog-section {
  padding: 60px 0 100px;
}

.catalog-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.search-box-wrapper {
  position: relative;
  max-width: 480px;
  width: 100%;
}

.search-box-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 46px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.95rem;
  transition: all var(--transition-normal);
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-input::placeholder {
  color: var(--text-dim);
}

.catalog-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.category-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.category-pill {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.category-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.category-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 10px var(--primary-glow);
}

.product-count-badge {
  font-size: 0.88rem;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   Product Grid & Cards (CSS Grid)
   -------------------------------------------------------------------------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--bg-surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.45);
}

.product-card-preview {
  height: 180px;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
}

.product-card-icon {
  transition: transform var(--transition-normal);
}

.product-card:hover .product-card-icon {
  transform: scale(1.1);
}

.product-card-real-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.product-card:hover .product-card-real-img {
  transform: scale(1.06);
}

.product-badge-group {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
}

.preview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.preview-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.6);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(6px);
}

.product-card:hover .preview-overlay {
  opacity: 1;
}

.product-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.product-category-tag {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #818cf8;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 600;
}

.star-icon {
  color: #fbbf24;
}

.reviews-count {
  color: var(--text-dim);
  font-weight: 400;
}

.product-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.35;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.product-card-title:hover {
  color: #818cf8;
}

.product-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-features-mini {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  margin-bottom: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-price-box {
  display: flex;
  flex-direction: column;
}

.price-current {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.price-original {
  font-size: 0.82rem;
  color: var(--text-dim);
  text-decoration: line-through;
  margin-top: 2px;
}

.product-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.empty-catalog-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-subtle);
}

.empty-icon {
  margin-bottom: 16px;
  color: var(--text-dim);
  display: flex;
  justify-content: center;
}

.empty-catalog-state h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.empty-catalog-state p {
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto 20px;
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Why Choose Us / Features Section
   -------------------------------------------------------------------------- */
.features-section {
  padding: 80px 0;
  background: rgba(17, 24, 39, 0.4);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
}

.feature-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.feature-box:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.3);
}

.feature-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Contact Section
   -------------------------------------------------------------------------- */
.contact-section {
  padding: 90px 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.contact-info-side {
  display: flex;
  flex-direction: column;
}

.contact-info-side h3 {
  font-size: 1.85rem;
  margin-bottom: 12px;
}

.contact-info-side p {
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: auto;
}

.contact-detail-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.contact-detail-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-detail-text h5 {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.contact-detail-text span {
  font-size: 0.95rem;
  font-weight: 600;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-input,
.form-textarea {
  padding: 12px 16px;
  background: var(--bg-body);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* --------------------------------------------------------------------------
   Cart Drawer (Slide-out)
   -------------------------------------------------------------------------- */
.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
}

.cart-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
  box-shadow: var(--shadow-xl);
}

.cart-drawer.active {
  transform: translateX(0);
}

.cart-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.cart-header-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.cart-header-title h3 {
  font-size: 1.25rem;
}

.cart-count-text {
  font-size: 0.88rem;
  color: var(--text-dim);
}

.cart-close-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.cart-close-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.cart-items-container {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 40px 20px;
  color: var(--text-dim);
}

.cart-empty-state svg {
  margin-bottom: 16px;
}

.cart-empty-state h4 {
  font-size: 1.15rem;
  color: var(--text-main);
  margin-bottom: 6px;
}

.cart-empty-state p {
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.cart-item {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.cart-item-preview {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.cart-item-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.cart-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.cart-item-title {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
}

.cart-item-remove-btn {
  color: var(--text-dim);
  padding: 2px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
}

.cart-item-remove-btn:hover {
  color: var(--danger);
}

.cart-item-format {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-muted);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.qty-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.qty-value {
  min-width: 24px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
}

.cart-item-price {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(11, 15, 25, 0.85);
}

.cart-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.cart-summary-row.total-row {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px dashed var(--border-subtle);
  margin-bottom: 18px;
}

.cart-checkout-btn {
  width: 100%;
}

.cart-trust-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   Modals (General, Product Details, Downloads, Key Settings, Simulator)
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-xl);
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  transition: all var(--transition-fast);
  z-index: 2;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* Product Detail Modal */
.modal-detail-layout {
  display: flex;
  flex-direction: column;
}

.modal-detail-banner {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-detail-body {
  padding: 28px;
}

.modal-detail-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.modal-detail-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
}

.modal-detail-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.modal-detail-features svg {
  color: var(--success);
  flex-shrink: 0;
  margin-top: 3px;
}

.modal-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin-bottom: 24px;
  font-size: 0.85rem;
}

.modal-specs-item span {
  color: var(--text-dim);
  display: block;
}

.modal-specs-item strong {
  color: var(--text-main);
}

.modal-detail-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

@media (max-width: 480px) {
  .modal-detail-banner {
    height: 160px;
  }

  .modal-detail-body {
    padding: 18px 16px;
  }

  .modal-detail-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .modal-detail-footer .product-actions {
    width: 100%;
    justify-content: stretch;
  }

  .modal-detail-footer .product-actions .btn {
    flex: 1;
    justify-content: center;
  }

  .modal-specs-grid {
    grid-template-columns: 1fr;
  }
}
/* Digital Download / Receipt Modal */
.download-modal-card {
  max-width: 520px;
  text-align: center;
  padding: 36px 32px;
}

.success-badge-icon {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid var(--success);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.receipt-summary-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 20px 0;
  text-align: left;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.receipt-row:last-child {
  margin-bottom: 0;
}

.receipt-row span {
  color: var(--text-muted);
}

.receipt-row strong {
  color: var(--text-main);
}

.download-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
  text-align: left;
}

.download-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.download-item-title {
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 2px;
}

.download-item-meta {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* Key Settings Modal & Simulator */
.settings-modal-card {
  max-width: 480px;
  padding: 30px;
}

.settings-modal-card h3 {
  margin-bottom: 8px;
}

.settings-modal-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.modal-actions-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

/* Policy Modals */
.policy-modal-card {
  max-width: 740px;
  max-height: 85vh;
  padding: 36px 32px;
  overflow-y: auto;
  text-align: left;
}

.policy-modal-card h2 {
  font-size: 1.85rem;
  margin-bottom: 8px;
}

.policy-modal-card h3 {
  font-size: 1.2rem;
  margin: 24px 0 10px;
  color: #818cf8;
}

.policy-modal-card p,
.policy-modal-card ul,
.policy-modal-card ol {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.policy-modal-card ul,
.policy-modal-card ol {
  padding-left: 24px;
}

.policy-modal-card li {
  margin-bottom: 6px;
}

.policy-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #818cf8;
  background: rgba(99, 102, 241, 0.12);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

/* --------------------------------------------------------------------------
   Toast Notifications
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  color: var(--text-main);
  font-size: 0.9rem;
  max-width: 380px;
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--transition-normal);
}

.toast.visible {
  transform: translateY(0);
  opacity: 1;
}

.toast-success {
  border-left: 4px solid var(--success);
}

.toast-success .toast-icon {
  color: var(--success);
}

.toast-error {
  border-left: 4px solid var(--danger);
}

.toast-error .toast-icon {
  color: var(--danger);
}

.toast-warning {
  border-left: 4px solid var(--warning);
}

.toast-warning .toast-icon {
  color: var(--warning);
}

.toast-info {
  border-left: 4px solid var(--primary);
}

.toast-info .toast-icon {
  color: #818cf8;
}

.toast-content {
  flex-grow: 1;
}

.toast-close {
  color: var(--text-dim);
  font-size: 1.2rem;
  line-height: 1;
}

.toast-close:hover {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: #070a10;
  border-top: 1px solid var(--border-subtle);
  padding: 70px 0 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 14px;
  max-width: 320px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
  color: var(--text-main);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy strong {
  color: var(--text-muted);
}

.footer-payment-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.75rem;
  }
  
  .contact-layout {
    grid-template-columns: 1fr;
    padding: 32px;
  }
  
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(11, 15, 25, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    transform: translateY(-160%);
    transition: transform var(--transition-normal);
    z-index: 99;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  }

  .nav-menu.open {
    transform: translateY(0);
  }

  .mobile-menu-btn {
    display: flex;
  }

  .header-key-btn span {
    display: none;
  }

  /* Logo sizing on mobile */
  .brand-logo-img {
    height: 34px;
    max-width: 130px;
  }

  /* Auth button text hidden on small screens */
  .header-auth-btn span {
    display: none;
  }

  .header-auth-btn {
    padding: 7px 10px;
    min-width: unset;
  }

  /* User name hidden on mobile to save space */
  #userNameDisplay {
    display: none;
  }

  .hero-section {
    padding: 56px 0 40px;
  }

  .hero-title {
    font-size: 2rem;
    letter-spacing: -0.025em;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 0.98rem;
    margin-bottom: 28px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-trust-badges {
    gap: 8px;
    justify-content: center;
    padding-top: 20px;
  }

  .trust-badge-item {
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  .catalog-header-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  /* Category pills: Smooth horizontal touch scroll on mobile */
  .category-pills {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    padding-bottom: 6px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .category-pills::-webkit-scrollbar {
    display: none;
  }

  .category-pill {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 7px 14px;
    font-size: 0.84rem;
  }

  .search-box-wrapper {
    max-width: 100%;
    width: 100%;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    padding: 24px 18px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .cart-drawer {
    width: 100%;
    max-width: 380px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }

  .header-actions {
    gap: 8px;
  }

  .brand-logo-img {
    height: 30px;
    max-width: 110px;
  }

  .cart-trigger-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-menu-btn {
    width: 38px;
    height: 38px;
  }

  .hero-section {
    padding: 44px 0 32px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 0.92rem;
    margin-bottom: 24px;
  }

  .hero-pill {
    font-size: 0.78rem;
    padding: 5px 12px;
  }

  .trust-badge-item {
    font-size: 0.75rem;
    padding: 5px 10px;
  }

  .hero-trust-badges {
    gap: 6px;
  }

  /* Single column cards on small phones */
  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-card-preview {
    height: 180px;
  }

  .product-card-body {
    padding: 16px;
  }

  .product-card-title {
    font-size: 1.08rem;
  }

  .product-card-desc {
    font-size: 0.85rem;
    margin-bottom: 12px;
  }

  .product-card-footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .product-actions {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .product-actions .btn-buy-now {
    padding: 8px 14px;
    font-size: 0.86rem;
    white-space: nowrap;
  }

  .product-actions .btn-add-to-cart {
    width: 38px;
    height: 38px;
    padding: 0;
  }

  .cart-drawer {
    max-width: 100%;
  }

  .modal-card,
  .download-modal-card,
  .auth-modal-card,
  .user-orders-modal-card,
  .policy-modal-card {
    padding: 24px 16px;
    width: 95%;
  }
}

@media (max-width: 360px) {
  .brand-logo-img {
    height: 26px;
    max-width: 90px;
  }

  .header-actions {
    gap: 5px;
  }

  .header-auth-btn {
    padding: 6px 8px;
  }
}

/* --------------------------------------------------------------------------
   Header Authentication & Profile Dropdown Styles
   -------------------------------------------------------------------------- */
.header-auth-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(79, 70, 229, 0.12);
  border: 1px solid rgba(79, 70, 229, 0.3);
  color: #c7d2fe;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.header-auth-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

.header-admin-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.header-admin-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.user-profile-wrapper {
  position: relative;
}

.user-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.user-profile-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.user-avatar-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 8px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all var(--transition-fast);
  z-index: 100;
}

.user-dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  padding: 8px 12px 6px;
}

.dropdown-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.dropdown-item-danger:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}

.dropdown-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 6px 0;
}

/* --------------------------------------------------------------------------
   Checkout Modal (Full-featured 2-Column Responsive Layout)
   -------------------------------------------------------------------------- */
.checkout-modal-card {
  max-width: 900px;
  width: 95%;
  padding: 0;
  overflow: hidden;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  min-height: 520px;
}

.checkout-product-summary {
  background: rgba(11, 15, 25, 0.6);
  border-right: 1px solid var(--border-subtle);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
}

.checkout-preview-box {
  width: 100%;
  height: 190px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1e293b;
}

.checkout-meta-badge-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.checkout-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  color: #ffffff;
}

.checkout-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.checkout-price-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}

.checkout-price-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  display: block;
}

.checkout-price-val {
  font-size: 1.6rem;
  font-weight: 800;
  color: #34d399;
}

.checkout-orig-price {
  font-size: 1rem;
  color: var(--text-dim);
  text-decoration: line-through;
}

.checkout-guarantee-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.checkout-guarantee-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.checkout-guarantee-item svg {
  color: #10b981;
  flex-shrink: 0;
  margin-top: 2px;
}

.checkout-form-container {
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.checkout-form-header {
  margin-bottom: 18px;
}

.checkout-form-header h4 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.checkout-form-header p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.checkout-logged-in-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 16px;
}

.logged-in-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #10b981;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logged-in-info span {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
}

.logged-in-info small {
  font-size: 0.78rem;
  color: #6ee7b7;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 4px;
}

.checkout-auth-tabs {
  margin: 14px 0 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
}

.auth-tabs-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  display: block;
}

.auth-radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.auth-radio-card {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.auth-radio-card:hover {
  background: rgba(255, 255, 255, 0.06);
}

.auth-radio-card input[type="radio"] {
  margin-top: 3px;
  accent-color: var(--primary);
}

.radio-text strong {
  display: block;
  font-size: 0.85rem;
  color: #ffffff;
}

.radio-text small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.input-with-icon {
  position: relative;
}

.input-icon-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.input-icon-btn:hover {
  color: #ffffff;
}

.checkout-pay-btn {
  width: 100%;
  margin-top: 14px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.checkout-trust-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-subtle);
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.trust-pill svg {
  color: #10b981;
}

/* --------------------------------------------------------------------------
   Auth & Orders Modals
   -------------------------------------------------------------------------- */
.auth-modal-card {
  max-width: 440px;
  padding: 32px 28px;
}

.auth-modal-header {
  text-align: center;
  margin-bottom: 20px;
}

.auth-brand-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.auth-modal-header h3 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.auth-modal-header p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.auth-tabs-row {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 20px;
  border: 1px solid var(--border-subtle);
}

.auth-tab-btn {
  flex: 1;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.auth-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 8px var(--primary-glow);
}

.user-orders-modal-card {
  max-width: 640px;
  padding: 32px;
}

/* Responsive Rules */
@media (max-width: 768px) {
  .checkout-modal-card {
    max-height: 94vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    width: 95%;
    margin: 12px auto;
  }
  .checkout-layout {
    grid-template-columns: 1fr;
    min-height: unset;
  }
  .checkout-product-summary {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding: 20px 16px;
  }
  .checkout-preview-box {
    height: 140px;
  }
  .checkout-form-container {
    padding: 20px 16px;
  }
  .form-row-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .auth-radio-group {
    grid-template-columns: 1fr;
  }
}

