/* ================= BASE ================= */

body{
  margin:0;
  font-family:Arial, sans-serif;
  background:#d7eee2;
  overflow-x:hidden;
}

/* ================= CATEGORY TABS ================= */

.shop-cats{
  display:flex;
  justify-content:center;
  gap:14px;
  margin:28px auto 18px;
  padding:10px 14px;
  background:#f8faf8;
  border-radius:40px;
  width:max-content;
  max-width:100%;
  box-shadow:0 8px 22px rgba(0,0,0,0.06);
  overflow-x:auto;
}

.shop-cats::-webkit-scrollbar{ display:none; }

.shop-cats a{
  white-space:nowrap;
  text-decoration:none;
  padding:8px 22px;
  border-radius:30px;
  font-size:14px;
  font-weight:600;
  background:#fff;
  color:#333;
  border:1px solid #ddd;
  transition:.25s;
}

.shop-cats a:hover{
  background:#e8f5ec;
}

.shop-cats a.active{
  background:#2e7d32;
  border-color:#2e7d32;
  color:#fff;
  box-shadow:0 6px 14px rgba(46,125,50,.35);
}

/* ================= PRODUCTS ================= */

.products{
  max-width:1200px;
  margin:30px auto;
  padding:0 16px 60px;
}

.products h2{
  text-align:center;
  font-size:28px;
  margin-bottom:26px;
  font-weight:700;
}

/* ===== GRID ===== */
.products .grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:22px;
}

/* ===== CARD ===== */
.product-card{
  background:#fff;
  border-radius:16px;
  border:1px solid #e5e7eb;
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:8px;
  position:relative;
  transition:.25s;
}

.product-card:hover{
  transform:translateY(-4px);
  box-shadow:0 10px 26px rgba(0,0,0,.12);
}

/* IMAGE */
.product-img{
  width:100%;
  height:210px;
  border-radius:14px;
  overflow:hidden;
  background:#fafafa;
  display:flex;
  align-items:center;
  justify-content:center;
}

.product-img img{
  width:100%;
  height:100%;
  object-fit:contain;
}

/* BADGE */
.badge.new{
  position:absolute;
  top:10px;
  right:10px;
  background:#ef4444;
  color:#fff;
  font-size:11px;
  padding:3px 8px;
  border-radius:20px;
  font-weight:600;
}

/* TEXT */
.product-tag{
  font-size:13px;
  color:#2e7d32;
}

.product-name{
  font-size:15px;
  font-weight:600;
  line-height:1.3;
}

.rating{
  font-size:13px;
  color:#f4b400;
}

/* OPTIONS */
.product-options-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
}

.variant-select{
  height:30px;
  padding:0 6px;
  border-radius:8px;
  border:1px solid #ddd;
  font-size:13px;
}

/* QTY */
.qty-ui{
  display:flex;
  align-items:center;
  gap:4px;
}

.qty-ui button{
  width:26px;
  height:26px;
  border-radius:6px;
  border:1px solid #d8e5dc;
  background:#f9fbfa;
  color:#2e7d32;
  cursor:pointer;
}

.qty-ui span{
  min-width:18px;
  text-align:center;
  font-size:13px;
}

/* PRICE + BUTTON */
.price-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:6px;
}

.price{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.price .new-price{
  font-size:16px;
  font-weight:700;
  color:#16a34a;
}

.price .old-price{
  font-size:13px;
  text-decoration:line-through;
  color:#999;
}

.price .price-off{
  font-size:11px;
  background:#dcfce7;
  color:#15803d;
  padding:2px 6px;
  border-radius:6px;
}

.product-add{
  background:#2e7d32;
  color:#fff;
  border:none;
  padding:6px 16px;
  border-radius:24px;
  font-size:13px;
  cursor:pointer;
}

.product-add:hover{
  background:#1b5e20;
}

/* ==================================================
   🔥 MOBILE : EXACT 4 PRODUCTS IN ONE ROW
   ================================================== */
/* ================= SHOP PAGE MOBILE ULTRA COMPACT GRID ================= */

@media (max-width:600px){

  /* GRID — FORCE 4 PRODUCTS */
  .products .grid{
    display:grid;
    grid-template-columns:repeat(4, minmax(0,1fr)) !important;
    gap:6px !important;
    width:100%;
  }

  /* CARD */
  .product-card{
    padding:6px !important;
    border-radius:12px !important;
    min-width:0;
    width:100%;
  }

  /* IMAGE */
  .product-img{
    height:70px !important;
    border-radius:10px !important;
  }

  .product-img img{
    max-height:70px !important;
    object-fit:contain !important;
    border-radius:10px !important;
  }

  /* BADGE */
  .badge.new{
    top:6px;
    right:6px;
    font-size:8px;
    padding:2px 6px;
  }

  /* WISHLIST */
  .wishlist-btn{
    width:22px;
    height:22px;
  }

  .heart-icon{
    width:11px;
    height:11px;
  }

  /* STARS */
  .rating{
    font-size:9px !important;
    line-height:1;
  }

  /* TAG */
  .product-tag{
    font-size:8px !important;
    margin:0 !important;
  }

  /* NAME */
  .product-name{
    font-size:10px !important;
    line-height:1.1;
    margin:2px 0 !important;
  }

  /* OPTIONS ROW */
  .product-options-row{
    gap:4px !important;
  }

  /* DROPDOWN */
  select{
    height:22px !important;
    font-size:9px !important;
    padding:0 4px !important;
  }

  /* QTY */
  .qty-ui button{
    width:18px !important;
    height:18px !important;
    font-size:10px !important;
  }

  .qty-ui span{
    font-size:9px !important;
  }

  /* PRICE */
  .price{
    gap:4px !important;
  }

  .price .new-price{ font-size:11px !important; }
  .price .old-price{ font-size:9px !important; }
  .price .price-off{ font-size:8px !important; }

  /* ADD BUTTON */
  .product-add{
    padding:4px 10px !important;
    font-size:10px !important;
    border-radius:14px !important;
  }

}
