/* =========================================================
   HAZEAESTHETICS — Design Tokens & Core Styles
   ========================================================= */

:root {
  --bg: #050506;
  --bg-alt: #0c0c10;
  --bg-card: #0e0e13;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --white: #f4f4f7;
  --muted: #8b8b96;
  --muted-dim: #5c5c66;
  --blue: #3ea7ff;
  --blue-soft: rgba(62, 167, 255, 0.35);
  --purple: #a855f7;
  --purple-soft: rgba(168, 85, 247, 0.35);
  --gradient-glow: linear-gradient(120deg, var(--blue), var(--purple));
  --font-display: "Bricolage Grotesque", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "Space Mono", monospace;
  --radius: 18px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--bg);
  color: #fff;
  font-family: var(--font-body);
  overflow-x: hidden;
  cursor: none;
}

@media (max-width: 900px) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none !important; }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--purple-soft); color: #fff; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 10px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
}

.container { max-width: 1320px; margin: 0 auto; padding: 0 32px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

p { color: var(--muted); line-height: 1.7; margin: 0; }

.reduced-motion, .no-motion * { animation: none !important; transition: none !important; }

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--white);
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid var(--blue-soft);
  box-shadow: 0 0 18px 2px var(--blue-soft);
  transition: width .25s var(--ease), height .25s var(--ease), border-color .25s, box-shadow .25s, background .25s;
}
.cursor-ring.is-hover {
  width: 64px; height: 64px;
  background: rgba(168, 85, 247, 0.08);
  border-color: var(--purple-soft);
  box-shadow: 0 0 30px 6px var(--purple-soft);
}
.cursor-ring.is-text { background: var(--white); mix-blend-mode: difference; }

/* ---------- Loader ---------- */
#loader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 22px;
  transition: opacity .7s var(--ease), visibility .7s;
}
#loader.done { opacity: 0; visibility: hidden; }
.loader-mark {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 56px);
  letter-spacing: -0.02em;
  position: relative;
  color: var(--white);
}
.loader-mark img {
  height: clamp(34px, 6vw, 58px);
  width: auto;
  display: block;
}
.loader-mark span {
  background: var(--gradient-glow);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.loader-bar {
  width: 220px; height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.loader-bar-fill {
  height: 100%; width: 0%;
  background: var(--gradient-glow);
  box-shadow: 0 0 12px var(--blue-soft);
}
.loader-pct {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-dim);
  letter-spacing: .1em;
}

/* ---------- Scroll progress ---------- */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px;
  background: var(--gradient-glow);
  z-index: 9000; width: 0%;
  box-shadow: 0 0 10px var(--blue-soft);
}

/* ---------- Navbar ---------- */
header.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px;
  transition: padding .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
header.nav.scrolled {
  padding: 12px 32px;
  background: rgba(5, 5, 6, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 640px) {
  header.nav, header.nav.scrolled { padding-left: 16px; padding-right: 16px; }
  .nav-icons { gap: 12px; }
}
@media (max-width: 380px) {
  .nav-icons { gap: 8px; }
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 8px;
}
.nav-logo img { height: 22px; width: auto; display: block; }
.nav-logo .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gradient-glow); box-shadow: 0 0 10px var(--blue-soft); }
.nav-menu { display: flex; gap: 34px; align-items: center; }
.nav-menu > li { position: relative; }
.nav-menu a.top-link {
  font-size: 13.5px; letter-spacing: .01em; color: var(--muted);
  transition: color .25s;
  position: relative;
  padding: 6px 0;
}
.nav-menu a.top-link:hover, .nav-menu a.top-link.active { color: var(--white); }
.nav-menu a.top-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0%;
  background: var(--gradient-glow); transition: width .3s var(--ease);
}
.nav-menu a.top-link:hover::after { width: 100%; }

.dropdown {
  position: absolute; top: 130%; left: 50%; transform: translateX(-50%) translateY(-6px);
  background: rgba(12, 12, 16, 0.95);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  min-width: 190px;
  padding: 10px;
  opacity: 0; visibility: hidden;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.nav-menu > li:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a {
  display: block; padding: 9px 12px; font-size: 13px; color: var(--muted);
  border-radius: 8px; transition: background .2s, color .2s;
}
.dropdown a:hover { background: rgba(255,255,255,0.05); color: var(--white); }

.nav-icons { display: flex; align-items: center; gap: 20px; }
.icon-btn { position: relative; background: none; border: none; color: var(--white); display: flex; }
.icon-btn svg { width: 19px; height: 19px; stroke: currentColor; }
.icon-badge {
  position: absolute; top: -7px; right: -8px;
  background: var(--gradient-glow); color: #05050a;
  font-size: 10px; font-family: var(--font-mono);
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.nav-burger { display: none; }

@media (max-width: 980px) {
  .nav-menu { display: none; }
  .nav-burger { display: flex; }
}

/* ---------- Search overlay ---------- */
#search-overlay {
  position: fixed; inset: 0; z-index: 9500;
  background: rgba(5,5,6,0.92);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 14vh;
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
}
#search-overlay.open { opacity: 1; visibility: visible; }
#search-overlay input {
  width: min(680px, 84vw);
  background: transparent; border: none; border-bottom: 1px solid var(--line-strong);
  color: var(--white); font-family: var(--font-display); font-size: clamp(22px,4vw,34px);
  padding: 10px 4px; outline: none;
}
#search-overlay .close-search { position: absolute; top: 34px; right: 34px; color: var(--muted); background: none; border: none; font-size: 26px; }
#search-results { width: min(680px, 84vw); margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
#search-results a { display: flex; justify-content: space-between; padding: 12px 4px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; }
#search-results a:hover { color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px;
  font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
  font-family: var(--font-mono);
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent; color: var(--white);
  transition: border-color .3s var(--ease), background .3s var(--ease), transform .2s var(--ease), box-shadow .3s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn:hover { transform: translateY(-2px); border-color: var(--blue-soft); box-shadow: 0 8px 30px -8px var(--blue-soft); }
.btn.primary { background: var(--white); color: #08080a; border-color: var(--white); }
.btn.primary:hover { box-shadow: 0 8px 30px -6px rgba(255,255,255,0.35); }
.btn.glow {
  background: var(--gradient-glow); color: #111; border: none;
}
.btn.glow:hover { box-shadow: 0 10px 34px -8px var(--purple-soft); }
.btn.ghost { color: var(--muted); }
.btn.small { padding: 10px 18px; font-size: 11px; }
.btn.block { width: 100%; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 60px 80px;
  overflow: hidden;
}
@media (max-width: 900px) {
  .hero { padding: 120px 32px 60px; }
}
@media (max-width: 480px) {
  .hero { padding: 110px 20px 50px; }
}
.hero-canvas { position: absolute; inset: 0; z-index: 0; opacity: .8; }
.hero-fog {
  position: absolute; inset: -10%;
  background:
    radial-gradient(ellipse 55% 40% at 18% 24%, rgba(62,167,255,0.16), transparent 60%),
    radial-gradient(ellipse 60% 45% at 82% 70%, rgba(168,85,247,0.16), transparent 60%);
  filter: blur(10px);
  z-index: 0;
  animation: fogdrift 22s ease-in-out infinite alternate;
}
@keyframes fogdrift {
  0% { transform: translate(0,0) scale(1); }
  100% { transform: translate(2%, -3%) scale(1.06); }
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 40%, transparent 78%);
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 1400px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center;
}
.hero-title{
    font-size: clamp(34px, 8vw, 72px);
    line-height:1.05;
    font-weight:800;
    letter-spacing:-0.02em;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .glow-word {
  background: var(--gradient-glow);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub{
    font-size: clamp(15px, 2.2vw, 20px);
    line-height:1.8;
    color:#B5B5B5;
    max-width:620px;
}
.hero-ctas { display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 64px; flex-wrap: wrap; row-gap: 20px; }
.hero-stats div .num { font-family: var(--font-display); font-size: 26px; }
.hero-stats div .lbl { font-family: var(--font-mono); font-size: 11px; color: var(--muted-dim); letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; }

.hero-visual {
  position: relative; height: 560px;
  display: flex; align-items: center; justify-content: center;
}
.floating-card {
  position: absolute;
  border-radius: var(--radius);
  overflow: hidden;
  border: 20px solid var(--line-strong);
  background: rgba(255,255,255,0.02);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
  will-change: transform;
}
.floating-card img { width: 100%; height: 100%; object-fit: cover; }
.fc-1 { width: 240px; height: 320px; top: 6%; left: 4%; z-index: 3; }
.fc-2 { width: 210px; height: 270px; bottom: 4%; right: 2%; z-index: 4; }
.fc-3 { width: 170px; height: 220px; top: 40%; right: 22%; z-index: 2; opacity: .85; }
.hero-glow-orb {
  position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, var(--blue-soft), transparent 70%);
  filter: blur(30px); z-index: 1;
}
.scroll-cue {
  position: absolute; bottom: 34px; left: 32px; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px; color: var(--muted-dim); letter-spacing: .1em;
}
.scroll-cue .line-anim { width: 1px; height: 34px; background: var(--line-strong); position: relative; overflow: hidden; }
.scroll-cue .line-anim::after {
  content: ""; position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
  background: var(--gradient-glow); animation: scrolldown 2.2s ease-in-out infinite;
}
@keyframes scrolldown { 50% { top: 100%; } 100% { top: 100%; } }

/* ---------- Section shell ---------- */
section { padding: 120px 0; position: relative; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 56px; gap: 30px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); margin-top: 10px; max-width: 560px; }
.section-head .sh-right { max-width: 340px; text-align: right; }
@media (max-width: 720px) { .section-head .sh-right { text-align: left; } }

/* ---------- Category grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-card {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4;
  border: 1px solid var(--line);
}
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cat-card:hover img { transform: scale(1.08); }
.cat-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.85) 100%);
}
.cat-label { position: absolute; left: 20px; bottom: 20px; z-index: 2; font-family: var(--font-display); font-size: 18px; }
.cat-count { position: absolute; right: 20px; top: 20px; z-index: 2; font-family: var(--font-mono); font-size: 11px; color: var(--muted); background: rgba(0,0,0,0.4); padding: 4px 9px; border-radius: 20px; border: 1px solid var(--line); }
@media (max-width: 980px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .cat-grid { grid-template-columns: 1fr; } }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) { .product-grid, .product-grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .product-grid, .product-grid.cols-3 { grid-template-columns: 1fr; } }

.product-card {
  perspective: 1000px;
}
.pc-inner {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
  transform-style: preserve-3d;
  position: relative;
}
.product-card:hover .pc-inner { border-color: var(--line-strong); box-shadow: 0 30px 60px -30px rgba(62,167,255,0.25); }
.pc-media { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1/1.08; background: #111; }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .4s; }
.product-card:hover .pc-media img { transform: scale(1.06); }
.pc-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; z-index: 2; }
.badge { font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; padding: 5px 9px; border-radius: 20px; text-transform: uppercase; }
.badge.sale { background: var(--purple); color: #fff; }
.badge.new { background: var(--blue); color: #05050a; }
.pc-actions {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  display: flex; flex-direction: column; gap: 8px;
  opacity: 0; transform: translateX(8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.product-card:hover .pc-actions { opacity: 1; transform: translateX(0); }
.pc-action-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(5,5,6,0.75); border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background .2s, border-color .2s, transform .2s;
}
.pc-action-btn:hover { background: var(--purple); border-color: var(--purple); transform: scale(1.08); }
.pc-action-btn svg { width: 15px; height: 15px; }
.pc-action-btn.active { background: var(--gradient-glow); border-color: transparent; color: #06060a; }
.pc-quickadd {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2;
  opacity: 0; transform: translateY(8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.product-card:hover .pc-quickadd { opacity: 1; transform: translateY(0); }
.pc-body { padding: 16px 6px 4px; }
.pc-cat { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted-dim); text-transform: uppercase; letter-spacing: .07em; }
.pc-title { font-family: var(--font-body); font-weight: 600; font-size: 15px; margin-top: 6px; color: var(--white); }
.pc-rating { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--muted-dim); }
.pc-rating .stars { color: var(--blue); letter-spacing: 1px; font-size: 11px; }
.pc-price { margin-top: 10px; display: flex; align-items: baseline; gap: 8px; }
.pc-price .now { font-family: var(--font-mono); font-size: 15px; color: var(--white); }
.pc-price .old { font-family: var(--font-mono); font-size: 12px; color: var(--muted-dim); text-decoration: line-through; }

/* ---------- Why Choose Us ---------- */
.wcu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.wcu-item { background: var(--bg); padding: 40px 30px; }
.wcu-item .num { font-family: var(--font-mono); color: var(--muted-dim); font-size: 12px; }
.wcu-item h3 { font-size: 18px; margin-top: 18px; }
.wcu-item p { margin-top: 10px; font-size: 13.5px; }
@media (max-width: 900px) { .wcu-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Reviews ---------- */
.review-track { display: flex; gap: 22px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.review-track::-webkit-scrollbar { display: none; }
.review-card {
  min-width: 320px; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; flex-shrink: 0;
}
.review-stars { color: var(--blue); font-size: 13px; letter-spacing: 2px; }
.review-card p.quote { color: var(--white); font-size: 14.5px; margin-top: 16px; line-height: 1.7; }
.review-name { margin-top: 20px; font-family: var(--font-mono); font-size: 12px; color: var(--muted-dim); }

/* ---------- Instagram gallery ---------- */
.insta-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.insta-grid a { position: relative; aspect-ratio: 1/1; overflow: hidden; border-radius: 10px; }
.insta-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.insta-grid a:hover img { transform: scale(1.1); }
@media (max-width: 900px) { .insta-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Newsletter ---------- */
.newsletter {
  border-radius: 28px; border: 1px solid var(--line);
  background: radial-gradient(ellipse 70% 100% at 30% 0%, rgba(62,167,255,0.1), transparent 60%), var(--bg-card);
  padding: 70px 60px; text-align: center;
}
.newsletter h2 { font-size: clamp(28px, 4vw, 42px); }
.newsletter-form { display: flex; max-width: 460px; margin: 34px auto 0; border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 6px 6px 22px; }
.newsletter-form input { flex: 1; background: none; border: none; color: var(--white); outline: none; font-size: 14px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 80px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-grid h4 { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-dim); margin-bottom: 18px; }
.footer-grid ul li { margin-bottom: 11px; }
.footer-grid a { font-size: 14px; color: var(--muted); transition: color .2s; }
.footer-grid a:hover { color: var(--white); }
.footer-brand p { margin-top: 16px; max-width: 280px; font-size: 13.5px; }
.social-row { display: flex; gap: 12px; margin-top: 22px; }
.social-row a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; }
.social-row svg { width: 15px; height: 15px; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted-dim); flex-wrap: wrap; gap: 10px; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- Floating widgets ---------- */
#back-to-top, #whatsapp-float {
  position: fixed; right: 26px; z-index: 400;
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong);
  background: rgba(12,12,16,0.85);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: opacity .3s, transform .3s;
  color: var(--white);
}
#back-to-top { bottom: 26px; opacity: 0; pointer-events: none; }
#back-to-top.show { opacity: 1; pointer-events: auto; }
#whatsapp-float { bottom: 90px; background: #1fae5c; border-color: #1fae5c; }
#back-to-top:hover, #whatsapp-float:hover { transform: translateY(-3px); }
#back-to-top svg, #whatsapp-float svg { width: 20px; height: 20px; }

/* ---------- Cart / Wishlist drawer ---------- */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 8000;
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
}
.drawer-overlay.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 92vw); z-index: 8001;
  background: var(--bg-alt); border-left: 1px solid var(--line);
  transform: translateX(100%); transition: transform .45s var(--ease);
  display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 26px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 18px; }
.drawer-head button { background: none; border: none; color: var(--muted); font-size: 22px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 26px; display: flex; flex-direction: column; gap: 18px; }
.drawer-item { display: flex; gap: 14px; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.drawer-item img { width: 74px; height: 88px; object-fit: cover; border-radius: 8px; }
.drawer-item .di-info { flex: 1; }
.drawer-item .di-title { font-size: 13.5px; color: var(--white); }
.drawer-item .di-meta { font-family: var(--font-mono); font-size: 11px; color: var(--muted-dim); margin-top: 4px; }
.drawer-item .di-qty { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.drawer-item .di-qty button { background: var(--bg-card); border: 1px solid var(--line); color: var(--white); width: 22px; height: 22px; border-radius: 6px; font-size: 13px; }
.drawer-item .di-remove { font-family: var(--font-mono); font-size: 11px; color: var(--muted-dim); text-decoration: underline; margin-top: 8px; display: inline-block; }
.drawer-empty { color: var(--muted-dim); font-size: 13.5px; text-align: center; margin-top: 40px; }
.drawer-foot { padding: 24px 26px; border-top: 1px solid var(--line); }
.drawer-foot .dsub { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 13px; margin-bottom: 16px; color: var(--muted); }

/* ---------- Toast ---------- */
#toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--white); color: #08080a; padding: 13px 22px; border-radius: 999px;
  font-size: 13px; font-family: var(--font-mono); z-index: 9999;
  opacity: 0; transition: opacity .3s var(--ease), transform .3s var(--ease);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Page hero (sub pages) ---------- */
.page-hero { padding: 190px 0 80px; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(38px, 6vw, 64px); }
.breadcrumb { font-family: var(--font-mono); font-size: 12px; color: var(--muted-dim); margin-bottom: 20px; letter-spacing: .05em; }
.breadcrumb a:hover { color: var(--white); }

/* ---------- Reveal animation base ---------- */
.reveal-up { opacity: 0; transform: translateY(40px); }

/* ---------- Mobile menu ---------- */
#mobile-menu {
  position: fixed; inset: 0; z-index: 9400; background: var(--bg);
  transform: translateY(-100%); transition: transform .45s var(--ease);
  padding: 100px 34px 40px; overflow-y: auto;
}
#mobile-menu.open { transform: translateY(0); }
#mobile-menu a { display: block; font-family: var(--font-display); font-size: 26px; padding: 14px 0; border-bottom: 1px solid var(--line); }
#mobile-menu .mm-sub { padding-left: 16px; }
#mobile-menu .mm-sub a { font-size: 16px; font-family: var(--font-body); color: var(--muted); border-bottom: none; padding: 8px 0; }

@media (max-width: 720px) {
  .hero-inner { grid-template-columns: 1fr; gap: 50px; }
  .hero-visual { height: 300px; margin-top: 32px; }
  .fc-1 {
    position: static;
    width: 210px;
    height: 280px;
    margin: 0 auto;
  }
  .fc-2, .fc-3 { display: none; }
  .hero-glow-orb { left: 50% !important; top: 50% !important; transform: translate(-50%, -50%); }
  .container { padding: 0 20px; }
  section { padding: 80px 0; }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 420px) {
  .hero-visual { height: 260px; }
  .fc-1 { width: 180px; height: 240px; }
}

/* =========================================================
   Header Search Box (always visible, live filtering)
   ========================================================= */
.header-search {
  position: relative;
  display: flex;
  align-items: center;
}

.header-search input {
  width: 160px;
  max-width: 30vw;
  padding: 7px 12px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 13px;
  transition: width 0.25s var(--ease), border-color 0.2s;
}

.header-search input:focus {
  outline: none;
  width: 220px;
  max-width: 50vw;
  border-color: var(--blue-soft);
}

.header-search input::placeholder {
  color: var(--muted-dim);
}

.header-search-results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 280px;
  max-width: 80vw;
  max-height: 340px;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
  display: none;
  z-index: 200;
}

.header-search-results.open {
  display: block;
}

.header-search-results a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--white);
  text-decoration: none;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}

.header-search-results a:last-child {
  border-bottom: none;
}

.header-search-results a:hover {
  background: var(--bg-alt);
}

.header-search-results a span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-search-results a span:last-child {
  color: var(--muted);
  flex-shrink: 0;
}

.header-search-empty {
  padding: 14px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 640px) {
  .header-search input { width: 110px; }
  .header-search input:focus { width: 160px; }
}

.nav-search-btn { display: none; }
@media (max-width: 560px) {
  .header-search { display: none; }
  .nav-search-btn { display: flex; }
}
