:root {
  --color-cream: #f4ede1;
  --color-dark: #1c1c1a;
  --color-text-dark: #2a2a28;
  --color-text-muted: #6b6b66;
  --color-white: #ffffff;
  --font-display: 'Quicksand', sans-serif;
  --font-body: 'Inter', sans-serif;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-cream);
  color: var(--color-text-dark);
  margin: 0;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--color-text-dark);
}

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

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

/* -- HEADER -- */
.site-header {
  background: linear-gradient(180deg, rgba(35,35,35,1) 0%, rgba(0,0,0,0) 100%);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.top-nav .row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.2rem 0.5rem;
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 2rem;
  white-space: nowrap;
  justify-self: start;
}

.nav-left a {
  color: var(--color-cream);
  font-size: 1.3rem;
  opacity: 1;
  font-family: var(--font-display);
}

.nav-left a:hover {
  opacity: 0.8;
}

.nav-logo {
  justify-self: center;
}

.nav-logo img {
  height: 64px;
  width: auto;
  display: block;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 3rem;
  justify-self: end;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.icon-link img {
  width: 100%;
  height: 100%;
  display: block;
}

.profile-icon {
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  padding: 0;
}

.hero-wrapper {
  position: relative;
}

/* -- FOOTER -- */
.footer-image-band {
  padding-top: 20px;
  padding-bottom: 20px;
  width: 100%;
  line-height: 0;
}

.footer-band-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.site-footer {
  background-color: var(--color-cream);
  padding-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.footer-logo-row span {
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.footer-brand p {
  color: var(--color-text-muted);
  font-size: 1.0rem;
  line-height: 1.5;
  max-width: 260px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.3rem;
}

.footer-col a {
  color: var(--color-dark);
  font-size: 1.0rem;
}

.footer-col a:hover {
  color: var(--color-dark);
}

.footer-newsletter p {
  color: var(--color-dark);
  font-size: 1.0rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.newsletter-form {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.2);
  padding-bottom: 0.5rem;
}

.newsletter-form input {
  border: none;
  background: none;
  flex: 1;
  font-size: 1.2rem;
  color: var(--color-text-dark);
  outline: none;
}

.newsletter-form button {
  background: none;
  border: none;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  color: var(--color-text-dark);
  padding: 0;
  box-shadow: none;
}

.footer-bottom {
  border-top: 1px solid rgba(0,0,0,0.1);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: var(--color-text-muted);
  font-size: 1.0rem;
  margin: 0;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-links a {
  color: var(--color-text-muted);
  font-size: 1.0rem;
}

/* -- CART -- */
.icon-link {
  position: relative;
}

.cart-count-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--color-dark);
  color: var(--color-cream);
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  width: 16px;
  height: 16px;
  border: 1px solid var(--color-cream);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 100;
}

.cart-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 420px;
  max-width: 90vw;
  background: var(--color-cream);
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 101;
  display: flex;
  flex-direction: column;
}

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

.cart-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.cart-close-btn {
  background: none;
  border: none;
  font-size: 3rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-dark);
  -webkit-appearance: none;
  appearance: none;
}

.cart-close-btn:hover,
.cart-close-btn:focus,
.cart-close-btn:active {
  background: none;
  outline: none;
  box-shadow: none;
  color: var(--color-dark);
}

.cart-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

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

.cart-continue-btn {
  background-color: var(--color-dark);
  color: var(--color-cream);
  border: none;
  border-radius: 40px;
  padding: 1rem 2rem;
  font-family: var(--font-display);
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cart-continue-btn:hover {
  background-color: var(--color-text-muted);
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.cart-item-details {
  flex: 1;
  min-width: 0;
}

.cart-item-image {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
}

.cart-item-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
}

.cart-item-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  margin: 0;
  line-height: 1.1;
  flex: 1;
}

.cart-item-price {
  color: var(--color-text-muted);
  font-size: 1.4rem;
  margin: 0.2rem 0 0.8rem;
  line-height: 1;
}

.cart-item-qty {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid rgba(0,0,0,0.5);
  border-radius: 40px;
  padding: 0.2rem 0.5rem;
  margin-bottom: 0.6rem;
  width: fit-content;
}

.cart-qty-btn {
  background: none;
  color: var(--color-dark);
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  width: 20px;
  height: 20px;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-appearance: none;
  appearance: none;
}

.cart-qty-btn:hover,
.cart-qty-btn:focus,
.cart-qty-btn:active {
  background: none;
  outline: none;
  box-shadow: none;
  color: var(--color-dark);
}

.cart-remove-btn {
  background: none;
  border: none;
  text-decoration: underline;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0;
  font-size: 1.4rem;
  white-space: nowrap;
  -webkit-appearance: none;
  appearance: none;
}

.cart-remove-btn:hover,
.cart-remove-btn:focus,
.cart-remove-btn:active {
  background: none;
  outline: none;
  box-shadow: none;
  color: var(--color-text-muted);
}

.cart-item-qty span {
  font-size: 1rem;
  min-width: 16px;
  text-align: center;
}

.cart-remove-btn {
  display: block;
  background: none;
  border: none;
  text-decoration: underline;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0;
  font-size: 0.9rem;
}

.cart-panel-footer {
  border-top: 1px solid rgba(0,0,0,0.1);
  padding: 1.5rem;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.8rem;
  margin-bottom: 3rem;
}

.cart-checkout-btn {
  width: 100%;
  background-color: var(--color-dark);
  color: var(--color-cream);
  border: none;
  border-radius: 40px;
  padding: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* -- SHARED RESPONSIVE -- */
@media (max-width: 768px) {
  .top-nav .row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .nav-left a {
    margin-right: 1rem;
    font-size: 0.85rem;
  }

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

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