/* ═══════════════════════════════════════════════════════════════
   Category Grid — Figma "Life In Motion" = `.section-5` (1440 ref, h602).
   Every node is a DIRECT child of .section-5, so the exported top/left values
   are already section-relative — no nesting offset to unwind:
     .text-wrapper-12      y0    x104  w1270  60px/400, +2px    "Life In Motion"
     .ya-am-ritmine-uyum   y92   x104  w1270  30px/500, +2px    subtitle
     .group-2  y191 x104  220x323   .g-n-boyu        y528 x130 w168
     .frame-4  y191 x367  219x323   .of-s            y528 x392 w168
     .frame-5  y191 x629  219x323   .hareket-hal-nde y528 x633 w210
     .frame-6  y191 x892  219x323   .seyahat         y528 x917 w168
     .frame-7  y191 x1154 220x323   .hafta-sonu      y528 x1180 w168
   → 5 equal cards, aspect 219.56/323 (~0.68), 4 gaps of 43px, labels 14px
     under the card (514 → 528), 16px/700 +2px centred.
   The exported row runs x104..x1374 (1270px), but the design's canonical
   gutter is 104px on BOTH sides — `.section-9`'s collection row lands exactly
   on x104..x1335 — so the theme keeps the symmetric 1231px column shared with
   Engineering / CollectionStories / ShopTheLook. Card *shape* stays exact via
   aspect-ratio; only the width scales ~3.5%.
   ═══════════════════════════════════════════════════════════════ */

.cc_LmUd6PvvAN_kXdA2KtFL8 .catgrid {
  width: 100%;
  /* 45px top + 45px bottom = the Figma 90px rhythm between sections */
  padding: clamp(40px, 6.615vw, 127px) 0 clamp(40px, 5.885vw, 113px);
  color: var(--cat-text, #17150F);
}

.cc_LmUd6PvvAN_kXdA2KtFL8 .catgrid__inner {
  /* ~1231px content column centered (x104..x1335 at 1440) */
  width: min(1748px, calc(100% - 2 * clamp(16px, 4.479vw, 86px)));
  margin: 0 auto;
}

/* ── Head ── */
.cc_LmUd6PvvAN_kXdA2KtFL8 .catgrid__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  /* subtitle bottom 133 → cards top 191 = 58px @1440 */
  margin-bottom: clamp(32px, 4.03vw, 58px);
}

/* Right-side action. */
.cc_LmUd6PvvAN_kXdA2KtFL8 .catgrid__head-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-shrink: 0;
}

/* Heading first, subtitle below it (Figma order) — the markup keeps the
   eyebrow element before the h2, so flex `order` swaps them visually. */
.cc_LmUd6PvvAN_kXdA2KtFL8 .catgrid__head-text {
  display: flex;
  flex-direction: column;
}

/* The former eyebrow renders as the Figma subtitle (node 73:533):
   30px Manrope Medium, black, tracking 2px, positioned under the heading. */
.cc_LmUd6PvvAN_kXdA2KtFL8 .catgrid__eyebrow {
  order: 2;
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-d30);
  font-weight: 500;
  letter-spacing: 0.0667em; /* 2px @30px */
  text-transform: none;
  line-height: 1.367; /* 41/30 @1440 */
  color: var(--cat-text, #17150F);
  /* heading box bottom y82 → subtitle top y92 = 10px @1440 */
  margin: clamp(6px, 0.694vw, 10px) 0 0;
}
/* Heading (node 73:534): 60px Manrope Regular, black, tracking 2px. */
.cc_LmUd6PvvAN_kXdA2KtFL8 .catgrid__heading {
  order: 1;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-d60);
  line-height: 1.367; /* 82/60 @1440 */
  letter-spacing: 0.0333em; /* 2px @60px */
  margin: 0;
}

/* Figma section9: subtitle "Yaşam ritmine uyum sağlayan stil" — Manrope Medium
   30px / 41px, +2px tracking, 10px under the heading (heading bottom 82 → 92). */
.cc_LmUd6PvvAN_kXdA2KtFL8 .catgrid__sub {
  order: 2;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-d30);
  line-height: 1.367; /* 41/30 @1440 */
  letter-spacing: 0.0667em; /* 2px @30px */
  margin: clamp(6px, 0.694vw, 10px) 0 0;
}

/* ── TÜMÜ button ── */
.cc_LmUd6PvvAN_kXdA2KtFL8 .catgrid__all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--cat-text, #17150F);
  padding: 14px 28px;
  text-decoration: none;
  transition: background-color 0.3s ease, gap 0.3s ease;
}
.cc_LmUd6PvvAN_kXdA2KtFL8 .catgrid__all:hover {
  background: var(--cat-accent, #9A7B4F);
  gap: 16px;
}
.cc_LmUd6PvvAN_kXdA2KtFL8 .catgrid__all-arr { transition: transform 0.3s ease; }
.cc_LmUd6PvvAN_kXdA2KtFL8 .catgrid__all:hover .catgrid__all-arr { transform: translateX(4px); }

/* ── Grid ── */
.cc_LmUd6PvvAN_kXdA2KtFL8 .catgrid__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 1.5vw, 24px);
}
/* ── Bento: give odd card counts a wide leader ──
   A 2-up phone grid leaves the last card of an odd set stranded in the left
   column with dead space beside it (5 cards = 2 + 2 + 1). Promoting the FIRST
   card to a full-width tile makes the remainder even, so every later row is a
   full pair — the hole disappears and the section reads as a deliberate bento
   instead of a grid that ran out of cards.

   Only 3 and 5 are listed because the editor exposes card1..card6: 2/4/6 are
   already even, and 1 has no second column to strand anything in.

   The wide tile drops the 219.56/323 portrait crop — at full width that would
   be a ~1.5-screen-tall slab. 4/3 keeps it banner-like, and the upward
   object-position bias protects faces from the shallower crop. */
.cc_LmUd6PvvAN_kXdA2KtFL8 .catgrid__grid[data-count="3"] > .catgrid__card:first-child, .cc_LmUd6PvvAN_kXdA2KtFL8 .catgrid__grid[data-count="5"] > .catgrid__card:first-child {
  grid-column: span 2;
}
.cc_LmUd6PvvAN_kXdA2KtFL8 .catgrid__grid[data-count="3"] > .catgrid__card:first-child .catgrid__media, .cc_LmUd6PvvAN_kXdA2KtFL8 .catgrid__grid[data-count="5"] > .catgrid__card:first-child .catgrid__media {
  aspect-ratio: 4 / 3;
}
.cc_LmUd6PvvAN_kXdA2KtFL8 .catgrid__grid[data-count="3"] > .catgrid__card:first-child .catgrid__img, .cc_LmUd6PvvAN_kXdA2KtFL8 .catgrid__grid[data-count="5"] > .catgrid__card:first-child .catgrid__img {
  object-position: 50% 35%;
}

@media (min-width: 640px) {
  .cc_LmUd6PvvAN_kXdA2KtFL8 .catgrid__grid {
    grid-template-columns: repeat(var(--catgrid-tablet-cols, 3), minmax(0, 1fr));
  }

  /* Three columns: only 5 still comes out ragged (3 + 2 leaves one slot open).
     The same wide leader turns it into 2-wide + 1, then a full row of 3.
     Count 3 fills its single row exactly here, so it drops back to a plain
     card — the mobile-only promotion above must be undone, not inherited. */
  .cc_LmUd6PvvAN_kXdA2KtFL8 .catgrid__grid[data-count="3"] > .catgrid__card:first-child {
    grid-column: auto;
  }
  .cc_LmUd6PvvAN_kXdA2KtFL8 .catgrid__grid[data-count="3"] > .catgrid__card:first-child .catgrid__media {
    aspect-ratio: var(--catgrid-image-aspect-ratio, 219.56 / 323);
  }
  .cc_LmUd6PvvAN_kXdA2KtFL8 .catgrid__grid[data-count="3"] > .catgrid__card:first-child .catgrid__img {
    object-position: 50% 50%;
  }
  .cc_LmUd6PvvAN_kXdA2KtFL8 .catgrid__grid[data-count="5"] > .catgrid__card:first-child .catgrid__media {
    /* Tablet bento: the leader occupies two of the three columns. With the
       live tablet gutter, 7/5 gives it the same media height as the adjacent
       portrait card, so both captions share one baseline. */
    aspect-ratio: 7 / 5;
  }
}
@media (min-width: 1024px) {
  /* Columns follow the actual card count (set inline as --catgrid-cols), so hiding
     a card lets the rest grow to fill the full width instead of leaving an empty
     slot. Falls back to 6 when the variable is absent. Figma: 5 cards at y191
     with ~43px gaps. The Figma card row measures 1269.56px (x104..x1373.56 —
     the frame sits ~38px off-centre), but this theme uses the shared 1231px
     content column (symmetric 104px inset, same as CollectionStories /
     ShopTheLook / Engineering), so cards land at 211.8px instead of 219.56px.
     Column consistency with the neighbouring sections wins over the 3.5%
     width delta; the card *shape* is exact via aspect-ratio below. */
  .cc_LmUd6PvvAN_kXdA2KtFL8 .catgrid__grid {
    grid-template-columns: repeat(var(--catgrid-cols, 6), 1fr);
    gap: clamp(16px, 4.219vw, 81px); /* 81 @1920 */
  }

  /* Desktop gives every card its own column, so nothing is ever stranded and
     the bento leader must be retired — left in place it would eat two of the
     five tracks and wrap the last card onto a second row, which is the exact
     Figma row this section is built to reproduce. */
  .cc_LmUd6PvvAN_kXdA2KtFL8 .catgrid__grid[data-count="3"] > .catgrid__card:first-child, .cc_LmUd6PvvAN_kXdA2KtFL8 .catgrid__grid[data-count="5"] > .catgrid__card:first-child {
    grid-column: auto;
  }
  .cc_LmUd6PvvAN_kXdA2KtFL8 .catgrid__grid[data-count="3"] > .catgrid__card:first-child .catgrid__media, .cc_LmUd6PvvAN_kXdA2KtFL8 .catgrid__grid[data-count="5"] > .catgrid__card:first-child .catgrid__media {
    aspect-ratio: var(--catgrid-image-aspect-ratio, 219.56 / 323);
  }
  .cc_LmUd6PvvAN_kXdA2KtFL8 .catgrid__grid[data-count="3"] > .catgrid__card:first-child .catgrid__img, .cc_LmUd6PvvAN_kXdA2KtFL8 .catgrid__grid[data-count="5"] > .catgrid__card:first-child .catgrid__img {
    object-position: 50% 50%;
  }
}

/* ── Card ── */
.cc_LmUd6PvvAN_kXdA2KtFL8 .catgrid__card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  /* card bottom y514 → label top y528 = 14px @1440, scaled down below it */
  gap: clamp(10px, 0.885vw, 17px); /* caption 17 below image @1920 */
  text-decoration: none;
  color: inherit;
}
.cc_LmUd6PvvAN_kXdA2KtFL8 .catgrid__media {
  position: relative;
  width: 100%;
  /* Figma card 219.56 × 323 (cards at y191, h323) */
  aspect-ratio: var(--catgrid-image-aspect-ratio, 219.56 / 323);
  overflow: hidden;
  background: var(--color-cream-soft, rgba(23, 21, 15, 0.03));
}
.cc_LmUd6PvvAN_kXdA2KtFL8 .catgrid__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Per-card zoom arrives as an inline custom property. It has to travel as a
     variable rather than an inline `transform`, because transform is replaced
     rather than accumulated — a hardcoded hover scale would snap a 150% card
     back to 104%. The hover value is the base × 1.04, computed in the TSX, so
     the lift always stacks on top of whatever the merchant chose. Fallbacks
     keep the original behaviour when no inline style is present. */
  transform: scale(var(--catgrid-card-zoom, 1));
  transition: transform 0.6s ease;
}
.cc_LmUd6PvvAN_kXdA2KtFL8 .catgrid__card:hover .catgrid__img { transform: scale(var(--catgrid-card-hover-zoom, 1.04)); }

/* empty-state placeholder */
.cc_LmUd6PvvAN_kXdA2KtFL8 .catgrid__ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 12px;
}
.cc_LmUd6PvvAN_kXdA2KtFL8 .catgrid__ph-name {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 400;
  color: var(--cat-text, #17150F);
  opacity: 0.7;
}
.cc_LmUd6PvvAN_kXdA2KtFL8 .catgrid__ph-text {
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cat-text, #17150F);
  opacity: 0.3;
}

/* label below card — centred uppercase, 16px Manrope Bold, +2px tracking,
   line-height:normal (Figma labels y528, 14px under the card bottom at y514) */
.cc_LmUd6PvvAN_kXdA2KtFL8 .catgrid__label {
  font-family: var(--font-label);
  font-size: clamp(13px, 1.12vw, 16px); /* 16px @1440 */
  line-height: 1.367; /* "normal" → 21.9px @16px (site-wide 82/60 ratio) */
  font-weight: 700;
  letter-spacing: 0.125em; /* 2px @16px */
  text-transform: uppercase;
  color: var(--cat-text, #17150F);
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .cc_LmUd6PvvAN_kXdA2KtFL8 .catgrid__img, .cc_LmUd6PvvAN_kXdA2KtFL8 .catgrid__all, .cc_LmUd6PvvAN_kXdA2KtFL8 .catgrid__all-arr { transition: none; }
}

/* ─── Fixed 1920×1080 canvas ────────────────────────────────────
   This is Figma `section9` ("Life In Motion"), and it is one of the three
   homepage frames the design deliberately draws SHORTER than a screen: 940 of
   the 1080, against 602 for section10 and 369 for section11. (Identified by the
   card ratio — the export's 285×419 gallery tiles are 0.680, exactly the
   219.56/323 used above.)

   It used to say `min-height: var(--sumone-vh)`, i.e. a full screen. That was
   the wrong target: it made the section 140px taller than the design and pushed
   the whole page rhythm out. 940 is a DESIGN-px number and needs no conversion —
   the fixed-canvas mode lays the document out at exactly 1920 design px wide and
   scales the result, so the Figma value goes in as written.

   The card row measures ~884px on its own, so the flex column below only has
   ~56px of slack to distribute; the padding stays part of the rhythm. */
@media (min-width: 1025px) {
  .cc_LmUd6PvvAN_kXdA2KtFL8 .catgrid {
    box-sizing: border-box;
    min-height: 940px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* Header alignment (data-align) */
.cc_LmUd6PvvAN_kXdA2KtFL8 .catgrid__head[data-align="center"] {
  justify-content: center;
  text-align: center;
}
.cc_LmUd6PvvAN_kXdA2KtFL8 .catgrid__head[data-align="center"] .catgrid__head-text {
  text-align: center;
}
.cc_LmUd6PvvAN_kXdA2KtFL8 .catgrid__head[data-align="right"] {
  flex-direction: row-reverse;
  text-align: right;
}
.cc_LmUd6PvvAN_kXdA2KtFL8 .catgrid__head[data-align="right"] .catgrid__head-text {
  text-align: right;
}

/* Fixed desktop canvas — Figma 504:420, 1920×940. */
@media (min-width: 1024px) {
  .cc_LmUd6PvvAN_kXdA2KtFL8 .catgrid {
    box-sizing: border-box;
    height: calc(var(--sumone-section-height, 56.25vw) * 0.87037);
    min-height: calc(var(--sumone-section-height, 56.25vw) * 0.87037);
    padding: clamp(40px, 6.615vw, 127px) 0 clamp(40px, 5.885vw, 113px);
    justify-content: flex-start;
  }
  .cc_LmUd6PvvAN_kXdA2KtFL8 .catgrid__inner {
    width: min(1748px, calc(100% - 2 * clamp(16px, 4.479vw, 86px)));
  }
  .cc_LmUd6PvvAN_kXdA2KtFL8 .catgrid__head { margin-bottom: clamp(32px, 5.26vw, 101px); }
  .cc_LmUd6PvvAN_kXdA2KtFL8 .catgrid__grid { gap: clamp(16px, 4.219vw, 81px); }
  .cc_LmUd6PvvAN_kXdA2KtFL8 .catgrid__card { gap: clamp(10px, 0.885vw, 17px); }
  .cc_LmUd6PvvAN_kXdA2KtFL8 .catgrid__label { font-size: 16px; line-height: 29px; }
}

/* Ekran-altı bölüm: sayfa açılışında viewport dışında olduğu için tarayıcı
   layout/paint maliyetini gerçekten görünene kadar erteleyebilir. `auto`
   anahtar sözcüğü sayesinde ilk yerleşimden sonra gerçek boyut hatırlanır —
   tahmin yalnızca ilk kaba scrollbar uzunluğunu besler, CLS üretmez. Sticky
   veya scroll-pin içeren bölümlere (ShopTheLook, CollectionStories) bilerek
   uygulanmadı. */
.cc_LmUd6PvvAN_kXdA2KtFL8 .catgrid {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}
