/* DILFISH v26 — catalog, product cards, orders, delivery/payment */

.catalog-toolbar{
  display:none;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:14px 0 18px;
}
.catalog-sort-form select{
  min-height:44px;
  border:1px solid var(--line,#e4eadf);
  border-radius:14px;
  background:#fff;
  padding:0 12px;
  font-weight:800;
}
.catalog-description{
  max-width:760px;
  color:var(--muted,#6b7567);
  line-height:1.55;
}
.mobile-filter-head{display:none}
.stock-filter{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:800;
}
.stock-filter input{width:auto!important}
.catalog-overlay{display:none}

.v26-product-card{
  position:relative;
}
.v26-product-card .product-img{
  position:relative;
}
.product-badges{
  position:absolute;
  left:10px;
  top:10px;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  z-index:2;
}
.badge{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:4px 8px;
  border-radius:999px;
  background:rgba(255,255,255,.92);
  color:var(--text,#172014);
  font-size:12px;
  font-weight:900;
  box-shadow:0 6px 18px rgba(23,32,20,.12);
}
.badge.sale{background:#fff0d9;color:#8a4b00}
.badge.new{background:#e8f6ee;color:#146c3f}
.badge.hit{background:#f3edff;color:#5b2fb0}
.badge.out{background:#f2f2f2;color:#767676}

.card-buy-form{
  display:grid;
  grid-template-columns:96px 1fr;
  gap:8px;
  margin-top:auto;
}
.qty-mini{
  display:grid;
  grid-template-columns:28px 1fr 28px;
  border:1px solid var(--line,#e4eadf);
  border-radius:14px;
  overflow:hidden;
  background:#fff;
}
.qty-mini button{
  border:0;
  background:#f6f8f4;
  font-weight:900;
  cursor:pointer;
}
.qty-mini input{
  width:100%;
  border:0;
  text-align:center;
  font-weight:800;
  outline:none;
  -moz-appearance:textfield;
}
.qty-mini input::-webkit-outer-spin-button,
.qty-mini input::-webkit-inner-spin-button{
  -webkit-appearance:none;
  margin:0;
}

.checkout-steps{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  margin-bottom:18px;
}
.checkout-steps span{
  background:#fff;
  border:1px solid var(--line,#e4eadf);
  border-radius:14px;
  padding:10px 12px;
  text-align:center;
  font-weight:800;
  color:var(--muted,#6b7567);
}
.checkout-steps .active{
  background:var(--accent,#1f7a3a);
  color:#fff;
  border-color:var(--accent,#1f7a3a);
}
.v26-checkout h2{
  margin:22px 0 10px;
}
.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px 14px;
}
.form-grid p,.v26-checkout p{
  margin:0 0 12px;
}
.v26-checkout label{
  display:block;
  font-weight:800;
  margin-bottom:6px;
}
.helptext{
  display:block;
  color:var(--muted,#6b7567);
  font-size:13px;
  margin-top:5px;
}
.v26-cart .summary .hint{
  margin-bottom:0;
}
.order-status-card{
  background:#f6f8f4;
  border:1px solid var(--line,#e4eadf);
  border-radius:20px;
  padding:18px;
  margin-bottom:18px;
}
.order-status-card p{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin:8px 0;
}
.order-history{
  display:grid;
  gap:10px;
}
.order-history>div{
  background:#fff;
  border:1px solid var(--line,#e4eadf);
  border-radius:16px;
  padding:12px;
}
.order-history b{
  display:block;
}
.order-history span{
  color:var(--accent,#1f7a3a);
  font-weight:900;
}
.order-history p{
  margin:6px 0 0;
  color:var(--muted,#6b7567);
}

.product-info .info-box{
  background:linear-gradient(135deg,#ffffff,#eef8ef);
}

@media(max-width:900px){
  .catalog-toolbar{display:flex}
  .catalog-sidebar{
    position:fixed!important;
    top:0!important;
    left:0!important;
    bottom:0!important;
    width:min(92vw,380px)!important;
    max-height:100vh!important;
    overflow:auto!important;
    background:#fff!important;
    z-index:1001!important;
    transform:translateX(-105%)!important;
    transition:.22s ease!important;
    padding:16px!important;
    box-shadow:20px 0 50px rgba(0,0,0,.22)!important;
  }
  body.filter-open .catalog-sidebar{
    transform:translateX(0)!important;
  }
  body.filter-open .catalog-overlay{
    display:block!important;
    position:fixed!important;
    inset:0!important;
    background:rgba(0,0,0,.42)!important;
    z-index:1000!important;
  }
  .mobile-filter-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:12px;
  }
  .mobile-filter-head b{
    font-size:22px;
  }
  .mobile-filter-head button{
    width:42px;
    height:42px;
    border:0;
    border-radius:50%;
    background:#f2f4ef;
    font-size:28px;
    line-height:1;
  }
  .catalog-layout{
    display:block!important;
  }
  .catalog-main{
    width:100%;
  }
}

@media(max-width:620px){
  .card-buy-form{
    grid-template-columns:1fr;
  }
  .qty-mini{
    display:none;
  }
  .form-grid{
    grid-template-columns:1fr;
  }
  .checkout-steps{
    grid-template-columns:1fr;
  }
  .order-status-card p{
    display:block;
  }
}
.cart-remove-form{display:inline;margin:0}.link-button{appearance:none;border:0;background:none;padding:0;color:var(--accent);cursor:pointer;text-decoration:underline;font:inherit}.checkout-consent{display:flex;gap:10px;align-items:flex-start}.checkout-consent input{width:auto;margin-top:4px}
