/* ==========================================================================
   TAKAHAIR VN — additions on top of the base theme (style.css)
   ========================================================================== */

.logo { color: var(--color-black); }
.logo-sm { font-size: 20px; }
.site-footer .logo { color: #fff; }
.mobile-nav-close { font-size: 26px; line-height: 1; }
.header-actions a.icon-wa svg { fill: currentColor; stroke: none; }

/* Product card additions ----------------------------------------------- */
a.product-media { display: block; }
.product-name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  line-height: 1.45; min-height: 2.9em;
}
.product-name:hover { color: var(--color-gold-dark); }
.product-cat { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--color-gray); margin-bottom: 4px; }
.product-wa {
  display: inline-block; margin-top: 10px;
  font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; font-weight: 600;
  color: #1c8d4b; border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.product-wa:hover { color: var(--color-gold-dark); }
.product-video-flag {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(20,17,16,.7); color: #fff; font-size: 11px;
  display: flex; align-items: center; justify-content: center;
}
.product-grid .empty, .video-grid .empty {
  grid-column: 1 / -1; text-align: center; color: var(--color-gray); padding: 40px 0;
}

/* Hero slider dots / stats --------------------------------------------- */
.hero .hero-content { max-width: 680px; }
.hero::before { background: linear-gradient(90deg, rgba(20,17,16,.78) 0%, rgba(20,17,16,.5) 55%, rgba(20,17,16,.2) 100%); }
.hero-badge .flag { font-size: 14px; }

.stat-band { background: var(--color-ink); color: #fff; padding: 46px 0; }
.stat-band .stat-row .stat-num { color: var(--color-gold); }
.stat-band .stat-row .stat-lbl { color: rgba(255,255,255,.65); }

/* Category tiles using real images */
.cat-grid.cat-6 { grid-template-columns: repeat(6, 1fr); }

/* Split section media as <img> */
.split-media.img-cover { background-size: cover; background-position: center; }

/* Markets bars --------------------------------------------------------- */
.market-list { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.market-row { display: grid; grid-template-columns: 110px 1fr 46px; gap: 14px; align-items: center; font-size: 14px; }
.market-bar { height: 8px; background: var(--color-line); position: relative; }
.market-bar span { position: absolute; inset: 0 auto 0 0; background: var(--color-gold); }
.market-row b { font-weight: 600; text-align: right; color: var(--color-gold-dark); }

/* Info table ----------------------------------------------------------- */
.info-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.info-table th, .info-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--color-line); vertical-align: top; }
.info-table th { width: 38%; font-weight: 500; color: var(--color-gray); font-size: 12.5px; letter-spacing: 1px; text-transform: uppercase; }

/* Videos --------------------------------------------------------------- */
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.video-card { text-align: left; display: flex; flex-direction: column; gap: 10px; color: inherit; }
.video-thumb {
  position: relative; display: block; aspect-ratio: 9/14; overflow: hidden; background: var(--color-black);
}
.video-thumb img, .video-thumb video { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms ease; opacity: .92; }
.video-card:hover .video-thumb img, .video-card:hover .video-thumb video { transform: scale(1.05); }
.video-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 62px; height: 62px; border-radius: 50%;
  background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.video-play svg { width: 26px; height: 26px; fill: var(--color-black); margin-left: 3px; }
.video-card:hover .video-play { background: var(--color-gold); }
.video-card:hover .video-play svg { fill: #fff; }
.video-title { font-family: var(--font-serif); font-size: 17px; font-weight: 600; }
.video-desc { font-size: 13.5px; color: var(--color-gray); }

.video-modal {
  position: fixed; inset: 0; z-index: 1000; background: rgba(10,8,7,.88);
  display: none; align-items: center; justify-content: center; padding: 30px 16px;
}
.video-modal.open { display: flex; }
.video-modal-body { width: min(960px, 100%); max-height: 88vh; display: flex; justify-content: center; }
.video-modal-body video { max-width: 100%; max-height: 86vh; background: #000; }
.video-modal-body iframe { width: 100%; aspect-ratio: 16/9; border: 0; background: #000; }
.video-modal-close { position: absolute; top: 14px; right: 22px; color: #fff; font-size: 38px; line-height: 1; }

/* Featured video split on home */
.video-feature { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: center; }
.video-feature video { width: 100%; max-height: 640px; background: #000; display: block; }

/* Product detail ------------------------------------------------------- */
.pd { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }
.pd-gallery-main {
  aspect-ratio: 1/1; background: var(--color-cream); overflow: hidden; position: relative;
}
.pd-gallery-main img, .pd-gallery-main video { width: 100%; height: 100%; object-fit: contain; background: var(--color-cream); }
.pd-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 12px; }
.pd-thumbs button {
  aspect-ratio: 1/1; overflow: hidden; border: 1px solid var(--color-line); position: relative; background: var(--color-cream);
}
.pd-thumbs button.active { border-color: var(--color-black); }
.pd-thumbs img, .pd-thumbs video { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs .is-video::after {
  content: "▶"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; background: rgba(20,17,16,.35); font-size: 14px;
}
.pd-info h1 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 14px; }
.pd-price { font-size: 26px; font-family: var(--font-serif); color: var(--color-gold-dark); font-weight: 700; margin-bottom: 6px; }
.pd-moq { font-size: 13.5px; color: var(--color-gray); margin-bottom: 24px; }
.pd-specs { margin: 22px 0 28px; border-top: 1px solid var(--color-line); }
.pd-specs div { display: grid; grid-template-columns: 130px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--color-line); font-size: 14px; }
.pd-specs span:first-child { color: var(--color-gray); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; padding-top: 2px; }
.pd-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.btn-wa { background: #25d366; border-color: #25d366; color: #fff; }
.btn-wa:hover { background: #1c9c4c; border-color: #1c9c4c; }
.pd-desc { white-space: pre-line; color: var(--color-ink); font-size: 15px; line-height: 1.75; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tag-list span { border: 1px solid var(--color-line); padding: 4px 12px; font-size: 11.5px; letter-spacing: .8px; text-transform: uppercase; color: var(--color-gray); }
.trust-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin-top: 8px; font-size: 13.5px; color: var(--color-gray); }
.trust-list li::before { content: "✓ "; color: var(--color-gold-dark); font-weight: 700; }

/* Contact page --------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
.contact-people { display: grid; gap: 14px; margin: 24px 0 30px; }
.contact-person {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  border: 1px solid var(--color-line); padding: 16px 18px;
}
.contact-person strong { display: block; font-size: 15px; }
.contact-person small { color: var(--color-gray); font-size: 12.5px; letter-spacing: .5px; }
.contact-person a.btn { padding: 10px 16px; }
.form-error { display: none; background: #fbeeed; color: var(--color-error); border: 1px solid #efcfcc; padding: 12px 16px; font-size: 13.5px; margin-top: 14px; }
.form-error.show { display: block; }
.form-field textarea { min-height: 130px; resize: vertical; }

/* Product filters ------------------------------------------------------ */
.products-toolbar .search-inline { display: flex; border: 1px solid var(--color-line); }
.products-toolbar .search-inline input { border: none; outline: none; padding: 9px 14px; font-size: 13px; width: 220px; }
.result-count { font-size: 13px; color: var(--color-gray); margin: -20px 0 28px; }

/* Responsive ----------------------------------------------------------- */
@media (max-width: 1100px) {
  .video-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid.cat-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .pd, .contact-grid, .video-feature { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 640px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .cat-grid.cat-6 { grid-template-columns: repeat(2, 1fr); }
  .products-toolbar .search-inline input { width: 100%; }
  .products-toolbar .search-inline { flex: 1; }
  .trust-list { grid-template-columns: 1fr; }
  .market-row { grid-template-columns: 90px 1fr 40px; }
  .pd-specs div { grid-template-columns: 100px 1fr; }
  .float-contact { left: 14px; bottom: 16px; }
  .float-contact a { width: 44px; height: 44px; }
  .back-to-top { right: 14px; bottom: 16px; }
}

/* Language switcher ---------------------------------------------------- */
.lang-switch { position: relative; }
.header-actions .lang-switch .lang-btn {
  width: auto; height: 38px; padding: 0 14px; gap: 7px;
  border: 1px solid var(--color-line); border-radius: 12px;
  font-size: 13px; font-weight: 600; letter-spacing: .5px; color: var(--color-ink);
  transition: border-color var(--transition), background var(--transition);
}
.header-actions .lang-switch .lang-btn:hover,
.lang-switch.open .lang-btn { border-color: var(--color-gold); background: var(--color-cream); }
.header-actions .lang-btn svg { width: 17px; height: 17px; }
.lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 600;
  min-width: 190px; padding: 8px; background: #fff; border-radius: 14px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--color-line);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.lang-switch.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu li button {
  width: 100% !important; height: auto !important; display: flex !important; justify-content: flex-start !important;
  align-items: center; gap: 14px; padding: 11px 14px; border-radius: 10px;
  font-size: 15px; color: var(--color-ink); text-align: left;
}
.lang-menu li button:hover { background: var(--color-cream); }
.lang-menu li button.active { background: #f7eddf; color: var(--color-gold-dark); font-weight: 600; }
.lang-menu .lang-code { font-size: 11px; letter-spacing: .5px; color: var(--color-gray); min-width: 20px; font-weight: 500; }
.lang-menu li button.active .lang-code { color: var(--color-gold-dark); }

.mobile-lang { display: flex; flex-direction: column; gap: 8px; padding: 0 var(--gutter) 40px; }
.mobile-lang button { text-align: left; padding: 11px 14px; border: 1px solid var(--color-line); border-radius: 10px; font-size: 14px; }
.mobile-lang button.active { border-color: var(--color-gold); background: #f7eddf; color: var(--color-gold-dark); font-weight: 600; }

/* Brand logo panel (About sections) ------------------------------------ */
.split-media.brand-media {
  background: #fff url("/images/taka-logo.png") center / 86% auto no-repeat;
  border-right: 1px solid var(--color-line);
}

@media (max-width: 640px) {
  .header-actions { gap: 12px; }
  .header-actions .lang-switch .lang-btn { padding: 0 9px; height: 34px; }
  .header-actions a.icon-link[aria-label="Instagram"] { display: none; }
}
@media (max-width: 860px) {
  .split-media.brand-media { background-size: 80% auto; border-right: none; border-bottom: 1px solid var(--color-line); min-height: 240px; }
}

/* Image logo ----------------------------------------------------------- */
.logo.logo-img { display: inline-flex; align-items: center; line-height: 0; }
.logo.logo-img img { height: 56px; width: auto; display: block; }
.mobile-nav-head .logo.logo-img img { height: 42px; }
.site-footer .logo.logo-img { margin-bottom: 18px; }
.site-footer .logo.logo-img img { height: 64px; }
@media (max-width: 640px) {
  .logo.logo-img img { height: 40px; }
}
@media (max-width: 400px) {
  .logo.logo-img img { height: 34px; }
}

/* About poster (portrait brand image): keep the logo band in view */
#about-media.img-cover { background-position: center 42%; }
@media (max-width: 860px) {
  #about-media.img-cover { min-height: 0; height: auto; aspect-ratio: 1 / 1; background-size: cover; background-position: center 45%; }
}

/* ==========================================================================
   Hero banner slider (auto-play) — inspired by st-slider
   ========================================================================== */
.st-wrap { padding: 22px 0 10px; background: linear-gradient(180deg, var(--color-cream), #fff); }
.st-slider {
  position: relative; overflow: hidden; border-radius: 22px;
  aspect-ratio: 3 / 1; background: var(--color-beige);
  box-shadow: 0 0 0 1px rgba(182,136,79,.25), 0 18px 50px -22px rgba(120,80,30,.45);
  animation: st-glow 3.6s ease-in-out infinite alternate;
}
@keyframes st-glow {
  100% { box-shadow: 0 0 0 1px rgba(182,136,79,.45), 0 0 38px rgba(214,170,90,.45), 0 0 80px -14px rgba(240,205,140,.7), 0 24px 60px -24px rgba(120,80,30,.45); }
}
.st-track { display: flex; height: 100%; transition: transform 800ms cubic-bezier(.65,0,.35,1); will-change: transform; }
.st-slide { flex: 0 0 100%; height: 100%; position: relative; }
.st-slide a, .st-slide picture { display: block; height: 100%; }
.st-slide img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.st-slide[aria-hidden="false"] img { animation: st-zoom 5.2s ease-out both; }
@keyframes st-zoom { 0% { transform: scale(1.06); } 100% { transform: scale(1); } }

.st-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.75); color: var(--color-ink);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity var(--transition), background var(--transition), color var(--transition);
}
.st-nav svg { width: 22px; height: 22px; }
.st-nav.prev { left: 16px; } .st-nav.next { right: 16px; }
.st-slider:hover .st-nav, .st-nav:focus-visible { opacity: 1; }
.st-nav:hover { background: var(--color-gold); color: #fff; }

.st-dots { position: absolute; left: 0; right: 0; bottom: 16px; z-index: 3; display: flex; justify-content: center; gap: 7px; }
.st-dots button {
  width: 8px; height: 8px; border-radius: 8px; background: rgba(255,255,255,.65);
  box-shadow: 0 0 0 1px rgba(120,80,30,.25); transition: width var(--transition), background var(--transition);
}
.st-dots button.on { width: 26px; background: var(--color-gold); }

.st-progress {
  position: absolute; left: 0; bottom: 0; height: 3px; z-index: 3; width: 0;
  background: linear-gradient(90deg, var(--color-gold-dark), #f0cd8c);
  animation: st-bar 4.5s linear forwards;
}
.st-progress.paused { animation-play-state: paused; }
@keyframes st-bar { 0% { width: 0; } 100% { width: 100%; } }

@media (max-width: 860px) {
  .st-wrap { padding: 14px 0 6px; }
  .st-slider { border-radius: 16px; }
  .st-nav { opacity: 1; width: 36px; height: 36px; }
  .st-nav.prev { left: 8px; } .st-nav.next { right: 8px; }
}
@media (max-width: 640px) {
  .st-wrap .container { padding: 0 12px; }
  .st-slider { border-radius: 12px; }
  .st-nav { display: none; }
  .st-dots { bottom: 8px; gap: 5px; }
  .st-dots button { width: 6px; height: 6px; }
  .st-dots button.on { width: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .st-track { transition: none; }
  .st-slide[aria-hidden="false"] img, .st-slider { animation: none; }
}

/* Intro loader with round logo */
body.is-loading { overflow: hidden; }
.taka-loader {
  position: fixed; inset: 0; z-index: 2000;
  background: radial-gradient(circle at 50% 45%, #fffaf2 0%, var(--color-cream) 55%, #efe2cc 100%);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 600ms ease, visibility 600ms ease;
}
.taka-loader.done { opacity: 0; visibility: hidden; }
.taka-loader-ring { position: relative; width: min(190px, 46vw); aspect-ratio: 1; }
.taka-loader-ring::before {
  content: ""; position: absolute; inset: -12px; border-radius: 50%;
  border: 3px solid transparent; border-top-color: var(--color-gold); border-right-color: rgba(182,136,79,.35);
  animation: taka-spin 1.1s linear infinite;
}
.taka-loader-ring img {
  width: 100%; height: 100%; border-radius: 50%;
  animation: taka-pop 900ms cubic-bezier(.2,.9,.3,1.3) both, taka-breathe 2.4s ease-in-out 900ms infinite;
  filter: drop-shadow(0 10px 30px rgba(150,100,40,.35));
}
.taka-loader.done .taka-loader-ring img { animation: taka-out 600ms ease forwards; }
@keyframes taka-spin { to { transform: rotate(360deg); } }
@keyframes taka-pop { 0% { opacity: 0; transform: scale(.6) rotate(-12deg); } 100% { opacity: 1; transform: none; } }
@keyframes taka-breathe { 50% { transform: scale(1.04); } }
@keyframes taka-out { to { transform: scale(1.15); opacity: 0; } }

/* Pinned header: wrapper must not limit sticky; header slides into a compact bar on scroll */
#site-top { display: contents; }
.site-header { position: sticky; top: 0; z-index: 500; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.2) blur(10px); }
.site-header .header-inner { transition: height 320ms cubic-bezier(.4,0,.2,1); }
.site-header .logo.logo-img img { transition: height 320ms cubic-bezier(.4,0,.2,1); }
.site-header.scrolled { box-shadow: 0 8px 24px -12px rgba(20,17,16,.25); }
.site-header.scrolled .header-inner { height: 66px; }
.site-header.scrolled .logo.logo-img img { height: 44px; }
.site-header::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: var(--scroll-progress, 0%);
  background: linear-gradient(90deg, var(--color-gold-dark), #f0cd8c);
}
@media (max-width: 640px) {
  .site-header .header-inner { height: 64px; }
  .site-header.scrolled .header-inner { height: 56px; }
  .site-header.scrolled .logo.logo-img img { height: 34px; }
}

/* Instagram reels */
.video-modal-body { flex-direction: column; align-items: center; gap: 10px; }
.video-modal-body iframe.portrait { width: min(420px, 92vw); aspect-ratio: auto; height: min(86vh, 760px); background: #fff; border-radius: 10px; }
.video-modal-ext { color: #fff; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; opacity: .8; }
.video-modal-ext:hover { opacity: 1; color: var(--color-sand); }
.video-src-badge {
  position: absolute; left: 10px; top: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); color: #fff;
  font-size: 10.5px; font-weight: 600; letter-spacing: .5px; padding: 4px 9px 4px 7px; border-radius: 20px;
}
.video-src-badge svg { width: 13px; height: 13px; stroke: #fff; fill: none; }
