/* ============================================
   chang kids — Boutique Editorial Theme
   Mobile-first · Vietnamese kids fashion
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:      #FAFAF8;
  --coral:      #E85D4A;
  --gold:       #F0B429;
  --sage:       #6BAF8A;
  --teal:       #4A9B95;
  --ink:        #1C1C1C;
  --ink-mid:    #555550;
  --ink-light:  #999992;
  --surface:    #F2F1EF;
  --border:     #E8E7E4;
  --white:      #FFFFFF;
  --font:       'Nunito', 'Segoe UI', sans-serif;
  --radius-sm:  6px;
  --radius:     12px;
  --radius-lg:  20px;
  --shadow:     0 2px 16px rgba(0,0,0,.07);
  --shadow-md:  0 8px 32px rgba(0,0,0,.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
button { font-family: var(--font); cursor: pointer; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   LOGO MARK
   ============================================ */
.logo-mark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  text-decoration: none;
}
.logo-chang {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -1px;
}
.logo-chang .c { color: var(--coral); }
.logo-chang .h { color: var(--gold); }
.logo-chang .a { color: var(--sage); }
.logo-chang .n { color: var(--teal); }
.logo-chang .g { color: var(--teal); }
.logo-kids {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--teal);
  text-transform: uppercase;
  margin-top: 1px;
  padding-left: 2px;
}

/* ============================================
   ANNOUNCEMENT BAR
   ============================================ */
.announce-bar {
  background: var(--ink);
  color: rgba(255,255,255,.80);
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  padding: 9px 20px;
  letter-spacing: .3px;
}
.announce-bar a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}
.header-search {
  display: none;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border-radius: 50px;
  padding: 9px 18px;
  flex: 1;
  max-width: 380px;
}
.header-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  font-family: var(--font);
  width: 100%;
  color: var(--ink);
}
.header-search input::placeholder { color: var(--ink-light); }
.header-search svg { color: var(--ink-light); flex-shrink: 0; }

.header-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  position: relative;
  transition: background .18s;
}
.icon-btn:hover { background: var(--surface); }
.cart-count {
  position: absolute;
  top: 5px; right: 5px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--coral);
  color: var(--white);
  font-size: 9px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* ============================================
   NAV
   ============================================ */
.site-nav {
  border-bottom: 1px solid var(--border);
  background: var(--white);
}
.nav-inner {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 0;
}
.nav-inner::-webkit-scrollbar { display: none; }
.nav-inner a {
  display: block;
  padding: 13px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-mid);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .18s, border-color .18s;
}
.nav-inner a:hover { color: var(--ink); }
.nav-inner a.active { color: var(--coral); border-bottom-color: var(--coral); }
.nav-inner a.nav-special { color: var(--coral); }

/* ============================================
   HERO
   ============================================ */
.hero {
  background: var(--white);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 480px;
}
.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 20px 40px;
  order: 2;
}
.hero-eyebrow {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--teal);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}
.hero h1 {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 16px;
}
.hero h1 em {
  font-style: normal;
  color: var(--coral);
}
.hero-desc {
  font-size: 15px;
  color: var(--ink-mid);
  margin-bottom: 32px;
  max-width: 400px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.hero-image {
  order: 1;
  position: relative;
  min-height: 320px;
  background: var(--surface);
  overflow: hidden;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.hero-image-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 10px 14px;
  box-shadow: var(--shadow-md);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-image-badge span { color: var(--coral); font-size: 18px; font-weight: 900; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 14px;
  border: 2px solid transparent;
  transition: all .2s;
  cursor: pointer;
  letter-spacing: .2px;
}
.btn-primary {
  background: var(--coral);
  color: var(--white);
  border-color: var(--coral);
}
.btn-primary:hover { background: #d44e3d; border-color: #d44e3d; }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--ink); }
.btn-sm { padding: 9px 20px; font-size: 13px; }

.link-arrow {
  font-size: 13px;
  font-weight: 700;
  color: var(--coral);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap .18s;
}
.link-arrow:hover { gap: 9px; }

/* ============================================
   SECTION SCAFFOLD
   ============================================ */
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 16px;
}
.section-title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.15;
}
.section-title em {
  font-style: normal;
  color: var(--coral);
}
.section-sub {
  font-size: 14px;
  color: var(--ink-mid);
  margin-top: 6px;
  font-weight: 400;
}

/* ============================================
   COLLECTION TILES
   ============================================ */
.collection-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.collection-tile {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--surface);
  display: block;
}
.collection-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .5s ease;
}
.collection-tile:hover img { transform: scale(1.04); }
.collection-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28,28,28,.6) 0%, rgba(28,28,28,.05) 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
}
.collection-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  margin-bottom: 6px;
}
.collection-title {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 14px;
  line-height: 1.15;
}
.collection-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 50px;
  width: fit-content;
  transition: background .18s, color .18s;
}
.collection-tile:hover .collection-cta {
  background: var(--coral);
  color: var(--white);
}

/* ============================================
   PRODUCT CARDS
   ============================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s;
}
.product-card:hover { box-shadow: var(--shadow-md); }

.product-media {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--surface);
  overflow: hidden;
}
.product-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform .4s ease;
}
.product-card:hover .product-media img { transform: scale(1.04); }

.product-tag {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--white);
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 50px;
}
.product-tag.tag-new   { background: var(--sage);  color: var(--white); }
.product-tag.tag-sale  { background: var(--coral); color: var(--white); }
.product-tag.tag-hot   { background: var(--gold);  color: var(--ink); }

.product-wish {
  position: absolute;
  top: 10px; right: 10px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,.10);
  transition: transform .18s;
}
.product-wish:hover { transform: scale(1.15); }

.product-info { padding: 14px 14px 16px; }
.product-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-pricing {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.price { font-size: 15px; font-weight: 900; color: var(--ink); }
.price-was { font-size: 12px; color: var(--ink-light); text-decoration: line-through; }
.price-sale-val { color: var(--coral); }

.btn-add {
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  transition: background .18s, border-color .18s, color .18s;
}
.btn-add:hover {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--white);
}

/* ============================================
   STORY STRIP
   ============================================ */
.story-strip {
  background: var(--ink);
  color: var(--white);
  padding: 56px 0;
}
.story-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
.story-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.story-heading {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
}
.story-body {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255,255,255,.72);
  margin-bottom: 28px;
}
.story-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.stat-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  color: rgba(255,255,255,.55);
  margin-top: 4px;
}
.story-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #2a2a2a;
}
.story-image img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ============================================
   CRAFT STRIP (detail shots)
   ============================================ */
.craft-strip { background: var(--surface); padding: 48px 0; }
.craft-label {
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}
.craft-heading {
  text-align: center;
  font-size: clamp(20px, 3.5vw, 28px);
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 32px;
}
.craft-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.craft-img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
}
.craft-img img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================
   ZALO CTA BANNER
   ============================================ */
.zalo-banner {
  background: linear-gradient(135deg, #005CE8, #0040B0);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 20px;
}
.zalo-banner h3 {
  font-size: 20px;
  font-weight: 900;
  color: var(--white);
}
.zalo-banner p {
  font-size: 14px;
  color: rgba(255,255,255,.78);
  line-height: 1.6;
}
.btn-zalo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: #005CE8;
  font-weight: 800;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 50px;
  width: fit-content;
  transition: opacity .18s;
}
.btn-zalo:hover { opacity: .88; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.65);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-bottom: 48px;
}
.footer-brand .logo-chang { font-size: 30px; }
.footer-brand .logo-kids { font-size: 11px; }
.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,.50);
  margin-top: 12px;
  margin-bottom: 20px;
  line-height: 1.7;
  max-width: 260px;
}
.footer-social { display: flex; gap: 10px; }
.social-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: rgba(255,255,255,.65);
  transition: background .18s, color .18s;
}
.social-icon:hover { background: var(--coral); color: var(--white); }

.footer-col h4 {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 10px;
  transition: color .18s;
}
.footer-col a:hover { color: var(--white); }

.footer-zalo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #005CE8;
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 50px;
  margin-top: 4px;
  transition: opacity .18s;
}
.footer-zalo:hover { opacity: .85; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,.35);
}

/* ============================================
   PRODUCT LISTING PAGE
   ============================================ */
.page-banner {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.breadcrumb {
  font-size: 12px;
  color: var(--ink-light);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.breadcrumb a { color: var(--ink-mid); transition: color .18s; }
.breadcrumb a:hover { color: var(--coral); }
.page-banner h1 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  color: var(--ink);
}
.page-banner p {
  font-size: 14px;
  color: var(--ink-mid);
  margin-top: 6px;
}

.filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  position: sticky;
  top: 105px;
  z-index: 100;
}
.filter-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-scroll::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 16px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-mid);
  white-space: nowrap;
  cursor: pointer;
  transition: all .18s;
}
.chip:hover { border-color: var(--ink-mid); color: var(--ink); }
.chip.active { border-color: var(--coral); background: #FEF2F0; color: var(--coral); }

.listing-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 12px;
}
.listing-count { font-size: 13px; color: var(--ink-mid); }
.sort-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font-size: 13px;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  outline: none;
  cursor: pointer;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding-bottom: 48px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 16px 0 56px;
}
.pg-btn {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-mid);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .18s;
}
.pg-btn:hover { border-color: var(--coral); color: var(--coral); }
.pg-btn.active { background: var(--coral); border-color: var(--coral); color: var(--white); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 640px) {
  .product-grid  { grid-template-columns: repeat(3, 1fr); }
  .listing-grid  { grid-template-columns: repeat(3, 1fr); }
  .collection-grid { grid-template-columns: repeat(2, 1fr); }
  .craft-grid    { gap: 14px; }
  .zalo-banner   { flex-direction: row; align-items: center; justify-content: space-between; margin: 0 32px; }
  .zalo-banner .text { flex: 1; }
}

@media (min-width: 900px) {
  .container { padding: 0 40px; }
  .header-search { display: flex; }
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
  }
  .hero-text { order: 1; padding: 80px 60px 80px 0; }
  .hero-image { order: 2; min-height: unset; }
  .story-inner { grid-template-columns: 1fr 1fr; gap: 64px; }
  .product-grid  { grid-template-columns: repeat(4, 1fr); }
  .listing-grid  { grid-template-columns: repeat(4, 1fr); }
  .footer-grid   { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .zalo-banner   { margin: 0; }
}

@media (min-width: 1100px) {
  .hero-text { padding: 80px 80px 80px 0; }
}

/* ============================================
   PRODUCT DETAIL PAGE (PDP)
   ============================================ */
.pdp-crumbs {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.pdp { padding: 28px 0 56px; }
.pdp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

/* Gallery */
.pdp-gallery { display: flex; flex-direction: column; gap: 10px; }
.pdp-main {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
}
.pdp-main img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pdp-badge {
  position: absolute;
  top: 14px; left: 14px;
}
.pdp-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.pdp-thumb {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--surface);
  padding: 0;
  cursor: pointer;
  transition: border-color .18s;
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pdp-thumb:hover { border-color: var(--ink-light); }
.pdp-thumb.active { border-color: var(--coral); }

/* Info */
.pdp-info { display: flex; flex-direction: column; }
.pdp-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.pdp-title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 900;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 14px;
}
.pdp-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-mid);
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.stars { color: var(--gold); letter-spacing: 1px; }
.pdp-sku { color: var(--ink-light); font-size: 12px; margin-left: auto; }

.pdp-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.pdp-price { font-size: 32px; font-weight: 900; color: var(--coral); line-height: 1; }
.pdp-price-was { font-size: 16px; color: var(--ink-light); text-decoration: line-through; }
.pdp-discount {
  background: var(--coral);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 50px;
}
.pdp-desc {
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Options */
.pdp-option { margin-bottom: 20px; }
.pdp-option-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
.pdp-option-help {
  font-size: 12px;
  font-weight: 600;
  color: var(--coral);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.size-row { display: flex; flex-wrap: wrap; gap: 8px; }
.size-btn {
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-mid);
  cursor: pointer;
  transition: all .18s;
}
.size-btn:hover { border-color: var(--ink); color: var(--ink); }
.size-btn.active { border-color: var(--coral); background: #FEF2F0; color: var(--coral); }

.color-row { display: flex; gap: 10px; }
.color-swatch {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--white);
  outline: 1.5px solid var(--border);
  cursor: pointer;
  padding: 0;
  transition: outline-color .18s;
}
.color-swatch:hover { outline-color: var(--ink-mid); }
.color-swatch.active { outline-color: var(--coral); outline-width: 2px; }

/* Buy row */
.pdp-buy-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
  background: var(--white);
  flex-shrink: 0;
}
.qty-btn {
  width: 40px; height: 44px;
  border: none;
  background: transparent;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: background .18s;
}
.qty-btn:hover { background: var(--surface); }
.qty-input {
  width: 40px;
  height: 44px;
  border: none;
  background: transparent;
  text-align: center;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  outline: none;
}
.pdp-add { flex: 1; justify-content: center; }

.btn-zalo-full {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 24px;
  background: #005CE8;
  color: var(--white);
  font-weight: 800;
  font-size: 14px;
  border-radius: 50px;
  border: 2px solid #005CE8;
  margin-bottom: 24px;
  transition: opacity .18s;
}
.btn-zalo-full:hover { opacity: .9; }

/* Trust strip */
.pdp-trust {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 24px;
}
.pdp-trust li {
  font-size: 13px;
  color: var(--ink-mid);
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.5;
}
.pdp-trust .ti { font-size: 16px; flex-shrink: 0; }

/* Accordion */
.pdp-accordion { border-top: 1px solid var(--border); }
.pdp-accordion details {
  border-bottom: 1px solid var(--border);
}
.pdp-accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pdp-accordion summary::-webkit-details-marker { display: none; }
.pdp-accordion summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: var(--ink-mid);
  transition: transform .2s;
}
.pdp-accordion details[open] summary::after { content: '−'; }
.acc-body {
  padding: 0 0 16px;
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.7;
}

/* Related section */
.section-related { padding-top: 24px; }

/* Card link wrap (for listing + related) */
.card-link { display: block; color: inherit; }
.card-overlay-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
}
.product-wish { z-index: 3; }
.product-tag { z-index: 3; }
.product-info-cta { padding: 0 14px 14px; }
.product-info-cta .btn-add { margin-top: 0; }
.product-card .product-info-cta + .product-info { padding-top: 0; }

/* Sticky mobile buy bar */
.pdp-stickybar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(0,0,0,.06);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 150;
}
.sb-price { display: flex; flex-direction: column; line-height: 1.1; }
.sb-now { font-size: 16px; font-weight: 900; color: var(--coral); }
.sb-was { font-size: 11px; color: var(--ink-light); text-decoration: line-through; }
.sb-add { flex: 1; justify-content: center; }

@media (min-width: 640px) {
  .pdp-thumbs { grid-template-columns: repeat(5, 1fr); max-width: 480px; }
}

@media (min-width: 900px) {
  .pdp { padding: 40px 0 80px; }
  .pdp-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
  }
  .pdp-gallery {
    position: sticky;
    top: 120px;
  }
  .pdp-stickybar { display: none; }
}

/* ============================================
   TOAST
   ============================================ */
.ck-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 9999;
  max-width: 90vw;
}
.ck-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================
   CART PAGE
   ============================================ */
.cart-wrap { padding: 24px 0 80px; }

.cart-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.cart-lines {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-line {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}
.line-thumb {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
}
.line-thumb img { width: 100%; height: 100%; object-fit: cover; }
.line-main { min-width: 0; }
.line-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 4px;
}
.line-opts {
  font-size: 12px;
  color: var(--ink-mid);
  margin-bottom: 8px;
}
.line-price-mobile {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 8px;
}
.line-price-mobile .price-was { font-weight: 400; margin-left: 6px; }
.line-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.line-qty { font-size: 12px; }
.line-qty .qty-btn { width: 32px; height: 36px; font-size: 16px; }
.line-qty .qty-input { width: 32px; height: 36px; font-size: 13px; }
.line-remove {
  background: none;
  border: none;
  color: var(--ink-light);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 4px 0;
}
.line-remove:hover { color: var(--coral); }
.line-price { display: none; }

.cart-summary {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: 120px;
  height: fit-content;
}
.cart-summary h3 {
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.voucher-row {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}
.voucher-row input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-family: var(--font);
  font-size: 13px;
  outline: none;
  text-transform: uppercase;
}
.voucher-row input:focus { border-color: var(--coral); }
.voucher-msg {
  font-size: 12px;
  min-height: 18px;
  margin-bottom: 6px;
}
.voucher-ok { color: var(--sage); font-weight: 700; }
.voucher-err { color: var(--coral); font-weight: 700; }
.voucher-hint {
  font-size: 11px;
  color: var(--ink-light);
  margin-bottom: 16px;
  line-height: 1.5;
}
.voucher-hint code {
  background: var(--surface);
  padding: 1px 6px;
  border-radius: 3px;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: var(--ink);
}

.prepaid-row {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 16px;
}
.prepaid-row label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  line-height: 1.45;
}
.prepaid-row input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--coral);
  flex-shrink: 0;
}

.summary-rows {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-bottom: 16px;
}
.sr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-mid);
  padding: 5px 0;
}
.sr strong { color: var(--ink); font-weight: 800; }
.sr-discount strong { color: var(--coral); }
.sr-total {
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 12px;
  font-size: 15px;
}
.sr-total span { font-weight: 700; color: var(--ink); }
.sr-total strong { font-size: 20px; color: var(--coral); font-weight: 900; }
.ship-free-hint {
  display: block;
  font-size: 12px;
  color: var(--sage);
  font-weight: 700;
  padding: 6px 0;
}
.ship-hint {
  display: block;
  font-size: 11px;
  color: var(--ink-light);
  line-height: 1.5;
  padding: 4px 0;
}

.btn-checkout {
  width: 100%;
  justify-content: center;
  margin-bottom: 12px;
}

.cart-empty {
  background: var(--white);
  border-radius: var(--radius);
  padding: 64px 24px;
  text-align: center;
}
.cart-empty .empty-icon {
  font-size: 64px;
  margin-bottom: 12px;
}
.cart-empty h2 {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 6px;
}
.cart-empty p { color: var(--ink-mid); margin-bottom: 20px; }

@media (min-width: 640px) {
  .cart-line {
    grid-template-columns: 100px 1fr auto;
  }
  .line-price { display: block; text-align: right; }
  .line-price-mobile { display: none; }
  .line-unit {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 4px;
  }
  .line-unit .price-was {
    display: block;
    font-size: 11px;
    font-weight: 400;
    margin-top: 2px;
  }
  .line-subtotal {
    font-size: 16px;
    font-weight: 900;
    color: var(--coral);
  }
}

@media (min-width: 900px) {
  .cart-layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 32px;
  }
}

/* ============================================
   CHECKOUT
   ============================================ */
.checkout-wrap { padding: 24px 0 80px; }
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.checkout-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.checkout-form h2 {
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 16px;
  color: var(--ink);
}
.form-row {
  margin-bottom: 14px;
}
.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.req { color: var(--coral); }
.form-row input,
.form-row textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--ink);
  outline: none;
  background: var(--white);
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--coral);
}
.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--ink-light);
}

.pay-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.pay-opt {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  transition: border-color .18s, background .18s;
}
.pay-opt:has(input:checked) {
  border-color: var(--coral);
  background: #FEF2F0;
}
.pay-opt input[type="radio"] {
  accent-color: var(--coral);
  margin-top: 3px;
  flex-shrink: 0;
}
.pay-opt-body strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 3px;
}
.pay-opt-body p {
  font-size: 12px;
  color: var(--ink-mid);
  line-height: 1.5;
}

.form-err {
  background: #FEF2F0;
  border: 1px solid var(--coral);
  color: var(--coral);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}

.back-link {
  display: inline-block;
  margin-top: 14px;
}

.checkout-summary {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  height: fit-content;
}
.checkout-summary h3 {
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.co-lines { margin-bottom: 12px; }
.co-line {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
}
.co-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
}
.co-thumb img { width: 100%; height: 100%; object-fit: cover; }
.co-qty {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--ink);
  color: var(--white);
  border-radius: 50%;
  width: 20px; height: 20px;
  font-size: 11px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.co-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.co-opts { font-size: 11px; color: var(--ink-light); }
.co-price { font-size: 13px; font-weight: 800; color: var(--ink); }

@media (min-width: 900px) {
  .checkout-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 32px;
  }
  .checkout-summary {
    position: sticky;
    top: 120px;
  }
}

/* ============================================
   ORDER SUCCESS
   ============================================ */
.success-wrap { padding: 48px 0 80px; }
.success-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
}
.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--white);
  font-size: 32px;
  font-weight: 900;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.success-card h1 {
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 900;
  margin-bottom: 10px;
}
.success-lead {
  font-size: 14px;
  color: var(--ink-mid);
  max-width: 460px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.success-details {
  text-align: left;
  margin: 16px 0;
  border-top: 1px solid var(--border);
}
.success-details summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.success-details summary::-webkit-details-marker { display: none; }
.success-details summary::after {
  content: '+';
  font-size: 20px;
  color: var(--ink-mid);
}
.success-details[open] summary::after { content: '−'; }
.success-detail-body { padding-bottom: 16px; font-size: 13px; color: var(--ink-mid); line-height: 1.7; }
.success-detail-body p { margin-bottom: 4px; }

.order-lines {
  margin: 14px 0;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
  padding: 12px 0;
}
.order-line {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
}
.order-line img {
  width: 48px; height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.ol-name { font-size: 13px; font-weight: 700; color: var(--ink); }
.ol-opts { font-size: 11px; color: var(--ink-light); }
.ol-qty { font-size: 12px; color: var(--ink-mid); margin-top: 2px; }
.ol-total { font-size: 13px; font-weight: 800; color: var(--coral); }

.zalo-preview {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-family: ui-monospace, 'Cascadia Mono', 'Segoe UI Mono', monospace;
  font-size: 12px;
  white-space: pre-wrap;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 10px;
  max-height: 240px;
  overflow-y: auto;
}

