/* Mini-cart in header */
.js-mini-cart{
  position:relative;
  display:inline-block;
  vertical-align:top;
  margin-top:6px;
  margin-right:8px;
}
.js-mini-cart-toggle{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:#618F53;
  color:#fff !important;
  text-decoration:none !important;
  padding:6px 12px;
  border-radius:3px;
  font-size:13px;
  line-height:1.2;
  border:none;
  cursor:pointer;
}
.js-mini-cart-toggle:hover{background:#527a46;color:#fff !important;}
.js-mini-cart .cart-icon{font-size:16px;}
.js-cart-count-badge{
  display:inline-block;
  min-width:18px;
  padding:1px 5px;
  border-radius:10px;
  background:#fff;
  color:#618F53;
  font-weight:bold;
  font-size:12px;
  text-align:center;
}
.js-mini-cart.is-empty .js-cart-count-badge{display:none !important;}
.js-mini-cart-dropdown{
  display:none;
  position:absolute;
  right:0;
  top:100%;
  margin-top:8px;
  width:320px;
  max-width:92vw;
  background:#fff;
  border:1px solid #ddd;
  box-shadow:0 8px 24px rgba(0,0,0,.12);
  z-index:1000;
  padding:12px;
  text-align:left;
}
.js-mini-cart.is-open .js-mini-cart-dropdown{display:block;}
.js-mini-cart.is-flash .js-mini-cart-toggle{animation:cartFlash .5s ease;}
@keyframes cartFlash{
  0%,100%{transform:scale(1)}
  40%{transform:scale(1.06)}
}
.mini-cart-empty{color:#888;font-size:13px;padding:8px 0;}
.mini-cart-row{
  display:flex;
  gap:8px;
  align-items:flex-start;
  padding:8px 0;
  border-bottom:1px solid #eee;
}
.mini-cart-row:last-child{border-bottom:none;}
.mini-cart-thumb{
  width:48px;height:48px;flex:0 0 48px;
  border:1px solid #eee;display:flex;align-items:center;justify-content:center;overflow:hidden;
}
.mini-cart-thumb img{max-width:100%;max-height:100%;}
.mini-cart-noimg{display:block;width:100%;height:100%;background:#f5f5f5;}
.mini-cart-info{flex:1;min-width:0;font-size:12px;line-height:1.35;}
.mini-cart-info a{color:#333;text-decoration:none;}
.mini-cart-info a:hover{color:#618F53;}
.mini-cart-meta{color:#666;margin-top:3px;}
.mini-cart-remove{
  border:none;background:transparent;color:#999;font-size:18px;line-height:1;cursor:pointer;padding:0 4px;
}
.mini-cart-remove:hover{color:#a94442;}
.mini-cart-footer{
  margin-top:10px;padding-top:10px;border-top:1px solid #eee;
  display:flex;align-items:center;justify-content:space-between;gap:8px;
}
.mini-cart-footer .sum{font-weight:bold;color:#618F53;}
.mini-cart-footer .greenBut{
  display:inline-block;width:auto;padding:0 14px;line-height:32px;font-size:12px;background-size:cover;text-decoration:none;color:#fff !important;
}

/* Catalog hover gallery */
a.js-hover-gallery{display:block;}
a.js-hover-gallery img{transition:opacity .15s ease;}

/* Product buy block */
.js-cart-buy{margin-top:4px;}
.js-cart-buy .cart-buy-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center;}
.product-buy-block{margin-top:4px;}
.product-buy-block .product-buy-price{margin-bottom:10px;}
.product-buy-block .price{line-height:1.15;margin:0;}
.product-buy-block .old_price{font-size:13px;margin-top:2px;}
.product-buy-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px;
}
.product-buy-actions .greenBut{margin:0;flex:0 0 auto;}
.product-qty{
  display:inline-flex;
  align-items:stretch;
  border:1px solid #ccc;
  background:#fff;
  height:45px;
  box-sizing:border-box;
}
.product-qty button{
  width:36px;
  border:none;
  background:#f3f3f3;
  color:#333;
  font-size:18px;
  line-height:1;
  cursor:pointer;
  padding:0;
}
.product-qty button:hover{background:#e8e8e8;}
.product-qty .js-add-qty{
  width:52px;
  height:100%;
  border:none;
  border-left:1px solid #ccc;
  border-right:1px solid #ccc;
  padding:0;
  text-align:center;
  font-size:16px;
  -moz-appearance:textfield;
}
.product-qty .js-add-qty::-webkit-outer-spin-button,
.product-qty .js-add-qty::-webkit-inner-spin-button{
  -webkit-appearance:none;
  margin:0;
}
.product-buy-note{margin:8px 0 23px;font-size:12px;color:#666;}
.js-add-qty{
  width:64px;height:40px;border:1px solid #ccc;padding:0 8px;text-align:center;
}
.js-add-to-cart.is-loading{opacity:.7;}
.js-add-to-cart.is-added{background:#4a7340 !important;}

/* Cart page */
.cart-page{padding:10px 0 40px;}
.cart-page h1{margin-top:0;color:#333;}
.cart-table{width:100%;border-collapse:collapse;background:#fff;}
.cart-table th,.cart-table td{border-bottom:1px solid #e5e5e5;padding:12px 8px;vertical-align:middle;}
.cart-table th{font-size:13px;color:#666;font-weight:normal;background:#f7f7f7;}
.cart-td-img{width:72px;}
.cart-td-img img{max-width:64px;max-height:64px;}
.cart-td-title a{color:#333;font-weight:bold;text-decoration:none;}
.cart-td-title a:hover{color:#618F53;}
.cart-sku{font-size:12px;color:#888;margin-top:4px;}
.cart-qty{display:inline-flex;align-items:center;border:1px solid #ddd;}
.cart-qty button{
  width:32px;height:34px;border:none;background:#f3f3f3;cursor:pointer;font-size:16px;
}
.cart-qty input{
  width:48px;height:34px;border:none;border-left:1px solid #ddd;border-right:1px solid #ddd;text-align:center;
}
.cart-td-remove button{
  background:none;border:none;color:#a94442;cursor:pointer;font-size:13px;text-decoration:underline;
}
.cart-summary{
  margin-top:20px;padding:16px;border:1px solid #ddd;background:#fafafa;
  display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;align-items:center;
}
.cart-summary .total{font-size:20px;color:#618F53;font-weight:bold;}
.cart-checkout{
  margin-top:28px;padding:20px;border:1px solid #ddd;background:#fff;max-width:640px;
}
.cart-checkout h2{margin-top:0;font-size:20px;color:#618F53;}
.cart-checkout label{display:block;margin-bottom:12px;font-weight:normal;}
.cart-checkout label span{display:block;font-size:12px;color:#666;margin-bottom:4px;}
.cart-checkout input,.cart-checkout textarea,.cart-checkout select{
  width:100%;max-width:480px;padding:9px 10px;border:1px solid #ccc;background:#fff;
}
.cart-checkout select{height:40px;}
.cart-checkout textarea{min-height:90px;}
.js-checkout-error{color:#a94442;margin:10px 0;}
.js-checkout-ok{color:#618F53;margin:10px 0;padding:12px;background:#eef6ec;border:1px solid #cfe3c9;}
.cart-empty{padding:40px 20px;text-align:center;border:1px dashed #ccc;background:#fafafa;}
.cart-empty a{color:#618F53;font-weight:bold;}

@media (max-width:767px){
  .js-mini-cart{display:block;margin:8px 0 0;}
  .js-mini-cart-dropdown{right:auto;left:0;}
  .cart-table,.cart-table thead,.cart-table tbody,.cart-table th,.cart-table td,.cart-table tr{display:block;}
  .cart-table thead{display:none;}
  .cart-table tr{border:1px solid #eee;margin-bottom:12px;padding:8px;}
  .cart-table td{border:none;padding:6px 4px;}
  .cart-td-img{width:auto;}
}
