:root {

  /* New color system */
  --jet-black: #2d3142ff;
  --silver: #bfc0c0ff;
  --bright-snow: #f8f9faff;
  --white: #ffffffff;
  --almond-silk: #fad7c8ff;
  --tangerine-dream: #f4ae90ff;
  --coral-glow: #ef8354ff;
  --lavender-grey: #8693acff;

  /* App semantic tokens mapped to your palette */
  --primary-bg: var(--bright-snow);
  --section-bg: var(--white);
  --muted-accent: var(--silver);
  --heading-color: var(--jet-black);
  --text-color: var(--jet-black);
  --saas-accent: var(--coral-glow);
  --saas-accent-hover: var(--tangerine-dream);
  --pink-accent: var(--almond-silk);
  --transition: all 0.3s ease;
}

/* Optional: gradients based on your palette */
.bg-gradient-dark {
  background: linear-gradient(transparent, rgba(45, 49, 66, 0.8)) !important;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--primary-bg);
  color: var(--text-color);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

h1, h2, h3, .navbar-brand {
  font-family: 'Playfair Display', serif;
  color: var(--heading-color);
}

/* Navbar Styling */
.navbar {
  background: rgba(248, 249, 250, 0.9); /* bright-snow with opacity */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--muted-accent);
  padding: 1rem 0;
  transition: var(--transition);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color) !important;
}

.nav-link {
  font-weight: 500;
  color: var(--text-color) !important;
  margin: 0 10px;
}

/* Buttons */
.btn-saas-outline {
  border: 2px solid var(--saas-accent);
  color: var(--saas-accent);
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-saas-outline:hover {
  background: var(--saas-accent);
  color: white;
}

.btn-saas-primary {
  background: var(--saas-accent); /* solid brown */
  color: white;
  padding: 10px 25px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(45, 49, 66, 0.25);
  transition: var(--transition);
}

/* keep it brown on hover too */
.btn-saas-primary:hover {
  background: var(--saas-accent);  /* stays brown */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 49, 66, 0.35);
  color: white;                    /* text stays white */
}

.text-accent {
  color: var(--saas-accent);
}

/* Hero Section */
.hero-section {
  padding: 160px 0 100px;
  background: linear-gradient(
    to bottom,
    var(--white),
    var(--primary-bg)
  );
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero-tagline {
  font-size: 1.2rem;
  color: var(--heading-color);
  margin-bottom: 40px;
}

/* Features Section */
.features-section {
  padding: 100px 0;
  background: var(--primary-bg);
}

.feature-card {
  padding: 40px;
  border-radius: 20px;
  background: var(--section-bg);
  border: 1px solid var(--muted-accent);
  transition: var(--transition);
  height: 100%;
}

.feature-card:hover {
  box-shadow: 0 20px 40px rgba(45, 49, 66, 0.08);
  transform: translateY(-10px);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--saas-accent);
  margin-bottom: 20px;
}

/* Products Card */
.product-card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  background: var(--white);
  transition: var(--transition);
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(45, 49, 66, 0.08);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(45, 49, 66, 0.14);
}

.product-img {
  height: 350px;
  object-fit: cover;
  width: 100%;
}

.product-info {
  padding: 20px;
}

.product-price {
  color: var(--saas-accent);
  font-weight: 700;
  font-size: 1.25rem;
}

/* Reviews */
.review-card {
  background: var(--section-bg);
  padding: 30px;
  border-radius: 15px;
  margin-bottom: 20px;
}

.star-rating {
  color: #ffc107;
  margin-bottom: 10px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  background: var(--lavender-grey);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Footer */
footer {
  background-color: #0e0b0a; /* brown-ish from your palette */
  color: rgb(243, 240, 240);
  padding: 80px 0 30px;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

/* Footer text color override */
footer .text-muted {
  color: #bfbfbf !important; /* light warm grey */
}


/* Auth Pages */
.auth-container {
  max-width: 450px;
  margin: 150px auto;
  padding: 40px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(45, 49, 66, 0.08);
}

/* Cart Sidebar */
#cartOffcanvas {
  width: 400px;
}

.cart-item {
  display: flex;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--muted-accent);
}

.cart-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 15px;
}

/* Sections visibility */
.page-section {
  display: none;
}

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

/* Receipt styling */
#receipt-content {
  padding: 40px;
  background: var(--white);
  width: 500px;
  margin: 0 auto;
  border: 1px solid var(--muted-accent);
}

.receipt-header {
  text-align: center;
  border-bottom: 2px solid var(--text-color);
  margin-bottom: 20px;
  padding-bottom: 20px;
}

/* Size Selector */
.size-selector {
  display: flex;
  gap: 5px;
  margin: 10px 0;
}

.size-btn {
  border: 1px solid var(--muted-accent);
  background: none;
  padding: 2px 8px;
  font-size: 0.8rem;
  border-radius: 4px;
  cursor: pointer;
}

.size-btn.active {
  background: var(--saas-accent);
  color: white;
  border-color: var(--saas-accent);
}

/* Featured Images */
.featured-img {
  height: 400px;
  object-fit: cover;
}
