@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --bg-color: #030712;
  --surface-color: #090e1a;
  --surface-elevated: #111827;
  --surface-hover: #1f2937;
  --border-color: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(6, 182, 212, 0.3);
  
  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
  --accent-pink: #ec4899;
  --accent-purple: #a855f7;
  
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --text-light: #6b7280;
  
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  
  --font-display: 'Outfit', sans-serif;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.9);
  --shadow-glow: 0 0 30px rgba(6, 182, 212, 0.2);
  
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Base resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

/* Background grid overlay */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px), 
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -10;
  pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
}

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

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

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: var(--surface-elevated);
  border: 2px solid var(--bg-color);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--surface-hover);
}

/* --- LAYOUTS --- */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 40%, var(--accent-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-bg {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
}

.glass-card {
  background: rgba(9, 14, 26, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 100%);
  z-index: 1;
  pointer-events: none;
}

.glass-card:hover {
  border-color: rgba(6, 182, 212, 0.25);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 10px 40px rgba(6, 182, 212, 0.04);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border-radius: 14px;
  cursor: pointer;
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
  color: #030712;
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px rgba(6, 182, 212, 0.5);
  filter: brightness(1.08);
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.99);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
  transform: translateY(-2px);
}

/* Form Controls */
.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-main);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.15);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px;
  padding-right: 48px;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 8px;
}

.badge-cyan {
  background: rgba(6, 182, 212, 0.08);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.15);
}

.badge-purple {
  background: rgba(168, 85, 247, 0.08);
  color: var(--accent-purple);
  border: 1px solid rgba(168, 85, 247, 0.15);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.08);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.15);
}

.badge-success {
  background: rgba(16, 185, 129, 0.08);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.15);
}

/* --- NAVIGATION --- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(3, 7, 18, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
}

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

.logo {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}

.nav-link {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-muted);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
  text-shadow: 0 0 15px rgba(255,255,255,0.2);
}

.cart-icon-btn {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  color: var(--text-main);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-bounce);
}

.cart-icon-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #030712;
  font-size: 10px;
  font-weight: 900;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* User Account Pill */
.user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.user-pill:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

/* --- HERO SECTION --- */
.hero {
  padding: 120px 0 80px 0;
  text-align: center;
  position: relative;
}

.hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.18) 0%, rgba(168, 85, 247, 0.03) 60%, rgba(0,0,0,0) 100%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -2;
  pointer-events: none;
}

.hero h1 {
  font-size: 68px;
  line-height: 1.05;
  margin-bottom: 24px;
  font-weight: 900;
}

.hero p {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 40px auto;
  font-weight: 500;
  line-height: 1.6;
}

/* Category Filter Tabs */
.category-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 50px;
}

.cat-tab {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-bounce);
}

.cat-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  transform: translateY(-2px);
}

.cat-tab.active {
  background: rgba(6, 182, 212, 0.08);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.1);
}

/* --- PRODUCT DISPLAY GRID --- */
.products-section {
  padding: 40px 0 120px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 38px;
  letter-spacing: -0.03em;
}

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

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-img-wrapper {
  position: relative;
  aspect-ratio: 1.1;
  overflow: hidden;
  background: #111827;
  border-bottom: 1px solid var(--border-color);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.card-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-cyan);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 14px;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-price-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  margin-bottom: 20px;
}

.card-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent-cyan);
}

.card-original-price {
  font-size: 15px;
  text-decoration: line-through;
  color: var(--text-light);
}

/* --- PRODUCT DETAIL SPECIFIC --- */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  padding: 80px 0;
}

.gallery-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.main-image-wrapper {
  aspect-ratio: 1.25;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #111827;
}

.main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnails {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.thumbnail {
  width: 90px;
  height: 90px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition-bounce);
  opacity: 0.5;
  flex-shrink: 0;
}

.thumbnail.active, .thumbnail:hover {
  opacity: 1;
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-container {
  display: flex;
  flex-direction: column;
}

.detail-title {
  font-size: 42px;
  line-height: 1.15;
  margin-bottom: 20px;
  font-weight: 800;
}

.detail-price-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.detail-price {
  font-size: 36px;
  font-weight: 900;
  color: var(--accent-cyan);
}

.detail-original-price {
  font-size: 20px;
  text-decoration: line-through;
  color: var(--text-light);
}

/* Urgency Card styling */
.urgency-box {
  background: rgba(245, 158, 11, 0.02);
  border: 1px solid rgba(245, 158, 11, 0.15);
  padding: 20px;
  border-radius: 18px;
  margin-bottom: 28px;
}

.urgency-stock {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: var(--warning);
  margin-bottom: 10px;
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--warning), #f43f5e);
  border-radius: 4px;
  width: 35%;
  animation: pulse-width 3s infinite ease-in-out;
}

.countdown-timer {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
  align-items: center;
  font-weight: 600;
}

.countdown-digits {
  font-weight: 800;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 8px;
  border-radius: 6px;
  font-family: monospace;
}

.detail-variants {
  margin-bottom: 28px;
}

.variant-label {
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  color: var(--text-muted);
}

.variant-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.variant-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition-bounce);
}

.variant-btn.active, .variant-btn:hover {
  background: rgba(6, 182, 212, 0.08);
  border-color: var(--accent-cyan);
  color: var(--text-main);
  transform: translateY(-2px);
}

.quantity-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 36px;
}

.quantity-label {
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.01);
}

.qty-btn {
  background: none;
  border: none;
  color: var(--text-main);
  width: 44px;
  height: 44px;
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
}

.qty-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.qty-val {
  width: 44px;
  text-align: center;
  font-weight: 700;
}

.trust-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
}

.trust-badge {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.trust-badge-icon {
  font-size: 26px;
  margin-bottom: 8px;
  color: var(--accent-cyan);
}

/* --- CART OVERLAY DRAWER --- */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(2, 4, 10, 0.85);
  backdrop-filter: blur(8px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -500px;
  width: 100%;
  max-width: 500px;
  height: 100vh;
  background: var(--surface-color);
  border-left: 1px solid var(--border-color);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-lg);
}

.cart-overlay.open .cart-drawer {
  right: 0;
}

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

.cart-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 28px;
  transition: var(--transition);
}

.cart-close-btn:hover {
  color: var(--text-main);
  transform: rotate(90deg);
}

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

.cart-item {
  display: flex;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  background: #111827;
  border: 1px solid var(--border-color);
}

.cart-item-details {
  flex-grow: 1;
}

.cart-item-title {
  font-size: 15px;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}

.cart-item-variant {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.cart-item-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-item-price {
  font-weight: 800;
  color: var(--accent-cyan);
}

.cart-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: #f87171;
  font-size: 12px;
  font-weight: 700;
}

.cart-item-remove:hover {
  text-decoration: underline;
}

.cart-footer {
  padding: 28px;
  border-top: 1px solid var(--border-color);
  background: rgba(3, 7, 18, 0.4);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 24px;
}

.cart-total-price {
  color: var(--accent-cyan);
}

.cart-empty {
  text-align: center;
  padding: 60px 0;
  color: var(--text-muted);
}

/* --- CHECKOUT LAYOUT --- */
.checkout-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  padding: 80px 0;
}

.checkout-steps {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.checkout-step {
  padding: 40px;
}

.checkout-step-title {
  font-size: 22px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #030712;
  font-size: 15px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-summary-card {
  padding: 40px;
  height: fit-content;
  position: sticky;
  top: 120px;
}

.summary-title {
  font-size: 22px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.summary-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 20px;
  font-weight: 800;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

/* User Profile Orders History styling */
.orders-history-container {
  padding: 60px 0;
}

.order-history-card {
  padding: 24px;
  margin-bottom: 20px;
  border-color: var(--border-color);
}

/* --- ADMIN PANEL --- */
.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 84px);
}

.admin-sidebar {
  background: var(--surface-color);
  border-right: 1px solid var(--border-color);
  padding: 40px 0;
  display: flex;
  flex-direction: column;
}

.admin-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-menu-item {
  padding: 16px 32px;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-menu-item:hover, .admin-menu-item.active {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.02);
}

.admin-menu-item.active {
  border-left: 4px solid var(--accent-cyan);
  background: rgba(6, 182, 212, 0.04);
  padding-left: 28px;
}

.admin-content {
  padding: 48px;
  overflow-y: auto;
}

.admin-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.stat-card {
  padding: 28px;
}

.stat-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.stat-value {
  font-size: 32px;
  font-weight: 900;
  color: var(--text-main);
}

/* Admin Tables */
.admin-table-container {
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid var(--border-color);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th {
  background: rgba(255, 255, 255, 0.015);
  padding: 20px 28px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}

.admin-table td {
  padding: 22px 28px;
  font-size: 15px;
  border-bottom: 1px solid var(--border-color);
}

.admin-thumbnail {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  background: #111827;
  border: 1px solid var(--border-color);
}

/* Dialog Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(2, 4, 10, 0.9);
  backdrop-filter: blur(10px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  width: 90%;
  max-width: 650px;
  padding: 44px;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 28px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 28px;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--text-main);
}

.address-block {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: 12px;
  margin-top: 12px;
  font-family: monospace;
  font-size: 14px;
  white-space: pre-wrap;
  position: relative;
  line-height: 1.6;
}

.copy-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.copy-btn:hover {
  background: var(--accent-cyan);
  color: #030712;
  border-color: var(--accent-cyan);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--surface-elevated);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 28px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  color: var(--text-main);
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateY(120px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

/* Footer styling */
footer {
  border-top: 1px solid var(--border-color);
  padding: 60px 0;
  background: #02040a;
  color: var(--text-muted);
  text-align: center;
  font-size: 14px;
  font-weight: 500;
}

/* Responsive breakdowns */
@media (max-width: 992px) {
  .product-detail-layout, .checkout-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero h1 {
    font-size: 48px;
  }
}

@media (max-width: 768px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
  }
  .admin-menu {
    flex-direction: row;
    overflow-x: auto;
    padding: 0 20px;
  }
  .admin-menu-item {
    padding: 12px 20px;
    white-space: nowrap;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}
