/* Storefront CSS (Landing, Ordering, Register) */

/* ── Landing Brand Dot ── */
.ov-dot-landing {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(16,185,129,.35), 0 0 20px rgba(16,185,129,.15);
  animation: ovDotPulse 2s ease-in-out infinite;
}
@keyframes ovDotPulse {
  0%, 100% { box-shadow: 0 0 6px rgba(16,185,129,.3), 0 0 16px rgba(16,185,129,.12); }
  50%      { box-shadow: 0 0 12px rgba(16,185,129,.5), 0 0 30px rgba(16,185,129,.2); }
}

/* ── Landing Theme Toggle ── */
.theme-toggle-landing {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all var(--trans-base);
  flex-shrink: 0;
}
.theme-toggle-landing:hover {
  border-color: var(--green);
  box-shadow: 0 0 12px rgba(16,185,129,.2);
  transform: rotate(15deg);
}
.ttl-icon { line-height: 1; }

/* NAV */
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 5%;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-2);
  transition: background .3s;
}
[data-theme="dark"] .nav-bar {
  background: rgba(11, 14, 20, 0.85);
}

.nav-brand-logo {
  font-size: 22px;
  font-weight: 900;
  color: var(--green);
  text-decoration: none;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.nav-cta {
  padding: 10px 20px;
  border-radius: var(--r-full);
}

/* Hero CTA buttons */
.hero-btn {
  border-radius: var(--r-full);
  padding: 16px 36px;
  font-size: 16px;
}
.hero-btn.btn-ghost {
  background: var(--bg-card);
}

/* Features section */
.features-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border-2);
  border-bottom: 1px solid var(--border-2);
  max-width: 100%;
}
.features-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* HERO SECTION */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 120px 24px 80px;
  background: radial-gradient(circle at top right, var(--green-light) 0%, var(--bg) 40%),
              radial-gradient(circle at bottom left, var(--green-xlight) 0%, var(--bg) 40%);
  position: relative;
  overflow: hidden;
  transition: background .3s;
}

.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.hero-badge {
  background: var(--bg-card);
  color: var(--green-dark);
  padding: 8px 18px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 32px;
  box-shadow: var(--sh-md);
  border: 1px solid var(--green-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  animation: slideUpFade 0.6s ease-out;
}

.hero h1 {
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  max-width: 800px;
  margin-bottom: 24px;
  color: var(--navy);
  animation: slideUpFade 0.6s ease-out 0.1s both;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 20px;
  color: var(--gray);
  max-width: 580px;
  line-height: 1.6;
  margin-bottom: 40px;
  animation: slideUpFade 0.6s ease-out 0.2s both;
  font-weight: 500;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  animation: slideUpFade 0.6s ease-out 0.3s both;
}

/* STEPS/FEATURES */
.section { padding: 100px 24px; max-width: 1100px; margin: 0 auto; }

.section-title {
  font-size: 40px;
  font-weight: 900;
  text-align: center;
  letter-spacing: -1px;
  margin-bottom: 16px;
  color: var(--navy);
}

.section-sub {
  text-align: center;
  color: var(--gray);
  font-size: 18px;
  margin-bottom: 64px;
  font-weight: 500;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.step-card, .feat-card {
  background: var(--bg-card);
  border-radius: var(--r-xl);
  padding: 40px 32px;
  box-shadow: var(--sh);
  border: 1px solid var(--border-2);
  transition: all var(--trans-base);
  position: relative;
  overflow: hidden;
}

.step-card:hover, .feat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--sh-xl);
  border-color: var(--green-light);
}

.step-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--green-light), var(--green));
  opacity: 0;
  transition: opacity var(--trans-base);
}

.step-card:hover::after { opacity: 1; }

.step-num, .feat-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  background: var(--green-xlight);
  color: var(--green);
  font-weight: 800;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 8px 16px rgba(16, 185, 129, 0.1);
}

.step-card h3, .feat-card h4 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--navy);
}

.step-card p, .feat-card p {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.6;
}

/* CTA Bottom */
.cta-bottom {
  text-align: center;
  padding: 100px 24px;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  position: relative;
  overflow: hidden;
}

.cta-bottom::after {
  content: '';
  position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 40%);
  pointer-events: none;
}

.cta-bottom h2 {
  font-size: 42px; font-weight: 900; color: white; margin-bottom: 16px;
  letter-spacing: -1px;
}

.cta-bottom p {
  font-size: 18px; color: rgba(255,255,255,0.85); margin-bottom: 40px; font-weight: 500;
}

.btn-white {
  background: white; color: var(--green-dark); padding: 18px 40px;
  border-radius: var(--r-full); font-size: 18px; font-weight: 800; text-decoration: none;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2); transition: all var(--trans-bounce);
  display: inline-block;
}

.btn-white:hover {
  transform: scale(1.05); box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.footer {
  text-align: center; padding: 32px; color: var(--gray-light); font-size: 14px;
  background: var(--bg-dark); border-top: 1px solid rgba(255,255,255,0.05);
}

/* === ORDER VIEW ENHANCEMENTS === */

.store-hero {
  background: linear-gradient(150deg, #0b7a55 0%, #059669 45%, #047857 100%);
  padding: 60px 20px;
  position: relative;
  overflow: hidden;
  text-align: center;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

.store-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 24px 24px; pointer-events: none;
}

/* Category Nav Enhanced */
.cat-nav-wrap {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
[data-theme="dark"] .cat-nav-wrap {
  background: rgba(20, 24, 33, 0.9);
}

.cat-tab {
  padding: 10px 20px;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 700;
  color: var(--gray);
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--trans-base);
  border: 2px solid transparent;
}

.cat-tab:hover {
  color: var(--navy);
  background: var(--border-2);
}

.cat-tab.active {
  color: var(--green-dark);
  background: var(--green-xlight);
  border-color: var(--green-light);
}

/* Item Card Custom */
.item-card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  padding: 16px 20px;
  box-shadow: var(--sh-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all var(--trans-base);
  position: relative;
  overflow: hidden;
}

.item-card:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
  border-color: var(--green-light);
}

.item-card.in-cart {
  border-color: var(--green);
  background: var(--green-xlight);
}

.item-card.in-cart::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--green);
}

/* Enhanced Cart Bar */
.cart-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 20;
  padding: 20px;
  background: linear-gradient(to top, rgba(248, 250, 252, 0.9) 50%, transparent);
  pointer-events: none;
}

.cart-bar-btn {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: var(--r-full);
  padding: 18px 24px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.3);
  transition: all var(--trans-bounce);
  pointer-events: auto;
}

.cart-bar-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.4);
  background: #0f172a;
}

.cbb-badge {
  background: var(--green);
  color: white;
  min-width: 28px;
  height: 28px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.1);
}

/* Modals & Drawers */
.drawer {
  background: var(--bg-card);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  box-shadow: var(--sh-xl);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: flex-end;
  justify-content: center;
}

.overlay.open { display: flex; animation: fadeIn 0.3s ease-out; }

/* Checkout Progress */
.checkout-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 32px 0;
}

.cp-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border-2);
  color: var(--gray);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cp-step.done .cp-dot {
  background: var(--green);
  color: white;
  box-shadow: 0 0 0 4px var(--green-light);
}

/* Card Form Styles */
.auth-card {
  background: var(--bg-card);
  border-radius: var(--r-xl);
  padding: 48px;
  box-shadow: var(--sh-xl);
  border: 1px solid var(--border-2);
  width: 100%;
  max-width: 480px;
  position: relative;
  z-index: 2;
}

@media (max-width: 600px) {
  .auth-card { padding: 32px 24px; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 768px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Nav */
  .nav-bar {
    padding: 14px 16px;
    gap: 10px;
  }
  .nav-brand-logo {
    font-size: 18px;
  }
  .nav-brand-logo span { font-size: 22px !important; }
  .nav-actions {
    gap: 8px;
  }
  .nav-cta {
    padding: 8px 14px;
    font-size: 13px;
  }

  /* Hero */
  .hero {
    padding: 70px 20px 50px;
  }
  .hero h1 {
    font-size: 32px;
    letter-spacing: -1px;
  }
  .hero p {
    font-size: 16px;
    margin-bottom: 28px;
  }
  .hero-cta {
    flex-direction: column;
    width: 100%;
    padding: 0 8px;
  }
  .hero-cta .btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
    text-align: center;
  }

  /* Sections */
  .section {
    padding: 60px 16px;
  }
  .section-title {
    font-size: 26px;
    letter-spacing: -0.5px;
  }
  .section-sub {
    font-size: 15px;
    margin-bottom: 36px;
  }

  /* Grids */
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .step-card, .feat-card {
    padding: 28px 22px;
  }
  .step-card h3, .feat-card h4 {
    font-size: 17px;
  }
  .step-card p, .feat-card p {
    font-size: 14px;
  }
  .step-num, .feat-icon {
    width: 46px;
    height: 46px;
    font-size: 20px;
    margin-bottom: 16px;
  }

  /* CTA Bottom */
  .cta-bottom {
    padding: 60px 20px;
  }
  .cta-bottom h2 {
    font-size: 26px;
    letter-spacing: -0.5px;
  }
  .cta-bottom p {
    font-size: 15px;
    margin-bottom: 28px;
  }
  .btn-white {
    padding: 14px 28px;
    font-size: 15px;
  }

  /* Footer */
  .footer {
    padding: 24px 16px;
    font-size: 13px;
  }

  /* Store Hero */
  .store-hero {
    padding: 40px 16px;
  }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — SMALL PHONES (≤ 480px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {

  /* Nav: stack logo and buttons */
  .nav-bar {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 12px 12px;
  }
  .nav-brand-logo {
    font-size: 17px;
    width: 100%;
    justify-content: center;
  }
  .nav-actions {
    width: 100%;
    justify-content: center;
    gap: 8px;
  }
  .nav-cta {
    flex: 1;
    padding: 10px 10px;
    font-size: 13px;
    text-align: center;
    justify-content: center;
  }

  /* Hero */
  .hero {
    padding: 50px 16px 40px;
  }
  .hero-badge {
    font-size: 12px;
    padding: 6px 14px;
    margin-bottom: 20px;
  }
  .hero h1 {
    font-size: 28px;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
  }
  .hero p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 24px;
  }

  /* Sections */
  .section {
    padding: 40px 12px;
  }
  .section-title {
    font-size: 22px;
  }
  .section-sub {
    font-size: 14px;
    margin-bottom: 28px;
  }

  .step-card, .feat-card {
    padding: 22px 18px;
    border-radius: var(--r-lg);
  }

  /* CTA */
  .cta-bottom {
    padding: 48px 16px;
  }
  .cta-bottom h2 {
    font-size: 22px;
  }
  .cta-bottom p {
    font-size: 14px;
  }
  .btn-white {
    padding: 13px 24px;
    font-size: 14px;
    width: 100%;
    text-align: center;
  }
}
