/* ── RESET & TOKENS ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --milk:    #2A0610;
  --cream:   #3A0B18;
  --latte:   #4A1020;
  --card:    #5A1428;

  --caramel: #E4BE5A;
  --brown:   #C89B37;

  --dark:    #FFF2C9;
  --smoke:   #E6CF8E;

  --border:  rgba(228,190,90,0.24);
  --shadow:  rgba(0,0,0,0.38);

  --r:       20px;

  --f-serif: 'Cormorant Garamond', Georgia, serif;
  --f-sans:  'Inter', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--f-sans);
  color: var(--dark);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;

  background:
    radial-gradient(circle at top, #6B1730 0%, #551325 35%, #2A0610 100%);
}

button {
  font-family: var(--f-sans);
  border: none;
  cursor: pointer;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── PAGE SHELL ── */
.page {
  display: none;
  min-height: 100vh;
  padding-bottom: 90px;
}

.page.active {
  display: block;
}

/* ── HOME ── */
#home {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 42px 20px 100px;

  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;

  margin-bottom: 22px;
  animation: fadeUp .6s ease both;
}

.logo-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;

  border: 2px solid rgba(228,190,90,.34);
  background: #5B1629;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.logo-name {
  font-family: var(--f-serif);
  font-size: 30px;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: .4px;
  text-align: center;
  line-height: 1;
}

.logo-sub {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--caramel);
  margin-top: -4px;
}

.welcome {
  text-align: center;
  margin-bottom: 30px;
  animation: fadeUp .65s .1s ease both;
}

.welcome p {
  max-width: 340px;
  font-size: 15px;
  font-weight: 300;
  color: var(--smoke);
  line-height: 1.75;
}

.divider {
  width: 42px;
  height: 1px;
  background: var(--caramel);
  opacity: .65;
  margin: 0 auto 28px;
  animation: fadeUp .65s .15s ease both;
}

/* ── LINK BUTTONS ── */
.links {
  width: 100%;
  max-width: 420px;

  display: flex;
  flex-direction: column;
  gap: 12px;

  margin-bottom: 20px;
  animation: fadeUp .7s .2s ease both;
}

.link-btn {
  width: 100%;

  display: flex;
  align-items: center;
  gap: 14px;

  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px 20px;

  font-size: 14px;
  font-weight: 500;
  color: var(--dark);

  box-shadow: 0 2px 12px var(--shadow);
  transition: all .22s;
}

.link-btn:hover {
  background: #65182E;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow);
}

.link-btn:active {
  transform: translateY(0);
}

.link-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 19px;
  flex-shrink: 0;
  overflow: hidden;
}

.icon-map  { background: #FFF0E0; }
.icon-inst { background: #FFF0F4; }
.icon-call { background: #F0FFF4; }

.link-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.link-arrow {
  margin-left: auto;
  font-size: 18px;
  color: var(--caramel);
  opacity: .75;
}

/* ── BIG MENU BUTTON ── */
.menu-big-btn {
  width: 100%;
  max-width: 420px;

  background: linear-gradient(135deg, #E4BE5A, #D3AA39);
  color: #3A0B18;

  border-radius: var(--r);
  padding: 20px;

  font-size: 16px;
  font-weight: 700;
  letter-spacing: .3px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  box-shadow: 0 10px 28px rgba(228,190,90,.20);
  transition: all .25s;

  margin-top: 8px;
  animation: fadeUp .7s .3s ease both;
}

.menu-big-btn:hover {
  background: linear-gradient(135deg, #EAC968, #C89B37);
  transform: translateY(-2px);
}

/* ── MENU PAGE ── */
#menu-page {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 0 110px;
}

.menu-header {
  width: 100%;

  background: var(--cream);
  padding: 20px 20px 0;

  position: sticky;
  top: 0;
  z-index: 50;

  border-bottom: 1px solid var(--border);
}

.menu-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.back-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;

  background: var(--card);
  border: 1px solid var(--border);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 18px;
  color: var(--dark);

  box-shadow: 0 2px 8px var(--shadow);
  transition: all .2s;
  flex-shrink: 0;
}

.back-btn:hover {
  background: var(--latte);
  transform: scale(1.06);
}

.menu-title {
  font-family: var(--f-serif);
  font-size: 25px;
  font-weight: 600;
  color: var(--dark);
}

/* ── TABS ── */
.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 14px;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  flex-shrink: 0;

  padding: 8px 17px;
  border-radius: 30px;
  border: 1.5px solid var(--border);

  background: transparent;

  font-size: 12px;
  font-weight: 500;
  color: var(--smoke);

  transition: all .2s;
  white-space: nowrap;
}

.tab.active {
  background: var(--caramel);
  color: #3A0B18;
  border-color: var(--caramel);
  box-shadow: 0 2px 10px rgba(228,190,90,.25);
}

.tab:hover:not(.active) {
  background: var(--latte);
  color: var(--dark);
}

/* ── PRODUCTS ── */
.products {
  width: 100%;
  padding: 20px 16px 0;

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.cat-section {
  display: none;
}

.cat-section.active {
  display: contents;
}

.card {
  background: var(--card);
  border-radius: var(--r);
  overflow: hidden;

  border: 1px solid var(--border);
  box-shadow: 0 2px 12px var(--shadow);

  display: flex;
  flex-direction: column;

  transition: transform .25s, box-shadow .25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px var(--shadow);
}

.card-img {
  height: 150px;
  overflow: hidden;
  position: relative;

  background: var(--latte);
  flex-shrink: 0;
}

.card-img img {
  transition: transform .4s ease;
}

.card:hover .card-img img {
  transform: scale(1.07);
}

.card-ph {
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 48px;
}

.card-body {
  padding: 12px 12px 14px;

  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.card-name {
  font-family: var(--f-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.2;
}

.card-desc {
  font-size: 11px;
  font-weight: 300;
  color: var(--smoke);
  line-height: 1.55;
  flex: 1;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.card-price {
  font-family: var(--f-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--dark);
}

.card-price span {
  font-size: 12px;
  font-weight: 300;
  color: var(--smoke);
}

/* ── CART CONTROLS ── */
.order-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  padding: 0;

  background: var(--caramel);
  color: #3A0B18;

  font-size: 22px;
  font-weight: 700;
  line-height: 1;

  transition: all .2s;
}

.order-btn:hover {
  background: var(--brown);
  transform: scale(1.04);
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 8px;

  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
}

.qty-control button {
  width: 28px;
  height: 28px;
  border-radius: 50%;

  background: var(--caramel);
  color: #3A0B18;

  font-size: 18px;
  font-weight: 700;
}

.qty-control span {
  min-width: 18px;
  text-align: center;

  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
}

/* ── STICKY CART ── */
.sticky-wa {
  position: fixed;
  bottom: 0;
  left: 50%;
  right: auto;
  transform: translateX(-50%);

  width: 100%;
  max-width: 480px;

  z-index: 100;
  padding: 12px 16px 20px;

  background: linear-gradient(to top, rgba(42,6,16,.96), transparent);
}

.wa-btn {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  background: #25D366;
  color: #fff;

  border-radius: var(--r);
  padding: 17px;

  font-size: 15px;
  font-weight: 700;

  box-shadow: none;
  transition: .25s;
}

.wa-btn:hover {
  background: #1EBE5D;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  #home {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 42px 20px 100px;
  }

  #menu-page {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 0 0 110px;
  }

  .products {
    padding: 18px 16px 120px;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .sticky-wa {
    left: 0;
    right: 0;
    transform: none;
    max-width: none;
    width: 100%;
    padding: 12px 16px 20px;
  }

  .wa-btn {
    max-width: 480px;
  }
}

@media (max-width: 400px) {
  .products {
    grid-template-columns: 1fr;
  }

  .card-img {
    height: 200px;
  }
}

#home:not(.active),
#menu-page:not(.active) {
  display: none !important;
}
html,
body {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

.page {
  width: 100% !important;
}

#home,
#menu-page {
  width: min(100%, 480px) !important;
  max-width: 480px !important;
  margin: 0 auto !important;
}

#home:not(.active),
#menu-page:not(.active) {
  display: none !important;
}

#home.active {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

#menu-page.active {
  display: block !important;
}

.products {
  width: 100% !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
}

.sticky-wa {
  left: 0 !important;
  right: 0 !important;
  transform: none !important;
  width: 100% !important;
  max-width: none !important;
}

.wa-btn {
  width: 100% !important;
  max-width: 480px !important;
}
