/* ==========================================================================
   Tiệm Mây & Nắng - Cozy Living & Lifestyle E-Commerce
   Design System & Master Stylesheet
   ========================================================================== */

/* Google Fonts imported in HTML: Quicksand & Nunito */

:root {
  /* Color Palette - Warm, Cozy, Friendly */
  --bg-primary: #FAF7F2;          /* Kem ấm linen dịu mắt */
  --bg-secondary: #F4EFEB;        /* Nền phụ ấm áp */
  --bg-card: #FFFFFF;             /* Nền thẻ trắng tinh khiết */
  --bg-card-hover: #FFFDFB;       /* Nền thẻ khi hover */
  
  /* Accent Colors - Soft Pastels */
  --accent-peach: #FF7E67;        /* Cam đào ấm áp */
  --accent-peach-hover: #FF664D;  /* Cam đào đậm hơn khi hover */
  --accent-peach-light: #FFF0EB;  /* Cam đào pastel rất nhạt */
  --accent-peach-soft: #FDE8E1;
  
  --accent-mint: #5ABEA9;         /* Xanh bạc hà dịu mát */
  --accent-mint-light: #EBF8F5;   /* Xanh mint pastel */
  --accent-mint-hover: #48A995;
  
  --accent-honey: #EBB036;        /* Vàng mật ong ấm */
  --accent-honey-light: #FEF6E4;  /* Vàng pastel nhạt */
  
  --accent-lavender: #8E7CC3;     /* Tím lavender mộng mơ */
  --accent-lavender-light: #F4F1FB;
  
  --accent-rose: #E27B88;         /* Hồng cánh hoa */
  --accent-rose-light: #FDF0F2;
  
  /* Text Colors */
  --text-main: #2C3038;           /* Màu chữ than ấm (không gắt như #000) */
  --text-body: #545B67;           /* Chữ nội dung mềm mại */
  --text-muted: #8E95A2;          /* Chữ ghi chú nhẹ nhàng */
  --text-light: #FFFFFF;          /* Chữ trắng trên nền màu */
  
  /* Borders & Dividers */
  --border-light: #F0E8DF;
  --border-focus: #FFB3A3;
  
  /* Shadows - Extremely Soft & Natural */
  --shadow-xs: 0 2px 8px rgba(135, 105, 80, 0.04);
  --shadow-sm: 0 4px 16px rgba(135, 105, 80, 0.06);
  --shadow-md: 0 10px 30px rgba(135, 105, 80, 0.08);
  --shadow-lg: 0 18px 45px rgba(135, 105, 80, 0.12);
  --shadow-peach: 0 8px 24px rgba(255, 126, 103, 0.28);
  --shadow-mint: 0 8px 24px rgba(90, 190, 169, 0.25);
  
  /* Radius - Ultra Rounded Friendly */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  
  /* Typography */
  --font-heading: 'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* Layout */
  --container-max: 1240px;
  --header-height: 84px;
}

/* ==========================================================================
   CSS 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);
  background-color: var(--bg-primary);
  color: var(--text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: var(--font-heading);
  cursor: pointer;
  border: none;
  background: none;
  font-size: 1rem;
  transition: all var(--transition-normal);
}

input, textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #E4D8CE;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: #D4C5B9;
}

/* ==========================================================================
   Top Announcement Bar
   ========================================================================== */
.announcement-bar {
  background: linear-gradient(90deg, #FFE8E0 0%, #FFF5EB 50%, #EBF8F5 100%);
  padding: 8px 16px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  border-bottom: 1px solid rgba(240, 232, 223, 0.8);
  position: relative;
  z-index: 102;
}

.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.announcement-badge {
  background-color: var(--accent-peach);
  color: #fff;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(250, 247, 242, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 100;
  border-bottom: 1px solid var(--border-light);
  transition: background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.96);
}

.navbar-main {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon-bubble {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #FF9E79 0%, #FF7E67 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 126, 103, 0.35);
  transition: transform var(--transition-bounce);
}

.brand-logo:hover .logo-icon-bubble {
  transform: rotate(-6deg) scale(1.08);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.brand-title span {
  color: var(--accent-peach);
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Search Bar (Hero Search) */
.search-container {
  flex: 1;
  max-width: 520px;
  position: relative;
  margin: 0 16px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 6px 14px 6px 20px;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-normal);
}

.search-input-wrapper:focus-within {
  border-color: var(--accent-peach);
  box-shadow: 0 0 0 4px var(--accent-peach-light), var(--shadow-sm);
  background: #FFFFFF;
}

.search-icon-left {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  margin-right: 10px;
  pointer-events: none;
}

.search-field {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 500;
}

.search-field::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.search-btn-submit {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--accent-peach);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.search-btn-submit:hover {
  background: var(--accent-peach-hover);
  transform: scale(1.05);
}

/* Quick Search Suggestions Dropdown */
.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  display: none;
  z-index: 105;
  animation: fadeInDown 0.2s ease-out;
}

.search-container.active .search-suggestions {
  display: block;
}

.suggestion-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.tags-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-tag {
  background: var(--bg-secondary);
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.search-tag:hover {
  background: var(--accent-peach-light);
  color: var(--accent-peach);
  border-color: var(--accent-peach-soft);
}

/* Nav Actions (Icons) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.action-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  color: var(--text-main);
  position: relative;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-xs);
}

.action-btn:hover {
  background: var(--accent-peach-light);
  border-color: var(--accent-peach-soft);
  color: var(--accent-peach);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.action-btn svg {
  stroke-width: 2.2; /* Rounded thick stroke */
}

.badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent-peach);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(255, 126, 103, 0.4);
  transition: transform var(--transition-bounce);
}

.badge-count.pop {
  animation: popBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-mobile-toggle {
  display: none;
}

/* Sub Navigation Categories Bar */
.subnav-bar {
  border-top: 1px solid var(--border-light);
  padding: 10px 0;
  background: rgba(250, 247, 242, 0.7);
}

.subnav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.subnav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-body);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.subnav-link:hover, .subnav-link.active {
  color: var(--accent-peach);
  background: var(--accent-peach-light);
}

.subnav-link.highlight {
  color: var(--accent-mint);
  font-weight: 700;
}
.subnav-link.highlight:hover {
  background: var(--accent-mint-light);
}

/* ==========================================================================
   Hero Banner Section
   ========================================================================== */
.hero-section {
  padding: 48px 0 64px 0;
  position: relative;
  overflow: hidden;
}

.hero-wrapper {
  background: linear-gradient(135deg, #FFFBF7 0%, #FFF5ED 40%, #F5FBF9 100%);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 48px;
  position: relative;
}

/* Floating decorative bubbles in hero */
.hero-wrapper::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(121, 199, 182, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.hero-wrapper::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 20%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 126, 103, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

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

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-peach);
  border: 1.5px solid var(--accent-peach-soft);
  box-shadow: var(--shadow-xs);
  margin-bottom: 22px;
}

.hero-title {
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-title .highlight-text {
  color: var(--accent-peach);
  position: relative;
  display: inline-block;
}

.hero-title .highlight-text::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 0;
  width: 100%;
  height: 10px;
  background-color: var(--accent-honey-light);
  border-radius: 8px;
  z-index: -1;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Fully Rounded Pastel Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #FF9E79 0%, #FF7E67 100%);
  color: #FFFFFF;
  box-shadow: var(--shadow-peach);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #FF8E66 0%, #FF674D 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 28px rgba(255, 126, 103, 0.4);
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--text-main);
  border: 2px solid var(--border-light);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  border-color: var(--accent-peach-soft);
  background: var(--accent-peach-light);
  color: var(--accent-peach);
  transform: translateY(-2px);
}

.btn-mint {
  background: linear-gradient(135deg, #6ECEB9 0%, #5ABEA9 100%);
  color: #FFFFFF;
  box-shadow: var(--shadow-mint);
}

.btn-mint:hover {
  background: linear-gradient(135deg, #5ABEA9 0%, #44A692 100%);
  transform: translateY(-2px);
}

/* Hero Perks / Trust Badges */
.hero-perks {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px dashed #EADFD5;
}

.perk-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.perk-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-mint);
  box-shadow: var(--shadow-xs);
}

/* Hero Visual & Image Showcase */
.hero-visual {
  position: relative;
  z-index: 2;
}

.hero-image-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid #FFFFFF;
  background: #FFFFFF;
}

.hero-image-card img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-image-card:hover img {
  transform: scale(1.03);
}

/* Floating Cozy Badges over Hero Image */
.floating-glass-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  animation: floatSlow 4s ease-in-out infinite alternate;
}

.floating-glass-badge.badge-top-right {
  top: 24px;
  right: -16px;
}

.floating-glass-badge.badge-bottom-left {
  bottom: 24px;
  left: -20px;
  animation-delay: -2s;
}

.badge-emoji {
  font-size: 1.5rem;
}

.badge-text-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.badge-text-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   Categories Section (Danh Mục)
   ========================================================================== */
.section-padding {
  padding: 64px 0;
}

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

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-peach);
  background: var(--accent-peach-light);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

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

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.category-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  border: 1.5px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-normal);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.category-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-peach-soft);
}

.category-icon-wrapper {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 2rem;
  transition: transform var(--transition-bounce);
}

.category-card:hover .category-icon-wrapper {
  transform: scale(1.15) rotate(6deg);
}

/* Pastel Theme variants for Category Cards */
.cat-peach .category-icon-wrapper { background: #FFEFEA; color: var(--accent-peach); }
.cat-mint .category-icon-wrapper { background: #EAF8F5; color: var(--accent-mint); }
.cat-honey .category-icon-wrapper { background: #FEF7E6; color: var(--accent-honey); }
.cat-lavender .category-icon-wrapper { background: #F3EFF9; color: var(--accent-lavender); }
.cat-rose .category-icon-wrapper { background: #FDEEF0; color: var(--accent-rose); }
.cat-blue .category-icon-wrapper { background: #EDF5FE; color: #4A90E2; }

.category-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.category-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   Featured Products Section (Sản phẩm nổi bật)
   ========================================================================== */
.filter-tabs-wrapper {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 38px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  color: var(--text-body);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

.filter-tab:hover {
  border-color: var(--accent-peach-soft);
  color: var(--accent-peach);
}

.filter-tab.active {
  background: var(--accent-peach);
  color: #FFFFFF;
  border-color: var(--accent-peach);
  box-shadow: var(--shadow-peach);
}

/* 4-Column Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

/* Product Card */
.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
}

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

/* Product Image & Badges */
.product-image-container {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #FAF6F0;
  aspect-ratio: 1 / 1;
  margin-bottom: 16px;
}

.product-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-thumb {
  transform: scale(1.06);
}

/* Wishlist Button */
.btn-wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-bounce);
  z-index: 3;
}

.btn-wishlist:hover {
  transform: scale(1.15);
  color: var(--accent-rose);
}

.btn-wishlist.active {
  color: var(--accent-rose);
  background: #FFFFFF;
}

.btn-wishlist.active svg {
  fill: var(--accent-rose);
}

/* Product Badges */
.product-badge-group {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.product-badge {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  box-shadow: var(--shadow-xs);
}

.badge-hot {
  background: #FFEDEA;
  color: #E64A19;
}

.badge-new {
  background: #E8F8F4;
  color: #2E7D6F;
}

.badge-sale {
  background: #FFF9E6;
  color: #B78103;
}

/* Product Info */
.product-details {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.product-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 8px;
  min-height: 44px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 0.85rem;
}

.stars-row {
  color: #FFB800;
  display: flex;
  gap: 2px;
  font-size: 0.9rem;
}

.rating-score {
  font-weight: 800;
  color: var(--text-main);
}

.rating-count {
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* Price & Add to Cart */
.product-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-light);
}

.price-box {
  display: flex;
  flex-direction: column;
}

.price-current {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-peach);
  line-height: 1.1;
}

.price-old {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 600;
}

.btn-add-to-cart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--accent-peach-light);
  color: var(--accent-peach);
  border: 1.5px solid var(--accent-peach-soft);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.btn-add-to-cart:hover {
  background: var(--accent-peach);
  color: #FFFFFF;
  border-color: var(--accent-peach);
  box-shadow: var(--shadow-peach);
  transform: translateY(-2px);
}

.btn-add-to-cart.added {
  background: var(--accent-mint);
  color: #FFFFFF;
  border-color: var(--accent-mint);
}

/* ==========================================================================
   Cozy Experience Banner / Storytelling Section
   ========================================================================== */
.story-section {
  padding: 40px 0 64px 0;
}

.story-card {
  background: linear-gradient(135deg, #FEF7EE 0%, #FFF3EC 50%, #F5FBF9 100%);
  border-radius: var(--radius-xl);
  padding: 48px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

.story-quote {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 20px;
}

.story-text {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 28px;
}

.features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.feature-point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.feature-check-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--accent-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-xs);
}

.feature-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.feature-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.story-visual-collage {
  position: relative;
}

.story-main-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 4px solid #FFFFFF;
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.story-float-note {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: #FFFFFF;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  max-width: 220px;
}

.story-float-note p {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.story-float-note span {
  font-size: 0.75rem;
  color: var(--accent-peach);
  font-weight: 600;
}

/* ==========================================================================
   Cozy Newsletter / Góc Bình Yên
   ========================================================================== */
.newsletter-section {
  padding: 30px 0 60px 0;
}

.newsletter-box {
  background: linear-gradient(135deg, #FFF9F3 0%, #FFFFFF 100%);
  border-radius: var(--radius-xl);
  padding: 56px 40px;
  text-align: center;
  border: 2px dashed #E8DCCF;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.newsletter-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-peach-light);
  color: var(--accent-peach);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  font-size: 1.8rem;
}

.newsletter-title {
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.newsletter-subtitle {
  font-size: 1.05rem;
  color: var(--text-body);
  max-width: 520px;
  margin: 0 auto 32px auto;
}

.newsletter-form {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
  background: #FFFFFF;
  padding: 6px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.newsletter-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  color: var(--text-main);
}

.newsletter-input::placeholder {
  color: var(--text-muted);
}

.newsletter-privacy-note {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #F4EFEB;
  border-top: 1px solid #EBE2D8;
  padding: 64px 0 32px 0;
  position: relative;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand-info p {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 18px 0 24px 0;
  max-width: 340px;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-xs);
}

.social-btn:hover {
  background: var(--accent-peach);
  color: #FFFFFF;
  border-color: var(--accent-peach);
  transform: translateY(-3px);
}

.footer-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 20px;
}

.footer-links-list li {
  margin-bottom: 12px;
}

.footer-links-list a {
  font-size: 0.92rem;
  color: var(--text-body);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links-list a:hover {
  color: var(--accent-peach);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.92rem;
  color: var(--text-body);
}

.footer-contact-item svg {
  color: var(--accent-peach);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Warm Heartfelt Thank You Note in Footer */
.footer-heartfelt-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  border: 1.5px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  text-align: center;
  margin-bottom: 40px;
}

.thankyou-heart-icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
  display: inline-block;
  animation: pulseHeart 1.8s ease-in-out infinite;
}

.thankyou-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto;
}

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid #E6DCD1;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 16px;
}

.payment-methods {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.payment-badge {
  background: #FFFFFF;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--text-body);
  border: 1px solid var(--border-light);
}

/* ==========================================================================
   Shopping Cart Drawer (Slide-in)
   ========================================================================== */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 25, 20, 0.4);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.cart-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: #FFFFFF;
  z-index: 201;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-drawer-overlay.active .cart-drawer {
  transform: translateX(0);
}

.cart-header {
  padding: 22px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-primary);
}

.cart-header-title {
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-close-cart {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  color: var(--text-main);
}

.btn-close-cart:hover {
  background: var(--accent-peach-light);
  color: var(--accent-peach);
}

/* Freeship Progress Bar in Cart */
.freeship-progress-box {
  background: #FFF8F5;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border-light);
}

.freeship-note {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.progress-track {
  height: 8px;
  background: #EFE4DC;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #FF9E79, #5ABEA9);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

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

.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}

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

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
  line-height: 1.25;
}

.cart-item-price {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--accent-peach);
  margin-bottom: 8px;
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-full);
  background: var(--bg-primary);
  overflow: hidden;
}

.qty-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-main);
}

.qty-btn:hover {
  background: #FFFFFF;
  color: var(--accent-peach);
}

.qty-val {
  padding: 0 10px;
  font-size: 0.85rem;
  font-weight: 700;
}

.btn-remove-item {
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 6px;
}

.btn-remove-item:hover {
  color: var(--accent-rose);
}

/* Empty Cart State */
.empty-cart-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-cart-emoji {
  font-size: 3.5rem;
  margin-bottom: 16px;
}

.empty-cart-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.empty-cart-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Cart Footer */
.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-primary);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.cart-subtotal-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-body);
}

.cart-subtotal-val {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--accent-peach);
}

.btn-checkout {
  width: 100%;
  padding: 16px;
  font-size: 1.05rem;
}

/* ==========================================================================
   Toast Notification System
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 14px 20px;
  box-shadow: 0 10px 35px rgba(44, 48, 56, 0.15);
  border: 1.5px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideToastIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 380px;
}

.toast-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-mint-light);
  color: var(--accent-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.toast-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Mobile Nav Drawer
   ========================================================================== */
.mobile-nav-drawer {
  position: fixed;
  inset: 0;
  background: rgba(30, 25, 20, 0.4);
  backdrop-filter: blur(4px);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.mobile-nav-drawer.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 82%;
  max-width: 340px;
  background: #FFFFFF;
  padding: 30px 24px;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.mobile-nav-drawer.active .mobile-nav-panel {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-links a {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.mobile-links a:hover {
  background: var(--accent-peach-light);
  color: var(--accent-peach);
}

/* ==========================================================================
   Animations Keyframes
   ========================================================================== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popBounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

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

@keyframes pulseHeart {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

@keyframes slideToastIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ==========================================================================
   Responsive Breakpoints (Mobile First to Desktop)
   ========================================================================== */

/* Large Desktop (> 1200px) */
@media (min-width: 1200px) {
  .container {
    padding-left: 32px;
    padding-right: 32px;
  }
}

/* Tablets & Small Desktops (<= 1024px) */
@media (max-width: 1024px) {
  .hero-wrapper {
    grid-template-columns: 1fr;
    padding: 40px 32px;
    gap: 36px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-image-card img {
    height: 360px;
  }
  
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .story-card {
    grid-template-columns: 1fr;
    padding: 36px;
    gap: 32px;
  }
  
  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablets & Mobile (<= 768px) */
@media (max-width: 768px) {
  :root {
    --header-height: 72px;
  }
  
  .announcement-bar {
    font-size: 0.78rem;
  }
  
  .search-container {
    display: none; /* Can be opened via icon on mobile */
  }
  
  .btn-mobile-toggle {
    display: flex;
  }
  
  .subnav-bar {
    display: none;
  }
  
  .hero-section {
    padding: 24px 0 44px 0;
  }
  
  .hero-wrapper {
    padding: 28px 20px;
    border-radius: var(--radius-lg);
  }
  
  .hero-title {
    font-size: 2.1rem;
  }
  
  .hero-description {
    font-size: 1rem;
    margin-bottom: 24px;
  }
  
  .hero-perks {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  
  .floating-glass-badge {
    display: none; /* Hide floating badges on small mobile screens to keep view clean */
  }
  
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  
  .product-card {
    padding: 12px;
    border-radius: var(--radius-md);
  }
  
  .product-title {
    font-size: 0.95rem;
    min-height: 38px;
  }
  
  .price-current {
    font-size: 1.1rem;
  }
  
  .btn-add-to-cart {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
  
  .btn-add-to-cart span {
    display: none; /* Icon only on mobile button to fit nicely */
  }
  
  .features-list {
    grid-template-columns: 1fr;
  }
  
  .newsletter-box {
    padding: 36px 20px;
  }
  
  .newsletter-form {
    flex-direction: column;
    border-radius: var(--radius-md);
    background: transparent;
    border: none;
    box-shadow: none;
  }
  
  .newsletter-input {
    background: #FFFFFF;
    border: 1.5px solid var(--border-light);
    margin-bottom: 8px;
  }
  
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
}

/* Extra small mobile (<= 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.85rem;
  }
  
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .section-title {
    font-size: 1.8rem;
  }
}
