/* VesnaGoods Store Styles - extends landing page design system */
:root {
  --cream: #FAF6F1;
  --warm-white: #FFFDF9;
  --terracotta: #C4704B;
  --terracotta-deep: #A85A3A;
  --sage: #8B9E7E;
  --sage-light: #D4DEC9;
  --charcoal: #2C2825;
  --brown-soft: #6B5B4E;
  --gold-muted: #C9A96E;
  --border: #E8E0D6;
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.7;
  font-weight: 400;
}

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

/* NAV */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(250, 246, 241, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--terracotta); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--brown-soft);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--charcoal); }
.nav-links a.active { color: var(--terracotta); }
.cart-badge {
  position: relative;
}
.cart-count {
  position: absolute;
  top: -8px;
  right: -12px;
  background: var(--terracotta);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-count:empty { display: none; }

/* LAYOUT */
.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
}
.page-header {
  margin-bottom: 3rem;
}
.page-overline {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--sage);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.page-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.page-subtitle {
  font-size: 1.05rem;
  color: var(--brown-soft);
  font-weight: 300;
  margin-top: 0.75rem;
  max-width: 600px;
}

/* CATEGORY FILTERS */
.filter-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.filter-btn {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--warm-white);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--brown-soft);
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
}
.filter-btn.active {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--cream);
}

/* PRODUCT GRID */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}
.product-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(44, 40, 37, 0.08);
}
.product-card-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--sage-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card-img .placeholder-icon {
  font-size: 4rem;
  opacity: 0.4;
}
.product-card-body {
  padding: 1.5rem;
}
.product-card-category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--sage);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.product-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}
.product-card-maker {
  font-size: 0.82rem;
  color: var(--brown-soft);
  font-weight: 300;
  margin-bottom: 0.75rem;
}
.product-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.product-card-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--charcoal);
}
.product-card-price .compare {
  font-size: 0.85rem;
  color: var(--brown-soft);
  text-decoration: line-through;
  font-weight: 400;
  margin-left: 0.5rem;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 100px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.btn-primary {
  background: var(--terracotta);
  color: white;
}
.btn-primary:hover {
  background: var(--terracotta-deep);
}
.btn-secondary {
  background: var(--warm-white);
  color: var(--charcoal);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--charcoal);
}
.btn-small {
  padding: 0.5rem 1.25rem;
  font-size: 0.82rem;
}
.btn-full { width: 100%; }

/* PRODUCT DETAIL */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.product-image-main {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  background: var(--sage-light);
}
.product-image-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-image-main .placeholder-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  opacity: 0.3;
}
.product-info { padding-top: 1rem; }
.product-category-tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--sage);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.product-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.product-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--terracotta);
  margin-bottom: 1.5rem;
}
.product-price .compare {
  font-size: 1.1rem;
  color: var(--brown-soft);
  text-decoration: line-through;
  font-weight: 400;
  margin-left: 0.75rem;
}
.product-description {
  color: var(--brown-soft);
  font-size: 1rem;
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 2rem;
}
.product-maker-section {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.product-maker-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold-muted);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.product-maker-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.product-maker-location {
  font-size: 0.85rem;
  color: var(--brown-soft);
  margin-bottom: 0.75rem;
}
.product-maker-story {
  font-size: 0.9rem;
  color: var(--brown-soft);
  line-height: 1.7;
  font-weight: 300;
}
.product-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
.qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 100px;
  overflow: hidden;
}
.qty-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--warm-white);
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--charcoal);
}
.qty-btn:hover { background: var(--border); }
.qty-value {
  width: 40px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
}
.shipping-note {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--sage-light);
  border-radius: 12px;
  font-size: 0.82rem;
  color: var(--charcoal);
  font-weight: 400;
}
.shipping-note strong { font-weight: 600; }

/* CART */
.cart-empty {
  text-align: center;
  padding: 4rem 2rem;
}
.cart-empty-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  opacity: 0.3;
}
.cart-empty h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}
.cart-empty p {
  color: var(--brown-soft);
  font-weight: 300;
  margin-bottom: 2rem;
}
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}
.cart-items { display: flex; flex-direction: column; gap: 1rem; }
.cart-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 16px;
  align-items: center;
}
.cart-item-img {
  width: 90px;
  height: 90px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--sage-light);
}
.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-item-info { flex: 1; }
.cart-item-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.cart-item-maker {
  font-size: 0.8rem;
  color: var(--brown-soft);
  font-weight: 300;
}
.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}
.cart-item-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  text-align: right;
}
.cart-item-remove {
  background: none;
  border: none;
  font-size: 0.8rem;
  color: var(--brown-soft);
  cursor: pointer;
  text-decoration: underline;
}
.cart-item-remove:hover { color: var(--terracotta); }

/* CART SUMMARY */
.cart-summary {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  position: sticky;
  top: 5rem;
}
.cart-summary h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}
.cart-summary-row.total {
  font-weight: 700;
  font-size: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}
.cart-summary-row .label { color: var(--brown-soft); }
.free-shipping-note {
  background: var(--sage-light);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: var(--charcoal);
  margin: 1.25rem 0;
  text-align: center;
}

/* CHECKOUT FORM */
.checkout-form {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--brown-soft);
}
.form-group input,
.form-group select {
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  background: white;
  color: var(--charcoal);
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus {
  border-color: var(--terracotta);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* SUCCESS PAGE */
.success-page {
  text-align: center;
  padding: 2rem;
}
.success-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}
.success-page h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}
.success-page .order-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.success-details {
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

/* FOOTER */
.store-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  margin-top: 4rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
}
.footer-logo span { color: var(--terracotta); }
.footer-text {
  font-size: 0.78rem;
  color: var(--brown-soft);
  font-weight: 300;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  font-size: 0.82rem;
  color: var(--brown-soft);
  font-weight: 400;
}
.footer-links a:hover { color: var(--charcoal); }

/* LOADING */
.loading {
  text-align: center;
  padding: 3rem;
  color: var(--brown-soft);
}
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--terracotta);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* TOAST */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--charcoal);
  color: var(--cream);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 200;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .product-detail { grid-template-columns: 1fr; gap: 2rem; }
  .cart-layout { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}
@media (max-width: 600px) {
  .nav { padding: 0.75rem 1.25rem; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.82rem; }
  .page-content { padding: 5rem 1.25rem 3rem; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .product-card-body { padding: 1rem; }
  .product-card-name { font-size: 1rem; }
  .cart-item { flex-direction: column; text-align: center; }
  .cart-item-price { text-align: center; }
  .product-actions { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
}
