/* Merma Dayli cart and checkout */
.add-cart-trigger{border:0;cursor:pointer;background:#008b83;color:#fff;margin-right:8px}
.cart-modal{display:none;position:fixed;inset:0;z-index:9999;align-items:center;justify-content:center;padding:18px}.cart-modal.is-open{display:flex}.cart-modal-backdrop{position:absolute;inset:0;background:rgba(8,30,28,.58)}.cart-modal-card{position:relative;z-index:1;width:min(100%,460px);max-height:90vh;overflow:auto;background:#fff;border-radius:16px;padding:26px;box-shadow:0 18px 60px #001f1d40}.cart-modal-card h2{margin:0 35px 8px 0;color:#104b48}.cart-modal-close{position:absolute;right:14px;top:10px;border:0;background:#eef5f3;border-radius:50%;width:34px;height:34px;font-size:24px;cursor:pointer}.cart-modal-card label,.checkout-form label{display:block;font-weight:700;margin:14px 0;color:#23423f}.cart-modal-card select,.cart-modal-card input,.checkout-form input,.checkout-form textarea{display:block;width:100%;box-sizing:border-box;margin-top:7px;padding:12px;border:1px solid #d5e3df;border-radius:9px;background:#fff;font:inherit}.cart-modal-card .btn{width:100%;justify-content:center}.cart-modal-error,.cart-error{color:#b42318;min-height:1.2em}.floating-cart-button{position:fixed;z-index:9000;right:22px;bottom:22px;display:flex;align-items:center;gap:10px;padding:13px 18px;border-radius:999px;background:#007f78;color:#fff;text-decoration:none;font-weight:800;box-shadow:0 8px 26px #003b3740}.floating-cart-count{background:#fff;color:#007f78;border-radius:50%;min-width:23px;height:23px;display:grid;place-items:center;font-size:12px}.floating-cart-button small{font-size:11px;opacity:.9}.cart-page{min-height:48vh}.cart-table-wrap{overflow-x:auto}.cart-table{width:100%;border-collapse:collapse;min-width:720px}.cart-table th,.cart-table td{padding:13px 10px;border-bottom:1px solid #e1eae7;text-align:left}.cart-table th{background:#f0f7f5;color:#124b47}.cart-table td small{display:block;color:#71817c}.cart-qty{width:76px;padding:8px;border:1px solid #d5e3df;border-radius:7px}.cart-remove{border:0;background:#b42318;color:white;border-radius:7px;padding:8px 12px;cursor:pointer}.cart-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:22px}.cart-bottom strong{font-size:20px;color:#007f78}.btn-outline{background:#fff!important;color:#007f78!important;border:1px solid #007f78!important}.checkout-form{max-width:620px;border:1px solid #e0eae6;border-radius:14px;padding:22px}.invoice-success{max-width:760px;margin:20px auto;padding:30px;border:1px solid #dce9e4;border-radius:16px;background:#f7fbf9}.invoice-success h1{color:#087d70}.invoice-note{margin-top:20px;color:#687b76;font-size:14px}
@media(max-width:600px){.floating-cart-button{right:12px;bottom:12px;padding:12px 14px}.cart-modal-card{padding:22px 18px}.cart-bottom>*{width:100%;text-align:center}.checkout-form{padding:16px}}


/* Floating WhatsApp: all public pages except product detail */
.floating-whatsapp-button{position:fixed;z-index:8999;left:22px;bottom:22px;display:flex;align-items:center;gap:9px;padding:11px 17px;border-radius:999px;background:#128c7e;color:#fff;text-decoration:none;font-weight:800;box-shadow:0 8px 26px rgba(0,45,40,.25);transition:transform .2s,box-shadow .2s}
.floating-whatsapp-button:hover{transform:translateY(-2px);box-shadow:0 11px 30px rgba(0,45,40,.32)}
.floating-whatsapp-button img{width:25px;height:25px;object-fit:contain;filter:brightness(0) invert(1)}
.md-product-detail-button,.category-detail-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:9px 15px;border-radius:8px;background:#007f78;color:#fff!important;text-decoration:none!important;font-weight:800;font-size:13px;white-space:nowrap}
.md-product-detail-button:hover,.category-detail-button:hover{background:#006a64}
.md-product-bottom{gap:12px}
@media(max-width:600px){.floating-whatsapp-button{left:12px;bottom:12px;padding:10px 13px;font-size:13px}.floating-whatsapp-button img{width:23px;height:23px}.md-product-detail-button,.category-detail-button{padding:8px 11px}}

/* Merma Dayli: responsive detail button + blue add-to-cart */
.add-cart-trigger,
button.add-cart-trigger,
a.add-cart-trigger {
  background: #2563eb !important;
  color: #fff !important;
  border: 0 !important;
}
.add-cart-trigger:hover,
button.add-cart-trigger:hover,
a.add-cart-trigger:hover {
  background: #1d4ed8 !important;
}
.md-product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}
.md-product-detail-button,
.category-detail-button {
  background: #006b66 !important;
  color: #fff !important;
  box-sizing: border-box;
  min-width: 88px;
  max-width: 100%;
  white-space: nowrap;
  text-align: center;
  flex: 0 1 auto;
}
.md-product-detail-button:hover,
.category-detail-button:hover {
  background: #005650 !important;
}
@media (max-width: 600px) {
  .md-product-bottom {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
  }
  .md-product-bottom > strong {
    display: block;
    width: 100%;
  }
  .md-product-detail-button,
  .category-detail-button {
    display: flex;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 44px;
    padding: 11px 14px;
    box-sizing: border-box;
    justify-content: center;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 14px;
  }
  .add-cart-trigger,
  button.add-cart-trigger,
  a.add-cart-trigger {
    min-height: 48px;
    margin: 0 0 14px 0 !important;
    padding: 13px 18px;
    border-radius: 12px;
  }
}

/* Fix detail page action buttons: consistent spacing and blue Add to Cart */
.product-order.add-cart-trigger,
button#openCartModal.add-cart-trigger {
  display: flex !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 58px !important;
  box-sizing: border-box !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 18px 0 16px !important;
  padding: 15px 20px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: #2563eb !important;
  color: #fff !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
}
.product-order.add-cart-trigger:hover,
button#openCartModal.add-cart-trigger:hover { background: #1d4ed8 !important; }
#whatsappOrderButton.product-order {
  display: flex !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 58px !important;
  box-sizing: border-box !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 0 16px !important;
}
.product-marketplaces { display:flex; flex-wrap:wrap; gap:12px !important; margin-top:0 !important; }
.product-marketplaces > a { flex:1 1 145px; min-width:0; box-sizing:border-box; justify-content:center; }

/* Floating checkout button, fixed at bottom-right on every page */
.floating-cart-button {
  position: fixed !important;
  right: 16px !important;
  bottom: 16px !important;
  z-index: 10050 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;
  min-height: 54px !important;
  padding: 12px 18px !important;
  border-radius: 999px !important;
  background: #008b83 !important;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 800 !important;
  box-shadow: 0 8px 26px rgba(0,45,40,.28) !important;
}
.floating-cart-button small { display:inline !important; font-size:12px !important; }
.floating-cart-count { display:grid !important; place-items:center !important; min-width:24px !important; height:24px !important; border-radius:50% !important; background:#fff !important; color:#007f78 !important; }
@media(max-width:600px) {
  .product-order.add-cart-trigger,
  button#openCartModal.add-cart-trigger { margin:16px 0 14px !important; min-height:56px !important; }
  #whatsappOrderButton.product-order { margin:0 0 14px !important; min-height:56px !important; }
  .product-marketplaces { gap:10px !important; }
  .floating-cart-button { right:12px !important; bottom:12px !important; padding:11px 15px !important; min-height:50px !important; }
}


/* === FINAL HEADER / DETAIL CARD / FLOATING CHECKOUT FIX === */
/* Desktop: navigation then cart; mobile: logo + cart + hamburger in one row */
.site-nav{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:clamp(10px,2vw,26px)!important;flex-wrap:nowrap!important}
.site-logo{flex:0 0 auto!important}
.main-navigation{order:2!important;flex:1 1 auto!important;justify-content:flex-end!important;min-width:0}
.header-actions{order:3!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:10px!important;flex:0 0 auto!important}
.header-cart-button{display:inline-flex!important;position:relative!important;align-items:center!important;justify-content:center!important;width:44px!important;height:44px!important;border:1px solid #dce9e3!important;border-radius:12px!important;background:#fff!important;color:#087f78!important;text-decoration:none!important;font-size:22px!important;line-height:1!important}
.header-cart-count{position:absolute!important;top:-7px!important;right:-7px!important;display:grid!important;place-items:center!important;min-width:20px!important;height:20px!important;padding:0 4px!important;border-radius:50%!important;background:#087f78!important;color:#fff!important;font-size:11px!important;font-weight:800!important;line-height:1!important}
.nav-toggle{flex:0 0 auto!important;margin:0!important}
@media(max-width:760px){
 .site-nav{flex-wrap:wrap!important;gap:8px!important}
 .site-logo{order:1!important}
 .header-actions{order:2!important;margin-left:auto!important;gap:9px!important}
 .nav-toggle{display:block!important}
 .main-navigation{order:3!important;flex:0 0 100%!important;width:100%!important}
 .header-cart-button{width:42px!important;height:42px!important}
}

/* Product cards: full, visible and flexible Detail button */
.md-product-card{min-width:0!important}
.md-product-info{min-width:0!important}
.md-product-bottom{
 display:flex!important;align-items:center!important;justify-content:space-between!important;
 flex-wrap:wrap!important;gap:12px!important;min-width:0!important;
}
.md-product-bottom>strong{flex:1 1 auto!important;min-width:0!important}
.md-product-bottom .md-product-detail-button,
.md-product-detail-button,
.category-detail-button{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 flex:0 1 auto!important;width:auto!important;min-width:104px!important;max-width:100%!important;
 min-height:40px!important;padding:9px 14px!important;box-sizing:border-box!important;
 border:0!important;border-radius:8px!important;background:#006b66!important;color:#fff!important;
 font-size:13px!important;font-weight:800!important;line-height:1.2!important;
 text-align:center!important;text-decoration:none!important;white-space:normal!important;
 overflow-wrap:anywhere!important;
}
.md-product-detail-button:hover,.category-detail-button:hover{background:#005650!important;color:#fff!important}
.category-product-info .category-detail-button{width:100%!important;margin-top:8px!important}
@media(max-width:620px){
 .md-product-bottom{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:10px!important}
 .md-product-bottom>strong{width:100%!important}
 .md-product-bottom .md-product-detail-button,
 .md-product-detail-button,
 .category-detail-button{display:flex!important;width:100%!important;min-width:0!important;max-width:100%!important;min-height:42px!important;padding:10px 12px!important}
}

/* Floating button contains only the Checkout label */
.floating-cart-button{
 position:fixed!important;right:18px!important;bottom:18px!important;z-index:10050!important;
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 min-width:124px!important;min-height:50px!important;padding:13px 22px!important;
 border:0!important;border-radius:999px!important;background:#008b83!important;color:#fff!important;
 font-size:14px!important;font-weight:800!important;line-height:1!important;text-decoration:none!important;
 box-shadow:0 8px 26px rgba(0,45,40,.28)!important;
}
@media(max-width:600px){.floating-cart-button{right:12px!important;bottom:12px!important;min-height:48px!important;padding:12px 19px!important}}
