/* Restaurant & food detail pages */
.details-page {
  min-height: 100vh;
  background: #fff;
}

.detail-nav {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.back-detail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: #fff0f2;
  color: #b9001c;
  border-radius: 999px;
  padding: 10px 17px;
  font: 700 0.92rem "Hind Siliguri", sans-serif;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.back-detail:hover {
  background: #e60023;
  color: #fff;
  transform: translateX(-3px);
}

/* ---------- Restaurant hero ---------- */
.restaurant-hero {
  position: relative;
  isolation: isolate;
  min-height: 330px;
  background-position: center;
  background-size: cover;
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 50px 0;
}

.restaurant-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(14, 8, 9, 0.88), rgba(14, 8, 9, 0.35) 60%, rgba(14, 8, 9, 0.15));
}

.restaurant-hero h1 {
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 1.02;
  margin: 12px 0;
  letter-spacing: -0.04em;
  animation: detail-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.restaurant-hero p {
  color: #f5e8e9;
  font-size: 1.05rem;
  margin: 0;
}

@keyframes detail-rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.open-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(10, 135, 81, 0.95);
  padding: 6px 13px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.8rem;
  backdrop-filter: blur(6px);
}

.open-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
}

.open-pill.closed {
  background: rgba(141, 60, 71, 0.95);
}

.restaurant-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
  font-weight: 600;
  font-size: 0.88rem;
}

.restaurant-meta > * {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  padding: 6px 13px;
  border-radius: 999px;
}

/* ---------- Tabs & cards ---------- */
.detail-content {
  padding: 36px 0 72px;
}

.detail-tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid #ede8e5;
  margin-bottom: 22px;
}

.detail-tabs button {
  position: relative;
  border: 0;
  background: none;
  padding: 13px 2px;
  font: 700 1rem "Hind Siliguri", sans-serif;
  color: #7a737b;
  cursor: pointer;
  transition: color 0.2s;
}

.detail-tabs button:hover {
  color: #e60023;
}

.detail-tabs button.active {
  color: #e60023;
  border-bottom: 3px solid #e60023;
  margin-bottom: -1px;
}

.review-card,
.info-card {
  border: 1px solid #ede8e5;
  border-radius: 20px;
  padding: 20px;
  margin: 14px 0;
  background: #fff;
  box-shadow: 0 4px 14px rgba(20, 20, 27, 0.03);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s;
}

.review-card:hover,
.info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(20, 20, 27, 0.08);
}

.review-card span {
  color: #e29a00;
  margin-left: 8px;
  letter-spacing: 1px;
}

.review-card p,
.info-card p {
  color: #625c63;
  margin: 8px 0;
}

/* ---------- Food item page ---------- */
.item-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: 56px;
  padding: 26px 0 84px;
}

.item-image {
  position: sticky;
  top: 18px;
  height: 480px;
  background: #f7efec;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(20, 20, 27, 0.14);
}

.item-image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.item-image:hover img {
  transform: scale(1.05);
}

.item-copy {
  padding-top: 20px;
  animation: detail-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.item-copy h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  margin: 12px 0;
  letter-spacing: -0.035em;
}

.restaurant-link {
  color: #e60023;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s;
}

.restaurant-link:hover {
  border-bottom-color: currentColor;
}

.item-price {
  font: 800 1.6rem Inter, sans-serif !important;
  color: #14141b !important;
  letter-spacing: -0.02em;
}

.item-copy section {
  border-top: 1px solid #ede8e5;
  margin-top: 24px;
  padding-top: 20px;
}

.item-copy section h3 {
  margin: 0 0 12px;
}

.option-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.option {
  border: 1.5px solid #e4dddb;
  background: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font: 600 0.9rem "Hind Siliguri", sans-serif;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.option:hover {
  border-color: #f1b3be;
  transform: translateY(-1px);
}

.option small {
  color: #716970;
}

.option.selected {
  border-color: #e60023;
  color: #e60023;
  background: #fff3f5;
  box-shadow: 0 0 0 4px rgba(230, 0, 35, 0.09);
}

.item-copy textarea {
  width: 100%;
  min-height: 80px;
  border: 1px solid #e0d9d7;
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  background: #fcfbfb;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.item-copy textarea:focus {
  outline: none;
  border-color: #e60023;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(230, 0, 35, 0.12);
}

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

.quantity {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1.5px solid #e4dddb;
  border-radius: 999px;
  padding: 5px;
  font-weight: 700;
}

.quantity button {
  border: 0;
  background: #fff1f3;
  color: #e60023;
  font-size: 1.25rem;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.quantity button:hover {
  background: #e60023;
  color: #fff;
}

.quantity button:active {
  transform: scale(0.88);
}

.detail-loading {
  min-height: 70vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 18px;
  font-size: 1.1rem;
  color: #6d666d;
}

.detail-loading .primary-button {
  margin-top: 18px;
}

@media (max-width: 760px) {
  .restaurant-hero {
    min-height: 270px;
    padding: 32px 0;
  }

  .detail-content {
    padding-top: 22px;
  }

  .item-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 0;
  }

  .item-image {
    position: static;
    height: 330px;
    border-radius: 0 0 28px 28px;
    box-shadow: none;
  }

  .item-copy {
    padding: 22px 16px;
  }

  .item-bottom {
    position: sticky;
    bottom: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    box-shadow: 0 -10px 24px rgba(20, 20, 27, 0.06);
  }

  .item-bottom .primary-button {
    flex: 1;
  }

  .detail-tabs {
    overflow: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }

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