/*
Theme Name: VELLOR
Description: WooCommerce block theme for VELLOR · hair formulas ANDRO (men) and TELO (women). Graphite / Forged Copper / Bone.
Version: 0.6.1
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: vellor
*/
.wp-block-site-title a{text-decoration:none}
.vl-mono{font-family:var(--wp--preset--font-family--mono);letter-spacing:.28em;text-transform:uppercase;font-size:12px;color:var(--wp--preset--color--steel)}
.wc-block-components-product-badge,.onsale{background:var(--wp--preset--color--copper)!important;color:var(--wp--preset--color--graphite)!important;border:0!important}
.wp-block-button__link,.wc-block-components-button,button.single_add_to_cart_button{min-height:48px;letter-spacing:.2em;text-transform:uppercase}
.wc-block-components-product-image img,.woocommerce-product-gallery img{background:#25292D}
.wc-block-cart,.wc-block-checkout{--wc-form-border-color:#33383D}
input,select,textarea{background:#25292D!important;color:#ECE8E1!important;border-color:#33383D!important}

/* ===== MOTION (medium, v0.3.0) — ported from design.html prototype 2026-11-30 =====
   Only transform/opacity animate (plus a one-off clip-path on the 18px logo).
   Content is never hidden unless JS has added html.vl-js; prefers-reduced-motion turns everything off. */
:root{--vl-ease:cubic-bezier(.2,.7,.2,1)}
.wp-block-navigation-item__content,.wp-block-site-title a,.wc-block-mini-cart__button{transition:color .2s,opacity .2s}
.wp-block-navigation-item__content:hover{color:var(--wp--preset--color--bone)}
.wp-block-button__link,.wc-block-components-button,button.single_add_to_cart_button,.wc-block-components-product-button__button{transition:transform .2s var(--vl-ease),filter .2s}
.wp-block-button__link:hover,.wc-block-components-button:hover,button.single_add_to_cart_button:hover,.wc-block-components-product-button__button:hover{transform:translateY(-2px);filter:brightness(1.08)}
.wp-block-button__link:active,.wc-block-components-button:active,button.single_add_to_cart_button:active{transform:none}
/* header shadow on scroll: pseudo-element fades in */
.vl-header{position:sticky}
.vl-header::after{content:"";position:absolute;left:0;right:0;top:100%;height:24px;background:linear-gradient(#0008,#0000);opacity:0;transition:opacity .3s;pointer-events:none}
.vl-header.is-scrolled::after{opacity:1}
/* hero: fade up once on load (pure CSS) */
@keyframes vlUp{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
.vl-hero .wp-block-cover__inner-container>*{animation:vlUp .7s var(--vl-ease) both}
.vl-hero .wp-block-cover__inner-container>*:nth-child(2){animation-delay:.08s}
.vl-hero .wp-block-cover__inner-container>*:nth-child(3){animation-delay:.16s}
.vl-hero .wp-block-cover__inner-container>*:nth-child(n+4){animation-delay:.24s}
/* logo "//": drawn upward once (the site logo is an <img>, so a clip reveal instead of per-stroke) */
@keyframes vlDraw{from{clip-path:inset(100% 0 0 0)}to{clip-path:inset(0)}}
.vl-header .wp-block-site-logo img{animation:vlDraw .7s var(--vl-ease) both}
/* reveal on scroll (classes added by assets/vellor-motion.js) */
html.vl-js .vl-reveal{opacity:0;transform:translateY(24px);transition:opacity .6s var(--vl-ease),transform .6s var(--vl-ease);transition-delay:calc(var(--vl-i,0)*70ms)}
html.vl-js .vl-reveal.is-in{opacity:1;transform:none}
/* product cards: lift + image zoom */
.wc-block-product,.wp-block-post-template>li{transition:transform .3s var(--vl-ease)}
.wc-block-product:hover,.wp-block-post-template>li:hover{transform:translateY(-3px)}
.wc-block-components-product-image{overflow:hidden}
.wc-block-components-product-image img{transition:transform .5s var(--vl-ease)}
.wc-block-product:hover .wc-block-components-product-image img,.wp-block-post-template>li:hover .wc-block-components-product-image img{transform:scale(1.06)}
/* mini-cart: WooCommerce's drawer already slides in; the badge bumps when an item is added */
@keyframes vlBump{50%{transform:scale(1.35)}}
.wc-block-mini-cart__badge.vl-bump{animation:vlBump .35s var(--vl-ease)}
/* ===== v0.4.0 — six ideas from SingleCelled / Whitelable (prototype: design.html, 2026-11-30) ===== */
@keyframes vlSwap{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.vl-swap{display:inline-block;animation:vlSwap .3s var(--vl-ease)}
/* 1 · fly-to-cart: the product photo flies to the mini-cart */
.vl-fly{position:fixed;left:0;top:0;z-index:100000;width:56px;height:56px;pointer-events:none;background:var(--wp--preset--color--graphite-2,#25292D) center/cover no-repeat;border:1px solid var(--wp--preset--color--copper);border-radius:4px;box-shadow:0 8px 20px #0008}
/* 2 · sticky add bar, phones only, shown when the main button is off screen */
.vl-sbar{position:fixed;left:0;right:0;bottom:0;z-index:50;display:none;align-items:center;gap:12px;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:rgba(37,41,45,.97);border-top:1px solid var(--wp--preset--color--line);transform:translateY(110%);visibility:hidden;transition:transform .3s var(--vl-ease),visibility 0s .3s}
.vl-sbar.is-on{transform:none;visibility:visible;transition:transform .3s var(--vl-ease),visibility 0s}
.vl-sbar b{display:block;font-family:var(--wp--preset--font-family--display);font-weight:400;font-size:13px;letter-spacing:.12em;text-transform:uppercase}
.vl-sbar .vl-mono{font-size:12px}
.vl-sbar button{margin-left:auto;min-height:44px;padding:12px 20px}
@media (max-width:900px){.single-product .vl-sbar{display:flex}.single-product footer{padding-bottom:72px}}
/* 3 · option cards: one copper frame slides to the chosen option; the <select> stays in the form for WooCommerce */
form.vl-has-opts table.variations{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
form.vl-has-opts .woocommerce-variation-price{display:none}
.vl-opts{position:relative;display:grid;gap:10px;margin:8px 0 22px}
.vl-opt{position:relative;z-index:1;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 18px;border:1px solid var(--wp--preset--color--line);cursor:pointer;transition:border-color .2s}
.vl-opt small{display:block;color:var(--wp--preset--color--steel);font-size:13px}
.vl-opt b{font-family:var(--wp--preset--font-family--mono);font-weight:500;letter-spacing:.08em}
.vl-opt:hover{border-color:var(--wp--preset--color--steel)}
.vl-opt.is-on{border-color:transparent}
.vl-opt:has(input:focus-visible){outline:2px solid var(--wp--preset--color--bone);outline-offset:2px}
.vl-opts .vl-hl{position:absolute;left:0;right:0;top:0;height:0;border:1px solid var(--wp--preset--color--copper);background:#c46a2b12;pointer-events:none}
.vl-opts .vl-hl.is-ready{transition:transform .3s var(--vl-ease)}
.vl-course{display:flex;align-items:center;gap:14px;margin:-8px 0 22px;font-family:var(--wp--preset--font-family--mono);font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--wp--preset--color--steel)}
.vl-seg{display:grid;grid-template-columns:repeat(3,26px);gap:4px}
.vl-seg i{position:relative;height:4px;overflow:hidden;background:var(--wp--preset--color--line)}
.vl-seg i::after{content:"";position:absolute;inset:0;background:var(--wp--preset--color--copper);transform:scaleX(0);transform-origin:left;transition:transform .35s var(--vl-ease)}
.vl-seg i.is-f::after{transform:none}.vl-seg i:nth-child(2)::after{transition-delay:.08s}.vl-seg i:nth-child(3)::after{transition-delay:.16s}
/* 4 · add button: spinner while the request runs, then a tick */
.vl-addb{position:relative}.vl-addb .vl-lbl{transition:opacity .15s}
.vl-addb .vl-st{position:absolute;inset:0;display:grid;place-items:center;opacity:0;pointer-events:none}
.vl-addb.is-busy .vl-lbl,.vl-addb.is-done .vl-lbl{opacity:0}
.vl-addb.is-busy .vl-spin-w,.vl-addb.is-done .vl-tick-w{opacity:1}
.vl-spin{display:block;width:18px;height:18px;border:2px solid #1c1f2240;border-top-color:currentColor;border-radius:50%}
.vl-addb.is-busy .vl-spin{animation:vlRot .6s linear infinite}
.vl-tick{display:block;font-style:normal;font-size:18px}
.vl-addb.is-done .vl-tick{animation:vlPop .4s var(--vl-ease)}
@keyframes vlRot{to{transform:rotate(1turn)}}
@keyframes vlPop{0%{transform:scale(.4)}60%{transform:scale(1.15)}100%{transform:none}}
/* 5 · ANDRO / TELO switch + copper or bone glow; the page change is a cross-document view transition (inline CSS on product pages) */
.vl-switch{position:relative;display:inline-grid;grid-template-columns:1fr 1fr;margin-bottom:22px;border:1px solid var(--wp--preset--color--line)}
.vl-switch a{position:relative;z-index:1;padding:12px 16px;min-height:44px;box-sizing:border-box;font-family:var(--wp--preset--font-family--mono);font-size:11px;letter-spacing:.2em;text-transform:uppercase;text-decoration:none;color:var(--wp--preset--color--steel);text-align:center;transition:color .25s}
.vl-switch a[aria-current="page"]{color:var(--wp--preset--color--graphite)}
.vl-switch-hl{position:absolute;top:0;bottom:0;left:0;width:50%;background:var(--wp--preset--color--copper);transition:transform .3s var(--vl-ease),background-color .3s}
.vl-switch[data-k="telo"] .vl-switch-hl{transform:translateX(100%);background:var(--wp--preset--color--bone)}
.vl-andro .wp-block-woocommerce-product-image-gallery{box-shadow:0 30px 90px -30px #c46a2b66}
.vl-telo .wp-block-woocommerce-product-image-gallery{box-shadow:0 30px 90px -30px #ece8e140}
/* 6 · line icons in "Как работи": drawn once in view, no loop */
.vl-steps .wp-block-column{position:relative}
.vl-ico{position:absolute;top:0;right:0;width:44px;height:44px;fill:none;stroke:var(--wp--preset--color--bone);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.vl-ico .c{stroke:var(--wp--preset--color--copper)}
.vl-ico .fill{fill:var(--wp--preset--color--copper);stroke:none;transform-box:fill-box;transform-origin:50% 100%}.vl-ico .fill.x{transform-origin:0 50%}
.vl-ico .dot{fill:var(--wp--preset--color--bone);stroke:none;transform-box:fill-box;transform-origin:50% 50%}
.vl-ico text{fill:var(--wp--preset--color--bone);stroke:none;font:500 9px var(--wp--preset--font-family--mono)}
html.vl-js .vl-ico .d{stroke-dasharray:1;stroke-dashoffset:1}
html.vl-js .vl-ico .fill{transform:scaleY(0)}html.vl-js .vl-ico .fill.x{transform:scaleX(0)}html.vl-js .vl-ico .dot{transform:scale(0)}
html.vl-js .vl-ico.is-play .d{animation:vlStroke .9s var(--vl-ease) forwards}
html.vl-js .vl-ico.is-play .fill,html.vl-js .vl-ico.is-play .dot{animation:vlFill .5s var(--vl-ease) forwards}
html.vl-js .vl-ico.is-play *{animation-delay:calc(var(--d,0s) + .45s)!important}
@keyframes vlStroke{to{stroke-dashoffset:0}}@keyframes vlFill{to{transform:none}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}html.vl-js .vl-reveal{opacity:1;transform:none}
html.vl-js .vl-ico .d{stroke-dashoffset:0}html.vl-js .vl-ico .fill,html.vl-js .vl-ico .dot{transform:none}
::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}}
/* v0.4.2 — footer link lists */
.vl-footer-links{list-style:none;padding:0;margin:0}
.vl-footer-links li{margin:6px 0}
.vl-footer-links a{color:var(--wp--preset--color--steel);text-decoration:none;transition:color .2s}
.vl-footer-links a:hover{color:var(--wp--preset--color--bone)}
@media (max-width:781px){.vl-footer-cols{gap:28px}}
/* ===== v0.5.0 — four more ideas from SingleCelled (ticker, rotating badge, shake-in, phone bottom menu) ===== */
/* ticker band under the hero: two identical rows slide left forever; pauses on hover; static with reduced motion */
.vl-ticker{overflow:hidden;background:var(--wp--preset--color--graphite-2);border-top:1px solid var(--wp--preset--color--line);border-bottom:1px solid var(--wp--preset--color--line);padding:14px 0}
.vl-ticker-track{display:flex;width:max-content;animation:vlTick 45s linear infinite}
.vl-ticker:hover .vl-ticker-track{animation-play-state:paused}
.vl-ticker span{display:flex;align-items:center;gap:28px;padding-right:28px;white-space:nowrap;font-family:var(--wp--preset--font-family--mono);font-size:12px;letter-spacing:.2em;text-transform:uppercase;color:var(--wp--preset--color--bone)}
.vl-ticker b{font-weight:500}.vl-ticker i{font-style:normal;color:var(--wp--preset--color--copper)}
@keyframes vlTick{to{transform:translateX(-50%)}}
/* rotating text ring with the // mark, in the hero (desktop and tablet only) */
.vl-hero .wp-block-cover__inner-container{position:relative}
.vl-badge{position:absolute;right:0;bottom:0;width:clamp(96px,12vw,132px);pointer-events:none}
.vl-hero .wp-block-cover__inner-container > p:not(.vl-mono){max-width:560px}
.vl-badge svg{display:block;width:100%;height:auto;overflow:visible}
.vl-badge text{fill:var(--wp--preset--color--bone);font:500 9.5px var(--wp--preset--font-family--mono);letter-spacing:.18em}
.vl-badge-ring{transform-origin:60px 60px;animation:vlSpin 24s linear infinite}
@keyframes vlSpin{to{transform:rotate(1turn)}}
@media (max-width:781px){.vl-badge{display:none}}
/* shake-in: product packs wobble once when they come into view */
@keyframes vlShake{0%{transform:rotate(0)}20%{transform:rotate(-4deg)}45%{transform:rotate(3deg)}70%{transform:rotate(-1.5deg)}100%{transform:rotate(0)}}
.vl-shake{animation:vlShake .8s var(--vl-ease) .25s both;transform-origin:50% 90%}
/* phone bottom menu with a copper dot that slides to the current item (hidden on product pages and checkout) */
.vl-bnav{display:none}
@media (max-width:781px){
 .vl-bnav{position:fixed;left:0;right:0;bottom:0;z-index:45;display:grid;grid-template-columns:repeat(4,1fr);background:rgba(28,31,34,.96);border-top:1px solid var(--wp--preset--color--line);padding:12px 0 calc(10px + env(safe-area-inset-bottom))}
 .vl-bnav a{position:relative;text-align:center;padding:8px 0 4px;min-height:44px;box-sizing:border-box;font-family:var(--wp--preset--font-family--mono);font-size:11px;letter-spacing:.16em;text-transform:uppercase;text-decoration:none;color:var(--wp--preset--color--steel);transition:color .2s}
 .vl-bnav a[aria-current="page"]{color:var(--wp--preset--color--bone)}
 .vl-bnav-dot{position:absolute;top:6px;left:0;width:6px;height:6px;margin-left:-3px;border-radius:50%;background:var(--wp--preset--color--copper);transition:transform .35s var(--vl-ease);opacity:0}
 .vl-bnav.is-ready .vl-bnav-dot{opacity:1}
 body:not(.single-product):not(.woocommerce-checkout){padding-bottom:64px}
 .single-product .vl-bnav,.woocommerce-checkout .vl-bnav{display:none}
}
/* product title on phones (was 5 lines at 375 px) */
@media (max-width:600px){.single-product h1.wp-block-post-title{font-size:clamp(18px,5.4vw,24px)!important;letter-spacing:.06em;line-height:1.25}}
/* v0.6.1 — header fits a 375 px phone (logo title + icons were 364 px on a 343 px row) */
@media (max-width:600px){.vl-header .wp-block-site-title{letter-spacing:.14em!important;font-size:18px!important}.vl-header .wp-block-woocommerce-customer-account{display:none!important}.vl-header .wp-block-group.is-nowrap{gap:12px}}
/* v0.6.1 — the hidden variation <select> table stays 1 px (a WooCommerce width rule made it 375 px and the product page scrolled sideways) */
form.vl-has-opts table.variations{width:1px!important;height:1px!important;left:0;overflow:hidden!important}
