/* ============================================================
   BoldCurve Design System
   Plum + Rose + Gold — Empowerment Palette
   ============================================================ */

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

:root {
  --plum: #3D1C3A;
  --plum-light: #5A2D56;
  --rose: #D4A0A0;
  --rose-light: #E8C8C8;
  --cream: #FFF8F0;
  --gold: #C9976E;
  --gold-light: #E0BC98;
  --charcoal: #2A2A2A;
  --warm-white: #FFFDF9;
  --error: #C0392B;
  --success: #27AE60;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  overflow-x: hidden;
  min-height: 100vh;
}

.syne { font-family: 'Syne', sans-serif; }

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

/* ============================================================
   NAVIGATION
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(61, 28, 58, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(201, 151, 110, 0.15);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 248, 240, 0.7);
  transition: color 0.2s;
  letter-spacing: 0.5px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-cart {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.nav-cart svg {
  width: 22px;
  height: 22px;
  stroke: var(--cream);
  fill: none;
  stroke-width: 1.5;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--gold);
  color: var(--plum);
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}

.cart-count.has-items {
  display: flex;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  margin: 5px 0;
  transition: 0.3s;
}

/* ============================================================
   PAGE LAYOUT
   ============================================================ */

.page-body {
  padding-top: 64px;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */

.breadcrumb {
  padding: 1.2rem 0;
  font-size: 0.85rem;
  color: rgba(42, 42, 42, 0.5);
}

.breadcrumb a {
  color: var(--plum);
  font-weight: 500;
}

.breadcrumb a:hover {
  color: var(--gold);
}

.breadcrumb span {
  margin: 0 0.5rem;
}

/* ============================================================
   PRODUCT CARD
   ============================================================ */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.product-card {
  background: var(--warm-white);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  border: 1px solid rgba(61, 28, 58, 0.06);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(61, 28, 58, 0.12);
}

.product-card-image {
  aspect-ratio: 3/4;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-image .product-gradient {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
}

.product-card:hover .product-gradient {
  transform: scale(1.05);
}

.product-gradient .product-icon {
  font-family: 'Syne', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.15);
  text-transform: uppercase;
  letter-spacing: 4px;
}

.product-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gold);
  color: var(--plum);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.product-card-info {
  padding: 1.2rem 1.4rem 1.4rem;
}

.product-card-category {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.product-card-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--plum);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.product-card-desc {
  font-size: 0.85rem;
  color: rgba(42, 42, 42, 0.55);
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-card-price {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--plum);
}

.product-card-price .compare {
  font-size: 0.85rem;
  color: rgba(42, 42, 42, 0.35);
  text-decoration: line-through;
  font-weight: 400;
  margin-left: 0.5rem;
}

.product-card-sizes {
  font-size: 0.75rem;
  color: rgba(42, 42, 42, 0.4);
  font-weight: 500;
}

/* ============================================================
   FILTERS
   ============================================================ */

.filters-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(61, 28, 58, 0.08);
  margin-bottom: 2rem;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--plum);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.filter-select {
  padding: 0.5rem 1rem;
  border: 1px solid rgba(61, 28, 58, 0.15);
  border-radius: 8px;
  background: var(--warm-white);
  color: var(--charcoal);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%233D1C3A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}

.filter-select:focus {
  outline: none;
  border-color: var(--gold);
}

.filter-chip {
  padding: 0.45rem 1rem;
  border: 1px solid rgba(61, 28, 58, 0.15);
  border-radius: 20px;
  background: transparent;
  color: var(--charcoal);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-chip:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.filter-chip.active {
  background: var(--plum);
  color: var(--cream);
  border-color: var(--plum);
}

.results-count {
  font-size: 0.85rem;
  color: rgba(42, 42, 42, 0.5);
  margin-left: auto;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--plum);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--plum-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(61, 28, 58, 0.3);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--plum);
}

.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(201, 151, 110, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--plum);
  border: 2px solid var(--plum);
}

.btn-outline:hover {
  background: var(--plum);
  color: var(--cream);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
  border-radius: 12px;
}

.btn-sm {
  padding: 0.55rem 1.2rem;
  font-size: 0.82rem;
  border-radius: 8px;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ============================================================
   PAGE HEADER
   ============================================================ */

.page-header {
  background: var(--plum);
  padding: 3rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 60%;
  height: 120%;
  background: radial-gradient(circle, rgba(201,151,110,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.page-header h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--warm-white);
  position: relative;
  z-index: 1;
}

.page-header p {
  font-size: 1rem;
  color: rgba(255, 248, 240, 0.6);
  font-weight: 300;
  margin-top: 0.5rem;
  position: relative;
  z-index: 1;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--charcoal);
  padding: 3rem 2rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand .footer-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--cream);
  margin-bottom: 0.8rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255, 248, 240, 0.4);
  line-height: 1.6;
  max-width: 280px;
}

.footer-links h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}

.footer-links a {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 248, 240, 0.5);
  margin-bottom: 0.6rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--cream);
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 248, 240, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255, 248, 240, 0.3);
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--plum);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(61, 28, 58, 0.15);
  border-radius: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--charcoal);
  background: var(--warm-white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 151, 110, 0.15);
}

.form-input::placeholder {
  color: rgba(42, 42, 42, 0.3);
}

/* ============================================================
   UTILITIES
   ============================================================ */

.text-center { text-align: center; }
.text-plum { color: var(--plum); }
.text-gold { color: var(--gold); }
.text-rose { color: var(--rose); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-state h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--plum);
  margin-bottom: 0.8rem;
}

.empty-state p {
  color: rgba(42, 42, 42, 0.5);
  margin-bottom: 1.5rem;
}

/* Loading spinner */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(61, 28, 58, 0.1);
  border-top-color: var(--plum);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Toast notification */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--plum);
  color: var(--cream);
  padding: 0.9rem 1.8rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 8px 30px rgba(61, 28, 58, 0.3);
  z-index: 9999;
  opacity: 0;
  transition: all 0.35s ease;
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

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

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(61, 28, 58, 0.98);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    border-bottom: 1px solid rgba(201, 151, 110, 0.15);
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-toggle {
    display: block;
  }

  .container {
    padding: 0 1rem;
  }

  .page-header {
    padding: 2.5rem 0 2rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .product-card-info {
    padding: 0.8rem 1rem 1rem;
  }

  .product-card-name {
    font-size: 0.9rem;
  }

  .product-card-desc {
    display: none;
  }

  .filters-bar {
    gap: 0.6rem;
    padding: 1rem 0;
  }

  .results-count {
    margin-left: 0;
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

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