/* ===== Butter and Flour - Global Styles ===== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Funnel+Sans:wght@300;400;500;600;700&display=swap');

/* Design Variables */
:root {
  --surface-primary: #F5F0E8;
  --surface-secondary: #EDE7DC;
  --surface-warm: #E8DFD0;
  --surface-dark: #3E2723;
  --foreground-primary: #3E2723;
  --foreground-secondary: #5D4037;
  --foreground-muted: #8D6E63;
  --border-subtle: #D7CFC3;
  --accent-primary: #6D4C2F;
  --accent-secondary: #A67C52;
  --accent-warm: #C4956A;
  --white: #FFFFFF;
  --facebook-blue: #1877F2;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Funnel Sans', sans-serif;
  color: var(--foreground-primary);
  background: var(--surface-primary);
  line-height: 1.6;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; font-family: inherit; }
input, textarea { font-family: inherit; }

/* ===== Typography ===== */
.font-heading { font-family: 'Playfair Display', serif; }
.font-body { font-family: 'Funnel Sans', sans-serif; }

/* ===== Layout ===== */
.container { max-width: 1440px; margin: 0 auto; }
.section-padding { padding: 80px 120px; }

/* ===== Navigation ===== */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: var(--surface-primary);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.nav.scrolled {
  border-color: rgba(0,0,0,0.1);
}
.nav-logo { height: 75px; width: 150px; object-fit: cover; border-radius: 9999px; }
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a { font-size: 15px; color: var(--foreground-primary); transition: color 0.2s; }
.nav-links a:hover { color: var(--accent-primary); }
.nav-links .dropdown { position: relative; }
.nav-links .dropdown-menu {
  display: none; position: absolute; top: 100%; left: -16px;
  background: var(--white); border-radius: 12px; padding: 8px 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1); min-width: 200px; z-index: 200;
}
.nav-links .dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 10px 20px; font-size: 14px; }
.dropdown-menu a:hover { background: var(--surface-secondary); }
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 28px; border-radius: 9999px;
  background: var(--accent-primary); color: var(--white);
  font-size: 14px; font-weight: 600; transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.9; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 36px; border-radius: 9999px;
  border: 2px solid var(--accent-primary); color: var(--accent-primary);
  font-size: 16px; font-weight: 600; background: transparent; transition: all 0.2s;
}
.btn-outline:hover { background: var(--accent-primary); color: var(--white); }
.lang-toggle {
  padding: 8px 16px; border-radius: 9999px; font-size: 13px; font-weight: 700;
  letter-spacing: 1px; background: var(--surface-secondary); color: var(--accent-primary);
  border: 1.5px solid var(--border-subtle); cursor: pointer; transition: all 0.2s;
}
.lang-toggle:hover { background: var(--accent-primary); color: var(--white); border-color: var(--accent-primary); }
/* Hide Vietnamese subtitle when VN language is active (desc already in VN) */
html[lang="vi"] .vn-subtitle { display: none; }
.btn-facebook {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 40px; border-radius: 9999px;
  background: var(--facebook-blue); color: var(--white);
  font-size: 16px; font-weight: 600; transition: opacity 0.2s;
}
.btn-facebook:hover { opacity: 0.9; }

/* ===== Hero ===== */
.hero {
  display: flex; height: 640px; background: var(--surface-primary);
}
.hero-text {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding: 80px 64px 80px 80px; gap: 24px;
}
.hero-text .label {
  font-size: 12px; font-weight: 600; letter-spacing: 3px;
  color: var(--accent-secondary); text-transform: uppercase;
}
.hero-text h1 {
  font-family: 'Playfair Display', serif; font-size: 64px;
  font-weight: 700; line-height: 1.1; color: var(--foreground-primary);
}
.hero-text .subtitle {
  font-family: 'Playfair Display', serif; font-size: 24px;
  font-style: italic; color: var(--accent-secondary);
}
.hero-text .desc { font-size: 16px; color: var(--foreground-secondary); line-height: 1.7; }
.hero-buttons { display: flex; gap: 16px; align-items: center; }
.hero-video {
  flex: 1; overflow: hidden;
}
.hero-video video {
  width: 100%; height: 100%; object-fit: cover;
}

/* ===== Products / Flavors ===== */
.flavors { text-align: center; background: var(--surface-primary); }
.flavors h2 { font-family: 'Playfair Display', serif; font-size: 44px; font-weight: 700; }
.flavors .subtitle { font-size: 16px; color: var(--foreground-secondary); max-width: 600px; margin: 0 auto; }
.product-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  width: 100%; margin-top: 16px;
}
.product-card {
  background: var(--white); border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03), 0 12px 32px rgba(0,0,0,0.06);
  transition: transform 0.2s;
}
.product-card:hover { transform: translateY(-4px); }
.product-card img { width: 100%; height: 220px; object-fit: cover; }
.product-card .card-body { padding: 20px; text-align: left; }
.product-card h3 { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.product-card .price { font-size: 16px; font-weight: 600; color: var(--accent-primary); margin-bottom: 8px; }
.product-card .desc { font-size: 14px; color: var(--foreground-secondary); line-height: 1.5; }
.product-card .vn { font-size: 13px; color: var(--foreground-muted); font-style: italic; margin-top: 6px; }
.discount-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 9999px;
  background: var(--surface-secondary); font-size: 14px; font-weight: 500;
  color: var(--accent-primary);
}
.order-notes {
  font-size: 13px; color: var(--foreground-muted); margin-top: 8px;
}

/* ===== Gallery ===== */
.gallery { text-align: center; background: var(--surface-secondary); }
.gallery h2 { font-family: 'Playfair Display', serif; font-size: 44px; font-weight: 700; }
.gallery .subtitle { font-size: 16px; color: var(--foreground-secondary); max-width: 500px; margin: 0 auto; }
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; width: 100%;
}
.gallery-grid img {
  width: 100%; height: 320px; object-fit: cover; border-radius: 12px;
  transition: transform 0.3s;
}
.gallery-grid img:hover { transform: scale(1.02); }

/* ===== About Section ===== */
.about-section {
  display: flex; gap: 64px; align-items: center; background: var(--surface-primary);
}
.about-section img { width: 480px; height: 480px; object-fit: cover; border-radius: 12px; flex-shrink: 0; }
.about-content { flex: 1; }
.about-content .label {
  font-size: 13px; font-weight: 600; letter-spacing: 3px;
  color: var(--accent-secondary); text-transform: uppercase; margin-bottom: 12px;
}
.about-content h2 { font-family: 'Playfair Display', serif; font-size: 40px; font-weight: 700; margin-bottom: 24px; }
.about-content p { font-size: 16px; color: var(--foreground-secondary); line-height: 1.7; margin-bottom: 16px; }
.about-content .placeholder { font-size: 14px; font-style: italic; color: var(--foreground-muted); }

/* ===== Contact Form ===== */
.contact-section { text-align: center; background: var(--surface-secondary); }
.contact-section .label {
  font-size: 13px; font-weight: 600; letter-spacing: 3px;
  color: var(--accent-secondary); text-transform: uppercase;
}
.contact-section h2 { font-family: 'Playfair Display', serif; font-size: 40px; font-weight: 700; margin: 16px 0; }
.contact-section .subtitle { font-size: 16px; color: var(--foreground-secondary); max-width: 550px; margin: 0 auto 32px; line-height: 1.6; }
.contact-form {
  max-width: 640px; margin: 0 auto; padding: 40px;
  background: var(--surface-primary); border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03), 0 12px 32px rgba(0,0,0,0.06);
  text-align: left;
}
.form-row { display: flex; gap: 16px; margin-bottom: 24px; }
.form-group { flex: 1; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border-subtle);
  border-radius: 8px; font-size: 14px; background: var(--surface-primary);
  color: var(--foreground-primary); outline: none; transition: border 0.2s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent-primary); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit {
  width: 100%; padding: 16px; border-radius: 9999px;
  background: var(--accent-primary); color: var(--white);
  font-size: 16px; font-weight: 600; transition: opacity 0.2s;
}
.form-submit:hover { opacity: 0.9; }

/* ===== Facebook / Social Section ===== */
.social-section {
  display: flex; gap: 64px; align-items: center; justify-content: center;
  background: var(--surface-warm);
}
.social-content { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.social-content .label {
  font-size: 13px; font-weight: 600; letter-spacing: 3px;
  color: var(--accent-secondary); text-transform: uppercase;
}
.social-content h2 { font-family: 'Playfair Display', serif; font-size: 36px; font-weight: 700; }
.social-content .desc { font-size: 16px; color: var(--foreground-secondary); max-width: 420px; line-height: 1.6; }
.quick-cards { display: flex; flex-direction: column; gap: 16px; }
.quick-card {
  display: flex; align-items: center; gap: 16px; padding: 20px;
  background: var(--surface-primary); border-radius: 12px; width: 320px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03), 0 8px 20px rgba(0,0,0,0.06);
}
.quick-card .icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent-warm); display: flex; align-items: center;
  justify-content: center; color: var(--white); font-size: 20px; flex-shrink: 0;
}
.quick-card h4 { font-size: 15px; font-weight: 600; }
.quick-card p { font-size: 13px; color: var(--foreground-muted); line-height: 1.5; }

/* ===== Footer ===== */
.footer { background: var(--surface-dark); color: #D7CFC3; }
.footer-top { display: flex; justify-content: space-between; align-items: start; }
.footer-brand { max-width: 250px; }
.footer-brand img { width: 160px; height: 60px; object-fit: contain; border-radius: 8px; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.5; margin-bottom: 16px; }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.1); display: flex;
  align-items: center; justify-content: center; font-size: 16px;
  color: #D7CFC3; transition: background 0.2s;
}
.footer-socials a:hover { background: rgba(255,255,255,0.2); }
.footer-links { display: flex; gap: 64px; }
.footer-col h4 { font-size: 14px; font-weight: 600; color: var(--surface-primary); margin-bottom: 12px; }
.footer-col a { display: block; font-size: 13px; color: #D7CFC3; margin-bottom: 8px; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-divider { width: 100%; height: 1px; background: rgba(255,255,255,0.08); }
.footer-bottom { display: flex; justify-content: space-between; font-size: 12px; color: var(--foreground-muted); }

/* ===== Product Page ===== */
.product-hero { width: 100%; height: 480px; object-fit: cover; }
.product-content { display: flex; gap: 64px; align-items: start; }
.product-details { flex: 1; }
.product-details .breadcrumb { font-size: 13px; color: var(--foreground-muted); margin-bottom: 20px; }
.product-details h1 { font-family: 'Playfair Display', serif; font-size: 44px; font-weight: 700; margin-bottom: 12px; }
.product-details .price { font-size: 22px; font-weight: 600; color: var(--accent-primary); margin-bottom: 16px; }
.product-details .desc { font-size: 16px; color: var(--foreground-secondary); line-height: 1.7; margin-bottom: 12px; }
.product-details .vn { font-size: 14px; font-style: italic; color: var(--foreground-muted); margin-bottom: 20px; }
.product-details hr { border: none; border-top: 1px solid var(--border-subtle); margin: 20px 0; }
.order-info h4 { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.order-info ul { font-size: 14px; color: var(--foreground-secondary); line-height: 1.6; padding-left: 0; }
.order-info li { margin-bottom: 4px; }
.sidebar { width: 360px; flex-shrink: 0; }
.sidebar h3 { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 700; margin-bottom: 16px; }
.related-card {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  background: var(--surface-secondary); border-radius: 12px; margin-bottom: 12px;
}
.related-card img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; }
.related-card h4 { font-size: 14px; font-weight: 600; }
.related-card .price { font-size: 13px; color: var(--accent-secondary); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .section-padding { padding: 60px 40px; }
  .hero { flex-direction: column; height: auto; }
  .hero-text { padding: 60px 40px; }
  .hero-text h1 { font-size: 48px; }
  .hero-video { height: 400px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .about-section { flex-direction: column; }
  .about-section img { width: 100%; height: 300px; }
  .social-section { flex-direction: column; }
  .quick-cards { flex-direction: row; flex-wrap: wrap; }
  .product-content { flex-direction: column; }
  .sidebar { width: 100%; }
}
@media (max-width: 640px) {
  .section-padding { padding: 40px 20px; }
  .nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .hero-text h1 { font-size: 36px; }
  .product-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid img { height: 200px; }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-links { flex-direction: column; gap: 24px; }
  .form-row { flex-direction: column; }
  .quick-card { width: 100%; }
}
