/* -------------------------------------------------------------
 * STYLE.CSS - Apple-Inspired Premium Theme Design System
 * ------------------------------------------------------------- */

/* Google Fonts - Inter Fallback for SF Pro */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Colors */
  --primary-color: #0066cc;          /* Action Blue */
  --primary-focus: #0071e3;          /* Focus outline blue */
  --primary-on-dark: #2997ff;        /* Brighter link blue on dark */
  --canvas: #ffffff;                 /* Pure White canvas */
  --canvas-parchment: #f5f5f7;       /* Off-white Parchment */
  --surface-pearl: #fafafc;          /* Pearl button fill */
  --surface-tile-1: #272729;         /* Near-Black Tile 1 */
  --surface-tile-2: #2a2a2c;         /* Near-Black Tile 2 */
  --surface-tile-3: #252527;         /* Near-Black Tile 3 */
  --surface-black: #000000;          /* Void / Global Nav */
  --ink: #1d1d1f;                    /* Near-Black Ink */
  --body-muted: #cccccc;             /* Muted copy on dark */
  --divider-soft: rgba(0, 0, 0, 0.04);
  --hairline: #e0e0e0;               /* Card outlines */

  /* Spacing */
  --spacing-xxs: 4px;
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 17px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 48px;
  --spacing-section: 80px;

  /* Typography */
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  background-color: var(--canvas);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.374px; /* SF Pro tight tracking for body text */
}

/* 1. Global Navigation Bar */
.global-nav {
  height: 44px;
  background-color: var(--surface-black);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  font-size: 12px;
}

.global-nav-container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.global-nav-logo {
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.global-nav-links {
  display: flex;
  gap: var(--spacing-xl);
}

.global-nav-link {
  color: #cccccc;
  text-decoration: none;
  transition: color 0.2s ease;
}

.global-nav-link:hover {
  color: #ffffff;
}

/* 2. Frosted Glass Sub Navigation Bar */
.sub-nav-frosted {
  height: 52px;
  background-color: rgba(245, 245, 247, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
  position: fixed;
  top: 44px;
  width: 100%;
  z-index: 999;
  font-size: 14px;
}

.sub-nav-container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.sub-nav-title {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.sub-nav-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.sub-nav-link-item {
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
}

.sub-nav-link-item:hover {
  color: var(--primary-color);
}

/* 3. Section Rhythm / Alternating Edge-to-Edge Tiles */
.product-tile {
  padding: var(--spacing-section) var(--spacing-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.product-tile-light {
  background-color: var(--canvas);
}

.product-tile-parchment {
  background-color: var(--canvas-parchment);
}

.product-tile-dark {
  background-color: var(--surface-tile-1);
  color: #ffffff;
}

.tile-content {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

/* Typography Hierarchy */
.hero-title {
  font-size: 56px;
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.02em; /* Apple tight display tracking */
  margin-bottom: var(--spacing-xs);
}

.tile-headline {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: var(--spacing-sm);
}

.tile-lead {
  font-size: 24px;
  font-weight: 300; /* Apple light weight tagline */
  line-height: 1.4;
  color: #6e6e73;
  margin: var(--spacing-md) auto var(--spacing-xl);
  max-width: 680px;
}

.product-tile-dark .tile-lead {
  color: var(--body-muted);
}

.tile-actions {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  margin-bottom: var(--spacing-xxl);
}

/* Buttons System */
.button-primary {
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  font-size: 17px;
  font-weight: 400;
  padding: 11px 22px;
  border-radius: 9999px; /* Absolute pill shape */
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  outline: none;
  transition: transform 0.1s ease;
}

.button-primary:active {
  transform: scale(0.95); /* Universal micro-animation scale down */
}

.button-primary:focus {
  outline: 2px solid var(--primary-focus);
  outline-offset: 2px;
}

.button-secondary {
  color: var(--primary-color);
  background-color: transparent;
  border: none;
  font-size: 17px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: transform 0.1s ease;
}

.button-secondary:after {
  content: " ➔";
  font-size: 13px;
}

.button-secondary:active {
  transform: scale(0.95);
}

/* Product Hero Photo Stage */
.product-hero-container {
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}

.product-hero-image {
  width: 100%;
  height: auto;
  display: block;
  /* Premium Apple single drop shadow ONLY for product png images */
  filter: drop-shadow(rgba(0, 0, 0, 0.22) 3px 5px 30px);
}

/* 4. Comparison Section Layout */
.comparison-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xxl);
  text-align: left;
}

.comparison-card {
  background-color: var(--canvas);
  border-radius: 18px;
  padding: var(--spacing-xl);
  border: 1px solid var(--hairline);
  transition: all 0.3s ease;
}

.comparison-card.versus-tradition {
  background-color: rgba(0, 0, 0, 0.02);
}

.comparison-card.versus-babyboom {
  border-color: rgba(0, 102, 204, 0.2);
  box-shadow: 0 8px 30px rgba(0, 102, 204, 0.03);
}

.versus-header {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: var(--spacing-lg);
  display: flex;
  align-items: center;
  gap: 8px;
}

.versus-header span {
  font-size: 24px;
}

.comparison-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  font-size: 15px;
  color: #1d1d1f;
}

.comparison-list li {
  position: relative;
  padding-left: 20px;
}

.comparison-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #86868b;
  font-weight: bold;
}

.versus-babyboom .comparison-list li::before {
  color: var(--primary-color);
}

/* 5. Accessories Grid (Store Style Cards) */
.grid-section {
  background-color: var(--canvas-parchment);
  padding: var(--spacing-section) var(--spacing-lg);
  text-align: center;
}

.grid-container {
  max-width: 1024px;
  margin: var(--spacing-xxl) auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}

.store-utility-card {
  background-color: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: 18px; /* Standard store card radius */
  padding: var(--spacing-lg);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-utility-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.card-icon {
  font-size: 32px;
  margin-bottom: var(--spacing-md);
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  letter-spacing: -0.01em;
}

.card-description {
  font-size: 14px;
  color: #6e6e73;
  line-height: 1.5;
}

/* 6. TikTok UGC Reviews Layout */
.reviews-section {
  background-color: var(--canvas);
  padding: var(--spacing-section) var(--spacing-lg);
  text-align: center;
}

.reviews-container {
  max-width: 1024px;
  margin: var(--spacing-xxl) auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}

.review-card {
  background-color: var(--canvas-parchment);
  border-radius: 18px;
  padding: var(--spacing-lg);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid transparent;
}

.review-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.review-avatar-container {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: bold;
  font-size: 15px;
  text-transform: uppercase;
}

.review-author-info {
  display: flex;
  flex-direction: column;
}

.review-author-name {
  font-size: 15px;
  font-weight: 600;
}

.review-stars {
  color: #ffc107;
  font-size: 12px;
  margin-top: 2px;
}

.review-text {
  font-size: 14px;
  color: #1d1d1f;
  line-height: 1.5;
  font-style: italic;
}

.review-images {
  display: flex;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-md);
}

.review-img-wrapper {
  width: 50%;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--hairline);
  position: relative;
}

.review-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.review-img-wrapper:hover img {
  transform: scale(1.08);
}

/* Lightbox Zoom Component */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 90000;
  justify-content: center;
  align-items: center;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80%;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 32px;
  cursor: pointer;
}

/* 7. Conversion Checkout Block */
.checkout-section {
  background-color: var(--canvas-parchment);
  padding: var(--spacing-section) var(--spacing-lg);
}

.checkout-container {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--spacing-xl);
}

.checkout-combos-wrapper {
  background-color: var(--canvas);
  border-radius: 18px;
  padding: var(--spacing-xl);
  border: 1px solid var(--hairline);
}

.checkout-combos-title {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: var(--spacing-lg);
  letter-spacing: -0.01em;
}

.combo-card {
  display: flex;
  align-items: center;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  cursor: pointer;
  position: relative;
  background-color: var(--canvas);
  transition: all 0.2s ease;
}

.combo-card:last-child {
  margin-bottom: 0;
}

.combo-card:hover {
  border-color: var(--primary-color);
  background-color: var(--surface-pearl);
}

.combo-card.selected {
  border-color: var(--primary-color);
  background-color: rgba(0, 102, 204, 0.02);
  box-shadow: 0 4px 20px rgba(0, 102, 204, 0.05);
}

.combo-badge {
  position: absolute;
  top: -10px;
  left: 20px;
  background-color: var(--primary-color);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.combo-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--hairline);
  margin-right: var(--spacing-md);
  flex-shrink: 0;
  position: relative;
}

.combo-card.selected .combo-radio {
  border-color: var(--primary-color);
}

.combo-card.selected .combo-radio::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary-color);
}

.combo-details {
  flex-grow: 1;
}

.combo-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.combo-prices {
  display: flex;
  align-items: baseline;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-xs);
}

.combo-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.combo-original-price {
  font-size: 13px;
  color: #86868b;
  text-decoration: line-through;
}

.combo-meta {
  font-size: 12px;
  color: #6e6e73;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Quick Order Form Box */
.order-form-container {
  background-color: var(--canvas);
  border-radius: 18px;
  padding: var(--spacing-xl);
  border: 1px solid var(--hairline);
}

.order-form-title {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: var(--spacing-lg);
  letter-spacing: -0.01em;
}

.form-group {
  margin-bottom: var(--spacing-md);
  text-align: left;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #1d1d1f;
}

.form-input {
  width: 100%;
  height: 44px; /* Premium touch target height */
  border-radius: 8px;
  border: 1px solid var(--hairline);
  padding: 0 var(--spacing-sm);
  font-size: 14px;
  outline: none;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.form-input.error {
  border-color: #ff4d4f;
  background-color: rgba(255, 77, 79, 0.02);
}

.form-error-msg {
  display: none;
  font-size: 12px;
  color: #ff4d4f;
  margin-top: 4px;
}

/* Color Swatches Option grid */
.color-swatches-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-lg);
}

.swatch-option {
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: var(--spacing-xs) var(--spacing-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  background-color: var(--canvas);
}

.swatch-option:hover {
  border-color: var(--primary-color);
}

.swatch-option.active {
  border-color: var(--primary-color);
  background-color: rgba(0, 102, 204, 0.04);
  font-weight: 600;
  color: var(--primary-color);
}

.submit-btn {
  width: 100%;
  height: 48px; /* Large mobile checkout button touch target */
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s ease;
  margin-top: var(--spacing-sm);
}

.submit-btn:active {
  transform: scale(0.95);
}

.form-disclaimer {
  font-size: 11px;
  color: #86868b;
  line-height: 1.4;
  margin-top: var(--spacing-md);
}

/* 8. Success Overlay Booking Popup */
.success-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 100000;
  justify-content: center;
  align-items: center;
}

.success-overlay.active {
  display: flex;
}

.success-card {
  background-color: var(--canvas);
  border-radius: 18px;
  padding: var(--spacing-xl);
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
  border: 1px solid var(--hairline);
}

.success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(0, 102, 204, 0.1);
  color: var(--primary-color);
  font-size: 32px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-title {
  font-size: 22px;
  font-weight: 700;
}

.success-msg {
  font-size: 14px;
  color: #1d1d1f;
  line-height: 1.5;
  text-align: left;
}

/* 9. Floating Contact Widgets (Offset up for mobile) */
.floating-widgets {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 998;
}

.widget-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  font-size: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.widget-btn:hover {
  transform: scale(1.08);
}

.widget-btn-zalo {
  background: linear-gradient(135deg, #0066cc 0%, #0088ff 100%);
}

/* 10. Sticky Bottom Bar (Mobile Only) */
.sticky-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 68px;
  background-color: rgba(245, 245, 247, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--hairline);
  z-index: 997;
  padding: 0 var(--spacing-lg);
  justify-content: space-between;
  align-items: center;
}

.sticky-bar-price-container {
  display: flex;
  flex-direction: column;
}

.sticky-bar-label {
  font-size: 11px;
  color: #86868b;
  font-weight: 500;
  text-transform: uppercase;
}

.sticky-bar-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

/* 11. Apple Premium Footer Column Layout */
.apple-footer {
  background-color: var(--canvas-parchment);
  padding: var(--spacing-xxl) var(--spacing-lg) 40px;
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  color: #86868b;
}

.footer-container {
  max-width: 1024px;
  margin: 0 auto;
}

.footer-disclaimer-text {
  border-bottom: 1px solid var(--hairline);
  padding-bottom: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  line-height: 1.6;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  text-align: left;
}

.footer-col-title {
  color: var(--ink);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.footer-col-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.footer-col-links a {
  color: #6e6e73;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col-links a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--hairline);
  padding-top: var(--spacing-lg);
  line-height: 1.6;
}

.footer-legal-links a {
  color: #6e6e73;
  text-decoration: none;
}

.footer-legal-links a:hover {
  color: var(--ink);
}

/* -------------------------------------------------------------
 * RESPONSIVE LAYOUT & MEDIA QUERIES (Mobile-First Optimization)
 * ------------------------------------------------------------- */

/* Tablet Landscape and below */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 44px;
  }
  .tile-headline {
    font-size: 32px;
  }
}

/* Tablet Portrait and below */
@media (max-width: 834px) {
  /* Collapse Global nav */
  .global-nav-links {
    display: none; /* Mobile view defaults to logo + support link */
  }
  
  .sub-nav-link-item {
    display: none; /* Hide minor sub-nav elements on mobile */
  }

  .grid-container {
    grid-template-columns: 1fr 1fr; /* 3 col to 2 col */
  }

  .reviews-container {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile Devices Optimization (Primary Focus for Ads) */
@media (max-width: 768px) {
  :root {
    --spacing-section: 48px; /* Compress section breathing spaces */
  }

  body {
    font-size: 16px;
  }

  .sub-nav-frosted {
    top: 0; /* Align directly if global collapses or stays thin */
  }
  
  .global-nav {
    position: relative; /* Avoid overlapping layouts double bars */
  }

  /* Pushed contact widgets up offset to avoid overlapping sticky footer */
  .floating-widgets {
    bottom: 90px;
  }

  /* Show sticky bottom cta bar */
  .sticky-bottom-bar {
    display: flex;
  }

  /* Padding adjustments to avoid footer cutoff */
  .checkout-section {
    padding-bottom: 120px;
  }
  
  .apple-footer {
    padding-bottom: 100px;
  }

  .hero-title {
    font-size: 34px;
    line-height: 1.15;
  }

  .tile-headline {
    font-size: 26px;
    line-height: 1.2;
  }

  .tile-lead {
    font-size: 18px;
    line-height: 1.45;
  }

  /* Layout changes */
  .comparison-container {
    grid-template-columns: 1fr; /* Stack columns vertically */
    gap: var(--spacing-lg);
  }

  .grid-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .reviews-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .checkout-container {
    grid-template-columns: 1fr; /* Checkout stacking */
    gap: var(--spacing-xl);
  }

  .footer-links-grid {
    grid-template-columns: 1fr 1fr; /* columns map in pairs */
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--spacing-sm);
    text-align: center;
  }
}

/* Narrow Small Phones */
@media (max-width: 419px) {
  .hero-title {
    font-size: 28px;
  }

  .tile-headline {
    font-size: 22px;
  }

  .footer-links-grid {
    grid-template-columns: 1fr; /* full stacks links */
  }
}
