/* 603Dprints.com Light & Dark Aesthetic Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  --bg-dark: #f3f4f6; /* Light silver-gray background */
  --bg-card: #ffffff; /* Clean white card container */
  --bg-card-hover: #f8fafc;
  --border-color: #e2e8f0;
  --text-main: #18181b; /* Charcoal dark text */
  --text-muted: #64748b; /* Muted Slate gray text */
  --primary: #990000; /* Pure Dark Red */
  --primary-hover: #770000; /* Deeper Dark Red */
  --accent-emerald: #059669;
  --accent-amber: #d97706;
  --accent-rose: #dc2626;
  --accent-silver: #666666;
  --glass-bg: rgba(255, 255, 255, 0.94);
  --glass-border: #e2e8f0;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 35px rgba(153, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #f1f3f7;
  background-image: 
    linear-gradient(45deg, rgba(0, 0, 0, 0.025) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.025) 75%, rgba(0, 0, 0, 0.025)),
    linear-gradient(45deg, rgba(0, 0, 0, 0.025) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.025) 75%, rgba(0, 0, 0, 0.025));
  background-size: 12px 12px;
  background-position: 0 0, 6px 6px;
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

input, select, textarea {
  font-family: inherit;
  color: var(--text-main);
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.95rem;
  transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(186, 12, 47, 0.2);
  outline: none;
}

/* Navigation Bar - Light Grey Left-to-Right Gradient */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, #cbd5e1 0%, #f1f5f9 35%, #ffffff 65%, #e2e8f0 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid #cbd5e1;
  padding: 2px 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.nav-container {
  max-width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin-left: 0;
}

.brand-badge {
  background: linear-gradient(135deg, var(--primary), #800016);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.nav-search {
  flex: 1;
  max-width: 540px;
  position: relative;
  display: flex;
  align-items: center;
}

.nav-search input {
  width: 100%;
  padding-left: 42px;
  padding-right: 18px;
  border-radius: 50px;
  height: 44px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
}

.search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

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

.btn-icon-text {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 50px;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-icon-text:hover {
  background: #f8fafc;
  border-color: var(--primary);
  color: var(--primary);
}

.cart-btn {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(186, 12, 47, 0.4);
}

/* Global Button Styles */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--primary);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(153, 0, 0, 0.35);
  transition: all 0.2s ease;
  box-sizing: border-box;
  text-decoration: none;
  line-height: 1.2;
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(153, 0, 0, 0.45);
}

.btn-add-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--primary);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--primary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-sizing: border-box;
  line-height: 1.2;
}

.btn-add-cart:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-icon-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
  line-height: 1.2;
}

.btn-icon-text:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Hero Banner - Dark Red Gradient */
.hero-banner {
  background: linear-gradient(135deg, #990000 0%, #660000 55%, #111827 100%);
  padding: 16px 24px;
  border-bottom: 2px solid rgba(153, 0, 0, 0.5);
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.hero-content {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-left h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 4px;
  color: #ffffff;
}

.hero-left p {
  color: #e2e8f0;
  font-size: 0.88rem;
  margin: 0;
  max-width: 780px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-badge {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.78rem;
  color: #ffffff;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

.stat-badge strong {
  color: #fef08a; /* Soft Gold / Scarlet complement */
}

/* Main Container Layout */
.main-wrapper {
  max-width: 100%;
  margin: 0;
  padding: 0 24px 0 0;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.store-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  min-height: calc(100vh - 200px);
  align-items: stretch;
}

/* Sidebar Filters */
.sidebar-panel {
  background: var(--bg-card);
  border-right: 1px solid var(--border-color);
  border-top: 1px solid var(--border-color);
  border-bottom: none;
  border-left: none;
  border-radius: 0;
  padding: 24px 16px 24px 20px;
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  box-shadow: var(--shadow-sm);
}

.filter-section {
  margin-bottom: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.filter-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.category-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-item {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
  border: 1px solid transparent;
}

.category-item:hover {
  background: #f8fafc;
  color: var(--text-main);
  border-color: #e2e8f0;
}

.category-item.active {
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(153, 0, 0, 0.3);
}

.category-count {
  font-size: 0.75rem;
  background: #f1f5f9;
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 12px;
}

.category-item.active .category-count {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* Catalog Top Toolbar */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  background: var(--bg-card);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.results-count {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.results-count strong {
  color: var(--text-main);
}

.toolbar-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Product Grid & Cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 22px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.product-image-wrap {
  position: relative;
  width: 100%;
  padding-top: 80%;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
  overflow: hidden;
}

.product-image-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform 0.4s ease;
}

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

.condition-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.stock-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(5, 150, 105, 0.12);
  color: var(--accent-emerald);
  border: 1px solid rgba(5, 150, 105, 0.25);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
}

/* Non-destructive Watermark Overlay & Anti-Right Click Protection */
.image-watermark-overlay,
.modal-watermark-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  overflow: hidden;
  background: transparent;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.product-image-wrap:hover .image-watermark-overlay,
.modal-main-img-wrap:hover .modal-watermark-overlay {
  opacity: 0;
}

.watermark-text {
  font-size: 1.4rem;
  font-weight: 900;
  color: rgba(100, 116, 139, 0.38);
  transform: rotate(-45deg);
  white-space: nowrap;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: 'Plus Jakarta Sans', sans-serif;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.9);
  pointer-events: none;
}

.modal-watermark-text {
  font-size: 2.2rem;
  font-weight: 900;
  color: rgba(100, 116, 139, 0.38);
  transform: rotate(-45deg);
  white-space: nowrap;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: 'Plus Jakarta Sans', sans-serif;
  text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.9);
  pointer-events: none;
}

/* Modal Gallery Arrow Controls */
.modal-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-nav-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
}

.modal-nav-arrow.prev {
  left: 8px;
}

.modal-nav-arrow.next {
  right: 8px;
}

.product-card-header {
  padding: 14px 16px 12px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.product-info {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.product-category {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: block;
  letter-spacing: 0.04em;
}

.product-title {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.38;
  margin: 0;
  color: var(--text-main);
  word-break: break-word;
  overflow-wrap: break-word;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 0;
  border-top: none;
}

.product-price {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.btn-add-cart {
  background: var(--primary);
  color: white;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(186, 12, 47, 0.25);
}

.btn-add-cart:hover {
  background: var(--primary-hover);
  transform: scale(1.04);
  box-shadow: 0 4px 12px rgba(186, 12, 47, 0.35);
}

/* Modals & Drawers */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 20px;
}

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

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 860px;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  padding: 22px 26px;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 1.5rem;
  color: var(--text-muted);
  transition: var(--transition);
}

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

/* Cart Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  z-index: 1100;
  background: var(--bg-card);
  border-left: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-drawer.active {
  right: 0;
}

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

.cart-header h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
}

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

.cart-item-row {
  display: flex;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
  align-items: center;
}

.cart-item-img {
  width: 64px;
  height: 64px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  object-fit: contain;
  padding: 4px;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
}

.cart-item-price {
  font-weight: 800;
  color: var(--primary);
  font-size: 0.95rem;
}

.cart-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.qty-btn {
  width: 26px;
  height: 26px;
  background: #f1f5f9;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-main);
}

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-color);
  background: #f8fafc;
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(186, 12, 47, 0.3);
}

.btn-primary:hover {
  opacity: 0.94;
  box-shadow: 0 6px 18px rgba(186, 12, 47, 0.45);
}

/* Admin Dashboard Table Header */
.admin-nav {
  background: linear-gradient(90deg, #d1d5db 0%, #f1f5f9 35%, #ffffff 65%, #e2e8f0 100%) !important;
  color: #18181b !important;
  border-bottom: 1px solid #cbd5e1 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.admin-nav .brand-logo {
  color: var(--primary) !important;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;

  text-transform: uppercase;
}

.stat-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  margin-top: 6px;
}

.table-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

th, td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
}

th {
  background: #f8fafc;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

/* Footer */
footer {
  background: #18181b;
  border-top: 2px solid var(--primary);
  padding: 30px 24px;
  margin-top: auto;
  text-align: center;
  color: #94a3b8;
  font-size: 0.9rem;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}

.page-btn {
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-weight: 600;
  transition: var(--transition);
}

.page-btn.active, .page-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Modal Systems */
.modal-overlay,
#product-modal,
#auth-modal,
#checkout-modal,
#order-history-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 16px;
}

.modal-overlay.active,
#product-modal.active,
#auth-modal.active,
#checkout-modal.active,
#order-history-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  width: 100%;
  max-width: 600px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
  animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
  from {
    transform: translateY(20px) scale(0.96);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  transition: color 0.2s ease;
}

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

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
  }
  .store-layout {
    grid-template-columns: 1fr;
  }
  .sidebar-panel {
    position: static;
  }
}

@media (max-width: 600px) {
  .hero-text h1 {
    font-size: 2rem;
  }
  .nav-search {
    display: none;
  }
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
  }
}

/* Global Modal Overlay & Dialog System */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 17, 32, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2500;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.modal-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  padding: 24px;
  width: 100%;
  max-width: 820px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  color: #f8fafc;
  transform: translateY(10px);
  transition: transform 0.25s ease;
}
.modal-overlay.active .modal-card {
  transform: translateY(0);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.modal-close:hover {
  color: #f8fafc;
}
