/* ===== SAVELY.DK – Shared Stylesheet ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: #f0fdf4; color: #1e293b; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

:root {
  --teal: #0f766e;
  --teal-light: #14b8a6;
  --teal-pale: #ccfbf1;
  --amber: #f59e0b;
  --amber-light: #fcd34d;
  --green: #16a34a;
  --red: #dc2626;
  --slate: #1e293b;
  --slate-mid: #475569;
  --slate-light: #94a3b8;
  --border: #e2e8f0;
  --card: #ffffff;
  --bg: #f0fdf4;
  --bg2: #f8fafc;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(15,118,110,0.08);
  --shadow-md: 0 8px 32px rgba(15,118,110,0.12);
  --shadow-lg: 0 16px 48px rgba(15,118,110,0.16);
}

/* ===== NAV ===== */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 0 32px; height: 70px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.nav-logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.7rem; font-weight: 900; letter-spacing: -1px;
  color: var(--teal);
}
.nav-logo sup {
  font-size: 0.6rem; color: var(--amber); font-weight: 800;
  vertical-align: super; letter-spacing: 0;
}
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  padding: 8px 14px; border-radius: 8px; font-size: 0.88rem;
  font-weight: 600; color: var(--slate-mid); transition: all 0.15s;
}
.nav-links a:hover, .nav-links a.active { background: var(--teal-pale); color: var(--teal); }
.nav-search { flex: 1; max-width: 400px; position: relative; }
.nav-search input {
  width: 100%; background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 50px; padding: 9px 18px 9px 42px;
  color: var(--slate); font-size: 0.88rem; font-family: inherit; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.nav-search input::placeholder { color: var(--slate-light); }
.nav-search input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,118,110,0.1); }
.nav-search .si { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--slate-light); font-size: 1rem; }
.btn-nav {
  background: var(--teal); border: none; border-radius: 50px;
  padding: 10px 22px; color: #fff; font-weight: 700; font-size: 0.85rem;
  cursor: pointer; transition: background 0.2s, transform 0.1s; white-space: nowrap;
  font-family: inherit;
}
.btn-nav:hover { background: var(--teal-light); transform: scale(1.02); }

/* ===== TICKER ===== */
.ticker { background: var(--teal); padding: 9px 0; overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-flex; animation: ticker 35s linear infinite; }
.ticker-item { display: inline-block; padding: 0 48px; font-size: 0.8rem; font-weight: 600; color: rgba(255,255,255,0.9); }
.ticker-sep { color: var(--amber-light); margin: 0 4px; }
@keyframes ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block; background: var(--teal); border: none; border-radius: 50px;
  padding: 14px 32px; color: #fff; font-weight: 700; font-size: 0.95rem;
  cursor: pointer; transition: all 0.2s; font-family: inherit; text-decoration: none;
  box-shadow: 0 4px 20px rgba(15,118,110,0.3);
}
.btn-primary:hover { background: var(--teal-light); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(15,118,110,0.35); }
.btn-secondary {
  display: inline-block; background: transparent; border: 2px solid var(--teal);
  border-radius: 50px; padding: 13px 30px; color: var(--teal); font-weight: 700;
  font-size: 0.95rem; cursor: pointer; transition: all 0.2s; font-family: inherit; text-decoration: none;
}
.btn-secondary:hover { background: var(--teal-pale); }
.btn-amber {
  display: inline-block; background: var(--amber); border: none; border-radius: 50px;
  padding: 13px 30px; color: #fff; font-weight: 700; font-size: 0.9rem;
  cursor: pointer; transition: all 0.2s; font-family: inherit; text-decoration: none;
}
.btn-amber:hover { background: var(--amber-light); color: var(--slate); }

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }

/* ===== SECTION HEADER ===== */
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; gap: 12px; }
.section-tag { display: inline-block; background: var(--teal-pale); color: var(--teal); font-size: 0.72rem; font-weight: 800; padding: 4px 12px; border-radius: 50px; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 8px; }
.section-title { font-family: 'Poppins', sans-serif; font-size: 1.9rem; font-weight: 800; color: var(--slate); letter-spacing: -0.5px; }
.see-all { color: var(--teal); font-weight: 700; font-size: 0.88rem; white-space: nowrap; transition: opacity 0.2s; }
.see-all:hover { opacity: 0.7; }

/* ===== DEAL BADGE ===== */
.badge { display: inline-block; font-size: 0.68rem; font-weight: 800; padding: 3px 9px; border-radius: 50px; letter-spacing: 0.4px; text-transform: uppercase; }
.badge-hot { background: #fef2f2; color: var(--red); border: 1px solid #fecaca; }
.badge-new { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
.badge-sale { background: #f0fdf4; color: var(--green); border: 1px solid #bbf7d0; }
.badge-rodekassen { background: var(--teal-pale); color: var(--teal); border: 1px solid #99f6e4; }
.badge-wool { background: #fdf4ff; color: #7c3aed; border: 1px solid #e9d5ff; }

/* ===== PRODUCT CARD ===== */
.product-card {
  background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; position: relative;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--teal-light); }
.card-img { width: 100%; height: 190px; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 4.5rem; position: relative; }
.card-body { padding: 16px; }
.card-source { font-size: 0.7rem; font-weight: 700; color: var(--slate-light); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.card-title { font-size: 0.92rem; font-weight: 600; color: var(--slate); line-height: 1.35; margin-bottom: 10px; }
.card-prices { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.card-price { font-family: 'Poppins', sans-serif; font-size: 1.3rem; font-weight: 800; color: var(--teal); }
.card-was { font-size: 0.78rem; color: var(--slate-light); text-decoration: line-through; }
.card-save { font-size: 0.72rem; font-weight: 700; color: var(--green); background: #f0fdf4; padding: 2px 7px; border-radius: 4px; border: 1px solid #bbf7d0; }
.card-footer { display: flex; justify-content: space-between; align-items: center; }
.btn-deal {
  display: inline-block; background: var(--teal); color: #fff; border: none;
  border-radius: var(--radius-sm); padding: 9px 18px; font-weight: 700;
  font-size: 0.8rem; cursor: pointer; text-decoration: none;
  transition: background 0.15s; font-family: inherit;
}
.btn-deal:hover { background: var(--teal-light); }
.card-badge-corner { position: absolute; top: 12px; left: 12px; }
.card-heart { position: absolute; top: 12px; right: 12px; background: white; border: 1px solid var(--border); border-radius: 50%; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 0.9rem; transition: all 0.2s; }
.card-heart:hover { border-color: var(--red); background: #fef2f2; }
.stars { font-size: 0.75rem; color: var(--amber); margin-bottom: 6px; }

/* ===== GRID ===== */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.products-grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }

/* ===== HERO ===== */
.hero { background: linear-gradient(135deg, #f0fdf4 0%, #ccfbf1 50%, #e0f2fe 100%); padding: 80px 0 60px; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-eyebrow { font-size: 0.8rem; font-weight: 700; color: var(--teal); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.hero-eyebrow::before { content: ''; display: block; width: 24px; height: 2px; background: var(--teal); }
.hero h1 { font-family: 'Poppins', sans-serif; font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 900; line-height: 1.12; letter-spacing: -1.5px; color: var(--slate); margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero p { font-size: 1.05rem; color: var(--slate-mid); line-height: 1.7; margin-bottom: 32px; max-width: 440px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat .num { font-family: 'Poppins', sans-serif; font-size: 1.5rem; font-weight: 800; color: var(--teal); }
.hero-stat .lbl { font-size: 0.75rem; color: var(--slate-light); font-weight: 600; }

/* Hero right – deal stack */
.hero-stack { display: flex; flex-direction: column; gap: 14px; }
.hero-deal {
  background: white; border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 16px 20px; display: flex; align-items: center; gap: 16px;
  box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s; cursor: pointer;
}
.hero-deal:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.hero-deal .hd-icon { font-size: 2.4rem; flex-shrink: 0; }
.hero-deal .hd-info { flex: 1; min-width: 0; }
.hero-deal .hd-name { font-size: 0.9rem; font-weight: 600; color: var(--slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-deal .hd-src { font-size: 0.7rem; color: var(--slate-light); font-weight: 600; text-transform: uppercase; margin-bottom: 2px; }
.hero-deal .hd-price { font-family: 'Poppins', sans-serif; font-size: 1.1rem; font-weight: 800; color: var(--teal); }
.hero-deal .hd-was { font-size: 0.72rem; color: var(--slate-light); text-decoration: line-through; margin-left: 4px; }
.hero-deal .hd-save { background: var(--amber); color: white; font-size: 0.68rem; font-weight: 800; padding: 2px 8px; border-radius: 50px; flex-shrink: 0; }

/* ===== CATEGORIES ===== */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.cat-card {
  background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 20px 12px; text-align: center; cursor: pointer;
  transition: all 0.2s;
}
.cat-card:hover, .cat-card.active { border-color: var(--teal); background: var(--teal-pale); transform: translateY(-2px); box-shadow: var(--shadow); }
.cat-icon { font-size: 2rem; margin-bottom: 8px; }
.cat-name { font-size: 0.82rem; font-weight: 700; color: var(--slate-mid); }
.cat-count { font-size: 0.7rem; color: var(--slate-light); margin-top: 3px; }

/* ===== FILTER BAR ===== */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 24px; }
.filter-chip { background: var(--card); border: 1.5px solid var(--border); border-radius: 50px; padding: 7px 16px; font-size: 0.8rem; font-weight: 600; color: var(--slate-mid); cursor: pointer; transition: all 0.15s; font-family: inherit; }
.filter-chip:hover, .filter-chip.active { border-color: var(--teal); color: var(--teal); background: var(--teal-pale); }
.filter-select { margin-left: auto; background: var(--card); border: 1.5px solid var(--border); border-radius: 50px; padding: 7px 16px; font-size: 0.8rem; font-weight: 600; color: var(--slate-mid); cursor: pointer; font-family: inherit; outline: none; }

/* ===== PARTNER CARDS ===== */
.partner-card {
  background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow); transition: all 0.2s;
}
.partner-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.partner-logo { font-size: 2rem; font-weight: 900; font-family: 'Poppins', sans-serif; margin-bottom: 12px; }
.partner-desc { color: var(--slate-mid); font-size: 0.9rem; line-height: 1.65; margin-bottom: 20px; }
.partner-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.ptag { background: var(--bg); border: 1px solid var(--border); border-radius: 50px; padding: 4px 12px; font-size: 0.75rem; font-weight: 600; color: var(--slate-mid); }

/* ===== NEWSLETTER ===== */
.newsletter-section { background: linear-gradient(135deg, var(--teal), var(--teal-light)); padding: 60px 0; }
.newsletter-inner { max-width: 560px; margin: 0 auto; text-align: center; }
.newsletter-inner h2 { font-family: 'Poppins', sans-serif; font-size: 2rem; font-weight: 800; color: white; margin-bottom: 10px; }
.newsletter-inner p { color: rgba(255,255,255,0.85); margin-bottom: 28px; font-size: 0.95rem; }
.nl-form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.nl-form input { flex: 1; min-width: 220px; background: white; border: none; border-radius: 50px; padding: 14px 22px; font-size: 0.92rem; font-family: inherit; outline: none; color: var(--slate); }
.nl-perks { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.nl-perk { font-size: 0.78rem; color: rgba(255,255,255,0.8); display: flex; align-items: center; gap: 5px; }
.nl-perk span { color: var(--amber-light); }

/* ===== COUNTDOWN ===== */
.countdown-bar { background: var(--slate); padding: 20px 0; }
.countdown-inner { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }
.cd-label { font-size: 0.8rem; font-weight: 700; color: var(--teal-light); text-transform: uppercase; letter-spacing: 1px; }
.cd-timers { display: flex; gap: 10px; }
.cd-block { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 10px 18px; text-align: center; min-width: 70px; }
.cd-num { font-family: 'Poppins', sans-serif; font-size: 1.8rem; font-weight: 800; color: var(--amber); display: block; font-variant-numeric: tabular-nums; }
.cd-lbl { font-size: 0.62rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.cd-sep { font-size: 1.6rem; color: rgba(255,255,255,0.2); align-self: center; }

/* ===== TOAST ===== */
#toast { position: fixed; bottom: 28px; right: 28px; background: var(--teal); color: white; font-weight: 700; font-size: 0.88rem; padding: 13px 22px; border-radius: 50px; z-index: 9999; opacity: 0; transform: translateY(16px); transition: all 0.3s; pointer-events: none; box-shadow: var(--shadow-md); }
#toast.show { opacity: 1; transform: translateY(0); }

/* ===== MODAL ===== */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(15,23,42,0.7); z-index: 1000; align-items: center; justify-content: center; padding: 24px; }
.modal-overlay.show { display: flex; }
.modal { background: white; border-radius: var(--radius); padding: 40px; max-width: 460px; width: 100%; position: relative; box-shadow: var(--shadow-lg); }
.modal h3 { font-family: 'Poppins', sans-serif; font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; color: var(--slate); }
.modal p { color: var(--slate-mid); font-size: 0.9rem; margin-bottom: 22px; }
.modal input { width: 100%; background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 13px 16px; color: var(--slate); font-size: 0.92rem; font-family: inherit; outline: none; margin-bottom: 10px; transition: border-color 0.2s; }
.modal input:focus { border-color: var(--teal); }
.modal-close { position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 1.3rem; color: var(--slate-light); cursor: pointer; transition: color 0.2s; }
.modal-close:hover { color: var(--slate); }

/* ===== SEARCH DROPDOWN ===== */
#search-results { display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: white; border: 1.5px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-md); overflow: hidden; z-index: 200; }
.sr-item { display: flex; align-items: center; gap: 12px; padding: 11px 16px; cursor: pointer; border-bottom: 1px solid var(--border); transition: background 0.1s; text-decoration: none; color: inherit; }
.sr-item:last-child { border-bottom: none; }
.sr-item:hover { background: var(--bg); }
.sr-emoji { font-size: 1.4rem; }
.sr-name { font-size: 0.85rem; font-weight: 600; color: var(--slate); }
.sr-price { font-size: 0.75rem; color: var(--teal); font-weight: 700; }

/* ===== FOOTER ===== */
footer { background: var(--slate); color: white; padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .logo { font-family: 'Poppins', sans-serif; font-size: 1.5rem; font-weight: 900; color: var(--teal-light); margin-bottom: 12px; }
.footer-brand p { color: #94a3b8; font-size: 0.85rem; line-height: 1.65; }
.footer-col h4 { font-size: 0.8rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: #94a3b8; font-size: 0.83rem; transition: color 0.15s; }
.footer-col a:hover { color: var(--teal-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { color: #64748b; font-size: 0.77rem; }

/* ===== PAGE HEADER ===== */
.page-header { background: linear-gradient(135deg, #f0fdf4, #ccfbf1); padding: 48px 0 40px; border-bottom: 1px solid var(--border); }
.page-header h1 { font-family: 'Poppins', sans-serif; font-size: 2.2rem; font-weight: 800; color: var(--slate); letter-spacing: -1px; margin-bottom: 8px; }
.page-header p { color: var(--slate-mid); font-size: 1rem; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.8rem; color: var(--slate-light); margin-bottom: 12px; }
.breadcrumb a { color: var(--teal); font-weight: 600; }
.breadcrumb span { color: var(--slate-light); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-stack { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  nav { padding: 0 16px; }
  .nav-links { display: none; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .nav-search { display: none; }
}
