/* ==========================================================================
   SAI VASTRAGRUGA BOUTIQUE - LUXURY STYLESHEET
   Brand Palette Extracted from Logo:
   - Primary: #840C24 (Imperial Crimson Maroon)
   - Accent:  #D4AF37 (Metallic Royal Zari Gold)
   - Surface: #FAF6F0 (Soft Linen Cream Background)
   - Dark:    #1A1718 (Ebony Black)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand Color System */
  --primary: #840C24;
  --primary-hover: #69091C;
  --primary-light: #F8ECEE;
  
  --accent-gold: #D4AF37;
  --accent-gold-dark: #B38F24;
  --accent-gold-light: #F9F3DF;
  
  --bg-main: #FAF6F0;
  --bg-card: #FFFFFF;
  --bg-subtle: #F4EFEA;
  
  --text-dark: #1A1718;
  --text-body: #4A4442;
  --text-muted: #7C7370;
  --text-light: #FFFFFF;
  
  --border-light: #EBE4DC;
  --border-gold: rgba(212, 175, 55, 0.4);

  /* Brand Color Aliases for Subpages & Sample Templates */
  --primary-color: #840C24;
  --secondary-color: #D4AF37;
  --accent-color: #D4AF37;

  --color-crimson: #840C24;
  --color-crimson-dark: #69091C;
  --color-crimson-light: #A31B3B;
  --color-crimson-alpha: rgba(132, 12, 36, 0.12);
  --color-crimson-glow: rgba(132, 12, 36, 0.25);
  --bg-crimson-subtle: #F8ECEE;

  --color-green: #D4AF37;
  --color-green-dark: #B38F24;
  --color-green-light: #E5C453;
  --color-green-alpha: rgba(212, 175, 55, 0.12);
  --color-green-glow: rgba(212, 175, 55, 0.25);
  --bg-green-subtle: #F9F3DF;

  --bg-primary: #FAF6F0;
  --bg-secondary: #F5EFE6;
  --text-main: #1A1718;
  
  /* Typography Scale */
  --font-heading: 'Cinzel', 'Cormorant Garamond', Georgia, serif;
  --font-subheading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* UI Token Radii & Shadows */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(26, 23, 24, 0.04);
  --shadow-md: 0 8px 24px rgba(26, 23, 24, 0.08);
  --shadow-lg: 0 16px 40px rgba(26, 23, 24, 0.12);
  --shadow-gold: 0 8px 24px rgba(212, 175, 55, 0.25);
  
  --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

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

body {
  background-color: var(--bg-main);
  color: var(--text-body);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  transition: var(--transition-fast);
}

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

/* Layout Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Section Header Typography */
.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-gold-dark);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-family: var(--font-subheading);
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 2.5rem auto;
}

.text-center {
  text-align: center;
}

/* Button System (Rounded 8-10px, Soft Shadows) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-light);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 8px 20px rgba(132, 12, 36, 0.35);
  transform: translateY(-2px);
}

.btn-gold {
  background-color: var(--accent-gold);
  color: var(--text-dark);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.btn-gold:hover {
  background-color: #E2BC43;
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--text-light);
  transform: translateY(-2px);
}

.btn-outline-gold {
  border: 1.5px solid var(--accent-gold);
  color: var(--accent-gold-dark);
  background: transparent;
}

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

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
}

.btn-full {
  width: 100%;
}

/* Header & Navigation (Sticky Transparent -> Solid on Scroll) */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: var(--transition-smooth);
  background-color: rgba(250, 246, 240, 0.85);
}

.header.scrolled {
  background-color: rgba(250, 246, 240, 0.96);
  /* backdrop-filter: blur(12px); */
  padding: 0.875rem 0;
  box-shadow: 0 4px 20px rgba(26, 23, 24, 0.06);
  border-bottom: 1px solid var(--border-gold);
}

main {
  padding-top: 20px;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.brand-logo img {
  height: 52px;
  width: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-gold);
  object-fit: cover;
  transition: var(--transition-fast);
}

.brand-logo:hover img {
  transform: scale(1.04);
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.05em;
  line-height: 1.1;
}

.brand-tagline {
  font-size: 0.72rem;
  color: var(--accent-gold-dark);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
  padding: 0.375rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition-fast);
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  color: var(--text-dark);
  background-color: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-light);
  transition: var(--transition-fast);
}

.icon-btn:hover {
  background-color: var(--primary);
  color: var(--text-light);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--accent-gold);
  color: var(--text-dark);
  font-size: 0.75rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-main);
}

/* Mobile Navigation Toggle */
.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  background: #F8ECEE;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  line-height: 0;
}

/* Dark backdrop shown behind the sliding mobile nav panel */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(26, 23, 24, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1001;
}

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

.nav-close {
  display: none;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 90vh;
  padding-top: 20px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(250, 246, 240, 0.85) 0%, rgba(244, 239, 234, 0.95) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

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

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-title span {
  color: var(--primary);
  font-style: italic;
  font-family: var(--font-subheading);
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-gold);
}

.hero-image-card img {
  width: 100%;
  /* height: 540px; */
  height: auto;
  object-fit: cover;
  transition: transform 6s ease-in-out;
}

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

.hero-badge-float {
  position: absolute;
  /* bottom: 2rem;
  left: -2rem; */
  bottom: 30px;      /* Distance from bottom */
  left: 30px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  /* padding: 1rem 1.5rem; */
  padding: 18px 24px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent-gold);
  box-shadow: var(--shadow-md);
  z-index: 10; /*new add*/
}

.hero-badge-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;/*new add*/
}

.hero-badge-sub {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5; /*new add*/
}

/* Featured Collections Section */
.collections-section {
  padding: 6rem 0;
}

.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.collection-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--bg-card);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition-smooth);
}

.collection-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-gold);
}

.collection-img-box {
  position: relative;
  height: 320px;
  overflow: hidden;
}

.collection-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.collection-card:hover .collection-img-box img {
  transform: scale(1.08);
}

.collection-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 23, 24, 0.85) 0%, rgba(26, 23, 24, 0) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: var(--text-light);
}

.collection-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.collection-count {
  font-size: 0.875rem;
  color: var(--accent-gold);
  font-weight: 500;
}

/* See All Button strictly at the end of collection grid */
.collections-footer {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

/* Best Sellers Section & Product Cards */
.best-sellers-section {
  padding: 6rem 0;
  background-color: var(--bg-subtle);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.25rem;
}

.product-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
}

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

.product-thumb {
  position: relative;
  height: 360px;
  overflow: hidden;
  background-color: #F8F4EF;
}

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

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

.product-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--primary);
  color: var(--text-light);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}

.product-tag.tag-gold {
  background-color: var(--accent-gold);
  color: var(--text-dark);
}

.quick-view-btn {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-dark);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
  white-space: nowrap;
}

.product-card:hover .quick-view-btn {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.quick-view-btn:hover {
  background-color: var(--primary);
  color: var(--text-light);
}

.product-details {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.375rem;
}

.product-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 3.1rem;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.stars {
  color: #F59E0B;
  display: flex;
  gap: 2px;
}

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

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.875rem;
  border-top: 1px solid var(--border-light);
}

.product-price {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
}

.add-cart-btn {
  background-color: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(132, 12, 36, 0.2);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.add-cart-btn:hover {
  background-color: var(--primary);
  color: var(--text-light);
}

/* Craftsmanship Section */
.craftsmanship-section {
  padding: 6.5rem 0;
  background-color: var(--bg-main);
  position: relative;
}

.craft-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.craft-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.craft-img-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-gold);
}

.craft-img-card:nth-child(2) {
  transform: translateY(2rem);
}

.craft-img-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.craft-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.craft-item {
  background-color: var(--bg-card);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--accent-gold);
  box-shadow: var(--shadow-sm);
}

.craft-item-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.craft-item-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Why Choose Us Section */
.why-section {
  padding: 6rem 0;
  background-color: var(--bg-card);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.why-card {
  padding: 2.25rem;
  border-radius: var(--radius-md);
  background-color: var(--bg-main);
  border: 1px solid var(--border-light);
  transition: var(--transition-smooth);
}

.why-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-md);
}

.why-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(132, 12, 36, 0.15);
}

.why-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.why-card-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* New Arrivals Horizontal Slider */
.new-arrivals-section {
  padding: 6rem 0;
  background-color: var(--bg-subtle);
  position: relative;
}

.slider-wrapper {
  position: relative;
  overflow: hidden;
}

.slider-container {
  display: flex;
  gap: 1.75rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 1rem 0.25rem 2rem 0.25rem;
  scrollbar-width: none; /* Firefox */
}

.slider-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.slider-item {
  flex: 0 0 300px;
  scroll-snap-align: start;
}

.slider-arrows {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.slider-arrow {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-gold);
  background-color: var(--bg-card);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.slider-arrow:hover {
  background-color: var(--primary);
  color: var(--text-light);
  border-color: var(--primary);
}

/* Testimonials Section */
.testimonials-section {
  padding: 6rem 0;
  background-color: var(--bg-main);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background-color: var(--bg-card);
  padding: 2.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  position: relative;
}

.quote-icon {
  font-family: var(--font-heading);
  font-size: 3rem;
  line-height: 1;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-body);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
}

.author-name {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 0.9375rem;
}

.author-location {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Newsletter Section */
.newsletter-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: var(--text-light);
}

.newsletter-box {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.newsletter-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 520px;
  margin: 0 auto;
}

.newsletter-input {
  flex-grow: 1;
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.95);
  font-size: 0.9375rem;
  color: var(--text-dark);
  outline: none;
}

.newsletter-input:focus {
  border-color: var(--accent-gold);
}

/* Separate Views / Pages (Contact, Login, Cart) */
.page-view {
  display: none;
  min-height: 80vh;
  padding-top: 110px;
  padding-bottom: 5rem;
  animation: fadeIn 0.4s ease-in-out forwards;
}

.page-view.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Contact Page Styles (Floral motifs background) */
.contact-page {
  background-color: var(--bg-main);
  background-image: radial-gradient(var(--border-gold) 1px, transparent 1px);
  background-size: 28px 28px;
}

.contact-hero {
  text-align: center;
  padding: 3rem 0;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 3.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
}

.contact-info-card {
  background-color: var(--bg-card);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.info-item {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.info-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--accent-gold-light);
  color: var(--accent-gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.info-text {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.map-placeholder {
  height: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background-color: #EAE6DF;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-weight: 500;
}

.contact-form-card {
  background-color: var(--bg-card);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-gold);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.875rem 1.125rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  background-color: var(--bg-main);
  font-size: 0.9375rem;
  color: var(--text-dark);
  font-family: var(--font-body);
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(132, 12, 36, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Login Page / Modal */
.login-container {
  max-width: 440px;
  margin: 2rem auto;
  background-color: var(--bg-card);
  padding: 3rem 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-gold);
  text-align: center;
}

.login-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.25rem auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--accent-gold);
}

.login-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.login-subtitle {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.otp-box {
  display: inline-flex;
  width: 52px;
  height: 60px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-dark);
  font-family: var(--font-heading);
  background: var(--bg-subtle);
  outline: none;
}

.otp-box:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(132, 12, 36, 0.12);
  background: #fff;
}

.otp-inputs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.otp-digit {
  width: 48px;
  height: 54px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  background-color: var(--bg-main);
}

.otp-digit:focus {
  border-color: var(--primary);
  outline: none;
}

/* Cart Page Styles */
.cart-container {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2.5rem;
}

.cart-items-card {
  background-color: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

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

.cart-item:last-child {
  border-bottom: none;
}

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

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

.cart-item-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.cart-item-price {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.05rem;
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background-color: var(--bg-main);
}

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

.qty-val {
  width: 36px;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
}

.remove-btn {
  color: #DC2626;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.remove-btn:hover {
  text-decoration: underline;
}

.order-summary-card {
  background-color: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-gold);
  height: fit-content;
}

.summary-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.summary-row.total-row {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  padding-top: 1rem;
  border-top: 1.5px dashed var(--border-light);
  margin-top: 1.25rem;
}

.summary-row.total-row span:last-child {
  color: var(--primary);
  font-family: var(--font-heading);
}

.empty-cart-box {
  text-align: center;
  padding: 4rem 2rem;
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-gold);
}

.empty-cart-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem auto;
  border-radius: var(--radius-full);
  background-color: var(--accent-gold-light);
  color: var(--accent-gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Footer Section */
.footer {
  background-color: var(--text-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 5rem 0 2rem 0;
  border-top: 3px solid var(--accent-gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand img {
  height: 48px;
  margin-bottom: 1.25rem;
  border-radius: var(--radius-sm);
}

.footer-brand-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.footer-brand-desc {
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--accent-gold);
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a:hover {
  color: var(--accent-gold);
  padding-left: 4px;
}

.social-icons {
  display: flex;
  gap: 0.875rem;
  margin-top: 1.25rem;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.social-icon:hover {
  background-color: var(--accent-gold);
  color: var(--text-dark);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
}

/* Quick View Modal & Toast Notifications */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 23, 24, 0.75);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: var(--bg-card);
  width: 100%;
  max-width: 840px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-gold);
  display: grid;
  grid-template-columns: 1fr 1fr;
  animation: modalScale 0.3s ease forwards;
}

@keyframes modalScale {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.modal-close:hover {
  background: var(--primary);
  color: var(--text-light);
}

.toast {
  position: fixed;
  top: 2rem;
  right: 2rem;
  background-color: #ffffff;
  color: var(--text-dark);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent-gold);
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition-smooth);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-grid,
  .craft-grid,
  .contact-grid,
  .cart-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .hero-image-card img {
    height: 400px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .modal-card {
    grid-template-columns: 1fr;
    max-height: 90vh;
    overflow-y: auto;
  }
}

@media (max-width: 768px) {
  .header-container {
    gap: 0.75rem;
  }

  main {
    padding-top: 20px;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 78%;
    max-width: 300px;
    height: 100vh;
    height: 100dvh;
    background-color: var(--bg-card);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 5rem 2rem 2rem 2rem;
    box-shadow: var(--shadow-lg);
    transition: right 0.35s ease;
    border-left: 1px solid var(--border-gold);
    z-index: 1002;
    overflow-y: auto;
  }

  .nav-menu .nav-link {
    width: 100%;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 1.05rem;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-overlay,
  .nav-close {
    display: block;
  }

  .nav-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-size: 2rem;
    color: var(--text-dark);
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1003;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .newsletter-form {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 0.7rem 0;
  }
  .container {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}
  .header-container {
    gap: 0.6rem;
    padding-left: 0px;
    padding-right: 0px;
  }

  .brand-logo {
    gap: 0.5rem;
    flex: 1 1 auto;
    min-width: 0;
  }

  .brand-logo > div {
    min-width: 0;
    overflow: hidden;
  }

  .brand-logo img {
    height: 40px;
    flex-shrink: 0;
  }

  .brand-name {
    font-size: 15px;
    font-family: var(--font-heading);
    font-weight: 900;
    color: var(--primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-tagline {
    font-size: 8px;
    color: var(--accent-gold-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-actions {
    gap: 0.5rem;
    flex-shrink: 0;
  }

  .icon-btn {
    width: 28px;
    height: 28px;
  }

  .mobile-toggle {
    padding: 0.3rem;
  }

  .nav-menu {
    width: 82%;
  }
}

body.nav-open {
  overflow: hidden;
}
.gradient-text-crimson {
  background: linear-gradient(135deg, var(--color-crimson) 0%, var(--color-crimson-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge-green {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-green-subtle);
  color: var(--color-green-dark);
  border: 1px solid rgba(133, 176, 51, 0.3);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
}