/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #F5ECFF;
  min-height: 100vh;
  background: #05020A;
  position: relative;
  overflow-x: hidden;
}

/* BACKGROUND LAYERS */
.background-layer {
  position: fixed;
  inset: 0;
  background: url("../assets/images/background.jpg") center/cover no-repeat;
  z-index: -2;
}

.overlay-layer {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, rgba(122, 60, 194, 0.35), transparent 55%),
              linear-gradient(to bottom, rgba(5, 2, 20, 0.9), rgba(5, 2, 10, 0.95));
  z-index: -1;
}

/* HEADER */
.site-header {
  text-align: center;
  padding: 24px 16px 10px;
}

.brand-title {
  font-family: "Moralana", "Cormorant Garamond", serif;
  font-size: 40px;
  color: #F5ECFF;
  text-shadow: 0 0 18px rgba(176, 132, 247, 0.9);
}

/* DARKER, TALLER NAV BAR */
.sub-nav {
  margin-top: 10px;
  padding: 10px 0;
  display: flex;
  justify-content: center;
  gap: 28px;
  background: rgba(10, 5, 18, 0.78);
  border-top: 1px solid rgba(176, 132, 247, 0.38);
  border-bottom: 1px solid rgba(176, 132, 247, 0.38);
  backdrop-filter: blur(5px);
}

.sub-nav a {
  color: #E8D9FF;
  text-decoration: none;
  font-size: 16px;
  letter-spacing: 0.6px;
  padding: 4px 0;
  transition: 0.25s ease;
}

.sub-nav a:hover,
.sub-nav a.active {
  color: #B084F7;
  text-shadow: 0 0 10px rgba(176, 132, 247, 0.8);
}

/* HERO SECTION */
@keyframes fadeInSoft {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero {
  text-align: center;
  padding: 80px 20px 60px;
  animation: fadeInSoft 1.4s ease-out forwards;
}

.hero-line {
  font-family: "Cormorant Garamond", serif;
  font-size: 26px;
  color: #E8D9FF;
  max-width: 800px;
  margin: 0 auto 30px;
  text-shadow: 0 0 12px rgba(194, 156, 255, 0.6);
}

.hero-button {
  display: inline-block;
  padding: 14px 34px;
  font-size: 20px;
  font-family: "Moralana", serif;
  color: #ffffff;
  background: linear-gradient(135deg, #7A3CC2, #B084F7);
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 0 18px rgba(122, 60, 194, 0.6);
  transition: 0.3s ease;
}

.hero-button:hover {
  box-shadow: 0 0 28px rgba(176, 132, 247, 0.9);
  transform: translateY(-3px);
}

/* SECTION TITLES */
.section-title {
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  margin: 20px 0 24px;
}

/* PRODUCT GRID */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 26px;
  padding: 0 20px 40px;
}

.product-card-link {
  text-decoration: none;
  color: inherit;
}

.product-card {
  position: relative;
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
  aspect-ratio: 1 / 1.72;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.card-frame,
.candle-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.product-name {
  text-align: center;
  margin-top: 10px;
  font-size: 18px;
}

/* PRODUCT PAGE */
.product-view {
  margin-top: 40px;
  text-align: center;
  padding: 20px;
}

.product-title {
  margin-bottom: 10px;
  font-size: 22px;
}

.upload-label,
.notes-label {
  display: block;
  margin: 20px 0 8px;
  font-size: 18px;
  color: #E8D9FF;
}

.upload-input,
.notes-box {
  width: 260px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #7A3CC2;
  background: rgba(20, 10, 30, 0.7);
  color: #fff;
  outline: none;
}

.notes-box {
  min-height: 90px;
  resize: vertical;
}

.add-to-cart {
  margin-top: 20px;
  padding: 12px 30px;
  border-radius: 26px;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #fff;
  background: linear-gradient(135deg, #7A3CC2, #B084F7);
  box-shadow: 0 0 16px rgba(122, 60, 194, 0.7);
  transition: 0.25s ease;
}

.add-to-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(176, 132, 247, 0.9);
}

/* CART PAGE */
.cart-section {
  padding: 30px 20px 60px;
}

.cart-items {
  max-width: 700px;
  margin: 0 auto 30px;
}

.cart-item {
  border-radius: 12px;
  border: 1px solid rgba(176, 132, 247, 0.4);
  padding: 14px 16px;
  margin-bottom: 14px;
  background: rgba(10, 4, 20, 0.8);
}

.cart-item-title {
  font-weight: 600;
  margin-bottom: 6px;
}

.cart-item-notes {
  font-size: 14px;
  opacity: 0.9;
}

.cart-item-upload {
  font-size: 13px;
  color: #C9B3FF;
}

.cart-actions {
  text-align: center;
}

.clear-cart,
.checkout-button {
  padding: 10px 24px;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  margin: 0 8px;
}

.clear-cart {
  background: rgba(40, 20, 60, 0.9);
  color: #E8D9FF;
}

.checkout-button {
  background: linear-gradient(135deg, #7A3CC2, #B084F7);
  color: #fff;
}

/* CONTENT PAGES */
.content-page {
  max-width: 800px;
  margin: 40px auto 60px;
  padding: 0 20px;
  text-align: center;
}

.content-page p {
  margin-top: 10px;
  line-height: 1.6;
}