:root {
  --bg: #fffdf8;
  --surface: #ffffff;
  --primary: #ff6b35;
  --primary-dark: #d84f1f;
  --text: #1e293b;
  --muted: #64748b;
  --border: #f1dfd2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fffdf8 0%, #fff8f1 100%);
  line-height: 1.6;
}

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

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  padding: 1rem 0 4rem;
  background: radial-gradient(circle at top left, rgba(255, 107, 53, 0.16), transparent 28%);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.brand {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  color: var(--muted);
  font-weight: 500;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  padding-top: 2rem;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin: 0 0 1rem;
}

.hero-text,
.section-heading p,
.about-grid p,
.contact-card p {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
}

.btn-secondary {
  border: 1px solid var(--border);
  background: white;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--muted);
}

.hero-highlights li {
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.hero-card,
.contact-card,
.product-card,
.benefit-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
}

.hero-card {
  padding: 1.5rem;
}

.card-badge {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #fff2ea;
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 700;
}

.mini-product {
  display: flex;
  gap: 0.8rem;
  padding: 0.8rem 0;
  border-top: 1px solid #f6e8de;
}

.mini-product:first-of-type {
  border-top: none;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.6);
}

.section-heading {
  margin-bottom: 1.5rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.product-card {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  position: relative;
  overflow: visible;
}

.product-card:hover,
.product-card:focus-within {
  transform: translateY(-3px);
  transition: transform 0.2s ease;
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
  background: #f5ece5;
}

.product-card .product-icon {
  font-size: 2rem;
  margin-bottom: 0;
}

.product-card a {
  color: var(--primary);
  font-weight: 700;
  margin-top: auto;
}

.product-hover-preview {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%) translateY(0.25rem);
  width: min(260px, calc(100vw - 2rem));
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.product-card:hover .product-hover-preview,
.product-card:focus-within .product-hover-preview {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.product-hover-preview img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.75rem;
}

.product-hover-preview h4 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.product-hover-preview p {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.product-hover-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.95rem;
}

.product-detail-page {
  padding: 2rem 0 3rem;
}

.detail-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 1.5rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.detail-media img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 22px;
  background: #f5ece5;
}

.detail-copy h1 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.detail-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1rem 0 1.2rem;
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.payment-option {
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fffaf6;
}

.payment-option strong {
  display: block;
  margin-bottom: 0.25rem;
}

.detail-features {
  padding: 0;
  margin: 0.7rem 0 0;
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
}

.detail-features li {
  list-style: none;
  padding-left: 1rem;
  position: relative;
}

.detail-features li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.product-empty {
  grid-column: 1 / -1;
  color: var(--muted);
  text-align: center;
  padding: 1.2rem;
  border: 1px dashed var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
}

.login-status {
  color: var(--primary-dark);
  font-weight: 700;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #fff2ea;
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary-dark);
  font-weight: 700;
}

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  font-size: 0.85rem;
}

.cart-page {
  padding: 2rem 0 3rem;
}

.cart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.4rem;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
}

.cart-list {
  display: grid;
  gap: 0.8rem;
  margin: 1rem 0;
}

.cart-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fffaf6;
}

.cart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.compact-hero {
  padding-bottom: 2rem;
}

.account-page {
  display: grid;
  gap: 1.25rem;
  padding: 2rem 0 3rem;
}

.account-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.4rem;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
}

.account-tabs {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.tab {
  border: 1px solid var(--border);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: white;
  cursor: pointer;
}

.tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.auth-form {
  display: none;
  flex-direction: column;
  gap: 0.8rem;
}

.auth-form.active-form {
  display: flex;
}

.auth-form label,
.account-card label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
}

.auth-form input {
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.auth-message {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  font-weight: 600;
}

.auth-message.success {
  background: #ecfdf3;
  color: #166534;
}

.auth-message.error {
  background: #fef2f2;
  color: #991b1b;
}

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

.cart-item,
.order-item {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f3e0d2;
}

.empty-state {
  color: var(--muted);
}

.shipping-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.shipping-form input,
.shipping-form textarea,
.shipping-form select {
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.order-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: right;
}

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

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.benefits {
  display: grid;
  gap: 1rem;
}

.benefit-item {
  padding: 1rem 1.2rem;
}

.contact-card {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-list a {
  color: var(--primary-dark);
  font-weight: 600;
}

.footer {
  padding: 1.5rem 0 2.5rem;
  color: var(--muted);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

@media (max-width: 840px) {
  .hero-grid,
  .about-grid,
  .product-grid,
  .contact-card {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .product-grid {
    display: grid;
  }
}

@media (max-width: 640px) {
  .nav {
    flex-direction: column;
    gap: 0.7rem;
  }

  .nav-links {
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding-bottom: 3rem;
  }

  .hero-highlights {
    flex-direction: column;
  }

  .footer-content {
    flex-direction: column;
    gap: 0.4rem;
  }
}
