/* Bhutan Keeps - Homepage Styles */
/* Design System Tokens */

:root {
  /* Colors */
  --color-bg: #ffffff;
  --color-fg: #000000;
  --color-accent: #CB9DF0;
  --color-muted: #646464;
  --color-light-bg: #EDEDED;
  --color-dark-bg: #000000;
  --color-text-light: #ffffff;
  
  /* Spacing Scale (8px base) */
  --space-xxs: 4px;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-xxl: 64px;
  --space-xxxl: 96px;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 15px;
  --radius-lg: 25px;
  --radius-xl: 35px;
  
  /* Typography */
  --font-primary: "Inter", sans-serif;
  --font-display: "Teko", sans-serif;
  --font-dzongkha: "Jomolhari", serif;
  
  /* Font Sizes */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 30px;
  --text-4xl: 36px;
  --text-5xl: 48px;
  --text-6xl: 60px;
  --text-7xl: 72px;
  --text-8xl: 96px;
  
  /* Font Weights */
  --weight-light: 300;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;
  
  /* Line Heights */
  --leading-tight: 1.1;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Breakpoints */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;
}

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

body {
  font-family: var(--font-primary);
  line-height: var(--leading-normal);
  color: var(--color-fg);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Component Base Styles */
.home-section {
  width: 100%;
  padding: var(--space-xxl) 0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--color-accent) 0%, #F0C1E1 100%);
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xxl);
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.hero-text {
  z-index: 2;
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-7xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--color-fg);
  margin-bottom: var(--space-lg);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: var(--text-xl);
  font-weight: var(--weight-normal);
  line-height: var(--leading-relaxed);
  color: var(--color-muted);
  margin-bottom: var(--space-xxl);
  max-width: 500px;
}

.hero-cta-group {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-xl);
  border-radius: var(--radius-md);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  transition: all var(--transition-normal);
  border: none;
  cursor: pointer;
  font-size: var(--text-lg);
  min-height: 56px;
}

.btn-primary {
  background-color: var(--color-dark-bg);
  color: var(--color-text-light);
}

.btn-primary:hover {
  background-color: var(--color-muted);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-fg);
  border: 2px solid var(--color-fg);
}

.btn-secondary:hover {
  background-color: var(--color-fg);
  color: var(--color-bg);
}

.hero-image {
  position: relative;
  height: 600px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.hero-price {
  position: absolute;
  bottom: var(--space-lg);
  left: var(--space-lg);
  right: var(--space-lg);
  background-color: var(--color-light-bg);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
}

.price-text {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-fg);
}

.hero-image .add-to-cart {
  width: 50px;
  height: 50px;
  background-color: var(--color-dark-bg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.hero-image .add-to-cart:hover {
  background-color: var(--color-accent);
  transform: scale(1.1);
}

.hero-image .add-to-cart img {
  width: 24px;
  height: 24px;
}

/* Featured Categories */
.featured-categories {
  background-color: var(--color-bg);
  padding: var(--space-xxxl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xxxl);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-6xl);
  font-weight: var(--weight-bold);
  color: var(--color-fg);
  margin-bottom: var(--space-lg);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

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

.section-decoration {
  margin-top: var(--space-lg);
  display: flex;
  justify-content: center;
}

.section-decoration img {
  max-width: 200px;
  height: auto;
}

.section-link {
  font-size: var(--text-lg);
  color: var(--color-fg);
  text-decoration: underline;
  font-weight: var(--weight-medium);
  transition: color var(--transition-normal);
}

.section-link:hover {
  color: var(--color-accent);
}

.section-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-xxl);
  gap: var(--space-xl);
}

.navigation-buttons {
  display: flex;
  gap: var(--space-sm);
}

.nav-btn {
  width: 50px;
  height: 50px;
  background-color: var(--color-dark-bg);
  border: none;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.nav-btn:hover {
  background-color: var(--color-accent);
  transform: scale(1.05);
}

.nav-btn img {
  width: 20px;
  height: 20px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xxl);
}

.category-card {
  position: relative;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--color-light-bg);
  border: 3px solid var(--color-fg);
  transition: all var(--transition-normal);
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.category-image {
  width: 100%;
  height: 70%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.category-card:hover .category-image {
  transform: scale(1.1);
}

.category-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-light-bg);
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.category-name {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--color-fg);
  text-transform: uppercase;
}

.category-arrow {
  width: 40px;
  height: 40px;
  background-color: var(--color-dark-bg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
}

.category-card:hover .category-arrow {
  background-color: var(--color-accent);
  transform: translateX(4px);
}

/* Best Sellers */
.best-sellers {
  background-color: var(--color-light-bg);
  padding: var(--space-xxxl) 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xxl);
}

.product-card {
  background-color: var(--color-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 3px solid var(--color-fg);
  transition: all var(--transition-normal);
  cursor: pointer;
}

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

.product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-info {
  padding: var(--space-lg);
}

.product-name {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-fg);
  margin-bottom: var(--space-sm);
  line-height: var(--leading-tight);
}

.product-price {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-muted);
  margin-bottom: var(--space-md);
}

.product-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rating {
  display: flex;
  gap: var(--space-xxs);
}

.rating img {
  width: 20px;
  height: 20px;
}

.add-to-cart {
  width: 40px;
  height: 40px;
  background-color: var(--color-dark-bg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.add-to-cart:hover {
  background-color: var(--color-accent);
  transform: scale(1.1);
}

/* USP Strip */
.usp-strip {
  background-color: var(--color-dark-bg);
  color: var(--color-text-light);
  padding: var(--space-xxl) 0;
}

.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  text-align: center;
}

.usp-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.usp-icon {
  width: 60px;
  height: 60px;
  background-color: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
}

.usp-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-xs);
}

.usp-description {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: var(--leading-relaxed);
}

/* Story Teaser */
.story-teaser {
  background-color: var(--color-bg);
  padding: var(--space-xxxl) 0;
}

.story-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xxxl);
  align-items: center;
}

.story-text {
  padding: var(--space-xl);
}

.story-title {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: var(--weight-bold);
  color: var(--color-fg);
  margin-bottom: var(--space-lg);
  text-transform: uppercase;
}

.story-description {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-muted);
  margin-bottom: var(--space-xl);
}

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

.story-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.story-image:hover img {
  transform: scale(1.05);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--color-accent) 0%, #F0C1E1 100%);
  padding: var(--space-xxxl) 0;
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-display);
  font-size: var(--text-6xl);
  font-weight: var(--weight-bold);
  color: var(--color-fg);
  margin-bottom: var(--space-lg);
  text-transform: uppercase;
}

.cta-description {
  font-size: var(--text-xl);
  color: var(--color-muted);
  margin-bottom: var(--space-xxl);
  line-height: var(--leading-relaxed);
}

.cta-buttons {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    text-align: center;
  }
  
  .hero-title {
    font-size: var(--text-6xl);
  }
  
  .story-content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-md);
  }
  
  .hero-title {
    font-size: var(--text-5xl);
  }
  
  .section-title {
    font-size: var(--text-5xl);
  }
  
  .hero-cta-group {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .categories-grid {
    grid-template-columns: 1fr;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .usp-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: var(--text-4xl);
  }
  
  .section-title {
    font-size: var(--text-4xl);
  }
  
  .cta-title {
    font-size: var(--text-5xl);
  }
  
  .category-card {
    height: 300px;
  }
  
  .hero-image {
    height: 400px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus states */
.btn:focus,
.category-card:focus,
.product-card:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --color-muted: #000000;
    --shadow-lg: 0 0 0 2px #000000;
  }
}
