:root {
  --bg: #f8efe3;
  --bg-soft: #fdf7f0;
  --header: #ccb39a;
  --text: #5f4632;
  --text-soft: #7a624f;
  --button: #8b6b55;
  --button-hover: #755742;
  --white: #ffffff;
  --border: #e8d9ca;
  --shadow: 0 8px 24px rgba(95, 70, 50, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

body.short-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.short-page main {
  flex: 1;
}

body.short-page .site-footer {
  margin-top: auto;
}

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

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

.container {
  width: min(950px, 92%);
  margin: 0 auto;
}

.site-header {
  background: var(--header);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(95, 70, 50, 0.08);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 78px;
  gap: 2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text);
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--white);
}

.hero {
  padding: 6rem 0 5rem;
  background: linear-gradient(to bottom, #f6ebde, #f8efe3);
  text-align: center;
}

.eyebrow,
.section-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--text-soft);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 1;
  margin: 0 0 1rem;
  text-transform: lowercase;
}

.hero-text {
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  color: var(--text-soft);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  background: var(--button);
  color: var(--white);
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  transition: 0.2s ease;
}

.btn:hover {
  background: var(--button-hover);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text);
}

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

.favorites,
.about,
.contact {
  padding: 5rem 0;
}

.favorites h2,
.about h2,
.contact h2 {
  text-align: center;
  font-size: 2.3rem;
  margin-top: 0;
  margin-bottom: 2rem;
}

/* Flavor card layout */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.cookie-card {
  width: 290px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.cookie-image {
  width: 100%;
  height: 220px;
  border-radius: 18px;
  margin-bottom: 1rem;
  display: grid;
  place-items: center;
  object-fit: cover;
  font-weight: 700;
  color: var(--text);
}

.placeholder {
  background: linear-gradient(135deg, #ead8c3, #f5e9dc);
}

.cookie-card h3 {
  margin: 0.4rem 0;
  font-size: 1.2rem;
}

.cookie-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.96rem;
}

.about-box,
.contact-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.about-box h2,
.contact-box h2 {
  text-align: left;
  margin-bottom: 1rem;
}

.contact-box a[href^="mailto:"] {
  font-weight: 700;
}

.site-footer {
  background: var(--header);
  padding: 1.2rem 0;
  text-align: center;
}

.footer-content p {
  margin: 0;
  color: var(--text);
}

.order-section {
  background-color: #f8f1e7;
  padding: 60px 20px;
}

.order-container {
  max-width: 1200px;
  margin: 0 auto;
}

.order-section h2 {
  text-align: center;
  font-size: 2.2rem;
  color: #7a5c4b;
  margin-bottom: 10px;
}

.order-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
  color: #6d5a4d;
  line-height: 1.6;
}

.shop-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.product-card,
.cart-box,
.order-form {
  background: #fffaf5;
  border: 1px solid #e7d8c8;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.product-card h3,
.cart-box h3,
.order-form h3 {
  color: #7a5c4b;
  margin-bottom: 10px;
}

.product-card p,
.cart-box p,
.order-form label,
.payment-info p {
  color: #5f4a3d;
}

.price {
  font-weight: bold;
  margin: 12px 0;
}

.product-card button,
.checkout-btn,
.submit-order-btn {
  background-color: #b69072;
  color: white;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: 0.2s ease;
}

.product-card button:hover,
.checkout-btn:hover,
.submit-order-btn:hover {
  opacity: 0.9;
}

.cart-form-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-form input,
.order-form textarea,
.order-form select {
  padding: 12px;
  border: 1px solid #d9c7b6;
  border-radius: 10px;
  font-size: 1rem;
  background: white;
}

.cart-summary {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #e7d8c8;
}

.payment-info {
  background: #f3e7db;
  border-radius: 12px;
  padding: 14px;
  margin: 10px 0;
}

.hidden {
  display: none;
}

.order-message {
  margin-top: 10px;
  padding: 14px;
  border-radius: 12px;
  background: #efe2d4;
  color: #6a4f3f;
  display: none;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 10px;
}

.cart-item button {
  background: #d7b8a0;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .cookie-card {
    width: calc((100% - 1.5rem) / 2);
  }

  .shop-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .nav {
    flex-direction: column;
    justify-content: center;
    padding: 1rem 0;
  }

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

  .cookie-card {
    width: 100%;
  }

  .hero {
    padding-top: 4.5rem;
  }
}