/* Swiftlystoned Store — Design System */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --black: #E8DCCE;
  --white: #445255;
  --green: #975F57;
  --green-light: #984F3B;
  --smoke: #57504C;
  --smoke-dark: #6B6360;
  --accent: #F3E7BE;
  --mauve: #CCB9B5;
  --pale-moon: #F3E7BE;
  --provence: #997C57;
}

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

a { color: inherit; }

/* ─── Navigation ─── */
.store-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(232, 220, 206, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(68, 82, 85, 0.1);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo-img {
  height: 32px;
  width: auto;
  display: block;
  object-fit: contain;
}
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  color: var(--smoke);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}
.cart-link {
  position: relative;
}
.cart-count {
  display: none;
  position: absolute;
  top: -8px;
  right: -14px;
  background: var(--green);
  color: #F3E7BE;
  font-size: 0.6rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ─── Page Header ─── */
.page-header {
  padding: 8rem 2rem 3.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.page-label {
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 1rem;
}
.page-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.page-subtitle {
  font-weight: 300;
  font-size: 1.05rem;
  color: var(--smoke);
  margin-top: 1rem;
  max-width: 500px;
  line-height: 1.6;
}

/* ─── Product Grid ─── */
.product-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.product-card {
  background: #F3E7BE;
  border: 1px solid rgba(68, 82, 85, 0.1);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.product-card:hover {
  border-color: rgba(68, 82, 85, 0.3);
  transform: translateY(-2px);
}
.product-card-image {
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-card-image svg {
  width: 45%;
  height: 45%;
  color: var(--green-light);
  opacity: 0.6;
  transition: opacity 0.3s;
}
.product-card:hover .product-card-image svg {
  opacity: 0.85;
}
.product-card-info {
  padding: 1.25rem;
  border-top: 1px solid rgba(68, 82, 85, 0.08);
}
.product-card-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
}
.product-card-tagline {
  font-weight: 300;
  font-size: 0.78rem;
  color: var(--smoke-dark);
  margin-bottom: 0.75rem;
}
.product-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.product-card-price {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--green-light);
}
.product-card-fabric {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--smoke-dark);
}

/* ─── Product Detail ─── */
.product-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem 2rem;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--smoke-dark);
  text-decoration: none;
  font-size: 0.82rem;
  margin-bottom: 2.5rem;
  transition: color 0.2s;
  letter-spacing: 0.02em;
}
.back-link:hover { color: var(--white); }

.product-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}
.product-detail-image {
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(68, 82, 85, 0.12);
  position: relative;
  overflow: hidden;
}
.product-detail-image svg {
  width: 38%;
  height: 38%;
  color: var(--green-light);
  opacity: 0.5;
}
.product-detail-info { padding-top: 0.5rem; }

.product-detail-name {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.1;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}
.product-detail-tagline {
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--smoke);
  margin-bottom: 1.5rem;
}
.product-detail-price {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--green-light);
  margin-bottom: 2rem;
}

/* ─── Selectors ─── */
.selector-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--smoke-dark);
  margin-bottom: 0.75rem;
}
.color-options {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.color-swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.color-swatch:hover,
.color-swatch.active {
  border-color: var(--white);
}
.color-swatch.active::after {
  content: '';
  position: absolute;
  inset: -5px;
  border: 1px solid var(--green-light);
  border-radius: 50%;
}
.size-options {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.size-btn {
  padding: 0.6rem 1.2rem;
  border: 1px solid rgba(68, 82, 85, 0.2);
  background: transparent;
  color: var(--smoke);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.05em;
}
.size-btn:hover {
  border-color: var(--green-light);
  color: var(--white);
}
.size-btn.active {
  background: var(--green);
  border-color: var(--green);
  color: #F3E7BE;
}

/* ─── Buttons ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  background: var(--green);
  color: #F3E7BE;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
  text-decoration: none;
}
.btn-primary:hover { background: var(--green-light); color: #F3E7BE; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(68, 82, 85, 0.3);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-secondary:hover {
  border-color: var(--green-light);
  color: var(--green-light);
}
.btn-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.btn-row .btn-primary { flex: 1; }

/* ─── Product About Section ─── */
.product-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 4rem 0;
  border-top: 1px solid rgba(68, 82, 85, 0.1);
  max-width: 1200px;
  margin: 0 auto 0;
}
.about-section h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.about-section p {
  font-weight: 300;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--smoke);
}
.fabric-specs { display: grid; gap: 0.85rem; }
.spec-row {
  display: flex;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(68, 82, 85, 0.06);
}
.spec-label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--smoke-dark);
}
.spec-value { font-size: 0.88rem; }

/* ─── Size Guide ─── */
.size-guide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}
.size-guide h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--smoke);
}
.size-guide table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.size-guide th {
  text-align: left;
  padding: 0.6rem 1rem;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--smoke-dark);
  border-bottom: 1px solid rgba(68, 82, 85, 0.15);
}
.size-guide td {
  padding: 0.6rem 1rem;
  color: var(--smoke);
  border-bottom: 1px solid rgba(68, 82, 85, 0.06);
}

/* ─── Cart ─── */
.cart-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 7rem 2rem 4rem;
}
.cart-empty {
  text-align: center;
  padding: 6rem 0;
}
.cart-empty h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.cart-empty p {
  color: var(--smoke);
  margin-bottom: 2rem;
  font-weight: 300;
}
.cart-items { margin-bottom: 1.5rem; }
.cart-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(68, 82, 85, 0.08);
  align-items: center;
}
.cart-item-image {
  width: 70px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(68, 82, 85, 0.1);
  background: #F3E7BE;
}
.cart-item-image svg {
  width: 50%;
  color: var(--green-light);
  opacity: 0.5;
}
.cart-item-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.2rem;
}
.cart-item-meta {
  font-size: 0.78rem;
  color: var(--smoke-dark);
  margin-bottom: 0.6rem;
}
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.qty-btn {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(68, 82, 85, 0.2);
  background: transparent;
  color: var(--smoke);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.2s;
}
.qty-btn:hover {
  border-color: var(--green-light);
  color: var(--white);
}
.qty-value {
  font-size: 0.85rem;
  min-width: 20px;
  text-align: center;
}
.cart-item-right { text-align: right; }
.cart-item-price {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}
.cart-item-remove {
  font-size: 0.72rem;
  color: var(--smoke-dark);
  cursor: pointer;
  transition: color 0.2s;
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
}
.cart-item-remove:hover { color: #984F3B; }

.cart-summary {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(68, 82, 85, 0.15);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.cart-total-label {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--smoke);
}
.cart-total-price {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--green-light);
}
.cart-note {
  font-size: 0.78rem;
  color: var(--smoke-dark);
  margin-bottom: 1.5rem;
  font-weight: 300;
}
.cart-actions {
  display: flex;
  gap: 0.75rem;
}
.cart-actions .btn-primary { flex: 2; }
.cart-actions .btn-secondary { flex: 1; }

/* ─── Hemp Education Strip ─── */
.hemp-strip {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
}
.hemp-strip-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  margin-bottom: 0.5rem;
}
.hemp-strip-sub {
  font-weight: 300;
  color: var(--smoke);
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
}
.hemp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(68, 82, 85, 0.12);
  border: 1px solid rgba(68, 82, 85, 0.12);
}
.hemp-card {
  padding: 2.5rem;
  background: var(--black);
}
.hemp-card-icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: block;
}
.hemp-card h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}
.hemp-card p {
  font-weight: 300;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--smoke);
}

/* ─── Cart Notification Toast ─── */
.cart-notification {
  position: fixed;
  bottom: -80px;
  right: 2rem;
  background: var(--green);
  color: #F3E7BE;
  padding: 0.9rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  z-index: 200;
  transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 24px rgba(87, 80, 76, 0.25);
}
.cart-notification.show { bottom: 2rem; }
.cart-notification a {
  color: var(--accent);
  text-decoration: underline;
  margin-left: 0.25rem;
}

/* ─── Success Page ─── */
.success-page {
  max-width: 560px;
  margin: 0 auto;
  padding: 10rem 2rem 6rem;
  text-align: center;
}
.success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #445255;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
}
.success-page h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.success-page p {
  font-weight: 300;
  color: var(--smoke);
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* ─── 404 ─── */
.not-found {
  max-width: 560px;
  margin: 0 auto;
  padding: 10rem 2rem 6rem;
  text-align: center;
}
.not-found h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 5rem;
  color: var(--green);
  line-height: 1;
  margin-bottom: 1rem;
}
.not-found p {
  font-weight: 300;
  color: var(--smoke);
  margin-bottom: 2rem;
}

/* ─── Footer ─── */
.store-footer {
  padding: 4rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(87, 80, 76, 0.12);
  margin-top: 2rem;
}
.store-footer-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
}
.footer-logo-img {
  height: 28px;
  width: auto;
  display: block;
  object-fit: contain;
  opacity: 0.55;
  filter: grayscale(20%);
}
.store-footer-sub {
  font-weight: 300;
  font-size: 0.72rem;
  color: rgba(87, 80, 76, 0.45);
  letter-spacing: 0.1em;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .nav-inner { padding: 1rem 1.5rem; }
  .nav-links { gap: 1.25rem; }
  .nav-links a { font-size: 0.78rem; }
  .page-header { padding: 7rem 1.5rem 2.5rem; }
  .product-grid {
    padding: 0 1.5rem 3rem;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .product-card-info { padding: 1rem; }
  .product-card-name { font-size: 0.85rem; }
  .product-card-tagline { font-size: 0.72rem; margin-bottom: 0.5rem; }
  .product-detail { padding: 5rem 1.5rem 2rem; }
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .product-about {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3rem 1.5rem;
  }
  .cart-page { padding: 5.5rem 1.5rem 3rem; }
  .cart-item { grid-template-columns: 55px 1fr auto; gap: 0.75rem; }
  .cart-item-image { width: 55px; height: 68px; }
  .cart-actions { flex-direction: column; }
  .hemp-grid { grid-template-columns: 1fr; }
  .hemp-strip { padding: 0 1.5rem 4rem; }
  .size-guide { padding: 0 1.5rem 3rem; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-detail-price { font-size: 1.4rem; }
}
