/* ==========================================================================
   ========================================================================== */

html, body { height: auto !important; }
body { visibility: visible !important; opacity: 1 !important; }
.lazy-load, .lazy-load img, .picture.lazy-load, picture.lazy-load {
	opacity: 1 !important;
	visibility: visible !important;
	transition: none !important;
}
img { max-width: 100%; }

[class*="cookie"], [id*="cookie"], .optanon-alert-box-wrapper, #onetrust-consent-sdk,
[class*="chat"], [id*="chat"], .lightwidget, .skip-links_banner,
yr-drawer, .yr-drawer, dialog, .modal,
.sf-vocal, .sf-vocal-client-icon-root { display: none !important; }

#yc-topbar {
	background: #143616;
	color: #fff;
	height: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	font-family: Montserrat, sans-serif;
}
#yc-topbar .yc-bar-link { color: #fff; font-size: 13px; letter-spacing: .2px; }
#yc-topbar .yc-bar-link strong { font-weight: 700; }
#yc-topbar .yc-bar-close {
	position: absolute;
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
	width: 26px;
	height: 26px;
	border: 0;
	background: none;
	color: #fff;
	font-size: 19px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.main-header__logo img { width: 200px !important; height: auto !important; display: block !important; }

.yr-navigation-menu__quick-links .yr-link__anchor,
.yr-navigation-menu__quick-links .yr-link__text {
	font-family: Montserrat, sans-serif !important;
	font-size: 13px !important;
	font-weight: 300 !important;
	line-height: 15px !important;
	letter-spacing: 0 !important;
	color: #000 !important;
	padding: 0 !important;
}
.yr-navigation-menu__quick-links { column-gap: 44px !important; gap: 44px !important; }
.yr-navigation-menu__quick-links,
.yr-navigation-menu__quick-link { line-height: 15px !important; }

.yr-input__icon svg, .main-header__content svg, .yr-icon svg {
	fill: none !important;
	stroke: currentColor !important;
	stroke-width: 1.6 !important;
}
.yr-input__icon { color: #4a4a4a !important; }
.yr-input__icon svg { width: 20px !important; height: 20px !important; }
.main-header_links-list svg { width: 24px !important; height: 24px !important; color: #014e2e; }

.main-header__cart-badge, .main-header__notification-badge, yr-badge { display: none !important; }
.main-header__icon-item--cart { position: relative !important; }
.main-header__icon-item--cart::after {
	content: "0";
	position: absolute;
	top: -3px;
	right: -7px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	box-sizing: border-box;
	border-radius: 999px;
	background: #014e2e;
	color: #fff;
	font: 700 10px/16px Montserrat, sans-serif;
	text-align: center;
	pointer-events: none;
}

.yr-carousel { position: relative !important; overflow: hidden !important; }
.yr-carousel .swiper-wrapper { display: flex !important; will-change: transform; }
.yr-carousel .swiper-slide { flex-shrink: 0 !important; }
.yc-hero-carousel .swiper-slide { flex: 0 0 100% !important; width: 100% !important; }

.yr-carousel__button {
	position: absolute !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	width: 44px !important;
	height: 44px !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background-color: #fff !important;
	background-repeat: no-repeat !important;
	background-position: center center !important;
	background-size: 11px 18px !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .14) !important;
	overflow: visible !important;
	display: block !important;
	line-height: 0 !important;
	font-size: 0 !important;
	cursor: pointer !important;
	z-index: 6 !important;
}
.yr-carousel__button::after,
.yr-carousel__button::before { content: none !important; display: none !important; }
.yr-carousel__button svg, .yr-carousel__button span { display: none !important; }

.yr-carousel__button--prev {
	left: 28px !important;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='18' viewBox='0 0 11 18' fill='none' stroke='%23143616' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 1 2 9l7 8'/%3E%3C/svg%3E") !important;
}
.yr-carousel__button--next {
	right: 28px !important;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='18' viewBox='0 0 11 18' fill='none' stroke='%23143616' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 1l7 8-7 8'/%3E%3C/svg%3E") !important;
}

.yr-carousel:not(.yc-hero-carousel) .yr-carousel__button {
	width: 34px !important;
	height: 34px !important;
	background-size: 9px 14px !important;
}
.yr-carousel:not(.yc-hero-carousel) .yr-carousel__button--prev { left: 6px !important; }
.yr-carousel:not(.yc-hero-carousel) .yr-carousel__button--next { right: 6px !important; }

.yr-carousel__button[disabled] { opacity: .35 !important; cursor: default !important; }

[class*="rating"] svg, [class*="notation"] svg, .yr-product-card__rating svg {
	fill: #014e2e !important;
	stroke: none !important;
	width: 13px !important;
	height: 13px !important;
}

.sf-search-zone-root, .sf-scopes-root, .sf-searchbox-container,
.sf-previewer-navigation-root, .sf-searchzone { display: none !important; }

.yc-menu-layer {
	position: fixed; inset: 0; z-index: 950;
	background: rgba(0, 0, 0, .35);
}
.yc-menu-layer[hidden] { display: none !important; }
.yc-menu {
	position: absolute; left: 0; top: 0; bottom: 0;
	width: 420px; max-width: 92vw; background: #fff;
	display: flex; flex-direction: column;
	animation: yc-menu-in .25s ease;
}
@keyframes yc-menu-in { from { transform: translateX(-20px); opacity: .7; } to { transform: none; opacity: 1; } }
.yc-menu-head { display: flex; justify-content: flex-end; padding: 14px 18px; }
.yc-menu-close { background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: #1c1c1c; }
.yc-menu-body { flex: 1; overflow-y: auto; }
.yc-menu-list { list-style: none; margin: 0; padding: 0 0 12px; }
.yc-menu-list li { border-bottom: 1px solid #f0f0f0; }
.yc-menu-list a {
	display: flex; align-items: center; justify-content: space-between;
	padding: 16px 22px; font-size: 16px; color: #1c1c1c; text-decoration: none;
}
.yc-menu-list a:hover { background: #f6f4e7; }
.yc-menu-list a.has-sub { font-weight: 400; }
.yc-menu-chev { color: #8a8a8a; font-size: 18px; }
.yc-menu-foot { background: #efe9fb; padding: 18px 22px 22px; }
.yc-menu-foot h3 { margin: 0 0 8px; font-size: 17px; font-weight: 500; color: #1c1c1c; }
.yc-menu-foot p { margin: 0 0 14px; font-size: 12px; line-height: 1.5; color: #333; }
.yc-menu-login {
	display: inline-block; padding: 12px 18px; background: #014e2e; color: #fff;
	font-size: 12px; letter-spacing: .5px; text-decoration: none;
}
.yc-menu-list a.is-current { background: #f4f1dd; font-weight: 500; }

.main-header__cart-badge { position: relative; }
.main-header__cart-badge .none { display: none; }
.main-header__cart-badge .main-header__cart-count {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
	background: #014e2e; color: #fff; font: 700 10px/1 Montserrat, sans-serif;
	position: absolute; top: -8px; right: -10px;
}
.main-header__cart-badge.yc-cart-badge {
	position: relative; display: inline-block; width: 0; height: 0;
}
.main-header__cart-badge.yc-cart-badge i.main-header__cart-count {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
	background: #014e2e; color: #fff; font: 700 10px/1 Montserrat, sans-serif;
	position: absolute; top: -14px; right: -6px; z-index: 3; font-style: normal;
}
.main-header__cart-badge.yc-cart-badge i.none { display: none; }

/* ===== 移动端修正 ===== */
@media (max-width: 1000px) {
	html, body { overflow-x: hidden; }
	.yc-cart-page, .yc-cart-grid { display: block !important; max-width: 100%; }
	.yc-cart-side { margin-top: 24px; width: 100%; }
	.yc-cart-summary { width: 100%; }
	.yc-cart-item { flex-wrap: wrap; gap: 10px; }
	.yc-cart-item-qty { order: 3; }
	.yc-loyalty, .yc-cart-loyalty { flex-wrap: wrap; }
	.yc-checkout-wrap form.checkout { display: block !important; }
	.yc-checkout-wrap #order_review { margin-top: 24px; position: static; }
}

/* ===== 分类页筛选栏 ===== */
.yc-scent-pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 6px; }
.yc-pill {
	display: inline-flex; align-items: center; height: 34px; padding: 0 16px;
	border: 1px solid #cfcfcf; border-radius: 17px; background: #fff;
	font-size: 13px; color: #1c1c1c; text-decoration: none;
}
.yc-pill.is-active { background: #014e2e; border-color: #014e2e; color: #fff; font-weight: 700; }
.yc-pill--reset { border-style: dashed; }

.yc-filterbar {
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
	margin: 10px 0 16px; position: relative; background: #fff;
}
.yc-filterbar .yc-fbtn {
	display: inline-flex; align-items: center; gap: 8px;
	height: 40px; padding: 0 16px; background: #fff;
	border: 1px solid #cfcfcf; border-radius: 20px;
	font: 400 13px Montserrat, sans-serif; color: #1c1c1c; cursor: pointer;
}
.yc-filterbar .yc-fbtn--primary { background: #014e2e; color: #fff; border-color: #014e2e; font-weight: 700; }
.yc-filterbar .yc-fbtn--ghost { text-decoration: none; }
.yc-filterbar .yc-fdrop select {
	height: 40px; min-width: 150px; padding: 0 34px 0 16px;
	border: 1px solid #cfcfcf; border-radius: 20px; background: #fff;
	font: 400 13px Montserrat, sans-serif; color: #1c1c1c; cursor: pointer;
	-webkit-appearance: none; appearance: none;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%231c1c1c' fill='none' stroke-width='1.3'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center;
}
.yc-filterbar .yc-fdrop--right { margin-left: auto; }
.yc-filterpanel {
	position: absolute; left: 0; top: 50px; z-index: 30;
	width: 340px; background: #fff; border: 1px solid #e2e2e2;
	box-shadow: 0 10px 30px rgba(0,0,0,.12); border-radius: 4px; padding: 18px 20px;
}
.yc-filterpanel-title { margin: 0 0 12px; font-weight: 700; font-size: 14px; }
.yc-filterpanel-list { list-style: none; margin: 0 0 16px; padding: 0; max-height: 260px; overflow: auto; }
.yc-filterpanel-list li { margin-bottom: 8px; font-size: 13px; }
.yc-filterpanel-list label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.yc-filterpanel-actions { display: flex; gap: 10px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }





@media (max-width: 1279px) {
	.max-content-width_constrained,
	.yr-container { padding-left: 16px !important; padding-right: 16px !important; }
}
@media (max-width: 767px) {
	.max-content-width_constrained,
	.yr-container { padding-left: 12px !important; padding-right: 12px !important; }
	.yr-slider__slide, .yr-slider__slide picture, .yr-slider__slide img {
		width: 100% !important;
		height: auto !important;
		display: block !important;
	}
}


/* ===== 结账页复选框：统一 20×20，文字垂直居中 ===== */
.yc-checkout-wrap input[type="checkbox"],
form.checkout input[type="checkbox"],
.woocommerce-form__input-checkbox {
	width: 20px !important;
	height: 20px !important;
	min-width: 20px !important;
	max-width: 20px !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 1px solid #b9c2bb !important;
	border-radius: 3px !important;
	background: #fff !important;
	accent-color: #014e2e;
	vertical-align: middle !important;
	flex: 0 0 20px;
	appearance: auto;
}

.yc-checkout-wrap .form-row label.checkbox,
.yc-checkout-wrap .woocommerce-form__label-for-checkbox,
.yc-checkout-wrap #ship-to-different-address label,
.yc-checkout-wrap .create-account {
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	line-height: 1.4 !important;
	cursor: pointer;
	margin: 0 !important;
	min-height: 20px !important;
}

.yc-checkout-wrap .create-account,
.yc-checkout-wrap #ship-to-different-address { margin: 14px 0 !important; }

/* 复选框行不要继承输入框高度 */
.yc-checkout-wrap .form-row-wide.create-account,
.yc-checkout-wrap #ship-to-different-address { width: 100% !important; }


/* ===== 隐藏所有收藏（心愿单）爱心 ===== */
.yr-product-card__favorite,
.yc-wrap .yr-product-card__favorite { display: none !important; }


/* ===== 首页主视觉轮播：按钮 + 圆点 ===== */
.swiper[data-yc-slider] { position: relative; }
.yc-hero-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 38px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
	cursor: pointer;
}
.yc-hero-nav--prev { left: 12px; }
.yc-hero-nav--next { right: 12px; }
.yc-hero-nav:hover { background: #fff; }
@media (max-width: 767px) {
	.yc-hero-nav { width: 34px; height: 34px; }
	.yc-hero-nav--prev { left: 8px; }
	.yc-hero-nav--next { right: 8px; }
}


/* ===== 商品卡：隐藏重复的小图徽标（原站用来放促销图，这里重复了商品图） ===== */
.yr-product-card__media-badge { display: none !important; }
.yr-product-card__badges .yr-media { display: none !important; }


/* ===== 手机端商品卡：图片统一比例，避免高低不齐 / 溢出 ===== */
@media (max-width: 767px) {
	.yr-product-card { overflow: hidden; }
	.yr-product-card__media {
		height: auto !important;
		max-height: none !important;
		aspect-ratio: 1 / 1;
		background: #dfede0;
	}
	.yr-product-card__media > a,
	.yr-product-card__media .yr-media,
	.yr-product-card__media .yr-media__wrapper,
	.yr-product-card__media .yr-media__container,
	.yr-product-card__media figure {
		height: 100% !important;
		width: 100% !important;
		display: block;
	}
	.yr-product-card__media img {
		width: 100% !important;
		height: 100% !important;
		object-fit: contain !important;
	}
	.yr-product-card__title-name { font-size: 13.5px !important; line-height: 1.3 !important; }
	.yr-product-card__pricing { font-size: 14px !important; }
	.yr-product-card__content { padding-top: 8px !important; }
}


/* ===== 隐藏原站自带的移动端搜索面板（用我们自己的搜索浮层） ===== */
.main-header__search-mobile,
#main-header_search {
	display: none !important;
}


/* ===== 顶部促销条：手机端自动换行、不裁切、不被页头压住 ===== */
@media (max-width: 767px) {
	#yc-topbar {
		height: auto !important;
		min-height: 44px;
		padding: 9px 46px 9px 14px;
		line-height: 1.3;
		text-align: center;
		position: relative;
		z-index: 5;
	}
	#yc-topbar .yc-bar-link {
		display: block;
		font-size: 12.5px !important;
		line-height: 1.35 !important;
		white-space: normal !important;
		word-break: break-word;
	}
	#yc-topbar .yc-bar-close {
		right: 8px !important;
		width: 30px !important;
		height: 30px !important;
		font-size: 20px !important;
	}
	.redesign-header { position: relative; z-index: 4; }
}


/* 促销条关闭按钮：确保可见可点 */
#yc-topbar .yc-bar-close {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	color: #fff !important;
	opacity: 1 !important;
	visibility: visible !important;
	z-index: 2;
}

.yc-hero-dots {
	position: absolute;
	left: 50%;
	bottom: 26px;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	z-index: 6;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(0, 0, 0, .22);
	backdrop-filter: blur(2px);
}
.yc-hero-dot {
	width: 7px;
	height: 7px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, .6);
	cursor: pointer;
	transition: width .25s ease, background .25s ease;
}
.yc-hero-dot[aria-current="true"] {
	width: 20px;
	background: #fff;
}
@media (max-width: 767px) {
	.yc-hero-dots { bottom: 24px; padding: 6px 9px; gap: 6px; }
	.yc-hero-dot { width: 8px; height: 8px; }
	.yc-hero-dot[aria-current="true"] { width: 22px; }
}


/* 隐藏 Swiper 自带的圆点（我们用自己的指示器） */
.swiper-pagination,
.yr-carousel .swiper-pagination,
.yr-carousel__pagination {
	display: none !important;
}


/* 促销条：强制品牌绿底、固定在上层 */
#yc-topbar {
	background: #143616 !important;
	color: #fff !important;
	position: relative;
	z-index: 20;
}
.yc-bar-link, #yc-topbar .yc-bar-link strong { color: #fff !important; }
#yc-topbar .yc-bar-close { color: #fff !important; }


/* 隐藏原站自带的轮播左右箭头（我们用自己的圆形按钮） */
.yr-carousel__button,
.yr-carousel__navigation,
.swiper-button-prev,
.swiper-button-next {
	display: none !important;
}


/* 商品轮播（首页系列区块）：恢复原站左右箭头 */
.swiper:has(.yr-product-card) .yr-carousel__navigation,
.yr-carousel:has(.yr-product-card) .yr-carousel__navigation,
.swiper:has(.yr-product-card) .yr-carousel__button,
.yr-carousel:has(.yr-product-card) .yr-carousel__button {
	display: block !important;
}
.swiper:has(.yr-product-card) .yr-carousel__button,
.yr-carousel:has(.yr-product-card) .yr-carousel__button {
	display: flex !important;
	align-items: center;
	justify-content: center;
	opacity: 1 !important;
	visibility: visible !important;
}
@media (max-width: 767px) {
	.swiper:has(.yr-product-card) .yr-carousel__navigation,
	.yr-carousel:has(.yr-product-card) .yr-carousel__navigation,
	.swiper:has(.yr-product-card) .yr-carousel__button,
	.yr-carousel:has(.yr-product-card) .yr-carousel__button {
		display: none !important;   /* 手机端商品是网格，不需要箭头 */
	}
}


/* 首页系列轮播（section[data-carrousel]）：改用自定义箭头 */
[data-carrousel] .yr-carousel__navigation,
[data-carrousel] .yr-carousel__button { display: none !important; }

[data-carrousel] .yr-carousel__navigation,
[data-carrousel] .yr-carousel__button {
	display: flex !important;
	align-items: center;
	justify-content: center;
	opacity: 1 !important;
	visibility: visible !important;
}
[data-carrousel] .yr-carousel__navigation {
	display: block !important;
	position: absolute !important;
	inset: 0 !important;
	pointer-events: none;
	z-index: 5;
}
[data-carrousel] .yr-carousel__button {
	position: absolute !important;
	top: 40% !important;
	width: 40px !important;
	height: 40px !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: #fff !important;
	color: #1c1c1e !important;
	box-shadow: 0 2px 10px rgba(0,0,0,.18) !important;
	pointer-events: auto;
	cursor: pointer;
}
[data-carrousel] .yr-carousel__button--prev { left: 4px !important; }
[data-carrousel] .yr-carousel__button--next { right: 4px !important; }
[data-carrousel] .yr-carousel__button.swiper-button-disabled { opacity: .35 !important; }
@media (max-width: 767px) {
	[data-carrousel] .yr-carousel__navigation,
	[data-carrousel] .yr-carousel__button { display: none !important; }
}


/* 系列轮播自定义箭头 */
.yc-carousel-nav {
	position: absolute;
	top: 38%;
	z-index: 6;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
	cursor: pointer;
}
.yc-carousel-nav--prev { left: 4px; }
.yc-carousel-nav--next { right: 4px; }
.yc-carousel-nav:hover { background: #f4f4f4; }
.yc-carousel-nav:disabled { opacity: .35; cursor: default; }
[data-carrousel] .swiper,
[data-carrousel] .yr-carousel__container { scrollbar-width: none; }
[data-carrousel] .swiper::-webkit-scrollbar { display: none; }
@media (max-width: 767px) {
	.yc-carousel-nav { display: none !important; }
}


/* ===== 最终规则：隐藏原站所有轮播原生按钮（统一用 .yc-hero-nav / .yc-carousel-nav） ===== */
.yr-carousel__button,
.yr-carousel__navigation,
.yr-carousel__pagination,
.swiper-button-prev,
.swiper-button-next,
.swiper-pagination {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}
