/*
Theme Name: 十月 Shi Yue
Theme URI: https://shiyuegift.com/
Author: Innovus
Description: Lightweight custom theme for 十月 Shi Yue handwritten-calligraphy gift boxes. Replaces TheGem + Elementor; matched to the production design. Works with WooCommerce and WPML.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: shiyue
*/

/* ---------- Fonts ---------- */
@font-face {
	font-family: "SanJiHuaChaoTi";
	src: url("assets/fonts/SanJiHuaChaoTi-Cu.woff2") format("woff2");
	font-display: swap;
}

/* ---------- Tokens (measured from production) ---------- */
:root {
	--red: #881616;
	--red-dark: #6e1010;
	--cream: #F6EFE6;
	--cream-2: #FFF9F2;
	--ink: #000;
	--ink-2: #333;
	--grey: #888;
	--white: #fff;
	--wrap: 1170px;
	--wrap-wide: 1212px;
	--topbar-h: 42px;
	--hdr-h: 63px;
	--cal: "SanJiHuaChaoTi", "sanjihuachaoti-cu", "Noto Serif SC", "Songti SC", serif;
	--body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
	/* hero scale unit: 1px at ≥1440px viewports */
	--u: min(1px, calc(100vw / 1440));
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; font-family: var(--body); font-size: 16px; font-weight: 400; line-height: 25px; color: var(--ink); background: #fff; overflow-x: clip; }
img, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; transition: color .2s, opacity .2s, background-color .2s; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
[id] { scroll-margin-top: 90px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 10000; width: auto; height: auto; clip: auto; background: #fff; padding: 10px 16px; border-radius: 8px; }
.center { text-align: center; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 15px; box-sizing: content-box; }
.wrap--wide { max-width: var(--wrap-wide); padding: 0; box-sizing: border-box; }
.wrap--text { max-width: 900px; }

/* Section headings — calligraphy 40px */
.h-sec { font-family: var(--cal); font-size: 40px; line-height: 53px; font-weight: 400; color: var(--ink-2); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 12px 24px; border: 0; border-radius: 30px; background: var(--red); color: #fff; font-family: var(--body); font-size: 14px; line-height: 14px; font-weight: 400; text-align: center; transition: background-color .2s, transform .2s; }
.btn:hover { background: var(--red-dark); color: #fff; }
.btn--hero { height: 57px; padding: 0 42px; font-size: 18px; line-height: 57px; box-shadow: 0 0 33px rgba(57, 5, 32, .15); }
.btn--cream { background: var(--cream); color: var(--red); }
.btn--cream:hover { background: #fff; color: var(--red); }

/* Icons */
.ico { display: inline-flex; width: 1em; height: 1em; line-height: 1; }
.ico svg, .ico img { width: 100%; height: 100%; display: block; }

/* Reveal-on-scroll (only when JS is running) */
.js-reveal .reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }

/* ======================================================================
   Header
   ====================================================================== */
.site-header { position: relative; z-index: 100; }
.topbar { position: relative; z-index: 3; height: var(--topbar-h); background: #fff; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; padding: 0 25px; max-width: calc(var(--wrap-wide) - 20px); }
.socials { display: flex; align-items: center; gap: 25px; }
.socials a { display: flex; color: #000; }
.socials--top .ico { font-size: 18px; }
.socials--top a:hover { opacity: .6; }
.topbar-menu { display: flex; gap: 18px; }
.topbar-menu a { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; line-height: 22px; color: #000; }
.topbar-menu a::before { content: "›"; font-size: 15px; }
.topbar-menu a:hover { color: var(--red); }

.hdr { position: relative; z-index: 2; background: #fff; transition: background-color .3s, transform .35s; }
.hdr-inner { position: relative; display: flex; align-items: flex-start; height: var(--hdr-h); max-width: calc(var(--wrap) + 30px); box-sizing: border-box; padding: 0 15px; }
.hdr-logo { flex: none; display: block; width: 33px; }
.hdr-logo img { width: 33px; height: 58px; }
.logo-white { display: none !important; }

.nav { position: absolute; left: 50%; top: 26px; transform: translateX(-50%); }
.hdr-tools { margin-left: auto; margin-top: 9px; }
.is-stuck .nav { top: 33px; }
.is-stuck .hdr-logo { margin-top: 13px; }
.is-stuck .hdr-tools { margin-top: 19px; }
.nav .menu { display: flex; align-items: center; }
.nav .menu > li { position: relative; }
.nav .menu > li > a { display: block; padding: 0 15px; font-size: 15px; line-height: 19px; color: var(--red); white-space: nowrap; }
.nav .menu > li > a:hover, .nav .menu > .current-menu-item > a { opacity: .7; }
.nav .sub-menu { position: absolute; top: 100%; left: 0; min-width: 160px; padding: 10px 0; margin-top: 14px; background: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s; }
.nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav .menu > li:hover > .sub-menu, .nav .menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav .sub-menu a { display: block; padding: 8px 20px; font-size: 15px; color: var(--ink); white-space: nowrap; }
.nav .sub-menu a:hover { color: var(--red); background: var(--cream); }
.nav-head, .nav-close { display: none; }

.hdr-tools { flex: none; display: flex; align-items: center; gap: 10px; }
.hdr-cta { display: none; height: 38px; font-size: 15px; }
.lang { display: flex; gap: 8px; padding: 0 5px; }
.lang a { display: inline-flex; align-items: center; gap: 3px; font-size: 16px; line-height: 22px; color: var(--red); }
.lang a::before { content: "›"; }
.lang a:hover, .lang a[aria-current] { opacity: .75; }
.hdr-cart { position: relative; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; border: 0; background: none; color: var(--red); font-size: 22px; }
.cart-count { position: absolute; top: 4px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10px; line-height: 17px; font-weight: 700; text-align: center; }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 0; background: none; color: #fff; font-size: 24px; }

/* Overlay header on landing pages (sits on the hero painting) */
.hdr-overlay .site-header { position: absolute; top: 0; left: 0; right: 0; }
.hdr-overlay .hdr { position: absolute; top: var(--topbar-h); left: 0; right: 0; background: transparent; }
.landing-guodali .hdr .nav .menu > li > a,
.landing-guodali .hdr .lang a,
.landing-guodali .hdr .hdr-cart { color: #fff; }
.landing-guodali .hdr .cart-count { background: #fff; color: var(--red); }
.landing-guodali .hdr .logo-color { display: none !important; }
.landing-guodali .hdr .logo-white { display: block !important; }
.landing-guodali .topbar { background: #fff; }

/* Sticky (after scrolling past the header) — burgundy bar, white logo */
.is-stuck .hdr { position: fixed; top: 0; left: 0; right: 0; background: var(--red); box-shadow: 0 2px 20px rgba(0, 0, 0, .15); animation: hdr-in .35s ease; }
.is-stuck .hdr-inner { height: 84px; }
.is-stuck .hdr .nav .menu > li > a, .is-stuck .hdr .lang a, .is-stuck .hdr .hdr-cart { color: #fff; }
.is-stuck .hdr .cart-count { background: #fff; color: var(--red); }
.is-stuck .hdr .logo-color { display: none !important; }
.is-stuck .hdr .logo-white { display: block !important; }
.is-stuck:not(.hdr-overlay) .site-header { padding-bottom: var(--hdr-h); }
@keyframes hdr-in { from { transform: translateY(-100%); } to { transform: none; } }

/* Mini-cart drawer */
.cart-drawer { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, 0); transition: background-color .3s; }
.cart-drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: 450px; max-width: 100vw; display: flex; flex-direction: column; background: #fff; transform: translateX(100%); transition: transform .3s ease; }
.cart-open .cart-drawer { background: rgba(0, 0, 0, .45); }
.cart-open .cart-drawer-panel { transform: none; }
.cart-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 25px; border-bottom: 1px solid #eee; }
.cart-drawer-title { font-family: var(--cal); font-size: 26px; line-height: 1; color: var(--red); }
.cart-drawer-close { display: flex; width: 36px; height: 36px; padding: 6px; border: 0; background: none; font-size: 24px; color: var(--ink); }
.widget_shopping_cart_content { flex: 1; overflow: auto; padding: 20px 25px; }
.woocommerce-mini-cart { display: grid; gap: 16px; }
.woocommerce-mini-cart-item { position: relative; display: grid; grid-template-columns: 70px 1fr; gap: 4px 14px; padding-right: 28px; font-size: 14px; line-height: 20px; }
.woocommerce-mini-cart-item img { grid-row: span 3; width: 70px; height: 70px; object-fit: cover; border-radius: 10px; }
.woocommerce-mini-cart-item > a:not(.remove) { display: contents; color: var(--ink); font-weight: 500; }
.woocommerce-mini-cart-item .remove { position: absolute; top: 0; right: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--cream); color: var(--red) !important; font-size: 16px; line-height: 22px; text-align: center; }
.woocommerce-mini-cart-item .variation { grid-column: 2; margin: 0; font-size: 12px; color: #666; }
.woocommerce-mini-cart-item .variation dt, .woocommerce-mini-cart-item .variation dd { display: inline; margin: 0; }
.woocommerce-mini-cart-item .variation dd p { display: inline; }
.woocommerce-mini-cart-item .quantity { grid-column: 2; color: #555; }
.woocommerce-mini-cart__total { display: flex; justify-content: space-between; margin: 20px 0 14px; padding-top: 16px; border-top: 1px solid #eee; font-size: 16px; }
.woocommerce-mini-cart__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.woocommerce-mini-cart__buttons .button { display: flex; align-items: center; justify-content: center; height: 46px; border-radius: 30px; background: var(--cream); color: var(--red); font-size: 15px; }
.woocommerce-mini-cart__buttons .checkout { background: var(--red); color: #fff; }
.woocommerce-mini-cart__empty-message { padding: 40px 0; text-align: center; color: #666; }

/* ======================================================================
   Landing: hero
   ====================================================================== */
.hero { position: relative; overflow: hidden; height: calc(var(--hero-h) * var(--u)); min-height: 640px; background-color: var(--cream); background-size: cover; background-position: center; }
.hero--red { background-color: #6b0e10; }
.hero-art { position: absolute; inset: 0; pointer-events: none; }
.hero-layer { position: absolute; left: calc(50% + (var(--x) - 710.5) * var(--u)); top: calc(var(--y) * var(--u)); width: calc(var(--w) * var(--u)); }
.hero-layer img { width: 100%; height: auto; }
.hero-layer--box1, .hero-layer--box2 { animation: sy-float 6s ease-in-out infinite; }
.hero-layer--box2 { animation-delay: -3s; }
.hero-layer--box2 img { filter: drop-shadow(0 0 10px rgba(0, 0, 0, .25)); }
@keyframes sy-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.hero-inner { position: relative; z-index: 5; padding-top: calc(295 * var(--u)); }
.hero-title { max-width: 1170px; font-family: var(--cal); font-size: calc(120 * var(--u)); line-height: calc(120 * var(--u)); font-weight: 300; color: var(--red); padding-bottom: calc(50 * var(--u)); }
.hero-title.is-en { max-width: 680px; font-size: calc(61 * var(--u)); line-height: calc(70 * var(--u)); }
.hero-text { max-width: 562px; font-size: 17px; line-height: 25px; color: var(--red); }
.hero-inner .btn--hero { margin-top: calc(50 * var(--u)); }
.lang-en .landing-home .hero-inner, body.lang-en.landing-home .hero-inner { padding-top: calc(315 * var(--u)); }

.hero--red .hero-inner { padding-top: calc(400 * var(--u)); }
.hero--red .hero-title { color: #fff; font-weight: 700; line-height: calc(145 * var(--u)); padding-bottom: calc(30 * var(--u)); text-shadow: 0 0 50px rgba(0, 0, 0, .3); }
.hero--red .hero-title.is-en { max-width: 1170px; font-size: calc(59 * var(--u)); line-height: calc(69 * var(--u)); font-weight: 300; padding-bottom: calc(40 * var(--u)); text-shadow: none; }
.hero--red .hero-text { max-width: 550px; color: #fff; }

/* ======================================================================
   Landing: sections
   ====================================================================== */
.tabbanner { background: var(--cream); padding: 100px 0; }
.tabbanner-link { display: block; }
.tabbanner img { width: 100%; border-radius: 50px; }

.band { background: var(--cream); padding-bottom: 100px; }
.band--img { background: var(--band-bg) center center / cover no-repeat, linear-gradient(180deg, #F6EFE6, #F2E9DB); }

.series { padding-top: 20px; }
.series .h-sec { line-height: 38px; }
.series-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding-top: 70px; }
.card { display: flex; flex-direction: column; gap: 10px; text-align: center; }
.card-img img { width: 100%; border-radius: 30px; }
.series-grid--fixed .card-img img { height: 450px; object-fit: cover; }
.card-kicker { font-size: 16px; line-height: 20.8px; margin-bottom: 20px; }
.card-name { font-family: var(--cal); font-size: 32px; line-height: 41.6px; font-weight: 500; color: var(--ink); }
.card-price { font-size: 16px; line-height: 20px; }

.quote { padding: 109px 0 0; }
.quote-panel { position: relative; display: flex; align-items: center; justify-content: center; min-height: 500px; padding: 10px 21px; border-radius: 32px; overflow: hidden; background-size: cover; background-position: center; }
.quote-panel::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .3); }
.quote-text { position: relative; font-family: var(--cal); font-size: 48px; line-height: 53px; font-weight: 600; color: #fff; text-align: center; }
.quote-panel--shadow .quote-text { font-size: 54px; text-shadow: 0 0 10px rgba(0, 0, 0, .3); }

.intro { padding: 120px 0 0; }
.landing-guodali .series { padding-top: 41px; }
.landing-guodali .tabs { padding-top: 121px; }
.tabs--pastry > .wrap { min-height: 625px; }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.intro-copy { padding: 20px 21px 10px; }
.intro-copy .h-sec { margin-bottom: 20px; }
.intro-copy .txt { max-width: 540px; font-size: 16px; line-height: 30px; }
.intro-copy .txt p { margin-bottom: 16px; }
.intro-copy .btn { margin-top: 15px; }
.intro-img img { width: 100%; border-radius: 30px; }

.tabs { padding-top: 100px; }
.landing-home .tabs { padding-top: 190px; }
.tabs--packages > .wrap { min-height: 625px; }
.tabs-head { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.tabs-nav { display: flex; }
.tabs-nav button { padding: 15px 35px; border: 0; border-bottom: 1px solid var(--grey); background: transparent; font-family: var(--cal); font-size: 22px; line-height: 25px; color: var(--ink); transition: border-color .2s; }
.tabs-nav button:hover { border-bottom: 2px solid var(--ink); padding-bottom: 14px; }
.tabs-nav button[aria-selected="true"] { border-bottom: 2px solid var(--ink); padding-bottom: 14px; }
.tabs-panel[hidden] { display: none; }
.tabs-panel { animation: sy-fade .4s ease; }
@keyframes sy-fade { from { opacity: 0; } to { opacity: 1; } }

.pkg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 19px 20px; }
.pkg { display: grid; grid-template-columns: 322px 1fr; align-items: center; }
.pkg-img img { width: 322px; height: 251px; object-fit: cover; border-radius: 30px; }
.pkg-copy { display: flex; flex-direction: column; gap: 20px; padding: 10px 21px; text-align: center; }
.pkg-kicker, .pkg-text { font-size: 16px; line-height: 24px; }
.pkg-name { font-family: var(--cal); font-size: 32px; line-height: 32px; font-weight: 600; }

.pastry { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; }
.pastry-box, .pastry-list { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.pastry-box img { width: 100%; border-radius: 30px; margin-bottom: 10px; }
.pastry-list { gap: 30px; padding-top: 20px; }
.pastry-item { display: flex; flex-direction: column; gap: 10px; }
.pastry-name { font-family: var(--cal); font-size: 32px; line-height: 32px; font-weight: 600; }
.pastry-meta { font-size: 16px; line-height: 24px; }

.colors { padding: 120px 0 100px; }
.colors-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding-top: 50px; }
.color { margin: 0; text-align: center; }
.color img { width: 100%; aspect-ratio: 591 / 638; object-fit: cover; border-radius: 30px; }
.color-title { margin-top: 20px; padding: 10px 0; font-family: var(--cal); font-size: 28px; line-height: 28px; font-weight: 300; }
.color-text { margin-top: 20px; font-size: 16px; line-height: 16px; }

.notice { padding-top: 20px; }
.tabs--pastry + .notice { padding-top: 120px; }
.notice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.notice-copy { padding: 10px 21px; }
.notice-lead { max-width: 540px; margin: 20px 0; font-size: 16px; line-height: 30px; }
.notice-list { display: grid; }
.notice-list li { display: flex; align-items: center; gap: 0; min-height: 51px; font-size: 16px; line-height: 24px; }
.notice-list img { flex: none; width: 51px; height: 51px; margin-right: 0; }
.notice-copy .btn { margin-top: 35px; }
/* Artwork positions measured on production (right column = 606px) */
.notice-art { position: relative; min-height: 600px; }
.notice-art > span { position: absolute; display: block; z-index: 1; }
.notice-art img { width: 100%; }
.notice-art-0 { left: 17.3%; top: 10px; width: 65.2%; }
.notice-art-1 { left: 6.6%; top: 411px; width: 80%; }
.notice-art-2 { left: 1.3%; top: 173px; width: 100%; }
.notice-art-3 { left: -106.8%; top: 871px; width: 115px; }
.notice-art--3 .notice-art-0 { left: 3.5%; top: 10px; width: 93%; }
.notice-art--3 .notice-art-1 { left: -4.3%; top: 38px; width: 100%; }
.notice-art--3 .notice-art-2 { left: -88.1%; top: 737px; width: 115px; }

.gallery { background: var(--cream); padding: 100px 0; }
.gallery .h-sec { line-height: 38px; margin-bottom: 70px; }
.masonry { columns: var(--cols, 4); column-gap: 20px; }
.masonry-item { display: block; margin-bottom: 20px; break-inside: avoid; border-radius: var(--rad, 15px); overflow: hidden; }
.masonry-item img { width: 100%; transition: transform .5s ease; }
.masonry-item:hover img { transform: scale(1.04); }

.why { padding: 100px 0; background: var(--why-bg) center / cover no-repeat; }
.why .h-sec { line-height: 38px; }
.why-lead { margin: 30px auto 60px; max-width: 900px; font-size: 16px; line-height: 20px; color: #080000; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; }
.why-card { padding: 30px; border-radius: 32px; background: var(--cream-2); text-align: center; }
.why-icon { width: 25%; height: auto; margin: 0 auto -20px; }
.why-title { margin: 0 0 10px; font-family: var(--cal); font-size: 32px; line-height: 42px; color: var(--red); }
.why-text { font-size: 16px; line-height: 25px; }

/* ======================================================================
   Generic pages
   ====================================================================== */
.page-band { padding: 70px 0; background: var(--cream) var(--band-img, none) center / cover no-repeat; text-align: center; }
.page-title { font-family: var(--cal); font-size: 48px; line-height: 1.2; color: var(--red); }
.page-body { padding: 60px 0 100px; background: var(--cream); }
.entry { font-size: 16px; line-height: 30px; }
.entry > * + * { margin-top: 16px; }
.entry h2 { margin-top: 36px; font-family: var(--cal); font-size: 30px; line-height: 1.3; color: var(--red); }
.entry h3 { margin-top: 28px; font-size: 20px; line-height: 1.4; font-weight: 600; }
.entry ul { list-style: disc; padding-left: 1.4em; }
.entry ol { list-style: decimal; padding-left: 1.4em; }
.entry a { text-decoration: underline; }
.entry strong, .entry b { font-weight: 600; }
.entry > h2:first-child { margin-top: 0; }

/* Product listing page (中秋礼盒) */
.carousel { position: relative; overflow: hidden; }
.carousel-track { display: flex; transition: transform .7s ease; }
.carousel-slide { flex: 0 0 100%; }
.carousel-slide img { width: 100%; }
.carousel-dots { position: absolute; left: 0; right: 0; bottom: 20px; display: flex; justify-content: center; gap: 10px; }
.carousel-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .6); }
.carousel-dots button[aria-current] { background: #fff; }
.shopgrid { background: var(--cream); padding: 80px 0 100px; }
.shopgrid-title { font-size: 50px; line-height: 1.2; font-weight: 500; }
.shopgrid-sub { margin-top: 14px; font-size: 18px; line-height: 1.6; }
.shopgrid-body { display: grid; grid-template-columns: 260px 1fr; gap: 40px; margin-top: 60px; }
.shopgrid-h { font-size: 28px; line-height: 1.3; font-weight: 600; }
.shopgrid-rule { display: block; width: 23%; margin-top: 16px; border-top: 2px solid var(--ink); }
.shopgrid-tabs { margin-bottom: 30px; }
.shopgrid-tabs span { display: inline-block; padding-bottom: 6px; border-bottom: 2px solid var(--ink); font-size: 18px; font-weight: 600; }
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 42px; }
.pcard { text-align: center; }
.pcard-img { position: relative; display: block; overflow: hidden; border-radius: 24px; }
.pcard-img img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .5s; }
.pcard-img:hover img { transform: scale(1.04); }
.pcard-badge { position: absolute; top: 14px; left: 14px; padding: 4px 12px; border-radius: 20px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 12px; line-height: 18px; }
.pcard-cat { margin-top: 16px; font-size: 14px; color: var(--red); }
.pcard-title { margin-top: 6px; font-size: 25px; line-height: 1.3; font-weight: 500; }
.pcard-title a { color: var(--ink); }
.pcard-price { margin-top: 8px; color: #000; }

/* ======================================================================
   Footer
   ====================================================================== */
.site-footer { position: relative; padding: 85px 0 80px; background-color: var(--red); background-size: cover; background-position: center; color: #fff; text-align: center; }
.footer-inner { display: flex; flex-direction: column; align-items: center; }
.footer-logo img { width: auto; height: 220px; }
.footer-slogan { margin-top: 50px; font-size: 16px; line-height: 37px; }
.socials--footer { margin-top: 50px; gap: 10px; }
.socials--footer a { width: 51px; height: 51px; align-items: center; justify-content: center; border-radius: 50%; background: var(--red); color: #fff; }
.socials--footer .ico { font-size: 18px; }
.socials--footer .ico-xhs img { filter: brightness(0) invert(1); }
.socials--footer a:hover { background: var(--red-dark); }
.footer-menu { display: flex; flex-wrap: wrap; justify-content: center; margin-top: 35px; }
.footer-menu a { display: block; padding: 0 30px; font-size: 16px; line-height: 41px; letter-spacing: .25px; color: #fff; border-radius: 4px; }
.footer-menu a:hover { background: rgba(255, 255, 255, .25); }
.footer-copy { margin-top: 40px; font-size: 14px; line-height: 25px; }
.footer-legal { margin-top: 0; padding-bottom: 20px; font-size: 14px; line-height: 25px; }
.footer-legal a { color: #ffb3d3; }
.footer-legal a:hover { color: #fff; }

.float-btns { position: fixed; right: 38px; bottom: 96px; z-index: 90; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.float-btn { display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; background: var(--red); color: var(--cream); font-size: 30px; box-shadow: 0 0 0 4px rgba(255, 255, 255, .35), 0 6px 18px rgba(0, 0, 0, .25); }
.float-btn:hover { background: var(--red-dark); color: #fff; transform: scale(1.05); }
.to-top { position: fixed; right: 20px; bottom: 20px; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 3px; background: rgba(80, 80, 80, .55); color: #fff; font-size: 22px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.show-top .to-top { opacity: 1; visibility: visible; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 40px 70px; background: rgba(0, 0, 0, .9); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.lightbox button { position: absolute; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 10px; border: 0; background: transparent; color: #fff; font-size: 28px; }
.lightbox-close { top: 14px; right: 14px; }
.lightbox-prev { left: 12px; top: 50%; transform: translateY(-50%) rotate(180deg); }
.lightbox-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-open, .nav-open { overflow: hidden; }

/* ======================================================================
   Responsive
   ====================================================================== */
@media (max-width: 1240px) {
	.wrap--wide { padding: 0 20px; }
	.pkg { grid-template-columns: 1fr 1fr; }
	.pkg-img img { width: 100%; height: auto; aspect-ratio: 322 / 251; }
}

/* Tablet + mobile header: burgundy bar, burger menu */
@media (max-width: 1024px) {
	:root { --u: calc(100vw / 1440); }
	.hdr-overlay .site-header { position: relative; }
	.hdr, .hdr-overlay .hdr { position: relative; top: 0; background: var(--red); }
	.hdr-inner { height: 70px; align-items: center; }
	.hdr-tools, .is-stuck .hdr-tools, .is-stuck .hdr-logo { margin-top: 0; }
	.hdr .logo-color, .hdr-overlay .hdr .logo-color { display: none !important; }
	.hdr .logo-white { display: block !important; }
	.hdr .lang a, .hdr .hdr-cart { color: #fff !important; }
	.hdr .cart-count { background: #fff; color: var(--red); }
	.hdr-tools { margin-left: auto; }
	.hdr-cta { display: inline-flex; }
	.nav-toggle { display: flex; }
	.is-stuck .hdr-inner { height: 70px; }
	.is-stuck .site-header { padding-bottom: 70px; }
	.is-stuck.hdr-overlay .site-header { padding-bottom: 70px; }

	.nav { position: fixed; inset: 0 0 0 auto; z-index: 1001; width: min(360px, 86vw); display: block; padding: 20px 24px 40px; background: var(--red); overflow-y: auto; transform: translateX(100%); transition: transform .3s ease; }
	.nav-open .nav { transform: none; box-shadow: -10px 0 40px rgba(0, 0, 0, .3); }
	.nav-open::after { content: ""; position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .45); }
	.nav-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
	.nav-head img { width: 28px; height: auto; }
	.nav-close { display: flex; width: 40px; height: 40px; padding: 8px; border: 0; background: none; color: #fff; font-size: 24px; }
	.nav .menu { display: block; }
	.nav .menu > li > a, .landing-guodali .hdr .nav .menu > li > a, .is-stuck .hdr .nav .menu > li > a { padding: 14px 0; font-size: 17px; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .18); }
	.nav .sub-menu { position: static; display: none; margin: 0; padding: 4px 0 8px 14px; background: none; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
	.nav .menu > li.is-open > .sub-menu { display: block; }
	.nav .sub-menu a { padding: 10px 0; color: rgba(255, 255, 255, .9); }
	.nav .sub-menu a:hover { background: none; color: #fff; }
	.nav .menu-item-has-children > a::after { content: "+"; float: right; }
	.nav .menu-item-has-children.is-open > a::after { content: "−"; }

	.hero { height: auto; min-height: 0; }
	.hero-inner { padding: 60px 30px 520px !important; }
	.hero-title, .hero-title.is-en { font-size: 95px; line-height: 1.1; }
	.hero--red .hero-title { line-height: 100px; }
	.hero--red .hero-title.is-en { font-size: 59px; line-height: 1.2; }
	.hero-layer { left: auto; top: auto; }
	.hero-layer--purple { left: -12%; top: 30%; width: 70%; }
	.hero-layer--pink { right: -15%; top: 4%; width: 55%; }
	.hero-layer--pedestal { left: 10%; bottom: -2%; width: 90%; }
	.hero-layer--box1 { left: 6%; bottom: 14%; width: 238px; }
	.hero-layer--box2 { right: 5%; bottom: 26%; width: 181px; }

	.why-grid { gap: 20px; }
	.why-title { font-size: 20px; }
	.why-icon { width: 50%; }
	.shopgrid-body { grid-template-columns: 1fr; gap: 20px; }
	.products-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 767px) {
	.topbar { display: none; }
	.hdr-overlay .hdr { top: 0; }
	.hdr-cta { display: none; }
	.hdr-inner { height: 64px; }
	.lang a { font-size: 14px; }

	.h-sec { font-size: 32px; line-height: 38px; }

	.hero-inner { padding: 80px 20px 440px !important; text-align: center; }
	.hero-title, .hero-title.is-en { max-width: none; font-size: 56px; line-height: 1.05; padding-bottom: 30px; }
	.hero-title.is-en { font-size: 36px; line-height: 1.15; }
	.hero--red .hero-title { font-size: 43px; line-height: 1; padding-bottom: 30px; }
	.hero--red .hero-title.is-en { font-size: 32px; }
	.hero-text, .hero--red .hero-text { max-width: 312px; margin: 0 auto; font-size: 15px; line-height: 1.5; }
	.hero-inner .btn--hero { margin-top: 30px; height: 50px; padding: 0 20px; font-size: 15px; line-height: 50px; }
	.hero-layer--purple { left: 4%; top: auto; bottom: 8%; width: 80%; }
	.hero-layer--pink { left: -6%; right: auto; top: -2%; width: 90%; }
	.hero-layer--pedestal { left: 0; bottom: -4%; width: 100%; }
	.hero-layer--box1 { left: -6%; bottom: 7%; width: 50%; }
	.hero-layer--box2 { right: 2%; bottom: 18%; width: 150px; }
	.hero--red .hero-layer--box2 { width: 171px; }

	.tabbanner { padding: 50px 0; }
	.tabbanner img { border-radius: 20px; }
	.band { padding-bottom: 60px; }
	.series { padding-top: 0; }
	.series .h-sec { padding-top: 20px; }
	.series-grid { grid-template-columns: 1fr; gap: 30px; padding-top: 20px; }
	.card-img img { border-radius: 20px; }
	.series-grid--fixed .card-img img { height: auto; aspect-ratio: 384 / 450; }
	.quote { padding-top: 50px; }
	.quote-panel { min-height: 175px; border-radius: 20px; padding: 0; }
	.quote-text, .quote-panel--shadow .quote-text { font-size: 24px; line-height: 1.3; }
	.intro { padding-top: 50px; }
	.intro-grid { grid-template-columns: 1fr; }
	.intro-copy { padding: 0; text-align: center; }
	.intro-copy .txt { margin: 0 auto; }
	.intro-img img { border-radius: 20px; }

	.tabs { padding-top: 60px; }
	.tabs-head { flex-direction: column; align-items: center; gap: 10px; margin-bottom: 30px; }
	.tabs-nav button { padding: 12px 14px; font-size: 18px; line-height: 1.3; }
	.tabs-nav button[aria-selected="true"], .tabs-nav button:hover { padding-bottom: 11px; }
	.pkg-grid { grid-template-columns: 1fr; gap: 24px; }
	.pkg { grid-template-columns: 1fr 1fr; gap: 0; }
	.pkg-img img { border-radius: 20px; }
	.pkg-copy { gap: 10px; padding: 0 0 0 12px; }
	.pkg-kicker, .pkg-text { font-size: 14px; line-height: 20px; }
	.pkg-name { font-size: 24px; line-height: 1.1; }
	.pastry { grid-template-columns: 1fr; gap: 30px; }
	.pastry-box img { border-radius: 20px; }
	.pastry-name { font-size: 26px; line-height: 1.1; }

	.colors { padding-top: 60px; }
	.colors .h-sec, .notice .h-sec { text-align: center; }
	.colors-grid { grid-template-columns: 1fr 1fr; gap: 20px 14px; }
	.color img { border-radius: 20px; }
	.color-title { margin-top: 14px; font-size: 20px; }
	.color-text { margin-top: 8px; font-size: 13px; line-height: 18px; }

	.notice { padding-top: 60px; }
	.notice-grid { grid-template-columns: 1fr; }
	.notice-copy { padding: 0; }
	.notice-lead { font-size: 14px; line-height: 24px; }
	.notice-list li { align-items: flex-start; font-size: 14px; line-height: 1.5; min-height: 40px; }
	.notice-list img { width: 38px; height: 38px; margin-top: -8px; }
	.notice-copy { text-align: left; }
	.notice-copy .btn { display: flex; width: max-content; margin: 30px auto 0; }
	.notice-art { min-height: 360px; margin-top: 20px; }

	.gallery { padding: 60px 0; }
	.masonry { columns: 2; column-gap: 12px; }
	.masonry-item { margin-bottom: 12px; border-radius: 12px; }

	.why { padding: 60px 0; }
	.why-lead { margin-bottom: 40px; }
	.why-grid { grid-template-columns: 1fr; gap: 20px; }
	.why-icon { width: 35%; }
	.why-title { font-size: 24px; }
	.why-text { font-size: 14px; }

	.page-band { padding: 50px 0; }
	.page-title { font-size: 36px; }
	.shopgrid { padding: 50px 0 70px; }
	.shopgrid-title { font-size: 34px; }
	.products-grid { grid-template-columns: 1fr; }

	.site-footer { padding: 60px 0 50px; }
	.footer-logo img { height: 160px; }
	.footer-menu a { padding: 0 14px; }
	.float-btns { right: 16px; bottom: 76px; }
	.float-btn { width: 50px; height: 50px; font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
