/* Youmakeit Beauty Gift Limited — cosmetic-accessory.com */
:root {
  --bg: #faf8f7;
  --surface: #ffffff;
  --ink: #251f2b;
  --muted: #6e6577;
  --line: #e9e2e8;
  --primary: #7a4b94;
  --primary-dark: #5d3873;
  --accent: #c39a5b;
  --wa: #25d366;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(37, 25, 45, .08);
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
.container { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 700; line-height: 1.25; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.15rem; }
.eyebrow {
  display: inline-block; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 10px;
}
.section { padding: 72px 0; }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--muted); margin-top: 12px; }
.section-alt { background: var(--surface); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 40px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--font-serif); font-size: 1.12rem; color: var(--ink); }
.brand-text span { font-size: .68rem; letter-spacing: .22em; color: var(--muted); text-transform: uppercase; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.main-nav > a, .nav-item > a {
  display: block; padding: 10px 14px; font-weight: 600; font-size: .95rem; color: var(--ink);
  border-radius: 8px;
}
.main-nav > a:hover, .nav-item > a:hover { color: var(--primary); background: #f4edf7; }
.nav-item { position: relative; }
.nav-item > a::after { content: "▾"; font-size: .7em; margin-left: 6px; color: var(--muted); }
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  width: 640px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 22px;
  opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-item:hover .mega, .nav-item:focus-within .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega h4 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.mega ul { list-style: none; }
.mega ul a { display: block; padding: 7px 0; color: var(--ink); font-size: .95rem; border-bottom: 1px dashed var(--line); }
.mega ul a:hover { color: var(--primary); }
.mega-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mega-thumbs a { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.mega-thumbs img { aspect-ratio: 1; object-fit: cover; transition: transform .3s ease; }
.mega-thumbs a:hover img { transform: scale(1.06); }
.header-cta { white-space: nowrap; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-size: 1.1rem; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; border: 2px solid transparent; cursor: pointer; transition: all .2s ease;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #1eb857; color: #fff; transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #f0eaf3; color: var(--primary-dark); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 560px; display: flex; align-items: center;
  background: url("../img/hero-banner.webp") center/cover no-repeat #2a2130;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(30, 20, 36, .88) 0%, rgba(30, 20, 36, .62) 45%, rgba(30, 20, 36, .25) 100%);
}
.hero-inner { position: relative; z-index: 1; padding: 90px 0; max-width: 640px; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero p { color: rgba(255, 255, 255, .88); font-size: 1.08rem; margin-bottom: 30px; }
.hero .eyebrow { color: var(--accent); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 26px; margin-top: 40px; flex-wrap: wrap; }
.hero-trust div { color: rgba(255,255,255,.85); font-size: .9rem; border-left: 3px solid var(--accent); padding-left: 12px; }
.hero-trust strong { display: block; color: #fff; font-size: 1.05rem; font-family: var(--font-serif); }

/* ---------- Value cards ---------- */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow);
}
.value-card .icon {
  width: 46px; height: 46px; border-radius: 12px; background: #f3eaf8; color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 16px;
}
.value-card h3 { margin-bottom: 8px; }
.value-card p { color: var(--muted); font-size: .93rem; }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cat-card {
  position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: var(--surface); box-shadow: var(--shadow); transition: transform .25s ease;
}
.cat-card:hover { transform: translateY(-4px); }
.cat-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.cat-card .cat-body { padding: 20px 22px 24px; }
.cat-card h3 { margin-bottom: 6px; }
.cat-card p { color: var(--muted); font-size: .92rem; }
.cat-card .cat-link { display: inline-block; margin-top: 12px; font-weight: 700; font-size: .9rem; }

/* ---------- Product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card .thumb { aspect-ratio: 1; overflow: hidden; background: #f2eef1; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .thumb img { transform: scale(1.05); }
.product-card .p-body { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.product-card .p-code { font-size: .72rem; letter-spacing: .12em; color: var(--accent); font-weight: 700; text-transform: uppercase; }
.product-card h3 { font-size: 1rem; margin: 6px 0 10px; font-family: var(--font-sans); font-weight: 700; }
.product-card .p-link { margin-top: auto; font-size: .88rem; font-weight: 700; }
.group-title {
  display: flex; align-items: baseline; gap: 14px; margin: 54px 0 22px;
  border-bottom: 2px solid var(--line); padding-bottom: 12px;
}
.group-title:first-of-type { margin-top: 0; }
.group-title h2 { font-size: 1.5rem; }
.group-title span { color: var(--muted); font-size: .9rem; }

/* ---------- Product detail ---------- */
.breadcrumbs { font-size: .85rem; color: var(--muted); padding: 18px 0 0; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--primary); }
.pd-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 36px 0 10px; align-items: start; }
.pd-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.pd-media img { width: 100%; height: auto; }
.pd-info .p-code { font-size: .8rem; letter-spacing: .16em; color: var(--accent); font-weight: 700; text-transform: uppercase; }
.pd-info h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 8px 0 14px; }
.pd-info .lead { color: var(--muted); margin-bottom: 24px; }
.pd-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.spec-list { list-style: none; border-top: 1px solid var(--line); }
.spec-list li { display: flex; gap: 10px; padding: 11px 2px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.spec-list li::before { content: "✓"; color: var(--primary); font-weight: 700; }
.pd-section { padding: 44px 0 0; }
.pd-section h2 { margin-bottom: 16px; font-size: 1.5rem; }
.pd-section p { color: var(--muted); max-width: 760px; }
.spec-table { width: 100%; max-width: 760px; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: .94rem; }
.spec-table th { width: 220px; background: #f6f1f7; color: var(--ink); font-weight: 700; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.faq summary {
  cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 1rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--primary); flex-shrink: 0; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--muted); font-size: .95rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, #3a2a46 0%, #5d3873 60%, #7a4b94 100%);
  border-radius: var(--radius); color: #fff; padding: 56px 48px; text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255, 255, 255, .82); max-width: 560px; margin: 0 auto 28px; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- About / Contact ---------- */
.two-col { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
.prose p { color: var(--muted); margin-bottom: 16px; }
.prose h2 { margin: 34px 0 14px; font-size: 1.5rem; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.info-card h3 { margin-bottom: 16px; }
.info-row { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .94rem; }
.info-row:last-child { border-bottom: none; }
.info-row .lbl { width: 92px; flex-shrink: 0; color: var(--muted); font-weight: 600; }
.info-row a { word-break: break-all; }

/* ---------- Footer ---------- */
.site-footer { background: #241c2b; color: rgba(255, 255, 255, .75); margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 40px; padding: 56px 0 40px; }
.site-footer h4 { color: #fff; font-family: var(--font-serif); font-size: 1.05rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 9px; }
.site-footer a { color: rgba(255, 255, 255, .75); font-size: .93rem; }
.site-footer a:hover { color: #fff; }
.footer-brand p { font-size: .92rem; max-width: 380px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 0; font-size: .85rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 300;
  width: 56px; height: 56px; border-radius: 50%; background: var(--wa);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(0, 0, 0, .25);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .value-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .pd-hero, .two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .main-nav {
    position: fixed; inset: 74px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch;
    padding: 14px 22px 22px; border-bottom: 1px solid var(--line); display: none; gap: 2px;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .mega { position: static; transform: none; width: 100%; opacity: 1; visibility: visible; box-shadow: none; border: none; padding: 8px 0 8px 14px; display: none; grid-template-columns: 1fr; }
  .nav-item.open .mega { display: grid; }
  .nav-item > a::after { float: right; }
  .hero { min-height: 480px; }
  .section { padding: 52px 0; }
  .cta-band { padding: 40px 24px; }
}
@media (max-width: 520px) {
  .value-grid, .product-grid, .cat-grid, .footer-grid { grid-template-columns: 1fr; }
  .spec-table th { width: 130px; }
}
