/* ==========================================================================
   Vision Eyewear — Homepage theme (boxed fashion-store layout)
   Palette: Nâu Mocha #594237 · Kem #F7F2E9 · Vàng Champagne #C4A16A · Trắng #FFFFFF
   Font: Be Vietnam Pro (single family)
   ========================================================================== */

:root {
  /* Bảng màu thương hiệu "Mocha" */
  --mocha: #594237;          /* chủ đạo */
  --mocha-deep: #3f2e26;
  --cream: #f7f2e9;          /* nền */
  --champagne: #c4a16a;      /* nhấn — chi tiết trang trí */
  --champagne-tint: #efe3cf;
  --white: #ffffff;          /* bổ trợ */

  /* Semantic tokens */
  --pastel: var(--champagne);
  --pastel-deep: #b08d57;
  --pastel-tint: var(--champagne-tint);
  --cta: var(--mocha);
  --cta-deep: var(--mocha-deep);
  --ink: var(--mocha);
  --soft: #ffffff;
  --bg-canvas: var(--cream);
  --bg-elevated: #ffffff;
  --studio: #ffffff;
  --text-primary: var(--ink);
  --text-muted: #7a6458;
  --text-dim: #a8968a;
  --border: rgba(89, 66, 55, .16);
  --border-btn: var(--ink);

  --font-sans: "Be Vietnam Pro", "Helvetica Neue", Arial, sans-serif;
  --font-label: var(--font-sans);

  --wrap: 1180px;
  --gutter: 20px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0; background: var(--bg-canvas); color: var(--text-primary);
  font-family: var(--font-sans); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, figure, ul { margin: 0; padding: 0; }
ul { list-style: none; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--cta); outline-offset: 3px; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type primitives ---------- */
.eyebrow {
  font-family: var(--font-label); font-size: 14px; font-weight: 600; line-height: 20px;
  text-transform: uppercase; letter-spacing: .08em; color: var(--ink);
}
.link-underline {
  font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; padding-bottom: 3px;
  transition: color .3s var(--ease);
}
.link-underline:hover { color: var(--cta); animation: underline-redraw .7s var(--ease); }
@keyframes underline-redraw {
  0% { background-size: 100% 1.5px; background-position: 100% 100%; }
  45% { background-size: 0% 1.5px; background-position: 100% 100%; }
  55% { background-size: 0% 1.5px; background-position: 0 100%; }
  100% { background-size: 100% 1.5px; background-position: 0 100%; }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 26px; border: 1px solid var(--ink);
  font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  color: var(--ink); background: transparent;
  transition: color .45s var(--ease), border-color .45s var(--ease), transform .35s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--cta);
  transform: scaleY(0); transform-origin: 50% 100%; transition: transform .45s var(--ease);
}
.btn:hover { color: #fff; border-color: var(--cta); transform: translateY(-1px); }
.btn:hover::before { transform: scaleY(1); }
.btn:active { transform: translateY(0) scale(.98); transition-duration: .1s; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--white { background: #fff; border-color: #fff; color: var(--ink); }
.btn--solid { background: var(--cta); border-color: var(--cta); color: #fff; }
.btn--solid::before { background: var(--cta-deep); }
.btn--solid:hover { border-color: var(--cta-deep); }
.btn--block { width: 100%; height: 54px; }
.btn.is-disabled { opacity: .35; pointer-events: none; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40; height: var(--header-h);
  background: var(--soft); transition: background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.is-scrolled { background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--border); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; flex: none; }
.logo img { height: 40px; width: auto; transition: transform .5s var(--ease); }
.logo:hover img { transform: scale(1.04); }
.nav { flex: 1; display: flex; justify-content: center; align-items: center; gap: 36px; }
.nav__item { position: relative; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 10px 0;
  font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink);
  transition: color .3s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--ink);
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav__link:hover, .nav__item:hover > .nav__link { color: var(--cta); }
.nav__link:hover::after, .nav__link.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav__link:hover::after { background: var(--cta); }
.caret { width: 10px; height: 6px; stroke-width: 1.8; transition: transform .3s var(--ease); }
.nav__item:hover .caret { transform: rotate(180deg); }
.badge {
  position: absolute; left: 50%; bottom: 100%; transform: translate(-10%, 4px);
  padding: 1px 7px; font-size: 10px; font-weight: 600; letter-spacing: .04em; line-height: 16px; text-transform: none;
}
.badge::after { content: ""; position: absolute; left: 8px; top: 100%; border: 4px solid transparent; border-top-color: inherit; }
.badge--new { background: var(--pastel); color: var(--ink); border-color: var(--pastel); }
.badge--hot { background: var(--cta); color: #fff; border-color: var(--cta); }
.dropdown {
  position: absolute; top: 100%; left: -18px; min-width: 240px; padding: 10px 0;
  background: #fff; box-shadow: 0 16px 40px rgba(89, 66, 55, .12); border-top: 2px solid var(--cta);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
}
.nav__item:hover .dropdown, .nav__item:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.dropdown a, .dropdown button { display: block; width: 100%; padding: 9px 18px; text-align: left; font-size: 15px; color: var(--text-muted); transition: color .25s, padding-left .3s var(--ease); }
.dropdown a:hover, .dropdown button:hover { color: var(--cta); padding-left: 24px; }
.header-tools { display: flex; align-items: center; gap: 14px; flex: none; }
.tool { position: relative; display: grid; place-items: center; width: 40px; height: 40px; transition: color .3s; }
.tool svg { width: 24px; height: 24px; }
.tool:hover { color: var(--cta); }
.tool__count {
  position: absolute; top: 2px; right: -2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
  background: var(--ink); color: #fff; font-size: 11px; font-weight: 600; line-height: 19px; text-align: center;
}
.hamburger { display: none; width: 40px; height: 40px; place-items: center; }
.hamburger svg { width: 26px; height: 26px; }

/* ---------- Hero slider ---------- */
.hero { position: relative; background: var(--soft); overflow: hidden; }
.hero__inner { position: relative; min-height: clamp(460px, 62vh, 600px); display: flex; flex-direction: column; padding-bottom: 32px; }
.hero__slides { position: relative; flex: 1; display: grid; }
.slide {
  grid-area: 1 / 1; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px;
  opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility 0s .8s;
}
.slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
.slide__text { padding: 40px 0 40px 8%; text-align: center; }
.slide__tag { font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--text-dim); }
.slide__title {
  margin: 16px 0 30px; font-size: clamp(36px, 4.4vw, 58px); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em;
}
.slide .slide__tag, .slide .slide__title, .slide .btn { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.slide.is-active .slide__tag { opacity: 1; transform: none; transition-delay: .15s; }
.slide.is-active .slide__title { opacity: 1; transform: none; transition-delay: .28s; }
.slide.is-active .btn { opacity: 1; transform: none; transition-delay: .4s; }
.slide__media { position: relative; align-self: stretch; display: grid; place-items: center; min-height: 380px; }
.slide__circle {
  position: absolute; width: min(82%, 440px); aspect-ratio: 1; border-radius: 50%; background: var(--pastel);
  transform: scale(.85); transition: transform 1.2s var(--ease);
}
.slide.is-active .slide__circle { transform: scale(1); }
.slide__photo {
  position: relative; width: min(70%, 380px); aspect-ratio: 1; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, .6);
}
.slide__product {
  position: absolute; left: 4%; bottom: 12%; width: min(42%, 230px);
  padding: 14px 18px; background: #fff; box-shadow: 0 18px 40px rgba(89, 66, 55, .12);
  transform: translateX(-24px); opacity: 0; transition: transform 1s var(--ease) .35s, opacity 1s var(--ease) .35s;
}
.slide.is-active .slide__product { transform: none; opacity: 1; }
.hero__tabs { display: flex; align-items: center; gap: 0; padding: 0 0 34px; }
.hero__tabs button { padding: 4px 22px; font-size: 15px; font-weight: 600; color: var(--text-dim); position: relative; transition: color .3s; }
.hero__tabs button:first-child { padding-left: 0; }
.hero__tabs button + button::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 14px; margin-top: -7px; background: var(--border); }
.hero__tabs button.is-active { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.hero__tabs button:hover { color: var(--cta); }
.hero__arrow {
  position: absolute; top: 50%; z-index: 2; width: 48px; height: 48px; margin-top: -24px; display: grid; place-items: center;
  color: var(--ink); transition: color .3s, transform .35s var(--ease);
}
.hero__arrow svg { width: 26px; height: 26px; }
.hero__arrow--prev { left: 12px; }
.hero__arrow--next { right: 12px; }
.hero__arrow--prev:hover { color: var(--cta); transform: translateX(-4px); }
.hero__arrow--next:hover { color: var(--cta); transform: translateX(4px); }

/* ---------- Feature (hashtag + portrait + grid) ---------- */
.feature { display: grid; grid-template-columns: 34% 1fr; gap: 56px; padding-top: 96px; padding-bottom: 32px; align-items: start; }
.feature--flip { grid-template-columns: 1fr 34%; }
.feature__side { display: flex; flex-direction: column; align-items: center; gap: 44px; padding-top: 56px; }
.hashtag {
  font-size: clamp(42px, 4.6vw, 62px); font-weight: 700; line-height: 1; letter-spacing: -0.02em;
  padding-bottom: 12px; border-bottom: 4px solid var(--ink);
}
.portrait { position: relative; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: var(--soft); }
.portrait img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.portrait:hover img { transform: scale(1.04); }
.portrait .btn { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); }
.portrait .btn:hover { transform: translate(-50%, -1px); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px 34px; margin-bottom: 30px; }
.tabs button {
  padding: 6px 0; font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim);
  background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0 2px no-repeat; transition: color .3s, background-size .4s var(--ease);
}
.tabs button:hover { color: var(--ink); }
.tabs button.is-active { color: var(--ink); background-size: 100% 2px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }

.tile { text-align: center; animation: tile-in .6s var(--ease) both; }
.tile:nth-child(2) { animation-delay: .05s; } .tile:nth-child(3) { animation-delay: .1s; }
.tile:nth-child(4) { animation-delay: .15s; } .tile:nth-child(5) { animation-delay: .2s; } .tile:nth-child(6) { animation-delay: .25s; }
@keyframes tile-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.tile__media { position: relative; aspect-ratio: 4 / 5; background: var(--soft); overflow: hidden; }
.tile__media > a { position: absolute; inset: 0; display: grid; place-items: center; }
.tile__media img { width: 82%; max-height: 70%; object-fit: contain; transition: transform .7s var(--ease); }
.tile:hover .tile__media img { transform: scale(1.06); }
.tile--lens .tile__media { background: #fff; }
.tile--lens .tile__media img { width: 100%; max-height: 100%; }
.tile__badge { position: absolute; top: 14px; left: 0; padding: 2px 10px; background: var(--cta); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.tile__wish {
  position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; display: grid; place-items: center;
  color: var(--ink); transition: color .3s, transform .3s var(--ease);
}
.tile--lens .tile__wish { color: #fff; }
.tile__wish svg { width: 22px; height: 22px; }
.tile__wish:hover { color: var(--cta); transform: scale(1.12); }
.tile__wish.is-on { color: var(--cta); }
.tile__wish.is-on svg { fill: currentColor; animation: pop .4s var(--ease); }
@keyframes pop { 50% { transform: scale(1.3); } }
.tile__add {
  position: absolute; left: 0; right: 0; bottom: 0; height: 46px;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  transform: translateY(100%); transition: transform .4s var(--ease), background-color .3s;
}
.tile:hover .tile__add, .tile:focus-within .tile__add { transform: none; }
.tile__add:hover, .tile__add.is-added { background: var(--cta); }
.tile__name { margin-top: 16px; font-size: 16px; font-weight: 500; line-height: 1.35; }
.tile__name a { transition: color .3s; }
.tile__name a:hover { color: var(--cta); }
.cart-item__name a { color: inherit; }
.cart-item__name a:hover { color: var(--champagne); }
.tile__price { margin-top: 6px; font-size: 16px; white-space: nowrap; }
.tile__price strong { font-weight: 700; }
.tile__price s { margin-left: 6px; color: var(--text-dim); font-size: 14px; }

/* ---------- Promo banner ---------- */
.promo {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr); align-items: center;
  height: clamp(260px, 25vw, 310px); margin-top: 72px; background: var(--soft); overflow: hidden;
}
.promo__mark {
  position: absolute; left: -2%; top: 50%; transform: translateY(-50%);
  font-size: clamp(90px, 13vw, 170px); font-weight: 700; letter-spacing: -0.02em; line-height: 1;
  color: rgba(89, 66, 55, .05); pointer-events: none; white-space: nowrap;
}
.promo__body { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 40px 24px; }
.promo__label { background: var(--ink); color: #fff; padding: 4px 14px; font-size: clamp(26px, 2.8vw, 36px); font-weight: 700; letter-spacing: -0.01em; }
.promo__sub { font-size: 13px; font-weight: 600; letter-spacing: .4em; text-transform: uppercase; color: var(--text-muted); text-align: center; }
.promo__link { margin-top: 8px; font-size: 18px; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; transition: color .3s; }
.promo:hover .promo__link { color: var(--cta); }
.promo__img { align-self: stretch; width: 100%; height: 100%; min-height: 0; object-fit: cover; transition: transform 1.2s var(--ease); }
.promo:hover .promo__img { transform: scale(1.04); }

/* ---------- Sale split ---------- */
.sale { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 96px; height: clamp(240px, 26vw, 320px); }
.sale__half { position: relative; overflow: hidden; background: var(--soft); }
.sale__half img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.sale__half:hover img { transform: scale(1.05); }
.sale__side {
  position: absolute; top: 50%; writing-mode: vertical-rl; font-size: 13px; font-weight: 600; letter-spacing: .5em; text-transform: uppercase;
  background: #fff; padding: 14px 6px;
}
.sale__side--left { left: 0; transform: translateY(-50%) rotate(180deg); }
.sale__side--right { right: 0; transform: translateY(-50%); }
.sale__box {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(300px, 46%); padding: 34px 20px; background: #fff;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  outline: 1px solid #fff; outline-offset: 10px; box-shadow: 0 0 0 1px rgba(89, 66, 55, .0);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.sale__box:hover { transform: translate(-50%, -50%) scale(1.03); box-shadow: 0 20px 50px rgba(89, 66, 55, .15); }
.sale__word { font-size: clamp(38px, 4.4vw, 58px); font-weight: 700; letter-spacing: .35em; margin-right: -.35em; text-transform: uppercase; line-height: 1; }
.sale__tag { font-size: 12px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; }
.sale__note { margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--cta); }

/* ---------- Perks & brands ---------- */
.perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 56px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.perks li { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 22px 20px; text-align: center; align-items: center; }
.perks li + li { border-left: 1px solid var(--border); }
.perks strong { font-size: 16px; font-weight: 600; }
.perks span { font-size: 14px; color: var(--text-muted); }
.brands { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: center; padding: 48px 0 80px; }
.brands li {
  text-align: center; font-size: clamp(18px, 1.8vw, 24px); font-weight: 700; letter-spacing: .04em; color: #b3b6b9;
  transition: color .35s var(--ease), transform .35s var(--ease);
}
.brands li:hover { color: var(--ink); transform: translateY(-2px); }

/* ---------- Footer ---------- */
.site-footer { background: var(--soft); padding: 64px 0 56px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-brand img { width: 120px; height: auto; }
.footer-copy { margin-top: 28px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); line-height: 1.9; }
.footer-title { font-size: 19px; font-weight: 700; margin-bottom: 18px; }
.footer-list { display: grid; gap: 10px; }
.footer-list a, .footer-list button { font-size: 15px; color: var(--text-muted); text-align: left; transition: color .3s, padding-left .3s var(--ease); }
.footer-list a:hover, .footer-list button:hover { color: var(--cta); padding-left: 4px; }
.newsletter { display: flex; height: 48px; background: #fff; border: 1px solid transparent; transition: border-color .3s; }
.newsletter:focus-within { border-color: var(--ink); }
.newsletter input { flex: 1; min-width: 0; padding: 0 16px; border: 0; background: none; font: inherit; font-size: 15px; color: var(--ink); outline: none; }
.newsletter input::placeholder { color: var(--text-dim); }
.newsletter button { width: 50px; display: grid; place-items: center; color: var(--ink); transition: color .3s; }
.newsletter button svg { width: 22px; height: 22px; }
.newsletter button:hover { color: var(--cta); }
.footer-addr { margin-top: 18px; font-size: 14px; color: var(--text-muted); }

/* ---------- Overlays ---------- */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(89, 66, 55, .45); opacity: 0; transition: opacity .4s var(--ease); }
.scrim.is-open { opacity: 1; }
.icon-btn { font-family: var(--font-label); font-size: 17px; text-transform: uppercase; letter-spacing: .06em; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 60;
  width: min(480px, 100%);
  background: var(--bg-elevated);
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .55s var(--ease);
  visibility: hidden;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer__head, .panel__bar, .modal__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: var(--header-h); padding: 0 var(--gutter); border-bottom: 1px solid var(--border); flex: none;
}
.cart-list { flex: 1; overflow-y: auto; }
.cart-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; padding: 18px var(--gutter); border-bottom: 1px solid var(--border); align-items: center; }
.cart-item__thumb { background: var(--studio); aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.cart-item__thumb img { width: 88%; max-height: 88%; object-fit: contain; }
.cart-item__name { font-weight: 500; font-size: 18px; line-height: 22px; }
.cart-item__meta { font-family: var(--font-label); font-size: 15px; color: var(--text-muted); margin-top: 4px; }
.qty { display: inline-flex; align-items: center; margin-top: 10px; border: 1px solid var(--border); font-family: var(--font-label); font-size: 16px; }
.qty button { width: 34px; height: 32px; transition: background-color .3s, color .3s; }
.qty button:hover { background: var(--cta); color: #fff; }
.qty span { min-width: 28px; text-align: center; }
.cart-item__price { font-family: var(--font-label); font-size: 17px; text-align: right; color: var(--cta); }
.cart-item__remove { display: block; margin-top: 10px; font-family: var(--font-label); font-size: 14px; color: var(--text-muted); text-transform: uppercase; }
.cart-empty { padding: 32px var(--gutter); color: var(--text-muted); font-size: 18px; line-height: 1.5; }
.drawer__foot { padding: 20px var(--gutter) 24px; border-top: 1px solid var(--border); display: grid; gap: 14px; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-label); font-size: 20px; }
.note { font-family: var(--font-label); font-size: 14px; line-height: 20px; color: var(--text-dim); }

.panel {
  position: fixed; left: 0; right: 0; top: 0; z-index: 60;
  background: var(--bg-elevated); border-bottom: 1px solid var(--border);
  max-height: 100svh; overflow-y: auto;
  transform: translateY(-102%); transition: transform .55s var(--ease); visibility: hidden;
}
.panel.is-open { transform: none; visibility: visible; }
.search-input {
  flex: 1; min-width: 0; height: 100%;
  background: none; border: 0; color: var(--text-primary); outline: none;
  font-family: var(--font-sans); font-size: 26px; font-weight: 500; letter-spacing: -0.01em;
}
.search-input::placeholder { color: var(--text-dim); }
.search-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.search-hit {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px var(--gutter) 18px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  text-align: left; transition: background-color .3s;
}
.search-hit:hover { background: var(--pastel-tint); }
.search-hit .eyebrow { color: var(--text-muted); font-size: 15px; }
.search-hit__img { display: grid; place-items: center; aspect-ratio: 2 / 1.15; background: var(--studio); overflow: hidden; }
.search-hit__img img { width: 82%; max-height: 82%; object-fit: contain; transition: transform .5s var(--ease); }
.search-hit__img:hover img { transform: scale(1.05); }
.search-hit__img.is-lens img, .cart-item__thumb.is-lens img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.search-hit__row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.search-hit__row .card__price { margin-top: 0; }
.muted { color: var(--text-muted); }
.search-empty { padding: 28px var(--gutter); color: var(--text-muted); font-family: var(--font-label); font-size: 17px; }

.menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 32px; padding: 32px var(--gutter) 48px; }
.menu-grid > div { display: grid; gap: 10px; align-content: start; }
.menu-grid .eyebrow { margin-bottom: 6px; }
.menu-grid a, .menu-grid button { font-size: clamp(29px, 3.9vw, 44px); font-weight: 600; letter-spacing: -0.025em; text-align: left; line-height: 1.15; transition: color .3s; }
.menu-grid a:hover, .menu-grid button:hover { color: var(--cta); }

.modal {
  position: fixed; z-index: 60; top: 50%; left: 50%;
  width: min(760px, calc(100% - 32px)); max-height: calc(100svh - 48px);
  display: flex; flex-direction: column;
  background: var(--bg-elevated); border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(89, 66, 55, .16);
  opacity: 0; transform: translate(-50%, -46%); visibility: hidden;
  transition: opacity .45s var(--ease), transform .55s var(--ease), visibility 0s .55s;
}
.modal.is-open { opacity: 1; transform: translate(-50%, -50%); visibility: visible; transition-delay: 0s; }
.modal__body { overflow-y: auto; padding: 24px var(--gutter) 28px; }

/* Frame finder modal */
.finder-q { font-size: clamp(29px, 3.9vw, 39px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 22px; }
.faces { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.face {
  padding: 18px 12px 16px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  display: grid; justify-items: center; gap: 12px; text-align: center;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.face svg { width: 64px; height: 80px; transition: transform .45s var(--ease); }
.face:hover svg { transform: translateY(-3px) scale(1.04); }
.face:hover { background: var(--pastel-tint); }
.face.is-active { background: var(--pastel); color: var(--ink); }
.face span { font-family: var(--font-label); font-size: 16px; text-transform: uppercase; }
.finder-result { margin-top: 26px; }
.finder-result p { color: var(--text-muted); line-height: 1.5; font-size: 20px; max-width: 56ch; }
.finder-result .eyebrow { margin-bottom: 10px; }
.finder-picks { margin-top: 20px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.finder-picks .search-hit { padding: 14px; }

/* Booking */
.booking { display: grid; gap: 24px; }
.booking fieldset { border: 0; padding: 0; margin: 0; }
.booking legend { color: var(--text-muted); margin-bottom: 12px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--font-label); font-size: 16px; text-transform: uppercase; letter-spacing: .06em;
  min-height: 42px; padding: 8px 14px; border: 1px solid var(--border); text-align: left; line-height: 1.35;
  transition: border-color .3s, background-color .3s, color .3s, transform .3s var(--ease);
}
.chip:hover:not(:disabled) { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.chip:active:not(:disabled) { transform: scale(.97); }
.chip.is-active, .chip.is-active:hover { background: var(--pastel); color: var(--ink); border-color: var(--pastel-deep); }
.chip:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fields legend { grid-column: 1 / -1; }
.fields label { display: grid; gap: 8px; font-family: var(--font-label); font-size: 16px; text-transform: uppercase; color: var(--text-muted); }
.fields input {
  height: 52px; padding: 0 14px; background: var(--studio); border: 1px solid var(--border); color: var(--text-primary);
  font-family: var(--font-sans); font-size: 20px; outline: none; transition: border-color .3s, background-color .3s;
}
.fields input:focus { border-color: var(--ink); background: #fff; }
.form-error { min-height: 20px; font-family: var(--font-label); font-size: 16px; color: #b3261e; }
.booking-done { display: grid; gap: 14px; padding: 12px 0; }
.booking-done h3 { font-size: 36px; font-weight: 600; letter-spacing: -0.025em; color: var(--ink); }
.booking-done p { color: var(--text-muted); line-height: 1.5; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 70;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 12px 16px; border-left: 3px solid var(--pastel);
  font-family: var(--font-label); font-size: 16px; text-transform: uppercase; letter-spacing: .06em;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* Search-hit / finder-pick text (shared with overlays) */
.card__name { font-size: 16px; font-weight: 500; line-height: 1.35; }
.card__name span { display: block; }
.card__price { font-size: 16px; font-weight: 700; color: var(--ink); white-space: nowrap; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { gap: 24px; }
  .feature, .feature--flip { gap: 36px; }
  .grid { gap: 32px 16px; }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .hamburger { display: grid; }
  .nav { display: none; }
  .header-inner { justify-content: space-between; gap: 8px; }
  .logo img { height: 34px; }
  .slide { grid-template-columns: 1fr; gap: 0; }
  .slide__media { order: -1; min-height: 300px; padding-top: 24px; }
  .slide__text { padding: 8px 0 24px; }
  .hero__inner { min-height: 0; }
  .hero__tabs { justify-content: center; padding-bottom: 24px; }
  .hero__arrow { top: 170px; }
  .feature, .feature--flip { grid-template-columns: 1fr; padding-top: 72px; }
  .feature--flip .feature__side { order: -1; }
  .feature__side { padding-top: 0; gap: 28px; }
  .portrait { aspect-ratio: 16 / 10; }
  .promo { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; }
  .promo__img { height: 220px; order: -1; }
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .perks li:nth-child(3) { border-left: 0; }
  .perks li:nth-child(n+3) { border-top: 1px solid var(--border); }
  .brands { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .tile__add { transform: none; height: 40px; font-size: 12px; }
  .tile__price s { display: block; margin: 2px 0 0; }
  .sale { grid-template-columns: 1fr; height: auto; }
  .sale__half { height: 200px; }
  .sale__box { width: min(280px, 80%); }
  .sale__side { display: none; }
  .faces { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .finder-picks { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .fields { grid-template-columns: 1fr; }
  .menu-grid { grid-template-columns: 1fr; }
  .tabs { gap: 6px 22px; }
  .brands { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 36px 0 56px; }
  .brands li { font-size: 18px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .slide__product { width: 46%; padding: 10px; }
}
@media (hover: none) { .tile__add { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
.finder-more { display: inline-block; margin-top: 18px; }
@media (min-width: 901px) { .brands li { white-space: nowrap; } }

/* ---------- Brand detail overrides (Mocha) ---------- */
/* Decorative details in champagne */
.nav__link.is-current::after { background: var(--champagne); }
.nav__link:hover::after { background: var(--champagne); }
.dropdown { border-top-color: var(--champagne); box-shadow: 0 16px 40px rgba(89, 66, 55, .14); }
.badge--new { color: var(--mocha); }
.hashtag { border-bottom-color: var(--champagne); }
.tabs button { background-image: linear-gradient(var(--champagne), var(--champagne)); }
.hero__tabs button.is-active { text-decoration-color: var(--champagne); }
.slide__photo { box-shadow: 0 0 0 10px var(--cream); }
.slide__product { box-shadow: 0 18px 40px rgba(89, 66, 55, .14); }
.tile__badge { background: var(--champagne); color: #fff; }
.tile__wish.is-on, .tile__wish:hover { color: var(--champagne); }
.tile__add:hover, .tile__add.is-added { background: var(--champagne); color: var(--mocha-deep); }
.promo { background: #fff; }
.promo__mark { color: rgba(196, 161, 106, .14); }
.promo__label { background: var(--mocha); color: var(--cream); }
.promo:hover .promo__link { color: var(--champagne); }
.sale__box { outline-color: var(--champagne); }
.sale__note { color: var(--champagne); }
.sale__side { color: var(--mocha); }
.perks { border-color: rgba(196, 161, 106, .45); }
.perks li + li { border-left-color: rgba(196, 161, 106, .45); }
.brands li { color: var(--ink); }
.brands li:hover { color: var(--champagne); }
.link-underline:hover, .dropdown a:hover, .dropdown button:hover, .tool:hover, .hero__arrow:hover { color: var(--champagne); }

/* Footer in mocha */
.site-footer { background: var(--mocha); color: #fff; }
.footer-title { color: #fff; }
.footer-copy, .footer-addr { color: #fff; }
.footer-list a, .footer-list button { color: #fff; }
.footer-list a:hover, .footer-list button:hover { color: var(--champagne); }
.newsletter { background: rgba(247, 242, 233, .1); border-color: rgba(247, 242, 233, .25); }
.newsletter:focus-within { border-color: var(--champagne); }
.newsletter input { color: #fff; }
.newsletter input::placeholder { color: rgba(255, 255, 255, .8); }
.newsletter button { color: #fff; }
.newsletter button:hover { color: var(--champagne); }
.footer-social { display: flex; gap: 12px; margin-top: 24px; list-style: none; padding: 0; }
.footer-social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 9999px; color: #fff; transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease); }
.footer-social svg { width: 20px; height: 20px; }
.footer-social a:hover, .footer-social a:focus-visible { background: var(--champagne); border-color: var(--champagne); color: var(--mocha-deep); transform: translateY(-2px); }
.footer-social a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Overlays */
.scrim { background: rgba(63, 46, 38, .45); }
.modal { box-shadow: 0 24px 60px rgba(89, 66, 55, .2); }
.chip.is-active, .chip.is-active:hover, .face.is-active { color: var(--mocha-deep); }
.toast { border-left-color: var(--champagne); }

/* ---------- SEO structure: FAQ, address, heading resets ---------- */
.footer-addr { font-style: normal; }
h2.promo__label { margin: 0; line-height: 1.2; }
h1.slide__tag { line-height: 1.4; }
.faq { padding-bottom: 96px; }
.faq__title { font-size: clamp(32px, 3.4vw, 44px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; padding-bottom: 12px; border-bottom: 4px solid var(--champagne); display: inline-block; margin-bottom: 32px; }
.faq__list { border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-size: 18px; font-weight: 600; color: var(--ink); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--champagne); transition: transform .3s var(--ease); flex: none; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:hover { color: var(--champagne); }
.faq__item summary:focus-visible { outline: 2px solid var(--champagne); outline-offset: 4px; }
.faq__item p { padding: 0 48px 24px 0; font-size: 16px; line-height: 1.7; color: var(--text-muted); max-width: 820px; }
@media (max-width: 720px) {
  .faq { padding-bottom: 72px; }
  .faq__item summary { font-size: 16px; padding: 18px 0; }
  .faq__item p { padding-right: 0; }
}

/* ==========================================================================
   Blog — Cẩm nang kính mắt (listing, article, homepage teaser)
   ========================================================================== */
.breadcrumbs { padding: 28px 0 0; font-size: 13px; color: var(--text-dim); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li { min-width: 0; }
.breadcrumbs li + li::before { content: "/"; margin: 0 10px; color: var(--text-dim); }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--champagne); }
.breadcrumbs [aria-current] { color: var(--ink); overflow-wrap: anywhere; }

.blog-hero { padding: 40px 0 48px; max-width: 760px; }
.blog-hero__title { font-size: clamp(38px, 4.6vw, 60px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; color: var(--ink); padding-bottom: 14px; border-bottom: 4px solid var(--champagne); display: inline-block; }
.blog-hero__lead { margin-top: 22px; font-size: 18px; line-height: 1.6; color: var(--text-muted); }

.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 28px; padding-bottom: 96px; }
.blog-grid--3 { padding-bottom: 0; }
.blog-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.blog-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #fff; margin-bottom: 8px; }
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.blog-card:hover .blog-card__media img { transform: scale(1.04); }
.blog-card__meta { font-size: 13px; color: var(--text-dim); letter-spacing: .02em; }
.blog-card__title { font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.blog-card__title a { color: inherit; text-decoration: none; background: linear-gradient(var(--champagne), var(--champagne)) 0 100% / 0 2px no-repeat; transition: background-size .5s var(--ease); }
.blog-card__title a:hover { background-size: 100% 2px; }
.blog-card__excerpt { font-size: 15px; line-height: 1.6; color: var(--text-muted); }

.home-blog { padding-bottom: 96px; }
.home-blog__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
.home-blog__head .faq__title { margin-bottom: 0; }

.post__header { padding-top: 36px; max-width: calc(760px + var(--gutter) * 2); }
.post__cat a { font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--champagne); text-decoration: none; }
.post__title { margin-top: 14px; font-size: clamp(32px, 4vw, 52px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; color: var(--ink); }
.post__meta { margin-top: 18px; font-size: 14px; color: var(--text-dim); }
.post__cover { margin: 36px auto 0; max-width: 1000px; }
.post__cover img { width: 100%; max-height: 560px; object-fit: cover; background: #fff; }

.prose { max-width: 760px; margin-inline: auto; padding: 48px 0 8px; font-size: 18px; line-height: 1.8; color: #4a382f; overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.3; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.prose h3 { margin-top: 1.7em; font-size: 21px; line-height: 1.35; font-weight: 700; color: var(--ink); }
.prose h4 { margin-top: 1.5em; font-size: 18px; font-weight: 700; color: var(--ink); }
.prose p, .prose ul, .prose ol { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--champagne); }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--champagne); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.prose a:hover { color: var(--champagne); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose img { max-width: 100%; margin-inline: auto; background: #fff; }
.prose figure { margin: 1.6em 0 0; }
.prose figcaption { margin-top: 8px; font-size: 14px; color: var(--text-dim); text-align: center; }
.prose .aligncenter { margin-inline: auto; }
.prose blockquote { margin: 1.6em 0 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--champagne); color: var(--ink); font-style: italic; }
.prose .wp-block-table, .prose figure:has(table) { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th, .prose thead td { background: #fff; color: var(--ink); font-weight: 700; }

.post__cta { max-width: 760px; margin: 48px auto 0; padding: 32px; background: #fff; border-left: 4px solid var(--champagne); }
.post__cta-title { font-size: 22px; font-weight: 700; color: var(--ink); }
.post__cta p:not(.post__cta-title) { margin-top: 8px; color: var(--text-muted); line-height: 1.6; }
.post__cta a { color: var(--ink); font-weight: 600; }
.post__cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

.related { padding: 88px var(--gutter) 96px; }
.related__title { font-size: clamp(28px, 3vw, 38px); font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 32px; }

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 20px; }
}
@media (max-width: 720px) {
  .blog-grid, .blog-grid--3 { grid-template-columns: 1fr; gap: 40px; }
  .prose { font-size: 17px; padding-top: 32px; }
  .prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .prose th, .prose td { min-width: 120px; }
  .post__cta { padding: 24px 20px; }
  .post__cta-actions .btn { width: 100%; justify-content: center; }
  .related { padding-top: 64px; padding-bottom: 72px; }
  .home-blog { padding-bottom: 72px; }
}

/* ==========================================================================
   Shop pages — /gong-kinh/ /kinh-mat/ /trong-kinh/ /dich-vu/ /lien-he/
   ========================================================================== */
.see-all { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 36px; font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.cat-meta { margin-top: 16px; font-size: 14px; color: var(--text-dim); }
.cat-meta .link-underline { color: var(--ink); }
.cat-products { padding-bottom: 24px; }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.page-sub .perks { margin: 48px 0 96px; }

.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.service { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 36px 32px; background: #fff; border-top: 3px solid var(--champagne); scroll-margin-top: calc(var(--header-h) + 24px); }
.service__title { font-size: 24px; font-weight: 700; line-height: 1.25; color: var(--ink); }
.service p { color: var(--text-muted); line-height: 1.7; }
.service .btn { margin-top: auto; }
.cta-wide { max-width: none; margin: 32px 0 96px; }

.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; padding-bottom: 96px; }
.contact__info { display: flex; flex-direction: column; gap: 10px; }
.contact__title { margin-top: 18px; font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--champagne); }
.contact__title:first-child { margin-top: 0; }
.contact__addr { font-style: normal; font-size: 20px; line-height: 1.5; color: var(--ink); }
.contact__info p { font-size: 20px; line-height: 1.6; }
.contact__info a:not(.btn) { color: var(--ink); text-decoration: none; }
.contact__info a:not(.btn):hover { color: var(--champagne); }
.contact__info .post__cta-actions { margin-top: 18px; }
.contact__map { min-height: 380px; background: #fff; }
.contact__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

@media (max-width: 1080px) { .grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .services, .contact { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service { padding: 28px 22px; }
  .contact__addr, .contact__info p { font-size: 18px; }
  .page-sub .perks { margin-bottom: 72px; }
}

/* Product cutouts: soft shadow so clear / rimless frames read on white tiles */
.tile:not(.tile--lens) .tile__media img,
.search-hit__img:not(.is-lens) img,
.cart-item__thumb:not(.is-lens) img { filter: drop-shadow(0 8px 10px rgba(89, 66, 55, .16)); }
.tile__media img { width: 88%; max-height: none; }

/* ==========================================================================
   Product detail page — /san-pham/<slug>/
   ========================================================================== */
.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; padding: 24px 0 80px; align-items: start; }
.pdp__gallery { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pdp__main { margin: 0; padding: 22px; border: 1px solid var(--border); background: #fff; }
.pdp__main img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; }
.pdp__thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.pdp__thumbs button { display: block; width: 100%; padding: 6px; border: 1px solid transparent; background: #fff; cursor: pointer; aspect-ratio: 1; overflow: hidden; transition: border-color .3s var(--ease); }
.pdp__thumbs button[aria-current="true"] { border-color: var(--ink); }
.pdp__thumbs button:hover { border-color: var(--champagne); }
.pdp__thumbs img { width: 100%; height: 100%; object-fit: contain; }

.pdp__info { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 18px; }
.pdp__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.pdp__title { font-size: clamp(26px, 2.6vw, 36px); font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; color: var(--ink); }
.pdp__flag { flex: none; margin-top: 6px; padding: 5px 12px; background: var(--champagne-tint); color: var(--mocha-deep); font-size: 12px; font-weight: 600; letter-spacing: .06em; white-space: nowrap; }
.pdp__meta { display: flex; flex-wrap: wrap; align-items: center; font-size: 14px; color: var(--text-muted); margin-top: -8px; }
.pdp__meta > * + *::before { content: ""; display: inline-block; width: 1px; height: 14px; margin: 0 12px; vertical-align: -2px; background: rgba(89, 66, 55, .28); }
.pdp__meta a { color: var(--text-muted); }
.pdp__meta a:hover { color: var(--ink); }
.pdp__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; color: var(--ink); }
.pdp__price strong { font-size: 32px; font-weight: 600; letter-spacing: -0.01em; }
.pdp__price s { font-size: 16px; color: var(--text-dim); }
.pdp__chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; background: var(--champagne-tint); color: var(--mocha-deep); font-size: 13px; font-weight: 500; }
.pdp__chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--champagne); }
.pdp__buy { display: grid; gap: 10px; padding-top: 4px; }
.pdp__label { font-size: 14px; font-weight: 600; color: var(--ink); }
.pdp__qtyrow { display: flex; align-items: center; gap: 16px; }
.pdp__qty { display: inline-flex; align-items: center; height: 44px; border-radius: 999px; background: var(--champagne-tint); }
.pdp__qty button { width: 44px; height: 44px; font-size: 20px; color: var(--ink); border-radius: 50%; transition: background .25s var(--ease); }
.pdp__qty button:hover { background: rgba(89, 66, 55, .08); }
.pdp__qty output { min-width: 28px; text-align: center; font-weight: 600; color: var(--ink); }
.pdp__stock { font-size: 13px; color: var(--text-muted); }
.pdp__stock.is-out { color: #b3261e; }
.pdp__actions { display: grid; gap: 12px; margin-top: 4px; }
.pdp__actions-row { display: grid; grid-template-columns: 1fr 54px; gap: 12px; }
.pdp__actions .btn--block { height: 52px; }
.pdp__wish { height: 52px; padding: 0; }
.pdp__wish svg { width: 20px; height: 20px; }
.pdp__wish.is-on svg { fill: currentColor; }

.pdp__tabs { margin-top: 10px; }
.pdp__tablist { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--border); }
.pdp__tablist button { padding: 12px 4px; font-size: 14px; font-weight: 500; color: var(--text-dim); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .25s var(--ease), border-color .25s var(--ease); }
.pdp__tablist button:hover { color: var(--ink); }
.pdp__tablist button[aria-selected="true"] { color: var(--ink); font-weight: 600; border-color: var(--ink); }
.pdp__panel { padding-top: 18px; font-size: 15px; line-height: 1.7; color: var(--text-muted); display: grid; gap: 10px; }
.pdp__panel[hidden] { display: none; }
.pdp__panel ul { list-style: none; display: grid; gap: 8px; }
.pdp__panel strong { color: var(--ink); }
.pdp__panel a:not(.link-underline) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--champagne); text-underline-offset: 3px; }
.pdp__panel .link-underline { color: var(--ink); font-weight: 600; }

.pdp__desc { border-top: 1px solid var(--border); padding-top: 56px; }
.pdp__desc .prose { margin-inline: 0; padding-top: 8px; }

/* "Có thể bạn cũng thích" rail */
.pdp-rel { border-top: 1px solid var(--border); margin-top: 72px; padding: 72px 0 88px; }
.pdp-rel__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.pdp-rel__title { font-size: clamp(26px, 2.8vw, 36px); font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }
.pdp-rel__nav { display: flex; gap: 8px; }
.pdp-rel__nav button { width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink); border-radius: 50%; transition: background .25s var(--ease), opacity .25s; }
.pdp-rel__nav button:hover { background: var(--champagne-tint); }
.pdp-rel__nav button:disabled { opacity: .3; pointer-events: none; }
.pdp-rel__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 4px; }
.pdp-rel__track::-webkit-scrollbar { display: none; }
.pdp-rel__track .tile { scroll-snap-align: start; text-align: left; border: 1px solid var(--border); background: #fff; }
.pdp-rel__track .tile__media { aspect-ratio: 1; background: #fff; }
.pdp-rel__track .tile__name { margin-top: 0; padding: 16px 16px 0; font-size: 15px; font-weight: 500; }
.pdp-rel__track .tile__price { padding: 4px 16px 18px; justify-content: flex-start; }
.pdp-rel__more { display: flex; justify-content: center; margin-top: 40px; }
.pdp-rel__more .btn { gap: 10px; }

/* Band before footer */
.pdp-band { background: var(--champagne-tint); color: var(--ink); }
.pdp-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 64px; }
.pdp-band__title { max-width: 520px; font-size: clamp(26px, 3vw, 40px); font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); }
.pdp-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 1024px) {
  .pdp-rel__track { grid-auto-columns: calc((100% - 2 * 20px) / 3); }
}
@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; gap: 32px; padding-bottom: 56px; }
  .pdp__info { position: static; }
  .pdp-band__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 720px) {
  .pdp__main { padding: 12px; }
  .pdp__thumbs { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .pdp__thumbs::-webkit-scrollbar { display: none; }
  .pdp__thumbs li { flex: 0 0 64px; scroll-snap-align: start; }
  .pdp__price strong { font-size: 26px; }
  .pdp-rel { margin-top: 48px; padding: 56px 0 64px; }
  .pdp-rel__track { grid-auto-columns: 72%; gap: 14px; }
  .pdp-band__actions, .pdp-band__actions .btn { width: 100%; }
}

/* Brand watermark on product tiles (home, category grids, related products).
   Lens tiles are posters that already carry the logo. */
.tile:not(.tile--lens) .tile__media::before {
  content: ""; position: absolute; top: 12px; left: 12px; z-index: 1; width: 40px; aspect-ratio: 160 / 144;
  background: url("../images/logo-vision-mark.webp") no-repeat center / contain; pointer-events: none;
}
.tile:not(.tile--lens) .tile__badge { top: 60px; }
@media (max-width: 720px) {
  .tile:not(.tile--lens) .tile__media::before { top: 10px; left: 10px; width: 32px; }
  .tile:not(.tile--lens) .tile__badge { top: 50px; }
}

/* ---------- Hero: banner ảnh tràn viền (2:1) ---------- */
.hero--banner { background: var(--mocha-deep, #3F2E26); }
.hero--banner .hero__slides { display: grid; aspect-ratio: 2 / 1; }
.slide--banner { display: block; }
.banner, .banner img { display: block; width: 100%; height: 100%; }
.banner img { object-fit: cover; }
.hero--banner .hero__arrow { color: #fff; background: rgba(63, 46, 38, .35); border-radius: 50%; }
.hero--banner .hero__arrow:hover { color: #fff; background: rgba(63, 46, 38, .6); }
.hero__dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 4px; z-index: 2; }
.hero__dots button { width: 28px; height: 24px; position: relative; }
.hero__dots button::after { content: ""; position: absolute; left: 6px; right: 6px; top: 10px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .5); transition: background .3s; }
.hero__dots button.is-active::after { background: var(--champagne); }
@media (max-width: 900px) {
  .hero--banner .hero__arrow { display: none; }
  .hero__dots { bottom: 4px; }
}

/* ---------- CTA animation ---------- */
.btn { transition: color .45s var(--ease), border-color .45s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(89, 66, 55, .18); }
.btn:active { transform: translateY(0) scale(.97); box-shadow: 0 3px 8px rgba(89, 66, 55, .14); }
.portrait .btn:hover { transform: translate(-50%, -2px); }
/* vệt sáng lướt qua nút chính */
.btn--solid::after, .btn--dark::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .28), transparent);
  transform: skewX(-20deg); animation: btn-shine 5s var(--ease) infinite 1.5s;
}
.btn--solid:hover::after, .btn--dark:hover::after { animation: btn-shine .9s var(--ease) 1; }
@keyframes btn-shine { 0% { left: -60%; } 22%, 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) {
  .btn--solid::after, .btn--dark::after { animation: none; display: none; }
  .btn:hover { transform: none; }
}

/* ---------- Banner dọc 4:5 trong body (chữ in sẵn trong ảnh, nút đặt dưới ảnh) ---------- */
.portrait--banner, .portrait--banner + .btn { width: 100%; }
@media (max-width: 900px) { .portrait--banner { aspect-ratio: 4 / 5; } }
.portrait--banner + .btn { width: auto; margin-top: -16px; }
@media (max-width: 900px) { .portrait--banner + .btn { margin-top: -8px; } }

/* ---------- Thẻ tròng kính: ảnh poster vuông 1:1 → khung vuông, ảnh phủ kín ---------- */
.tile--lens .tile__media { aspect-ratio: 1 / 1; }
.tile--lens .tile__media img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
/* lưới trộn tròng + gọng: tên và giá thẳng hàng giữa các thẻ */
.grid:has(> .tile--lens):has(> .tile:not(.tile--lens)) > .tile { grid-row: span 3; display: grid; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
.grid:has(> .tile--lens):has(> .tile:not(.tile--lens)) > .tile--lens .tile__media { align-self: start; }
/* mobile/cảm ứng: nút "Thêm vào giỏ" luôn hiện → đặt dưới ảnh poster tròng kính để không che chữ */
@media (max-width: 720px), (hover: none) {
  .tile--lens .tile__media { overflow: visible; margin-bottom: 52px; }
  .tile--lens .tile__add { bottom: auto; top: 100%; height: 40px; }
}

/* ---------- Bỏ gạch chân: tiêu đề H1/H2 và link nội bộ ---------- */
.hashtag, .faq__title, .blog-hero__title { border-bottom: 0; padding-bottom: 0; }
.link-underline, .link-underline:hover { background: none; padding-bottom: 0; animation: none; }
.promo__link { text-decoration: none; }
.blog-card__title a, .blog-card__title a:hover { background: none; }
.blog-card__title a:hover { color: var(--champagne); }
.prose a, .pdp__panel a:not(.link-underline) { text-decoration: none; font-weight: 600; color: var(--ink); transition: color .3s var(--ease); }
.prose a:hover, .pdp__panel a:not(.link-underline):hover { color: var(--champagne); }
