/* ═══════════════════════════════════════════════════════════
   Horshaga Hund — Premium Dog Food Store
   Palette: skogsgrön · varm kräm · bärnstensguldj
   Typography: Playfair Display (headings) · Lato (body)
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Lato:wght@300;400;600;700&display=swap');

/* ── Design tokens ───────────────────────────────────────── */
:root {
  --primary:       #2D5A1B;
  --secondary:     #1E3D12;
  --dark:          #142B0C;
  --accent:        #C9820B;
  --accent-light:  #E8A42A;
  --bg:            #FAF8F3;
  --light:         #F0EDE2;
  --light2:        #E8E3D3;
  --text:          #2C2416;
  --muted:         #6E6555;
  --border:        #D5CFC0;
  --white:         #FFFFFF;

  --shadow-sm:     0 2px 8px rgba(44,36,22,0.08);
  --shadow:        0 4px 24px rgba(44,36,22,0.12);
  --shadow-lg:     0 12px 48px rgba(44,36,22,0.20);
  --shadow-xl:     0 24px 80px rgba(44,36,22,0.28);
  --radius:        16px;
  --radius-sm:     10px;

  /* Aliases used by checkout template */
  --color-primary:   var(--primary);
  --color-secondary: var(--secondary);
  --color-accent:    var(--accent);
  --color-bg:        var(--bg);
  --color-text:      var(--text);
  --font-heading:    'Playfair Display', Georgia, serif;
  --font-body:       'Lato', 'Helvetica Neue', Arial, sans-serif;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Header ──────────────────────────────────────────────── */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(44,36,22,0.07);
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-logo { color: var(--text); display: flex; align-items: center; }
.site-logo strong {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.01em;
}
.logo-img {
  height: 52px;
  width: auto;
  display: block;
}
header nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
header nav a {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
header nav a:hover { color: var(--primary); }
.cart-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: var(--white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-size: 0.8rem;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}
.cart-link:hover { background: var(--secondary); transform: translateY(-1px); color: var(--white) !important; }
.cart-badge {
  background: var(--accent);
  color: var(--white);
  border-radius: 999px;
  min-width: 1.4rem;
  height: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0 0.35rem;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  background-color: var(--dark);
  background-size: cover;
  background-position: center 40%;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(170deg,
      rgba(14,32,7,0.72) 0%,
      rgba(30,61,18,0.50) 45%,
      rgba(10,25,5,0.82) 100%);
}
/* Grain texture on hero */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.12'/%3E%3C/svg%3E");
  opacity: 1;
  pointer-events: none;
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: 2rem;
  padding-bottom: 5rem;
}
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1.25rem;
  padding: 0.35rem 1rem;
  border: 1px solid rgba(232,164,42,0.4);
  border-radius: 999px;
}
.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.30);
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.15;
}
.hero-lead {
  font-size: 1.15rem;
  font-weight: 300;
  color: rgba(255,255,255,0.88);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}
.btn-hero {
  display: inline-block;
  padding: 1rem 2.75rem;
  background: var(--accent);
  color: var(--white);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 6px 28px rgba(201,130,11,0.50);
}
.btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(201,130,11,0.60);
  background: var(--accent-light);
  color: var(--white);
}
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 3;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: 72px; display: block; }

/* ── Trust strip ─────────────────────────────────────────── */
.trust-strip {
  background: var(--primary);
  padding: 1.4rem 0;
}
.trust-strip .container {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255,255,255,0.90);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.trust-icon {
  width: 18px;
  height: 18px;
  stroke: var(--accent-light);
  flex-shrink: 0;
}

/* ── Product grid ────────────────────────────────────────── */
.product-grid {
  padding: 6rem 0 5rem;
  background: var(--bg);
  position: relative;
}
/* Subtle texture on product section */
.product-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}
.product-grid .container { position: relative; }
.product-grid h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  text-align: center;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.product-grid-subtitle {
  text-align: center;
  color: var(--muted);
  margin-bottom: 3.5rem;
  font-size: 1.05rem;
  font-style: italic;
}
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.30s cubic-bezier(.25,.46,.45,.94), box-shadow 0.30s;
  border: 1px solid rgba(213,207,192,0.5);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}
.product-card-link { color: inherit; display: flex; flex-direction: column; flex: 1; }
.product-card-img-wrap {
  overflow: hidden;
  position: relative;
}
/* Amber accent line on top of card */
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1;
  border-radius: var(--radius) var(--radius) 0 0;
}
.product-card:hover::before { opacity: 1; }
.product-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background: var(--light);
  transition: transform 0.45s ease;
}
.product-card:hover img { transform: scale(1.06); }
.product-card-placeholder {
  height: 250px;
  background: var(--light2);
}
.product-card .info {
  padding: 1.4rem 1.4rem 0.75rem;
  flex: 1;
}
.product-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
  line-height: 1.3;
}
.product-card .price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.6rem;
}
.product-card .description {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-actions { padding: 0 1.4rem 1.4rem; }
.btn-buy {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.1s;
  font-family: var(--font-body);
}
.btn-buy:hover { background: var(--secondary); }
.btn-buy:active { transform: scale(0.98); }
.btn-buy:disabled { opacity: 0.4; cursor: default; }

/* ── About section ───────────────────────────────────────── */
.about-section {
  background: var(--secondary);
  position: relative;
  overflow: hidden;
}
/* Grain on about */
.about-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}
.about-text {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  padding: 5rem 5rem 5rem 0;
}
.about-text-inner { max-width: 520px; margin-left: auto; padding-right: 2rem; }
.about-eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1rem;
}
.about-text h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}
.about-text p {
  color: rgba(255,255,255,0.80);
  font-size: 1.05rem;
  line-height: 1.85;
}
.about-image-wrap {
  position: relative;
  overflow: hidden;
}
.about-image {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}
.about-simple {
  padding: 5rem 0;
}
.about-simple h2 { color: var(--white); margin-bottom: 1.25rem; font-size: 2.25rem; }
.about-simple p { color: rgba(255,255,255,0.80); max-width: 700px; line-height: 1.85; }

/* ── Contact ─────────────────────────────────────────────── */
.contact {
  padding: 6rem 0;
  background: var(--light);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(201,130,11,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.contact-inner {
  text-align: center;
  position: relative;
}
.contact h2 {
  font-family: var(--font-heading);
  color: var(--text);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
}
.contact p {
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto 1.75rem;
  font-size: 1.05rem;
  line-height: 1.8;
}
.contact-email {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--primary);
  color: var(--white);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(45,90,27,0.25);
}
.contact-email:hover {
  background: var(--secondary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(45,90,27,0.35);
}

/* ── Footer ──────────────────────────────────────────────── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.45);
  padding: 3rem 0 2rem;
  font-size: 0.875rem;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.footer-brand strong {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: rgba(255,255,255,0.80);
  display: block;
  margin-bottom: 0.5rem;
}
.footer-brand p {
  color: rgba(255,255,255,0.40);
  font-size: 0.875rem;
  font-style: italic;
}
.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
}
.footer-links a {
  color: rgba(255,255,255,0.45);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent-light); }
.footer-bottom { text-align: center; font-size: 0.8rem; }

/* ── Product detail page ─────────────────────────────────── */
.product-detail { padding: 5rem 0; }
.product-detail .layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: start;
}
.product-detail img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  background: var(--light);
}
.product-detail h1 {
  font-size: 2.4rem;
  margin-bottom: 0.75rem;
  color: var(--text);
  line-height: 1.2;
}
.product-detail .price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.product-detail p {
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}
.product-detail .btn-buy {
  display: inline-block;
  width: auto;
  padding: 1rem 2.75rem;
  font-size: 0.9rem;
  border-radius: 999px;
}

/* ── Generic utility ─────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  transition: background 0.2s;
}
.btn:hover { background: var(--secondary); color: var(--white); }
.btn:disabled { opacity: 0.5; cursor: default; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .about-text { padding: 4rem 3rem 4rem 0; }
  .about-text-inner { padding-right: 0; }
}
@media (max-width: 900px) {
  .about-layout { grid-template-columns: 1fr; }
  .about-text { padding: 4rem 1.5rem; }
  .about-text-inner { max-width: 100%; margin: 0; }
  .about-image-wrap { order: -1; }
  .about-image { min-height: 320px; height: 320px; }
  .product-detail .layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .product-detail img { height: 340px; }
}
@media (max-width: 700px) {
  header nav a:not(.cart-link) { display: none; }
  .hero { min-height: 540px; }
  .hero h1 { font-size: 2.2rem; }
  .trust-strip .container { gap: 1.5rem; }
  .trust-item span { display: none; }
  .trust-item { justify-content: center; }
  .product-grid { padding: 4.5rem 0; }
  .products { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .product-card img { height: 180px; }
  .footer-top { flex-direction: column; }
  .footer-links { gap: 1.25rem; }
}
@media (max-width: 480px) {
  .products { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.9rem; }
}
