/* VChen Wow (tông kem / nâu / vàng kim / nude) — hiệu ứng cho layout chính. Tác giả: Trương Quang Khải. */

/* ================= MÀN MỞ ================= */
html.vcw-locked,html.vcw-locked body{overflow:hidden}
.vcw-loader{position:fixed;inset:0;z-index:100000;display:grid;place-items:center;perspective:1600px;pointer-events:auto}
.vcw-loader__panels{position:absolute;inset:0;display:flex}
.vcw-loader__panels i{flex:1;background:var(--vc-cream);transform-origin:50% 0;transition:transform 1.15s cubic-bezier(.7,0,.2,1),opacity 1s ease;box-shadow:inset -1px 0 0 rgba(90,36,18,.06)}
.vcw-loader__panels i:nth-child(1){transition-delay:0s}.vcw-loader__panels i:nth-child(2){transition-delay:.06s}.vcw-loader__panels i:nth-child(3){transition-delay:.12s}
.vcw-loader__panels i:nth-child(4){transition-delay:.18s}.vcw-loader__panels i:nth-child(5){transition-delay:.24s}.vcw-loader__panels i:nth-child(6){transition-delay:.3s}
.vcw-loader__in{position:relative;text-align:center;color:var(--vc-brown);transition:opacity .5s ease,transform .7s cubic-bezier(.7,0,.2,1)}
.vcw-loader__mark{width:74px;height:74px;margin:0 auto 18px;display:block;fill:none;stroke:var(--vc-gold);stroke-linecap:round}
.vcw-loader__mark .r{stroke-width:1;stroke-dasharray:210;stroke-dashoffset:210;animation:vcwDraw 1.4s cubic-bezier(.6,0,.2,1) forwards}
.vcw-loader__mark .v{stroke:var(--vc-brown);stroke-width:2;stroke-dasharray:60;stroke-dashoffset:60;animation:vcwDraw 1s .35s cubic-bezier(.6,0,.2,1) forwards}
@keyframes vcwDraw{to{stroke-dashoffset:0}}
.vcw-loader__word{margin:0;font-family:var(--vc-wide);font-stretch:125%;font-weight:700;font-size:34px;letter-spacing:.06em;line-height:1;color:var(--vc-brown)}
.vcw-loader__word span{color:var(--vc-gold)}
.vcw-loader__sub{margin:10px 0 26px;font-family:var(--vc-serif);font-style:italic;font-size:19px;color:var(--vc-muted)}
.vcw-loader__bar{width:220px;height:1px;margin:0 auto;background:rgba(90,36,18,.14);overflow:hidden}
.vcw-loader__bar i{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--vc-nude),var(--vc-gold))}
.vcw-loader__meta{width:220px;margin:10px auto 0;display:flex;justify-content:space-between;font-family:var(--vc-wide);font-stretch:125%;font-size:9.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--vc-muted)}
.vcw-loader.is-done{pointer-events:none}
.vcw-loader.is-done .vcw-loader__in{opacity:0;transform:translateY(-30px)}
.vcw-loader.is-done .vcw-loader__panels i{transform:rotateX(-99deg);opacity:.2}
.vcw-loader-ph{padding:14px;border:1px dashed var(--vc-gold);color:var(--vc-muted);font-size:12px;text-align:center}

/* ================= DẢI CHỮ CHẠY ================= */
.vcw-marquee{overflow:hidden;background:var(--vc-brown);color:var(--vc-cream);padding:22px 0;white-space:nowrap;user-select:none}
.vcw-marquee__track{display:inline-flex;align-items:center;gap:34px;padding-right:34px;animation:vcwMarq var(--vcw-speed,38s) linear infinite}
.vcw-marquee.is-right .vcw-marquee__track{animation-direction:reverse}
.vcw-marquee:hover .vcw-marquee__track{animation-duration:calc(var(--vcw-speed,38s) * 2.4)}
.vcw-marquee span{font-family:var(--vc-serif);font-style:italic;font-size:clamp(26px,3.2vw,44px);line-height:1}
.vcw-marquee i{font-style:normal;color:var(--vc-gold-2);font-size:18px}
@keyframes vcwMarq{to{transform:translateX(-50%)}}

/* ảnh trộn nền (multiply) nằm trong lớp có transform → lớp đó phải mang màu nền của khung, không thì nền trắng hiện ra */
.vc-frame.is-blend .vc-frame__ph{background-color:inherit}

/* ================= DẢI ẢNH: COVERFLOW 3D ================= */
.vc-strip.is-fx-coverflow .vc-strip__track{position:relative;perspective:1500px;padding:30px 0;cursor:grab}
.vc-tiles.is-fx-pop{position:relative} /* làm gốc đo vị trí ô (layoutRect) */
.vc-strip.is-fx-coverflow .vc-strip__track.is-drag{cursor:grabbing;scroll-snap-type:none;scroll-behavior:auto}
.vc-strip.is-fx-coverflow .vc-strip__item{transform-style:preserve-3d;will-change:transform;transition:box-shadow .4s ease;box-shadow:0 30px 60px -30px rgba(43,20,11,.35)}
.vc-strip.is-fx-coverflow .vc-frame__ph img{transform:translateX(var(--px,0)) scale(1.14);transition:transform .2s linear}
.vc-strip.is-fx-coverflow .vc-strip__item:hover .vc-frame__ph{transform:none}
/* ảnh rơi vào khung khi mở trang */
.vcw-page:not(.vcw-in) .vc-strip.is-fx-coverflow .vc-frame__ph{transform:translateY(-105%)}
.vcw-page:not(.vcw-in) .vc-strip.is-fx-coverflow .vc-frame__label,.vcw-page:not(.vcw-in) .vc-strip.is-fx-coverflow .vc-frame__num{opacity:0;transform:translateY(24px)}
.vcw-page .vc-strip.is-fx-coverflow .vc-frame__ph{transition:transform 1.25s cubic-bezier(.2,.85,.25,1.08) calc(var(--i,0) * 110ms)}
.vcw-page .vc-strip.is-fx-coverflow .vc-frame__label,.vcw-page .vc-strip.is-fx-coverflow .vc-frame__num{transition:opacity .8s ease calc(var(--i,0) * 110ms + .6s),transform .9s cubic-bezier(.2,.8,.2,1) calc(var(--i,0) * 110ms + .6s)}
/* vệt sáng chạy qua khung giữa */
.vc-strip.is-fx-coverflow .vc-strip__item::after{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;background:linear-gradient(115deg,transparent 35%,rgba(255,248,232,.38) 48%,transparent 60%);transform:translateX(-120%);opacity:0}
.vc-strip.is-fx-coverflow .vc-strip__item.is-center::after{animation:vcwShine 3.8s ease-in-out 1.2s infinite}
@keyframes vcwShine{0%{transform:translateX(-120%);opacity:0}12%{opacity:1}40%,100%{transform:translateX(120%);opacity:0}}

/* ================= TIÊU ĐỀ RƠI TỪNG TỪ ================= */
.vc-heading.is-fx-drop .vcw-w{display:inline-block;transform:translateY(-.85em) rotate(-5deg);opacity:0;filter:blur(8px);transition:transform 1s cubic-bezier(.2,.9,.25,1.15) calc(var(--i) * 75ms),opacity .7s ease calc(var(--i) * 75ms),filter .8s ease calc(var(--i) * 75ms)}
.vc-heading.is-fx-drop.is-in .vcw-w,html.vc-all .vc-heading.is-fx-drop .vcw-w{transform:none;opacity:1;filter:none}
.vc-heading.is-fx-drop .vc-heading__ghost{transform:translate(calc(-50% + var(--gx,0px)),-50%);transition:color .6s}
.vc-heading.is-fx-drop.is-in .vc-heading__ghost{color:#EFD9C2}
/* gạch vàng chạy dưới chữ nghiêng */
.vc-heading.is-fx-drop em{position:relative}
.vc-heading.is-fx-drop em::after{content:"";position:absolute;left:0;right:0;bottom:.08em;height:2px;background:linear-gradient(90deg,var(--vc-gold),var(--vc-nude));transform:scaleX(0);transform-origin:left;transition:transform 1s cubic-bezier(.2,.8,.2,1) .9s}
.vc-heading.is-fx-drop.is-in em::after{transform:scaleX(1)}

/* ================= LƯỚI Ô POP-OUT 3D ================= */
.vc-tiles.is-fx-pop{perspective:1200px}
.vc-tiles.is-fx-pop .vc-tile{transform-style:preserve-3d;transition:transform .5s cubic-bezier(.2,.8,.2,1),box-shadow .5s ease;transform:rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg))}
.vc-tiles.is-fx-pop .vc-tile.is-hot{z-index:3;box-shadow:0 34px 60px -28px rgba(43,20,11,.45);transition:transform .12s linear,box-shadow .5s ease}
.vc-tiles.is-fx-pop .vc-tile.is-contain{overflow:visible}
.vc-tiles.is-fx-pop .vc-tile.is-contain .vc-frame__ph img{transition:transform .6s cubic-bezier(.2,.8,.2,1),filter .6s ease}
.vc-tiles.is-fx-pop .vc-tile.is-contain.is-hot .vc-frame__ph{transform:none}
.vc-tiles.is-fx-pop .vc-tile.is-contain.is-hot .vc-frame__ph img{transform:translateY(-7%) scale(1.12);filter:brightness(1.07) contrast(1.08)} /* không đổ bóng: ảnh có nền nên bóng thành ô vuông */
.vc-tiles.is-fx-pop .vc-tile .vc-frame__label,.vc-tiles.is-fx-pop .vc-tile .vc-frame__num{transform:translateZ(30px);transition:transform .5s ease}
/* viền phản sáng theo con trỏ */
.vc-tiles.is-fx-pop .vc-tile::before{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;border-radius:inherit;opacity:0;transition:opacity .4s ease;background:radial-gradient(420px circle at var(--mx,50%) var(--my,50%),rgba(255,246,226,.55),transparent 42%);mix-blend-mode:soft-light}
.vc-tiles.is-fx-pop .vc-tile::after{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;opacity:0;transition:opacity .4s ease;box-shadow:inset 0 0 0 1px rgba(233,194,74,.0);background:radial-gradient(260px circle at var(--mx,50%) var(--my,50%),rgba(233,194,74,.55),transparent 60%) border-box;-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;padding:1px}
.vc-tiles.is-fx-pop .vc-tile.is-hot::before,.vc-tiles.is-fx-pop .vc-tile.is-hot::after{opacity:1}

/* ================= DẢI ẢNH MỜ: HŨ RƠI + PARALLAX ================= */
.vcw-page .vc-band.is-fx{height:420px!important}
.vc-band .vcw-outline{position:absolute;left:50%;top:50%;transform:translate(calc(-50% + var(--lx,0px)),calc(-50% + var(--ly,0px)));font-family:var(--vc-serif);font-weight:500;font-size:clamp(120px,19vw,300px);line-height:1;letter-spacing:.04em;color:transparent;-webkit-text-stroke:1px rgba(255,247,236,.55);white-space:nowrap;pointer-events:none;z-index:1}
.vc-band .vcw-cut{position:absolute;z-index:2;width:var(--w,150px);pointer-events:none;transform:translate(var(--lx,0px),var(--ly,0px));filter:drop-shadow(0 24px 22px rgba(43,20,11,.35))}
.vc-band .vcw-cut img{display:block;width:100%;height:auto;transform:translateY(-620px) rotate(var(--rot,0deg));opacity:0}
.vc-band.is-dropped .vcw-cut img{animation:vcwLand 1.25s cubic-bezier(.3,.05,.3,1) calc(var(--i) * 140ms + .35s) forwards}
@keyframes vcwLand{0%{transform:translateY(-620px) rotate(var(--rot));opacity:0}55%{transform:translateY(14px) rotate(calc(var(--rot) * .6));opacity:1}72%{transform:translateY(-10px) rotate(calc(var(--rot) * .8))}86%{transform:translateY(4px)}100%{transform:translateY(0) rotate(var(--rot));opacity:1}}
.vc-band.is-fx .vc-band__in{z-index:3}
.vc-band.is-fx .vc-band__text{transform:translateY(-40px);opacity:0;transition:transform 1s cubic-bezier(.2,.9,.25,1.15),opacity .8s ease}
.vc-band.is-fx.is-dropped .vc-band__text{transform:none;opacity:1}
.vc-band.is-fx .vc-band__ph{transform:translate(var(--bx,0px),var(--by,0px)) scale(1.08);transition:transform .25s linear}

/* ================= ĐIỆN THOẠI / GIẢM CHUYỂN ĐỘNG ================= */
@media (max-width:849px){
	.vc-strip.is-fx-coverflow .vc-strip__track{padding:16px 0}
	.vcw-page .vc-band.is-fx{height:320px!important}
	.vc-band .vcw-cut{--w:96px!important}
	.vc-band .vcw-cut[data-n="4"]{display:none}
}
@media (prefers-reduced-motion:reduce){
	.vcw-marquee__track{animation:none}
	.vc-heading.is-fx-drop .vcw-w{transform:none;opacity:1;filter:none;transition:none}
	.vc-band .vcw-cut img{transform:none;opacity:1;animation:none!important}
	.vc-band.is-fx .vc-band__text{transform:none;opacity:1}
}

/* ================= THẺ SẢN PHẨM WOO (Shop, danh mục, liên quan, khối sản phẩm) =================
   vcw-cut   = ảnh nền trắng: hoà vào nền thẻ, sản phẩm nổi lên + nhún, bóng đổ hình elip dưới đáy
   vcw-photo = ảnh có nền: "cửa sổ" (ảnh trôi ngược chiều chuột), vệt sáng quét chéo, lớp tối nhẹ ở đáy
   chung     = thẻ nghiêng 3D theo chuột, viền vàng sáng theo con trỏ, ảnh lộ dần từ dưới lên khi cuộn tới */
.vcw-products .vcw-card .product-small.box{transform:perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));transform-style:preserve-3d;transition:transform .55s cubic-bezier(.2,.8,.2,1)}
.vcw-products .vcw-card .product-small.box.is-hot{transition:transform .12s linear}
.vcw-products .vcw-card .box-image{position:relative;overflow:hidden;background:#F4E4D2;transition:box-shadow .5s ease}
.vcw-products .vcw-card .box.is-hot .box-image{box-shadow:0 28px 50px -26px rgba(43,20,11,.45)}
.vcw-products .vcw-card .box-image img{transition:transform .7s cubic-bezier(.2,.8,.2,1),filter .6s ease}
/* lộ dần khi cuộn tới (chỉ khi có JS) */
html.vc-js:not(.vc-all) .vcw-products .vcw-card:not(.vcw-seen) .box-image{clip-path:inset(100% 0 0 0)}
html.vc-js:not(.vc-all) .vcw-products .vcw-card:not(.vcw-seen) .box-text{opacity:0;transform:translateY(16px)}
.vcw-products .vcw-card .box-image{clip-path:inset(0 0 0 0);transition:clip-path 1.1s cubic-bezier(.7,0,.2,1) calc(var(--vi,0) * 110ms),box-shadow .5s ease}
.vcw-products .vcw-card .box-text{transition:opacity .8s ease calc(var(--vi,0) * 110ms + .35s),transform .8s cubic-bezier(.2,.8,.2,1) calc(var(--vi,0) * 110ms + .35s)}
/* viền vàng sáng theo con trỏ */
.vcw-products .vcw-card .box-image::before{content:"";position:absolute;inset:0;z-index:3;pointer-events:none;opacity:0;transition:opacity .4s ease;background:radial-gradient(360px circle at var(--mx,50%) var(--my,50%),rgba(255,246,226,.5),transparent 45%);mix-blend-mode:soft-light}
.vcw-products .vcw-card .box.is-hot .box-image::before{opacity:1}
.vcw-products .vcw-card .box.is-hot{--mx:inherit}
/* --- ảnh nền trắng --- */
.vcw-products .vcw-cut .box-image img{mix-blend-mode:multiply;filter:brightness(1.07) contrast(1.08)}
.vcw-products .vcw-cut .box-image::after{content:"";position:absolute;left:22%;right:22%;bottom:9%;height:7%;z-index:0;border-radius:50%;background:radial-gradient(closest-side,rgba(43,20,11,.32),transparent);opacity:0;transform:scaleX(.7);transition:opacity .6s ease,transform .6s ease;pointer-events:none}
.vcw-products .vcw-cut .box.is-hot .box-image img{transform:translateY(-8%) scale(1.07);animation:vcwBob 2.6s ease-in-out .7s infinite}
.vcw-products .vcw-cut .box.is-hot .box-image::after{opacity:1;transform:scaleX(1)}
@keyframes vcwBob{0%,100%{transform:translateY(-8%) scale(1.07)}50%{transform:translateY(-10.5%) scale(1.075)}}
/* --- ảnh có nền --- */
.vcw-products .vcw-photo .box-image img{transform:scale(1.06)}
.vcw-products .vcw-photo .box.is-hot .box-image img{transform:translate(var(--px,0),var(--py,0)) scale(1.16);transition:transform .25s linear}
.vcw-products .vcw-photo .box-image::after{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;background:linear-gradient(115deg,transparent 38%,rgba(255,250,240,.55) 50%,transparent 62%),linear-gradient(to top,rgba(43,20,11,.28),transparent 45%);background-size:260% 100%,100% 100%;background-position:130% 0,0 0;background-repeat:no-repeat;opacity:.0;transition:opacity .4s ease}
.vcw-products .vcw-photo .box.is-hot .box-image::after{opacity:1;animation:vcwGlare 1.1s ease-out forwards}
@keyframes vcwGlare{from{background-position:130% 0,0 0}to{background-position:-30% 0,0 0}}
/* nút Quick View trượt lên gọn hơn */
.vcw-products .vcw-card .grid-tools{z-index:4}
.vcw-products .vcw-card .grid-tools a{background:rgba(90,36,18,.88);color:#FBF1E6;font-family:"Archivo",sans-serif;font-stretch:125%;font-size:10px;letter-spacing:.14em;text-transform:uppercase}
/* badge Sale nảy vào */
.vcw-products .vcw-card .badge-container{transition:transform .6s cubic-bezier(.3,1.6,.4,1) calc(var(--vi,0) * 110ms + .5s)}
html.vc-js:not(.vc-all) .vcw-products .vcw-card:not(.vcw-seen) .badge-container{transform:scale(0)}

/* ô ảnh có nền trong lưới pop-out: cửa sổ + vệt sáng */
.vc-tiles.is-fx-pop .vc-tile.vcw-photo .vc-frame__ph img{transform:scale(1.08);transition:transform .25s linear}
.vc-tiles.is-fx-pop .vc-tile.vcw-photo.is-hot .vc-frame__ph{transform:none}
.vc-tiles.is-fx-pop .vc-tile.vcw-photo.is-hot .vc-frame__ph img{transform:translate(var(--px,0),var(--py,0)) scale(1.18)}
.vc-tiles.is-fx-pop .vc-tile.vcw-photo .vc-frame__ph::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(115deg,transparent 38%,rgba(255,250,240,.5) 50%,transparent 62%);background-size:260% 100%;background-position:130% 0;background-repeat:no-repeat;opacity:0}
.vc-tiles.is-fx-pop .vc-tile.vcw-photo.is-hot .vc-frame__ph::after{opacity:1;animation:vcwGlare1 1.1s ease-out forwards}
@keyframes vcwGlare1{from{background-position:130% 0}to{background-position:-30% 0}}

@media (prefers-reduced-motion:reduce){
	.vcw-products .vcw-card .box-image{clip-path:none!important}
	.vcw-products .vcw-card .box-text,.vcw-products .vcw-card .badge-container{opacity:1!important;transform:none!important}
	.vcw-products .vcw-cut .box.is-hot .box-image img{animation:none}
}
