/* Approved courtyard layout and price presentation. Marketing styles live in landing.css. */
html[lang="ar"] .courtyard-topline,
html[lang="ar"] .courtyard-bottomline,
html[lang="ar"] .courtyard-idle__compass span {
  letter-spacing: 0;
}
#stock-region {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.courtyard-scene {
  height: clamp(430px, 65svh, 500px);
  direction: ltr;
}
.courtyard-ground {
  object-fit: fill;
  object-position: center top;
}
.courtyard-stall {
  max-width: 155px;
  width: 17%;
  padding: 0 3px 4px;
}
.courtyard-stall--left-top {
  left: 3%;
  top: 16%;
}
.courtyard-stall--right-top {
  right: 3%;
  top: 16%;
}
.courtyard-stall--left-bottom {
  left: 3%;
  bottom: 4%;
}
.courtyard-stall--right-bottom {
  right: 3%;
  bottom: 4%;
}
.courtyard-stall__label {
  min-height: 32px;
  padding: 6px 5px;
  max-width: 150px;
}
.courtyard-stall__label strong {
  font-size: 11px;
  white-space: normal;
  line-height: 1.35;
}
.courtyard-stall__halo {
  bottom: 18%;
  height: 6%;
}
.courtyard-topline,
.courtyard-bottomline {
  padding-block: 10px;
}
.courtyard-topline > span:last-child {
  font-size: 11px;
  letter-spacing: 0;
}
.courtyard-centre {
  inset: 35% 21% 3%;
}
.courtyard-stock {
  max-width: 720px;
  align-self: center;
}
.courtyard-stock__heading h3 {
  font-size: 25px;
  line-height: 1.2;
  margin: 4px 0;
}
.courtyard-stock__heading {
  font-size: 10px;
  line-height: 1.3;
}
.courtyard-stock__heading .eyebrow {
  display: block;
}
.courtyard-stock__heading .eyebrow {
  font-size: 8px;
}
.courtyard-stock__heading > p {
  font-size: 10px;
}
.courtyard-stock__grid {
  grid-template-columns: repeat(var(--stock-count, 4), minmax(0, 1fr));
  gap: 12px;
  margin: 16px auto 12px;
  max-width: 660px;
  justify-content: center;
}
.courtyard-stock__grid[style*="--stock-count: 2"] {
  max-width: 330px;
}
.stock-crate {
  height: 94px;
  width: 100%;
  max-width: 135px;
}
.stock-crate__produce {
  inset: 0 6% 29%;
  clip-path: none;
  overflow: hidden;
}
.stock-crate__food {
  background-image: none;
  overflow: hidden;
  height: 100%;
  width: auto;
  max-width: 100%;
  aspect-ratio: 1;
  top: 0;
  bottom: auto;
  left: 50%;
  transform: translateX(-50%);
}
.stock-crate__back {
  inset: 39% 5% 0;
}
.stock-crate__front {
  inset: 73% 1% 0;
}
.courtyard-product__name {
  font-size: 12px;
  line-height: 1.35;
  margin: 5px 0 0;
  min-height: 0;
  display: block;
  overflow-wrap: normal;
  hyphens: auto;
}
.courtyard-product__price {
  margin: 4px 0 0;
  gap: 4px;
  justify-content: center;
  white-space: nowrap;
  flex-direction: row;
  align-items: baseline;
}
.courtyard-product__price strong {
  font-size: 21px;
  letter-spacing: -0.5px;
}
.courtyard-product__price span {
  font-size: 9px;
}
.courtyard-reset {
  min-height: 32px;
  font-size: 10px;
  padding: 5px 10px;
}
.courtyard-idle {
  padding: 8px 0;
}
.courtyard-logo {
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
}
.courtyard-idle h3 {
  font-size: 27px;
  margin-bottom: 9px;
}
.courtyard-idle__hint {
  font-size: 11px;
}
.courtyard-idle__compass {
  margin-top: 11px;
}
html[lang="ar"] .courtyard-centre,
html[lang="ar"] .courtyard-stall__label {
  direction: rtl;
}
html[lang="ar"] .courtyard-stock__heading h3,
html[lang="ar"] .courtyard-idle h3 {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  letter-spacing: 0;
}
html[lang="ar"] .courtyard-product__name {
  font-size: 13px;
}
html[data-theme="dark"] .souk-courtyard {
  background: #232b25;
  border-color: #475144;
  --stall-accent: #8fbb95;
}
html[data-theme="dark"] .souk-courtyard[data-category="meat"] {
  --stall-accent: #bc806d;
}
html[data-theme="dark"] .souk-courtyard[data-category="poultry"] {
  --stall-accent: #ba9c5c;
}
html[data-theme="dark"] .courtyard-ground {
  filter: brightness(0.32) saturate(0.65);
}
html[data-theme="dark"] .courtyard-stall__sprite {
  filter: brightness(0.86);
}
html[data-theme="dark"] .courtyard-topline,
html[data-theme="dark"] .courtyard-bottomline {
  color: #c1c9bc;
  border-color: #475144;
}
html[data-theme="dark"] .courtyard-topline > span:last-child,
html[data-theme="dark"] .courtyard-bottomline > span:last-child {
  color: #bdcbb6;
}
html[data-theme="dark"] .courtyard-stall__label {
  background: #2c352c;
  color: #f0edde;
  border-color: #65705a;
  box-shadow: 0 2px 0 #0003;
}
html[data-theme="dark"] .courtyard-stall.is-active .courtyard-stall__label {
  background: #466c4d;
  color: #fff8e8;
  border-color: #8eaf89;
}
html[data-theme="dark"] .courtyard-stock__heading .eyebrow,
html[data-theme="dark"] .courtyard-idle .eyebrow {
  color: #b5d6ab;
}
html[data-theme="dark"] .courtyard-stock__heading > p,
html[data-theme="dark"] .courtyard-product__price span,
html[data-theme="dark"] .courtyard-idle__hint {
  color: #d0d4c3;
}
html[data-theme="dark"] .courtyard-reset {
  background: #29362b;
  color: #f0eddc;
  border-color: #7a886a;
}
html[data-theme="dark"] .courtyard-idle__compass {
  color: #c3d4ab;
}
html[data-theme="dark"] .stock-crate__back {
  background: #987946;
}
html[data-theme="dark"] .stock-crate__front {
  filter: brightness(0.8);
}
@media (min-width: 1100px) and (max-height: 800px) {
  .courtyard-scene {
    height: 440px;
  }
  .courtyard-stall {
    max-width: 145px;
  }
  .courtyard-logo {
    width: 64px;
    height: 64px;
  }
  .stock-crate {
    height: 84px;
  }
}
@media (min-width: 761px) and (max-width: 1099px) {
  .courtyard-scene {
    height: 500px;
  }
  .courtyard-stall {
    max-width: 125px;
    width: 18%;
  }
  .courtyard-centre {
    inset: 25% 22% 3%;
  }
  .courtyard-stock__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 320px;
    gap: 10px 14px;
    margin: 12px auto;
  }
  .stock-crate {
    height: 68px;
    max-width: 125px;
  }
  .courtyard-product__price strong {
    font-size: 19px;
  }
  .courtyard-stock__heading h3 {
    font-size: 23px;
  }
  .courtyard-idle h3 {
    font-size: 25px;
  }
}
@media (max-width: 760px) {
  .courtyard-scene {
    height: 520px;
  }
  .courtyard-stall {
    width: 24%;
    max-width: 108px;
    padding: 0 0 3px;
  }
  .courtyard-stall--left-top {
    left: 2%;
    top: 22%;
  }
  .courtyard-stall--right-top {
    right: 2%;
    top: 22%;
  }
  .courtyard-stall--left-bottom {
    left: 2%;
    bottom: 10%;
  }
  .courtyard-stall--right-bottom {
    right: 2%;
    bottom: 10%;
  }
  .courtyard-centre {
    inset: 24% 27% 3%;
  }
  .courtyard-topline,
  .courtyard-bottomline {
    padding: 9px 10px;
  }
  .courtyard-topline > span:last-child {
    display: none;
  }
  .courtyard-topline {
    font-size: 7px;
  }
  .courtyard-bottomline {
    font-size: 8px;
    min-height: 35px;
  }
  .courtyard-bottomline > span:last-child {
    display: none;
  }
  .courtyard-stall__label {
    min-height: 33px;
    padding: 5px 3px;
    margin-top: 2px;
  }
  .courtyard-stall__label strong {
    font-size: 10px;
    line-height: 1.4;
  }
  .courtyard-logo {
    width: 65px;
    height: 65px;
  }
  .courtyard-idle h3 {
    font-size: 22px;
  }
  .courtyard-idle .eyebrow {
    font-size: 7px;
  }
  .courtyard-idle__hint {
    font-size: 10px;
  }
  .courtyard-idle__compass {
    gap: 4px;
  }
  .courtyard-idle__compass span {
    font-size: 6px;
  }
  .courtyard-stock__heading h3 {
    font-size: 21px;
  }
  .courtyard-stock__heading .eyebrow {
    font-size: 7px;
  }
  .courtyard-stock__heading > p {
    font-size: 8px;
  }
  .courtyard-stock__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 235px;
    gap: 12px 8px;
    margin: 12px auto;
  }
  .stock-crate {
    height: 62px;
  }
  .stock-crate__food {
    width: auto;
    height: 100%;
    left: 50%;
  }
  .courtyard-product__name {
    font-size: 10px;
    line-height: 1.35;
    min-height: 27px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-wrap: normal;
  }
  .courtyard-product__price {
    flex-direction: column;
    align-items: center;
    gap: 1px;
    margin-top: 2px;
  }
  .courtyard-product__price strong {
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: -0.5px;
  }
  .courtyard-product__price span {
    font-size: 8px;
    line-height: 1.3;
  }
  .courtyard-reset {
    font-size: 9px;
    min-height: 32px;
    padding: 5px 7px;
  }
  html[lang="ar"] .courtyard-product__name {
    font-size: 11px;
  }
}
@media (max-width: 370px) {
  .courtyard-scene {
    height: 535px;
  }
  .stock-crate {
    height: 55px;
  }
  .courtyard-product__name {
    font-size: 9px;
    letter-spacing: -0.15px;
  }
  .courtyard-stock__heading h3 {
    font-size: 19px;
  }
  .courtyard-stall__label strong {
    font-size: 9px;
  }
  .courtyard-idle h3 {
    font-size: 20px;
  }
}
@media (max-width: 1099px) {
  .courtyard-scene:before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("./souk-medina-panorama.webp") center bottom/auto 200%
      no-repeat;
    z-index: -4;
  }
  .courtyard-ground {
    height: 65%;
    object-fit: cover;
    mask-image: linear-gradient(#000 0 78%, transparent 100%);
  }
  html[data-theme="dark"] .courtyard-scene:before {
    filter: brightness(0.32) saturate(0.65);
  }
}
@media (max-width: 760px) {
  .courtyard-stock__grid {
    gap: 9px 8px;
    margin: 9px auto;
  }
  .courtyard-product__name {
    min-height: 24px;
  }
}
@media (min-width: 761px) and (max-width: 1099px) {
  .courtyard-stock__grid {
    margin: 9px auto;
    gap: 8px 14px;
  }
  .stock-crate {
    height: 64px;
  }
  .courtyard-stock__heading h3 {
    font-size: 21px;
  }
}
.courtyard-stock__heading .eyebrow {
  display: none;
}
.courtyard-stock__grid {
  margin: 8px auto;
  gap: 8px;
}
.stock-crate {
  height: 64px;
}
.courtyard-product__name {
  min-height: 20px;
  margin: 3px 0 0;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.product-unit {
  display: block;
  font-size: 8px;
  line-height: 11px;
  color: var(--soft-text);
}
.product-prices {
  height: 72px;
}
.product-price-source {
  height: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}
.price-source-label {
  display: block;
  font-size: 9px;
  line-height: 10px;
}
.product-price-source--reference {
  color: #365b3d;
}
.price-meta {
  font-size: 8px;
  line-height: 10px;
  white-space: nowrap;
  display: block;
}
.price-state {
  font-size: 8px;
  line-height: 10px;
  display: block;
  max-width: 100%;
}
.product-price-source .courtyard-product__price {
  display: block;
  margin: 0;
  line-height: 16px;
  white-space: nowrap;
}
.product-price-source .price-value {
  font-size: 14px;
  line-height: 16px;
  letter-spacing: -0.4px;
  font-weight: 600;
  display: block;
}
.courtyard-stock__heading h3 {
  font-size: 22px;
  line-height: 26px;
  margin: 0;
}
.product-price-source[data-status="error"] .price-state {
  color: #7c3a25;
}
html[data-theme="dark"] .product-price-source--reference {
  color: #c5dbb0;
}
html[data-theme="dark"]
  .product-price-source[data-status="error"]
  .price-state {
  color: #f0b299;
}
.courtyard-reset {
  min-height: 28px;
  padding: 4px 9px;
}
@media (min-width: 761px) and (max-width: 1099px) {
  .courtyard-centre {
    inset: 25% 22% 3%;
  }
  .courtyard-stock__grid {
    grid-template-columns: repeat(var(--stock-count, 4), minmax(0, 1fr));
    margin: 8px auto;
    gap: 8px;
  }
  .stock-crate {
    height: 64px;
  }
  .courtyard-product__name {
    min-height: 24px;
  }
}
@media (max-width: 760px) {
  .courtyard-centre {
    inset: 20.5% 27% 3%;
  }
  .courtyard-stock__grid {
    margin: 5px auto;
    gap: 6px 8px;
  }
  .stock-crate {
    height: 44px;
  }
  .courtyard-product__name {
    min-height: 24px;
    font-size: 9px;
    margin-top: 2px;
  }
  html[lang="ar"] .courtyard-product__name {
    font-size: 10px;
  }
  .product-unit {
    font-size: 7px;
    line-height: 10px;
  }
  .product-price-source .price-value {
    font-size: 14px;
    line-height: 16px;
  }
  .price-meta {
    font-size: 8px;
  }
  .courtyard-stock__heading h3 {
    font-size: 19px;
    line-height: 1.2;
    margin: 0;
  }
  .courtyard-reset {
    min-height: 28px;
    font-size: 9px;
  }
}
.souk-courtyard {
  box-shadow: 0 16px 40px -28px #302a2040;
}
.courtyard-topline {
  border-radius: 17px 17px 0 0;
}
.courtyard-bottomline {
  border-radius: 0 0 17px 17px;
}
.courtyard-topline,
.courtyard-bottomline {
  padding-block: 12px;
}
