/* V44 — Store page polish only.
   Scope: collections.html / body.store-page.
   Based on approved V43. Does not touch header, drawer, homepage, product page, cart, dashboard, or Firestore logic. */

body.store-page{
  background:
    radial-gradient(circle at 15% 4%, rgba(194,143,65,.10), transparent 28%),
    linear-gradient(180deg,#fbf4e9 0%,#f4eadb 46%,#f8f1e7 100%)!important;
}

/* Store hero: calmer, commercial, not oversized */
body.store-page .page-hero{
  padding:clamp(42px,5.2vw,72px) 0 clamp(30px,4vw,50px)!important;
  background:
    radial-gradient(circle at 18% 18%, rgba(204,153,72,.18), transparent 30%),
    linear-gradient(135deg,#fff8ed 0%,#ead8bd 100%)!important;
  border-bottom:1px solid rgba(36,28,15,.10)!important;
  text-align:center!important;
}

body.store-page .page-hero .container{
  max-width:860px!important;
}

body.store-page .page-hero .kicker{
  color:#9c7135!important;
  font-size:13px!important;
  letter-spacing:.04em!important;
  margin-bottom:10px!important;
}

body.store-page .page-hero h1{
  font-size:clamp(34px,4.6vw,64px)!important;
  line-height:1.14!important;
  color:#11100c!important;
  letter-spacing:-.025em!important;
  max-width:760px!important;
  margin-inline:auto!important;
}

body.store-page .page-hero p{
  font-size:clamp(14px,1.5vw,17px)!important;
  line-height:1.9!important;
  color:rgba(34,28,19,.68)!important;
  max-width:680px!important;
  margin:16px auto 0!important;
}

body.store-page main > .section{
  padding:clamp(38px,5.5vw,74px) 0 84px!important;
}

/* Category filter: luxury pill strip */
body.store-page .filter-bar{
  width:fit-content!important;
  max-width:100%!important;
  margin:0 auto clamp(28px,4vw,42px)!important;
  padding:8px!important;
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  gap:6px!important;
  flex-wrap:wrap!important;
  border-radius:999px!important;
  background:rgba(255,249,239,.72)!important;
  border:1px solid rgba(38,28,14,.10)!important;
  box-shadow:0 18px 45px rgba(49,34,14,.06)!important;
  backdrop-filter:blur(10px)!important;
  position:relative!important;
  top:auto!important;
}

body.store-page .filter-bar a{
  min-height:40px!important;
  padding:0 17px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 auto!important;
  border-radius:999px!important;
  border:1px solid transparent!important;
  background:transparent!important;
  color:rgba(20,16,10,.76)!important;
  font-size:14px!important;
  font-weight:800!important;
  white-space:nowrap!important;
  transition:background .18s ease,color .18s ease,border-color .18s ease, transform .18s ease!important;
}

body.store-page .filter-bar a:hover{
  background:rgba(19,15,10,.07)!important;
  color:#11100c!important;
  transform:translateY(-1px)!important;
}

body.store-page .filter-bar a.is-active{
  background:#080604!important;
  color:#fff7e9!important;
  border-color:rgba(216,178,104,.35)!important;
  box-shadow:0 10px 24px rgba(0,0,0,.14)!important;
}

/* Section intro */
body.store-page .section-head{
  margin:0 auto clamp(26px,3.8vw,40px)!important;
  max-width:720px!important;
  text-align:center!important;
  display:block!important;
}

body.store-page .section-head h2{
  font-size:clamp(32px,4.3vw,54px)!important;
  line-height:1.12!important;
  color:#11100c!important;
  margin:0!important;
  letter-spacing:-.02em!important;
}

body.store-page .section-head p{
  font-size:clamp(14px,1.3vw,16px)!important;
  line-height:1.9!important;
  max-width:620px!important;
  margin:13px auto 0!important;
  color:rgba(34,28,19,.64)!important;
}

/* Product grid: centered, premium, supports current Firestore cards */
body.store-page .product-grid{
  width:min(1180px,100%)!important;
  margin-inline:auto!important;
  padding-inline:0!important;
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(230px,292px))!important;
  justify-content:center!important;
  align-items:stretch!important;
  gap:24px!important;
}

body.store-page .store-product-card,
body.store-page .product-card.damas-product-tile,
body.store-page .damas-product-tile{
  position:relative!important;
  width:100%!important;
  max-width:292px!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  display:flex!important;
  flex-direction:column!important;
  background:linear-gradient(180deg,#fff8ed 0%,#eee2ce 100%)!important;
  border:1px solid rgba(69,49,22,.14)!important;
  border-radius:28px!important;
  overflow:hidden!important;
  box-shadow:0 22px 52px rgba(39,27,12,.085)!important;
  transform:none!important;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease!important;
  aspect-ratio:auto!important;
}

body.store-page .store-product-card:hover,
body.store-page .damas-product-tile:hover{
  transform:translateY(-4px)!important;
  box-shadow:0 28px 66px rgba(39,27,12,.13)!important;
  border-color:rgba(174,130,58,.28)!important;
}

body.store-page .store-product-card::before,
body.store-page .store-product-card::after,
body.store-page .product-card::before,
body.store-page .product-card::after,
body.store-page .damas-product-tile::before,
body.store-page .damas-product-tile::after{
  content:none!important;
  display:none!important;
}

body.store-page .store-product-card .product-media,
body.store-page .product-card .product-media,
body.store-page .damas-product-tile .product-media{
  position:relative!important;
  inset:auto!important;
  display:block!important;
  width:100%!important;
  aspect-ratio:1 / 1.04!important;
  height:auto!important;
  min-height:0!important;
  border-radius:0!important;
  overflow:hidden!important;
  background-color:#eee5d6!important;
  background-size:cover!important;
  background-position:center!important;
  box-shadow:none!important;
  border-bottom:1px solid rgba(61,43,20,.10)!important;
}

body.store-page .store-product-card .product-body,
body.store-page .product-card .product-body,
body.store-page .damas-product-tile .product-body{
  position:relative!important;
  inset:auto!important;
  z-index:2!important;
  flex:1 1 auto!important;
  display:flex!important;
  flex-direction:column!important;
  padding:17px 17px 18px!important;
  margin:0!important;
  background:transparent!important;
  color:#11100c!important;
  overflow:visible!important;
  min-height:0!important;
}

body.store-page .store-product-card h3,
body.store-page .product-card h3,
body.store-page .damas-product-tile h3{
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
  margin:0 0 12px!important;
  padding:0!important;
  min-height:2.55em!important;
  max-width:100%!important;
  color:#11100c!important;
  font-family:"Tajawal","Noto Naskh Arabic","Segoe UI",Tahoma,sans-serif!important;
  font-size:clamp(17px,1.45vw,21px)!important;
  line-height:1.28!important;
  font-weight:800!important;
  text-align:right!important;
  white-space:normal!important;
  text-overflow:clip!important;
  text-shadow:none!important;
}

body.store-page .store-product-card h3 a,
body.store-page .product-card h3 a,
body.store-page .damas-product-tile h3 a{
  color:inherit!important;
  text-decoration:none!important;
}

body.store-page .store-product-card .price-row,
body.store-page .product-card .price-row,
body.store-page .damas-product-tile .price-row{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  margin:auto 0 0!important;
  padding:12px 0 0!important;
  border-top:1px solid rgba(65,47,21,.12)!important;
  background:transparent!important;
}

body.store-page .store-product-card .price-row > span,
body.store-page .product-card .price-row > span,
body.store-page .damas-product-tile .price-row > span,
body.store-page .store-product-card .price-stack,
body.store-page .product-card .price-stack,
body.store-page .damas-product-tile .price-stack{
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
  align-items:baseline!important;
  justify-content:flex-start!important;
  gap:7px!important;
  direction:ltr!important;
  flex-wrap:wrap!important;
}

body.store-page .store-product-card .price-stack strong,
body.store-page .product-card .price-stack strong,
body.store-page .damas-product-tile .price-stack strong{
  display:inline-block!important;
  visibility:visible!important;
  opacity:1!important;
  color:#11100c!important;
  font-family:"Tajawal","Noto Naskh Arabic","Segoe UI",Tahoma,sans-serif!important;
  font-size:clamp(15px,1.35vw,18px)!important;
  line-height:1.2!important;
  font-weight:900!important;
  text-align:right!important;
  direction:ltr!important;
  text-shadow:none!important;
}

body.store-page .store-product-card .old-price,
body.store-page .product-card .old-price,
body.store-page .damas-product-tile .old-price{
  display:inline-block!important;
  visibility:visible!important;
  opacity:1!important;
  color:rgba(17,16,12,.42)!important;
  font-size:12px!important;
  line-height:1.2!important;
  font-weight:700!important;
  text-decoration:line-through!important;
}

body.store-page .product-discount{
  position:absolute!important;
  top:10px!important;
  left:10px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:28px!important;
  padding:0 10px!important;
  margin:0!important;
  border-radius:999px!important;
  background:rgba(9,7,4,.86)!important;
  color:#f7d990!important;
  border:1px solid rgba(247,217,144,.28)!important;
  font-size:11px!important;
  line-height:1!important;
  font-weight:900!important;
  z-index:3!important;
  box-shadow:0 10px 24px rgba(0,0,0,.22)!important;
}

body.store-page .store-card-cta{
  min-height:40px!important;
  margin-top:14px!important;
  padding:0 18px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:999px!important;
  background:#050403!important;
  color:#fff7e8!important;
  border:1px solid rgba(255,255,255,.10)!important;
  font-size:13px!important;
  font-weight:900!important;
  text-align:center!important;
  box-shadow:none!important;
}

body.store-page .store-card-cta:hover{
  background:#15110c!important;
}

body.store-page .cart-empty{
  grid-column:1 / -1!important;
  border-radius:28px!important;
  background:rgba(255,249,239,.70)!important;
  border:1px solid rgba(42,29,12,.10)!important;
  box-shadow:0 18px 45px rgba(49,34,14,.06)!important;
}

body.store-page .section-action .btn,
body.store-page #loadMoreProducts{
  min-width:180px!important;
  border-radius:999px!important;
  background:rgba(255,249,239,.58)!important;
  border:1px solid rgba(18,13,7,.18)!important;
  color:#11100c!important;
}

/* Mobile: keep two products per row, but lighter and readable */
@media (max-width:820px){
  body.store-page .page-hero{
    padding:42px 0 32px!important;
  }

  body.store-page .page-hero h1{
    font-size:clamp(34px,9.4vw,48px)!important;
    line-height:1.16!important;
  }

  body.store-page .filter-bar{
    width:100%!important;
    justify-content:flex-start!important;
    flex-wrap:nowrap!important;
    overflow-x:auto!important;
    gap:6px!important;
    padding:7px!important;
    margin-bottom:28px!important;
    scrollbar-width:none!important;
  }

  body.store-page .filter-bar::-webkit-scrollbar{display:none!important;}

  body.store-page .filter-bar a{
    min-height:38px!important;
    padding:0 15px!important;
    font-size:13px!important;
  }

  body.store-page .section-head h2{
    font-size:clamp(31px,8.5vw,43px)!important;
  }

  body.store-page .product-grid{
    width:100%!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    justify-content:stretch!important;
    gap:13px 10px!important;
    padding-inline:0!important;
  }

  body.store-page .store-product-card,
  body.store-page .product-card.damas-product-tile,
  body.store-page .damas-product-tile{
    max-width:none!important;
    border-radius:22px!important;
    box-shadow:0 16px 34px rgba(39,27,12,.075)!important;
  }

  body.store-page .store-product-card .product-media,
  body.store-page .product-card .product-media,
  body.store-page .damas-product-tile .product-media{
    aspect-ratio:1 / 1.06!important;
  }

  body.store-page .store-product-card .product-body,
  body.store-page .product-card .product-body,
  body.store-page .damas-product-tile .product-body{
    padding:12px 10px 12px!important;
  }

  body.store-page .store-product-card h3,
  body.store-page .product-card h3,
  body.store-page .damas-product-tile h3{
    font-size:14.5px!important;
    line-height:1.25!important;
    min-height:2.5em!important;
    margin-bottom:9px!important;
  }

  body.store-page .store-product-card .price-row,
  body.store-page .product-card .price-row,
  body.store-page .damas-product-tile .price-row{
    padding-top:8px!important;
  }

  body.store-page .store-product-card .price-stack strong,
  body.store-page .product-card .price-stack strong,
  body.store-page .damas-product-tile .price-stack strong{
    font-size:13px!important;
  }

  body.store-page .store-product-card .old-price,
  body.store-page .product-card .old-price,
  body.store-page .damas-product-tile .old-price{
    font-size:10.5px!important;
  }

  body.store-page .product-discount{
    top:8px!important;
    left:8px!important;
    min-height:24px!important;
    padding:0 8px!important;
    font-size:10px!important;
  }

  body.store-page .store-card-cta{
    min-height:34px!important;
    margin-top:10px!important;
    padding-inline:10px!important;
    font-size:11.5px!important;
  }
}

@media (max-width:380px){
  body.store-page .product-grid{
    gap:12px 8px!important;
  }

  body.store-page .store-product-card h3,
  body.store-page .product-card h3,
  body.store-page .damas-product-tile h3{
    font-size:13.2px!important;
  }

  body.store-page .store-product-card .price-stack strong,
  body.store-page .product-card .price-stack strong,
  body.store-page .damas-product-tile .price-stack strong{
    font-size:12px!important;
  }
}
