/**
 * Luxury category and product showcase for the homepage and wishlist.
 * Modular stylesheet dedicated to card-based catalog UI.
 */

.negin-home-main .negin-categories,
.negin-home-main .negin-products{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  padding:88px 0;
}

.negin-home-main .negin-categories{
  background:
    radial-gradient(700px 320px at 8% 0%,rgba(201,164,92,.09),transparent 68%),
    linear-gradient(180deg,#f8f3ea 0%,var(--negin-cream) 100%);
}

.negin-home-main .negin-products{
  background:
    radial-gradient(760px 360px at 100% 8%,rgba(11,58,50,.05),transparent 72%),
    linear-gradient(180deg,var(--negin-paper) 0%,#fffdf8 100%);
  border-top:1px solid rgba(11,58,50,.08);
}

.negin-home-main .negin-categories::before,
.negin-home-main .negin-products::before,
.negin-home-main .negin-categories::after,
.negin-home-main .negin-products::after{
  content:'';
  position:absolute;
  pointer-events:none;
  z-index:-1;
}

.negin-home-main .negin-categories::before{
  top:-210px;
  left:-145px;
  width:380px;
  aspect-ratio:1;
  border:1px solid rgba(201,164,92,.2);
  border-radius:50%;
  box-shadow:0 0 0 48px rgba(201,164,92,.03),0 0 0 96px rgba(201,164,92,.018);
}

.negin-home-main .negin-products::before{
  right:-210px;
  bottom:-250px;
  width:410px;
  aspect-ratio:1;
  border:1px solid rgba(11,58,50,.09);
  border-radius:50%;
  box-shadow:0 0 0 54px rgba(11,58,50,.03),0 0 0 108px rgba(11,58,50,.018);
}

.negin-home-main .negin-categories::after,
.negin-home-main .negin-products::after{
  width:110px;
  height:1px;
}

.negin-home-main .negin-categories::after{
  top:70px;
  right:7%;
  background:linear-gradient(90deg,transparent,rgba(201,164,92,.52),transparent);
}

.negin-home-main .negin-products::after{
  top:84px;
  left:8%;
  background:linear-gradient(90deg,transparent,rgba(11,58,50,.22),transparent);
}

/* Category showcase */
.negin-home-main .negin-category-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(148px,172px));
  justify-content:center;
  gap:16px;
  align-items:start;
}

.negin-home-main .negin-category-card{
  position:relative;
  display:flex;
  flex-direction:column;
  min-width:0;
  width:100%;
  padding:7px;
  overflow:hidden;
  border:1px solid rgba(11,58,50,.09);
  border-radius:22px;
  background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(255,255,255,.9));
  box-shadow:0 14px 34px rgba(11,58,50,.07);
  color:var(--negin-primary);
  backdrop-filter:blur(10px);
  transition:transform .32s ease,box-shadow .32s ease,border-color .32s ease;
}

.negin-home-main .negin-category-card::before{
  content:'';
  position:absolute;
  inset:7px;
  border:1px solid rgba(201,164,92,.16);
  border-radius:16px;
  pointer-events:none;
}

.negin-home-main .negin-category-card:hover,
.negin-home-main .negin-category-card:focus-visible{
  transform:translateY(-6px);
  border-color:rgba(201,164,92,.44);
  color:var(--negin-primary);
  box-shadow:0 24px 50px rgba(11,58,50,.13);
}

.negin-home-main .negin-category-card__media{
  position:relative;
  aspect-ratio:1/1;
  overflow:hidden;
  border-radius:16px;
  background:linear-gradient(145deg,#f0e6d6,#fbf6ec);
}

.negin-home-main .negin-category-card__media > img,
.negin-home-main .negin-category-card__media > .negin-image-placeholder{
  display:block;
  width:100%;
  height:100%;
}

.negin-home-main .negin-category-card__media > img{
  object-fit:cover;
  transform:scale(1.001);
  transition:transform .6s cubic-bezier(.2,.7,.2,1),filter .35s ease;
}

.negin-home-main .negin-category-card:hover .negin-category-card__media > img,
.negin-home-main .negin-category-card:focus-visible .negin-category-card__media > img{
  transform:scale(1.06);
  filter:saturate(1.04) contrast(1.02);
}

.negin-home-main .negin-category-card__shade{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(6,48,42,.02) 36%,rgba(6,48,42,.12) 72%,rgba(6,48,42,.48) 100%);
  pointer-events:none;
}

.negin-home-main .negin-category-card__index{
  position:absolute;
  top:10px;
  right:10px;
  min-width:30px;
  min-height:30px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:5px 9px;
  border:1px solid rgba(255,255,255,.24);
  border-radius:999px;
  background:rgba(6,48,42,.62);
  color:#f4dfb2;
  font-size:9px;
  font-weight:700;
  box-shadow:0 10px 22px rgba(0,0,0,.12);
  backdrop-filter:blur(10px);
}

.negin-home-main .negin-category-card__body{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-height:76px;
  padding:10px 6px 6px;
}

.negin-home-main .negin-category-card__eyebrow{
  color:#a27b37;
  font-size:9px;
  font-weight:700;
  letter-spacing:.04em;
}

.negin-home-main .negin-category-card__footer{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:8px;
}

.negin-home-main .negin-category-card__copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}

.negin-home-main .negin-category-card__copy h3{
  margin:0;
  color:var(--negin-primary);
  font-family:var(--negin-font-heading,'Estedad',Tahoma,Arial,sans-serif);
  font-size:15px;
  font-weight:800;
  line-height:1.5;
}

.negin-home-main .negin-category-card__count{
  color:#6f807b;
  font-size:10px;
  font-weight:600;
}

.negin-home-main .negin-category-card__action{
  width:34px;
  height:34px;
  flex:none;
  display:grid;
  place-items:center;
  border:1px solid rgba(201,164,92,.34);
  border-radius:12px;
  background:linear-gradient(145deg,rgba(201,164,92,.12),rgba(201,164,92,.03));
  color:#8f6d31;
  transition:transform .28s ease,background .28s ease,color .28s ease,border-color .28s ease;
}

.negin-home-main .negin-category-card__action i{
  font-style:normal;
  font-size:14px;
  line-height:1;
}

.negin-home-main .negin-category-card:hover .negin-category-card__action,
.negin-home-main .negin-category-card:focus-visible .negin-category-card__action{
  transform:translateX(-3px);
  border-color:var(--negin-primary);
  background:var(--negin-primary);
  color:var(--negin-accent-light);
}

.negin-home-main .negin-category-card--placeholder{
  opacity:.86;
  pointer-events:none;
}

/* Product showcase */
.negin-product-grid{
  display:grid;
  align-items:stretch;
}

.negin-home-main .negin-product-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:28px;
}

.negin-product-card{
  position:relative;
  min-width:0;
  display:flex;
  flex-direction:column;
  color:var(--negin-primary);
  transition:transform .34s ease;
}

.negin-product-card::before,
.negin-product-card::after{
  content:'';
  position:absolute;
  pointer-events:none;
}

.negin-product-card::before{
  inset:0;
  border:1px solid rgba(11,58,50,.1);
  border-radius:32px;
  background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(253,251,246,.96));
  box-shadow:0 18px 48px rgba(11,58,50,.08);
  transition:box-shadow .34s ease,border-color .34s ease;
}

.negin-product-card::after{
  inset:11px;
  border:1px solid rgba(201,164,92,.18);
  border-radius:24px;
  transition:border-color .34s ease;
}

.negin-product-card:hover,
.negin-product-card:focus-within{
  transform:translateY(-10px);
}

.negin-product-card:hover::before,
.negin-product-card:focus-within::before{
  border-color:rgba(201,164,92,.58);
  box-shadow:0 30px 74px rgba(11,58,50,.16);
}

.negin-product-card:hover::after,
.negin-product-card:focus-within::after{
  border-color:rgba(201,164,92,.34);
}

.negin-product-card__link{
  position:relative;
  z-index:1;
  display:flex;
  flex:1;
  flex-direction:column;
  height:100%;
  padding:12px;
  border-radius:32px;
  color:var(--negin-primary);
}

.negin-product-card__media{
  position:relative;
  aspect-ratio:1/1;
  overflow:hidden;
  border-radius:24px;
  background:
    radial-gradient(180px 180px at 18% 16%,rgba(255,255,255,.7),transparent 62%),
    linear-gradient(145deg,#efe5d4,#faf6ef);
}

.negin-product-card__media::before{
  content:'';
  position:absolute;
  inset:10px;
  border:1px solid rgba(255,255,255,.3);
  border-radius:18px;
  pointer-events:none;
  z-index:2;
}

.negin-product-card__image{
  width:100%;
  height:100%;
  overflow:hidden;
}

.negin-product-card__media img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  transform:scale(1.001);
  transition:transform .65s cubic-bezier(.2,.7,.2,1),filter .35s ease;
}

.negin-product-card:hover .negin-product-card__media img,
.negin-product-card:focus-within .negin-product-card__media img{
  transform:scale(1.055);
  filter:saturate(1.04) contrast(1.02);
}

.negin-product-card__media::after{
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,transparent 52%,rgba(6,48,42,.09) 74%,rgba(6,48,42,.5) 100%);
  opacity:.68;
  pointer-events:none;
}

.negin-product-card__badge{
  position:absolute;
  top:16px;
  right:16px;
  z-index:3;
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:6px 14px;
  border:1px solid rgba(255,255,255,.28);
  border-radius:999px;
  background:rgba(6,48,42,.88);
  color:var(--negin-accent-light);
  font-size:11px;
  font-weight:700;
  box-shadow:0 10px 24px rgba(5,39,34,.18);
  backdrop-filter:blur(10px);
}

.negin-product-card__badge--sale{
  background:rgba(133,52,48,.92);
  color:#fff5ef;
}

.negin-product-card__badge--new{
  background:rgba(201,164,92,.94);
  color:var(--negin-primary);
}

.negin-product-card__media-action{
  position:absolute;
  left:50%;
  bottom:16px;
  z-index:3;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:42px;
  min-width:138px;
  padding:8px 16px;
  border:1px solid rgba(255,255,255,.24);
  border-radius:999px;
  background:rgba(6,48,42,.8);
  color:#f6ead2;
  opacity:0;
  transform:translate(-50%,10px);
  backdrop-filter:blur(10px);
  transition:opacity .28s ease,transform .28s ease;
}

.negin-product-card__media-action small{
  font-size:11px;
  font-weight:700;
}

.negin-product-card__media-action i{
  font-style:normal;
  font-size:16px;
  line-height:1;
}

.negin-product-card:hover .negin-product-card__media-action,
.negin-product-card:focus-within .negin-product-card__media-action{
  opacity:1;
  transform:translate(-50%,0);
}

.negin-product-card__body{
  min-width:0;
  display:flex;
  flex:1;
  flex-direction:column;
  gap:14px;
  padding:18px 14px 14px;
}

.negin-product-card__meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-width:0;
}

.negin-product-card__category,
.negin-product-card__stock{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:30px;
  padding:6px 11px;
  border-radius:999px;
  font-size:10.5px;
  font-weight:700;
  white-space:nowrap;
}

.negin-product-card__category{
  min-width:0;
  max-width:70%;
  overflow:hidden;
  color:#8b6b31;
  background:rgba(201,164,92,.12);
}

.negin-product-card__category i{
  flex:none;
  color:var(--negin-accent);
  font-style:normal;
  font-size:8px;
}

.negin-product-card__stock{
  flex:none;
  color:#4f7567;
  background:rgba(62,139,105,.09);
}

.negin-product-card__stock i{
  width:7px;
  height:7px;
  flex:none;
  border-radius:50%;
  background:#3e8b69;
  box-shadow:0 0 0 4px rgba(62,139,105,.12);
}

.negin-product-card__stock.is-out-of-stock{
  color:#9a625f;
  background:rgba(168,94,88,.09);
}

.negin-product-card__stock.is-out-of-stock i{
  background:#a85e58;
  box-shadow:0 0 0 4px rgba(168,94,88,.12);
}

.negin-product-card h3{
  min-height:3.2em;
  display:-webkit-box;
  margin:0;
  overflow:hidden;
  color:var(--negin-primary);
  font-family:var(--negin-font-heading,'Estedad',Tahoma,Arial,sans-serif);
  font-size:clamp(16px,1.35vw,18px);
  font-weight:800;
  line-height:1.6;
  text-align:right;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}

.negin-product-card__rating{
  min-height:22px;
  display:flex;
  align-items:center;
  gap:8px;
  font-size:11px;
}

.negin-product-card__rating > span{
  display:flex;
  direction:ltr;
}

.negin-product-card__rating .star-rating{
  float:none;
  margin:0;
  color:var(--negin-accent);
  font-size:.84em;
}

.negin-product-card__rating small{
  color:#71817c;
  font-size:10px;
}

.negin-product-card__footer{
  display:flex;
  align-items:stretch;
  justify-content:space-between;
  gap:10px;
  margin-top:auto;
  padding-top:14px;
  border-top:1px solid rgba(11,58,50,.085);
}

.negin-product-card__footer--no-price{
  justify-content:flex-end;
}

.negin-product-card__price-wrap{
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:3px;
  flex:1;
  padding:10px 14px;
  border:1px solid rgba(201,164,92,.18);
  border-radius:18px;
  background:linear-gradient(180deg,rgba(201,164,92,.09),rgba(201,164,92,.03));
}

.negin-product-card__price-wrap > small{
  color:#7b8884;
  font-size:9.5px;
  font-weight:600;
}

.negin-product-card__price{
  display:flex;
  align-items:baseline;
  flex-wrap:wrap;
  gap:4px 8px;
  color:#88672c;
  font-size:16px;
  font-weight:800;
  line-height:1.7;
}

.negin-product-card__price del{
  order:2;
  margin:0;
  color:#8b9793;
  font-size:10.5px;
  font-weight:500;
  opacity:.78;
}

.negin-product-card__price ins{
  order:1;
  text-decoration:none;
}

.negin-product-card__discount{
  flex:none;
  align-self:center;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:88px;
  min-height:46px;
  padding:8px 12px;
  border:1px solid rgba(201,164,92,.35);
  border-radius:16px;
  background:rgba(201,164,92,.12);
  color:#8a6630;
  font-size:11px;
  font-weight:800;
}

.negin-product-card__arrow{
  flex:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-height:46px;
  padding:10px 15px;
  border:1px solid rgba(201,164,92,.42);
  border-radius:16px;
  background:linear-gradient(145deg,rgba(201,164,92,.14),rgba(201,164,92,.05));
  color:#8c6a30;
  transition:transform .26s ease,background .26s ease,color .26s ease,border-color .26s ease;
}

.negin-product-card__arrow small{
  font-size:10px;
  font-weight:800;
}

.negin-product-card__arrow i{
  font-style:normal;
  font-size:16px;
  line-height:1;
}

.negin-product-card:hover .negin-product-card__arrow,
.negin-product-card:focus-within .negin-product-card__arrow{
  transform:translateX(-3px);
  border-color:var(--negin-primary);
  background:var(--negin-primary);
  color:var(--negin-accent-light);
}

.negin-product-card > .negin-wishlist-toggle{
  position:absolute;
  top:26px;
  left:26px;
  z-index:5;
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border:1px solid rgba(201,164,92,.34);
  border-radius:16px;
  background:rgba(255,255,255,.93);
  color:#8c6a30;
  box-shadow:0 12px 24px rgba(11,58,50,.12);
  backdrop-filter:blur(10px);
}

.negin-product-card > .negin-wishlist-toggle:hover,
.negin-product-card > .negin-wishlist-toggle:focus-visible,
.negin-product-card > .negin-wishlist-toggle.is-active{
  border-color:rgba(201,164,92,.55);
  background:#fffaf1;
  color:#b4784a;
}

.negin-home-main .negin-empty-products{
  grid-column:1/-1;
  padding:54px;
  border:1px dashed rgba(201,164,92,.58);
  border-radius:28px;
  background:rgba(255,255,255,.92);
  color:var(--negin-primary);
  text-align:center;
  box-shadow:0 16px 45px rgba(11,58,50,.07);
}

.negin-home-main .negin-empty-products > span{
  color:var(--negin-accent);
  font-size:28px;
}

.negin-home-main .negin-empty-products h3{
  margin:10px 0;
  font-family:var(--negin-font-heading,'Estedad',Tahoma,Arial,sans-serif);
  font-size:28px;
}

.negin-home-main .negin-empty-products p{
  margin:0;
  color:#60726d;
}

@media (max-width:1180px){
  .negin-home-main .negin-category-grid{
    grid-template-columns:repeat(auto-fill,minmax(142px,164px));
    gap:14px;
  }

  .negin-home-main .negin-product-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:22px;
  }
}

@media (max-width:760px){
  .negin-home-main .negin-categories,
  .negin-home-main .negin-products{
    padding-block:72px;
  }

  .negin-home-main .negin-category-grid{
    width:calc(100% + 14px);
    display:grid;
    grid-template-columns:none;
    grid-auto-flow:column;
    grid-auto-columns:minmax(142px,46vw);
    justify-content:start;
    gap:12px;
    overflow-x:auto;
    overflow-y:hidden;
    margin-left:-14px;
    padding:4px 0 20px 14px;
    scroll-padding-inline:0 14px;
    scroll-snap-type:inline mandatory;
    scrollbar-width:none;
  }

  .negin-home-main .negin-category-grid::-webkit-scrollbar{
    display:none;
  }

  .negin-home-main .negin-category-card{
    scroll-snap-align:start;
  }

  .negin-home-main .negin-category-card__body{
    min-height:72px;
    padding:9px 5px 5px;
  }

  .negin-home-main .negin-category-card__copy h3{
    font-size:14px;
  }

  .negin-home-main .negin-product-grid{
    grid-template-columns:1fr;
    gap:22px;
  }

  .negin-product-card::before,
  .negin-product-card::after,
  .negin-product-card__link{
    border-radius:26px;
  }

  .negin-product-card::after{
    inset:9px;
    border-radius:19px;
  }

  .negin-product-card__media{
    border-radius:20px;
  }

  .negin-product-card__body{
    gap:12px;
    padding:16px 10px 12px;
  }

  .negin-product-card__media-action{
    display:none;
  }

  .negin-product-card h3{
    min-height:auto;
    font-size:17px;
  }

  .negin-product-card__footer{
    flex-wrap:wrap;
  }

  .negin-product-card__price-wrap{
    flex-basis:100%;
  }

  .negin-product-card__discount,
  .negin-product-card__arrow{
    min-height:44px;
  }

  .negin-product-card > .negin-wishlist-toggle{
    top:22px;
    left:22px;
    width:40px;
    height:40px;
    border-radius:14px;
    font-size:19px;
  }

  .negin-home-main .negin-empty-products{
    padding:36px 20px;
  }
}

@media (max-width:420px){
  .negin-product-card__meta{
    flex-direction:column;
    align-items:flex-start;
  }

  .negin-product-card__category{
    max-width:100%;
  }

  .negin-product-card__footer{
    gap:8px;
  }

  .negin-product-card__discount{
    min-width:0;
    flex:1;
  }

  .negin-product-card__arrow{
    padding-inline:12px;
  }

  .negin-product-card__arrow small{
    display:none;
  }
}

@media (hover:none){
  .negin-home-main .negin-category-card:hover,
  .negin-product-card:hover{
    transform:none;
  }
}

@media (prefers-reduced-motion:reduce){
  .negin-home-main .negin-category-card,
  .negin-home-main .negin-category-card__media > img,
  .negin-product-card,
  .negin-product-card::before,
  .negin-product-card::after,
  .negin-product-card__media img,
  .negin-product-card__media-action,
  .negin-product-card__arrow{
    transition:none;
  }
}
