/* ============================================================
   HK Furniture — Premium Design System
   Editorial Luxury · Asymmetric Bento · Warm Craft
   ============================================================ */

/* -----------------------------------------------------------
   1. TOKENS
   ----------------------------------------------------------- */
:root {
  --bg: #FAF9F6;
  --surface: #FFFFFF;
  --surface-raised: #F5F4F0;
  --text: #1A1A1A;
  --text-secondary: #6B6B6B;
  --text-tertiary: #9A9A9A;
  --accent: #C4692A;
  --accent-hover: #A85520;
  --accent-light: rgba(196, 105, 42, 0.08);
  --border: rgba(26, 26, 26, 0.06);
  --border-strong: rgba(26, 26, 26, 0.12);
  --dark: #1A1A1A;
  --dark-surface: #242424;
  --dark-border: rgba(255, 255, 255, 0.08);
  --white: #FFFFFF;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.10);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --transition-fast: 200ms var(--ease-out);
  --transition-base: 350ms var(--ease-out);
  --transition-slow: 600ms var(--ease-out);
  --font: 'Outfit', system-ui, -apple-system, sans-serif;
  --container: 1280px;
  --gap: clamp(16px, 2vw, 24px);
}

/* -----------------------------------------------------------
   2. RESET & BASE
   ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; }

/* -----------------------------------------------------------
   3. UTILITY
   ----------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* -----------------------------------------------------------
   4. TYPOGRAPHY
   ----------------------------------------------------------- */
.t-display {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.t-h2 {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.t-h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.t-body { font-size: 1rem; line-height: 1.65; color: var(--text-secondary); }
.t-body-lg { font-size: 1.125rem; line-height: 1.6; color: var(--text-secondary); max-width: 60ch; }
.t-small { font-size: 0.875rem; line-height: 1.5; }
.t-mono { font-family: 'SF Mono', 'Fira Code', monospace; font-size: 0.8125rem; letter-spacing: 0.02em; }

/* -----------------------------------------------------------
   5. BUTTONS
   ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--text);
  color: var(--white);
}
.btn-primary:hover { background: #333; }

.btn-accent {
  background: var(--accent);
  color: var(--white);
}
.btn-accent:hover { background: var(--accent-hover); }

.btn-outline {
  border: 1.5px solid var(--border-strong);
  color: var(--text);
  background: transparent;
}
.btn-outline:hover { border-color: var(--text); }

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
}
.btn-whatsapp:hover { background: #1EBE57; }

.btn-ghost {
  color: var(--text-secondary);
  padding: 10px 16px;
}
.btn-ghost:hover { color: var(--text); }

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* -----------------------------------------------------------
   6. NAVBAR
   ----------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 12px 16px;
  pointer-events: none;
}

.navbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.8);
  pointer-events: auto;
  height: 60px;
  overflow: hidden;
}

.logo {
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.logo img {
  height: 78px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 450;
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: rgba(26, 26, 26, 0.04);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cart-button {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition-fast);
}
.cart-button:hover { background: rgba(26,26,26,0.04); }
.cart-button svg { width: 20px; height: 20px; }

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 600;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 50%;
  transition: background var(--transition-fast);
}
.hamburger:hover { background: rgba(26,26,26,0.04); }
.hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  border-radius: 1px;
  transition: all var(--transition-fast);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* -----------------------------------------------------------
   7. MOBILE MENU
   ----------------------------------------------------------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(250, 249, 246, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu .nav-link {
  font-size: 1.5rem;
  font-weight: 500;
  padding: 12px 24px;
  color: var(--text);
  opacity: 0;
  transform: translateY(12px);
  transition: all var(--transition-base);
}
.mobile-menu.open .nav-link {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu.open .nav-link:nth-child(1) { transition-delay: 60ms; }
.mobile-menu.open .nav-link:nth-child(2) { transition-delay: 100ms; }
.mobile-menu.open .nav-link:nth-child(3) { transition-delay: 140ms; }
.mobile-menu.open .nav-link:nth-child(4) { transition-delay: 180ms; }
.mobile-menu.open .nav-link:nth-child(5) { transition-delay: 220ms; }

/* -----------------------------------------------------------
   8. HERO
   ----------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 90dvh;
  display: flex;
  align-items: center;
  padding: var(--gap) 0;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, var(--accent-light) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--accent-light);
  border: 1px solid rgba(196, 105, 42, 0.15);
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}

.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(2.75rem, 5.5vw, 5rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
  max-width: 14ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 45ch;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-image-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-xl);
}

.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-stat {
  position: absolute;
  bottom: -16px;
  left: -20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 22px;
  box-shadow: var(--shadow-lg);
  z-index: 3;
}

.hero-stat .number {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent);
}

.hero-stat .label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* -----------------------------------------------------------
   9. SERVICES STRIP
   ----------------------------------------------------------- */
.services {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.services-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 0;
  -webkit-overflow-scrolling: touch;
}
.services-scroll::-webkit-scrollbar { display: none; }

.service-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 450;
  white-space: nowrap;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.service-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.service-pill svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.6;
}

/* -----------------------------------------------------------
   10. SECTIONS
   ----------------------------------------------------------- */
.section {
  padding: clamp(64px, 10vw, 120px) 0;
}

.section-header {
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-header .eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-header .subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 8px;
  max-width: 50ch;
}

.section-header .view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--accent);
  margin-top: 16px;
  transition: gap var(--transition-fast);
}
.section-header .view-all:hover { gap: 10px; }
.section-header .view-all::after { content: '\2192'; }

/* -----------------------------------------------------------
   11. BENTO / MASONRY GRID
   ----------------------------------------------------------- */
.masonry-grid {
  columns: 3;
  column-gap: var(--gap);
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: var(--gap);
  cursor: pointer;
}

.card-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-raised);
  border: 1px solid var(--border);
}

.card-wrapper img {
  width: 100%;
  display: block;
  transition: transform 700ms var(--ease-out);
}

.card-wrapper:hover img { transform: scale(1.04); }

.card-overlay {
  display: none;
}

.card-title {
  color: var(--white);
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 4px;
}

.card-cta {
  color: rgba(255,255,255,0.7);
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  gap: 4px;
}
.card-cta::after { content: '\2192'; }

/* -----------------------------------------------------------
   12. DOUBLE-BEZEL CARDS
   ----------------------------------------------------------- */
.bezel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 3vw, 36px);
  transition: all var(--transition-base);
}

.bezel-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.bezel-card-inner {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 2.5vw, 28px);
}

/* -----------------------------------------------------------
   13. CUSTOM ORDER BANNER
   ----------------------------------------------------------- */
.banner-dark {
  background: var(--dark);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
}

.banner-dark .eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 16px;
}

.banner-dark h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.banner-dark p {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  max-width: 45ch;
  margin: 0 auto 28px;
}

.banner-dark .btn { background: var(--accent); color: var(--white); }
.banner-dark .btn:hover { background: var(--accent-hover); }

/* -----------------------------------------------------------
   14. WHY HK
   ----------------------------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 3vw, 40px);
  transition: all var(--transition-base);
}

.why-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.why-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  color: var(--accent);
}

.why-icon svg { width: 22px; height: 22px; }

.why-card h3 {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.why-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* -----------------------------------------------------------
   15. LOCATION
   ----------------------------------------------------------- */
.location-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-bottom: var(--gap);
}

.location-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.location-card .loc-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  color: var(--accent);
}

.location-card .loc-icon svg { width: 18px; height: 18px; }

.location-card h4 {
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: 2px;
}

.location-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 21/9;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* -----------------------------------------------------------
   16. CATALOGUE PAGE
   ----------------------------------------------------------- */
.catalogue-header {
  padding-top: 120px;
  padding-bottom: 40px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  transition: color var(--transition-fast);
}
.back-link:hover { color: var(--text); }
.back-link::before { content: '\2190'; }

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.pill {
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 450;
  color: var(--text-secondary);
  background: var(--surface);
  transition: all var(--transition-fast);
}

.pill:hover { border-color: var(--text); color: var(--text); }

.pill.active {
  background: var(--text);
  color: var(--white);
  border-color: var(--text);
}

.product-count {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin-bottom: 32px;
}

/* -----------------------------------------------------------
   17. ABOUT PAGE
   ----------------------------------------------------------- */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.about-text p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}

.process-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.process-card .step {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.process-card h4 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.process-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* -----------------------------------------------------------
   18. CONTACT PAGE
   ----------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
}

.info-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

/* -----------------------------------------------------------
   19. CUSTOM ORDER PAGE
   ----------------------------------------------------------- */
.gallery-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-bottom: clamp(40px, 6vw, 64px);
}

.gallery-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/2;
}

.gallery-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}
.gallery-img:hover img { transform: scale(1.03); }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 44px);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.form-group textarea { resize: vertical; min-height: 120px; }

/* -----------------------------------------------------------
   20. PRODUCT MODAL
   ----------------------------------------------------------- */
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}
.product-modal.open { opacity: 1; visibility: visible; }

.product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
}

.product-modal-inner {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-xl);
  max-width: 560px;
  width: calc(100% - 32px);
  max-height: 85dvh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: translateY(12px) scale(0.98);
  transition: transform var(--transition-base);
}

.product-modal.open .product-modal-inner {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  font-size: 1.125rem;
  z-index: 10;
  transition: background var(--transition-fast);
}
.modal-close:hover { background: var(--white); }

.modal-body { padding: 0; }

.modal-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

/* Modal Image Viewer */
.modal-img-wrapper {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  touch-action: none;
  background: var(--dark);
}

.modal-img-wrapper.zoomed { cursor: grab; }
.modal-img-wrapper.zoomed:active { cursor: grabbing; }

.modal-img {
  transition: transform 0.2s ease;
  transform-origin: center center;
  display: block;
  width: 100%;
  border-radius: 0;
  aspect-ratio: auto;
  max-height: 60vh;
  object-fit: contain;
}

.modal-zoom-controls {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  gap: 6px;
  z-index: 5;
}

.modal-zoom-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all var(--transition-fast);
}
.modal-zoom-btn:hover { background: var(--white); transform: scale(1.08); }

.modal-download-btn {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 5;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition-fast);
}
.modal-download-btn:hover { background: var(--white); transform: scale(1.04); }

.modal-content {
  padding: 28px;
}

.modal-title {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.modal-category {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin-bottom: 20px;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  font-size: 1.25rem;
  z-index: 10;
  transition: background var(--transition-fast);
}
.modal-nav:hover { background: var(--white); }
.modal-prev { left: 12px; }
.modal-next { right: 12px; }

/* -----------------------------------------------------------
   21. CART DRAWER
   ----------------------------------------------------------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}
.cart-overlay.open { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 100%);
  background: var(--surface);
  z-index: 151;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-base);
  box-shadow: -4px 0 24px rgba(0,0,0,0.08);
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.cart-drawer-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.cart-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1rem;
  transition: background var(--transition-fast);
}
.cart-close:hover { background: var(--surface-raised); }

.cart-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.cart-empty {
  text-align: center;
  color: var(--text-tertiary);
  padding: 48px 0;
  font-size: 0.9375rem;
}

.cart-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item:last-child { border-bottom: none; }

.cart-item-img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.cart-item-info { flex: 1; min-width: 0; }

.cart-item-info h4 {
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}
.qty-btn:hover { border-color: var(--text); }

.qty-value {
  font-size: 0.875rem;
  font-weight: 500;
  min-width: 20px;
  text-align: center;
}

.cart-item-remove {
  margin-left: auto;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  transition: color var(--transition-fast);
}
.cart-item-remove:hover { color: #D32F2F; }

.cart-drawer-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}

/* -----------------------------------------------------------
   22. WHATSAPP FLOAT
   ----------------------------------------------------------- */
.whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  transition: all var(--transition-fast);
}
.whatsapp-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
}
.whatsapp-btn svg { width: 28px; height: 28px; }

/* -----------------------------------------------------------
   23. FOOTER
   ----------------------------------------------------------- */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: clamp(48px, 8vw, 80px) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(24px, 4vw, 48px);
  padding-bottom: clamp(40px, 6vw, 64px);
  border-bottom: 1px solid var(--dark-border);
}

.footer-brand p {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.5);
  margin-top: 12px;
  max-width: 30ch;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.65);
  padding: 5px 0;
  transition: color var(--transition-fast);
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
}

/* -----------------------------------------------------------
   24. FILM GRAIN OVERLAY
   ----------------------------------------------------------- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px;
}

/* -----------------------------------------------------------
   25. SCROLL REVEAL
   ----------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }
.reveal-delay-5 { transition-delay: 400ms; }

/* -----------------------------------------------------------
   26. PAGE TRANSITIONS
   ----------------------------------------------------------- */
[data-page] {
  display: none;
  padding-bottom: clamp(64px, 10vw, 120px);
}
[data-page].active { display: block; }

/* -----------------------------------------------------------
   27. RESPONSIVE
   ----------------------------------------------------------- */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero h1 { max-width: none; }

  .hero-visual {
    order: -1;
    max-width: 480px;
  }

  .hero-stat {
    bottom: -12px;
    left: 12px;
  }

  .masonry-grid { columns: 2; }

  .why-grid { grid-template-columns: 1fr; }

  .location-grid { grid-template-columns: 1fr; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .gallery-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .masonry-grid { columns: 2; column-gap: 10px; }
  .masonry-item { margin-bottom: 10px; }
  .card-overlay { padding: 12px; }
  .card-title { font-size: 0.8125rem; }
  .card-cta { font-size: 0.6875rem; }

  .hero { min-height: 80dvh; }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn { width: 100%; justify-content: center; }

  .process-grid { grid-template-columns: 1fr; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .modal-actions {
    flex-direction: column;
  }
  .modal-actions .btn { width: 100%; justify-content: center; }
}

/* -----------------------------------------------------------
   28. SOCIAL ICONS
   ----------------------------------------------------------- */
.social-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px 0;
}

.social-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 350ms var(--ease-out), box-shadow 350ms var(--ease-out);
  flex-shrink: 0;
}

.social-icon:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.social-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--white);
}

.social-icon.whatsapp { background: #25D366; }
.social-icon.instagram { background: #E4405F; }
.social-icon.facebook { background: #1877F2; }
.social-icon.pinterest { background: #BD081C; }
.social-icon.email { background: var(--text); }

.social-bar-label {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

@media (max-width: 640px) {
  .social-bar { gap: 12px; }
  .social-icon { width: 44px; height: 44px; }
  .social-icon svg { width: 20px; height: 20px; }
}

/* -----------------------------------------------------------
   29. REDUCED MOTION
   ----------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
}
