/* PRODUCT GRID */

.product-grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:30px;
padding:10px 0;
}

@media(max-width:1000px){
.product-grid{
grid-template-columns:repeat(2,1fr);
}
}

@media(max-width:600px){
.product-grid{
grid-template-columns:1fr 1fr;
gap:16px;
}
}
.product-card{
cursor:pointer;
font-family:'Manrope',sans-serif;
display:flex;
flex-direction:column;
height:100%;
animation:none !important;
transition:none !important;
}
.product-image{
position:relative;
width:100%;
height:300px;
overflow:hidden;
border-radius:14px;
background:#f4efe9;
touch-action:pan-y;
}

.product-image img{
width:100%;
height:100%;
object-fit:cover;
display:block;
animation:none !important;
transition:none !important;
}
.product-image img.second{
position:absolute;
top:0;
left:0;
opacity:0;
}

.wishlist-btn{
position:absolute;
bottom:10px;
right:10px;
width:36px;
height:36px;
border-radius:50%;
background:white;
border:none;
display:flex;
align-items:center;
justify-content:center;
font-size:18px;
cursor:pointer;
box-shadow:0 3px 8px rgba(0,0,0,0.15);
opacity:1;
animation:none !important;
transition:none !important;
}
.product-details{
padding:14px 6px 4px;
display:flex;
flex-direction:column;
gap:8px;
flex:1;
}

.product-details .brand{
font-family:'Manrope',sans-serif;
font-weight:800;
font-size:11px;
line-height:1.2;
letter-spacing:1.2px;
text-transform:uppercase;
color:#8a6b37;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}

.product-details .title{
font-family:'Manrope',sans-serif;
font-size:19px;
font-weight:700;
line-height:1.2;
color:#1f1820;
margin:0;
min-height:46px;
display:-webkit-box;
-webkit-line-clamp:2;
-webkit-box-orient:vertical;
overflow:hidden;
}
.price-row{
display:flex;
align-items:center;
flex-wrap:wrap;
gap:8px;
font-size:14px;
line-height:1.3;
margin-top:auto;
}

.price{
font-weight:700;
color:#1f1820;
font-size:16px;
}

.old-price{
text-decoration:line-through;
color:#7b6d73;
font-size:13px;
opacity:.85;
}

.discount{
color:#137a42;
font-weight:600;
font-size:13px;
}
.product-card{
background:#ffffff;
padding:12px;
border-radius:20px;
border:1px solid #eadfdc;
box-shadow:0 14px 30px rgba(28,16,20,0.06);
}

.product-card *,
.product-grid,
.product-grid *{
animation:none !important;
transition:none !important;
}

@media (hover:hover) and (pointer:fine){
  .product-card.is-previewable .product-image{
    cursor:ew-resize;
  }
}

@media(max-width:768px){
  .product-grid{
    gap:14px;
  }

  .product-image{
    height:210px;
    border-radius:14px;
  }

  .product-card{
    padding:10px;
    border-radius:18px;
    background:#ffffff;
  }

  .product-details{
    padding:12px 4px 4px;
  }

  .product-details .brand{
    font-size:11px;
    line-height:1.2;
    letter-spacing:1.1px;
    text-transform:uppercase;
    font-family:'Manrope',sans-serif;
    font-weight:800;
    color:#8a6b37;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    margin-bottom:6px;
  }

  .product-details .title{
    font-size:16px;
    font-weight:700;
    min-height:44px;
    margin:0 0 10px;
    line-height:1.35;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }

  .price-row{
    gap:6px;
    row-gap:4px;
  }

  .price{
    font-size:15px;
  }

  .old-price,
  .discount{
    font-size:12px;
  }
}

@media(max-width:520px){
  .product-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }

  .product-card{
    padding:9px;
    border-radius:18px;
    border:1px solid #eadfdc;
    box-shadow:0 12px 28px rgba(28,16,20,0.08);
  }

  .product-image{
    height:auto;
    aspect-ratio:4 / 5;
    border-radius:12px;
  }

  .product-details{
    padding:10px 4px 4px;
  }

  .product-details .brand{
    font-size:10px;
    letter-spacing:1.2px;
    margin-bottom:8px;
  }

  .product-details .title{
    font-size:clamp(14px,3.8vw,16px);
    min-height:38px;
    margin:0 0 8px;
    line-height:1.32;
  }

  .price-row{
    gap:5px;
    align-items:baseline;
  }

  .price{
    font-size:clamp(16px,4vw,18px);
    font-weight:800;
  }

  .old-price,
  .discount{
    font-size:11px;
  }

  .wishlist-btn{
    opacity:1;
    width:34px;
    height:34px;
    bottom:10px;
    right:10px;
    box-shadow:0 10px 20px rgba(0,0,0,0.12);
  }

  .product-details{
    gap:6px;
    align-items:flex-start;
  }

  .product-details .title{
    min-height:40px;
  }

  .price-row{
    width:100%;
    justify-content:flex-start;
  }
}
