/*
 * Theme Showroom — sang trọng, tối giản cho thiết bị vệ sinh cao cấp. Nạp sau assets/css/site.css.
 * Màu nhấn = var(--brand) (Admin → Cấu hình → Màu): dùng ít, cho giá / nút / chữ nhỏ phía trên tiêu đề.
 */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&display=swap');

:root {
    --serif: 'Playfair Display', Georgia, serif;
    --ink: #22262a;
    --ink-2: #6e7175;
    --line: #e8e3dc;
    --tile: #f6f2ed;         /* trắng ngà */
    --sand: #efe8df;
    --r-sm: 10px;
    --r-md: 16px;
    --wrap: 1280px;
    --gap: 22px;
    --header-h: 76px;
}
body { background: #fff; }
h1, h2, .page-title, .listing-head h1, .pd__name, .block__title { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }

/* ---------- Thanh thông báo ---------- */
.sr-announce { background: var(--ink); color: #d9d6d1; font-size: 13px; }
.sr-announce__in { display: flex; align-items: center; gap: 16px; min-height: 36px; }
.sr-announce a { color: #fff; }
.sr-announce a:hover { color: #fff; text-decoration: underline; }
.sr-announce__right { margin-left: auto; white-space: nowrap; }
.sr-dot { margin: 0 6px; opacity: .5; }

/* ---------- Header: logo · menu giữa · icon ---------- */
.header { background: rgb(255 255 255 / .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header__in { min-height: var(--header-h); gap: 24px; }
.logo img { max-height: 46px; }
.nav { margin-inline: auto; gap: 4px; align-self: stretch; }
.nav > * + .nav__link::before, .nav > * + .nav__drop > .nav__link::before { display: none; }
.nav__link { padding: 0 14px; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); position: relative; }
.nav__link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 22px; height: 1px; background: var(--brand); transform: scaleX(0); transition: transform .2s; }
.nav__link:hover, .nav__link.is-active { color: var(--ink); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__drop--mega .mega { border-top: 0; border-radius: 0 0 var(--r-md) var(--r-md); padding: 28px 32px 18px; box-shadow: 0 24px 50px rgb(0 0 0 / .1); }
.mega .mega__root { font-family: var(--serif); font-size: 17px; font-weight: 600; color: var(--ink); }
.mega a:hover { color: var(--brand); }
.nav__sub { border-radius: var(--r-sm); }

.sr-actions { display: flex; align-items: center; gap: 4px; }
.sr-icon { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 42px; min-width: 42px; padding: 0 9px; border: 0; border-radius: 999px; background: none; color: var(--ink); cursor: pointer; }
.sr-icon:hover { background: var(--tile); color: var(--ink); }
.sr-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr-icon__text { display: grid; line-height: 1.15; font-weight: 700; font-size: 15px; }
.sr-icon__text small { font-weight: 400; font-size: 11px; color: var(--ink-2); letter-spacing: .04em; }
.sr-icon .badge { top: 0; right: -2px; }

/* Khung tìm kiếm toàn màn hình */
.sr-searchbox { margin: 0; width: 100%; max-width: none; padding: 28px 0 40px; border: 0; background: #fff; box-shadow: 0 20px 50px rgb(0 0 0 / .12); }
.sr-searchbox::backdrop { background: rgb(20 20 20 / .45); }
.sr-searchbox__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.sr-searchbox__head strong { font-family: var(--serif); font-size: 24px; font-weight: 600; }
.sr-searchbox .search { max-width: none; margin: 0; }
.sr-searchbox .search input { height: 58px; padding: 0 64px 0 24px; border: 1px solid var(--line); border-radius: 999px; background: var(--tile); font-size: 17px; }
.sr-searchbox .search input:focus { background: #fff; border-color: var(--ink); }
.sr-searchbox .search button { position: absolute; right: 6px; top: 6px; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); }
.sr-searchbox .search button svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; }
.sr-searchbox__chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; font-size: 14px; color: var(--ink-2); }
.sr-searchbox__chips a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); }
.sr-searchbox__chips a:hover { border-color: var(--ink); }

/* ---------- Tiêu đề khối ---------- */
.sr-head { text-align: center; margin-bottom: 26px; }
.sr-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; text-align: left; }
.sr-eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--brand); }
.sr-title { margin: 0; font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1.2; }
.sr-title a:hover { color: var(--brand); }
.sr-link { font-weight: 600; font-size: 14px; border-bottom: 1px solid currentColor; white-space: nowrap; }
.sr-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; letter-spacing: .02em; }
.sr-btn:hover { background: var(--brand); color: #fff; }

/* ---------- Slider lớn bo góc ---------- */
.sr-hero { margin-top: 20px; }
.sr-hero .stage { background: none; }
.sr-hero .stage .slider__track { padding-inline: 0; gap: 0; }
.sr-hero .stage .slider__item { flex-basis: 100%; opacity: 1; }
.sr-hero .stage .slider__item img { aspect-ratio: 1280 / 480; border-radius: 22px; }
.sr-hero .stage__arrow { width: 46px; height: 46px; border-radius: 50%; background: rgb(255 255 255 / .9); box-shadow: 0 6px 18px rgb(0 0 0 / .12); }
.sr-hero .stage__arrow--prev { left: 18px; }
.sr-hero .stage__arrow--next { right: 18px; }

/* ---------- Mua theo danh mục ---------- */
.sr-cats { margin-top: 56px; }
.sr-cats__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 18px; }
.sr-cat { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 14px 20px; border-radius: var(--r-md); background: var(--tile); text-align: center; transition: transform .2s, box-shadow .2s, background .2s; }
.sr-cat:hover { transform: translateY(-4px); background: var(--sand); box-shadow: 0 14px 30px rgb(0 0 0 / .07); color: var(--ink); }
.sr-cat__img { display: block; width: 100%; aspect-ratio: 1; margin-bottom: 8px; }
.sr-cat__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; } /* ảnh nền trắng hoà vào nền ngà */
.sr-cat__name { font-family: var(--serif); font-size: 17px; font-weight: 600; line-height: 1.3; }
.sr-cat__count { font-size: 12.5px; color: var(--ink-2); }

/* ---------- Cam kết ---------- */
.promises { margin-top: 56px; }
.promises ul { border: 0; gap: 16px; }
.promises li, .promises li + li { border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; }
.promises__icon { background: var(--tile); color: var(--brand); width: 50px; height: 50px; }
.promises li > span:last-child strong { font-family: var(--serif); font-size: 17px; font-weight: 600; }

.home-intro { margin-top: 48px; }
.home-intro__title { font-size: 32px; }

/* ---------- Thẻ sản phẩm tối giản ---------- */
.tiles { border: 0; gap: 22px; }
.tiles--row { --per-row: 5; grid-auto-columns: calc((100% - (var(--per-row) - 1) * 22px) / var(--per-row)); }
.tile--sr { border: 0; background: none; }
.tile--sr .tile__media { position: relative; border-radius: var(--r-md); background: var(--tile); overflow: hidden; }
.tile--sr .tile__img { padding: 22px; background: none; }
.tile--sr .tile__img img { mix-blend-mode: multiply; }
.tile--sr .tile__off { left: 12px; top: 12px; border-radius: 999px; padding: 3px 10px; }
.tile__stock { position: absolute; right: 12px; top: 12px; padding: 3px 10px; border-radius: 999px; background: #fff; font-size: 12px; color: var(--ink-2); }
.tile__cart { position: absolute; right: 12px; bottom: 12px; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
.tile--sr:hover .tile__cart, .tile__cart:focus-within { opacity: 1; transform: none; }
.tile__cart button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 18px rgb(0 0 0 / .18); }
.tile__cart button:hover { background: var(--brand); }
.tile__cart svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.tile--sr .tile__body { padding: 14px 4px 6px; }
.tile--sr .tile__model { letter-spacing: .08em; text-transform: uppercase; font-size: 11.5px; }
.tile--sr .tile__name { font-size: 15px; font-weight: 500; }
.tile--sr .price strong { font-size: 16px; color: var(--ink); }
.tile--sr .price s { color: #a7a29b; }
.rail__btn { border-radius: 50%; width: 40px; height: 40px; }

/* ---------- Ưu đãi + các khối danh mục ---------- */
.sr-sale { margin-top: 56px; }
.sr-sale .block__title { font-size: 30px; }
.sr-band { padding: 64px 0; }
.sr-band--tint { background: var(--tile); }
.sr-band--tint .tile--sr .tile__media { background: #fff; }
.sr-feature { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 40px; align-items: center; }
.sr-feature__panel .sr-title { font-size: 32px; margin-bottom: 18px; }
.sr-feature__links { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 2px; }
.sr-feature__links a { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.sr-feature__links a::after { content: "→"; opacity: 0; transform: translateX(-6px); transition: .2s; }
.sr-feature__links a:hover { color: var(--ink); }
.sr-feature__links a:hover::after { opacity: 1; transform: none; }
.sr-feature__products .block__title, .sr-feature__products .chips, .sr-feature__products .block__more { display: none; }
.sr-feature__products .block__head { margin-bottom: 12px; }
.sr-feature .tiles--row { --per-row: 4; }

/* ---------- Đăng ký nhận tin ---------- */
.newsletter { margin-top: 0; background: linear-gradient(rgb(28 30 33 / .82), rgb(28 30 33 / .82)), var(--bg, none) center / cover, var(--ink); }
.newsletter h2 { font-family: var(--serif); font-size: 32px; }
.newsletter__in { padding-block: 64px; }
.newsletter__form input { height: 54px; border-radius: 999px; padding: 0 22px; }
.newsletter__form .btn { min-height: 54px; border-radius: 999px; padding: 0 28px; }
@media (max-width: 400px) { .newsletter h2 { font-size: 26px; } .newsletter__form .btn { padding: 0 18px; } }

/* ---------- Tin tức kiểu tạp chí ---------- */
.sr-mag { margin-top: 64px; }
.sr-mag__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; }
.sr-mag__lead { display: block; }
.sr-mag__lead img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-md); background: var(--tile); }
.sr-mag__body h3 { margin: 16px 0 8px; font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.3; }
.sr-mag__body p { margin: 0; color: var(--ink-2); }
.sr-mag__list { display: grid; gap: 18px; align-content: start; }
.sr-mag__item { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.sr-mag__item:last-child { border-bottom: 0; }
.sr-mag__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-sm); background: var(--tile); }
.sr-mag__item h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 17px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sr-mag__item small { color: var(--brand); font-weight: 600; }
.sr-mag a:hover h3 { color: var(--brand); }

/* ---------- Footer sáng màu ngà ---------- */
.home-about { background: var(--tile); }
.footer { background: var(--sand); color: var(--ink-2); }
.footer__title { color: var(--ink); text-transform: none; letter-spacing: 0; font-family: var(--serif); font-size: 20px; font-weight: 600; }
.footer a { color: var(--ink); }
.footer a:hover { color: var(--brand); }
.footer__about strong, .footer__about b { color: var(--ink); }
.footer__about.prose--invert, .footer__about.prose--invert :is(p, span, li, div, a) { color: var(--ink-2) !important; }
.footer__about.prose--invert :is(strong, b) { color: var(--ink) !important; }
.social-block a { background: #fff; color: var(--ink); }
.social-block a:hover { color: #fff; }
.footer__bottom { border-top-color: rgb(0 0 0 / .08); }

/* ---------- Trang danh mục / sản phẩm ---------- */
.catnav { border-radius: var(--r-md); }
.catnav__title { font-family: var(--serif); font-size: 18px; font-weight: 600; background: var(--tile); }
.quick-sort a.is-active { background: var(--ink); border-color: var(--ink); }

/* ---------- Máy tính bảng / điện thoại ---------- */
@media (max-width: 1180px) {
    .sr-icon__text { display: none; }
    .nav__link { padding: 0 10px; letter-spacing: .08em; }
}
@media (max-width: 1100px) {
    .sr-feature { grid-template-columns: 1fr; gap: 20px; }
    .sr-feature__links { grid-template-columns: repeat(2, 1fr); column-gap: 20px; }
    .sr-feature .tiles--row { --per-row: 3.3; }
    .tiles--row { --per-row: 3.5; }
}
@media (max-width: 900px) {
    :root { --header-h: 60px; }
    .sr-announce__in > a, .sr-announce__in > span:first-child { display: none; }
    .sr-announce__right { margin: 0 auto; }
    .sr-actions .sr-icon--call { display: none; }
    .sr-actions { margin-left: auto; }
    .sr-title { font-size: 26px; }
    .sr-hero { margin-top: 12px; }
    .sr-hero .stage .slider__item img { aspect-ratio: 16 / 9; border-radius: 14px; }
    .sr-cats { margin-top: 36px; }
    .sr-cats__grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
    .sr-cat__name { font-size: 15px; }
    .sr-band { padding: 40px 0; }
    .tiles--row, .sr-feature .tiles--row { --per-row: 2.2; }
    .tiles { gap: 14px; }
    .tiles--row { grid-auto-columns: calc((100% - (var(--per-row) - 1) * 14px) / var(--per-row)); }
    .tile__cart { opacity: 1; transform: none; } /* điện thoại không có rê chuột: luôn hiện nút giỏ */
    .tile__cart button { width: 38px; height: 38px; }
    .sr-mag__grid { grid-template-columns: 1fr; }
    .sr-mag__item { grid-template-columns: 110px 1fr; }
    .sr-head--row { flex-direction: column; align-items: flex-start; }
}

/* Mã sản phẩm dài (combo) -> 1 dòng, cắt "…" ; ẩn chữ alt khi ảnh lỗi */
.tile--sr .tile__model { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tile--sr img, .sr-cat img, .sr-mag img, .sr-hero img { color: transparent; font-size: 0; }
