:root {
  --panel: #262321;
  --panel-2: #1b1918;
  --primary: #d88a3d;
  --primary-dark: #b86f2d;
  --text: #242424;
  --muted: #8c8379;
  --line: #eadccc;
  --line-soft: rgba(228, 207, 183, 0.55);
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.10);
  --sidebar-width: 120px;
  --page-max: 1280px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: Arial, sans-serif;
  color: var(--text);
  background-color: #f6f1e8;
  background-image: url("images/bg.png");
  background-repeat: repeat;
  background-size: 300px;
  overflow-x: hidden;
}

.page {
  max-width: var(--page-max);
  margin: 0 auto;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  gap: 16px;
  padding:
    calc(16px + env(safe-area-inset-top))
    16px
    calc(16px + env(safe-area-inset-bottom))
    16px;
  align-items: stretch;
}

.sidebar {
  position: sticky;
  top: calc(16px + env(safe-area-inset-top));
  align-self: start;
  height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 32px);
  min-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 32px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, #2b2724 0%, #171514 100%);
  border-radius: 34px;
  box-shadow:
    0 22px 40px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 14px 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  text-align: center;
}

.menu-badge {
  align-self: center;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background: rgba(255, 253, 248, 0.95);
  color: #2b2b2b;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.2px;
  box-shadow:
    0 5px 12px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  margin-bottom: 18px;
  text-align: center;
  flex-shrink: 0;
}

.category-nav {
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0;
  padding-bottom: 18px;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}

.category-nav::-webkit-scrollbar {
  width: 4px;
}

.category-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.category-btn {
  width: 100%;
  min-height: 80px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  padding: 14px 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  color: rgba(255, 255, 255, 0.97);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: 0.25s ease;
  word-break: break-word;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 6px 14px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
}

.category-btn:hover,
.category-btn:focus,
.category-btn:active,
.category-btn:visited {
  text-decoration: none;
}

.category-btn:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
  transform: translateY(-1px);
}

.category-btn.active {
  background: linear-gradient(180deg, #e7a353 0%, #d88a3d 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 10px 24px rgba(216, 138, 61, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.20);
  transform: translateY(-1px);
}

.contact-btn,
.contact-btn:hover,
.contact-btn:focus,
.contact-btn:active,
.contact-btn:visited {
  text-decoration: none !important;
  color: #fff;
}

.sidebar-contact {
  width: 100%;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 10px;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.sidebar-contact-title {
  font-size: 10px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.sidebar-contact-item {
  font-size: 9px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
  padding: 3px 0;
}

.sidebar-logo {
  width: 100%;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  flex-shrink: 0;
}

.sidebar-logo img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  padding: 6px;
  opacity: 0.96;
  transition: 0.3s ease;
  cursor: pointer;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.18));
}

.sidebar-logo img:hover {
  opacity: 1;
  transform: scale(1.05);
}

.content {
  min-width: 0;
  padding: 8px 2px 24px;
}

.content-header {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 185px;
  margin-bottom: 14px;
  padding: 10px 0 6px;
}

.hero-logo {
  width: 250px;
  max-width: 80%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.08));
}

.menu-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 18px;
}

.category-section,
.contact-section {
  background: linear-gradient(
    180deg,
    rgba(255, 253, 250, 0.94) 0%,
    rgba(255, 251, 247, 0.90) 100%
  );
  backdrop-filter: blur(4px);
  border: 1px solid rgba(234, 220, 204, 0.82);
  border-radius: 38px;
  padding: 24px 22px 12px;
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  position: relative;
  overflow: hidden;
  scroll-margin-top: 24px;
}

.category-section::before,
.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.06) 18%,
    transparent 42%
  );
  pointer-events: none;
}

.category-header,
.contact-section-header {
  display: block;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--line-soft);
  position: relative;
}

.category-header::after,
.contact-section-header::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  border-radius: 999px;
  margin-top: 12px;
  background: linear-gradient(90deg, #e0a156 0%, #d88a3d 100%);
  box-shadow: 0 4px 10px rgba(216, 138, 61, 0.16);
}

.category-title,
.contact-section-title {
  margin: 0;
  font-size: 35px;
  line-height: 1.04;
  font-weight: 900;
  color: var(--primary-dark);
  letter-spacing: 0.2px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.menu-list {
  display: flex;
  flex-direction: column;
}

.menu-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(240, 229, 217, 0.78);
  position: relative;
}

.menu-row:last-child {
  border-bottom: none;
}

.item-left {
  min-width: 0;
  flex: 1;
}

.item-name {
  margin: 0;
  font-size: 22px;
  line-height: 1.18;
  font-weight: 900;
  color: #262321;
  letter-spacing: -0.2px;
}

.item-desc {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 90%;
}

.price {
  flex-shrink: 0;
  min-width: 76px;
  text-align: right;
  font-size: 24px;
  font-weight: 900;
  color: var(--primary-dark);
  padding-left: 12px;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

.price::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(216, 138, 61, 0.22);
  margin-right: 8px;
  vertical-align: middle;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-line {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 0;
}

.contact-line-label {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary-dark);
}

.contact-line-value {
  font-size: 16px;
  line-height: 1.45;
  color: var(--text);
  word-break: break-word;
}

.whatsapp-box {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(234, 220, 204, 0.9);
  text-decoration: none;
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 8px 18px rgba(0, 0, 0, 0.04);
  transition: 0.2s ease;
}

.whatsapp-box:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 12px 22px rgba(0, 0, 0, 0.06);
}

.whatsapp-icon {
  flex-shrink: 0;
  font-size: 24px;
  line-height: 1;
}

.whatsapp-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.whatsapp-label {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary-dark);
}

.whatsapp-value {
  font-size: 16px;
  color: var(--text);
}

.contact-line-action {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.contact-line-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.contact-line-icon-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(234, 220, 204, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 6px 14px rgba(0, 0, 0, 0.05);
  transition: 0.2s ease;
  text-decoration: none;
  flex-shrink: 0;
}

.contact-line-icon-link:hover {
  transform: scale(1.08);
  text-decoration: none;
}

.contact-line-icon-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

@media (max-width: 900px) {
  :root {
    --sidebar-width: 108px;
  }

  body {
    background-size: 280px;
  }

  .page {
    gap: 12px;
    padding:
      calc(12px + env(safe-area-inset-top))
      12px
      calc(12px + env(safe-area-inset-bottom))
      12px;
  }

  .sidebar {
    top: calc(12px + env(safe-area-inset-top));
    height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px);
    min-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px);
    border-radius: 28px;
  }

  .menu-badge {
    font-size: 11px;
    padding: 8px 11px;
  }

  .category-btn {
    min-height: 60px;
    font-size: 11px;
    padding: 10px 6px;
    border-radius: 20px;
  }

  .sidebar-contact-title {
    font-size: 10px;
  }

  .sidebar-contact-item {
    font-size: 8px;
  }

  .sidebar-logo img {
    width: 48px;
    height: 48px;
  }

  .content {
    padding: 8px 0 20px;
  }

  .content-header {
    min-height: 150px;
    margin-bottom: 10px;
  }

  .hero-logo {
    width: 205px;
    max-width: 82%;
  }

  .category-section,
  .contact-section {
    border-radius: 32px;
    padding: 20px 18px 10px;
  }

  .category-title,
  .contact-section-title {
    font-size: 29px;
  }

  .item-name {
    font-size: 19px;
  }

  .item-desc {
    font-size: 13px;
  }

  .price {
    font-size: 20px;
    min-width: 68px;
  }

  .contact-line-label,
  .whatsapp-label {
    font-size: 13px;
  }

  .contact-line-value,
  .whatsapp-value {
    font-size: 15px;
  }
}

@media (max-width: 600px) {
  :root {
    --sidebar-width: 96px;
  }

  body {
    background-size: 240px;
  }

  .page {
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    gap: 10px;
    padding:
      calc(10px + env(safe-area-inset-top))
      10px
      calc(10px + env(safe-area-inset-bottom))
      10px;
  }

  .sidebar {
    top: calc(10px + env(safe-area-inset-top));
    height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 20px);
    min-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 20px);
    border-radius: 26px;
    padding: 10px 7px 12px;
  }

  .menu-badge {
    font-size: 11px;
    padding: 8px 10px;
    margin-bottom: 14px;
  }

  .category-nav {
    gap: 18px;
  }

  .category-btn {
    min-height: 56px;
    font-size: 10px;
    padding: 8px 5px;
    border-radius: 18px;
  }

  .sidebar-contact-title {
    font-size: 9px;
  }

  .sidebar-contact-item {
    font-size: 8px;
    line-height: 1.35;
  }

  .sidebar-logo img {
    width: 42px;
    height: 42px;
  }

  .content {
    padding: 4px 0 16px;
  }

  .content-header {
    min-height: 126px;
    margin-bottom: 8px;
  }

  .hero-logo {
    width: 165px;
    max-width: 84%;
  }

  .menu-wrapper {
    gap: 14px;
    margin-bottom: 14px;
  }

  .category-section,
  .contact-section {
    border-radius: 28px;
    padding: 18px 14px 10px;
  }

  .category-header,
  .contact-section-header {
    margin-bottom: 12px;
    padding-bottom: 12px;
  }

  .category-title,
  .contact-section-title {
    font-size: 23px;
  }

  .category-header::after,
  .contact-section-header::after {
    width: 44px;
    height: 3px;
    margin-top: 10px;
  }

  .menu-row {
    gap: 12px;
    padding: 16px 0;
  }

  .item-name {
    font-size: 17px;
  }

  .item-desc {
    font-size: 12px;
    max-width: 100%;
  }

  .price {
    font-size: 18px;
    min-width: 60px;
  }

  .price::before {
    width: 7px;
    height: 7px;
    margin-right: 6px;
  }

  .contact-line-label,
  .whatsapp-label {
    font-size: 12px;
  }

  .contact-line-value,
  .whatsapp-value {
    font-size: 14px;
  }

  .whatsapp-box {
    margin-top: 14px;
    border-radius: 20px;
    padding: 14px 12px;
  }

  .whatsapp-icon {
    font-size: 20px;
  }

  .contact-line-icon-link {
    width: 34px;
    height: 34px;
  }

  .contact-line-icon-img {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 390px) {
  :root {
    --sidebar-width: 88px;
  }

  body {
    background-size: 210px;
  }

  .page {
    gap: 8px;
    padding:
      calc(8px + env(safe-area-inset-top))
      8px
      calc(8px + env(safe-area-inset-bottom))
      8px;
  }

  .sidebar {
    top: calc(8px + env(safe-area-inset-top));
    height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 16px);
    min-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 16px);
    border-radius: 24px;
    padding: 8px 6px 10px;
  }

  .menu-badge {
    font-size: 10px;
    padding: 7px 9px;
    margin-bottom: 12px;
  }

  .category-btn {
    min-height: 50px;
    font-size: 9px;
    padding: 7px 4px;
    border-radius: 16px;
  }

  .sidebar-contact-title {
    font-size: 8px;
  }

  .sidebar-contact-item {
    font-size: 7px;
  }

  .sidebar-logo img {
    width: 38px;
    height: 38px;
  }

  .content-header {
    min-height: 108px;
  }

  .hero-logo {
    width: 140px;
    max-width: 86%;
  }

  .category-section,
  .contact-section {
    border-radius: 24px;
    padding: 14px 12px 8px;
  }

  .category-title,
  .contact-section-title {
    font-size: 20px;
  }

  .item-name {
    font-size: 15px;
  }

  .item-desc {
    font-size: 11px;
  }

  .price {
    font-size: 16px;
    min-width: 54px;
  }

  .price::before {
    width: 6px;
    height: 6px;
    margin-right: 5px;
  }

  .contact-line-label,
  .whatsapp-label {
    font-size: 11px;
  }

  .contact-line-value,
  .whatsapp-value {
    font-size: 13px;
  }

  .whatsapp-box {
    padding: 12px 10px;
    border-radius: 18px;
  }

  .contact-line-icon-link {
    width: 32px;
    height: 32px;
  }

  .contact-line-icon-img {
    width: 16px;
    height: 16px;
  }
}
