/* TCHAHIT v81 — consistent food imagery and a full-card delivery canvas. */

/* Every food category uses the same crop, frame and optical scale. */
.shell .category-row {
  align-items: stretch;
}
.shell .category-row > button {
  height: 176px;
  min-height: 176px;
  padding: 12px 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.shell .category-row .category-photo {
  display: block;
  width: 108px;
  height: 108px;
  flex: 0 0 108px;
  border-radius: 18px;
  background-color: #e8e9e4;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: cover;
  box-shadow: 0 8px 22px rgba(16,21,20,.13);
}
.shell .category-row > button .category-photo,
.shell .category-row > button:hover .category-photo,
.shell .category-row > button.active .category-photo {
  inline-size: 108px !important;
  block-size: 108px !important;
  aspect-ratio: 1;
  transform: none !important;
}
.shell .category-row > button:first-child .category-photo {
  background-position: 50% 48%;
}
.shell .category-row b {
  min-height: 34px;
  margin-top: 10px;
  display: grid;
  place-items: center;
  line-height: 1.35;
  text-align: center;
}

/* The image widget is now the card itself: 12 edge-to-edge delivery scenes. */
.shell .direct-courier-head {
  position: relative;
  min-height: 570px;
  padding: clamp(38px, 5vw, 76px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #101514;
}
.shell .direct-courier-head::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(270deg, rgba(9,13,12,.97) 3%, rgba(9,13,12,.89) 34%, rgba(9,13,12,.53) 65%, rgba(9,13,12,.22) 100%),
    linear-gradient(180deg, rgba(9,13,12,.2), rgba(9,13,12,.66));
  pointer-events: none;
}
html[dir="ltr"] .shell .direct-courier-head::before {
  background:
    linear-gradient(90deg, rgba(9,13,12,.97) 3%, rgba(9,13,12,.89) 34%, rgba(9,13,12,.53) 65%, rgba(9,13,12,.22) 100%),
    linear-gradient(180deg, rgba(9,13,12,.2), rgba(9,13,12,.66));
}
.shell .courier-story-copy {
  position: relative;
  z-index: 3;
  width: min(680px, 62%);
  min-width: 0;
  margin-inline-start: auto;
}
html[dir="ltr"] .shell .courier-story-copy {
  margin-inline-start: 0;
  margin-inline-end: auto;
}
.shell .courier-story-copy h2 {
  max-width: 12ch;
  text-shadow: 0 4px 22px rgba(0,0,0,.48);
}
.shell .courier-story-copy > p {
  color: rgba(239,242,239,.78);
  text-shadow: 0 2px 10px rgba(0,0,0,.5);
}
.shell .courier-mosaic {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 4px;
  transform: none;
  background: #101514;
}
html[dir="rtl"] .shell .courier-mosaic { transform: none; }
.shell .courier-mosaic-tile,
.shell .courier-mosaic .tile-1,
.shell .courier-mosaic .tile-2,
.shell .courier-mosaic .tile-6,
.shell .courier-mosaic .tile-9,
.shell .courier-mosaic .tile-11,
.shell .courier-mosaic .tile-12 {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  grid-column: auto;
  grid-row: auto;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #202724;
}
.shell .courier-mosaic-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  filter: saturate(.88) contrast(1.04) brightness(.82);
}
.shell .courier-mosaic .tile-2 img,
.shell .courier-mosaic .tile-7 img { object-position: 38% 50%; }
.shell .courier-mosaic .tile-4 img,
.shell .courier-mosaic .tile-9 img { object-position: 68% 50%; }
.shell .courier-mosaic .tile-6 img,
.shell .courier-mosaic .tile-11 img { object-position: 50% 38%; }
.shell .direct-errand-chips > span {
  border-color: rgba(255,255,255,.2);
  background: rgba(13,18,16,.68);
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
  backdrop-filter: blur(12px);
}

@media (max-width: 920px) {
  .shell .direct-courier-head { min-height: 610px; padding: 34px; }
  .shell .courier-story-copy { width: min(680px, 82%); }
  .shell .courier-mosaic { height: 100%; order: initial; grid-template-columns: repeat(3, minmax(0,1fr)); grid-template-rows: repeat(4, minmax(0,1fr)); }
  .shell .direct-courier-head::before {
    background: linear-gradient(180deg, rgba(9,13,12,.42), rgba(9,13,12,.93) 63%, rgba(9,13,12,.98));
  }
}

@media (max-width: 620px) {
  .shell .category-row > button { height: 150px; min-height: 150px; }
  .shell .category-row .category-photo { width: 84px; height: 84px; flex-basis: 84px; border-radius: 15px; }
  .shell .category-row > button .category-photo,
  .shell .category-row > button:hover .category-photo,
  .shell .category-row > button.active .category-photo { inline-size: 84px !important; block-size: 84px !important; }
  .shell .category-row b { min-height: 30px; margin-top: 8px; }
  .shell .direct-courier-head { min-height: 660px; padding: 26px 18px; align-items: flex-end; }
  .shell .courier-story-copy { width: 100%; }
  .shell .courier-mosaic { height: 100%; gap: 3px; }
  .shell .direct-errand-chips { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .shell .courier-mosaic-tile img { transition: none; }
}
