/* MyPouf AJAX Cart Popup v1.1 - pastel */
:root{
  --mpac-ink:#5a4845;
  --mpac-muted:#907a75;
  --mpac-line:#efd8d2;
  --mpac-bg:#fffaf8;
  --mpac-soft:#fff3ef;
  --mpac-salmon:#e8a897;
  --mpac-salmon-2:#f2c2b5;
  --mpac-salmon-3:#f8ddd5;
  --mpac-salmon-4:#fcece7;
  --mpac-accent:#c77f6d;
  --mpac-danger:#b96666;
}
html.mpac-lock, html.mpac-lock body { overflow:hidden!important; }
.mpac-overlay{position:fixed;inset:0;z-index:2147483200;display:flex;align-items:center;justify-content:center;padding:22px;background:rgba(63,58,68,.48);backdrop-filter:blur(9px);opacity:0;visibility:hidden;pointer-events:none;transition:.22s}
.mpac-overlay.is-open{opacity:1;visibility:visible;pointer-events:auto}
.mpac-dialog{position:relative;width:min(1180px,97vw);max-height:94vh;overflow:hidden;display:flex;flex-direction:column;color:var(--mpac-ink);background:var(--mpac-bg);border:1px solid rgba(255,255,255,.8);border-radius:28px;box-shadow:0 28px 80px rgba(53,48,59,.24);transform:translateY(14px) scale(.988);transition:.25s}
.mpac-overlay.is-open .mpac-dialog{transform:none}
.mpac-loading{position:absolute;inset:0;z-index:100;display:flex;flex-direction:column;gap:13px;align-items:center;justify-content:center;background:rgba(255,250,253,.9);backdrop-filter:blur(3px);opacity:0;visibility:hidden;pointer-events:none;transition:.15s}
.mpac-overlay.is-loading .mpac-loading{opacity:1;visibility:visible;pointer-events:auto}
.mpac-spinner{width:48px;height:48px;border:4px solid #ebe3ef;border-top-color:var(--mpac-accent);border-radius:50%;animation:mpac-spin .7s linear infinite}
@keyframes mpac-spin{to{transform:rotate(360deg)}}

.mpac-topbar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:19px 22px;background:linear-gradient(125deg,#fde9e3,#f8d8cf 52%,#f4c9bd);border-bottom:1px solid #e8c6bd}
.mpac-title-wrap{display:flex;align-items:center;gap:13px;min-width:0}
.mpac-cart-icon{width:52px;height:52px;display:grid;place-items:center;border-radius:16px;background:rgba(255,255,255,.72);border:1px solid rgba(139,120,158,.15);font-size:21px;color:#b06f60}
.mpac-kicker{display:block;margin-bottom:3px;color:#a86f61;font-size:10px;font-weight:900;letter-spacing:1.4px}
.mpac-topbar h2{margin:0;color:#5b4743;font-size:clamp(19px,2.2vw,28px);font-weight:800}
.mpac-top-tools{display:flex;align-items:center;gap:7px}
.mpac-icon-btn,.mpac-close{width:42px;height:42px;display:inline-grid;place-items:center;padding:0;border:1px solid rgba(114,102,126,.14);border-radius:13px;color:#675d70!important;background:rgba(255,255,255,.62);cursor:pointer;transition:.16s}
.mpac-icon-btn:hover,.mpac-close:hover{background:#fff;color:#564c60!important;transform:translateY(-1px)}
.mpac-clear:hover{color:var(--mpac-danger)!important;background:#fff5f6}
.mpac-close{font-size:28px;line-height:1}

.mpac-body{min-height:0;overflow:auto;display:grid;grid-template-columns:minmax(0,1.7fr) minmax(320px,.72fr);background:#fff}
.mpac-products{padding:18px 20px 22px}
.mpac-product{display:grid;grid-template-columns:142px minmax(0,1fr);gap:16px;padding:14px;margin-bottom:13px;border:1px solid var(--mpac-line);border-radius:19px;background:#fff;box-shadow:0 7px 22px rgba(70,62,78,.04)}
.mpac-thumb{display:flex;width:142px;height:142px;overflow:hidden;border-radius:15px;background:linear-gradient(145deg,#faf7fc,#f4f7fb)}
.mpac-thumb img{width:100%;height:100%;padding:7px;object-fit:contain}
.mpac-product-main{min-width:0}.mpac-product-head{display:flex;justify-content:space-between;gap:12px}
.mpac-product-name{display:block;color:#4c4851!important;font-size:15px;font-weight:850;line-height:1.35;text-decoration:none!important}
.mpac-model{display:block;margin-top:4px;color:#a09ba4;font-size:11px}
.mpac-remove{flex:0 0 32px;width:32px;height:32px;padding:0;border:1px solid #efdadd;border-radius:10px;color:var(--mpac-danger);background:#fff6f7;font-size:22px;cursor:pointer}
.mpac-remove:hover{background:#f4dfe2}
.mpac-options{margin-top:10px;padding:10px 11px;border:1px dashed #ddd3e4;border-radius:13px;background:#fff5f1}
.mpac-options-title{display:block;margin-bottom:6px;color:#85738f;font-size:10px;font-weight:900;letter-spacing:.9px}
.mpac-option-list{display:flex;flex-wrap:wrap;gap:6px}
.mpac-option{display:inline-block;padding:5px 8px;color:#66616a;background:#fff;border:1px solid #e7e0eb;border-radius:8px;font-size:11px}
.mpac-product-footer{display:grid;grid-template-columns:auto 1fr 1fr;gap:16px;align-items:end;margin-top:12px}
.mpac-small-label{display:block;margin-bottom:5px;color:#97919b;font-size:9.5px;font-weight:800;text-transform:uppercase}
.mpac-qty{display:flex;align-items:center;width:116px;height:38px;overflow:hidden;border:1px solid #ddd7e4;border-radius:11px;background:#fff}
.mpac-qty button{width:34px;height:100%;padding:0;border:0;background:#fff0eb;color:#6e6375;font-size:18px;cursor:pointer}
.mpac-qty input{width:48px;height:100%;padding:0;border:0;outline:0;text-align:center;font-weight:800}
.mpac-price-block,.mpac-line-total{text-align:right}.mpac-line-total strong{color:#b36f60;font-size:17px}

.mpac-summary{padding:18px;border-left:1px solid var(--mpac-line);background:#fff5f2}
.mpac-summary-card{position:sticky;top:18px;padding:17px;border:1px solid #e5dfea;border-radius:20px;background:#fff;box-shadow:0 10px 30px rgba(67,60,76,.05)}
.mpac-summary-title{display:flex;justify-content:space-between;padding-bottom:11px;border-bottom:1px solid #eee9f1;color:#756a7e;font-size:11px;font-weight:900;letter-spacing:1px}
.mpac-total-row,.mpac-tax-row{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px dashed #e9e2ed;color:#77717b;font-size:12.5px}
.mpac-grand-total{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:15px 0 4px}
.mpac-grand-total span{font-size:11px;font-weight:900}.mpac-grand-total strong{color:#b36f60;font-size:22px}
.mpac-shipping-btn{width:100%;display:flex;align-items:center;gap:9px;margin-top:15px;padding:12px 13px;border:1px solid #ddd5e4;border-radius:12px;color:#625b68;background:linear-gradient(90deg,#fff6f3,#fce9e3);font-weight:800;cursor:pointer}
.mpac-shipping-btn .mpac-chevron{margin-left:auto;transition:transform .2s}.mpac-shipping-btn[aria-expanded="true"] .mpac-chevron{transform:rotate(180deg)}
.mpac-shipping-accordion{max-height:0;overflow:hidden;opacity:0;transition:max-height .35s ease,opacity .2s ease}
.mpac-shipping-accordion.is-open{max-height:650px;opacity:1}
.mpac-shipping-fields{display:grid;gap:9px;padding:13px 1px 2px}
.mpac-shipping-fields label{display:grid;gap:4px;margin:0}.mpac-shipping-fields label span{font-size:10px;font-weight:800;color:#8a8390}
.mpac-shipping-fields select,.mpac-shipping-fields input{width:100%;height:38px;padding:7px 9px;border:1px solid #ded7e4;border-radius:10px;background:#fff;color:#5d5861;outline:0}
.mpac-calc-shipping{height:40px;border:0;border-radius:10px;background:#f5d4ca;color:#7b5148;font-weight:800;cursor:pointer}
.mpac-shipping-results{display:grid;gap:7px;margin-top:10px}
.mpac-ship-method{display:flex;align-items:flex-start;gap:8px;padding:9px;border:1px solid #e4ddea;border-radius:10px;background:#fff}
.mpac-ship-method input{margin-top:3px}.mpac-ship-method strong{margin-left:auto;white-space:nowrap;color:#796989}
.mpac-ship-message{padding:9px;border-radius:10px;background:#fff6f0;color:#876f63;font-size:11px}

.mpac-actions{display:grid;grid-template-columns:1fr 1fr 1.15fr;gap:10px;padding:15px 20px 18px;border-top:1px solid var(--mpac-line);background:#fff}
.mpac-btn{min-height:48px;display:flex!important;align-items:center;justify-content:center;gap:9px;padding:11px 15px!important;border-radius:13px!important;font-size:12.5px!important;font-weight:850!important;text-decoration:none!important;cursor:pointer}
.mpac-btn-continue{border:1px solid #ded8e4;color:#655e6a;background:#fff}
.mpac-btn-cart{border:1px solid #e5b7aa;color:#704f48!important;background:#f7ded7}
.mpac-btn-checkout{border:1px solid #e4b6a9;color:#704f48!important;background:linear-gradient(135deg,#f2c7bb,#e9aa99)}
.mpac-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:58px 22px 66px;text-align:center;background:linear-gradient(180deg,#fff,#fbf8fd)}
.mpac-empty-icon{width:82px;height:82px;display:grid;place-items:center;margin-bottom:18px;border-radius:50%;background:linear-gradient(145deg,#fbe2db,#f5cfc4);color:#b06f60;font-size:32px}
.mpac-empty h3{margin:0 0 8px;font-size:24px;color:#514c56}.mpac-empty p{margin:0 0 22px;color:#8b858e;font-size:14px}
.mpac-empty-continue{min-width:220px;border:0!important}

@media(max-width:880px){.mpac-overlay{padding:10px;align-items:flex-end}.mpac-dialog{width:100%;max-height:96vh;border-radius:23px 23px 0 0}.mpac-body{grid-template-columns:1fr}.mpac-summary{border-left:0;border-top:1px solid var(--mpac-line)}.mpac-summary-card{position:static}}
@media(max-width:620px){.mpac-topbar{padding:14px}.mpac-cart-icon{width:44px;height:44px}.mpac-topbar h2{font-size:17px}.mpac-icon-btn,.mpac-close{width:37px;height:37px}.mpac-products{padding:10px}.mpac-product{grid-template-columns:88px minmax(0,1fr);gap:10px;padding:10px}.mpac-thumb{width:88px;height:88px}.mpac-product-footer{grid-template-columns:1fr 1fr}.mpac-qty-block{grid-column:1/-1}.mpac-price-block{text-align:left}.mpac-summary{padding:10px}.mpac-actions{grid-template-columns:1fr 1fr;padding:10px}.mpac-btn-checkout{grid-column:1/-1}}

/* v1.3: προστασία μόνο των controls του popup */
#mpac-popup .mpac-dialog,
#mpac-popup .mpac-topbar,
#mpac-popup .mpac-body,
#mpac-popup .mpac-actions {
  position: relative;
}
#mpac-popup .mpac-top-tools,
#mpac-popup .mpac-icon-btn,
#mpac-popup .mpac-close,
#mpac-popup .mpac-remove,
#mpac-popup .mpac-qty button,
#mpac-popup .mpac-shipping-btn,
#mpac-popup .mpac-calc-shipping,
#mpac-popup .mpac-btn {
  position: relative;
  z-index: 2147483646;
  pointer-events: auto !important;
  touch-action: manipulation;
}
#mpac-popup .mpac-loading {
  z-index: 2147483645;
}

/* v1.6: όταν είναι ανοιχτό το MyPouf popup, κρύβουμε ΜΟΝΟ το Journal cart dropdown. */
html.mpac-lock .desktop-cart-wrapper #cart #cart-content,
html.mpac-lock #cart #cart-content {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* v1.7 product numbering */
#mpac-popup .mpac-thumb {
  position: relative;
}
#mpac-popup .mpac-product-number {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 4;
  min-width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border-radius: 9px;
  background: rgba(255, 244, 239, .96);
  border: 1px solid #e9b6a8;
  color: #a96252;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 3px 10px rgba(126, 79, 67, .10);
}

#mpac-popup .mpac-ship-error {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #e7b2a5;
  border-radius: 8px;
  background: #fff4f0;
  font-weight: 700;
}


/* v2.7 mobile popup layout */
@media (max-width: 880px) {
  #mpac-popup.mpac-overlay {
    padding: 0 8px 0 !important;
    align-items: flex-end !important;
  }

  #mpac-popup .mpac-dialog {
    width: 100% !important;
    max-height: 90dvh !important;
    height: auto !important;
    margin: 0 auto !important;
    border-radius: 20px 20px 0 0 !important;
    overflow: hidden !important;
  }

  #mpac-popup .mpac-topbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 50 !important;
    min-height: 58px !important;
    padding: 8px 10px !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
  }

  #mpac-popup .mpac-title-wrap {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    gap: 8px !important;
  }

  #mpac-popup .mpac-cart-icon {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    font-size: 16px !important;
  }

  #mpac-popup .mpac-kicker {
    font-size: 8px !important;
    line-height: 1.1 !important;
  }

  #mpac-popup .mpac-topbar h2 {
    max-width: 100% !important;
    margin: 2px 0 0 !important;
    font-size: 14px !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  #mpac-popup .mpac-top-tools {
    display: flex !important;
    flex: 0 0 auto !important;
    gap: 4px !important;
    align-items: center !important;
  }

  #mpac-popup .mpac-icon-btn,
  #mpac-popup .mpac-close {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    padding: 0 !important;
    font-size: 13px !important;
  }

  #mpac-popup .mpac-close {
    font-size: 22px !important;
  }

  #mpac-popup .mpac-body {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  #mpac-popup .mpac-actions {
    position: sticky !important;
    bottom: 0 !important;
    z-index: 40 !important;
  }

  #mpac-popup .mpac-shipping-accordion.is-open {
    max-height: none !important;
    overflow: visible !important;
  }
}

@media (max-width: 420px) {
  #mpac-popup .mpac-dialog {
    max-height: 88dvh !important;
  }

  #mpac-popup .mpac-topbar {
    min-height: 54px !important;
    padding: 7px 8px !important;
  }

  #mpac-popup .mpac-cart-icon {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
  }

  #mpac-popup .mpac-topbar h2 {
    font-size: 13px !important;
  }

  #mpac-popup .mpac-icon-btn,
  #mpac-popup .mpac-close {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
  }
}


/* v2.8 - Advanced Popup Cart compatible shipping DOM */
#mpac-popup #apc-shipping-quotes {
  margin-top: 12px;
}

#mpac-popup #apc-quotes-container {
  display: block;
  width: 100%;
}

#mpac-popup #apc-quotes {
  display: grid;
  gap: 9px;
}

#mpac-popup .mpac-shipping-apply-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

#mpac-popup #apc-btn-apply-shipping[disabled] {
  opacity: .55;
  cursor: not-allowed;
}

@media (max-width: 880px) {
  #mpac-popup .mpac-shipping-apply-row {
    justify-content: stretch;
  }

  #mpac-popup #apc-btn-apply-shipping {
    width: 100%;
  }
}


/* v2.9 structural repair after v2.8 malformed shipping markup */
#mpac-popup .mpac-dialog {
  display: flex;
  flex-direction: column;
}

#mpac-popup .mpac-layout {
  flex: 1 1 auto;
  min-height: 0;
}

#mpac-popup .mpac-actions {
  flex: 0 0 auto;
  width: 100%;
  box-sizing: border-box;
}

#mpac-popup .mpac-shipping-apply-row {
  display: flex;
  width: 100%;
  margin-top: 12px;
}

#mpac-popup #apc-btn-apply-shipping {
  min-height: 42px;
  padding: 10px 16px;
}

@media (max-width: 880px) {
  #mpac-popup .mpac-dialog {
    max-height: 90dvh !important;
  }

  #mpac-popup .mpac-layout {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  #mpac-popup .mpac-actions {
    position: sticky !important;
    left: 0;
    right: 0;
    bottom: 0 !important;
  }
}


/* v3.0 - shipping methods get their own scroll area */
#mpac-popup #apc-shipping-quotes {
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
}

#mpac-popup #apc-quotes-container {
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 5px;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}

#mpac-popup #apc-quotes-container::-webkit-scrollbar {
  width: 7px;
}

#mpac-popup #apc-quotes-container::-webkit-scrollbar-thumb {
  border-radius: 10px;
}

#mpac-popup .mpac-shipping-apply-row {
  position: sticky;
  bottom: 0;
  z-index: 8;
  flex: 0 0 auto;
  margin-top: 8px;
  padding-top: 8px;
  background: inherit;
}

#mpac-popup #apc-btn-apply-shipping {
  width: 100%;
}

#mpac-popup .mpac-sidebar,
#mpac-popup .mpac-summary-card,
#mpac-popup .mpac-shipping-accordion {
  min-height: 0;
}

#mpac-popup .mpac-shipping-accordion.is-open {
  overflow: visible;
}

@media (min-width: 881px) {
  #mpac-popup #apc-quotes-container {
    max-height: min(320px, 38vh);
  }
}

@media (max-width: 880px) {
  #mpac-popup #apc-quotes-container {
    max-height: 34vh !important;
  }

  #mpac-popup .mpac-shipping-apply-row {
    position: sticky !important;
    bottom: 0 !important;
  }
}

@media (max-width: 420px) {
  #mpac-popup #apc-quotes-container {
    max-height: 30vh !important;
  }
}


/* v3.2 - product options accordion */
#mpac-popup .mpac-options-accordion {
  margin-top: 10px;
  padding: 0;
  border: 1px dashed #ddd3e4;
  border-radius: 13px;
  background: #fff5f1;
  overflow: hidden;
}

#mpac-popup .mpac-options-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  padding: 9px 11px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

#mpac-popup .mpac-options-summary::-webkit-details-marker {
  display: none;
}

#mpac-popup .mpac-options-summary::marker {
  display: none;
  content: "";
}

#mpac-popup .mpac-options-summary-text {
  color: #7e677e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .15px;
  line-height: 1.25;
}

#mpac-popup .mpac-options-chevron {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-right: 2px solid #9a7881;
  border-bottom: 2px solid #9a7881;
  transform: rotate(45deg);
  transition: transform .2s ease;
  margin-right: 3px;
  margin-top: -4px;
}

#mpac-popup .mpac-options-accordion[open] .mpac-options-chevron {
  transform: rotate(225deg);
  margin-top: 4px;
}

#mpac-popup .mpac-options-accordion .mpac-option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 11px 11px;
  border-top: 1px solid rgba(221, 211, 228, .65);
  padding-top: 9px;
}

#mpac-popup .mpac-options-accordion .mpac-option {
  display: inline-block;
  padding: 5px 8px;
  color: #66616a;
  background: #fff;
  border: 1px solid #e7e0eb;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.3;
}

@media (max-width: 600px) {
  #mpac-popup .mpac-options-summary {
    min-height: 36px;
    padding: 8px 10px;
  }

  #mpac-popup .mpac-options-summary-text {
    font-size: 10.5px;
  }

  #mpac-popup .mpac-options-accordion .mpac-option-list {
    padding: 8px 10px 10px;
  }

  #mpac-popup .mpac-options-accordion .mpac-option {
    font-size: 10.5px;
    padding: 5px 7px;
  }
}


/* v3.3 - cleaner mobile placement and header */
@media (max-width: 880px) {
  #mpac-popup.mpac-overlay {
    align-items: flex-start !important;
    padding: 10px 8px 8px !important;
  }

  #mpac-popup .mpac-dialog {
    margin: 0 auto !important;
    max-height: calc(100dvh - 18px) !important;
    border-radius: 18px !important;
    box-shadow: 0 18px 55px rgba(50, 43, 48, .28) !important;
  }

  #mpac-popup .mpac-topbar {
    min-height: 62px !important;
    padding: 9px 10px 9px 12px !important;
    background:
      linear-gradient(135deg, rgba(255,250,248,.96), rgba(248,218,209,.98)) !important;
    border-bottom: 1px solid #ebcfc7 !important;
    box-shadow: 0 4px 16px rgba(95, 70, 68, .08) !important;
  }

  #mpac-popup .mpac-title-wrap {
    display: grid !important;
    grid-template-columns: 38px minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    column-gap: 9px !important;
    row-gap: 1px !important;
    align-items: center !important;
  }

  #mpac-popup .mpac-cart-icon {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border-radius: 11px !important;
    background: rgba(255,255,255,.8) !important;
    border: 1px solid rgba(218,174,162,.55) !important;
    box-shadow: 0 3px 10px rgba(126, 89, 82, .08) !important;
  }

  #mpac-popup .mpac-kicker {
    grid-column: 2 !important;
    grid-row: 1 !important;
    margin: 0 !important;
    font-size: 8px !important;
    font-weight: 800 !important;
    letter-spacing: .9px !important;
    color: #a77970 !important;
  }

  #mpac-popup .mpac-topbar h2 {
    grid-column: 2 !important;
    grid-row: 2 !important;
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
    color: #594742 !important;
  }

  #mpac-popup .mpac-top-tools {
    gap: 5px !important;
  }

  #mpac-popup .mpac-icon-btn,
  #mpac-popup .mpac-close {
    width: 31px !important;
    height: 31px !important;
    min-width: 31px !important;
    border-radius: 10px !important;
    background: rgba(255,255,255,.78) !important;
    border: 1px solid rgba(224,190,181,.72) !important;
    box-shadow: none !important;
  }

  #mpac-popup .mpac-close {
    font-size: 20px !important;
  }
}

@media (max-width: 420px) {
  #mpac-popup.mpac-overlay {
    padding-top: 6px !important;
  }

  #mpac-popup .mpac-dialog {
    max-height: calc(100dvh - 10px) !important;
    border-radius: 16px !important;
  }

  #mpac-popup .mpac-topbar {
    min-height: 58px !important;
    padding: 7px 8px 7px 10px !important;
  }

  #mpac-popup .mpac-title-wrap {
    grid-template-columns: 34px minmax(0, 1fr) !important;
    column-gap: 8px !important;
  }

  #mpac-popup .mpac-cart-icon {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
  }

  #mpac-popup .mpac-topbar h2 {
    font-size: 13.5px !important;
  }

  #mpac-popup .mpac-icon-btn,
  #mpac-popup .mpac-close {
    width: 29px !important;
    height: 29px !important;
    min-width: 29px !important;
  }
}


/* v3.4 fixed totals summary order */
#mpac-popup .mpac-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#mpac-popup .mpac-total-grand_total {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid #eadcd7;
}

#mpac-popup .mpac-total-grand_total span,
#mpac-popup .mpac-total-grand_total strong {
  font-weight: 800;
}

#mpac-popup .mpac-total-grand_total strong {
  font-size: 18px;
}

/* v3.5 mobile polish */
@media (max-width:600px){
 #mpac-popup .mpac-dialog{font-size:11px!important}
 #mpac-popup .mpac-topbar{min-height:54px!important;padding:7px 8px 7px 10px!important}
 #mpac-popup .mpac-kicker{font-size:7px!important;letter-spacing:.7px!important}
 #mpac-popup .mpac-topbar h2{font-size:12.5px!important;line-height:1.15!important}
 #mpac-popup .mpac-cart-icon{width:32px!important;height:32px!important;min-width:32px!important;border-radius:10px!important}
 #mpac-popup .mpac-title-wrap{grid-template-columns:32px minmax(0,1fr)!important;column-gap:7px!important}
 #mpac-popup .mpac-icon-btn,#mpac-popup .mpac-close{width:27px!important;height:27px!important;min-width:27px!important;border-radius:9px!important;font-size:11px!important}
 #mpac-popup .mpac-close{font-size:18px!important}
 #mpac-popup .mpac-product-name,#mpac-popup .mpac-product-title{font-size:12px!important;line-height:1.25!important}
 #mpac-popup .mpac-product-model,#mpac-popup .mpac-options-summary-text,#mpac-popup .mpac-option{font-size:9.5px!important}
 #mpac-popup .mpac-product-card{border-radius:13px!important}
 #mpac-popup .mpac-options-accordion{margin-top:7px!important;border-radius:10px!important}
 #mpac-popup .mpac-options-summary{min-height:32px!important;padding:6px 8px!important}
 #mpac-popup .mpac-actions .mpac-btn{min-height:38px!important;font-size:10.5px!important;border-radius:10px!important}
}
@media (max-width:880px){
 .mobile-header #cart.mypouf-mini-cart-block #cart-items,
 .mobile-cart-wrapper #cart.mypouf-mini-cart-block #cart-items{
  font-size:10px!important;min-width:17px!important;height:17px!important;line-height:17px!important
 }
}


/* v3.6 - exact 3-row basket summary */
#mpac-popup .mpac-totals {
  display: grid;
  gap: 0;
}

#mpac-popup .mpac-total-row {
  min-height: 34px;
  padding: 8px 0;
  border-bottom: 1px solid #eee6e3;
}

#mpac-popup .mpac-total-row:last-child {
  border-bottom: 0;
}

#mpac-popup .mpac-total-sub_total span,
#mpac-popup .mpac-total-tax span {
  font-size: 11px;
  font-weight: 600;
}

#mpac-popup .mpac-total-sub_total strong,
#mpac-popup .mpac-total-tax strong {
  font-size: 11px;
  font-weight: 700;
}

#mpac-popup .mpac-total-grand_total {
  margin-top: 3px;
  padding-top: 10px;
  border-top: 1px solid #e2cbc4;
}

#mpac-popup .mpac-total-grand_total span {
  font-size: 11px;
  font-weight: 800;
  text-transform: none;
}

#mpac-popup .mpac-total-grand_total strong {
  font-size: 17px;
  font-weight: 800;
}

@media (max-width: 600px) {
  #mpac-popup .mpac-total-row {
    min-height: 30px;
    padding: 6px 0;
  }

  #mpac-popup .mpac-total-sub_total span,
  #mpac-popup .mpac-total-tax span,
  #mpac-popup .mpac-total-sub_total strong,
  #mpac-popup .mpac-total-tax strong,
  #mpac-popup .mpac-total-grand_total span {
    font-size: 9.5px;
  }

  #mpac-popup .mpac-total-grand_total strong {
    font-size: 14px;
  }
}


/* v3.8 - number beside image + centered image */
#mpac-popup .mpac-product-media {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  flex: 0 0 auto;
}

#mpac-popup .mpac-product-media .mpac-product-number {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  z-index: auto !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 23px;
  height: 27px;
  padding: 0 4px;
  margin: 0;
  border: 1px solid #e8bfb4;
  border-radius: 8px;
  background: #fff6f3;
  color: #b96d5c;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  box-sizing: border-box;
}

#mpac-popup .mpac-product-media .mpac-thumb {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  flex: 0 0 auto;
}

#mpac-popup .mpac-product-media .mpac-thumb img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 88% !important;
  max-height: 88% !important;
  margin: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
}

#mpac-popup .mpac-total-shipping span,
#mpac-popup .mpac-total-shipping strong {
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 600px) {
  #mpac-popup .mpac-product-media {
    gap: 5px;
  }

  #mpac-popup .mpac-product-media .mpac-product-number {
    min-width: 20px;
    height: 23px;
    padding: 0 3px;
    border-radius: 7px;
    font-size: 9.5px;
  }

  #mpac-popup .mpac-product-media .mpac-thumb img {
    max-width: 86% !important;
    max-height: 86% !important;
  }

  #mpac-popup .mpac-total-shipping span,
  #mpac-popup .mpac-total-shipping strong {
    font-size: 9.5px;
  }
}


/* v3.9 - reserve real grid space for number + image */
#mpac-popup .mpac-product {
  grid-template-columns: 174px minmax(0, 1fr) !important;
  align-items: start !important;
}

#mpac-popup .mpac-product-media {
  width: 174px !important;
  min-width: 174px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  align-self: start !important;
}

#mpac-popup .mpac-product-main {
  min-width: 0 !important;
  position: relative;
  z-index: 2;
}

#mpac-popup .mpac-product-media .mpac-product-number {
  flex: 0 0 24px !important;
  width: 24px !important;
  min-width: 24px !important;
  height: 28px !important;
  margin: 0 !important;
}

#mpac-popup .mpac-product-media .mpac-thumb {
  width: 142px !important;
  min-width: 142px !important;
  height: 142px !important;
  background: #ffffff !important;
  border: 1px solid #f0e7e4 !important;
  border-radius: 15px !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7);
}

#mpac-popup .mpac-product-media .mpac-thumb img {
  width: auto !important;
  height: auto !important;
  max-width: 86% !important;
  max-height: 86% !important;
  padding: 0 !important;
  margin: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #ffffff !important;
}

/* Keep title/content safely inside its own grid column. */
#mpac-popup .mpac-product-head,
#mpac-popup .mpac-product-name,
#mpac-popup .mpac-model,
#mpac-popup .mpac-options,
#mpac-popup .mpac-product-footer {
  min-width: 0 !important;
}

@media (max-width: 620px) {
  #mpac-popup .mpac-product {
    grid-template-columns: 110px minmax(0, 1fr) !important;
    gap: 9px !important;
  }

  #mpac-popup .mpac-product-media {
    width: 110px !important;
    min-width: 110px !important;
    gap: 6px !important;
  }

  #mpac-popup .mpac-product-media .mpac-product-number {
    flex-basis: 20px !important;
    width: 20px !important;
    min-width: 20px !important;
    height: 23px !important;
  }

  #mpac-popup .mpac-product-media .mpac-thumb {
    width: 84px !important;
    min-width: 84px !important;
    height: 84px !important;
    border-radius: 12px !important;
  }

  #mpac-popup .mpac-product-media .mpac-thumb img {
    max-width: 84% !important;
    max-height: 84% !important;
  }
}


/* v4.2 - denser mobile product cards */
@media (max-width: 600px) {
  #mpac-popup .mpac-products {
    gap: 7px !important;
  }

  #mpac-popup .mpac-product {
    grid-template-columns: 88px minmax(0, 1fr) !important;
    gap: 7px !important;
    padding: 8px !important;
    border-radius: 12px !important;
  }

  #mpac-popup .mpac-product-media {
    width: 88px !important;
    min-width: 88px !important;
    gap: 4px !important;
  }

  #mpac-popup .mpac-product-media .mpac-product-number {
    flex-basis: 18px !important;
    width: 18px !important;
    min-width: 18px !important;
    height: 21px !important;
    font-size: 9px !important;
  }

  #mpac-popup .mpac-product-media .mpac-thumb {
    width: 66px !important;
    min-width: 66px !important;
    height: 66px !important;
    border-radius: 10px !important;
  }

  #mpac-popup .mpac-product-media .mpac-thumb img {
    max-width: 86% !important;
    max-height: 86% !important;
  }

  #mpac-popup .mpac-product-head {
    gap: 5px !important;
    margin-bottom: 3px !important;
  }

  #mpac-popup .mpac-product-name,
  #mpac-popup .mpac-product-title {
    font-size: 11px !important;
    line-height: 1.18 !important;
    margin: 0 !important;
  }

  #mpac-popup .mpac-product-model,
  #mpac-popup .mpac-model {
    font-size: 8.5px !important;
    line-height: 1.1 !important;
  }

  #mpac-popup .mpac-options-accordion {
    margin-top: 5px !important;
  }

  #mpac-popup .mpac-options-summary {
    min-height: 28px !important;
    padding: 5px 7px !important;
  }

  #mpac-popup .mpac-options-summary-text {
    font-size: 9px !important;
  }

  #mpac-popup .mpac-product-footer {
    margin-top: 5px !important;
    gap: 5px !important;
  }

  #mpac-popup .mpac-qty-control {
    min-height: 30px !important;
  }

  #mpac-popup .mpac-qty-btn {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
  }

  #mpac-popup .mpac-qty-input {
    width: 36px !important;
    height: 28px !important;
    font-size: 10px !important;
  }

  #mpac-popup .mpac-price,
  #mpac-popup .mpac-line-total {
    font-size: 11px !important;
  }

  #mpac-popup .mpac-remove {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
  }
}


/* v4.5 - Journal native options popup opened from category/list */
.mpac-journal-options-popup.popup-options .popup-container {
  max-width: 920px;
}

@media (max-width: 700px) {
  .mpac-journal-options-popup.popup-options .popup-container {
    width: calc(100% - 14px) !important;
    max-width: none !important;
    height: calc(100dvh - 18px) !important;
    max-height: calc(100dvh - 18px) !important;
  }

  .mpac-journal-options-popup.popup-options .popup-body,
  .mpac-journal-options-popup.popup-options .popup-inner-body,
  .mpac-journal-options-popup.popup-options iframe {
    height: 100% !important;
  }
}


/* v4.6 - dedicated category OPTIONS popup (not cart popup) */
html.mpac-options-lock,
html.mpac-options-lock body {
  overflow: hidden !important;
}

.mpac-category-options {
  position: fixed;
  inset: 0;
  z-index: 2147482500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.mpac-category-options-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(36, 30, 31, .58);
  backdrop-filter: blur(4px);
}

.mpac-category-options-dialog {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: min(920px, calc(100vw - 34px));
  max-height: calc(100dvh - 44px);
  overflow: hidden;
  background: #fff;
  border: 1px solid #ecd5ce;
  border-radius: 20px;
  box-shadow: 0 28px 80px rgba(35, 28, 28, .30);
}

.mpac-category-options-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  min-height: 68px;
  padding: 10px 14px 10px 16px;
  background: linear-gradient(135deg, #fff8f5, #f8d8cf);
  border-bottom: 1px solid #ebccc4;
}

.mpac-category-options-heading {
  display: flex;
  align-items: center;
  gap: 11px;
}

.mpac-category-options-heading small {
  display: block;
  margin-bottom: 2px;
  color: #aa7a6f;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .8px;
}

.mpac-category-options-heading strong {
  display: block;
  color: #5c4540;
  font-size: 17px;
  line-height: 1.15;
}

.mpac-category-options-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #ebc9c0;
  border-radius: 12px;
  background: rgba(255,255,255,.82);
  color: #b66c59;
  font-size: 16px;
}

.mpac-category-options-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  padding: 0;
  border: 1px solid #e9cfc8;
  border-radius: 11px;
  background: rgba(255,255,255,.86);
  color: #9f5e53;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

.mpac-category-options-frame {
  display: block;
  width: 100%;
  min-height: 480px;
  flex: 1 1 auto;
  border: 0;
  background: #fff;
}

.mpac-category-options-loading {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translate(-50%, -50%);
  padding: 10px 14px;
  border-radius: 11px;
  background: rgba(255,255,255,.94);
  color: #715b56;
  box-shadow: 0 6px 22px rgba(60,44,40,.12);
}

@media (max-width: 700px) {
  .mpac-category-options {
    align-items: flex-start;
    padding: 6px;
  }

  .mpac-category-options-dialog {
    width: 100%;
    height: calc(100dvh - 12px);
    max-height: calc(100dvh - 12px);
    border-radius: 16px;
  }

  .mpac-category-options-header {
    min-height: 54px;
    padding: 7px 8px 7px 10px;
  }

  .mpac-category-options-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    font-size: 13px;
  }

  .mpac-category-options-heading {
    gap: 7px;
  }

  .mpac-category-options-heading small {
    font-size: 7px;
  }

  .mpac-category-options-heading strong {
    font-size: 13px;
  }

  .mpac-category-options-close {
    width: 29px;
    height: 29px;
    border-radius: 9px;
    font-size: 19px;
  }

  .mpac-category-options-frame {
    min-height: 0;
    height: 100% !important;
  }
}


/* v5.1 fallback shell for the REAL APC option_popup.tpl */
.mpac-apc-options-shell {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.mpac-apc-options-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 25, 25, .62);
}

.mpac-apc-options-content {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 12px;
}

@media (max-width: 700px) {
  .mpac-apc-options-shell {
    align-items: flex-start;
    padding: 6px;
  }

  .mpac-apc-options-content {
    width: 100%;
    max-height: calc(100dvh - 12px);
    border-radius: 12px;
    padding: 8px;
  }

  #advanced_popup_cart_options {
    width: 100% !important;
    max-width: none !important;
  }
}
