
/* ============================================================
   CANNI V8.2.37 — spacing + bright category visual system
   ============================================================ */

/* ---------- SHOP TOP SPACING ---------- */
/* The fixed header / current-context strip already provide vertical spacing.
   Remove the old V4 shop top padding that creates the large blank zone. */
#shopView.v4-shop{
  padding-top:12px!important;
}

/* Return bar: wider like Search, closer to the top. */
#shopView > .shop-return-top-v8236{
  width:calc(100% - 48px)!important;
  max-width:none!important;
  min-height:62px!important;
  margin:0 auto 18px!important;
  padding:0 4px!important;
  border-bottom:1px solid #d9d2ca!important;
}

/* Let the divider visually reach the full content width. */
#shopView > .shop-return-top-v8236::after{
  display:none!important;
}

/* Tighter content rhythm immediately after return bar. */
#shopView > .shop-return-top-v8236 + .shop-breadcrumb{
  margin-top:0!important;
  margin-bottom:20px!important;
}

/* ---------- HOME CATEGORY CARDS ---------- */
.collection-grid{
  gap:16px!important;
}

.collection-card.category-card-bright-v8237{
  min-height:410px!important;
  border-radius:22px!important;
  border:1px solid rgba(91,78,68,.10)!important;
  background-color:#f5f1ec!important;
  background-size:cover!important;
  background-position:center!important;
  padding:0!important;
  box-shadow:0 10px 30px rgba(67,55,45,.06)!important;
  isolation:isolate!important;
}

/* Remove old black veil. */
.collection-card.category-card-bright-v8237::after{
  content:""!important;
  position:absolute!important;
  inset:auto 0 0 0!important;
  height:48%!important;
  z-index:0!important;
  background:linear-gradient(
    to top,
    rgba(248,245,240,.98) 0%,
    rgba(248,245,240,.90) 34%,
    rgba(248,245,240,.56) 68%,
    rgba(248,245,240,0) 100%
  )!important;
}

/* A subtle image frame rather than a dark overlay. */
.collection-card.category-card-bright-v8237::before{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  z-index:0!important;
  pointer-events:none!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.32)!important;
  border-radius:inherit!important;
}

.collection-card.category-card-bright-v8237 span,
.collection-card.category-card-bright-v8237 b{
  position:absolute!important;
  left:22px!important;
  right:22px!important;
  z-index:2!important;
  text-shadow:none!important;
}

.collection-card.category-card-bright-v8237 span{
  bottom:62px!important;
  color:#8a7d72!important;
  -webkit-text-fill-color:#8a7d72!important;
  font-size:10px!important;
  letter-spacing:.20em!important;
  font-weight:500!important;
}

.collection-card.category-card-bright-v8237 b{
  bottom:24px!important;
  color:#2a2521!important;
  -webkit-text-fill-color:#2a2521!important;
  font-size:24px!important;
  line-height:1.08!important;
  font-weight:500!important;
  margin:0!important;
}

/* Product-like hover instead of dramatic overlay. */
@media(hover:hover){
  .collection-card.category-card-bright-v8237{
    transition:transform .28s ease,box-shadow .28s ease!important;
  }
  .collection-card.category-card-bright-v8237:hover{
    transform:translateY(-3px)!important;
    box-shadow:0 16px 38px rgba(67,55,45,.10)!important;
  }
}

/* ---------- CATEGORY PAGE HERO ---------- */
#categoryHeroBanner.category-hero-bright-v8237{
  position:relative!important;
  min-height:380px!important;
  border-radius:22px!important;
  padding:0!important;
  margin:0 0 38px!important;
  background-color:#f5f1ec!important;
  background-size:cover!important;
  background-position:center!important;
  border:1px solid rgba(91,78,68,.10)!important;
  box-shadow:0 10px 30px rgba(67,55,45,.055)!important;
  overflow:hidden!important;
  isolation:isolate!important;
}

/* Replace black wash with a warm translucent information panel. */
#categoryHeroBanner.category-hero-bright-v8237::after{
  content:""!important;
  position:absolute!important;
  left:24px!important;
  bottom:24px!important;
  width:min(500px,calc(100% - 48px))!important;
  min-height:154px!important;
  border-radius:18px!important;
  background:rgba(250,247,243,.88)!important;
  border:1px solid rgba(255,255,255,.62)!important;
  box-shadow:0 10px 34px rgba(50,42,35,.07)!important;
  backdrop-filter:blur(7px)!important;
  -webkit-backdrop-filter:blur(7px)!important;
  z-index:1!important;
}

#categoryHeroBanner.category-hero-bright-v8237 .category-hero-copy{
  position:absolute!important;
  z-index:2!important;
  left:52px!important;
  bottom:48px!important;
  width:min(440px,calc(100% - 104px))!important;
  max-width:none!important;
  text-shadow:none!important;
}

#categoryHeroBanner.category-hero-bright-v8237 .category-hero-copy span{
  color:#8e8074!important;
  -webkit-text-fill-color:#8e8074!important;
  text-shadow:none!important;
}

#categoryHeroBanner.category-hero-bright-v8237 .category-hero-copy h1{
  color:#28231f!important;
  -webkit-text-fill-color:#28231f!important;
  text-shadow:none!important;
  font-size:clamp(38px,5vw,58px)!important;
  margin:9px 0 7px!important;
}

#categoryHeroBanner.category-hero-bright-v8237 .category-hero-copy p{
  color:#6f655c!important;
  -webkit-text-fill-color:#6f655c!important;
  text-shadow:none!important;
}

/* ---------- MOBILE ---------- */
@media(max-width:700px){
  #shopView.v4-shop{
    padding-top:4px!important;
  }

  #shopView > .shop-return-top-v8236{
    width:calc(100% - 32px)!important;
    min-height:58px!important;
    margin:0 auto 14px!important;
    padding:0 2px!important;
  }

  #shopView > .shop-return-top-v8236 + .shop-breadcrumb{
    margin-bottom:16px!important;
  }

  .collection-grid{
    gap:12px!important;
  }

  .collection-card.category-card-bright-v8237{
    min-height:292px!important;
    border-radius:18px!important;
  }

  .collection-card.category-card-bright-v8237::after{
    height:45%!important;
  }

  .collection-card.category-card-bright-v8237 span,
  .collection-card.category-card-bright-v8237 b{
    left:16px!important;
    right:16px!important;
  }

  .collection-card.category-card-bright-v8237 span{
    bottom:52px!important;
    font-size:9px!important;
  }

  .collection-card.category-card-bright-v8237 b{
    bottom:20px!important;
    font-size:20px!important;
  }

  #categoryHeroBanner.category-hero-bright-v8237{
    min-height:320px!important;
    border-radius:20px!important;
    margin-bottom:30px!important;
  }

  #categoryHeroBanner.category-hero-bright-v8237::after{
    left:14px!important;
    right:14px!important;
    bottom:14px!important;
    width:auto!important;
    min-height:128px!important;
    border-radius:16px!important;
    background:rgba(250,247,243,.91)!important;
  }

  #categoryHeroBanner.category-hero-bright-v8237 .category-hero-copy{
    left:32px!important;
    bottom:32px!important;
    width:calc(100% - 64px)!important;
  }

  #categoryHeroBanner.category-hero-bright-v8237 .category-hero-copy h1{
    font-size:38px!important;
  }

  #categoryHeroBanner.category-hero-bright-v8237 .category-hero-copy p{
    font-size:14px!important;
  }
}
