/* Vitrine Shared Styles — matches landing page design language */
:root {
  --ink: #1a1715;
  --cream: #f5f0e8;
  --warm: #c8a87c;
  --copper: #b8754c;
  --stone: #8a8177;
  --glass: rgba(26, 23, 21, 0.06);
  --white: #ffffff;
  --error: #c0392b;
  --success: #27ae60;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* NAV — consistent across all pages */
.vitrine-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 4rem;
  position: relative;
  z-index: 10;
}
.vitrine-nav .logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
.vitrine-nav .nav-tag {
  font-size: 0.78rem;
  color: var(--stone);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.vitrine-nav .nav-link {
  font-size: 0.85rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.05em;
  padding: 0.6rem 1.4rem;
  border: 1.5px solid var(--ink);
  border-radius: 100px;
  transition: all 0.2s ease;
  font-weight: 500;
}
.vitrine-nav .nav-link:hover {
  background: var(--ink);
  color: var(--cream);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.2rem;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--ink);
  color: var(--cream);
}
.btn-primary:hover {
  background: #2d2825;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(26, 23, 21, 0.15);
}
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-secondary:hover {
  background: var(--ink);
  color: var(--cream);
}
.btn-copper {
  background: var(--copper);
  color: white;
}
.btn-copper:hover {
  background: #a0643f;
  transform: translateY(-1px);
}

/* FORM ELEMENTS */
.form-group {
  margin-bottom: 1.5rem;
}
.form-label {
  display: block;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.form-hint {
  font-size: 0.82rem;
  color: var(--stone);
  margin-bottom: 0.5rem;
  font-weight: 300;
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 1.5px solid rgba(26, 23, 21, 0.15);
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(184, 117, 76, 0.1);
}
.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a8177' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* FILE UPLOAD ZONE */
.upload-zone {
  border: 2px dashed rgba(26, 23, 21, 0.15);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.5);
}
.upload-zone:hover {
  border-color: var(--copper);
  background: rgba(255, 255, 255, 0.8);
}
.upload-zone.dragover {
  border-color: var(--copper);
  background: rgba(184, 117, 76, 0.05);
}
.upload-zone.has-files {
  border-color: var(--success);
  border-style: solid;
}
.upload-zone-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  opacity: 0.4;
}
.upload-zone-text {
  font-size: 0.9rem;
  color: var(--stone);
  font-weight: 300;
}
.upload-zone-text strong {
  color: var(--copper);
  font-weight: 500;
}
.upload-previews {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.upload-preview {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid rgba(26, 23, 21, 0.08);
}

/* SECTION LAYOUT */
.page-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}
.page-container-wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 4rem 4rem;
}
.page-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  margin-bottom: 0.75rem;
}
.page-title span {
  color: var(--copper);
}
.page-subtitle {
  font-size: 1.1rem;
  color: var(--stone);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

/* CARD */
.card {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--copper), var(--warm));
}

/* DIVIDER */
.divider {
  width: 100%;
  height: 1px;
  background: var(--ink);
  opacity: 0.12;
  margin: 2rem 0;
}

/* PROGRESS INDICATOR */
.progress-container {
  text-align: center;
  padding: 4rem 2rem;
}
.progress-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(26, 23, 21, 0.08);
  border-top-color: var(--copper);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1.5rem;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.progress-status {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.progress-detail {
  font-size: 0.9rem;
  color: var(--stone);
  font-weight: 300;
}
.progress-bar-track {
  width: 200px;
  height: 4px;
  background: rgba(26, 23, 21, 0.08);
  border-radius: 2px;
  margin: 1.5rem auto 0;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--copper), var(--warm));
  border-radius: 2px;
  transition: width 0.5s ease;
}

/* PRODUCT GRID */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.product-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(26, 23, 21, 0.1);
}
.product-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--cream);
  display: block;
}
.product-info {
  padding: 1.5rem;
}
.product-category {
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.product-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.product-description {
  font-size: 0.88rem;
  color: var(--stone);
  line-height: 1.55;
  font-weight: 300;
  margin-bottom: 0.75rem;
}
.product-price {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}

/* BRAND ANALYSIS CARD */
.brand-analysis {
  background: var(--white);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
}
.brand-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.brand-logo {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--cream);
  border: 1.5px solid rgba(26, 23, 21, 0.08);
}
.brand-name {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
}
.brand-type {
  font-size: 0.82rem;
  color: var(--stone);
  text-transform: capitalize;
}
.brand-essence {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--stone);
  font-weight: 300;
  font-style: italic;
  padding: 1rem;
  border-left: 3px solid var(--copper);
  background: rgba(184, 117, 76, 0.03);
  border-radius: 0 8px 8px 0;
}
.color-swatches {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}
.color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 2px solid rgba(26, 23, 21, 0.06);
}
.design-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.keyword-tag {
  padding: 0.35rem 0.85rem;
  background: var(--cream);
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--stone);
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* FOOTER */
.vitrine-footer {
  padding: 2.5rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(0,0,0,0.08);
  margin-top: 4rem;
}
.vitrine-footer .logo-small {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.vitrine-footer .footer-note {
  font-size: 0.8rem;
  color: var(--stone);
}

/* ERROR / SUCCESS MESSAGES */
.alert {
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.alert-error {
  background: #fdf0ed;
  color: var(--error);
  border: 1px solid rgba(192, 57, 43, 0.15);
}
.alert-success {
  background: #edf7ed;
  color: var(--success);
  border: 1px solid rgba(39, 174, 96, 0.15);
}

/* TRUST LINE */
.trust-line {
  text-align: center;
  font-size: 0.82rem;
  color: var(--stone);
  font-weight: 400;
  letter-spacing: 0.03em;
  padding: 0.75rem 0 1rem;
  opacity: 0.85;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .vitrine-nav {
    padding: 1.5rem 1.5rem;
  }
  .page-container,
  .page-container-wide {
    padding: 0 1.5rem 3rem;
  }
  .page-title {
    font-size: 2rem;
  }
  .card {
    padding: 1.5rem;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .vitrine-footer {
    padding: 2rem 1.5rem;
    flex-direction: column;
    gap: 0.5rem;
  }
  .brand-header {
    flex-direction: column;
    text-align: center;
  }
}
