/* ============================================================
   LUMORA — Design System & Store Styles
   ============================================================ */

/* ---- Variables -------------------------------------------- */
:root {
  --color-primary:       #FF6600;
  --color-primary-hover: #E55A00;
  --color-primary-light: #FFF4EE;
  --color-primary-muted: rgba(255, 102, 0, 0.08);

  --color-bg:            #FFFFFF;
  --color-bg-subtle:     #F9F9F9;
  --color-bg-dark:       #0F0F0F;

  --color-text:          #111111;
  --color-text-muted:    #6B7280;
  --color-text-light:    #9CA3AF;

  --color-border:        #E8E8E8;
  --color-border-hover:  #D1D5DB;

  --font-display:        'Plus Jakarta Sans', sans-serif;
  --font-body:           'Inter', sans-serif;

  --radius-xs:  4px;
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 999px;

  --shadow-xs:  0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm:  0 1px 4px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.06);
  --shadow-xl:  0 16px 48px rgba(0,0,0,0.12);

  --max-width:  1200px;
  --nav-height: 68px;

  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.6;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

/* ---- Typography ------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* ---- Layout ------------------------------------------------ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255,102,0,0.35);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}
.btn-outline:hover {
  border-color: var(--color-text);
  background: var(--color-bg-subtle);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  padding: 12px 16px;
}
.btn-ghost:hover { color: var(--color-text); background: var(--color-bg-subtle); }

.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-lg { padding: 16px 36px; font-size: 17px; }

/* ---- Navigation ------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  height: var(--nav-height);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-text);
}
.nav-logo span { color: var(--color-primary); }

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

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-link:hover { color: var(--color-text); background: var(--color-bg-subtle); }
.nav-link.active { color: var(--color-text); }

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

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  min-width: 200px;
  transition: all var(--transition);
}
.nav-search:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255,102,0,0.1);
}

.nav-search input {
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text);
  outline: none;
  width: 100%;
}
.nav-search input::placeholder { color: var(--color-text-light); }

.nav-search-icon { color: var(--color-text-light); flex-shrink: 0; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---- Hero -------------------------------------------------- */
.hero {
  padding: 100px 24px 80px;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}
.hero-eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
}

.hero-headline {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-headline em {
  font-style: normal;
  color: var(--color-primary);
}

.hero-subtext {
  font-size: 18px;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-text);
}
.hero-stat-label {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* Hero visual */
.hero-visual {
  position: relative;
}

.hero-card-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.05;
}

.hero-card {
  position: absolute;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero-card-main {
  width: 80%;
  aspect-ratio: 3/4;
  top: 0; right: 0;
  z-index: 2;
}

.hero-card-secondary {
  width: 60%;
  aspect-ratio: 4/3;
  bottom: 0; left: 0;
  z-index: 3;
  box-shadow: var(--shadow-xl);
  border: 3px solid #fff;
}

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

.hero-card-badge {
  position: absolute;
  bottom: 12px; left: 12px; right: 12px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: #fff;
}

/* Main card badge floats at the top so it isn't covered by the secondary card */
.hero-card-main .hero-card-badge {
  top: 12px;
  bottom: auto;
}
.hero-card-badge-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
}
.hero-card-badge-price {
  font-size: 12px;
  color: var(--color-primary);
  font-weight: 600;
  margin-top: 2px;
}

/* Floating tag */
.hero-float-tag {
  position: absolute;
  top: 20%; left: -5%;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 4;
  animation: float 3s ease-in-out infinite;
}
.hero-float-tag span {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---- Category Filter -------------------------------------- */
.category-section {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
  position: sticky;
  top: var(--nav-height);
  z-index: 90;
}

.category-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  height: 56px;
}
.category-inner::-webkit-scrollbar { display: none; }

.category-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
  transition: all var(--transition);
  border: 1.5px solid transparent;
  cursor: pointer;
  background: transparent;
}
.category-btn:hover {
  color: var(--color-text);
  background: var(--color-bg-subtle);
  border-color: var(--color-border);
}
.category-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* ---- Products Section -------------------------------------- */
.products-section {
  padding: 64px 0;
}

.products-header {
  max-width: var(--max-width);
  margin: 0 auto 40px;
  padding: 0 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.section-subtitle {
  font-size: 15px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.products-count {
  font-size: 14px;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

/* ---- Product Grid ----------------------------------------- */
.product-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* ---- Product Card ----------------------------------------- */
.product-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: transparent;
}

.product-card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--color-bg-subtle);
  position: relative;
}
.product-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}
.product-card:hover .product-card-image img { transform: scale(1.04); }

.product-card-category {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary);
  padding: 4px 10px;
}

.product-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-card-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text);
  line-height: 1.3;
}

.product-card-tagline {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.5;
  flex: 1;
}

.product-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--color-text-light);
}
.product-card-meta span { display: flex; align-items: center; gap: 4px; }

.product-card-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-card-price {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
}
.product-card-price-label {
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 400;
  margin-left: 2px;
}

.product-card-buy {
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  transition: all var(--transition);
}
.product-card-buy:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,102,0,0.3);
}

/* ---- Featured Product ------------------------------------- */
.featured-section {
  max-width: var(--max-width);
  margin: 0 auto 64px;
  padding: 0 24px;
}

.featured-card {
  background: var(--color-bg-dark);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 380px;
}

.featured-card-visual {
  position: relative;
  overflow: hidden;
}
.featured-card-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.featured-card-content {
  padding: 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.featured-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.featured-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.featured-description {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
}

.featured-price {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
}
.featured-price sup {
  font-size: 18px;
  vertical-align: super;
  font-weight: 600;
}

.featured-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-white {
  background: #fff;
  color: var(--color-text);
}
.btn-white:hover {
  background: var(--color-bg-subtle);
  transform: translateY(-1px);
}

.btn-outline-white {
  background: transparent;
  color: rgba(255,255,255,0.75);
  border: 1.5px solid rgba(255,255,255,0.2);
}
.btn-outline-white:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}

/* ---- Trust Strip ------------------------------------------ */
.trust-strip {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 32px 24px;
  margin-bottom: 80px;
}

.trust-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.trust-icon {
  width: 40px; height: 40px;
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.trust-text-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
}
.trust-text-sub {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 1px;
}

/* ---- Final CTA Section ------------------------------------ */
.cta-section {
  background: var(--color-primary-light);
  padding: 100px 24px;
  text-align: center;
}

.cta-inner {
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.cta-text {
  font-size: 17px;
  color: var(--color-text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
}

.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- Footer ----------------------------------------------- */
.footer {
  background: var(--color-bg-dark);
  color: rgba(255,255,255,0.6);
  padding: 64px 24px 32px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 32px;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 12px;
}
.footer-brand-name span { color: var(--color-primary); }

.footer-brand-text {
  font-size: 14px;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-link {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-link:hover { color: #fff; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-bottom-right a { color: var(--color-primary); }

/* ---- Loading States --------------------------------------- */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.product-card-skeleton .product-card-image { background: #f0f0f0; }
.product-card-skeleton .product-card-body { gap: 12px; }
.skeleton-line { height: 16px; }
.skeleton-line-sm { height: 12px; width: 60%; }
.skeleton-line-lg { height: 22px; }

/* ---- Empty / Error States --------------------------------- */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 24px;
  color: var(--color-text-muted);
}
.empty-state-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}
.empty-state-text { font-size: 15px; }

/* ---- Toast ------------------------------------------------ */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--color-bg-dark);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  z-index: 9999;
  transform: translateY(80px);
  opacity: 0;
  transition: all 300ms ease;
}
.toast.visible { transform: translateY(0); opacity: 1; }

/* ---- Mobile Menu ------------------------------------------ */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #fff;
  flex-direction: column;
  padding: 24px;
}
.mobile-menu.open { display: flex; }

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.mobile-menu-close {
  font-size: 24px;
  padding: 8px;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ---- Responsive ------------------------------------------- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 60px 24px 48px;
    gap: 40px;
  }
  .hero-visual { display: none; }
  .hero-stats { gap: 24px; }

  .featured-card { grid-template-columns: 1fr; }
  .featured-card-visual { aspect-ratio: 16/9; }
  .featured-card-content { padding: 36px; }

  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .nav-links, .nav-search { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 600px) {
  :root { --nav-height: 60px; }

  .product-grid { grid-template-columns: 1fr; gap: 16px; }

  .footer-top { grid-template-columns: 1fr; }
  .featured-card-content { padding: 24px; }

  .cta-section { padding: 64px 24px; }
  .trust-inner { gap: 32px; }
}
