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

:root {
  --espresso: #1a0a00;
  --dark-roast: #2d1206;
  --medium-roast: #4a1e0a;
  --caramel: #8b4513;
  --gold: #c8860a;
  --latte: #c49a6c;
  --cream: #f5e6d0;
  --milk: #fdf6ec;
  --white: #fff;
  --text-dark: #1a0a00;
  --text-mid: #5c3317;
  --text-light: #8b6548;
  --shadow: rgba(26, 10, 0, 0.18);
  --cart-width: 380px;
  --transition: 0.3s cubic-bezier(.4, 0, .2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--milk);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* ─── NAVBAR ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
  background: rgba(26, 10, 0, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200, 134, 10, 0.2);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--latte);
  letter-spacing: 0.02em;
}

.nav-logo span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--cream);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
  opacity: 0.85;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1.5px;
  background: linear-gradient(90deg, var(--gold), #e09b1a);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(.4, 0, .2, 1);
}

.nav-links a:hover {
  color: var(--gold);
  opacity: 1;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

#cart-btn {
  position: relative;
  background: var(--gold);
  border: none;
  color: var(--espresso);
  border-radius: 50px;
  padding: 0.5rem 1.2rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

#cart-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(200, 134, 10, 0.4);
}

#cart-count {
  background: var(--dark-roast);
  color: var(--cream);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  transition: transform 0.2s;
}

#cart-count.bump {
  transform: scale(1.4);
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(26, 10, 0, 0.82) 0%, rgba(74, 30, 10, 0.65) 60%, rgba(200, 134, 10, 0.25) 100%),
    url('https://images.unsplash.com/photo-1447933601403-0c6688de566e?w=1600&q=80') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--milk), transparent);
}

.hero-content {
  max-width: 680px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(200, 134, 10, 0.2);
  border: 1px solid rgba(200, 134, 10, 0.4);
  color: var(--gold);
  border-radius: 50px;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.hero h1 em {
  color: var(--gold);
  font-style: normal;
}

.hero p {
  font-size: 1.15rem;
  color: var(--cream);
  opacity: 0.9;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--gold), #e09b1a);
  color: var(--espresso);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 6px 30px rgba(200, 134, 10, 0.4);
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(200, 134, 10, 0.55);
}

/* ─── SECTION COMMON ─── */
section {
  padding: 5rem 1.5rem;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--dark-roast);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-sub {
  color: var(--text-light);
  max-width: 520px;
  line-height: 1.7;
}

/* ─── WHY US ─── */
.why-us {
  background: var(--espresso);
}

.why-us .section-title {
  color: var(--cream);
}

.why-us .section-sub {
  color: var(--latte);
}

.why-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(200, 134, 10, 0.15);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(200, 134, 10, 0.5);
  background: rgba(200, 134, 10, 0.08);
}

.feature-icon {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  color: var(--cream);
  font-weight: 600;
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
}

.feature-card p {
  color: var(--latte);
  font-size: 0.88rem;
  line-height: 1.6;
  opacity: 0.85;
}

/* ─── MENU ─── */
.menu {
  background: var(--milk);
}

.menu-header {
  text-align: center;
  margin-bottom: 3rem;
}

.menu-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.45rem 1.2rem;
  border-radius: 50px;
  border: 1.5px solid var(--latte);
  background: transparent;
  color: var(--text-mid);
  font-size: 0.85rem;
  cursor: pointer;
  font-weight: 500;
  transition: all var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--caramel);
  border-color: var(--caramel);
  color: var(--white);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.8rem;
  max-width: 1200px;
  margin: 0 auto;
}

.menu-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.menu-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px var(--shadow);
}

.card-img {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5.5rem;
  position: relative;
  overflow: hidden;
}

.card-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--cream), #e8d5b7);
}

.card-img span {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.card-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: var(--gold);
  color: var(--espresso);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 50px;
  padding: 0.2rem 0.7rem;
  letter-spacing: 0.05em;
}

.card-body {
  padding: 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark-roast);
  margin-bottom: 0.35rem;
}

.card-desc {
  font-size: 0.83rem;
  color: var(--text-light);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 1rem;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.card-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--caramel);
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--latte);
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--caramel);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.qty-btn:hover {
  background: var(--caramel);
  border-color: var(--caramel);
  color: var(--white);
}

.qty-display {
  min-width: 24px;
  text-align: center;
  font-weight: 600;
  color: var(--dark-roast);
  font-size: 1rem;
}

.add-btn {
  background: linear-gradient(135deg, var(--caramel), var(--medium-roast));
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 0.55rem 1.3rem;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.add-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(139, 69, 19, 0.35);
}

.add-btn.added {
  background: linear-gradient(135deg, #2d7a2d, #1a5c1a);
}

/* ─── CART SIDEBAR ─── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  backdrop-filter: blur(2px);
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--cart-width);
  max-width: 100vw;
  background: var(--white);
  z-index: 201;
  transform: translateX(100%);
  transition: transform var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.2);
}

.cart-panel.open {
  transform: translateX(0);
}

.cart-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--cream);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--dark-roast);
}

.cart-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--cream);
  font-weight: 700;
}

.cart-close {
  background: none;
  border: none;
  color: var(--latte);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color var(--transition);
  line-height: 1;
}

.cart-close:hover {
  color: var(--gold);
}

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

.cart-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-light);
}

.cart-empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: block;
  opacity: 0.5;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 14px;
  background: var(--milk);
  margin-bottom: 0.8rem;
  border: 1px solid var(--cream);
  animation: slideIn 0.25s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.ci-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
}

.ci-info {
  flex: 1;
  min-width: 0;
}

.ci-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark-roast);
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ci-price {
  font-size: 0.82rem;
  color: var(--caramel);
  font-weight: 500;
}

.ci-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.ci-qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--latte);
  background: var(--white);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--caramel);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.ci-qty-btn:hover {
  background: var(--caramel);
  border-color: var(--caramel);
  color: var(--white);
}

.ci-qty {
  font-weight: 700;
  color: var(--dark-roast);
  min-width: 20px;
  text-align: center;
}

.ci-delete {
  background: none;
  border: none;
  color: #c0392b;
  cursor: pointer;
  font-size: 1rem;
  margin-left: 0.3rem;
  transition: transform var(--transition);
}

.ci-delete:hover {
  transform: scale(1.3);
}

.cart-footer {
  border-top: 2px solid var(--cream);
  padding: 1.2rem;
  background: var(--white);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  font-size: 0.9rem;
  color: var(--text-mid);
}

.cart-total-row.grand {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark-roast);
  border-top: 1px dashed var(--latte);
  margin-top: 0.4rem;
  padding-top: 0.8rem;
}

.checkout-btn {
  width: 100%;
  margin-top: 1rem;
  background: linear-gradient(135deg, var(--gold), #e09b1a);
  color: var(--espresso);
  border: none;
  border-radius: 12px;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.03em;
}

.checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(200, 134, 10, 0.4);
}

.checkout-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ─── ORDER CONFIRMATION ─── */
.order-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 10, 0, 0.75);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  padding: 1rem;
}

.order-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.order-modal {
  background: var(--white);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  max-width: 460px;
  width: 100%;
  text-align: center;
  transform: scale(0.8);
  transition: transform var(--transition);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.order-overlay.open .order-modal {
  transform: scale(1);
}

.order-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: block;
  animation: bounce 0.6s ease 0.2s both;
}

@keyframes bounce {
  0% { transform: scale(0) }
  60% { transform: scale(1.15) }
  100% { transform: scale(1) }
}

.order-modal h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--dark-roast);
  margin-bottom: 0.5rem;
}

.order-modal p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.order-summary {
  background: var(--milk);
  border-radius: 14px;
  padding: 1rem;
  text-align: left;
  margin-bottom: 1.5rem;
}

.order-summary-title {
  font-weight: 700;
  color: var(--dark-roast);
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}

.order-summary-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-mid);
  padding: 0.25rem 0;
}

.order-summary-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  color: var(--caramel);
  padding-top: 0.6rem;
  border-top: 1px solid var(--cream);
  margin-top: 0.4rem;
}

.new-order-btn {
  background: linear-gradient(135deg, var(--caramel), var(--medium-roast));
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.95rem;
}

.new-order-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 69, 19, 0.35);
}

/* ─── FOOTER ─── */
footer {
  background: var(--espresso);
  padding: 4rem 1.5rem 2rem;
  border-top: 2px solid rgba(200, 134, 10, 0.2);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto 3rem;
}

.footer-brand .brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--latte);
  margin-bottom: 0.7rem;
}

.footer-brand .brand-name span {
  color: var(--gold);
}

.footer-brand p {
  color: var(--latte);
  opacity: 0.7;
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-col h4 {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-col p,
.footer-col li {
  color: var(--latte);
  font-size: 0.88rem;
  line-height: 1.8;
  opacity: 0.8;
  list-style: none;
}

.hours-row {
  display: flex;
  gap: 1rem;
  color: var(--latte);
  font-size: 0.88rem;
  line-height: 1.9;
  opacity: 0.8;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--latte);
  font-size: 0.8rem;
  opacity: 0.5;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 640px) {
  nav {
    padding: 0 1rem;
  }

  .nav-links {
    display: none;
  }

  :root {
    --cart-width: 100vw;
  }

  .hero {
    padding-top: 5rem;
  }

  section {
    padding: 3.5rem 1rem;
  }
}

/* Custom scrollbar */
.cart-items::-webkit-scrollbar {
  width: 5px;
}

.cart-items::-webkit-scrollbar-track {
  background: var(--cream);
}

.cart-items::-webkit-scrollbar-thumb {
  background: var(--latte);
  border-radius: 3px;
}

/* ─── SIMPLE CURSOR ─── */
@media (pointer: fine) {
  body, a, button, [role="button"] {
    cursor: none !important;
  }
}

@media (pointer: coarse) {
  .cursor-dot, .cursor-ring {
    display: none !important;
  }
}

.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s, background 0.2s, transform 0.15s;
}

.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s, width 0.25s ease, height 0.25s ease, border-color 0.2s;
}

.cursor-dot.hover {
  background: #fff;
  transform: translate(-50%, -50%) scale(1.5);
}

.cursor-ring.hover {
  width: 56px;
  height: 56px;
  border-color: rgba(200, 134, 10, 0.5);
}
