/* Hilal's Kitchen menu experience v44.
   A focused production layer for the menu route: denser desktop use of space,
   cohesive dark cards, clearer ordering controls, and easier category browsing. */

:root {
  --hk-menu-surface: #171719;
  --hk-menu-surface-raised: #1d1d20;
  --hk-menu-border: rgba(255, 255, 255, 0.11);
  --hk-menu-copy: #c9c9cf;
  --hk-menu-muted: #9d9da6;
  --hk-menu-gold: #f2ad42;
  --hk-menu-red: #d90a2f;
  --hk-menu-red-dark: #a50000;
}

/* Header: slightly larger brand/navigation and a cart that reads as an action. */
body:has(.hk-full-menu-section) .hk-header .hk-container {
  width: min(100%, 1540px);
  max-width: 1540px;
  padding-inline: clamp(22px, 3vw, 46px);
}

body:has(.hk-full-menu-section) .hk-header-inner {
  min-height: 124px;
}

body:has(.hk-full-menu-section) .hk-header-logo-img {
  width: auto;
  height: 112px;
  object-fit: contain;
}

body:has(.hk-full-menu-section) .hk-nav {
  align-items: center;
  gap: clamp(2px, 0.35vw, 8px);
}

body:has(.hk-full-menu-section) .hk-nav > li > a:not(.hk-nav-order) {
  padding: 13px 12px;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

body:has(.hk-full-menu-section) .hk-nav-order {
  min-height: 46px;
  padding: 13px 24px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 750;
  box-shadow: 0 10px 28px rgba(176, 0, 0, 0.22);
}

body:has(.hk-full-menu-section) .hk-cart-btn:not(.hk-cart-btn-mobile) {
  width: auto;
  min-width: 92px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(242, 173, 66, 0.42);
  border-radius: 10px;
  background: rgba(242, 173, 66, 0.08);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 17px;
  line-height: 1;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

body:has(.hk-full-menu-section) .hk-cart-btn:not(.hk-cart-btn-mobile)::after {
  content: "Cart";
  font-family: Montserrat, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
}

body:has(.hk-full-menu-section) .hk-cart-btn:not(.hk-cart-btn-mobile):hover {
  background: rgba(242, 173, 66, 0.16);
  border-color: rgba(242, 173, 66, 0.72);
  transform: translateY(-1px);
}

body:has(.hk-full-menu-section) .hk-cart-btn:not(.hk-cart-btn-mobile) .hk-cart-badge {
  top: -8px;
  right: -8px;
}

/* Hero: retain atmosphere while returning useful space to the products. */
body:has(.hk-full-menu-section) .hk-page-hero {
  height: clamp(220px, 20vw, 270px);
  min-height: 0;
  background-position: center 46%;
}

body:has(.hk-full-menu-section) .hk-page-hero-overlay {
  background: linear-gradient(90deg, rgba(8, 8, 9, 0.76), rgba(8, 8, 9, 0.54));
}

body:has(.hk-full-menu-section) .hk-page-hero-title {
  font-size: clamp(44px, 4.2vw, 66px);
  letter-spacing: -0.035em;
  text-shadow: 0 6px 22px rgba(0, 0, 0, 0.48);
}

/* Use the available display width instead of leaving a dead right rail. */
.hk-full-menu-section {
  padding-top: 34px;
  background:
    radial-gradient(circle at 82% 8%, rgba(124, 2, 2, 0.12), transparent 30%),
    #0f0f10;
}

.hk-full-menu-section > .hk-container {
  width: min(100%, 1580px);
  max-width: 1580px;
  padding-inline: clamp(20px, 2.5vw, 42px);
}

.hk-full-menu-section .hk-menu-layout {
  width: 100%;
  gap: clamp(24px, 2vw, 34px);
  align-items: flex-start;
}

.hk-full-menu-section .hk-menu-content {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}

.hk-full-menu-section .hk-items-grid {
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(22px, 1.6vw, 28px);
  align-items: stretch;
}

/* Sticky, scrollable category navigation for long menus. */
.hk-full-menu-section .hk-category-sidebar {
  flex: 0 0 250px;
  width: 250px;
  top: 146px;
  max-height: calc(100vh - 172px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px 18px;
  border: 1px solid var(--hk-menu-border);
  border-radius: 16px;
  background: rgba(24, 24, 27, 0.94);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  scrollbar-width: thin;
  scrollbar-color: rgba(242, 173, 66, 0.48) transparent;
}

.hk-full-menu-section .hk-category-sidebar-title {
  margin-bottom: 16px;
  font-size: 18px;
  letter-spacing: -0.015em;
}

.hk-full-menu-section .hk-category-sidebar-item {
  min-height: 42px;
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #c7c7ce;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease,
    transform 160ms ease;
}

.hk-full-menu-section .hk-category-sidebar-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateX(2px);
}

.hk-full-menu-section .hk-category-sidebar-item.active {
  color: #fff;
  background: linear-gradient(135deg, #a60000, #d90a2f);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 20px rgba(175, 0, 25, 0.2);
}

/* Product cards: one dark visual language with consistent image framing. */
.hk-full-menu-section .hk-item-card {
  width: 100%;
  max-width: none;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--hk-menu-border);
  border-radius: 17px;
  background: var(--hk-menu-surface);
  color: #fff;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.26);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.hk-full-menu-section .hk-item-card:hover {
  transform: translateY(-4px);
  border-color: rgba(242, 173, 66, 0.34);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.38);
}

.hk-full-menu-section .hk-item-img-wrap {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #101012;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hk-full-menu-section .hk-item-img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(12, 12, 14, 0.26), transparent 38%);
}

.hk-full-menu-section .hk-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.94) contrast(1.04);
  transform: scale(1.002);
  transition: transform 300ms ease, filter 300ms ease;
}

.hk-full-menu-section .hk-item-card:hover .hk-item-img {
  transform: scale(1.035);
  filter: saturate(1) contrast(1.06);
}

.hk-full-menu-section .hk-item-body {
  flex: 1 1 auto;
  min-height: 248px;
  padding: 20px 20px 21px;
  background: linear-gradient(180deg, #1b1b1e, #151517);
  color: #fff;
}

.hk-full-menu-section .hk-item-tags {
  min-height: 24px;
  margin-bottom: 8px;
  gap: 6px;
}

.hk-full-menu-section .hk-tag {
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.055em;
}

.hk-full-menu-section .hk-item-name {
  margin: 0 0 8px;
  color: #fff;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: -0.018em;
}

.hk-full-menu-section .hk-item-ingredients,
.hk-full-menu-section .hk-item-desc {
  margin: 0 0 12px;
  color: var(--hk-menu-copy) !important;
  font-size: 13.25px !important;
  font-weight: 450 !important;
  line-height: 1.52 !important;
}

.hk-full-menu-section .hk-item-footer {
  margin-top: auto;
  padding-top: 9px;
  align-items: center;
  gap: 12px;
}

.hk-full-menu-section .hk-item-price {
  color: #fff;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.hk-full-menu-section .hk-item-old-price {
  color: #85858e;
}

.hk-full-menu-section .hk-item-qty {
  min-height: 42px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  background: #0e0e10;
  align-items: center;
}

.hk-full-menu-section .hk-qty-btn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: #2a2a2e;
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  transition: background-color 150ms ease, transform 150ms ease;
}

.hk-full-menu-section .hk-qty-btn:last-child {
  background: linear-gradient(135deg, #a60000, #d90a2f);
}

.hk-full-menu-section .hk-qty-btn:not(:disabled):hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.hk-full-menu-section .hk-qty-btn:disabled {
  opacity: 0.36;
}

.hk-full-menu-section .hk-qty-val {
  min-width: 32px;
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  text-align: center;
}

.hk-full-menu-section .hk-item-order-limit {
  margin: 10px 0 12px;
  color: var(--hk-menu-muted) !important;
  font-size: 12px !important;
  font-weight: 550 !important;
  line-height: 1.45 !important;
}

.hk-full-menu-section .hk-btn-basket {
  width: 100%;
  min-height: 48px;
  margin-top: auto;
  padding: 13px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: linear-gradient(135deg, var(--hk-menu-red-dark), var(--hk-menu-red));
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 24px rgba(177, 0, 26, 0.24);
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.hk-full-menu-section .hk-btn-basket:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 14px 30px rgba(177, 0, 26, 0.34);
}

.hk-full-menu-section .hk-btn-basket.added {
  background: linear-gradient(135deg, #176b35, #28a653);
}

.hk-full-menu-section .hk-item-stock-badge,
.hk-full-menu-section .hk-item-sale-badge,
.hk-full-menu-section .hk-item-badge {
  z-index: 2;
  border-radius: 7px;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.24);
}

@media (min-width: 1500px) {
  .hk-full-menu-section .hk-items-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1040px) {
  body:has(.hk-full-menu-section) .hk-nav > li > a:not(.hk-nav-order) {
    padding-inline: 8px;
    font-size: 14px;
  }

  body:has(.hk-full-menu-section) .hk-cart-btn:not(.hk-cart-btn-mobile) {
    min-width: 48px;
  }

  body:has(.hk-full-menu-section) .hk-cart-btn:not(.hk-cart-btn-mobile)::after {
    content: "";
  }
}

@media (max-width: 900px) {
  body:has(.hk-full-menu-section) .hk-page-hero {
    height: 220px;
  }

  .hk-full-menu-section {
    padding-top: 20px;
  }

  .hk-full-menu-section .hk-menu-layout {
    display: block;
  }

  .hk-full-menu-section .hk-category-sidebar {
    position: sticky;
    top: 82px;
    z-index: 20;
    width: 100%;
    max-width: 100%;
    max-height: none;
    margin-bottom: 22px;
    padding: 10px;
    display: flex;
    flex-flow: row nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 13px;
    background: rgba(18, 18, 20, 0.96);
    backdrop-filter: blur(14px);
  }

  .hk-full-menu-section .hk-category-sidebar-title {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .hk-full-menu-section .hk-category-sidebar-item {
    flex: 0 0 auto;
    width: auto;
    min-height: 40px;
    padding: 9px 14px;
    white-space: nowrap;
  }

  .hk-full-menu-section .hk-category-sidebar-item:hover {
    transform: none;
  }

  .hk-full-menu-section .hk-items-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body:has(.hk-full-menu-section) .hk-page-hero {
    height: 190px;
  }

  body:has(.hk-full-menu-section) .hk-page-hero-title {
    font-size: 40px;
  }

  .hk-full-menu-section > .hk-container {
    padding-inline: 15px;
  }

  .hk-full-menu-section .hk-items-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .hk-full-menu-section .hk-item-img-wrap {
    aspect-ratio: 16 / 10;
  }

  .hk-full-menu-section .hk-item-body {
    min-height: 236px;
    padding: 18px;
  }

  .hk-full-menu-section .hk-item-name {
    font-size: 18px;
  }

  .hk-full-menu-section .hk-item-price {
    font-size: 22px;
  }

  .hk-cart-btn-mobile {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(242, 173, 66, 0.45);
    border-radius: 10px;
    background: rgba(242, 173, 66, 0.1);
    color: #fff;
  }

  .hk-cart-btn-mobile > i {
    display: none;
  }

  .hk-cart-btn-mobile::before {
    content: "\1F6D2";
    font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif;
    font-size: 21px;
    line-height: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hk-full-menu-section .hk-item-card,
  .hk-full-menu-section .hk-item-img,
  .hk-full-menu-section .hk-btn-basket,
  .hk-full-menu-section .hk-category-sidebar-item {
    transition: none;
  }
}
