/*
Theme Name: ZENTOR Emerald Enhanced — Preview
Template: zentor-emerald
Version: 0.1.0
Description: Обратимые улучшения оформления для ZENTOR Emerald Industrial 1.2.0. Черновик для проверки.
Text Domain: zentor-emerald-enhanced
*/
:root{--ze-accent:#74e5a9;--ze-panel:#10261c;--ze-stroke:rgba(133,224,169,.23)}
body.zentor-emerald{overflow-x:clip}
body.zentor-emerald :is(.zt-product-card,.woocommerce ul.products li.product){box-shadow:0 8px 25px rgba(0,0,0,.15);border:1px solid var(--ze-stroke);border-radius:18px;transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease}
@media(hover:hover){body.zentor-emerald :is(.zt-product-card,.woocommerce ul.products li.product):hover{transform:translateY(-3px);border-color:rgba(116,229,169,.65);box-shadow:0 17px 35px rgba(0,0,0,.24)}}
body.zentor-emerald .zt-product-card__image{position:relative;isolation:isolate}
body.zentor-emerald .zt-product-card__image::after{content:'ZENTOR';position:absolute;right:12px;bottom:12px;z-index:2;pointer-events:none;color:#eafff3;background:rgba(8,36,24,.84);border:1px solid rgba(129,236,178,.35);padding:5px 9px;border-radius:6px;font-size:10px;line-height:1.3;font-weight:800;letter-spacing:.1em}
body.zentor-emerald .zt-product-card__image img{max-width:100%;object-fit:contain}
body.zentor-emerald .zt-product-card__body{background:linear-gradient(145deg,#132b20,#0d2119)}
body.zentor-emerald :is(.zt-product-card h3,.woocommerce ul.products li.product h2){color:#f3fff8}
body.zentor-emerald :is(.zt-product-card__price,.woocommerce ul.products li.product .price){color:#b7fbd1}
body.zentor-emerald :is(.zt-product-card__arrow,.woocommerce ul.products li.product .button){transition:background-color .2s ease,transform .2s ease,border-color .2s ease}
@media(hover:hover){body.zentor-emerald :is(.zt-product-card__arrow,.woocommerce ul.products li.product .button):hover{transform:translateY(-2px);border-color:var(--ze-accent)}}
body.zentor-emerald :is(.search-form input,.woocommerce-product-search input[type=search]){border:1px solid #66b98a;border-radius:11px;min-height:48px;background:#0b2419;color:#fff;box-shadow:0 0 0 3px rgba(116,229,169,.07)}
body.zentor-emerald :is(.search-form input,.woocommerce-product-search input[type=search])::placeholder{color:#bdd7c6}
body.zentor-emerald :is(a,button,input,textarea,select):focus-visible{outline:3px solid #8ef5bd;outline-offset:3px}
body.zentor-emerald .zt-floating-cart{right:max(18px,env(safe-area-inset-right));bottom:calc(24px + env(safe-area-inset-bottom));z-index:8900}
.ze-top{position:fixed;right:28px;bottom:calc(105px + env(safe-area-inset-bottom));z-index:8800;width:44px;height:44px;border:1px solid #7bdfaa;border-radius:14px;background:#133827;color:#eafff1;box-shadow:0 8px 25px #0006;cursor:pointer;opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .2s,transform .2s,visibility .2s}
.ze-top.is-visible{opacity:1;visibility:visible;transform:none}
.ze-top:hover{background:#24583c}
.ze-benefits{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0;padding:0;list-style:none}
.ze-benefits li{border:1px solid var(--ze-stroke);background:#132b20;color:#dcf9e7;border-radius:9px;padding:9px 12px;font-size:13px;line-height:1.45}
.ze-product-cta{display:inline-flex;align-items:center;justify-content:center;margin:12px 0;padding:13px 18px;border-radius:10px;background:#72e6a8;color:#09291b!important;font-weight:800;text-decoration:none}
.ze-product-cta:hover{background:#a0f4c3}
/* The existing hint is moved only after its element is explicitly verified. */
.ze-left-hint{position:fixed!important;left:clamp(12px,2vw,26px)!important;right:auto!important;bottom:calc(22px + env(safe-area-inset-bottom))!important;z-index:8750!important;max-width:min(290px,calc(100vw - 105px));animation:ze-hint-in .35s ease-out both}
@keyframes ze-hint-in{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
.ze-hint-dismiss{position:absolute;top:4px;right:4px;width:25px;height:25px;border:0;border-radius:50%;background:#173b2a;color:#fff;cursor:pointer}
@media(max-width:720px){body.zentor-emerald .zt-floating-cart{right:14px;bottom:calc(18px + env(safe-area-inset-bottom))}.ze-top{right:21px;bottom:calc(89px + env(safe-area-inset-bottom))}.ze-left-hint{max-width:min(230px,calc(100vw - 100px));font-size:12px}body.zentor-emerald .zt-product-card__body{padding:16px}body.zentor-emerald .zt-product-card h3{font-size:15px;line-height:1.45}body.zentor-emerald :is(.zt-button,.woocommerce a.button,.woocommerce button.button){min-height:44px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* ZENTOR — оформление старого мобильного меню */

@media (max-width: 1024px) {
  body .ob54-menu-panel {
    background: #071a13 !important;
    color: #f0fff6 !important;
    width: min(360px, 100vw) !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    box-shadow: 12px 0 45px rgba(0,0,0,.45) !important;
  }

  body .ob54-menu-header {
    border-bottom: 1px solid rgba(116,229,169,.20) !important;
  }

  body .ob54-menu-logo {
    background: linear-gradient(135deg,#143b2b,#329d70) !important;
    color: #ffffff !important;
    border: 1px solid #64dba0 !important;
    border-radius: 14px !important;
    font-size: 0 !important;
  }

  body .ob54-menu-logo::after {
    content: "Z";
    font-size: 30px;
    font-weight: 900;
    color: #a2f5c6;
  }

  body .ob54-menu-brand-text strong {
    font-size: 0 !important;
  }

  body .ob54-menu-brand-text strong::after {
    content: "ZENTOR";
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .12em;
    color: #ffffff;
  }

  body .ob54-menu-brand-text span {
    font-size: 0 !important;
  }

  body .ob54-menu-brand-text span::after {
    content: "Маркираторы и расходные материалы";
    display: block;
    font-size: 10px;
    line-height: 1.5;
    color: #a2cdb4;
  }

  body .ob54-menu-links a {
    color: #edfff5 !important;
    border-color: rgba(116,229,169,.18) !important;
    font-weight: 600;
  }

  body .ob54-menu-links a:hover,
  body .ob54-menu-links a:focus-visible {
    color: #8ff0bb !important;
    background: #123827 !important;
  }

  body .ob54-menu-cta {
    background: linear-gradient(120deg,#86efb6,#36a878) !important;
    color: #062519 !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 25px rgba(27,141,89,.22) !important;
    font-weight: 800 !important;
  }

  body .ob54-menu-close {
    color: #eafff2 !important;
    background: #17382a !important;
    border-radius: 50% !important;
  }
}
