/* ==========================================================================
   My Open Pixel v2.5 – fixes & additions (account layout, auth, verification, wishlist,
   header, category dropdown + grid, footer modes, checkout, mobile safety)
   ========================================================================== */

/* ---------- never scroll sideways ---------- */
html,body{max-width:100%}
body{overflow-x:clip}
img,svg,video{max-width:100%}

/* ---------- header: smaller logo, nav never wraps ---------- */
.mop-header .mop-logo img,.mop-header .mop-logo.is-brand img{height:38px;width:auto;max-width:none}
.mop-header .mop-container{gap:18px}
body .mop-nav a{white-space:nowrap;font-size:16.5px;font-weight:600;padding:10px 15px}
.mop-nav .mop-menu{gap:2px;flex-wrap:nowrap}
@media (max-width:767px){.mop-header .mop-logo img,.mop-header .mop-logo.is-brand img{height:32px}}
@media (min-width:768px) and (max-width:1100px){body .mop-nav a{font-size:15.5px;padding:9px 10px}.mop-header .mop-container{gap:10px}}

/* ---------- category dropdown: closed until clicked ---------- */
body .mop-nav .menu-item-has-children:hover>.sub-menu,body .mop-nav .menu-item-has-children:focus-within>.sub-menu{display:none}
body .mop-nav .menu-item-has-children.is-open>.sub-menu{display:block}
.mop-nav .menu-item-has-children>a{cursor:pointer}
.mop-nav .menu-item-has-children.is-open>a svg,.mop-nav .menu-item-has-children.is-open>a:after{transform:rotate(180deg)}
.mop-nav .sub-menu .mop-dyn-all a{font-weight:800;color:var(--g-600)}
.mop-drawer-menu .menu-item-has-children>.sub-menu{display:none}
.mop-drawer-menu .menu-item-has-children.is-open>.sub-menu{display:block}

/* ---------- categories page: compact icon cards ---------- */
.mop-catgrid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(150px,1fr))!important;gap:14px!important}
.mop-catgrid>*{min-width:0}
.mop-catgrid .mop-cat,.mop-catgrid a{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center;gap:10px;text-align:center;padding:18px 10px!important;background:#fff;border:1px solid #e3eee7;border-radius:18px;box-shadow:0 6px 18px rgba(10,58,40,.06);font-weight:700;font-size:14px;line-height:1.35;height:auto!important;transition:transform .15s,border-color .15s}
.mop-catgrid .mop-cat:hover,.mop-catgrid a:hover{transform:translateY(-3px);border-color:#4be08f}
.mop-catgrid img{width:56px!important;height:56px!important;object-fit:cover;border-radius:14px}
.mop-catgrid .mop-cat span,.mop-catgrid a span{display:block;max-width:100%;overflow-wrap:anywhere}

/* ---------- wishlist heart on product cards: small round button, never over text/prices ---------- */
.mop-card{position:relative}
body .mop-card .mop-wish.mopc{position:absolute!important;top:10px!important;right:10px!important;left:auto!important;bottom:auto!important;width:34px!important;height:34px!important;min-width:0!important;min-height:0!important;max-width:34px!important;max-height:34px!important;padding:0!important;margin:0!important;border-radius:50%!important;background:rgba(255,255,255,.95)!important;box-shadow:0 3px 10px rgba(6,35,26,.22)!important;display:grid!important;place-items:center;z-index:4;flex:none;align-self:auto!important}
body .mop-card .mop-wish.mopc svg{width:18px!important;height:18px!important}

/* ---------- footer modes ---------- */
body.mop-min-footer .mop-trust,body.mop-min-footer .mop-sub-band,body.mop-min-footer .mop-fgrid,body.mop-min-footer .mop-pay,
body.mop-pay-footer .mop-trust,body.mop-pay-footer .mop-sub-band,body.mop-pay-footer .mop-fgrid{display:none!important}
body.mop-min-footer .mop-footer,body.mop-pay-footer .mop-footer{margin-top:40px}
body.mop-min-footer .mop-footer .mop-container,body.mop-pay-footer .mop-footer .mop-container{padding-top:6px}

/* ---------- verified badge ---------- */
.mop-vbadge{display:inline-grid;place-items:center;width:20px;height:20px;vertical-align:middle;margin-left:4px}
.mop-vbadge svg{width:20px;height:20px;fill:#1fa463;stroke:none}
.mop-vbadge svg path{fill:none;stroke:#fff;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.mop-vdot{position:absolute;right:-1px;bottom:-1px;width:14px;height:14px;border-radius:50%;background:#1fa463;border:2px solid #fff}
.mop-pbtn{position:relative}
.mop-unver{display:inline-block;margin:0 0 10px;padding:4px 12px;border-radius:99px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.3);font-size:12.5px;font-weight:700}
body .mop-dash-hero .mop-unver{color:#ffd9a0!important}

/* ---------- account page layout (fixes nav/content landing in the wrong columns) ---------- */
body.woocommerce-account.logged-in .woocommerce{display:grid;grid-template-columns:280px minmax(0,1fr);gap:22px;align-items:start}
body.woocommerce-account.logged-in .woocommerce>*{grid-column:1/-1;grid-row:3}
body.woocommerce-account.logged-in .woocommerce>.woocommerce-notices-wrapper,body.woocommerce-account.logged-in .woocommerce>.woocommerce-message,body.woocommerce-account.logged-in .woocommerce>.woocommerce-error{grid-column:1/-1;grid-row:1}
body.woocommerce-account.logged-in .woocommerce>.woocommerce-MyAccount-navigation{grid-column:1;grid-row:2;float:none;width:auto}
body.woocommerce-account.logged-in .woocommerce>.woocommerce-MyAccount-content{grid-column:2;grid-row:2;float:none;width:auto;min-width:0}
@media (max-width:767px){
  body.woocommerce-account.logged-in .woocommerce{grid-template-columns:minmax(0,1fr)}
  body.woocommerce-account.logged-in .woocommerce>.woocommerce-MyAccount-navigation,body.woocommerce-account.logged-in .woocommerce>.woocommerce-MyAccount-content{grid-column:1}
  body.woocommerce-account.logged-in .woocommerce>.woocommerce-MyAccount-content{grid-row:3}
  .woocommerce-account .woocommerce-MyAccount-navigation.mop-acnav{position:static}
  .woocommerce-account .mop-acnav ul{display:flex;overflow-x:auto;gap:8px;padding-bottom:4px;scrollbar-width:none}
  .woocommerce-account .mop-acnav li{flex:none;margin:0}
  .woocommerce-account .mop-acnav li a{padding:10px 14px;background:var(--mint-2);white-space:nowrap}
  .mop-acuser{display:none}
}
.mop-acpanel h3{margin:0 0 10px}
.mop-vstate{display:inline-flex;align-items:center;gap:6px;padding:8px 16px;border-radius:99px;font-weight:700;margin:6px 0 18px}
.mop-vstate.ok{background:#e6f7ee;color:#0b6b3f}.mop-vstate.no{background:#fff3d6;color:#8a5a00}
.mop-vgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.mop-vcard{border:1px solid #e3eee7;border-radius:18px;padding:18px;background:linear-gradient(#fff,var(--mint))}
.mop-vcard .hd{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.mop-vcard .st{font-size:12px;font-weight:800;padding:3px 11px;border-radius:99px}
.mop-vcard .st.ok{background:#dff6e8;color:#0b6b3f}.mop-vcard .st.no{background:#fde4e4;color:#a11a1a}
.mop-vcard .val{margin:0 0 10px;font-weight:700}
.mop-vform,.mop-vcode{display:flex;gap:8px;margin-top:8px}
.mop-vform input,.mop-vcode input,.mop-walletform input,.mop-walletform select{flex:1;min-width:0;padding:11px 14px;border:1.5px solid #dbe9e0;border-radius:12px;font:inherit;background:#fff}
.mop-vcode[hidden]{display:none}
.mop-wallets{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px;margin:14px 0}
.mop-wallet{position:relative;border:1px solid #e3eee7;border-radius:16px;padding:14px 38px 14px 14px;background:#fff;display:flex;flex-direction:column;gap:2px}
.mop-wallet .pv{font-size:12px;font-weight:800;color:var(--g-600);text-transform:uppercase;letter-spacing:.5px}
.mop-wallet small{color:var(--muted)}
.mop-wallet .del{position:absolute;right:8px;top:8px;width:26px;height:26px;border-radius:50%;border:0;background:#fdecec;color:#c62828;cursor:pointer}
.mop-walletform .r3{display:grid;grid-template-columns:140px 1fr 1fr;gap:10px;margin-bottom:12px}
.mop-setgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.mop-setcard{display:flex;flex-direction:column;gap:3px;padding:16px;border:1px solid #e3eee7;border-radius:16px;background:#fff;transition:border-color .15s,transform .15s}
.mop-setcard:hover{border-color:#4be08f;transform:translateY(-2px)}
.mop-setcard b{color:#0f2b20}.mop-setcard span{color:var(--muted);font-size:13px}
.mop-setfoot{display:flex;justify-content:space-between;align-items:center;margin-top:22px;padding-top:14px;border-top:1px dashed #d6e6dc}
body .mop-logout-sm{font-size:13px;font-weight:600;color:#c62828!important}
@media (max-width:600px){.mop-vgrid,.mop-setgrid{grid-template-columns:1fr}.mop-walletform .r3{grid-template-columns:1fr}.mop-vform,.mop-vcode{flex-direction:column}}

/* ---------- sign-up / OTP forms ---------- */
.mop-method{display:grid;grid-template-columns:1fr 1fr;gap:6px;background:var(--mint-2);padding:5px;border-radius:99px;margin:0 0 16px}
.mop-method button{border:0;background:transparent;padding:10px 8px;border-radius:99px;font:700 14px var(--font);color:#2c4a3c;cursor:pointer}
.mop-method button.on{background:#fff;color:var(--g-700);box-shadow:0 4px 12px rgba(10,58,40,.12)}
.mop-regform[hidden],.mop-otpform[hidden],.mop-otpbox[hidden]{display:none}
.mop-otpbox{margin-top:12px}
.mop-form .hp{position:absolute!important;left:-9999px!important}
.mop-form-msg{min-height:20px;margin:10px 0 0;font-size:14px;font-weight:700}
.mop-form-msg.ok{color:#0b6b3f}.mop-form-msg.err{color:#c62828}
.mop-btn.ghost-g{background:#fff;border:2px solid var(--g-600);box-shadow:none;margin:10px 0 0;width:100%}
body .mop-btn.ghost-g{color:var(--g-700)!important}
.mop-btn.is-busy{opacity:.65;pointer-events:none}
.mop-otplogin{margin-top:14px;text-align:center}
.mop-linkbtn{background:none;border:0;color:var(--g-600);font-weight:700;cursor:pointer;text-decoration:underline;font-size:14.5px}
.mop-otplogin .mop-otpform{text-align:left;margin-top:12px}

/* ---------- checkout line items with product image ---------- */
.mop-ck-item{display:flex;align-items:center;gap:12px}
.mop-ck-item img{width:56px;height:56px;border-radius:12px;object-fit:cover;flex:none;border:1px solid #e3eee7}
.mop-ck-item .nm{font-weight:700;line-height:1.4}
.mop-walletpick{width:100%;margin:0 0 8px;padding:11px 14px;border:1.5px solid #dbe9e0;border-radius:12px;background:#fff;font:inherit}
.mop-noprod{padding:46px 16px}

/* ---------- floating chat must not sit on the sticky buy bar ---------- */
@media (max-width:767px){body.single-product .mop-chat{bottom:calc(150px + env(safe-area-inset-bottom))}}


/* ==========================================================================
   v2.6 – final polish
   ========================================================================== */

/* ---------- footer always at the bottom, no white strip under it ---------- */
body{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
body>main,body>article.mop-single,body>.mop-dpage{flex:1 0 auto;width:100%}
body>.mop-marquee,body>.mop-header,body>.mop-trust,body>.mop-footer{flex:none}
@media (max-width:767px){
  body{padding-bottom:0}
  body.mop-single-product{padding-bottom:0}
  .mop-footer{padding-bottom:calc(72px + env(safe-area-inset-bottom))}
  body.mop-single-product .mop-footer{padding-bottom:calc(138px + env(safe-area-inset-bottom))}
  .e-con.mop-footer{padding-bottom:calc(72px + env(safe-area-inset-bottom))!important}
}

/* ---------- product images: 1:1 everywhere ---------- */
body .mop-card .th{aspect-ratio:1/1!important}
body .mop-card .th img{width:100%;height:100%;object-fit:cover}
.woocommerce-cart table.cart img,.woocommerce table.shop_table .product-thumbnail img{aspect-ratio:1/1;object-fit:cover}
.mop-pd-gallery .woocommerce-product-gallery{opacity:1!important}
.mop-pd-gallery .woocommerce-product-gallery__image{aspect-ratio:1/1;border-radius:16px;overflow:hidden;background:var(--mint-2)}
.mop-pd-gallery .woocommerce-product-gallery__image img{width:100%!important;height:100%!important;object-fit:cover;border-radius:0;pointer-events:none}
.woocommerce-product-gallery__trigger,.mop-pd-gallery .zoomImg,.mop-pd-gallery .flex-control-thumbs{display:none!important}
.mop-pd-gallery{cursor:default}

/* ---------- product page buy box (reference style): outlined Add to cart + dark Buy it now ---------- */
.mop-pd-buy .single_add_to_cart_button,.mop-pd-buy .mop-buynow{flex:1 1 100%;min-height:58px;border-radius:16px;font-size:17px;font-weight:700}
.mop-pd-buy .single_add_to_cart_button{background:#fff!important;color:#0d2a1f!important;border:1.5px solid #cdd9d2!important;box-shadow:none}
.mop-pd-buy .single_add_to_cart_button:hover{border-color:var(--g-500)!important;background:var(--mint)!important}
.mop-pd-buy .mop-buynow{background:var(--g-900)!important;color:#fff!important;border:1.5px solid var(--g-900)!important;box-shadow:0 10px 24px rgba(8,42,29,.28)}
.mop-pd-buy .mop-buynow:hover{background:var(--g-700)!important;border-color:var(--g-700)!important}
.mop-pd.mop-show-cart .mop-buynow,.mop-pd-buy.x{flex:1 1 100%}

/* ---------- account: bell + dashboard-icon menu ---------- */
.mop-dash-hero{overflow:visible!important}
.mop-dash-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-4px 0 14px;position:relative;z-index:6}
body .mop-dash-top small{margin:0;color:#4be08f!important;font:700 12px/1 'Poppins',var(--font);letter-spacing:2px;text-transform:uppercase}
.mop-dash-act{display:flex;align-items:center;gap:10px}
.mop-ab{position:relative;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.32);color:#fff;cursor:pointer;padding:0;transition:background .15s,transform .15s}
.mop-ab:hover{background:rgba(255,255,255,.26);transform:translateY(-1px)}
body .mop-dash-hero .mop-ab{color:#fff!important}
.mop-ab .ic{width:22px;height:22px;stroke:currentColor}
.mop-acmenu{position:relative}
.mop-acpop{position:absolute;right:0;top:calc(100% + 10px);width:270px;max-width:calc(100vw - 28px);max-height:70vh;overflow:auto;background:#fff;border:1px solid #e3eee7;border-radius:18px;box-shadow:0 24px 60px rgba(6,35,26,.28);padding:8px;display:none;z-index:60;text-align:left}
.mop-acmenu.open>.mop-acpop{display:block}
body .mop-acpop a{display:flex;align-items:center;gap:12px;padding:11px 12px;border-radius:12px;font-weight:600;font-size:14.5px;color:#17372a!important}
.mop-acpop a:hover{background:var(--mint-2)}
.mop-acpop a .ic{width:20px;height:20px;color:var(--g-500);stroke:currentColor}
.mop-acpop .sep{height:1px;background:var(--line);margin:6px 4px}
body .mop-acpop a.out{color:#d92d2d!important;font-size:13px;justify-content:center}
/* slim bar on inner account pages (phones/tablets) */
.mop-acbar{display:none}
@media (max-width:767px){
  body.woocommerce-account.logged-in .woocommerce>.mop-acbar{display:flex;grid-column:1/-1;grid-row:1;align-items:center;justify-content:space-between;padding:10px 14px;background:linear-gradient(120deg,#0e6b43,#0a3a28);border-radius:18px;color:#fff;box-shadow:0 10px 24px rgba(6,35,26,.2)}
  .mop-acbar b{font-size:16px;color:#fff}
  .woocommerce-account .woocommerce-MyAccount-navigation.mop-acnav{display:none}
  body.woocommerce-account.logged-in .woocommerce>.woocommerce-MyAccount-content{grid-row:2}
}
.mop-acbar .mop-ab{color:#fff}
@media (max-width:767px){body.woocommerce-account .mop-dash-hero{padding-top:20px}}

/* v2.7 – Turnstile spacing, no blank gap under short pages */
.mopc-ts{margin:12px 0 4px;min-height:0}
body .mop-page{min-height:0}
