/***********************************************
 * My Shop — Premium UI Theme (v1.0)
 * - Design tokens (CSS variables)
 * - Light/Dark themes
 * - Layout scaffolding (header, footer, container)
 * - Admin panel, forms, buttons
 * - Product grid & cards
 * - States: empty, loading, success/error
 * - Components: badges, tags, modals, toasts
 * - Animations & transitions
 * - Utilities (spacing, display, typography)
 * - Responsive breakpoints
 ***********************************************/

/*----------------------------------------------
  0) CSS RESET (opinionated)
-----------------------------------------------*/
*,
*::before,
*::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html:focus-within { scroll-behavior: smooth; }
html, body { height: 100%; }
body {
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
ul, ol { list-style: none; }

/*----------------------------------------------
  1) DESIGN TOKENS (LIGHT THEME DEFAULT)
-----------------------------------------------*/
:root {
  /* brand */
  --brand: #6b5bff;
  --brand-600: #5a48ff;
  --brand-700: #4a38ff;
  --brand-800: #3b2aff;

  /* surface & base */
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f2f3f7;
  --surface-3: #e8eaf1;

  /* text */
  --text: #1d2330;
  --text-muted: #545d73;
  --text-inverse: #ffffff;

  /* borders & outlines */
  --line: #e3e6ee;
  --outline: #cfd6e6;

  /* semantic */
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #0ea5e9;

  /* accents */
  --accent-pink: #fb7185;
  --accent-teal: #14b8a6;
  --accent-amber: #fbbf24;

  /* shadows */
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 4px 12px rgba(16, 24, 40, 0.10);
  --shadow-lg: 0 10px 28px rgba(16, 24, 40, 0.12);

  /* radii */
  --r-6: 6px;
  --r-8: 8px;
  --r-10: 10px;
  --r-12: 12px;
  --r-16: 16px;
  --r-20: 20px;

  /* spacing scale */
  --sp-2: 2px;  --sp-4: 4px;  --sp-6: 6px;  --sp-8: 8px;
  --sp-10: 10px; --sp-12: 12px; --sp-14: 14px; --sp-16: 16px;
  --sp-20: 20px; --sp-24: 24px; --sp-28: 28px; --sp-32: 32px;
  --sp-40: 40px; --sp-48: 48px;

  /* typography */
  --ff: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --fs-12: 12px; --fs-13: 13px; --fs-14: 14px;
  --fs-16: 16px; --fs-18: 18px; --fs-20: 20px;
  --fs-24: 24px; --fs-28: 28px; --fs-32: 32px;

  /* card image height */
  --card-img-h: 220px;

  /* transitions */
  --fast: 120ms;
  --norm: 220ms;
  --slow: 420ms;
}

/*----------------------------------------------
  2) DARK THEME (opt-in via data-theme="dark")
-----------------------------------------------*/
[data-theme="dark"] {
  --bg: #0f1420;
  --surface: #121a2a;
  --surface-2: #0e1524;
  --surface-3: #0b1120;

  --text: #e7ecf5;
  --text-muted: #aeb6ca;
  --text-inverse: #0c1020;

  --line: #1e2a42;
  --outline: #243455;

  --brand: #8b7bff;
  --brand-600: #7a68ff;
  --brand-700: #6a58ff;
  --brand-800: #5a48ff;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);
}

/*----------------------------------------------
  3) GLOBAL BASE
-----------------------------------------------*/
body {
  font-family: var(--ff);
  background: radial-gradient(1200px 800px at 20% -10%, rgba(107,91,255,0.10), transparent 60%),
              radial-gradient(900px 700px at 85% 10%, rgba(14,165,233,0.10), transparent 60%),
              var(--bg);
  color: var(--text);
}

/* Reusable container */
.container {
  width: min(1100px, 92vw);
  margin-inline: auto;
}

/*----------------------------------------------
  4) HEADER & FOOTER
-----------------------------------------------*/
header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0.3)), var(--surface);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
[data-theme="dark"] header {
  background: linear-gradient(180deg, rgba(18,26,42,0.7), rgba(18,26,42,0.3)), var(--surface);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-16) 0;
}
header h1 {
  font-size: var(--fs-24);
  letter-spacing: 0.2px;
}
header .brand-dot {
  color: var(--brand);
}

footer {
  margin-top: var(--sp-40);
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
footer .container {
  padding: var(--sp-20) 0;
  text-align: center;
  color: var(--text-muted);
  font-size: var(--fs-14);
}

/*----------------------------------------------
  5) ADMIN PANEL
-----------------------------------------------*/
.admin-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  border-radius: var(--r-16);
  padding: var(--sp-24);
  width: min(720px, 96vw);
  margin: var(--sp-24) auto;
}

.admin-panel h2 {
  font-size: var(--fs-20);
  margin-bottom: var(--sp-16);
  display: flex; align-items: center; gap: var(--sp-8);
}
.admin-panel h2::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 6px rgba(107,91,255,0.18);
}

.admin-panel form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
}

.admin-panel input,
.admin-panel textarea {
  background: var(--surface-2);
  border: 1px solid var(--outline);
  color: var(--text);
  border-radius: var(--r-10);
  padding: 12px 14px;
  outline: none;
  transition: border var(--norm) ease, box-shadow var(--norm) ease, background var(--norm) ease;
}
.admin-panel textarea {
  grid-column: 1 / -1;
  min-height: 96px;
  resize: vertical;
}

.admin-panel input::placeholder,
.admin-panel textarea::placeholder { color: var(--text-muted); }

.admin-panel input:focus,
.admin-panel textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(107,91,255,0.18);
  background: var(--surface);
}

.admin-panel button[type="submit"] {
  grid-column: 1 / -1;
  justify-self: start;
}

/* Clear All button */
#clear-all {
  margin-top: var(--sp-12);
  width: 100%;
}

/* Helpful hints */
.form-hint {
  grid-column: 1 / -1;
  font-size: var(--fs-13);
  color: var(--text-muted);
}

/*----------------------------------------------
  6) BUTTONS
-----------------------------------------------*/
.btn,
.admin-panel button,
.card-buttons button,
#clear-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border-radius: var(--r-10);
  border: 1px solid transparent;
  background: var(--brand);
  color: var(--text-inverse);
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: transform var(--fast) ease, filter var(--fast) ease, box-shadow var(--fast) ease, background var(--fast) ease;
}

.btn:hover,
.admin-panel button:hover,
.card-buttons button:hover,
#clear-all:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: var(--shadow-md);
}

.btn:active,
.admin-panel button:active,
.card-buttons button:active,
#clear-all:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.btn-outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}
.btn-outline:hover {
  background: rgba(107,91,255,0.08);
  box-shadow: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--surface-2); }

.btn-success { background: var(--success); }
.btn-warning { background: var(--warning); }
.btn-danger  { background: var(--danger); }
.btn-info    { background: var(--info);   }

/* Specifics */
#clear-all { background: var(--danger); }
#clear-all:disabled {
  opacity: 0.6; cursor: not-allowed;
}

/*----------------------------------------------
  7) PRODUCTS SECTION
-----------------------------------------------*/
.products-section {
  padding: var(--sp-32) 0 var(--sp-40);
}
.products-section h2 {
  text-align: center;
  font-size: var(--fs-24);
  margin-bottom: var(--sp-20);
  color: var(--text);
}

/* Grid */
.products-grid {
  width: min(1100px, 96vw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--sp-20);
}

/* Responsive card columns */
@media (min-width: 1000px) {
  .products-grid > * { grid-column: span 3; } /* 4 cols */
}
@media (min-width: 700px) and (max-width: 999px) {
  .products-grid > * { grid-column: span 4; } /* 3 cols */
}
@media (max-width: 699px) {
  .products-grid > * { grid-column: span 6; } /* 2 cols */
}

/* Empty state */
.empty-message {
  grid-column: 1 / -1;
  background: var(--surface);
  border: 1px dashed var(--outline);
  border-radius: var(--r-16);
  padding: var(--sp-24);
  text-align: center;
  color: var(--text-muted);
  font-size: var(--fs-16);
}

/*----------------------------------------------
  8) PRODUCT CARD
-----------------------------------------------*/
.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-16);
  overflow: clip;
  box-shadow: var(--shadow-sm);
  transition: transform var(--norm) ease, box-shadow var(--norm) ease, border-color var(--norm) ease;
  position: relative;
  isolation: isolate;
}
.product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(107,91,255,0.06), transparent 40%);
  opacity: 0; pointer-events: none;
  transition: opacity var(--norm) ease;
  z-index: -1;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(107,91,255,0.35);
}
.product-card:hover::after { opacity: 1; }

/* Image */
.product-image {
  width: 100%;
  height: var(--card-img-h);
  background: var(--surface-2);
  overflow: hidden;
  position: relative;
}
.product-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform var(--slow) ease, filter var(--norm) ease;
}
.product-card:hover .product-image img { transform: scale(1.06); }

/* Badges on image */
.badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 6px 10px;
  background: var(--brand);
  color: var(--text-inverse);
  border-radius: 999px;
  font-size: var(--fs-12);
  box-shadow: var(--shadow-sm);
}
.badge--sale { background: var(--danger); }
.badge--new  { background: var(--accent-teal); }
.badge--hot  { background: var(--accent-amber); }

/* Info */
.product-info {
  display: grid;
  gap: var(--sp-8);
  padding: var(--sp-16);
}
.product-name {
  font-size: var(--fs-18);
  color: var(--text);
}
.product-description {
  color: var(--text-muted);
  font-size: var(--fs-14);
  min-height: 40px;
  max-height: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Price + buttons row */
.price-and-buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-10);
  margin-top: var(--sp-8);
}
.product-price {
  font-weight: 700;
  font-size: var(--fs-18);
  color: var(--success);
}

.card-buttons {
  display: inline-flex;
  gap: var(--sp-8);
}
.card-buttons .btn-edit {
  background: var(--warning);
}
.card-buttons .btn-delete {
  background: var(--danger);
}

/* Hover glint */
.product-card:hover .product-info { position: relative; }
.product-card:hover .product-info::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 20%, rgba(255,255,255,0.15) 50%, transparent 80%);
  transform: translateX(-120%);
  animation: glint 1.2s linear forwards;
  pointer-events: none;
}
@keyframes glint {
  to { transform: translateX(120%); }
}

/*----------------------------------------------
  9) FORM STATES & HELPERS
-----------------------------------------------*/
.is-editing .admin-panel button[type="submit"] {
  background: var(--info);
}
input:invalid, textarea:invalid { border-color: var(--danger); }
input:valid, textarea:valid { border-color: var(--outline); }

/* Floating help chips */
.help-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--text-muted);
  font-size: var(--fs-12);
}

/*----------------------------------------------
  10) TOASTS (for future JS use)
-----------------------------------------------*/
.toast {
  position: fixed;
  bottom: 20px; right: 20px;
  padding: 12px 16px;
  border-radius: var(--r-10);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  color: var(--text);
  min-width: 220px;
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--norm) ease, transform var(--norm) ease;
}
.toast.show {
  opacity: 1; transform: translateY(0);
  pointer-events: auto;
}
.toast--success { border-color: rgba(34,197,94,0.35); }
.toast--error   { border-color: rgba(239,68,68,0.35); }
.toast--info    { border-color: rgba(14,165,233,0.35); }

/*----------------------------------------------
  11) MODAL (for cart or previews later)
-----------------------------------------------*/
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(12, 18, 34, 0.55);
  backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none;
  transition: opacity var(--norm) ease;
}
.modal-backdrop.show { opacity: 1; pointer-events: auto; }

.modal {
  position: fixed; inset: 0;
  display: grid; place-items: center;
  opacity: 0; pointer-events: none;
  transition: opacity var(--norm) ease;
}
.modal.show { opacity: 1; pointer-events: auto; }
.modal__dialog {
  width: min(560px, 92vw);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-16);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.modal__header, .modal__footer {
  padding: var(--sp-16);
  border-bottom: 1px solid var(--line);
}
.modal__footer { border-top: 1px solid var(--line); border-bottom: none; }
.modal__body { padding: var(--sp-16); }

/*----------------------------------------------
  12) LOADING SKELETONS
-----------------------------------------------*/
.skeleton {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2));
  background-size: 300% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton.text { height: 12px; width: 100%; margin: 6px 0; }
.skeleton.img  { height: var(--card-img-h); width: 100%; }

/*----------------------------------------------
  13) BADGES & TAGS
-----------------------------------------------*/
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-size: var(--fs-12);
}
.tag--brand  { color: var(--brand);  border-color: rgba(107,91,255,0.35); }
.tag--green  { color: var(--success); border-color: rgba(34,197,94,0.35); }
.tag--amber  { color: var(--warning); border-color: rgba(245,158,11,0.35); }
.tag--pink   { color: var(--accent-pink); border-color: rgba(251,113,133,0.35); }

/*----------------------------------------------
  14) SEARCH / FILTER BAR (optional markup)
-----------------------------------------------*/
.searchbar {
  width: min(1100px, 96vw);
  margin: var(--sp-20) auto;
  display: grid;
  grid-template-columns: 1fr 160px 160px;
  gap: var(--sp-12);
}
.searchbar input,
.searchbar select {
  height: 44px;
  border-radius: var(--r-10);
  border: 1px solid var(--outline);
  background: var(--surface);
  padding: 0 var(--sp-12);
  color: var(--text);
}
@media (max-width: 700px) {
  .searchbar { grid-template-columns: 1fr; }
}

/*----------------------------------------------
  15) UTILITIES (spacing, display, text, radius)
-----------------------------------------------*/
.mt-8  { margin-top: var(--sp-8); }
.mt-12 { margin-top: var(--sp-12); }
.mt-16 { margin-top: var(--sp-16); }
.mt-20 { margin-top: var(--sp-20); }
.mt-24 { margin-top: var(--sp-24); }
.mt-32 { margin-top: var(--sp-32); }
.mb-8  { margin-bottom: var(--sp-8); }
.mb-12 { margin-bottom: var(--sp-12); }
.mb-16 { margin-bottom: var(--sp-16); }
.mb-20 { margin-bottom: var(--sp-20); }
.mb-24 { margin-bottom: var(--sp-24); }
.mb-32 { margin-bottom: var(--sp-32); }

.p-8  { padding: var(--sp-8); }
.p-12 { padding: var(--sp-12); }
.p-16 { padding: var(--sp-16); }
.p-20 { padding: var(--sp-20); }
.p-24 { padding: var(--sp-24); }

.d-flex { display: flex; }
.d-grid { display: grid; }
.center { display: grid; place-items: center; }

.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-sm { font-size: var(--fs-14); }
.text-lg { font-size: var(--fs-20); }
.bold   { font-weight: 700; }

.round-8  { border-radius: var(--r-8); }
.round-12 { border-radius: var(--r-12); }
.round-16 { border-radius: var(--r-16); }

/* Focus ring utility */
.focus-ring:focus { box-shadow: 0 0 0 4px rgba(107,91,255,0.25); outline: none; }

/*----------------------------------------------
  16) RESPONSIVE TWEAKS
-----------------------------------------------*/
@media (max-width: 900px) {
  :root { --card-img-h: 200px; }
  header h1 { font-size: var(--fs-20); }
  .admin-panel { padding: var(--sp-20); }
}

@media (max-width: 600px) {
  :root { --card-img-h: 180px; }
  .admin-panel form { grid-template-columns: 1fr; }
  .product-description { max-height: 60px; }
}

/*----------------------------------------------
  17) PRINT STYLES (nice for portfolios)
-----------------------------------------------*/
@media print {
  header, footer, #clear-all { display: none !important; }
  body { background: #fff; color: #000; }
  .admin-panel, .product-card {
    border: 1px solid #000 !important;
    box-shadow: none !important;
  }
}

/*----------------------------------------------
  18) SMALL EXTRAS (micro-interactions)
-----------------------------------------------*/
.ripple {
  position: relative; overflow: hidden;
}
.ripple:active::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.45), transparent 40%);
  transform: scale(0);
  animation: ripple 450ms ease-out forwards;
}
@keyframes ripple { to { transform: scale(2.4); opacity: 0; } }

/* Tooltip (quick) */
.tooltip {
  position: relative;
}
.tooltip:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%; transform: translateX(-50%);
  white-space: nowrap;
  background: var(--text);
  color: var(--text-inverse);
  font-size: var(--fs-12);
  padding: 6px 8px;
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
}

/*----------------------------------------------
  19) THEME TOGGLE (optional markup)
-----------------------------------------------*/
.theme-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
}
.theme-toggle input { appearance: none; width: 36px; height: 20px; background: var(--surface-2); border-radius: 999px; position: relative; border: 1px solid var(--outline); }
.theme-toggle input::after {
  content: ""; position: absolute; top: 50%; left: 2px; transform: translateY(-50%);
  width: 16px; height: 16px; border-radius: 50%; background: var(--brand); transition: left var(--norm) ease;
}
.theme-toggle input:checked::after { left: 18px; }

/*----------------------------------------------
  20) ACCESSIBILITY
-----------------------------------------------*/
.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  position: static; width: auto; height: auto; margin: var(--sp-8);
  background: var(--brand); color: var(--text-inverse); padding: 6px 10px; border-radius: 6px;
}

/*----------------------------------------------
  21) DEMO STYLES (optional if you add examples)
-----------------------------------------------*/
.demo-banner {
  width: min(1100px, 96vw);
  margin: var(--sp-16) auto;
  padding: var(--sp-12) var(--sp-16);
  background: linear-gradient(90deg, rgba(107,91,255,0.08), rgba(14,165,233,0.08));
  border: 1px solid var(--line);
  border-radius: var(--r-12);
  color: var(--text-muted);
  display: flex; justify-content: space-between; align-items: center;
}

/*----------------------------------------------
  22) HERO BANNER SECTION
-----------------------------------------------*/
.hero-banner {
  width: 100%;
  background: linear-gradient(135deg, var(--brand), var(--brand-700));
  color: white;
  padding: var(--sp-20) var(--sp-16);
  text-align: center;
  margin-bottom: var(--sp-16);
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: var(--sp-8);
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: var(--sp-12);
  opacity: 0.9;
}

.hero-image {
  width: 100%;
  max-width: 1200px;
  height: 400px;
  object-fit: cover;
  border-radius: var(--r-12);
  margin: 0 auto;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/*----------------------------------------------
  23) FEATURED PRODUCTS SECTION
-----------------------------------------------*/
.featured-section {
  width: min(1200px, 96vw);
  margin: var(--sp-20) auto;
  padding: 0 var(--sp-16);
}

.featured-section h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: var(--sp-16);
  color: var(--text);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-16);
  margin-bottom: var(--sp-20);
}

.featured-card {
  background: var(--surface);
  border-radius: var(--r-12);
  padding: var(--sp-12);
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--line);
}

.featured-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.featured-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--r-8);
  margin-bottom: var(--sp-8);
}

.featured-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--sp-4);
}

.featured-card p {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand);
}

/*----------------------------------------------
  24) ENHANCED FORM STYLES
-----------------------------------------------*/
.enhanced-form {
  background: var(--surface);
  padding: var(--sp-16);
  border-radius: var(--r-12);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 1px solid var(--line);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  margin-bottom: var(--sp-12);
}

.form-row:last-of-type {
  grid-template-columns: 1fr;
}

.submit-btn {
  background: linear-gradient(135deg, var(--brand), var(--brand-600));
  color: white;
  border: none;
  padding: var(--sp-12) var(--sp-20);
  border-radius: var(--r-8);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: var(--sp-8);
}

.submit-btn:hover {
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(107,91,255,0.3);
}

/*----------------------------------------------
  25) SEARCH BAR
-----------------------------------------------*/
.search-bar {
  display: flex;
  gap: var(--sp-8);
  align-items: center;
}

.search-bar input {
  flex: 1;
  padding: var(--sp-8) var(--sp-12);
  border: 1px solid var(--line);
  border-radius: var(--r-6);
  background: var(--surface);
}

.search-bar button {
  background: var(--brand);
  color: white;
  border: none;
  padding: var(--sp-8) var(--sp-16);
  border-radius: var(--r-6);
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-bar button:hover {
  background: var(--brand-600);
}

/*----------------------------------------------
  26) PRODUCT BADGES
-----------------------------------------------*/
.product-badge {
  position: absolute;
  top: var(--sp-8);
  right: var(--sp-8);
  background: var(--brand);
  color: white;
  padding: 4px 8px;
  border-radius: var(--r-4);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-badge.sale {
  background: #dc3545;
}

.product-badge.hot {
  background: #fd7e14;
}

/*----------------------------------------------
  27) ABOUT SECTION
-----------------------------------------------*/
.about-section {
  width: min(1200px, 96vw);
  margin: var(--sp-20) auto;
  padding: 0 var(--sp-16);
}

.about-section h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: var(--sp-16);
  color: var(--text);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-20);
  align-items: center;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.about-text p {
  margin-bottom: var(--sp-12);
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--r-12);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

/*----------------------------------------------
  28) ENHANCED FOOTER
-----------------------------------------------*/
footer {
  background: var(--surface-3);
  margin-top: var(--sp-24);
  padding: var(--sp-20) 0;
  border-top: 1px solid var(--line);
}

.footer-content {
  width: min(1200px, 96vw);
  margin: 0 auto;
  padding: 0 var(--sp-16);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--sp-16);
}

.footer-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--sp-8);
}

.footer-section p {
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
}

.footer-section a {
  color: var(--brand);
  text-decoration: none;
}

.footer-section a:hover {
  text-decoration: underline;
}

.footer-bottom {
  width: min(1200px, 96vw);
  margin: var(--sp-16) auto 0;
  padding: var(--sp-16) var(--sp-16) 0;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--text-muted);
}

/*----------------------------------------------
  29) ENHANCED NAVIGATION
-----------------------------------------------*/
header nav ul {
  display: flex;
  gap: var(--sp-16);
  justify-content: center;
  margin-top: var(--sp-8);
}

header nav a {
  color: var(--text-muted);
  font-weight: 500;
  padding: var(--sp-4) var(--sp-8);
  border-radius: var(--r-6);
  transition: all 0.3s ease;
}

header nav a:hover {
  color: var(--brand);
  background: rgba(107,91,255,0.1);
}

/*----------------------------------------------
  30) RESPONSIVE DESIGN
-----------------------------------------------*/
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .featured-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: var(--sp-16);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/*----------------------------------------------
  31) END
-----------------------------------------------*/