/*
  Global E-commerce Theme Styles
  - Modern, vibrant, professional UI
  - Uses CSS variables for theming
  - Responsive with Flexbox and Grid
*/

/* Material Design 3 inspired token set (tuned for clean minimal dark theme) */
:root {
  --color-primary: #a5b4fc;         /* primary */
  --color-primary-soft: rgba(165, 180, 252, 0.12);
  --color-secondary: #9ca3af;       /* secondary */
  --color-accent: #fbbf24;          /* tertiary/accent */
  --color-bg: #05060a;             /* page background */
  --color-bg-elevated: #0b0f19;    /* cards/surfaces */
  --color-border: rgba(148, 163, 184, 0.22);
  --color-text: #e5e7eb;           /* on-surface */
  --color-muted: #9ca3af;          /* on-surface-variant */
  --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.55);
  --radius-lg: 24px;               /* MD3 large shape */
  --radius-md: 16px;
  --radius-pill: 999px;
  --transition-fast: 0.18s ease-out;
  --transition-med: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Calm, minimal dark background */
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.28), transparent 60%),
    radial-gradient(circle at bottom, rgba(15, 23, 42, 0.22), transparent 60%),
    linear-gradient(180deg, #020617 0%, #020617 40%, #020617 100%);
}

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

img {
  max-width: 100%;
  display: block;
  image-rendering: auto;
}

button {
  font-family: inherit;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.4rem 1.4rem 3.2rem;
}

/* Top Navigation */

.top-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(15, 23, 42, 0.92);
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
}

.top-nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 0.9rem;
  background: radial-gradient(circle at 30% 0, #a5b4fc, #4f46e5);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.9);
}

.brand-logo::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 0, rgba(248, 250, 252, 0.4), transparent 60%);
  opacity: 0.9;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-subtitle {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--color-muted);
  letter-spacing: 0.16em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.nav-link {
  padding: 0.34rem 0.9rem;
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--color-muted);
  border: 1px solid transparent;
  transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.5);
  background: rgba(31, 41, 55, 0.9);
}

a.nav-link:focus-visible {
  outline: 2px solid rgba(129, 140, 248, 0.85);
  outline-offset: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

#menu-dropdown {
  position: fixed;
  top: 3.1rem;
  right: 1.25rem;
  z-index: 45;
  background: rgba(15, 23, 42, 0.97);
  border-radius: 0.9rem;
  border: 1px solid rgba(55, 65, 81, 0.95);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.9);
  padding: 0.4rem 0.25rem;
  min-width: 180px;
}

.menu-list {
  list-style: none;
}

.menu-item-btn {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: #e5e7eb;
  padding: 0.4rem 0.7rem;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 0.6rem;
  cursor: pointer;
}

.menu-item-btn:hover {
  background: rgba(31, 41, 55, 0.9);
}

.pill-btn {
  border-radius: var(--radius-pill);
  border: 1px solid rgba(166, 163, 185, 0.45);
  background: rgba(22, 22, 30, 0.96);
  color: var(--color-text);
  padding: 0.5rem 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.pill-btn-primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--color-primary), #8c9eff);
  color: #020617;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.85);
}

.pill-btn:hover {
  transform: translateY(-1px) translateZ(0);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.7);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.9);
}

.cart-indicator {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cart-count {
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #f97316;
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
}

/* Layout sections */

.layout-main {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(280px, 0.95fr);
  gap: 1.6rem;
  margin-top: 1.6rem;
}

.panel {
  background: var(--color-bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9);
  padding: 1.4rem 1.5rem 1.45rem;
  backdrop-filter: blur(14px);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.section-title {
  font-size: 1.06rem;
  font-weight: 600;
}

.section-subtitle {
  font-size: 0.86rem;
  color: var(--color-muted);
}

/* Hero */

.hero {
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.8rem 1.9rem;
  background: #020617;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(31, 41, 55, 0.9);
  display: grid;
  grid-template-columns: 1.7fr 1.3fr;
  gap: 1.4rem;
  margin-top: 1.4rem;
}

.hero-copy h1 {
  font-size: 2.05rem;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.hero-highlight {
  background: linear-gradient(90deg, #ffbe0b, #fb7185);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p {
  margin-top: 0.8rem;
  font-size: 1.02rem;
  color: var(--color-muted);
}

.hero-cta {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-metadata {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  font-size: 0.84rem;
  color: var(--color-muted);
}

.hero-metadata span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-visual {
  position: relative;
}

.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 1rem;
  background: #020617;
  border: 1px solid rgba(31, 41, 55, 0.95);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.95);
}

.hero-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.mini-product {
  border-radius: var(--radius-md);
  padding: 0.55rem;
  background: #020617;
  border: 1px solid rgba(31, 41, 55, 0.9);
  font-size: 0.75rem;
}

.mini-product h4 {
  font-size: 0.8rem;
  margin-bottom: 0.2rem;
}

.mini-product-bottom {
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
}

.hero-floating-tag {
  position: absolute;
  right: 0.2rem;
  top: -0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.55);
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.hero-floating-tag-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.9);
}

/* Filters */

.filters-row {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  font-size: 0.78rem;
  color: var(--color-muted);
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.chip.active {
  background: rgba(31, 41, 55, 0.98);
  color: #f9fafb;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.9);
}

.chip:hover:not(.active) {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.7);
  color: #e5e7eb;
  transform: translateY(-1px);
}

.filter-controls {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.input-shell {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.32rem 0.65rem;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.48);
}

.input-shell input,
.input-shell select {
  background: transparent;
  border: none;
  outline: none;
  color: #e5e7eb;
  font-size: 0.78rem;
}

.input-shell input::placeholder {
  color: var(--color-muted);
}

/* Product Grid */

.products-grid {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
}

.product-card {
  border-radius: var(--radius-md);
  background: #020617;
  border: 1px solid rgba(31, 41, 55, 0.9);
  padding: 0.75rem 0.8rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  cursor: pointer;
  transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-med), background var(--transition-med);
}

.product-card:hover {
  transform: translateY(-4px) translateZ(0);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.95);
  border-color: rgba(148, 163, 184, 0.9);
  background: #020617;
}

.product-media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #020617;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateZ(0);
}

.product-img-placeholder {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(249, 250, 251, 0.9);
  font-size: 0.85rem;
}

.product-pill {
  position: absolute;
  top: 0.4rem;
  left: 0.45rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.7);
}

.product-body {
  padding: 0.2rem 0.05rem 0;
}

.product-title {
  font-size: 0.98rem;
  font-weight: 600;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: var(--color-muted);
}

.product-price {
  font-weight: 600;
  color: #fbbf24;
}

.product-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.4rem;
}

.btn-ghost,
.btn-solid {
  border-radius: 999px;
  border: 1px solid rgba(166, 163, 185, 0.55);
  padding: 0.32rem 0.7rem;
  font-size: 0.8rem;
  cursor: pointer;
  background: rgba(22, 22, 30, 0.96);
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--transition-fast);
}

.btn-solid {
  background: linear-gradient(135deg, var(--color-primary), #9fb3ff);
  border-color: transparent;
  color: #020617;
}

.btn-ghost:hover,
.btn-solid:hover {
  transform: translateY(-1px) translateZ(0);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.85);
}

.btn-ghost:focus-visible,
.btn-solid:focus-visible,
.pill-btn:focus-visible {
  outline: 2px solid rgba(129, 140, 248, 0.9);
  outline-offset: 2px;
}

/* Cart panel */

.cart-panel {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-height: calc(100vh - 7rem);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.cart-empty {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.cart-line {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.6rem;
  padding: 0.55rem 0.4rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(31, 41, 55, 0.85);
  margin-bottom: 0.45rem;
}

.cart-line-thumb {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #020617;
}

.cart-line-main {
  font-size: 0.78rem;
}

.cart-line-title {
  font-weight: 500;
}

.cart-line-meta {
  margin-top: 0.15rem;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.cart-line-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  overflow: hidden;
}

.qty-btn {
  width: 20px;
  height: 20px;
  border: none;
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  font-size: 0.8rem;
  cursor: pointer;
}

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

.cart-summary {
  border-top: 1px dashed rgba(75, 85, 99, 0.9);
  padding-top: 0.7rem;
  font-size: 0.83rem;
}

.cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.2rem;
}

.cart-total {
  font-weight: 600;
  font-size: 0.9rem;
}

.cart-actions {
  margin-top: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.text-accent {
  color: var(--color-accent);
}

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

/* Checkout & Order history */

.checkout-steps {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}

.step-pill {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.35rem 0.4rem;
  border-radius: 999px;
  font-size: 0.78rem;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(55, 65, 81, 0.95);
  color: var(--color-muted);
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.step-pill.active {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-color: transparent;
  color: #f9fafb;
  box-shadow: 0 8px 20px rgba(67, 97, 238, 0.55);
}

.step-pill.done {
  border-color: rgba(34, 197, 94, 0.8);
}

.step-pill:not(.active):hover {
  background: rgba(30, 41, 59, 0.96);
  border-color: rgba(148, 163, 184, 0.7);
  color: #e5e7eb;
}

.checkout-body {
  margin-top: 0.7rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 0.8rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-label {
  font-size: 0.86rem;
}

.form-input,
.form-select,
.form-textarea {
  border-radius: 0.8rem;
  border: 1px solid rgba(55, 65, 81, 0.95);
  background: rgba(15, 23, 42, 0.92);
  color: #e5e7eb;
  padding: 0.4rem 0.55rem;
  font-size: 0.78rem;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: rgba(129, 140, 248, 0.9);
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.6);
}

.form-error {
  font-size: 0.74rem;
  color: #fca5a5;
}

.order-list {
  margin-top: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.order-card {
  border-radius: 0.9rem;
  padding: 0.8rem 0.9rem;
  background: #020617;
  border: 1px solid rgba(31, 41, 55, 0.95);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.status-pill {
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.status-pending {
  background: rgba(234, 179, 8, 0.2);
  color: #facc15;
}

.status-processing {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.status-shipped {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
}

.status-delivered {
  background: rgba(16, 185, 129, 0.22);
  color: #34d399;
}

.status-canceled {
  background: rgba(248, 113, 113, 0.26);
  color: #fca5a5;
}

.order-body {
  margin-top: 0.5rem;
  font-size: 0.86rem;
  color: var(--color-muted);
}

/* Toast notifications */

.toast-container {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  border-radius: 0.9rem;
  padding: 0.6rem 0.8rem;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(55, 65, 81, 0.95);
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.toast-success {
  border-color: rgba(34, 197, 94, 0.7);
}

.toast-error {
  border-color: rgba(248, 113, 113, 0.8);
}

/* Modal */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
}

.modal {
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, #1b1b24, #171721);
  border: 1px solid rgba(54, 59, 80, 0.95);
  padding: 1.2rem 1.25rem 1.25rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(18px);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.modal-close {
  border-radius: 999px;
  border: 1px solid rgba(75, 85, 99, 0.9);
  width: 26px;
  height: 26px;
  background: rgba(15, 23, 42, 0.98);
  color: #9ca3af;
  cursor: pointer;
}

/* Admin dashboard shared bits */

.admin-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  background: radial-gradient(circle at top, rgba(129, 140, 248, 0.2), transparent 55%),
    linear-gradient(180deg, #020617, #020617);
  border-right: 1px solid rgba(31, 41, 55, 0.95);
  padding: 1.2rem 1.1rem;
}

.admin-main {
  padding: 1.1rem 1.6rem 2rem;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.85), transparent 55%);
}

.metric-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.9rem;
}

.metric-card {
  border-radius: 1rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(145deg, #1c1c24, #15151f);
  border: 1px solid rgba(54, 59, 80, 0.9);
}

.metric-label {
  font-size: 0.76rem;
  color: var(--color-muted);
}

.metric-value {
  margin-top: 0.25rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.metric-sub {
  margin-top: 0.15rem;
  font-size: 0.7rem;
  color: var(--color-muted);
}

.table-shell {
  margin-top: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(31, 41, 55, 0.95);
  overflow: hidden;
  background: rgba(15, 23, 42, 0.85);
}

.table-scroll {
  max-height: 360px;
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

thead {
  background: rgba(15, 23, 42, 0.98);
}

th,
td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(31, 41, 55, 0.95);
}

th {
  text-align: left;
  font-weight: 500;
  color: var(--color-muted);
}

tbody tr:hover {
  background: radial-gradient(circle at left, rgba(51, 65, 85, 0.7), transparent 60%);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
}

.badge-light {
  background: rgba(55, 65, 81, 0.7);
}

.admin-toolbar {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: space-between;
}

.admin-section {
  margin-top: 1.4rem;
}

/* Animations & scroll-reveal */

@keyframes floatUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: floatUp 0.45s ease-out both;
}

/* Responsive breakpoints */

@media (max-width: 1024px) {
  .layout-main {
    grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.9fr);
  }

  .hero {
    grid-template-columns: 1.4fr 1.3fr;
  }

  .admin-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .top-nav-inner {
    flex-wrap: wrap;
    padding-inline: 1rem;
  }

  .nav-links {
    display: none;
  }

  .layout-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 1.4rem 1.3rem 1.7rem;
  }

  .filters-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-controls {
    width: 100%;
    justify-content: flex-start;
  }

  .cart-panel {
    max-height: none;
  }

  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-sidebar {
    display: none;
  }

  .admin-main {
    padding-inline: 1.1rem;
  }
}

@media (max-width: 480px) {
  .app-container {
    padding: 1.1rem 1rem 2.6rem;
  }

  .top-nav-inner {
    padding-inline: 0.9rem;
    gap: 0.6rem;
  }

  .brand-title {
    font-size: 1rem;
  }

  .hero-copy h1 {
    font-size: 1.6rem;
  }

  .products-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .filters-row {
    gap: 0.6rem;
  }

  .filter-controls {
    gap: 0.45rem;
  }

  .panel {
    padding: 1.1rem 1.1rem 1.2rem;
  }
}

