/* ============================================
   Sweet Tree Jewelry — D2C Storefront
   Colors: terracotta, cream, olive
   Fonts: Cormorant Garamond + Nunito Sans
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --gold-light: #FFF8E7;
  --gold-dark: #D49A1A;
  --cream: #FFFFFF;
  --cream-dark: #F3F4F6;
  --navy: #1B2A4A;
  --navy-dark: #121D33;
  --navy-light: #E8EBF0;
  --gold: #F5B731;
  --text-dark: #1B2A4A;
  --text-mid: #4A5568;
  --text-light: #8B95A5;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(58,50,48,0.08);
  --shadow-md: 0 4px 12px rgba(58,50,48,0.1);
  --shadow-lg: 0 8px 24px rgba(58,50,48,0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.25s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito Sans', sans-serif;
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--navy-dark);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

/* --- Layout --- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4rem 0;
}

/* --- Header --- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--cream-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  max-width: 1140px;
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
}

.site-logo .logo-img {
  height: 55px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.header-nav a {
  color: var(--text-mid);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.header-nav a:hover {
  color: var(--navy);
}

.cart-icon {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  background: none;
  border: none;
  padding: 0.25rem;
}

.cart-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--text-dark);
  fill: none;
  stroke-width: 1.8;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cart-badge.visible {
  opacity: 1;
  transform: scale(1);
}

.cart-badge.bounce {
  animation: badgeBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes badgeBounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, #F8FAFF 0%, var(--white) 50%, var(--gold-light) 100%);
  padding: 4rem 1.25rem 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  text-align: left;
}

.hero-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: 2.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
  line-height: 1.1;
  font-weight: 800;
}

.hero .tagline {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 1.25rem;
}

.hero .subtitle {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.hero-ctas .btn {
  font-size: 0.9rem;
}

.hero-proof {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-content {
    text-align: center;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-proof {
    text-align: center;
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-primary:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

.btn-secondary:hover {
  background: var(--gold-dark);
  border-color: var(--navy);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-added {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
  color: var(--white) !important;
  pointer-events: none;
}

/* --- Brand Story --- */
.brand-story {
  background: var(--white);
  text-align: center;
}

.brand-story h2 {
  margin-bottom: 1rem;
}

.brand-story p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-mid);
  font-size: 1.05rem;
}

.brand-story .category-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.category-badge {
  background: var(--navy-light);
  color: var(--navy);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* --- Social Proof --- */
.social-proof {
  background: var(--cream-dark);
}

.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.proof-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.proof-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.proof-content h2 {
  margin-bottom: 1.5rem;
}

.proof-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.proof-stat {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  min-width: 60px;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-mid);
  font-weight: 600;
}

.proof-text {
  color: var(--text-mid);
  font-size: 1rem;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .proof-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* --- Reviews Strip --- */
.reviews-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.review-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.review-stars {
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.review-quote {
  font-size: 0.9rem;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 0.75rem;
  font-style: italic;
}

.review-source {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-light);
}

@media (max-width: 900px) {
  .reviews-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 599px) {
  .reviews-strip {
    grid-template-columns: 1fr;
  }
}

/* --- Product Search --- */
.product-search {
  max-width: 400px;
  margin: 0 auto 1.5rem;
}

.product-search input {
  width: 100%;
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--navy-light);
  border-radius: 999px;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.95rem;
  background: var(--white);
  color: var(--text-dark);
  outline: none;
  transition: border-color var(--transition);
}

.product-search input:focus {
  border-color: var(--navy);
}

.product-search input::placeholder {
  color: var(--text-light);
}

/* --- Category Filters --- */
.category-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border: 2px solid var(--navy-light);
  border-radius: 999px;
  background: transparent;
  color: var(--text-mid);
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.filter-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

/* --- Product Grid --- */
.products-section {
  background: var(--cream);
}

.products-section h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 600px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-card-image {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--cream-dark);
  display: block;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card-image img {
  transform: scale(1.04);
}

.product-card-body {
  padding: 1.25rem;
}

.product-card-body h3 {
  margin-bottom: 0.25rem;
  font-size: 1.2rem;
}

.product-card-body h3 a {
  color: var(--text-dark);
}

.product-card-body h3 a:hover {
  color: var(--navy);
}

.product-card-body .product-type {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.product-card-body .price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.product-card-body .category-tag {
  display: inline-block;
  background: var(--cream-dark);
  color: var(--text-mid);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.color-count {
  display: inline-block;
  background: var(--navy-light);
  color: var(--navy-dark);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-left: 0.35rem;
}

.product-card-body .btn {
  width: 100%;
}

/* --- Product Detail --- */
.product-detail {
  padding: 2rem 0 4rem;
}

.product-detail .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-detail .back-link:hover {
  color: var(--navy);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .product-detail-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.product-detail-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream-dark);
  box-shadow: var(--shadow-md);
}

.product-detail-image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.product-detail-info h1 {
  margin-bottom: 0.25rem;
}

.product-detail-info .product-type {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.product-detail-info .price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.product-detail-info .description {
  color: var(--text-mid);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* --- Color Variant Selector --- */
.variant-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.variant-selector-label {
  width: 100%;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.variant-option {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  padding: 0.5rem 0.85rem;
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-mid);
  transition: all var(--transition);
}

.variant-option:hover {
  border-color: var(--gold-light);
  color: var(--text-dark);
}

.variant-option.selected {
  border-color: var(--gold);
  color: var(--text-dark);
  background: var(--gold-light);
}

.variant-option.has-photo .variant-thumb {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.variant-sku-tag {
  font-size: 0.65rem;
  color: var(--text-light);
  letter-spacing: 0.03em;
  font-weight: 600;
}

.variant-option.selected .variant-sku-tag {
  color: var(--navy);
}

.variant-sku {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* --- Add to Cart Row --- */
.add-to-cart-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.qty-selector {
  display: flex;
  align-items: center;
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius);
  overflow: hidden;
}

.qty-selector button {
  width: 40px;
  height: 40px;
  background: var(--cream-dark);
  border: none;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  transition: background var(--transition);
}

.qty-selector button:hover {
  background: var(--gold-light);
}

.qty-selector input {
  width: 48px;
  height: 40px;
  text-align: center;
  border: none;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  background: var(--white);
}

.qty-selector input::-webkit-inner-spin-button,
.qty-selector input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

.add-to-cart-row .btn {
  flex: 1;
  padding: 0.75rem 2rem;
}

/* Details table */
.details-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.details-table caption {
  text-align: left;
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.details-table tr {
  border-bottom: 1px solid var(--cream-dark);
}

.details-table td {
  padding: 0.6rem 0;
  font-size: 0.9rem;
}

.details-table td:first-child {
  font-weight: 700;
  color: var(--text-dark);
  width: 40%;
}

.details-table td:last-child {
  color: var(--text-mid);
}

/* You Might Also Like */
.also-like {
  padding: 4rem 0;
  background: var(--white);
}

.also-like h2 {
  text-align: center;
  margin-bottom: 2rem;
}

/* --- Cart Page --- */
.cart-page {
  padding: 2rem 0 4rem;
  min-height: 60vh;
}

.cart-page h1 {
  margin-bottom: 2rem;
}

.cart-empty {
  text-align: center;
  padding: 4rem 0;
}

.cart-empty p {
  font-size: 1.1rem;
  color: var(--text-mid);
  margin-bottom: 1.5rem;
}

.cart-empty svg {
  width: 64px;
  height: 64px;
  stroke: var(--gold-light);
  fill: none;
  stroke-width: 1.2;
  margin-bottom: 1rem;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--white);
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.cart-item-image {
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--cream-dark);
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
}

.cart-item-info h3 {
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
}

.cart-item-info .cart-item-color {
  font-size: 0.8rem;
  color: var(--text-mid);
  margin-bottom: 0.1rem;
}

.cart-item-info .cart-item-sku {
  font-size: 0.7rem;
  color: var(--text-light);
  margin-bottom: 0.15rem;
}

.cart-item-info .price {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0;
}

.cart-item-qty button {
  width: 32px;
  height: 32px;
  background: var(--cream-dark);
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-dark);
  transition: background var(--transition);
}

.cart-item-qty button:hover {
  background: var(--gold-light);
}

.cart-item-qty span {
  width: 36px;
  text-align: center;
  font-weight: 700;
}

.cart-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  opacity: 0.4;
  transition: opacity var(--transition);
}

.cart-item-remove:hover {
  opacity: 1;
}

.cart-item-remove svg {
  width: 18px;
  height: 18px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 2;
}

.cart-item-subtotal {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dark);
  min-width: 60px;
  text-align: right;
}

.cart-summary {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-top: 2rem;
  max-width: 400px;
  margin-left: auto;
}

.cart-summary .summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.cart-summary .summary-row.total {
  font-size: 1.25rem;
  font-weight: 700;
  border-top: 2px solid var(--cream-dark);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
}

.cart-summary .shipping-note {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.cart-summary .btn {
  width: 100%;
  margin-bottom: 0.75rem;
}

.cart-summary .continue-link {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-mid);
}

/* --- Cart Drawer --- */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(58, 50, 48, 0.35);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cart-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  max-width: 90vw;
  height: 100%;
  background: var(--cream);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(58, 50, 48, 0.12);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--cream-dark);
  background: var(--white);
}

.cart-drawer-header h3 {
  font-size: 1.15rem;
}

.cart-drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.cart-drawer-close svg {
  width: 22px;
  height: 22px;
  stroke: var(--text-dark);
  fill: none;
  stroke-width: 2;
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
}

.cart-drawer-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-light);
}

.cart-drawer-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--cream-dark);
}

.cart-drawer-item:last-child {
  border-bottom: none;
}

.cart-drawer-item-image {
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--cream-dark);
}

.cart-drawer-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-drawer-item-info {
  flex: 1;
}

.cart-drawer-item-info h4 {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.1rem;
}

.cart-drawer-item-info .drawer-item-color {
  font-size: 0.75rem;
  color: var(--text-mid);
  margin-bottom: 0.1rem;
}

.cart-drawer-item-info .price {
  font-size: 0.85rem;
  color: var(--navy);
  font-weight: 700;
}

.cart-drawer-item-info .qty {
  font-size: 0.8rem;
  color: var(--text-light);
}

.cart-drawer-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  opacity: 0.35;
  transition: opacity var(--transition);
  align-self: flex-start;
}

.cart-drawer-item-remove:hover {
  opacity: 1;
}

.cart-drawer-item-remove svg {
  width: 16px;
  height: 16px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 2;
}

.cart-drawer-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--cream-dark);
  background: var(--white);
}

.cart-drawer-footer .drawer-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.cart-drawer-footer .btn {
  width: 100%;
  margin-bottom: 0.5rem;
}

.cart-drawer-footer .view-cart-link {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-mid);
  font-weight: 600;
}

/* --- Email Signup --- */
.email-signup {
  background: var(--navy);
  text-align: center;
}

.email-signup h2 {
  margin-bottom: 0.75rem;
  color: var(--white);
}

.email-signup > .container > p {
  color: rgba(255,255,255,0.7);
  max-width: 480px;
  margin: 0 auto 1.5rem;
  font-size: 1.05rem;
}

.signup-form {
  display: flex;
  gap: 0.5rem;
  max-width: 440px;
  margin: 0 auto;
}

.signup-form input[type="email"] {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.95rem;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  outline: none;
  transition: border-color var(--transition);
}

.signup-form input[type="email"]:focus {
  border-color: var(--gold);
}

.signup-form input[type="email"]::placeholder {
  color: rgba(255,255,255,0.4);
}

.email-signup .btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.email-signup .btn-primary:hover {
  background: #e0a229;
  border-color: #e0a229;
  color: var(--navy);
}

.signup-note {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin-top: 0.75rem;
}

@media (max-width: 599px) {
  .signup-form {
    flex-direction: column;
  }

  .signup-form .btn {
    width: 100%;
  }
}

/* --- Footer --- */
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.footer-links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: rgba(255,255,255,0.95);
}

.site-footer .powered-by a {
  color: rgba(255,255,255,0.5);
  text-decoration: underline;
}

.site-footer .powered-by a:hover {
  color: rgba(255,255,255,0.8);
}

.site-footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.55);
  text-align: center;
  padding: 2.5rem 1.25rem;
}

.site-footer .footer-brand {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.5rem;
}

.site-footer p {
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

.site-footer .powered-by {
  font-size: 0.7rem;
  margin-top: 1rem;
  opacity: 0.5;
}

/* --- Responsive Adjustments --- */
@media (max-width: 599px) {
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }

  .hero { padding: 2.5rem 1rem 2rem; }
  .hero h1 { font-size: 1.875rem; }
  .hero .tagline { font-size: 1.05rem; }
  .hero .subtitle { font-size: 0.95rem; }

  .header-nav a.nav-link-text {
    display: none;
  }

  .cart-item {
    flex-wrap: wrap;
  }

  .cart-item-subtotal {
    width: 100%;
    text-align: left;
    padding-top: 0.5rem;
    border-top: 1px solid var(--cream-dark);
  }

  .cart-summary {
    max-width: 100%;
  }

  .product-detail-info .price {
    font-size: 1.4rem;
  }

  .variant-option {
    padding: 0.4rem 0.65rem;
    font-size: 0.75rem;
  }
}

/* --- Success Page --- */
.success-page {
  padding: 5rem 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.success-content {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.success-icon {
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.success-icon svg {
  width: 80px;
  height: 80px;
}

.success-content h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.success-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.success-detail {
  color: var(--text-mid);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.success-actions {
  margin-bottom: 2rem;
}

.success-note {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* --- 404 / Error Page --- */
.error-page {
  padding: 5rem 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.error-content {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.error-content h1 {
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.error-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.error-detail {
  color: var(--text-mid);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* --- Mobile Responsive for Success/Error --- */
@media (max-width: 599px) {
  .success-content h1 {
    font-size: 2rem;
  }

  .error-content h1 {
    font-size: 2.25rem;
  }

  .success-icon svg {
    width: 60px;
    height: 60px;
  }
}

/* --- Utility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.text-center { text-align: center; }
