/* ==========================================================================
   selfmade — components.css (mega-menu, drawers, overlays, filters)
   ========================================================================== */

/* ---------- Announcement w/ hotline ---------- */
.announcement__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.announcement__msg { flex: 1; text-align: center; }
.announcement__hotline { flex: none; color: var(--sm-gold-2); font-weight: 600; }
.announcement__hotline:hover { color: #fff; }

/* ---------- Hero slider (mobile-first) ---------- */
.hero-slider { position: relative; overflow: hidden; background: #14110b; }
.hero-slider__track { display: flex; transition: transform .55s cubic-bezier(.4,0,.2,1); }
.hero-slide { position: relative; flex: 0 0 100%; aspect-ratio: 16 / 9; }
.hero-slide__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-slide__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,12,8,.9) 0%, rgba(15,12,8,.25) 45%, rgba(15,12,8,.15) 100%); }
.hero-slide__content { position: relative; z-index: 2; color: #fff; padding: 0 0 54px; max-width: 560px; display: flex; flex-direction: column; align-items: flex-start; }
.hero-slide__content.align-right { margin-left: auto; align-items: flex-end; text-align: right; }
.hero-slide__eyebrow { color: var(--sm-gold-2); letter-spacing: .2em; text-transform: uppercase; font-size: 12px; font-weight: 700; margin: 0 0 8px; }
.hero-slide__title { color: #fff; font-family: var(--sm-display); font-weight: 900; font-size: clamp(42px, 13vw, 76px); line-height: .95; letter-spacing: -.02em; text-transform: uppercase; margin: 0 0 12px; }
.hero-slide__sub { color: #e8e2d5; margin: 0 0 22px; max-width: 440px; font-size: 15px; }
.hero-slider__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); color: #14110b; font-size: 26px; line-height: 1; display: none; align-items: center; justify-content: center; z-index: 5; cursor: pointer; }
.hero-slider__arrow:hover { background: #fff; }
.hero-slider__arrow.prev { left: 18px; }
.hero-slider__arrow.next { right: 18px; }
.hero-slider__dots { position: absolute; left: 0; right: 0; bottom: 16px; z-index: 5; display: flex; gap: 8px; justify-content: center; }
.hero-slider__dots button { width: 9px; height: 9px; border-radius: 999px; border: 0; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; transition: .2s; }
.hero-slider__dots button.is-active { background: #fff; width: 26px; }
@media (min-width: 768px) {
	.hero-slide__bg { background-position: center; }
	.hero-slide__content { padding: 0; }
	.hero-slide__overlay { background: linear-gradient(to top, rgba(15,12,8,.55), rgba(15,12,8,.15) 50%), linear-gradient(to right, rgba(15,12,8,.7) 0%, rgba(15,12,8,.1) 55%, transparent 100%); }
	.hero-slide__content.align-right + .hero-slide__overlay,
	.hero-slide .hero-slide__overlay.align-right { background: linear-gradient(to top, rgba(15,12,8,.55), rgba(15,12,8,.15) 50%), linear-gradient(to left, rgba(15,12,8,.7) 0%, rgba(15,12,8,.1) 55%, transparent 100%); }
	.hero-slider__arrow { display: flex; }
	.hero-slide__sub { font-size: 16px; }
}

/* ---------- Primary nav list ---------- */
.primary-nav__list { display: flex; gap: 26px; align-items: center; flex-wrap: nowrap; }
.primary-nav__list > li > a { white-space: nowrap; }
.primary-nav__list .caret { display: inline-block; width: 0; height: 0; margin-left: 5px; vertical-align: middle; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: .8; }

/* ---------- Mega-menu ---------- */
.has-mega { position: static; }
.mega {
	position: absolute; left: 0; right: 0; top: 100%;
	background: #fff; color: var(--sm-ink);
	border-top: 1px solid var(--sm-line); box-shadow: 0 24px 40px rgba(24,20,15,.14);
	opacity: 0; visibility: hidden; transform: translateY(10px); transition: .22s ease; z-index: 70;
}
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega__inner { display: grid; grid-template-columns: repeat(4, 1fr) 1.3fr; gap: 28px; padding: 30px 0 34px; }
.mega__col h4 { margin: 0 0 14px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.mega__col h4 a { color: var(--sm-ink); }
.mega__col h4 a:hover { color: var(--sm-gold); }
.mega__col ul { display: block; }
.mega__col li { margin-bottom: 9px; }
.mega__col li a { color: #6a6151; font-size: 14px; display: flex; justify-content: space-between; gap: 10px; }
.mega__col li a:hover { color: var(--sm-gold); }
.mega__col .cnt { color: var(--sm-muted); font-size: 12px; }
.mega__promo {
	background: radial-gradient(120% 130% at 20% 20%, #2c2517, #17130d);
	color: #fff; border-radius: 14px; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 180px;
}
.mega__promo:hover { color: #fff; }
.mega__promo-tag { align-self: flex-start; background: var(--sm-sale); color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.mega__promo-title { font-family: var(--sm-display); font-weight: 800; font-size: 24px; margin-top: auto; }
.mega__promo-cta { color: var(--sm-gold-2); font-weight: 700; font-size: 13px; margin-top: 6px; }

/* ---------- Search overlay ---------- */
.overlay-bg { position: fixed; inset: 0; background: rgba(20,17,11,.45); opacity: 0; visibility: hidden; transition: .25s; z-index: 80; }
.overlay-bg.is-open { opacity: 1; visibility: visible; }
.search-overlay {
	position: fixed; left: 0; right: 0; top: 0; z-index: 95;
	background: #fff; border-bottom: 1px solid var(--sm-line); box-shadow: var(--sm-shadow);
	transform: translateY(-100%); transition: transform .3s ease;
}
.search-overlay.is-open { transform: translateY(0); }
.search-overlay__inner { padding: 26px 0; }
.search-overlay__form { display: flex; align-items: center; gap: 12px; }
.search-overlay__form > svg { width: 24px; height: 24px; color: var(--sm-muted); flex: none; }
.search-overlay__form input[type=search] { flex: 1; border: 0; border-bottom: 2px solid var(--sm-ink); font-size: 22px; padding: 10px 4px; background: transparent; outline: none; font-family: var(--sm-display); }
.search-overlay__close { background: none; border: 0; font-size: 30px; line-height: 1; color: var(--sm-muted); }
.search-overlay__hint { color: var(--sm-muted); font-size: 13px; margin-top: 10px; }

/* ---------- Cart drawer ---------- */
.cart-drawer {
	position: fixed; top: 0; right: 0; bottom: 0; width: 92%; max-width: 400px;
	background: #fff; z-index: 100; transform: translateX(100%); transition: transform .3s ease;
	display: flex; flex-direction: column;
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--sm-line); }
.cart-drawer__head h3 { margin: 0; font-family: var(--sm-display); font-size: 20px; }
.cart-drawer__close { background: none; border: 0; font-size: 28px; line-height: 1; color: var(--sm-muted); }
.widget_shopping_cart_content { flex: 1; overflow-y: auto; padding: 8px 22px 22px; display: flex; flex-direction: column; }
.woocommerce-mini-cart { list-style: none; margin: 0; padding: 0; }
.woocommerce-mini-cart__empty-message { color: var(--sm-muted); text-align: center; padding: 40px 0; }
li.woocommerce-mini-cart-item { display: flex; gap: 12px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--sm-line); position: relative; }
li.woocommerce-mini-cart-item a:not(.remove) { color: var(--sm-ink); font-weight: 600; font-size: 14px; display: block; }
li.woocommerce-mini-cart-item img { width: 60px; height: 78px; object-fit: cover; border-radius: 8px; float: none !important; margin: 0 !important; order: -1; }
li.woocommerce-mini-cart-item .quantity { color: var(--sm-muted); font-size: 13px; }
li.woocommerce-mini-cart-item a.remove { position: absolute; top: 14px; right: 0; width: 22px; height: 22px; line-height: 20px; text-align: center; color: var(--sm-muted) !important; font-size: 18px; }
.woocommerce-mini-cart__total { display: flex; justify-content: space-between; padding: 16px 0; font-weight: 700; border-bottom: 1px solid var(--sm-line); margin-bottom: 14px; }
.woocommerce-mini-cart__total .amount { color: var(--sm-ink); }
.woocommerce-mini-cart__buttons { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; }
.woocommerce-mini-cart__buttons a { display: block; text-align: center; padding: 13px; border-radius: 999px; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.woocommerce-mini-cart__buttons a.button { background: #fff !important; color: var(--sm-ink) !important; border: 1.5px solid var(--sm-ink); }
.woocommerce-mini-cart__buttons a.checkout { background: var(--sm-ink) !important; color: #fff !important; }
.woocommerce-mini-cart__buttons a.checkout:hover { background: var(--sm-gold) !important; }

/* ---------- Mobile nav accordion ---------- */
.mobile-nav { display: block; }
.mobile-nav > li > a, .m-acc__btn { display: block; width: 100%; text-align: left; padding: 14px 0; border-bottom: 1px solid var(--sm-line-dark); font-size: 16px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: #eee; background: none; border-left: 0; border-right: 0; border-top: 0; }
.m-acc__btn { display: flex; justify-content: space-between; align-items: center; }
.m-acc__btn span { color: var(--sm-gold-2); font-size: 20px; }
.m-acc__panel { display: none; padding: 4px 0 8px 12px; }
.m-acc.is-open .m-acc__panel { display: block; }
.m-acc.is-open .m-acc__btn span { transform: rotate(45deg); }
.m-acc__panel li a { display: block; padding: 9px 0; color: #bdbdbd; font-size: 14px; text-transform: none; }

/* ---------- Shop filters sidebar ---------- */
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 34px; align-items: start; }
.shop-filters { position: sticky; top: calc(var(--sm-header-h) + 16px); }
.filter-group { border-bottom: 1px solid var(--sm-line); padding: 18px 0; }
.filter-group:first-child { padding-top: 0; }
.filter-group h4 { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 14px; }
.filter-colors { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-color { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--sm-line); cursor: pointer; position: relative; }
.filter-color.is-active { box-shadow: 0 0 0 2px var(--sm-gold); }
.filter-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-size { min-width: 42px; height: 38px; padding: 0 10px; border: 1.5px solid var(--sm-line); border-radius: 8px; background: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }
.filter-size.is-active { border-color: var(--sm-ink); background: var(--sm-ink); color: #fff; }
.filter-list li { margin-bottom: 8px; }
.filter-list a { color: #6a6151; font-size: 14px; display: flex; justify-content: space-between; }
.filter-list a:hover, .filter-list a.is-active { color: var(--sm-gold); font-weight: 600; }
.filter-apply { margin-top: 14px; }
.filter-reset { display: inline-block; margin-top: 8px; font-size: 12px; color: var(--sm-muted); text-decoration: underline; }
.filter-toggle { display: none; }

/* ---------- Page hero (Look Book / News / Contact) ---------- */
.page-hero { background: var(--sm-cream-2); text-align: center; padding: 46px 0; border-bottom: 1px solid var(--sm-line); }
.page-hero .eyebrow { color: var(--sm-gold); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.page-hero h1 { font-family: var(--sm-display); font-weight: 800; font-size: clamp(30px, 4.5vw, 48px); letter-spacing: -.02em; margin: 6px 0 8px; }
.page-hero__sub { color: var(--sm-muted); margin: 0; }

/* ---------- Look Book grid ---------- */
.lookbook-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; grid-auto-flow: dense; }
.lookbook-item { position: relative; overflow: hidden; border-radius: var(--sm-radius); aspect-ratio: 3/4; background: var(--sm-cream-2); }
.lookbook-item.is-big { grid-column: span 2; grid-row: span 2; aspect-ratio: 1/1; }
.lookbook-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.lookbook-item:hover img { transform: scale(1.05); }
.lookbook-item__cta { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; color: #fff; font-weight: 700; font-size: 14px; background: linear-gradient(transparent, rgba(0,0,0,.7)); opacity: 0; transition: .25s; }
.lookbook-item:hover .lookbook-item__cta { opacity: 1; }

/* ---------- News grid ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card { background: #fff; border: 1px solid var(--sm-line); border-radius: var(--sm-radius); overflow: hidden; box-shadow: var(--sm-shadow); transition: transform .2s, box-shadow .2s; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--sm-shadow-lg); }
.news-card__media { display: block; aspect-ratio: 3/2; background: var(--sm-cream-2); overflow: hidden; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; }
.news-card__body { padding: 18px 18px 20px; }
.news-card__date { color: var(--sm-gold); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.news-card__title { font-size: 17px; font-weight: 700; margin: 6px 0 8px; line-height: 1.3; }
.news-card__title a { color: var(--sm-ink); }
.news-card__title a:hover { color: var(--sm-gold); }
.news-card__excerpt { color: #6a6151; font-size: 14px; margin: 0 0 12px; }
.news-card__more { font-weight: 700; font-size: 13px; color: var(--sm-ink); }
.news-card__more:hover { color: var(--sm-gold); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start; }
.contact-info h3, .contact-form h3 { font-family: var(--sm-display); font-weight: 800; font-size: 22px; margin: 0 0 18px; }
.contact-list { display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 12px; }
.contact-list span { font-size: 20px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--sm-cream-2); border-radius: 50%; flex: none; }
.contact-form { background: #fff; border: 1px solid var(--sm-line); border-radius: var(--sm-radius); padding: 24px; box-shadow: var(--sm-shadow); }
.contact-form input, .contact-form textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--sm-line); border-radius: 10px; margin-bottom: 12px; font-family: inherit; font-size: 14px; }
.form-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-map { border-radius: var(--sm-radius); overflow: hidden; border: 1px solid var(--sm-line); }
.contact-map iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ---------- Bong bóng liên hệ (1 icon -> xoè vòng cung) ---------- */
.sm-fab { position: fixed; left: 20px; bottom: 20px; z-index: 95; width: 56px; height: 56px; }
.sm-fab__toggle { position: absolute; inset: 0; border: 0; border-radius: 50%; background: var(--sm-gold); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 8px 22px rgba(0,0,0,.26); z-index: 3; transition: transform .2s ease, background .2s ease; }
.sm-fab__toggle:hover { transform: scale(1.06); }
.sm-fab__toggle svg { width: 28px; height: 28px; transition: transform .3s ease, opacity .2s ease; }
.sm-fab.is-open .sm-fab__toggle { background: var(--sm-ink); }
.sm-fab.is-open .sm-fab__toggle svg { opacity: 0; transform: rotate(90deg) scale(.6); }
.sm-fab__toggle::after { content: "\2715"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; opacity: 0; transition: opacity .2s ease; }
.sm-fab.is-open .sm-fab__toggle::after { opacity: 1; }

.sm-fab__ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(189,138,52,.5); animation: sm-fab-ring 2s ease-out infinite; }
.sm-fab.is-open .sm-fab__ring { display: none; }
@keyframes sm-fab-ring { 0% { box-shadow: 0 0 0 0 rgba(189,138,52,.5); } 70% { box-shadow: 0 0 0 16px rgba(189,138,52,0); } 100% { box-shadow: 0 0 0 0 rgba(189,138,52,0); } }

.sm-fab__item { position: absolute; left: 2px; bottom: 2px; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.22); transform: translate(0,0) scale(.3); opacity: 0; pointer-events: none; z-index: 2; transition: transform .34s cubic-bezier(.34,1.35,.5,1), opacity .24s ease; }
.sm-fab__item svg { width: 26px; height: 26px; }
.sm-fab.is-open .sm-fab__item { transform: translate(var(--x), var(--y)) scale(1); opacity: 1; pointer-events: auto; }
.sm-fab__item:hover { filter: brightness(1.08); color: #fff; }
.sm-fab__call { background: #12b76a; }
.sm-fab__call svg { width: 24px; height: 24px; }
.sm-fab__zalo { background: #0068ff; }
.sm-fab__zalo svg { width: 34px; height: 34px; }
.sm-fab__fb { background: #1877f2; }
.sm-fab__fb svg { width: 27px; height: 27px; }
.sm-fab.is-open .sm-fab__call { transition-delay: .02s; }
.sm-fab.is-open .sm-fab__zalo { transition-delay: .06s; }
.sm-fab.is-open .sm-fab__fb { transition-delay: .1s; }
@media (max-width: 560px) {
	.sm-fab { left: 14px; bottom: 14px; width: 52px; height: 52px; }
	.sm-fab__item { width: 48px; height: 48px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.mega__inner { grid-template-columns: repeat(3, 1fr); }
	.mega__promo { display: none; }
}
@media (max-width: 820px) {
	.lookbook-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
	.contact-grid { grid-template-columns: 1fr; }
	.form-row2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.lookbook-grid, .news-grid { grid-template-columns: 1fr; }
	.lookbook-item.is-big { grid-column: span 1; grid-row: span 1; aspect-ratio: 3/4; }
}
@media (max-width: 900px) {
	.shop-layout { grid-template-columns: 1fr; }
	.shop-filters { position: static; display: none; margin-bottom: 20px; }
	.shop-filters.is-open { display: block; }
	.filter-toggle { display: inline-flex; }
}
@media (max-width: 820px) {
	.announcement__hotline { display: none; }
	.mega { display: none; }
}
