/* LauraLooks 2.0.13 — category product-card parity
   Dames/Heren category grids must use the same card contract and desktop geometry as /fashion/.
   Loaded last so legacy .ce-row-category-main compatibility rules cannot re-box cards or force 3 columns. */

@media (min-width:1024px){
  /* Match the /fashion/ content shell: 80px page margins, 320px filter, 64px gutter. */
  body.llx-site .ce-row-category-main{
    display:block!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0 0 76px!important;
  }
  body.llx-site .ce-row-category-main>.ll-shell{
    width:calc(100% - 160px)!important;
    max-width:none!important;
    margin:0 auto!important;
  }
  body.llx-site .ce-row-category-main .ll-category-listing__layout{
    display:grid!important;
    grid-template-columns:320px minmax(0,1fr)!important;
    gap:64px!important;
    align-items:start!important;
  }
  body.llx-site .ce-row-category-main .ll-category-listing__filters,
  body.llx-site .ce-row-category-main .ll-category-listing__results{
    min-width:0!important;
  }
  body.llx-site .ce-row-category-main .ff-category-results,
  body.llx-site .ce-row-category-main .ff-category-results>.ff-shell{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding-top:0!important;
  }

  /* Exact /fashion/ grid and product-card geometry. */
  body.llx-site .ce-row-category-main .ff-product-grid--category{
    width:100%!important;
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:56px 20px!important;
    padding-top:18px!important;
  }
  body.llx-site .ce-row-category-main .ff-product-card,
  body.llx-site .ce-row-category-main .ff-product-card--v2{
    height:auto!important;
    min-width:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    overflow:visible!important;
  }
  body.llx-site .ce-row-category-main .ff-product-card__media,
  body.llx-site .ce-row-category-main .ff-product-card__stage{
    position:relative!important;
    width:100%!important;
    aspect-ratio:4/5!important;
    margin:0 0 8px!important;
    border:0!important;
    border-radius:0!important;
    background:var(--ll204-container,#efeeec)!important;
    overflow:hidden!important;
  }
  body.llx-site .ce-row-category-main .ff-product-card__stage>a,
  body.llx-site .ce-row-category-main .ff-product-card__stage picture{
    display:block!important;
    width:100%!important;
    height:100%!important;
  }
  body.llx-site .ce-row-category-main .ff-product-card__stage img{
    display:block!important;
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    padding:0!important;
    border-radius:0!important;
  }
  body.llx-site .ce-row-category-main .ff-product-card__body{
    display:flex!important;
    flex-direction:column!important;
    min-height:0!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
  }
  body.llx-site .ce-row-category-main .ff-product-card__brand{
    font:600 11px/14px var(--ll204-sans,"DM Sans",Arial,sans-serif)!important;
    letter-spacing:.15em!important;
    color:var(--ll204-secondary,#615e59)!important;
  }
  body.llx-site .ce-row-category-main .ff-product-card h3{
    min-height:0!important;
    margin:4px 0 0!important;
    font:400 20px/26px var(--ll204-serif,"Playfair Display",Georgia,serif)!important;
    letter-spacing:.02em!important;
  }
  body.llx-site .ce-row-category-main .ff-product-card__price{
    display:flex!important;
    gap:8px!important;
    margin:4px 0 0!important;
  }
  body.llx-site .ce-row-category-main .ff-product-card__price strong{
    font:500 14px/18px var(--ll204-sans,"DM Sans",Arial,sans-serif)!important;
    letter-spacing:.04em!important;
  }
  body.llx-site .ce-row-category-main .ff-product-card__meta{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    min-height:0!important;
    margin-top:12px!important;
    padding:8px 0 0!important;
    border-top:1px solid rgba(196,199,199,.45)!important;
    background:transparent!important;
    font:500 12px/16px var(--ll204-sans,"DM Sans",Arial,sans-serif)!important;
    color:var(--ll204-muted,#444748)!important;
  }
  body.llx-site .ce-row-category-main .ff-product-card__meta a{
    width:auto!important;
    height:auto!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    color:var(--ll204-ink,#1a1c1b)!important;
  }
  body.llx-site .ce-row-category-main .ff-product-card__meta a .ff-icon{
    width:13px!important;
    height:13px!important;
  }
  body.llx-site .ce-row-category-main .ff-product-card .ff-favorite{
    top:12px!important;
    right:12px!important;
    width:32px!important;
    height:32px!important;
    border:0!important;
    border-radius:50%!important;
    background:rgba(250,249,247,.94)!important;
    box-shadow:none!important;
  }
}

/* Keep tablet behaviour consistent between category pages and /fashion/. */
@media (min-width:768px) and (max-width:1199px){
  body.llx-site .ce-row-category-main>.ll-shell{
    width:calc(100% - 96px)!important;
  }
  body.llx-site .ce-row-category-main .ll-category-listing__layout{
    grid-template-columns:280px minmax(0,1fr)!important;
    gap:36px!important;
  }
  body.llx-site .ce-row-category-main .ff-product-grid--category{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:40px 18px!important;
  }
}

/* Mobile keeps the already approved 2-column Stitch card layout, but neutralises legacy boxed-card rules. */
@media (max-width:767px){
  body.llx-site .ce-row-category-main{display:block!important;width:100%!important;margin:0!important}
  body.llx-site .ce-row-category-main>.ll-shell{width:calc(100% - 48px)!important;margin:0 auto!important}
  body.llx-site .ce-row-category-main .ll-category-listing__layout{display:block!important}
  body.llx-site .ce-row-category-main .ff-product-grid--category{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:24px 12px!important;
  }
  body.llx-site .ce-row-category-main .ff-product-card,
  body.llx-site .ce-row-category-main .ff-product-card--v2{
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    overflow:visible!important;
  }
  body.llx-site .ce-row-category-main .ff-product-card__body{
    min-height:0!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
  }
  body.llx-site .ce-row-category-main .ff-product-card__stage{
    aspect-ratio:4/5!important;
    border-radius:0!important;
  }
  body.llx-site .ce-row-category-main .ff-product-card__meta a{
    width:auto!important;
    height:auto!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
  }
}
