:root {
  --bg: #f5f7f2;
  --surface: #fffdf8;
  --text: #1f1a16;
  --muted: #6d6258;
  --accent: #5B9BD5;
  --accent-2: #8BC34A;
  --line: #e0e8db;
  --radius: 16px;
  --shadow: 0 18px 45px rgba(53, 33, 20, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 10%, #f7cfbc 0%, transparent 35%),
    radial-gradient(circle at 90% 20%, #bedecf 0%, transparent 30%),
    var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px clamp(16px, 4vw, 42px);
  background: rgba(255, 253, 248, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(224, 232, 219, 0.5);
  box-shadow: 0 2px 12px rgba(53, 33, 20, 0.06);
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 700;
  transition: opacity 0.2s ease;
}

.brand-mark {
  width: 100px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.brand-mark img {
  height: 32px;
  width: auto;
}

.nav {
  display: flex;
  gap: 24px;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--accent);
  transition: color 0.2s ease;
}

.cart-link {
  color: var(--accent-2);
  font-weight: 700;
}

.cart-link:hover {
  opacity: 0.8;
}

.flash {
  margin: 18px auto 0;
  max-width: 1100px;
  background: #fff6e2;
  border: 1px solid #f0d7a5;
  border-radius: 12px;
  padding: 12px 16px;
}

.container {
  max-width: 1100px;
  margin: 20px auto 42px;
  padding: 0 16px;
}

.hero {
  border-radius: 24px;
  background:
    linear-gradient(140deg, rgba(91, 155, 213, 0.12), rgba(139, 195, 74, 0.12)),
    var(--surface);
  box-shadow: 0 8px 32px rgba(91, 155, 213, 0.08), 0 2px 8px rgba(53, 33, 20, 0.04);
  padding: clamp(32px, 7vw, 64px);
  margin-bottom: 32px;
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  line-height: 1.15;
  margin-bottom: 0.5em;
}

.hero p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.6;
}

.shipping-note {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 10px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent-2);
  background: rgba(139, 195, 74, 0.1);
  border: 1px solid rgba(42, 138, 107, 0.28);
  border-radius: 999px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-2);
  margin-bottom: 0.5em;
}

h1,
h2,
h3 {
  font-family: "DM Serif Display", serif;
  line-height: 1.1;
  margin: 0.3em 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.card,
.empty-state,
.checkout-summary,
.checkout-form,
.basket-item,
.checkout-panel,
.product-view {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(53, 33, 20, 0.06);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card {
  padding: 12px;
  display: grid;
  gap: 10px;
}

.card:hover {
  border-color: var(--accent-2);
  box-shadow: 0 12px 24px rgba(139, 195, 74, 0.15), 0 4px 12px rgba(53, 33, 20, 0.08);
  transform: translateY(-4px);
}

.thumb-wrap {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: #f2ece3;
  transition: transform 0.3s ease;
}

.card:hover .thumb-wrap {
  transform: scale(1.03);
}

.thumb,
.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.price {
  font-weight: 700;
  color: var(--accent);
  font-size: 1.1rem;
}

.price.large {
  font-size: 1.5rem;
  font-weight: 800;
}

button,
.button {
  border: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent-2), #7BC34A);
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(139, 195, 74, 0.25);
}

button:hover,
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 195, 74, 0.35);
}

.button-secondary {
  background: white;
  color: var(--accent-2);
  border: 1.5px solid var(--accent-2);
  box-shadow: none;
}

.button-secondary:hover {
  background: var(--accent-2);
  color: white;
  box-shadow: 0 8px 20px rgba(139, 195, 74, 0.35);
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

button:active,
.button:active {
  transform: translateY(0);
}

.button.ghost {
  background: white;
  color: var(--text);
  border: 1.5px solid var(--line);
  box-shadow: none;
}

.button.ghost:hover {
  border-color: var(--accent);
  background: var(--bg);
  box-shadow: 0 4px 12px rgba(91, 155, 213, 0.1);
}

.continue-shopping-cta {
  display: flex;
  width: 100%;
  justify-content: center;
  padding: 16px 20px;
  font-size: 1.05rem;
  font-weight: 700;
  background: linear-gradient(135deg, #5B9BD5, #4A8AC0);
  box-shadow: 0 8px 24px rgba(91, 155, 213, 0.28);
  transition: all 0.2s ease;
}

.continue-shopping-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(91, 155, 213, 0.35);
}

.stack {
  display: grid;
  gap: 16px;
}

.product-view {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  padding: 24px;
}

.product-image-wrap {
  border-radius: 16px;
  overflow: hidden;
  min-height: 360px;
  background: #efe7db;
  box-shadow: 0 8px 24px rgba(53, 33, 20, 0.08);
}

.product-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.product-content .description {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

.product-content .description p {
  margin: 0.5em 0;
}

.product-content .description ul,
.product-content .description ol {
  margin: 0.5em 0;
  padding-left: 1.5em;
}

.product-content .description li {
  margin: 0.25em 0;
}

.product-content .description strong {
  color: var(--text);
  font-weight: 700;
}

.product-content .description em {
  font-style: italic;
}

.product-content .description u {
  text-decoration: underline;
}

.add-form {
  display: grid;
  gap: 12px;
  max-width: 280px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  font: inherit;
}

.basket-list {
  display: grid;
  gap: 10px;
}

.basket-item {
  padding: 14px;
  display: grid;
  gap: 12px;
  align-items: center;
  grid-template-columns: 2fr auto auto;
}

.basket-update {
  display: flex;
  gap: 8px;
  align-items: center;
}

.basket-update input {
  width: 72px;
}

.checkout-panel {
  padding: 18px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

.checkout-form,
.checkout-summary {
  padding: 18px;
}

.form-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.shipping-options {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.shipping-free-note {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.shipping-options legend {
  padding: 0 6px;
  font-weight: 800;
}

.shipping-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
}

.shipping-option small {
  display: block;
  color: var(--muted);
  font-weight: 500;
}

.checkout-summary ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.checkout-summary li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.site-footer {
  text-align: center;
  color: var(--muted);
  padding: 24px;
}

.footer-links {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
  font-weight: 700;
}

.footer-links a {
  color: var(--accent-2);
}

.static-page {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 30px);
}

.static-page-content {
  color: var(--text);
}

.static-page-content h2 {
  margin-top: 1.4em;
  margin-bottom: 0.4em;
}

.static-page-content p,
.static-page-content li {
  color: var(--muted);
}

.static-page-content ul {
  padding-left: 1.2rem;
}

.static-page-content a {
  color: var(--accent-2);
  text-decoration: underline;
}

/* Modern Form & Input Styling */
input {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  background: white;
}

input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91, 155, 213, 0.1);
}

select,
textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  background: white;
}

select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91, 155, 213, 0.1);
}

/* Better basket item styling */
.basket-item {
  padding: 16px;
  border-radius: 12px;
  background: var(--bg);
  transition: all 0.2s ease;
}

.basket-item:hover {
  background: linear-gradient(135deg, rgba(91, 155, 213, 0.03), rgba(139, 195, 74, 0.03));
}

/* Enhanced footer */
.site-footer {
  text-align: center;
  color: var(--muted);
  padding: 32px 24px;
  margin-top: 48px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
  font-weight: 600;
}

.footer-links a {
  color: var(--accent-2);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

/* Static page improvements */
.static-page {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(53, 33, 20, 0.06);
  padding: clamp(24px, 4vw, 40px);
  margin: 20px 0;
}

.static-page-content h2 {
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  font-size: 1.35rem;
}

.static-page-content p {
  margin-bottom: 1em;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Animation refinements */
  animation: reveal 0.7s ease both;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .product-view,
  .checkout-grid,
  .basket-item {
    grid-template-columns: 1fr;
  }

  .form-row.two-col {
    grid-template-columns: 1fr;
  }

  .basket-item {
    align-items: start;
  }
}
