html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
/* Root */
:root {
  --espresso: #734212;
  --ceramic: #f4f3f0;
  --latte: #b4863f;
  --dark-roast: #512c0a;
  --warm-white: #faf9f6;
  --text-muted: #8a6648;
  --border: rgba(115, 66, 18, 0.14);
  --font-display: "Playfair Display", serif;
  --font-body: "Lato", sans-serif;
  --shadow-card: 0 4px 24px rgba(81, 44, 10, 0.09);
  --transition: 0.25s ease;
  --nav-h: 62px;
  --shadow-hover: 0 10px 36px rgba(81, 44, 10, 0.16);
}

body {
  font-family: var(--font-body);
  background: var(--warm-white);
  color: var(--dark-roast);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 300;
}
/* Nav */
nav {
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  background: var(--ceramic);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--dark-roast);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-links {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-btn {
  font-size: 1.25rem;
  color: var(--dark-roast);
  position: relative;
  transition: transform var(--transition);
}

.cart-btn:hover {
  transform: scale(1.15);
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--espresso);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition:
    opacity var(--transition),
    transform var(--transition);
}

.cart-badge.visible {
  opacity: 1;
  transform: scale(1);
}
/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark-roast);
  border-radius: 2px;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
/* Mobile Nav */
.mobile-nav {
  display: none;
  background: var(--ceramic);
  border-bottom: 2px solid var(--latte);
  padding: 1.5rem 2rem 2rem;
  flex-direction: column;
  gap: 1.2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--dark-roast);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.mobile-nav a.active {
  color: var(--espresso);
  font-weight: 700;
}

/* Accent Strip */
.accent-strip {
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--dark-roast),
    var(--espresso),
    var(--latte),
    var(--espresso),
    var(--dark-roast)
  );
}

/* Page Banner */
.page-banner {
  background: var(--ceramic);
  text-align: center;
  padding: 2.5rem 1.2rem 2.2rem;
  position: relative;
  overflow: hidden;
  animation: fadeDown 0.7s ease both;
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-banner::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--latte), transparent);
}

.banner-inner {
  position: relative;
  z-index: 1;
}

.banner-eyebrow {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--latte);
  margin-bottom: 0.7rem;
}

.banner-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--dark-roast);
  margin-bottom: 0.8rem;
}

.banner-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Search */
.search-wrap {
  max-width: 480px;
  margin: 1.5rem auto 0;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 0.85rem 3rem 0.85rem 1.2rem;
  border: 1.5px solid var(--border);
  background: var(--warm-white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--dark-roast);
  outline: none;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.search-input:focus {
  border-color: var(--latte);
  box-shadow: 0 0 0 3px rgba(180, 134, 63, 0.12);
}

.search-input::placeholder {
  color: #b8a090;
  font-weight: 300;
}

.search-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--latte);
  font-size: 1rem;
  pointer-events: none;
}

.search-clear {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  display: none;
  background: none;
  border: none;
  line-height: 1;
  padding: 0;
  transition: color var(--transition);
}

.search-clear:hover {
  color: var(--espresso);
}
.search-clear.visible {
  display: block;
}
.search-clear.visible ~ .search-icon {
  display: none;
}

/* No Results */
.no-results {
  text-align: center;
  padding: 4rem 2rem;
  display: none;
}

.no-results.visible {
  display: block;
}

.no-results-emoji {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.no-results-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--dark-roast);
  margin-bottom: 0.5rem;
}

.no-results-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 300;
}

.tabs-wrap {
  position: sticky;
  top: var(--nav-h);
  z-index: 100;
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(81, 44, 10, 0.06);
}

.tabs-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0.5rem;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.tab-btn {
  padding: 0.85rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition:
    color var(--transition),
    border-color var(--transition);
  font-weight: 700;
}

.tab-btn:hover {
  color: var(--espresso);
}

.tab-btn.active {
  color: var(--espresso);
  border-bottom-color: var(--latte);
}
/* Menu Content */
main {
  position: relative;
  z-index: 1;
}

.menu-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

.menu-section {
  margin-bottom: 4rem;
  animation: fadeUp 0.5s ease both;
}

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

.menu-section.hidden {
  display: none;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.section-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--dark-roast);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--latte);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--dark-roast);
}

.section-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--latte), transparent);
}

.items-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.item-card {
  background: var(--ceramic);
  border-bottom: 3px solid transparent;
  box-shadow: var(--shadow-card);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.item-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-bottom-color: var(--latte);
}

.item-card.hidden-item {
  display: none;
}

.item-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--espresso);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
  border-radius: 20px;
  padding: 0.25rem 0.6rem;
}

.item-badge.seasonal {
  background: var(--latte);
}
.item-badge.popular {
  background: var(--dark-roast);
}

.item-inner {
  padding: 1.5rem 1.6rem 1.4rem;
}

.item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.45rem;
  padding-top: 1.6rem;
}

.item-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--dark-roast);
  line-height: 1.3;
}

.item-price {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--espresso);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.item-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 1.1rem;
}

.item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.item-tag {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--latte);
  border: 1px solid rgba(180, 134, 63, 0.35);
  padding: 0.18rem 0.55rem;
  border-radius: 20px;
}

.add-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--espresso);
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition:
    background var(--transition),
    transform var(--transition);
  flex-shrink: 0;
  border: none;
  cursor: pointer;
}

.add-btn:hover {
  background: var(--dark-roast);
  transform: scale(1.1);
}

.add-btn.added {
  background: #4a7c59;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 12, 3, 0.5);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: var(--warm-white);
  z-index: 301;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.2);
}

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

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1.8rem;
  background: var(--ceramic);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.cart-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--dark-roast);
}

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

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

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.cart-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
}

.cart-empty-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--dark-roast);
  margin-bottom: 0.4rem;
}

.cart-empty-sub {
  font-size: 0.85rem;
  font-weight: 300;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--ceramic);
  animation: slideIn 0.25s ease both;
}

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

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

.cart-item-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--dark-roast);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  font-size: 0.82rem;
  color: var(--espresso);
  font-weight: 700;
  margin-top: 0.15rem;
}

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

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

.qty-btn:hover {
  background: var(--espresso);
  border-color: var(--espresso);
  color: #fff;
}

.qty-num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  min-width: 18px;
  text-align: center;
}

.cart-footer {
  padding: 1.4rem 1.8rem;
  background: var(--ceramic);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

.cart-total-label {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dark-roast);
}

.cart-total-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--dark-roast);
}

.checkout-btn {
  width: 100%;
  padding: 1rem;
  background: var(--espresso);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition:
    background var(--transition),
    transform 0.15s;
}

.checkout-btn:hover {
  background: var(--dark-roast);
  transform: translateY(-1px);
}

.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--dark-roast);
  color: var(--ceramic);
  padding: 0.8rem 1.6rem;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  white-space: normal;
  text-align: center;
  width: calc(100vw - 2rem);
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  border-left: 4px solid var(--latte);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

footer {
  background: #2a1505;
  color: #c4a882;
  padding: 2rem 1.2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem;
  margin-bottom: 2.5rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ceramic);
  margin-bottom: 0.8rem;
}

.footer-tagline {
  font-size: 0.82rem;
  line-height: 1.7;
  color: #9a7a58;
  font-weight: 300;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--latte);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.83rem;
  color: #9a7a58;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--ceramic);
}

.footer-contact-info {
  font-size: 0.83rem;
  color: #9a7a58;
  line-height: 1.8;
  font-weight: 300;
  font-style: normal;
}

.footer-newsletter-desc {
  font-size: 0.82rem;
  color: #9a7a58;
  font-weight: 300;
  margin-bottom: 0.5rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.newsletter-input {
  flex: 1;
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--ceramic);
  font-family: var(--font-body);
  font-size: 0.82rem;
  outline: none;
}

.newsletter-input::placeholder {
  color: #6a5040;
}

.newsletter-btn {
  padding: 0.6rem 1.2rem;
  background: var(--latte);
  border: none;
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background var(--transition);
}

.newsletter-btn:hover {
  background: var(--espresso);
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 0.8rem;
}

.footer-social-icon {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(180, 134, 63, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--latte);
  cursor: pointer;
  transition: all var(--transition);
}

.footer-social-icon:hover {
  background: var(--latte);
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.78rem;
  color: #6a5040;
}

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

:focus-visible {
  outline: 2px solid var(--latte);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Tablet Media Query */

@media screen and (min-width: 601px) {
  :root {
    --nav-h: 68px;
  }

  nav {
    padding: 0 1.5rem;
  }

  .logo {
    font-size: 1.45rem;
  }

  .page-banner {
    padding: 3.5rem 1.5rem 3rem;
  }

  .banner-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .search-wrap {
    margin-top: 2rem;
  }

  .tabs-inner {
    padding: 0.1rem;
  }

  .tab-btn {
    padding: 0.9rem 1rem;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
  }

  .menu-content {
    padding: 2.5rem 1.5rem 4rem;
  }

  .items-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.4rem;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .cart-drawer {
    width: min(420px, 100vw);
  }

  .toast {
    width: auto;
    white-space: nowrap;
  }

  footer {
    padding: 2.5rem 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .newsletter-form {
    flex-direction: row;
  }
}

/* Desktop Media Query */
@media screen and (min-width: 901px) {
  nav {
    padding: 0 3rem;
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 2.4rem;
  }

  .nav-links a {
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: var(--dark-roast);
    transition: color var(--transition);
    position: relative;
  }

  .nav-links a:hover {
    color: var(--espresso);
  }

  .nav-links a.active {
    color: var(--espresso);
  }

  .nav-links a.active::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--latte);
  }

  .hamburger {
    display: none;
  }

  .tabs-inner {
    padding: 0.2rem;
  }

  .tab-btn {
    padding: 1rem 1.5rem;
    font-size: 0.82rem;
  }

  .menu-content {
    padding: 3rem 2rem 5rem;
  }

  footer {
    padding: 3rem 4rem;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1.5fr 2fr;
    gap: 3rem;
  }
}
