body[data-category="cosmetics"] .simple-catalogue{
  background:linear-gradient(180deg,#f8f9fc 0%,#fff 100%);
}

body[data-category="cosmetics"] .simple-catalogue>.wrap{
  width:min(1320px,calc(100% - 40px));
  max-width:none;
}

.cosmetics-brand-nav{
  position:relative;
  top:auto;
  z-index:5;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:0 0 34px;
  padding:13px 15px;
  border:1px solid #e4e8f0;
  border-radius:20px;
  background:rgba(255,255,255,.96);
  box-shadow:0 14px 40px rgba(20,35,68,.08);
  backdrop-filter:blur(14px);
}

.cosmetics-brand-nav-label{
  flex:0 0 auto;
  color:#6d788e;
  font:800 10px/1 Manrope,sans-serif;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.cosmetics-brand-chips{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}

.cosmetics-brand-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:999px;
  background:#f0f3f8;
  color:#536078;
  text-decoration:none;
  font:800 11px/1 Manrope,sans-serif;
  transition:.2s ease;
}

.cosmetics-brand-chip:hover{
  transform:translateY(-1px);
  background:#e7ebf2;
}

.cosmetics-brand-chip b{
  display:grid;
  place-items:center;
  min-width:24px;
  height:24px;
  padding:0 6px;
  border-radius:999px;
  background:#fff;
  color:#7a8497;
  font-size:9px;
}

.cosmetics-brand-chip.is-shama{
  background:#17233d;
  color:#fff;
}

.cosmetics-brand-chip.is-shama b{
  color:#17233d;
}

.cosmetics-brand-sections{
  display:flex;
  flex-direction:column;
  gap:64px;
}

.cosmetics-brand-section{
  scroll-margin-top:170px;
}

.cosmetics-brand-section.is-shama{
  padding:28px;
  border:1px solid #e1e6ef;
  border-radius:30px;
  background:linear-gradient(135deg,#fff 0%,#f4f7fb 100%);
  box-shadow:0 18px 50px rgba(20,35,68,.07);
}

.cosmetics-brand-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:22px;
  margin:0 0 24px;
}

.cosmetics-brand-kicker{
  display:block;
  margin-bottom:9px;
  color:#7d6ae8;
  font:900 10px/1 Manrope,sans-serif;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.cosmetics-brand-head h2{
  margin:0;
  color:#10203d;
  font:900 clamp(30px,4vw,48px)/1 Manrope,sans-serif;
  letter-spacing:-.045em;
}

.cosmetics-brand-head p{
  margin:8px 0 0;
  color:#738097;
  font:600 14px/1.55 "DM Sans",sans-serif;
}

.cosmetics-brand-count{
  flex:0 0 auto;
  padding:10px 13px;
  border-radius:999px;
  background:#eef1f7;
  color:#66728a;
  font:800 10px/1 Manrope,sans-serif;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.cosmetics-brand-section.is-shama .cosmetics-brand-count{
  background:#17233d;
  color:#fff;
}

.cosmetics-product-grid{
  margin-top:0!important;
}

@media(max-width:900px){
  .cosmetics-brand-nav{
    position:relative;
    top:auto;
    align-items:flex-start;
    flex-direction:column;
  }

  .cosmetics-brand-chips{
    justify-content:flex-start;
  }

  .cosmetics-brand-section.is-shama{
    padding:20px;
  }
}

@media(max-width:640px){
  body[data-category="cosmetics"] .simple-catalogue>.wrap{
    width:min(100% - 22px,1320px);
  }

  .cosmetics-brand-nav{
    margin-bottom:26px;
    border-radius:16px;
  }

  .cosmetics-brand-chips{
    display:grid;
    grid-template-columns:1fr 1fr;
    width:100%;
  }

  .cosmetics-brand-chip{
    justify-content:space-between;
  }

  .cosmetics-brand-sections{
    gap:46px;
  }

  .cosmetics-brand-head{
    align-items:flex-start;
    flex-direction:column;
    gap:12px;
  }

  .cosmetics-brand-section.is-shama{
    padding:16px;
    border-radius:22px;
  }
}

/* 2026-10-03 uniform Cosmetics media spacing */
body[data-category="cosmetics"] .cosmetics-product-grid .simple-product-media{
  aspect-ratio:1/1!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  margin:12px!important;
  padding:0!important;
  overflow:hidden!important;
  background:#eef0f6!important;
}

body[data-category="cosmetics"] .cosmetics-product-grid .simple-product-media img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-position:center!important;
  transform:none!important;
  background:#eef0f6!important;
}

body[data-category="cosmetics"] .cosmetics-product-grid .simple-product-media.is-portrait-media img{
  object-fit:contain!important;
}

body[data-category="cosmetics"] .cosmetics-product-grid .simple-product-media.is-landscape-media img{
  object-fit:contain!important;
}

body[data-category="cosmetics"] .cosmetics-product-grid .simple-product-card:hover .simple-product-media img,
body[data-category="cosmetics"] .cosmetics-product-grid .simple-product-media:hover img,
body[data-category="cosmetics"] .cosmetics-product-grid .simple-product-media:focus-visible img{
  transform:none!important;
}

/* 2026-10-08 Cosmetics: full pack visibility and narrow-screen containment */
body[data-category="cosmetics"] .cosmetics-brand-nav,
body[data-category="cosmetics"] .cosmetics-brand-sections,
body[data-category="cosmetics"] .cosmetics-brand-section,
body[data-category="cosmetics"] .cosmetics-brand-head,
body[data-category="cosmetics"] .cosmetics-product-grid {
  min-width:0;
  max-width:100%;
}
body[data-category="cosmetics"] .cosmetics-product-grid .simple-product-media {
  width:calc(100% - 24px)!important;
  max-width:calc(100% - 24px)!important;
}
body[data-category="cosmetics"] .cosmetics-product-grid .simple-product-media img {
  object-fit:contain!important;
}
@media (max-width:640px) {
  body[data-category="cosmetics"] .cosmetics-brand-chips {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  body[data-category="cosmetics"] .cosmetics-brand-chip {
    min-width:0;
  }
  body[data-category="cosmetics"] .cosmetics-brand-chip span {
    min-width:0;
    overflow-wrap:anywhere;
  }
  body[data-category="cosmetics"] .cosmetics-product-grid .simple-product-media {
    width:calc(100% - 20px)!important;
    max-width:calc(100% - 20px)!important;
    margin:10px!important;
  }
}
@media (max-width:360px) {
  body[data-category="cosmetics"] .cosmetics-brand-chips {
    grid-template-columns:minmax(0,1fr);
  }
}

/* 2026-10-08 cosmetics equal landscape frames */
/* This overrides the older .is-landscape-media contain rule only for
   moderate-width photos whose central product remains in the crop. */
body[data-category="cosmetics"] .cosmetics-product-grid .simple-product-media.is-landscape-media.is-uniform-landscape img {
  width:100%!important;
  max-width:100%!important;
  height:82%!important;
  max-height:82%!important;
  object-fit:cover!important;
  object-position:center!important;
}

/* 2026-10-08 cosmetics corrected thumbnail positioning:
   the visible photo rectangle is identical in every square card,
   independent of the source's native aspect ratio. */
body[data-category="cosmetics"] .cosmetics-product-grid
.simple-product-media.is-uniform-landscape img {
  position:absolute!important;
  top:9%!important;
  left:0!important;
  width:100%!important;
  height:82%!important;
  min-height:0!important;
  max-height:82%!important;
  object-fit:cover!important;
  object-position:center!important;
}
