/* ============================================
   Mystiara - Premium Furniture Brand
   Color Palette: Warm Cream + Gold + Brown
   ============================================ */

:root {
  --cream: #FDF8F4;
  --cream-light: #FFFBF8;
  --cream-dark: #F5F0EB;
  --gold: #C9A96E;
  --gold-light: #D4BC8B;
  --gold-dark: #A88B52;
  --brown: #8B6F47;
  --brown-dark: #5C3D2E;
  --text: #2C2416;
  --text-light: #6B5E4F;
  --text-muted: #9B8E7F;
  --white: #FFFFFF;
  --border: #E8E0D5;
  --shadow-sm: 0 2px 8px rgba(44,36,22,0.06);
  --shadow: 0 4px 20px rgba(44,36,22,0.08);
  --shadow-lg: 0 8px 40px rgba(44,36,22,0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,251,248,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  height: 44px;
  width: auto;
  border-radius: 8px;
}

.nav-logo span {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brown-dark);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
  align-items: center;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-light);
  position: relative;
  padding: 6px 0;
  transition: var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-dark);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--brown-dark);
  transition: var(--transition);
  border-radius: 1px;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--cream-light);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-nav.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a {
  font-size: 1.3rem;
  font-family: var(--font-heading);
  color: var(--brown-dark);
  transition: var(--transition);
}

.mobile-nav a:hover { color: var(--gold-dark); }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--cream) 0%, #F2EBE1 40%, var(--cream-dark) 100%);
  padding-top: 80px;
}

.hero-bg-ornament {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,110,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-bg-ornament.left {
  top: auto;
  bottom: -120px;
  left: -80px;
  right: auto;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  padding: 60px 40px;
  z-index: 1;
}

.hero-tag {
  display: inline-block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--gold-dark);
  margin-bottom: 24px;
  font-weight: 600;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--brown-dark);
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.hero-title em {
  font-style: italic;
  color: var(--gold-dark);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-cta {
  display: inline-flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 36px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(201,169,110,0.35);
}

.btn-primary:hover {
  background: var(--gold-dark);
  box-shadow: 0 6px 24px rgba(168,139,82,0.45);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--brown-dark);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
  transform: translateY(-2px);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 100px 40px;
}

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--brown-dark);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================
   FEATURES GRID
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
  border: 1px solid transparent;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--cream-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 1.6rem;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--brown-dark);
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ============================================
   PRODUCT CARDS
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 40px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid transparent;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border);
}

.product-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--cream-dark);
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-image-wrap img {
  transform: scale(1.08);
}

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--gold);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.product-info {
  padding: 28px;
}

.product-info h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--brown-dark);
  margin-bottom: 8px;
}

.product-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-style: italic;
}

.product-price {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 20px;
}

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

.btn-sm {
  padding: 10px 24px;
  font-size: 0.85rem;
  border-radius: 50px;
}

/* ============================================
   ABOUT / BRAND PAGE
   ============================================ */
.about-hero {
  padding: 160px 40px 80px;
  text-align: center;
  background: linear-gradient(180deg, var(--cream-dark) 0%, var(--cream) 100%);
}

.about-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--brown-dark);
  margin-bottom: 16px;
}

.story-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.story-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

.story-text h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--brown-dark);
  margin-bottom: 20px;
}

.story-text p {
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.9;
}

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.value-card {
  text-align: center;
  padding: 36px 24px;
}

.value-card .value-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.value-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--brown-dark);
  margin-bottom: 10px;
}

/* ============================================
   SHOP PAGE
   ============================================ */
.shop-hero {
  padding: 160px 40px 40px;
  text-align: center;
  background: linear-gradient(180deg, var(--cream-dark) 0%, var(--cream) 100%);
}

.shop-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--brown-dark);
  margin-bottom: 12px;
}

.shop-hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 40px;
  padding: 0 40px 100px;
  max-width: 1280px;
  margin: 0 auto;
}

/* ============================================
   PRODUCT DETAIL
   ============================================ */
.product-detail {
  padding: 160px 40px 100px;
  max-width: 1280px;
  margin: 0 auto;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.breadcrumb a {
  color: var(--gold-dark);
}

.breadcrumb a:hover { text-decoration: underline; }

.breadcrumb span { margin: 0 8px; }

.product-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.product-gallery {
  position: relative;
}

.gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
  background: var(--cream-dark);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

.gallery-thumbs {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.gallery-thumb {
  width: 80px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  opacity: 0.6;
}

.gallery-thumb:hover,
.gallery-thumb.active {
  border-color: var(--gold);
  opacity: 1;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-info h1 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--brown-dark);
  margin-bottom: 8px;
}

.product-detail-tagline {
  font-style: italic;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.product-detail-price {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 28px;
}

.product-detail-desc {
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 32px;
}

.product-detail-features {
  list-style: none;
  margin-bottom: 36px;
}

.product-detail-features li {
  padding: 10px 0;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}

.product-detail-features li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  font-size: 1.1rem;
}

/* ============================================
   REVIEWS
   ============================================ */
.reviews-hero {
  padding: 160px 40px 40px;
  text-align: center;
  background: linear-gradient(180deg, var(--cream-dark) 0%, var(--cream) 100%);
}

.reviews-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--brown-dark);
  margin-bottom: 12px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px 100px;
}

.review-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.review-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.review-stars {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.review-text {
  font-style: italic;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 1rem;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold-dark);
}

.review-author-info strong {
  display: block;
  color: var(--brown-dark);
  font-size: 0.95rem;
}

.review-author-info span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================
   GUARANTEE PAGE
   ============================================ */
.guarantee-hero {
  padding: 160px 40px 40px;
  text-align: center;
  background: linear-gradient(180deg, var(--cream-dark) 0%, var(--cream) 100%);
}

.guarantee-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--brown-dark);
  margin-bottom: 12px;
}

.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 36px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px 100px;
}

.guarantee-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.guarantee-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.guarantee-icon {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.guarantee-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--brown-dark);
  margin-bottom: 12px;
}

.guarantee-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--brown-dark), var(--brown));
  padding: 80px 40px;
  text-align: center;
  color: var(--white);
}

.cta-banner h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 16px;
}

.cta-banner p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn-primary {
  background: var(--gold);
  color: var(--white);
}

.cta-banner .btn-primary:hover {
  background: var(--gold-light);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--brown-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 40px 32px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 8px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}

.footer-col a:hover { color: var(--gold-light); }

.footer-bottom {
  max-width: 1280px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.float-anim {
  animation: float 5s ease-in-out infinite;
}

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

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

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

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .section { padding: 60px 20px; }
  .nav-inner { padding: 0 20px; height: 68px; }

  .hero-content { padding: 40px 20px; }

  .products-grid,
  .shop-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .product-detail { padding: 140px 20px 60px; }

  .reviews-grid,
  .guarantee-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

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

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

  .btn { padding: 12px 28px; font-size: 0.9rem; }
}
