/* ==========================================================================
   Trang chủ kiểu OH! Cosmetics — hero ảnh vòm, flash sale thẻ vòm, giới thiệu, banner video,
   đánh giá khách hàng, thanh cam kết. Màu lấy từ token --bed-* (bed-base.css).
   ========================================================================== */
:root { --bed-oh-grad: linear-gradient(112deg, #bdd4dc 4.95%, #c7dedb 55.63%, #ebe4d4 87.94%); }

/* ---------- Hero ---------- */
.bed-oh-hero { position: relative; z-index: 0; padding: 80px 0 350px; background: #f5f1ea center bottom / cover no-repeat; overflow: visible; }
.bed-ohhero__row { max-width: var(--bed-container, 1214px); margin: 0 auto; padding: 0 12px; display: flex; align-items: center; gap: 24px; }
.bed-ohhero__text { flex: 1 1 50%; min-width: 0; order: 1; }
.bed-ohhero__img { flex: 1 1 50%; min-width: 0; order: 2; }
.bed-ohhero__title { display: block; margin-bottom: 16px; }
.bed-ohhero__title img { display: block; width: 100%; max-width: 730px; height: auto; }
.bed-ohhero__desc { width: 560px; max-width: 100%; margin: 0 0 40px; font-size: 22px; line-height: 1.5; color: var(--bed-fg); }
.bed-ohhero__img img { display: block; width: 100%; max-width: 667px; height: auto; margin-left: auto; animation: bedOhScale 3s infinite; }
@keyframes bedOhScale { 0%, 100% { transform: scale(.92); } 50% { transform: scale(1); } }
@media (max-width: 991px) { .bed-oh-hero { padding: 40px 0 180px; } .bed-ohhero__desc { font-size: 18px; margin-bottom: 24px; } }
@media (max-width: 767px) {
	.bed-oh-hero { padding: 24px 0 120px; }
	.bed-ohhero__row { flex-direction: column; align-items: stretch; }
	.bed-ohhero__img { order: 1; } .bed-ohhero__text { order: 2; }
	.bed-ohhero__desc { font-size: 16px; }
}
.bed-oh-hero + .bed-section { position: relative; z-index: 1; }

/* ---------- Flash sale (thẻ vòm + nền gradient) ---------- */
.bed-deal--arch .bed-deal__panel { position: relative; background: var(--bed-oh-grad); border-radius: 20px; padding: 50px 40px 56px; box-shadow: none; }
.bed-deal--arch .bed-deal__panel::before { content: ''; position: absolute; top: -33px; left: 50%; transform: translateX(-50%); width: 72px; height: 81px; background: var(--bed-oh-deal-ar, none) center / contain no-repeat; pointer-events: none; }
.bed-deal--arch .bed-deal__head { justify-content: space-between; margin-bottom: 30px; }
.bed-deal--arch .bed-deal__text { text-align: left; }
.bed-deal--arch .bed-deal__title { font-family: var(--bed-font-body); font-size: 30px; font-weight: 700; text-transform: uppercase; color: var(--bed-primary); }
.bed-deal--arch .bed-deal__sub { display: none; }
@media (max-width: 767px) { .bed-deal--arch .bed-deal__panel { padding: 32px 16px 48px; } }
.bed-deal--arch .bed-card__inner, .bed-ohcards--arch .bed-card__inner { border-radius: 200px 200px 20px 20px; background: #fff; padding: 12px; }
.bed-deal--arch .bed-card__media, .bed-ohcards--arch .bed-card__media { border-radius: 200px 200px 0 0; overflow: hidden; }
.bed-deal--arch .bed-card__media img, .bed-ohcards--arch .bed-card__media img { border-radius: 200px 200px 0 0; }
.bed-deal--arch .bed-card__badges { display: none; }

/* ---------- Giới thiệu ---------- */
.bed-ohabout__row { display: flex; align-items: center; gap: 32px; }
.bed-ohabout__text { flex: 1 1 58%; min-width: 0; }
.bed-ohabout__img { flex: 1 1 42%; min-width: 0; }
.bed-ohabout__img img { display: block; width: 100%; height: auto; }
.bed-ohabout__intro { margin: 0 0 24px; font-size: 16px; line-height: 1.6; }
.bed-ohabout__sub { display: block; margin-bottom: 24px; font-size: 18px; color: #000; }
.bed-ohabout__items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 24px; }
.bed-ohabout__icon { display: block; width: 70px; height: 70px; margin-bottom: 12px; }
.bed-ohabout__icon img { display: block; width: 70px; height: 70px; object-fit: contain; }
.bed-ohabout__item b { display: block; margin-bottom: 8px; font-size: 16px; text-transform: uppercase; }
.bed-ohabout__item p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--bed-n300); }
@media (max-width: 991px) { .bed-ohabout__row { flex-direction: column; } .bed-ohabout__img { width: 100%; } }
@media (max-width: 575px) { .bed-ohabout__items { grid-template-columns: 1fr; } }

/* ---------- Banner video ---------- */
.bed-vbanner { position: relative; }
.bed-vbanner__link { position: relative; display: block; border-radius: 40px; }
.bed-vbanner__link img { position: relative; z-index: 1; display: block; width: 100%; height: auto; border-radius: 40px; }
.bed-vbanner__play { position: absolute; z-index: 2; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100px; height: 100px; border-radius: 50%; background: #fff; opacity: .7; display: flex; align-items: center; justify-content: center; color: var(--bed-fg); transition: opacity .2s; }
.bed-vbanner__play::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #fff; opacity: .5; animation: bedOhPulse 1s ease-in-out infinite alternate; }
.bed-vbanner__play svg { position: relative; margin-left: 6px; }
.bed-vbanner__link:hover .bed-vbanner__play { opacity: 1; }
@keyframes bedOhPulse { from { transform: scale(1); } to { transform: scale(1.2); } }
@media (min-width: 768px) {
	.bed-vbanner__link::before, .bed-vbanner__link::after { content: ''; position: absolute; z-index: 0; width: 216px; height: 288px; border-radius: 22px; }
	.bed-vbanner__link::before { bottom: -30px; left: -30px; border: 1px solid var(--bed-accent); }
	.bed-vbanner__link::after { top: -30px; right: -30px; border: 1px solid var(--bed-primary); }
}
@media (max-width: 767px) { .bed-vbanner__link, .bed-vbanner__link img { border-radius: 20px; } .bed-vbanner__play { width: 64px; height: 64px; } }
.bed-video-pop { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .5); opacity: 0; visibility: hidden; transition: opacity .25s; }
.bed-video-pop.is-open { opacity: 1; visibility: visible; }
.bed-video-pop__box { position: relative; width: 800px; max-width: 90%; padding: 10px; background: #fff; }
.bed-video-pop__frame { position: relative; padding-bottom: 56.25%; }
.bed-video-pop__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bed-video-pop__close { position: absolute; top: -12px; right: -12px; width: 24px; height: 24px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 3px; cursor: pointer; line-height: 1; padding: 0; font-size: 16px; }

/* ---------- Đánh giá khách hàng ---------- */
.bed-oh-feedback { position: relative; padding: 60px 0; background: var(--bed-oh-grad); overflow: hidden; }
.bed-ohfb__bg { position: absolute; inset: 0; background: center / cover no-repeat; pointer-events: none; }
.bed-ohfb__inner { position: relative; }
.bed-ohfb__row { display: flex; align-items: center; gap: 24px; margin-top: 32px; }
.bed-ohfb__img { flex: 1 1 50%; min-width: 0; }
.bed-ohfb__img img { display: block; width: 100%; height: auto; }
.bed-ohfb__list { position: relative; flex: 1 1 50%; min-width: 0; width: 645px; max-width: 100%; margin: 0 auto; }
.bed-ohfb__viewport { overflow: hidden; height: 704px; }
.bed-ohfb__track { display: flex; flex-direction: column; gap: 22px; transition: transform .45s ease; }
.bed-ohfb__card { position: relative; display: flex; flex: 0 0 220px; min-height: 220px; box-sizing: border-box; padding: 20px; border-radius: 30px; background: #fff var(--bed-oh-quote, none) right 20px bottom 20px no-repeat; }
.bed-ohfb__avatar { flex: 0 0 180px; width: 180px; height: 180px; max-height: 180px; margin-right: 20px; object-fit: cover; border-radius: 26px; }
.bed-ohfb__info { min-width: 0; padding-right: 20px; }
.bed-ohfb__role { display: block; margin-bottom: 8px; font-size: 12px; color: #626a6b; }
.bed-ohfb__name { display: block; margin-bottom: 8px; font-size: 18px; }
.bed-ohfb__info p { margin: 0; font-size: 14px; line-height: 1.5; }
.bed-ohfb__stars { position: absolute; top: 20px; right: 20px; width: 120px; height: 24px; background: var(--bed-oh-vote, none) center / contain no-repeat; }
.bed-ohfb__dots { position: absolute; top: 0; right: -22px; display: flex; flex-direction: column; gap: 10px; }
.bed-ohfb__dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .25); cursor: pointer; }
.bed-ohfb__dot.is-active { background: var(--bed-primary); }
@media (max-width: 991px) {
	.bed-ohfb__row { flex-direction: column; } .bed-ohfb__img { display: none; }
	.bed-ohfb__viewport { height: auto; } .bed-ohfb__track { transform: none !important; } .bed-ohfb__dots { display: none; }
	.bed-ohfb__card { flex-basis: auto; } .bed-ohfb__stars { position: static; margin-top: 8px; }
}
@media (max-width: 575px) { .bed-ohfb__card { flex-direction: column; } .bed-ohfb__avatar { margin: 0 0 12px; } }

/* ---------- Thanh cam kết ---------- */
.bed-ohsv__row { display: flex; flex-wrap: wrap; gap: 8px 0; }
.bed-ohsv__item { flex: 0 0 25%; display: flex; align-items: center; gap: 16px; box-sizing: border-box; padding: 8px 12px; min-width: 0; }
.bed-ohsv__icon { flex: none; display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; border: 1px solid var(--bed-primary); border-radius: 50%; padding: 10px; box-sizing: border-box; }
.bed-ohsv__icon img { display: block; width: 38px; height: 38px; object-fit: contain; }
.bed-ohsv__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bed-ohsv__body b { font-size: 16px; text-transform: uppercase; line-height: 1.3; }
.bed-ohsv__body span { font-size: 14px; color: var(--bed-n300); }
@media (max-width: 991px) { .bed-ohsv__item { flex-basis: 50%; } }
@media (max-width: 575px) { .bed-ohsv__item { flex-basis: 100%; } }

/* Flash sale kiểu OH!: ẩn đồng hồ, nút "Xem tất cả" bên phải tiêu đề */
.bed-deal--arch .bed-deal__time { display: none; }
.bed-deal__btn { display: none; }
.bed-deal--arch .bed-deal__btn { display: inline-flex; align-items: center; padding: 8px 24px; border: 1px solid var(--bed-primary); border-radius: 999px; background: transparent; color: var(--bed-primary) !important; font-size: 14px; transition: background .2s, color .2s; }
.bed-deal--arch .bed-deal__btn:hover { background: var(--bed-primary); color: #fff !important; }
@media (max-width: 991px) { .bed-deal--arch .bed-deal__btn { display: none; } }

/* Flash sale: 5 thẻ/hàng ở desktop (mẫu: xl 5 · lg 3 · md 3 · xs 2) */
.bed-deal--arch .bed-deal__slider .bed-slide { width: 57%; padding-left: 10px; }
@media (min-width: 768px) { .bed-deal--arch .bed-deal__slider .bed-slide { width: 33.3333%; padding-left: 20px; } }
@media (min-width: 1200px) { .bed-deal--arch .bed-deal__slider .bed-slide { width: 20%; } }
.bed-deal--arch .bed-deal__slider { margin-left: -10px; }
@media (min-width: 768px) { .bed-deal--arch .bed-deal__slider { margin-left: -20px; } }
.bed-deal--arch .bed-deal__slider.bed-slider > div.bed-slide, .bed-deal--arch .bed-deal__slider .flickity-slider > div.bed-slide { width: 57% !important; }
@media (min-width: 768px) { .bed-deal--arch .bed-deal__slider.bed-slider > div.bed-slide, .bed-deal--arch .bed-deal__slider .flickity-slider > div.bed-slide { width: 33.3333% !important; } }
@media (min-width: 1200px) { .bed-deal--arch .bed-deal__slider.bed-slider > div.bed-slide, .bed-deal--arch .bed-deal__slider .flickity-slider > div.bed-slide { width: 25% !important; } }

/* Tab sản phẩm kiểu viền rời ([bed_product_tabs variant="pills"]) */
.bed-ptabs--pills .bed-ptabs__nav { background: transparent; padding: 0; gap: 8px; flex-wrap: wrap; justify-content: center; }
.bed-ptabs--pills .bed-ptabs__pill { padding: 0 20px; min-height: 45px; border: 1px solid var(--bed-accent); font-size: 18px; line-height: 43px; background: transparent; box-shadow: none; }
.bed-ptabs--pills .bed-ptabs__pill:hover { background: var(--bed-primary); border-color: var(--bed-primary); color: #fff; }
.bed-ptabs--pills .bed-ptabs__pill.is-active { background: var(--bed-primary); border-color: var(--bed-primary); color: #fff; box-shadow: none; font-weight: 500; }
@media (max-width: 767px) { .bed-ptabs--pills .bed-ptabs__nav { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; } .bed-ptabs--pills .bed-ptabs__pill { font-size: 15px; } }
