/* ============================================================
   PRODUCT CARDS
   ============================================================ */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px 25px;
  padding-bottom: 60px;
  box-sizing: border-box;
}

/* === Kartica proizvoda === */
.product-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* === Slika proizvoda === */
.product-image {
  position: relative;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition);
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}


.product-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--red);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.order-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  border: none;
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition), opacity var(--transition), background var(--transition);
}

.order-pill:hover {
  background: var(--green-dark);
  transform: scale(1.1);
}

/* === Detalji proizvoda === */
.product-info {
  text-align: center;
  padding: 18px 15px 25px;
}

.product-info h3 {
  font-size: 17px;
  color: var(--dark);
  margin-bottom: 10px;
  font-weight: 600;
  transition: color var(--transition);
}

.product-info h3:hover {
  color: var(--accent);
}

.product-price {
  font-size: 16px;
  color: var(--dark);
  font-weight: 700;
}

.product-price del {
  color: #9ca3af;
  font-weight: 400;
  margin-left: 5px;
  font-size: 15px;
}


.shop-toolbar{
  background:#f8fafc;
  border-bottom:1px solid #e5e7eb;
}
.shop-toolbar .container{
  max-width:1200px;
  margin:0 auto;
  padding:14px 16px;
  text-align:center;
}


.shop-filters{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
  row-gap:10px;
}


.sf-group{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}


.sf-group label{
  font-size:14px;
  color:#374151;
  font-weight:600;
  line-height:1;
  white-space:nowrap;
}

/* Kontrole (select + text input) */
.sf-group select,
.sf-group input[type="text"]{
  appearance:none;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:10px;
  padding:10px 12px;
  font-size:14px;
  color:#111827;
  min-width:200px;
  min-height:42px;
  transition:border-color .15s ease, box-shadow .15s ease;
  box-sizing:border-box;
}
.sf-group select:focus,
.sf-group input[type="text"]:focus{
  outline:none;
  border-color:#7f1d1d;
  box-shadow:0 0 0 3px rgba(127,29,29,.15);
}


.sf-search input{
  width:min(100%, 340px);
  min-width:240px;
}

.sf-apply{
  background:#7f1d1d;
  color:#fff;
  border:none;
  border-radius:10px;
  padding:10px 14px;
  font-weight:700;
  cursor:pointer;
  min-height:42px;
}
.sf-apply:hover{ background:#991b1b; }

@media (max-width:640px){
  .sf-group{
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;
    gap:6px;
  }
  .sf-group label{
    width:100%;
    text-align:center;
    margin-bottom:2px;
  }
  .sf-group select,
  .sf-group input[type="text"]{
    width:100%;
    min-width:220px;
  }
  .sf-search input{
    width:100%;
    min-width:220px;
  }
}

@media (min-width:1280px){
  .shop-filters{ gap:14px; }
  .sf-group select,
  .sf-group input[type="text"]{ min-width:220px; }
  .sf-search input{ width:min(100%, 380px); }
}



/* === Responsive === */
@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px 20px;
  }
}

@media (max-width: 550px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-card img {
    height: 200px;
  }

  .order-pill {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}
