/* ============================================================
 *  EcoBagHub — Complete Redesign
 *  Eco-friendly bag showcase & e-commerce
 *  Design: Organic modern eco-brand, forest + sage + cream
 * ============================================================ */

/* -----------------------------------------
 * 0. CSS Custom Properties
 * ----------------------------------------- */
:root {
  /* Colors — Forest + Sage + Warm Cream */
  --color-primary: #1B4332;       /* Deep forest green */
  --color-primary-light: #2D6A4F; /* Mid forest */
  --color-secondary: #40916C;     /* Sage green */
  --color-accent: #D4A373;        /* Warm amber */
  --color-accent-soft: #F0E6D3;   /* Amber tint */
  --color-bg: #FFFFFF;
  --color-bg-alt: #F0F4EF;        /* Light sage tint */
  --color-bg-warm: #FAF7F2;       /* Warm cream */
  --color-text: #1C1917;          /* Near-black warm */
  --color-text-muted: #6B7280;    /* Muted gray */
  --color-text-light: #9CA3AF;
  --color-border: #E5E7EB;
  --color-border-light: #F3F4F6;
  --color-white: #FFFFFF;
  --color-error: #DC2626;
  --color-success: #059669;

  /* Typography — System stack, no external deps */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: var(--font-sans);

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows — tinted, no pure black */
  --shadow-sm: 0 1px 3px rgba(27, 67, 50, 0.06);
  --shadow-md: 0 4px 12px rgba(27, 67, 50, 0.08);
  --shadow-lg: 0 8px 30px rgba(27, 67, 50, 0.10);
  --shadow-xl: 0 16px 48px rgba(27, 67, 50, 0.12);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --max-width: 1280px;
  --nav-height: 72px;
}

/* -----------------------------------------
 * 1. CSS Reset
 * ----------------------------------------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 0.35em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); margin-bottom: 0.4em; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); margin-bottom: 0.35em; }
h4 { font-size: clamp(1.05rem, 2vw, 1.25rem); margin-bottom: 0.3em; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p { margin-bottom: var(--space-md); }

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--color-secondary); }

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

ul, ol { list-style: none; }

input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* -----------------------------------------
 * 2. Container & Section
 * ----------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

@media (max-width: 640px) {
  .container { padding: 0 var(--space-md); }
}

.section {
  padding: var(--space-3xl) 0;
}

@media (max-width: 768px) {
  .section { padding: var(--space-2xl) 0; }
}

@media (max-width: 480px) {
  .section { padding: var(--space-xl) 0; }
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 680px;
  margin-bottom: var(--space-2xl);
  line-height: 1.7;
}

.section--alt {
  background-color: var(--color-bg-alt);
}

.section--warm {
  background-color: var(--color-bg-warm);
}

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

/* -----------------------------------------
 * 3. Buttons
 * ----------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  padding: 14px 32px;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

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

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background-color: var(--color-primary-light);
  border-color: var(--color-primary-light);
  color: var(--color-white);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-1px);
}

.btn-light {
  background-color: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}
.btn-light:hover {
  background-color: var(--color-bg-alt);
  border-color: var(--color-bg-alt);
  color: var(--color-primary);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.05rem;
}

@media (max-width: 480px) {
  .btn { padding: 12px 24px; font-size: 0.9rem; }
}

/* -----------------------------------------
 * 4. Navigation — Sticky, Clean
 * ----------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-light);
  transition: box-shadow var(--transition-base);
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: var(--color-secondary);
  border-radius: 50%;
}
.nav-logo:hover { color: var(--color-secondary); }

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

.nav-menu a {
  display: block;
  padding: 8px 14px;
  color: var(--color-text);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  letter-spacing: -0.01em;
}
.nav-menu a:hover,
.nav-menu a.active {
  background-color: var(--color-bg-alt);
  color: var(--color-primary);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 1.5rem;
}

@media (max-width: 1024px) {
  .nav-menu a { padding: 6px 10px; font-size: 0.8rem; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: var(--color-white);
    padding: var(--space-md);
    gap: 2px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-base);
  }
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-menu a {
    padding: 12px 16px;
    width: 100%;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
  }
}

/* -----------------------------------------
 * 5. Breadcrumbs
 * ----------------------------------------- */
.breadcrumbs {
  padding: var(--space-md) 0;
  font-size: 0.85rem;
}

.breadcrumbs ol {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.breadcrumbs a { color: var(--color-text-muted); }
.breadcrumbs a:hover { color: var(--color-primary); }

.breadcrumbs li:not(:last-child)::after {
  content: '/';
  margin-left: 6px;
  color: var(--color-text-light);
}

.breadcrumbs [aria-current="page"] {
  color: var(--color-primary);
  font-weight: 600;
}

/* -----------------------------------------
 * 6. Hero — Clean, Text-Forward
 * ----------------------------------------- */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  background: linear-gradient(160deg, #F0F4EF 0%, #E8F0E8 30%, #FAF7F2 60%, #F0F4EF 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(64, 145, 108, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(212, 163, 115, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-primary);
  margin-bottom: 0.3em;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--color-secondary);
  font-weight: 500;
  margin-bottom: var(--space-md);
}

.hero-description {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto var(--space-xl);
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: var(--space-2xl) var(--space-md);
  }
  .hero-content h1 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }
}

/* -----------------------------------------
 * 7. Category Grid — Organic Cards
 * ----------------------------------------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 1024px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .category-grid { grid-template-columns: 1fr; gap: var(--space-md); }
}

.category-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-secondary);
}

.category-image {
  height: 200px;
  background-color: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.category-card:hover .category-image img {
  transform: scale(1.03);
}

.category-card-body {
  padding: var(--space-lg);
}

.category-card-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.3em;
  color: var(--color-text);
}
.category-card-body h3 a {
  color: inherit;
  text-decoration: none;
}
.category-card-body h3 a:hover {
  color: var(--color-primary);
}

.category-card-body p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* -----------------------------------------
 * 8. Product Grid — Compact Cards
 * ----------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
}

.product-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.product-image {
  height: 200px;
  background-color: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.product-card:hover .product-image img {
  transform: scale(1.04);
}

.product-card h3 {
  font-size: 1rem;
  font-weight: 600;
  padding: var(--space-md) var(--space-md) 0;
  color: var(--color-text);
}

.product-material {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  padding: 4px var(--space-md);
}

.product-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
  padding: 0 var(--space-md) var(--space-md);
}

/* -----------------------------------------
 * 9. Why Choose Section — Icon Grid
 * ----------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

@media (max-width: 768px) {
  .why-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
}

.why-card {
  padding: var(--space-lg);
}

.why-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background-color: var(--color-bg-alt);
  border-radius: var(--radius-md);
}

.why-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
}

.why-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* -----------------------------------------
 * 10. Comparison Table — Clean & Modern
 * ----------------------------------------- */
.comparison-section {
  background-color: var(--color-bg-warm);
}

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background-color: var(--color-white);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 700px;
}

.comparison-table thead {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.comparison-table th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.comparison-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:nth-child(even) {
  background-color: var(--color-bg-alt);
}

.comparison-table tbody tr:hover {
  background-color: var(--color-accent-soft);
}

/* -----------------------------------------
 * 11. FAQ Accordion
 * ----------------------------------------- */
.faq-section .container {
  max-width: 800px;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq-item {
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  background-color: var(--color-white);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}
.faq-item:hover {
  border-color: var(--color-border);
}

.faq-item summary {
  padding: var(--space-lg);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  color: var(--color-text);
  transition: color var(--transition-fast);
}
.faq-item summary:hover {
  color: var(--color-primary);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--color-text-muted);
  transition: transform var(--transition-base);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: '\2212';
  transform: rotate(0deg);
}
.faq-item[open] summary {
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-border-light);
}

.faq-item p {
  padding: 0 var(--space-lg) var(--space-lg);
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.75;
}

/* -----------------------------------------
 * 12. CTA Section
 * ----------------------------------------- */
.cta-section {
  background-color: var(--color-primary);
  color: var(--color-white);
  text-align: center;
}

.cta-section h2 {
  color: var(--color-white);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin: 0 auto var(--space-xl);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* -----------------------------------------
 * 13. Guide Cards — Horizontal Layout
 * ----------------------------------------- */
.guide-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.guide-card {
  display: flex;
  align-items: stretch;
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.guide-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.guide-card-image {
  flex: 0 0 280px;
  background-color: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.guide-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-card-content {
  flex: 1;
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.guide-card-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.guide-card-content h3 a {
  color: inherit;
}
.guide-card-content h3 a:hover {
  color: var(--color-primary);
}

.guide-card-content p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 768px) {
  .guide-card { flex-direction: column; }
  .guide-card-image { flex: none; height: 200px; width: 100%; }
  .guide-card-content { padding: var(--space-lg); }
}

/* -----------------------------------------
 * 14. Content Page Layout (Category Pages)
 * ----------------------------------------- */
.page-hero {
  text-align: center;
  padding: var(--space-2xl) 0 var(--space-xl);
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--color-primary);
}

.page-hero .hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: var(--space-sm) auto 0;
}

.content-section {
  padding: var(--space-xl) 0;
  max-width: 860px;
  margin: 0 auto;
}

.content-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.content-section h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.content-section p {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: var(--space-lg);
}

.content-section ul {
  list-style: disc;
  padding-left: 1.5em;
  margin-bottom: var(--space-lg);
}

.content-section ul li {
  margin-bottom: var(--space-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* Product card body (category page variant) */
.product-info {
  padding: var(--space-md);
}
.product-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--color-text);
}
.product-info .product-material,
.product-info .product-capacity {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}
.product-info .product-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
}
.product-info .product-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: 0;
}

/* Product showcase section */
.product-showcase {
  padding: var(--space-3xl) 0;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}
@media (max-width: 768px) {
  .product-showcase { padding: var(--space-2xl) var(--space-md); }
}
.product-showcase h2 {
  text-align: left;
  margin-bottom: var(--space-lg);
}

/* Size guide tables (category pages) */
.size-guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: var(--space-lg) 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.size-guide-table thead {
  background-color: var(--color-primary);
  color: var(--color-white);
}
.size-guide-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.size-guide-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text);
}
.size-guide-table tbody tr:nth-child(even) {
  background-color: var(--color-bg-alt);
}

/* Product list items */
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.product-list-item {
  display: flex;
  gap: var(--space-xl);
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  padding: var(--space-xl);
  transition: box-shadow var(--transition-base);
}
.product-list-item:hover {
  box-shadow: var(--shadow-md);
}

.product-list-image {
  flex: 0 0 200px;
  height: 180px;
  background-color: var(--color-bg-alt);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  overflow: hidden;
}
.product-list-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-list-body {
  flex: 1;
}

.product-list-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.product-list-body .product-material {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding: 0;
  margin-bottom: 8px;
}

.product-list-body .product-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  padding: 0;
  margin-bottom: 8px;
}

.product-list-body p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .product-list-item {
    flex-direction: column;
    gap: var(--space-md);
  }
  .product-list-image {
    flex: none;
    width: 100%;
  }
}

/* -----------------------------------------
 * 15. Contact Page Layout
 * ----------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-2xl);
  align-items: start;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

.contact-form-wrapper h1 {
  margin-bottom: var(--space-sm);
}

.contact-form-wrapper > p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
  line-height: 1.65;
}

/* Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
}

.form-group .required {
  color: var(--color-error);
  margin-left: 2px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--color-text);
  background-color: var(--color-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(64, 145, 108, 0.1);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-light);
}

.form-group.has-error input,
.form-group.has-error textarea {
  border-color: var(--color-error);
}
.form-group.has-error input:focus,
.form-group.has-error textarea:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-group .error-message {
  font-size: 0.8rem;
  color: var(--color-error);
  display: none;
}
.form-group.has-error .error-message {
  display: block;
}

.form-message {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
}
.form-message--success {
  background-color: #ECFDF5;
  color: var(--color-success);
  border: 1px solid #A7F3D0;
}
.form-message--error {
  background-color: #FEF2F2;
  color: var(--color-error);
  border: 1px solid #FECACA;
}

/* Contact Sidebar */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.sidebar-card {
  background-color: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--color-border-light);
}

.sidebar-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.contact-detail {
  margin-bottom: var(--space-md);
}

.contact-detail strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-light);
  margin-bottom: 4px;
}

.contact-detail p,
.contact-detail a {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.5;
}

.sidebar-card > p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

/* -----------------------------------------
 * 16. Footer
 * ----------------------------------------- */
.site-footer {
  background-color: var(--color-primary);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-3xl) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-lg);
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}
.footer-col ul li a:hover { color: var(--color-white); }

.social-icons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  font-size: 0.8rem;
  font-weight: 600;
  transition: background-color var(--transition-fast);
  text-decoration: none;
}
.social-icon:hover {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-lg) 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* -----------------------------------------
 * 17. Back to Top Button
 * ----------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background-color: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

/* -----------------------------------------
 * 18. Animations
 * ----------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .reveal {
    opacity: 0;
  }
  .reveal.visible {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  /* Stagger delays */
  .reveal-delay-1 { animation-delay: 0.05s; }
  .reveal-delay-2 { animation-delay: 0.1s; }
  .reveal-delay-3 { animation-delay: 0.15s; }
  .reveal-delay-4 { animation-delay: 0.2s; }
  .reveal-delay-5 { animation-delay: 0.25s; }
  .reveal-delay-6 { animation-delay: 0.3s; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* -----------------------------------------
 * 19. Lazy Load Images
 * ----------------------------------------- */
.lazy-image {
  opacity: 0;
  transition: opacity 0.5s ease;
}
.lazy-image.loaded {
  opacity: 1;
}

/* -----------------------------------------
 * 20. Utility
 * ----------------------------------------- */
.text-center { text-align: center; }
