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

/* --- DESIGN SYSTEM TOKENS --- */
:root {
  /* Colors */
  --bg-sand: #eae2d7;
  /* Matches warm tone in hero image */
  --bg-cream: #faf7f2;
  /* Off-white, soft background */
  --bg-card: #f5efe6;
  /* Slightly darker card background */
  --text-dark: #1a1917;
  /* High-end charcoal */
  --text-muted: #6e6963;
  /* Muted grey-brown */
  --accent-gold: #c2a688;
  /* Luxurious gold accent */
  --accent-gold-dark: #a88d70;
  --white: #ffffff;
  --black: #000000;

  /* Fonts */
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Outfit', sans-serif;

  /* Layout & Spacing */
  --container-max-width: 1280px;
  --header-height: 80px;
  --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: all 0.25s ease;
}

/* --- RESET & BASIC STYLES --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-cream);
  color: var(--text-dark);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

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

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

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  outline: none;
}

ul {
  list-style: none;
}

/* --- UTILITIES --- */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-on-scroll.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- HEADER / NAVIGATION --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

header.scrolled {
  background-color: rgba(250, 247, 242, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: 70px;
  border-bottom: 1px solid rgba(194, 166, 136, 0.15);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0 20px;
  }
}

.logo-link img {
  height: 55px;
  width: auto;
  filter: brightness(0.1);
  transition: var(--transition-smooth);
}

.nav-menu {
  display: flex;
  gap: 40px;
}

.nav-item {
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
  padding: 5px 0;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-gold);
  transition: var(--transition-fast);
}

.nav-item:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-action-btn {
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  position: relative;
}

.nav-action-btn:hover {
  color: var(--accent-gold);
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: var(--text-dark);
  color: var(--bg-cream);
  font-size: 9px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 20px;
  height: 14px;
}

.menu-toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background-color: var(--text-dark);
  transition: var(--transition-fast);
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--bg-cream);
    flex-direction: column;
    padding: 100px 40px;
    gap: 30px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
  }

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

  .menu-toggle {
    display: flex;
    z-index: 1001;
  }

  .menu-toggle.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}

/* --- HERO SECTION --- */
.hero {
  height: 100vh;
  width: 100%;
  background-image: url('bg_lensora.png');
  background-size: cover;
  background-position: center 0%;
  background-repeat: no-repeat;
  position: relative;
}

@media (max-width: 768px) {
  .hero {
    height: 70vh;
  }
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 15px 35px;
  background-color: var(--text-dark);
  color: var(--bg-cream);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--text-dark);
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--white);
  transition: var(--transition-smooth);
  z-index: 0;
}

.cta-button:hover {
  color: var(--black);
  border-color: var(--accent-gold);
}

.cta-button:hover::before {
  left: 0;
}

.cta-button span {
  position: relative;
  z-index: 1;
}

.cta-button svg {
  position: relative;
  z-index: 1;
  transition: var(--transition-smooth);
}

.cta-button:hover svg {
  transform: translateX(5px);
}

/* --- COLLECTIONS SECTION --- */
.collections {
  padding: 140px 0;
  background-color: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 15px;
  display: block;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.2;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

@media (max-width: 991px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 600px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.product-image-container {
  position: relative;
  background-color: var(--bg-cream);
  aspect-ratio: 1/1;
  overflow: hidden;
  margin-bottom: 25px;
  border-radius: 2px;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(26, 25, 23, 0.1);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 30px;
  opacity: 0;
  transition: var(--transition-fast);
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.quick-add-btn {
  background-color: var(--white);
  color: var(--text-dark);
  padding: 12px 25px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition-smooth);
  transform: translateY(15px);
}

.product-card:hover .quick-add-btn {
  transform: translateY(0);
}

.quick-add-btn:hover {
  background-color: var(--text-dark);
  color: var(--white);
}

.product-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: var(--accent-gold);
  color: var(--white);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 5px 12px;
  border-radius: 1px;
  font-weight: 500;
}

.product-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.product-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 5px;
}

.product-category {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.product-price {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
}

/* --- CRAFTSMANSHIP STORY --- */
.craftsmanship {
  padding: 140px 0;
  background-color: var(--bg-card);
}

.craft-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 80px;
}

@media (max-width: 991px) {
  .craft-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .craft-image-wrapper {
    order: 2;
  }
}

.craft-content {
  padding-right: 20px;
}

@media (max-width: 991px) {
  .craft-content {
    padding-right: 0;
  }
}

.craft-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 30px;
}

.craft-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 30px;
  font-weight: 300;
}

.craft-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.feature-item h4 {
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.feature-item p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 300;
}

.craft-image-container {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
}

/* --- VIRTUAL FRAME FINDER QUIZ --- */
.quiz-section {
  padding: 140px 0;
  background-color: var(--white);
}

.quiz-card {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--bg-cream);
  padding: 60px 80px;
  border-radius: 4px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
  position: relative;
  min-height: 400px;
}

@media (max-width: 768px) {
  .quiz-card {
    padding: 40px 20px;
  }
}

.quiz-step {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.quiz-step.active {
  display: block;
  opacity: 1;
}

.quiz-question {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 400;
  text-align: center;
  margin-bottom: 40px;
}

.quiz-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

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

.quiz-option {
  background-color: var(--white);
  border: 1px solid rgba(194, 166, 136, 0.2);
  border-radius: 4px;
  padding: 25px 15px;
  text-align: center;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.quiz-option:hover {
  border-color: var(--accent-gold);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.02);
}

.quiz-option.selected {
  border-color: var(--text-dark);
  background-color: var(--bg-card);
}

.quiz-shape-icon {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  color: var(--accent-gold);
}

/* Dynamic Shapes Rendered via CSS */
.shape-oval {
  width: 20px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid currentColor;
}

.shape-round {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 1px solid currentColor;
}

.shape-square {
  width: 25px;
  height: 25px;
  border: 1px solid currentColor;
}

.shape-heart {
  position: relative;
  width: 24px;
  height: 24px;
}

.shape-heart::before,
.shape-heart::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 2px;
  width: 12px;
  height: 20px;
  background: currentColor;
  border-radius: 12px 12px 0 0;
  transform: rotate(-45deg);
  transform-origin: 0 100%;
}

.shape-heart::after {
  left: 0;
  transform: rotate(45deg);
  transform-origin: 100% 100%;
}

.quiz-option span {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Quiz Style Options */
.quiz-options.style-options {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 600px) {
  .quiz-options.style-options {
    grid-template-columns: 1fr;
  }
}

.quiz-option-style {
  padding: 30px 20px;
}

.quiz-option-style h4 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 5px;
}

.quiz-option-style p {
  font-size: 11px;
  color: var(--text-muted);
}

.quiz-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  border-top: 1px solid rgba(194, 166, 136, 0.15);
  padding-top: 30px;
}

.quiz-btn {
  padding: 12px 30px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
  transition: var(--transition-fast);
}

.quiz-btn-back {
  color: var(--text-muted);
  visibility: hidden;
  /* Handled via Javascript */
}

.quiz-btn-back:hover {
  color: var(--text-dark);
}

.quiz-btn-next {
  background-color: var(--text-dark);
  color: var(--white);
}

.quiz-btn-next:hover {
  background-color: var(--accent-gold-dark);
}

/* Result Screen */
.quiz-result-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 768px) {
  .quiz-result-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.quiz-result-image {
  background-color: var(--white);
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 1/1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.quiz-result-content h3 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 300;
  margin-bottom: 10px;
}

.quiz-result-subtitle {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 20px;
  display: block;
}

.quiz-result-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 30px;
  font-weight: 300;
}

.quiz-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  background-color: var(--accent-gold);
  width: 0;
  transition: var(--transition-smooth);
}

/* --- NEWSLETTER / FOOTER --- */
footer {
  background-color: var(--bg-card);
  padding: 100px 0 40px;
  border-top: 1px solid rgba(194, 166, 136, 0.15);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
}

@media (max-width: 991px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

.footer-brand-logo {
  height: 55px;
  margin-bottom: 25px;
  filter: brightness(0.1);
}

.footer-brand-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 320px;
  font-weight: 300;
}

.footer-links-column h4 {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 25px;
  font-weight: 600;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-link {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 300;
}

.footer-link:hover {
  color: var(--accent-gold);
  padding-left: 5px;
}

.footer-newsletter h4 {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 15px;
  font-weight: 600;
}

.footer-newsletter p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 25px;
  font-weight: 300;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  border-bottom: 1px solid var(--text-dark);
  padding-bottom: 8px;
}

.newsletter-input {
  border: none;
  background: none;
  flex: 1;
  font-family: inherit;
  font-size: 14px;
  padding: 5px 0;
  outline: none;
  color: var(--text-dark);
}

.newsletter-input::placeholder {
  color: #a09a93;
}

.newsletter-btn {
  color: var(--text-dark);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  transition: var(--transition-fast);
}

.newsletter-btn:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(194, 166, 136, 0.15);
  padding-top: 40px;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

.copyright {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 300;
}

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

.social-link {
  color: var(--text-muted);
  font-size: 14px;
}

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

/* --- MOCK TOAST NOTIFICATION --- */
.toast-notification {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background-color: var(--text-dark);
  color: var(--bg-cream);
  padding: 16px 30px;
  border-radius: 2px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 15px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

.toast-notification.active {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  color: var(--accent-gold);
  display: flex;
  align-items: center;
}

.toast-message {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}