
:root {
  --bg: #0f172a;
  --bg-soft: #111827;
  --bg-card: #020617;
  --accent: #22c55e;
  --accent-soft: rgba(34, 197, 94, 0.12);
  --accent-strong: #16a34a;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --danger: #ef4444;
  --border: #1f2937;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.55);
  --transition: 0.22s ease;
}

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

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, #1e293b 0, #020617 48%, #000 100%);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

button {
  font-family: inherit;
}

/* Layout */
.app-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 16px 40px;
  width: 100%;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.92));
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 10px;
  z-index: 50;
}

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

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at 20% 0, #4ade80, #22c55e 35%, #0f172a 72%, #020617 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #ecfdf5;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.8), 0 14px 30px rgba(34, 197, 94, 0.45);
}

.brand-text-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.brand-text-sub {
  font-size: 11px;
  color: var(--muted);
}

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

.nav-link {
  padding: 7px 13px;
  font-size: 13px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  color: var(--muted);
  cursor: pointer;
  background: transparent;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  overflow: hidden;
}

/* Animated underline for navbar */
.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #a855f7, #22c55e);
  transform: translateX(-120%);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.nav-link:hover {
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.9);
  transform: translateY(-1px);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(0);
  opacity: 1;
}

.nav-link.active {
  color: #f9fafb;
  border-color: rgba(34, 197, 94, 0.65);
  background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.16), rgba(15, 23, 42, 0.96));
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.25);
}

.cart-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(34, 197, 94, 0.55);
  background: rgba(22, 163, 74, 0.08);
  cursor: pointer;
  font-size: 13px;
  color: #bbf7d0;
  transition: var(--transition);
}

.cart-chip:hover {
  background: rgba(22, 163, 74, 0.18);
  transform: translateY(-1px);
}

.cart-count-badge {
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #22c55e;
  color: #022c22;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9);
}

.hero-badge {
  font-size: 11px;
  padding: 4px 10px 4px 4px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: radial-gradient(circle at left, rgba(34, 197, 94, 0.5), rgba(15, 23, 42, 0.98));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e5e7eb;
  margin-bottom: 14px;
}

.hero-badge-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, #bbf7d0, #22c55e, #15803d);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #022c22;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.85);
}

main {
  margin-top: 18px;
}

.page-section {
  display: none;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
}

.page-section.active-section {
  display: block;
  animation: pageIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: center;
}

@media (max-width: 900px) {
  header {
    flex-wrap: wrap;
    justify-content: center;
  }
  .grid-two {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .nav {
    display: none;
  }
  .app-shell {
    padding-inline: 12px;
  }
}


.hero-main-photo {
  border-radius: 18px;
  overflow: hidden;
  background: #020617;
  margin-top: 6px;
  margin-bottom: 10px;
  max-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-main-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Home */
.hero-card {
  padding: 26px 24px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.11), rgba(15, 23, 42, 0.97));
  box-shadow: var(--shadow-soft);
}

.hero-title {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 10px;
}

.hero-title span {
  color: #4ade80;
}

.hero-sub {
  font-size: 13px;
  color: var(--muted);
  max-width: 420px;
  margin-bottom: 18px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.btn-primary {
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border: none;
  color: #022c22;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(34, 197, 94, 0.45);
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 22px 50px rgba(34, 197, 94, 0.6);
}

.btn-ghost {
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.8);
  background: rgba(15, 23, 42, 0.98);
  transform: translateY(-1px);
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.hero-metric {
  font-size: 11px;
  padding: 6px 9px;
  border-radius: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.5);
  color: var(--muted);
}

.hero-gallery {
  padding: 18px 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: radial-gradient(circle at top right, rgba(34, 197, 94, 0.16), rgba(15, 23, 42, 0.98));
  box-shadow: var(--shadow-soft);
}

.hero-gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--muted);
}

.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.hero-products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.mini-product-card {
  border-radius: 14px;
  padding: 8px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.35);
  display: flex;
  gap: 9px;
  align-items: center;
  opacity: 0;
  transform: translateY(10px);
  animation: cardIn 0.4s ease-out forwards;
  cursor: pointer;
}

.mini-product-thumb {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  background: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--muted);
}

.mini-product-thumb img {
  max-width: 100%;
  display: block;
}

.mini-product-body {
  flex: 1;
}

.mini-product-name {
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 4px;
}

.mini-product-meta {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge-new {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.22);
  color: #bbf7d0;
}

/* Products */
.section-header {
  margin-bottom: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
}

.section-subtitle {
  font-size: 12px;
  color: var(--muted);
}

.products-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  font-size: 11px;
  align-items: center;
}

.filter-group-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.92);
}

.filter-group-label span {
  color: var(--muted);
}

.filter-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px dashed rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.85);
  color: var(--muted);
}

.filter-range .range-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.range-wrapper input[type="range"] {
  width: 140px;
}

.range-values {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .range-wrapper input[type="range"] {
    width: 120px;
  }
}

.input {
  background: rgba(15, 23, 42, 0.9);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 7px 12px;
  font-size: 12px;
  color: var(--text);
  outline: none;
  min-width: 0;
}

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

.select {
  appearance: none;
  background: rgba(15, 23, 42, 0.9);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 7px 26px 7px 10px;
  font-size: 12px;
  color: var(--text);
  outline: none;
  min-width: 0;
  position: relative;
}

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

.product-card {
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 1));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.9);
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  animation: cardIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.product-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 1);
  border-color: rgba(34, 197, 94, 0.6);
}

.product-media {
  padding: 10px 10px 0;
}

.product-media-inner {
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.24), #020617 56%);
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.product-media-inner img {
  max-width: 80%;
  max-height: 80%;
  display: block;
  filter: drop-shadow(0 16px 22px rgba(15, 23, 42, 0.9));
  transition: transform 0.3s ease;
}

.product-card:hover .product-media-inner img {
  transform: translateY(-4px) scale(1.04);
}

.product-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.product-name {
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.product-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 4px;
}

.price-main {
  font-size: 14px;
  font-weight: 600;
  color: #bbf7d0;
}

.price-old {
  font-size: 11px;
  text-decoration: line-through;
  color: #64748b;
}

.discount-pill {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(248, 113, 113, 0.16);
  color: #fecaca;
}

.product-actions {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.btn-add {
  flex: 1;
  border-radius: var(--radius-pill);
  padding: 7px 10px;
  border: none;
  background: var(--accent-soft);
  color: #bbf7d0;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-add:hover {
  background: rgba(22, 163, 74, 0.32);
  transform: translateY(-1px);
}

.btn-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  color: var(--muted);
  transition: var(--transition);
}

.btn-icon:hover {
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.8);
  transform: translateY(-1px);
}

/* Skeleton loading */
.skeleton-wrapper {
  opacity: 1;
  transform: none;
  animation: none;
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.85);
}

.skeleton::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(148, 163, 184, 0.35),
    transparent
  );
  transform: translateX(-100%);
  animation: shimmer 1.3s infinite;
}

.skeleton-thumb {
  height: 130px;
  border-radius: 16px;
  margin-bottom: 10px;
}

.skeleton-line {
  height: 8px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.skeleton-line.short {
  width: 60%;
}

.skeleton-line.tiny {
  width: 40%;
}

/* Cart / Shopping Cart */
.cart-shell {
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.14), rgba(15, 23, 42, 0.98));
  padding: 18px 16px;
  box-shadow: var(--shadow-soft);
}

.cart-header-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.badge-soft {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.98);
  color: var(--muted);
}

.cart-summary-text {
  font-size: 12px;
  color: var(--muted);
}

.cart-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.btn-secondary {
  border-radius: var(--radius-pill);
  padding: 7px 13px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(15, 23, 42, 0.94);
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-secondary:hover {
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.9);
  background: rgba(15, 23, 42, 1);
  transform: translateY(-1px);
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.3fr) minmax(0, 1.1fr);
  gap: 14px;
  margin-top: 10px;
}

@media (max-width: 900px) {
  .cart-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.cart-items {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.98);
  max-height: 360px;
  overflow: auto;
}

.cart-items-header {
  display: grid;
  grid-template-columns: 3fr 0.9fr 1.1fr;
  gap: 6px;
  padding: 8px 10px;
  font-size: 11px;
  color: var(--muted);
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
  background: rgba(15, 23, 42, 0.98);
  position: sticky;
  top: 0;
  z-index: 2;
}

.cart-item-row {
  display: grid;
  grid-template-columns: 3fr 0.9fr 1.1fr;
  gap: 6px;
  padding: 8px 10px;
  font-size: 12px;
  border-bottom: 1px solid rgba(31, 41, 55, 0.85);
  align-items: center;
  opacity: 0;
  transform: translateY(8px);
  animation: cartRowIn 0.35s ease-out forwards;
}

.cart-item-main {
  display: flex;
  gap: 9px;
  align-items: center;
}

.cart-item-thumb {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  overflow: hidden;
  background: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--muted);
}

.cart-item-thumb img {
  max-width: 90%;
  max-height: 90%;
}

.cart-item-title {
  font-size: 12px;
  font-weight: 500;
}

.cart-item-desc {
  font-size: 11px;
  color: var(--muted);
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 4px 6px;
  justify-content: center;
  width: fit-content;
  margin-inline: auto;
}

.qty-btn {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.98);
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
}

.qty-btn:hover {
  color: var(--text);
  background: rgba(31, 41, 55, 1);
  transform: translateY(-1px);
}

.cart-qty-value {
  min-width: 18px;
  text-align: center;
  font-size: 12px;
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
}

.cart-action-link {
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cart-action-link:hover {
  color: var(--text);
}

.cart-aside {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.98);
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.row-space {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.subtotal-value {
  font-size: 16px;
  font-weight: 600;
  color: #bbf7d0;
}

.helper-text {
  font-size: 11px;
  color: var(--muted);
}

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

.cart-empty {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  padding: 26px 10px;
}

.saved-title {
  font-size: 12px;
  font-weight: 500;
  margin-top: 8px;
  padding: 0 10px 4px;
  color: var(--muted);
}

/* Auth (Login / Registration) */
.auth-shell {
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: radial-gradient(circle at top, rgba(34, 197, 94, 0.18), rgba(15, 23, 42, 0.98));
  padding: 18px 16px 20px;
  box-shadow: var(--shadow-soft);
  max-width: 520px;
  margin-inline: auto;
}

.auth-tabs {
  display: inline-flex;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 3px;
  background: rgba(15, 23, 42, 0.96);
  margin-bottom: 12px;
}

.auth-tab {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  cursor: pointer;
  color: var(--muted);
  border: none;
  background: transparent;
  transition: var(--transition);
}

.auth-tab.active {
  background: rgba(34, 197, 94, 0.16);
  color: #bbf7d0;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.3);
}

.auth-form {
  display: none;
  margin-top: 10px;
}

.auth-form.active {
  display: block;
  animation: pageIn 0.3s ease-out forwards;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.form-label {
  font-size: 11px;
  color: var(--muted);
}

.form-input {
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.96);
  padding: 7px 10px;
  font-size: 12px;
  color: var(--text);
  outline: none;
}

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

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  margin-bottom: 8px;
  gap: 6px;
}

.form-checkbox-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 10px;
}

.link-inline {
  color: #a5b4fc;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-footer-text {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
  text-align: center;
}

/* About / Contact */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 18px;
  align-items: flex-start;
}

@media (max-width: 880px) {
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.about-card,
.contact-card {
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 1));
  padding: 18px 16px 18px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(10px);
  animation: cardIn 0.4s ease-out forwards;
}

.about-card h2,
.contact-card h2 {
  font-size: 18px;
  margin-bottom: 6px;
}

.about-paragraph {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.about-list {
  list-style: none;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.about-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.bullet-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.contact-field label {
  font-size: 11px;
  color: var(--muted);
}

.contact-input,
.contact-textarea {
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.96);
  padding: 7px 10px;
  font-size: 12px;
  color: var(--text);
  outline: none;
  resize: vertical;
  min-height: 70px;
}

.contact-input::placeholder,
.contact-textarea::placeholder {
  color: var(--muted);
}

.contact-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

/* Toast */
.toast {
  position: fixed;
  right: 16px;
  bottom: 18px;
  padding: 8px 12px;
  font-size: 11px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(34, 197, 94, 0.7);
  color: #bbf7d0;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 100;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

footer {
  position: fixed;
  left: 16px;
  bottom: 12px;
  margin: 0;
  padding: 0;
  font-size: 11px;
  color: #ffffff;        /* أبيض دايمًا */
  text-align: left;      /* تحت شمال */
  z-index: 120;          /* فوق التصميم */
}

/* Light theme overrides */
body.theme-light {
  --bg: #f3f4f6;
  --bg-soft: #e5e7eb;
  --bg-card: #ffffff;
  --text: #020617;
  --muted: #6b7280;
  --border: #d1d5db;
  background: radial-gradient(circle at top, #ffffff 0, #f3f4f6 55%, #e5e7eb 100%);
  color: var(--text);
}

body.theme-light header {
  background: linear-gradient(135deg, #ffffff, #f3f4f6);
  border-color: var(--border);
  box-shadow: 0 10px 25px rgba(148, 163, 184, 0.35);
}

body.theme-light .hero-card,
body.theme-light .hero-gallery,
body.theme-light .product-card,
body.theme-light .cart-shell,
body.theme-light .cart-items,
body.theme-light .cart-aside,
body.theme-light .auth-shell,
body.theme-light .about-card,
body.theme-light .contact-card {
  background: var(--bg-card);
  border-color: var(--border);
  box-shadow: 0 10px 30px rgba(148, 163, 184, 0.25);
}

body.theme-light .badge-soft,
body.theme-light .filter-group-label,
body.theme-light .filter-checkbox-label,
body.theme-light .input,
body.theme-light .select {
  background: #f9fafb;
  border-color: var(--border);
  color: var(--muted);
}

body.theme-light .hero-metric {
  border-color: var(--border);
}

body.theme-light .nav-link {
  color: #6b7280;
}

body.theme-light .nav-link.active {
  color: #111827;
  background: #ecfdf5;
  border-color: #22c55e;
}

body.theme-light footer {
  color: #9ca3af;
}

body.theme-light .btn-secondary {
  background: #f9fafb;
  border-color: var(--border);
  color: #374151;
}

body.theme-light .btn-icon {
  background: #f9fafb;
  border-color: var(--border);
  color: #4b5563;
}

body.theme-light .btn-icon:hover {
  background: #e5e7eb;
  color: #111827;
}

body.theme-light .cart-empty,
body.theme-light .section-subtitle,
body.theme-light .about-paragraph,
body.theme-light .about-list,
body.theme-light .contact-meta,
body.theme-light .helper-text {
  color: var(--muted);
}

/* PRODUCT MODAL */
.product-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 80;
}

.product-modal-backdrop.show {
  display: flex;
  animation: fadeIn 0.25s ease-out forwards;
}

.product-modal {
  max-width: 720px;
  width: calc(100% - 32px);
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 1));
  box-shadow: var(--shadow-soft);
  padding: 18px 18px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr);
  gap: 18px;
  transform: translateY(16px) scale(0.96);
  opacity: 0;
  animation: modalIn 0.28s cubic-bezier(0.16,1,0.3,1) forwards;
}

@media (max-width: 720px) {
  .product-modal {
    grid-template-columns: minmax(0, 1fr);
    max-height: 90vh;
    overflow: auto;
  }
}

.modal-media {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11px;
}

.modal-image-shell {
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.28), #020617 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  min-height: 180px;
}

.modal-image-shell img {
  max-width: 100%;
  max-height: 220px;
  display: block;
  filter: drop-shadow(0 16px 26px rgba(0,0,0,0.9));
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-header-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.modal-title {
  font-size: 17px;
  font-weight: 600;
}

.modal-rating {
  font-size: 11px;
  color: var(--muted);
}

.modal-desc {
  font-size: 12px;
  color: var(--muted);
}

.modal-specs {
  list-style: none;
  font-size: 11px;
  color: var(--muted);
  padding-left: 0;
}

.modal-specs li::before {
  content: "• ";
  color: #22c55e;
}

.modal-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  gap: 8px;
}

.modal-stock {
  font-size: 11px;
  color: #bbf7d0;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.modal-actions .btn-primary,
.modal-actions .btn-secondary {
  flex: 1;
  justify-content: center;
}

/* Animations */
@keyframes pageIn {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes cardIn {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cartRowIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes modalIn {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}


.hero-logo-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.hero-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #020617;
  padding: 4px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.45);
}

.hero-logo-text {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #bbf7d0;
}


.footer-inner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.footer-logo {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
}


.app-shell {
  position: relative;
  z-index: 0;
}

.app-shell::before {
  content: "";
  position: absolute;
  inset: 40px 10px 40px 10px;
  background-image: url("../images/logo.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 420px;
  opacity: 0.025;
  pointer-events: none;
  z-index: -1;
}
/* ---- Light mode color fixes ---- */

/* نخلي البانر اللي ورا صورة الهوم فاتح */
body.theme-light .hero-main-photo {
  background: #e5e7eb;
}

/* نخلي الفريم اللي ورا صورة المنتج في الكارت فاتح */
body.theme-light .product-media-inner {
  background: radial-gradient(
    circle at top left,
    rgba(34, 197, 94, 0.10),
    #e5e7eb 70%
  );
}

/* الكروت الصغيرة بتاعة New & trending في الهوم */
body.theme-light .mini-product-card {
  background: #f3f4f6;
  border-color: #d1d5db;
}

/* السعر يبقى أخضر واضح مش فاتح أوي */
body.theme-light .price-main {
  color: #16a34a;
}

/* لون الخصم يبقى أوضح في اللايت */
body.theme-light .discount-pill {
  background: rgba(248, 113, 113, 0.10);
  color: #b91c1c;
}

/* شارة New في اللايت مود */
body.theme-light .badge-new {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

/* بوردر الكروت في اللايت يبقى أفتح */
body.theme-light .product-card {
  border-color: #e5e7eb;
}
/* زرار Add to cart في الـ Light mode */
body.theme-light .btn-add {
  background: #22c55e;    /* أخضر واضح */
  color: #ffffff;         /* كتابة بيضا وواضحة */
}

body.theme-light .btn-add:hover {
  background: #16a34a;    /* أخضر أغمق شوية في الـ hover */
}