/* 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;
position:relative;
}
.product-image{
position:relative;
width:100%;
height:300px;
overflow:hidden;
border-radius:14px;
background:linear-gradient(180deg,#f8fafc 0%,#eef3f8 100%);
touch-action:pan-y;
}

.product-image img{
width:100%;
height:100%;
object-fit:contain;
object-position:center;
display:block;
animation:none !important;
transition:none !important;
padding:10px;
}
.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:22px;
border:1px solid #dde5ef;
box-shadow:0 14px 32px rgba(15,23,42,0.07);
}

.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:auto;
    aspect-ratio:1 / 1.06;
    border-radius:16px;
  }

  .product-card{
    padding:11px;
    border-radius:22px;
    background:linear-gradient(180deg,#ffffff 0%,#fbfcfe 100%);
    border:1px solid rgba(221,229,239,0.95);
    box-shadow:0 16px 34px rgba(15,23,42,0.08);
  }

  .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:#9b7a37;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    margin-bottom:4px;
  }

  .product-details .title{
    font-size:15px;
    font-weight:700;
    min-height:40px;
    margin:0 0 8px;
    line-height:1.32;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
    color:#1f2937;
  }

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

  .price{
    font-size:15px;
    font-weight:800;
    color:#111827;
  }

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

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

  .product-card{
    padding:10px;
    border-radius:24px;
    border:1px solid rgba(221,229,239,0.95);
    background:
      linear-gradient(180deg,rgba(255,255,255,0.98) 0%,rgba(255,255,255,0.94) 100%),
      #ffffff;
    box-shadow:
      0 16px 36px rgba(15,23,42,0.08),
      0 1px 0 rgba(255,255,255,0.85) inset;
  }

  .product-image{
    height:auto;
    aspect-ratio:1 / 1.08;
    border-radius:18px;
    background:linear-gradient(180deg,#f8fafc 0%,#eef3f8 100%);
  }

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

  .product-details .brand{
    font-size:10px;
    letter-spacing:1.3px;
    margin-bottom:4px;
    color:#9b7a37;
  }

  .product-details .title{
    font-size:14px;
    min-height:38px;
    margin:0 0 7px;
    line-height:1.34;
    color:#1f2937;
  }

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

  .price{
    font-size:15px;
    font-weight:800;
  }

  .old-price{
    font-size:11px;
    color:#98a2b3;
  }

  .discount{
    font-size:11px;
    font-weight:700;
    color:#0f9f6e;
  }

  .wishlist-btn{
    opacity:1;
    width:34px;
    height:34px;
    bottom:10px;
    right:10px;
    background:rgba(255,255,255,0.96);
    border:1px solid rgba(223,229,238,0.95);
    box-shadow:0 10px 22px rgba(15,23,42,0.12);
  }

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

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

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

.product-card{
transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease !important;
}

.product-image img,
.product-img{
transition:opacity .18s ease, transform .18s ease !important;
}

.product-card:hover{
transform:translateY(-3px);
box-shadow:0 20px 40px rgba(15,23,42,0.12);
border-color:rgba(123,36,61,0.16);
}

.product-card.is-image-transitioning .product-img{
opacity:.7;
}

.product-card.is-slideshow-active .product-img{
transform:translateX(0);
}
