/* Yadak Matin shell — unified header/footer, v0.5.0. */
.ym-site-header {
    position: relative;
    z-index: 1000;
    width: 100%;
    border-bottom: 1px solid #edf1f4;
    background: rgba(255,255,255,.96);
    box-shadow: 0 4px 24px rgba(16,21,27,.025);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.ym-site-header::before { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--ym-primary), var(--ym-secondary)); }
.ym-site-header.is-sticky { position: sticky; top: 0; }
.admin-bar .ym-site-header.is-sticky { top: 32px; }

.ym-header-inner { min-height: 74px; display: grid; grid-template-columns: minmax(112px, 150px) minmax(0, 1fr) auto; align-items: center; gap: 22px; }
.ym-site-brand { display: flex; align-items: center; min-width: 0; }
.ym-site-logo-link,
.ym-site-brand .custom-logo-link { display: inline-flex; align-items: center; justify-content: flex-start; min-width: 90px; min-height: 36px; text-decoration: none; }
.ym-site-logo,
.ym-site-brand .custom-logo { display: block; width: 132px; height: 42px; max-width: 100%; object-fit: contain; object-position: center right; }
.ym-site-logo--mobile { display: none; }
.ym-site-brand__text { text-decoration: none; color: var(--ym-secondary); font-size: 18px; font-weight: 900; }

.ym-primary-nav { min-width: 0; }
.ym-primary-nav ul { list-style: none; margin: 0; padding: 0; }
.ym-primary-nav > div > ul,
.ym-primary-nav > ul { display: flex; align-items: center; justify-content: center; gap: 8px; }
.ym-primary-nav li { position: relative; margin: 0; }
.ym-primary-nav a { position: relative; min-height: 38px; display: flex; align-items: center; padding: 0 10px; border-radius: 10px; color: var(--ym-ink); text-decoration: none; font-size: 12.5px; line-height: 1.55; font-weight: 700; white-space: nowrap; transition: color .18s ease, background .18s ease; }
.ym-primary-nav a:hover,
.ym-primary-nav .current-menu-item > a,
.ym-primary-nav .current_page_item > a { background: rgba(var(--ym-primary-rgb), .09); color: var(--ym-secondary); }
.ym-primary-nav > ul > li > a::after,
.ym-primary-nav > div > ul > li > a::after { content: ""; position: absolute; right: 11px; bottom: 5px; width: 14px; height: 2px; border-radius: 999px; background: var(--ym-primary); opacity: 0; transform: translateY(2px); transition: opacity .18s ease, transform .18s ease; }
.ym-primary-nav > ul > li > a:hover::after,
.ym-primary-nav > div > ul > li > a:hover::after,
.ym-primary-nav .current-menu-item > a::after,
.ym-primary-nav .current_page_item > a::after { opacity: 1; transform: translateY(0); }
.ym-primary-nav .sub-menu { position: absolute; top: calc(100% + 7px); right: 0; z-index: 20; display: none; min-width: 220px; padding: 8px; border: 1px solid #e2e8ed; border-radius: 14px; background: #fff; box-shadow: 0 18px 44px rgba(16,21,27,.10); }
.ym-primary-nav li:hover > .sub-menu,
.ym-primary-nav li:focus-within > .sub-menu { display: block; }
.ym-primary-nav .sub-menu a { min-height: 38px; padding: 0 10px; font-size: 12px; }
.ym-primary-nav .sub-menu a::after { display: none; }

.ym-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; direction: ltr; }
.ym-header-phone { height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 13px; border: 1px solid rgba(var(--ym-secondary-rgb), .08); border-radius: 11px; background: var(--ym-secondary); color: #fff; text-decoration: none; font-size: 12px; font-weight: 700; direction: ltr; box-shadow: 0 7px 18px rgba(var(--ym-secondary-rgb), .13); transition: transform .18s ease, filter .18s ease; }
.ym-header-phone:hover { transform: translateY(-1px); filter: brightness(.95); color: #fff; }
.ym-header-phone svg { width: 16px; height: 16px; }
.ym-header-search-toggle,
.ym-mobile-toggle { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid rgba(var(--ym-primary-rgb), .16); border-radius: 11px; background: rgba(var(--ym-primary-rgb), .12); color: var(--ym-secondary); transition: background .18s ease, transform .18s ease; }
.ym-header-search-toggle:hover { background: rgba(var(--ym-primary-rgb), .2); transform: translateY(-1px); }
.ym-header-search-toggle svg,
.ym-mobile-toggle svg { width: 18px; height: 18px; }
.ym-mobile-toggle { display: none; background: var(--ym-secondary); border-color: var(--ym-secondary); color: #fff; }
.ym-mobile-toggle__open,.ym-mobile-toggle__close{width:18px;height:18px;place-items:center}.ym-mobile-toggle__open{display:grid}.ym-mobile-toggle__close { display: none; }
.ym-mobile-toggle[aria-expanded=true] .ym-mobile-toggle__open { display: none; }
.ym-mobile-toggle[aria-expanded=true] .ym-mobile-toggle__close { display: grid; }
.ym-mobile-toggle__open svg,.ym-mobile-toggle__close svg{width:18px;height:18px}

.ym-header-search { display: grid; grid-template-rows: 0fr; overflow: hidden; border-top: 0 solid #e5e9ec; background: #f7f9fb; transition: grid-template-rows .22s ease, border-width .22s ease; }
.ym-header-search > * { min-height: 0; }
.ym-header-search.is-open { grid-template-rows: 1fr; border-top-width: 1px; }
.ym-header-search__inner { padding-block: 0; transition: padding .22s ease; }
.ym-header-search.is-open .ym-header-search__inner { padding-block: 12px; }
.ym-header-search form { display: grid; grid-template-columns: minmax(0, 1fr) auto; max-width: 720px; margin-inline: auto; border: 1px solid #dfe6eb; border-radius: 13px; overflow: hidden; background: #fff; box-shadow: 0 8px 28px rgba(16,21,27,.045); }
.ym-header-search input { min-width: 0; height: 44px; padding: 0 14px; border: 0; border-radius: 0; background: #fff; color: var(--ym-ink); outline: none; }
.ym-header-search button { min-width: 88px; border: 0; border-radius: 0; background: var(--ym-primary); color: #fff; font-size: 12px; font-weight: 850; }
.ym-site-main { width: 100%; }

/* Footer: compact dark brand block, visually tied to the homepage. */
.ym-site-footer { padding: 12px 7px 7px; background: #fff; color: #fff; font-family: var(--ym-font); }
.ym-footer-wrap { position: relative; overflow: hidden; border-radius: var(--ym-radius-xl); background-color: var(--ym-secondary); background-image: linear-gradient(135deg, rgba(255,255,255,.035), rgba(0,0,0,.17)); }
.ym-footer-wrap::before { content: ""; position: absolute; top: -180px; left: -100px; width: 430px; height: 430px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--ym-primary-rgb), .24), transparent 67%); pointer-events: none; }
.ym-footer-wrap::after { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--ym-primary), rgba(255,255,255,.12), var(--ym-primary)); }
.ym-footer-main { position: relative; z-index: 1; display: grid; grid-template-columns: 1.35fr .72fr .82fr 1fr; gap: 42px; padding-block: 42px 34px; }
.ym-footer-column { min-width: 0; }
.ym-footer-logo { width: 130px; height: 44px; display: inline-flex; align-items: center; justify-content: flex-start; margin-bottom: 16px; padding: 5px 8px; border-radius: 11px; background: #fff; }
.ym-footer-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ym-footer-brand-name { display: block; margin-bottom: 12px; font-size: 18px; }
.ym-footer-title { position: relative; margin: 2px 0 15px; padding-bottom: 10px; color: #fff; font-size: 14px; line-height: 1.6; font-weight: 850; }
.ym-footer-title::after { content: ""; position: absolute; right: 0; bottom: 0; width: 24px; height: 2px; border-radius: 999px; background: var(--ym-primary); }
.ym-footer-about__eyebrow { display: block; margin: 0 0 7px; color: rgba(255,255,255,.92); font-size: 11px; font-weight: 850; }
.ym-footer-about p { max-width: 390px; margin: 0; color: rgba(255,255,255,.72); font-size: 12.5px; line-height: 2; }
.ym-footer-links,
.ym-footer-contact-list { list-style: none; margin: 0; padding: 0; }
.ym-footer-links { display: grid; gap: 5px; }
.ym-footer-links a { min-height: 29px; display: inline-flex; align-items: center; color: rgba(255,255,255,.78); text-decoration: none; font-size: 12px; transition: color .18s ease, transform .18s ease; }
.ym-footer-links a::before { content: ""; width: 5px; height: 5px; margin-left: 8px; border-radius: 50%; background: rgba(var(--ym-primary-rgb), .75); }
.ym-footer-links a:hover { color: #fff; transform: translateX(-2px); }
.ym-footer-contact-list { display: grid; gap: 9px; }
.ym-footer-contact-list li { min-height: 36px; display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.78); font-size: 12px; }
.ym-footer-contact-list__icon { width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 32px; border-radius: 9px; background: rgba(var(--ym-primary-rgb), .14); color: #fff; }
.ym-footer-contact-list svg { width: 16px; height: 16px; }
.ym-footer-contact-list a { color: inherit; text-decoration: none; }
.ym-footer-socials { display: flex; align-items: center; gap: 7px; margin-top: 16px; }
.ym-social { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; color: #fff; text-decoration: none; transition: transform .18s ease; }
.ym-social:hover { transform: translateY(-2px); }
.ym-social svg { width: 17px; height: 17px; }
.ym-social--telegram { background: rgba(7,154,213,.85); }
.ym-social--instagram { background: linear-gradient(135deg, #6a4bc4, #cf3e8f, #f05a3a); }
.ym-footer-bottom__inner { position: relative; z-index: 1; min-height: 48px; display: flex; align-items: center; justify-content: center; padding-block: 10px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.55); font-size: 10.5px; text-align: center; }

/* WooCommerce archive shell. */
.woocommerce .ym-content-area,
.woocommerce-page .ym-content-area { max-width: var(--ym-shell); margin-inline: auto; }
.woocommerce .woocommerce-breadcrumb { margin-bottom: 14px; color: var(--ym-muted); font-size: 10.5px; }
.woocommerce-products-header__title.page-title { margin: 0 0 18px; color: var(--ym-ink); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.45; font-weight: 900; }
.woocommerce div.product .product_title { font-family: var(--ym-font); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.45; }
.woocommerce div.product .woocommerce-tabs .panel > h2,
.woocommerce div.product .related.products > h2,
.woocommerce div.product .upsells.products > h2 { font-size: clamp(18px, 1.8vw, 23px); line-height: 1.5; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { font-size: 13px; }
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button { font-size: 12px; border-radius: var(--ym-radius-sm); }

@media (max-width: 1250px) {
    .ym-header-inner { gap: 14px; }
    .ym-primary-nav a { padding-inline: 8px; font-size: 12px; }
    .ym-footer-main { gap: 28px; }
}
@media (max-width: 1024px) {
    .ym-header-inner { min-height: 68px; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
    .ym-site-brand { grid-column: 1; grid-row: 1; }
    .ym-header-actions { grid-column: 2; grid-row: 1; }
    .ym-primary-nav { position: absolute; top: calc(100% + 1px); right: 10px; left: 10px; display: none; overflow: hidden; border: 1px solid #e2e8ed; border-radius: 0 0 16px 16px; background: #fff; box-shadow: 0 18px 38px rgba(16,21,27,.09); }
    .ym-primary-nav.is-open { display: block; }
    .ym-primary-nav > div > ul,
    .ym-primary-nav > ul { display: block; width: min(calc(100% - 28px), var(--ym-shell)); margin-inline: auto; padding: 8px 0 12px; }
    .ym-primary-nav a { min-height: 42px; padding-inline: 10px; font-size: 12.5px; }
    .ym-primary-nav > ul > li > a::after,
    .ym-primary-nav > div > ul > li > a::after { display: none; }
    .ym-primary-nav .sub-menu { position: static; display: block; min-width: 0; padding: 0 14px 5px 0; border: 0; box-shadow: none; }
    .ym-mobile-toggle { display: inline-flex; }
    .ym-site-logo,
    .ym-site-brand .custom-logo { width: 125px; height: 40px; }
    .ym-footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 50px; padding-block: 36px 30px; }
}
@media (max-width: 782px) { .admin-bar .ym-site-header.is-sticky { top: 46px; } }
@media (max-width: 640px) {
    .ym-site-header.is-sticky { top: 0; }
    .admin-bar .ym-site-header.is-sticky { top: 46px; }
    .ym-header-inner { min-height: 60px; }
    .ym-site-logo--desktop { display: none !important; }
    .ym-site-logo--mobile { display: block !important; width: 104px; height: 34px; max-width: 104px; max-height: 34px; object-fit: contain; object-position: center right; }
    .ym-site-logo-link { min-width: 82px; min-height: 32px; }
    .ym-header-actions { gap: 5px; }
    .ym-header-phone { width: 38px; height: 38px; padding: 0; }
    .ym-header-phone__number { display: none; }
    .ym-header-phone svg { width: 17px; height: 17px; }
    .ym-header-search-toggle,
    .ym-mobile-toggle { width: 38px; height: 38px; }
    .ym-header-search form { grid-template-columns: minmax(0, 1fr) 74px; }
    .ym-header-search button { min-width: 0; }
    .ym-site-footer { padding: 9px 5px 5px; }
    .ym-footer-wrap { border-radius: 18px; }
    .ym-footer-main { grid-template-columns: 1fr; gap: 0; padding-block: 24px 10px; }
    .ym-footer-column { padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
    .ym-footer-column:last-child { border-bottom: 0; }
    .ym-footer-logo { width: 116px; height: 40px; margin-bottom: 12px; }
    .ym-footer-title { margin-bottom: 11px; font-size: 13.5px; }
    .ym-footer-about p,
    .ym-footer-links a,
    .ym-footer-contact-list li { font-size: 11.5px; }
    .ym-footer-bottom__inner { min-height: 44px; font-size: 10px; }
    .woocommerce div.product .product_title { font-size: 21px; }
}

/* Native editorial page primitives. */
.ym-page-eyebrow{display:inline-flex;align-items:center;gap:8px;margin-bottom:12px;color:var(--ym-primary);font-size:11px;font-weight:900;letter-spacing:.01em}.ym-page-eyebrow::before{content:"";width:22px;height:2px;border-radius:999px;background:currentColor}.ym-page-button{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:0 17px;border:1px solid transparent;border-radius:12px;text-decoration:none;font-size:12.5px;font-weight:900;transition:transform .18s ease,box-shadow .18s ease,background .18s ease}.ym-page-button:hover{transform:translateY(-2px)}.ym-page-button--primary{background:var(--ym-primary);color:#fff;box-shadow:0 10px 24px rgba(var(--ym-primary-rgb),.2)}.ym-page-button--secondary{border-color:rgba(var(--ym-secondary-rgb),.14);background:#fff;color:var(--ym-secondary)}.ym-page-button--light{background:#fff;color:var(--ym-secondary)}.ym-section-index{display:inline-flex;align-items:center;justify-content:center;min-width:31px;height:24px;padding:0 8px;border-radius:8px;background:rgba(var(--ym-primary-rgb),.1);color:var(--ym-primary);font-size:10px;font-weight:900;direction:ltr}


/* v0.8.0 — AJAX header product search */
.ym-header-search__inner form{position:relative}
.ym-live-search{position:absolute;z-index:120;top:calc(100% + 8px);right:0;left:0;display:none;max-height:min(440px,65vh);overflow:auto;padding:7px;border:1px solid #e2e7eb;border-radius:14px;background:#fff;box-shadow:0 18px 50px rgba(19,35,50,.16)}
.ym-live-search.is-open{display:block}
.ym-live-search__item{min-height:66px;display:grid;grid-template-columns:52px minmax(0,1fr) 36px;align-items:center;gap:10px;padding:7px;border-radius:10px;color:var(--ym-secondary);text-decoration:none;transition:.15s ease}
.ym-live-search__item:hover{background:rgba(var(--ym-primary-rgb),.08)}
.ym-live-search__image{width:52px;height:52px;display:grid;place-items:center;overflow:hidden;border:1px solid #eef1f3;border-radius:9px;background:#fafcfd}
.ym-live-search__image img{width:100%;height:100%;object-fit:contain}
.ym-live-search__content{min-width:0}.ym-live-search__content strong{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:11px;font-weight:850}.ym-live-search__content small{display:block;margin-top:4px;color:#8b969f;font-size:9px}.ym-live-search__brand{width:34px;height:34px;display:grid;place-items:center;padding:5px;border:1px solid #edf0f2;border-radius:8px;background:#fff}.ym-live-search__brand img{max-width:100%;max-height:100%;object-fit:contain}.ym-live-search__status,.ym-live-search__empty{padding:18px;text-align:center;color:#8a949c;font-size:10px}.ym-live-search.is-loading{cursor:progress}
@media(max-width:640px){.ym-live-search{top:calc(100% + 6px);max-height:58vh}.ym-live-search__item{grid-template-columns:48px minmax(0,1fr) 30px}.ym-live-search__image{width:48px;height:48px}.ym-live-search__brand{width:30px;height:30px}}
.ym-header-search__inner form{overflow:visible}
.ym-header-search__inner form>input[type="search"]{border-radius:0 13px 13px 0}
.ym-header-search__inner form>button[type="submit"]{border-radius:13px 0 0 13px}


/* v0.9.0 — live search must float above page content, never be clipped by the expandable header row. */
.ym-site-header,.ym-header-search.is-open{overflow:visible}.ym-header-search{position:relative;z-index:40}.ym-header-search__inner{position:relative;z-index:45}.ym-header-search__inner form{z-index:50}.ym-live-search{z-index:6000;top:calc(100% + 10px);padding:8px;border:1px solid rgba(var(--ym-secondary-rgb),.16);border-top:3px solid var(--ym-primary);background:#fff;box-shadow:0 22px 60px rgba(13,30,45,.22)}.ym-live-search::after{content:"";position:absolute;right:18px;top:-8px;width:12px;height:12px;border-top:1px solid rgba(var(--ym-secondary-rgb),.16);border-right:1px solid rgba(var(--ym-secondary-rgb),.16);background:#fff;transform:rotate(-45deg)}.ym-live-search__item{position:relative;z-index:1;border-bottom:1px solid #f0f2f4}.ym-live-search__item:last-child{border-bottom:0}.ym-live-search__content strong{font-size:12px}.ym-live-search__content small{font-size:10px}.ym-live-search__empty,.ym-live-search__status{background:#fff}.ym-header-search.is-open{box-shadow:0 14px 32px rgba(16,21,27,.035)}
@media(max-width:640px){.ym-live-search{right:-5px;left:-5px;max-height:60vh}}
.ym-live-search__all{position:sticky;bottom:-7px;z-index:3;min-height:44px;display:flex;align-items:center;justify-content:center;gap:8px;margin-top:6px;border-radius:10px;background:var(--ym-secondary);color:#fff!important;text-decoration:none;font-size:11px;font-weight:850}.ym-live-search__all span{width:17px;height:17px;display:grid;place-items:center}.ym-live-search__all svg{width:17px;height:17px}.ym-live-search__all:hover{background:var(--ym-primary);color:#fff!important}


/* v1.1.0 — live search keyboard focus */
.ym-live-search__item.is-keyboard-active{background:rgba(var(--ym-primary-rgb),.11);outline:2px solid rgba(var(--ym-primary-rgb),.24);outline-offset:-2px}.ym-live-search__all.is-keyboard-active{background:var(--ym-primary);box-shadow:0 0 0 3px rgba(var(--ym-primary-rgb),.16)}
