/* ===== SOBER CANVAS STUDIO — STORE STYLES ===== */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --warm-cream: #F7F3ED;
  --deep-sage: #4A5D4E;
  --soft-terracotta: #C4836A;
  --charcoal: #2B2B2B;
  --muted-gold: #C9A96E;
  --light-sage: #D4DDD6;
  --off-white: #FAFAF7;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--charcoal);
  background: var(--warm-cream);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ===== NAV ===== */
.store-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(247, 243, 237, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(74, 93, 78, 0.08);
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: 0.02em;
}

.nav-logo span {
  color: var(--soft-terracotta);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--charcoal);
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--soft-terracotta);
}

.nav-links a.active {
  color: var(--soft-terracotta);
}

/* ===== PAGE HEADER ===== */
.page-header {
  padding: 140px 40px 60px;
  text-align: center;
  background: linear-gradient(165deg, var(--warm-cream) 0%, var(--light-sage) 50%, var(--warm-cream) 100%);
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,131,106,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.page-header-tag {
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--soft-terracotta);
  margin-bottom: 16px;
}

.page-header h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--charcoal);
  margin-bottom: 16px;
}

.page-header p {
  font-size: 1.1rem;
  color: #5a5a5a;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== PRODUCT GRID ===== */
.product-grid-section {
  padding: 60px 40px 120px;
  background: var(--warm-cream);
}

.product-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}

/* ===== PRODUCT CARD ===== */
.product-card {
  background: var(--off-white);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  border: 1px solid rgba(74, 93, 78, 0.06);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(43, 43, 43, 0.1);
}

.product-card-canvas {
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.product-card-canvas::after {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 2px;
  pointer-events: none;
}

.canvas-quote {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  z-index: 1;
  padding: 20px;
}

.product-card-info {
  padding: 24px;
}

.product-card-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--charcoal);
}

.product-card-tagline {
  font-size: 0.85rem;
  color: #7a7a7a;
  margin-bottom: 12px;
}

.product-card-price {
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--soft-terracotta);
}

/* ===== PRODUCT DETAIL ===== */
.product-detail {
  padding: 120px 40px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.product-detail-canvas {
  aspect-ratio: 4/5;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(43, 43, 43, 0.12);
}

.product-detail-canvas::after {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 2px;
  pointer-events: none;
}

.product-detail-canvas .canvas-quote {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.25;
}

.product-detail-info {
  padding-top: 20px;
}

.product-detail-category {
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--soft-terracotta);
  margin-bottom: 12px;
}

.product-detail-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.product-detail-tagline {
  font-size: 1.1rem;
  color: #7a7a7a;
  font-style: italic;
  margin-bottom: 24px;
}

.product-detail-desc {
  font-size: 1rem;
  color: #5a5a5a;
  line-height: 1.8;
  margin-bottom: 40px;
}

/* ===== SIZE SELECTOR ===== */
.selector-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 12px;
}

.size-options {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.size-option {
  flex: 1;
  padding: 16px;
  border: 2px solid var(--light-sage);
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--off-white);
}

.size-option:hover {
  border-color: var(--deep-sage);
}

.size-option.selected {
  border-color: var(--deep-sage);
  background: var(--deep-sage);
  color: var(--warm-cream);
}

.size-option-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

.size-option-price {
  font-size: 0.8rem;
  opacity: 0.7;
}

.size-option.selected .size-option-price {
  opacity: 0.9;
}

/* ===== DEPTH SELECTOR ===== */
.depth-options {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
}

.depth-option {
  flex: 1;
  padding: 16px;
  border: 2px solid var(--light-sage);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--off-white);
}

.depth-option:hover {
  border-color: var(--deep-sage);
}

.depth-option.selected {
  border-color: var(--deep-sage);
  background: var(--deep-sage);
  color: var(--warm-cream);
}

.depth-option-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}

.depth-option-detail {
  font-size: 0.78rem;
  opacity: 0.7;
}

/* ===== PRICE & BUY ===== */
.product-price-display {
  margin-bottom: 24px;
}

.current-price {
  font-family: 'Syne', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--charcoal);
}

.price-note {
  font-size: 0.8rem;
  color: #7a7a7a;
  margin-top: 4px;
}

.buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 18px 40px;
  background: var(--deep-sage);
  color: var(--warm-cream);
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s;
}

.buy-btn:hover {
  background: #3d4f41;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(74, 93, 78, 0.3);
}

.buy-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.buy-btn-secondary {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 0.85rem;
  color: #7a7a7a;
  transition: color 0.2s;
}

.buy-btn-secondary:hover {
  color: var(--soft-terracotta);
}

/* ===== FEATURES BAR ===== */
.features-bar {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--light-sage);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.feature-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--deep-sage);
  margin-top: 2px;
}

.feature-text {
  font-size: 0.82rem;
  color: #5a5a5a;
  line-height: 1.4;
}

/* ===== ORDER COMPLETE ===== */
.order-complete {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: linear-gradient(165deg, var(--warm-cream) 0%, var(--light-sage) 50%, var(--warm-cream) 100%);
}

.order-complete-inner {
  text-align: center;
  max-width: 560px;
}

.order-complete-icon {
  width: 80px;
  height: 80px;
  background: var(--deep-sage);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
}

.order-complete-icon svg {
  width: 36px;
  height: 36px;
  color: var(--warm-cream);
}

.order-complete h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 16px;
  line-height: 1.1;
}

.order-complete p {
  font-size: 1.05rem;
  color: #5a5a5a;
  line-height: 1.7;
  margin-bottom: 40px;
}

.order-complete .btn-back {
  display: inline-block;
  padding: 14px 32px;
  background: var(--deep-sage);
  color: var(--warm-cream);
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.25s;
}

.order-complete .btn-back:hover {
  background: #3d4f41;
  transform: translateY(-2px);
}

/* ===== LOADING ===== */
.loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--light-sage);
  border-top-color: var(--deep-sage);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== FOOTER ===== */
.store-footer {
  padding: 40px;
  background: var(--charcoal);
  text-align: center;
}

.store-footer p {
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem;
  color: rgba(247,243,237,0.4);
  letter-spacing: 0.1em;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .store-nav {
    padding: 16px 20px;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-links a {
    font-size: 0.8rem;
  }

  .page-header {
    padding: 120px 24px 40px;
  }

  .product-grid-section {
    padding: 40px 20px 80px;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
  }

  .product-detail {
    padding: 100px 20px 60px;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .size-options {
    flex-direction: column;
  }

  .depth-options {
    flex-direction: column;
  }

  .features-bar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}
