/* MARKA ICT | Storefront Finish R1 | 2026-11-11
   Scoped, visual-only overrides. Existing theme switch, commerce and admin untouched.
   Loaded after fidelity-b03, store-polish-b02 and store-buttons CSS.
*/

/* Hero: the former fixed 238px height clipped the orange CTA at desktop sizes. */
.marka-ui-b01 .ui-hero {
  height: auto;
  min-height: 338px;
  align-items: stretch;
}
.marka-ui-b01 .ui-hero-copy {
  min-width: 0;
  padding: 25px clamp(20px, 2.1vw, 34px);
}
.marka-ui-b01 .ui-hero h1 {
  font-size: clamp(1.5rem, 2.12vw, 2.35rem);
  line-height: 1.27;
}
.marka-ui-b01 .ui-hero-points { gap: 7px 12px; }
.marka-ui-b01 .ui-hero-points span { white-space: normal; }
.marka-ui-b01 .ui-cta { margin-top: 16px; }
.marka-ui-b01 .ui-hero-photo {
  position: relative;
  min-width: 0;
  min-height: 0;
}
.marka-ui-b01 .ui-hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
}

/* Categories: make the heading visible and show a true grid, including a
   single real category tile when the production database is still empty. */
.marka-ui-b01 .ui-category-section .ui-section-heading {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
  margin: 16px 0 12px;
}
.marka-ui-b01 .ui-category-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 10px;
  overflow: visible;
  scroll-snap-type: none;
  padding: 0;
  min-height: 0;
  margin-bottom: 18px;
}
.marka-ui-b01 .ui-category-tile {
  flex: initial;
  width: auto;
  min-width: 0;
  min-height: 91px;
  max-height: none;
  padding: 12px 8px;
}
.marka-ui-b01 .ui-category-tile strong {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.4;
}

/* Promotional cards: for RTL the text is on the RIGHT, so the photo must
   occupy a separate LEFT area. Earlier CSS put it under the copy. */
.marka-ui-b01 .ui-promo {
  height: auto;
  min-height: 158px;
  padding: 14px 17px;
  isolation: isolate;
  justify-content: center;
}
.marka-ui-b01 .ui-promo::after {
  inset: 0 auto 0 0;
  width: 43%;
  height: 100%;
  z-index: 0;
  background-size: cover;
  background-position: center;
}
.marka-ui-b01 .ui-promo > span,
.marka-ui-b01 .ui-promo > h2 {
  position: relative;
  z-index: 1;
  display: block;
  width: 54%;
  max-width: 54%;
  overflow-wrap: break-word;
  text-align: start;
}
.marka-ui-b01 .ui-promo h2 {
  font-size: clamp(.95rem, 1.3vw, 1.15rem);
  line-height: 1.28;
  margin: 5px 0 10px;
}
.marka-ui-b01 .ui-promo > span { font-size: .73rem; line-height: 1.35; }
.marka-ui-b01 .ui-promo > a {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  max-width: 54%;
  white-space: normal;
}

@media (max-width: 1100px) {
  .marka-ui-b01 .ui-hero { min-height: 325px; }
  .marka-ui-b01 .ui-hero-copy { padding: 24px; }
  .marka-ui-b01 .ui-promo { min-height: 168px; }
}
@media (max-width: 780px) {
  .marka-ui-b01 .ui-hero {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
  }
  .marka-ui-b01 .ui-hero-copy { order: 0; min-height: 0; padding: 24px; }
  .marka-ui-b01 .ui-hero-photo {
    order: 1;
    height: clamp(190px, 43vw, 280px);
    min-height: 190px;
    max-height: none;
  }
  .marka-ui-b01 .ui-hero-mark { display: none; }
  .marka-ui-b01 .ui-promo { min-height: 160px; }
}
@media (max-width: 510px) {
  .marka-ui-b01 .ui-hero h1 { font-size: clamp(1.45rem, 6vw, 1.9rem); }
  .marka-ui-b01 .ui-hero-copy { padding: 22px 20px; }
  .marka-ui-b01 .ui-hero-photo { height: 200px; }
  .marka-ui-b01 .ui-category-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .marka-ui-b01 .ui-promo { min-height: 158px; padding: 13px 15px; }
  .marka-ui-b01 .ui-promo h2 { font-size: 1.03rem; }
  .marka-ui-b01 .ui-promo::after { width: 40%; }
  .marka-ui-b01 .ui-promo > span,
  .marka-ui-b01 .ui-promo > h2,
  .marka-ui-b01 .ui-promo > a { width: auto; max-width: 57%; }
}
