/* =============================================================
   Sverag Byggmaterial AB — Pigment Huset
   Design: precision-industrial, B2B trade professional
   Referens: original design 1973 — moderniserad
   ============================================================= */

/* ----- Custom properties ------------------------------------ */
:root {
  --primary:      #0072bc;
  --primary-dark: #005a94;
  --primary-deep: #003f6b;
  --text:         #1f2933;
  --muted:        #6b7280;
  --background:   #ffffff;
  --light-bg:     #f4f8fb;
  --border:       #d8e3ec;
  --danger:       #dc2626;
  --success:      #16a34a;

  --radius:    4px;
  --radius-lg: 8px;

  --header-h: 72px;
  --font: Arial, Helvetica, sans-serif;
}

/* ----- Reset ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--background);
}

img { display: block; max-width: 100%; height: auto; }
a   { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul  { list-style: none; }
address { font-style: normal; }

/* ----- Container -------------------------------------------- */
.container {
  width: min(100% - 32px, 1200px);
  margin: 0 auto;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--primary-deep);
  border-bottom: 3px solid var(--primary);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* ---- Logo ---- */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

/* Vit pill-behållare — håller logans vita bakgrund mot den mörka headern */
.logo-img {
  display: block;
  height: 46px;
  width: auto;
  background: #fff;
  border-radius: 6px;
  padding: 5px 10px;
  object-fit: contain;
}

/* ---- Nav ---- */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
}
.main-nav a {
  display: block;
  padding: 6px 14px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  border-radius: var(--radius);
  transition: color .15s, background .15s;
}
.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  background: rgba(255,255,255,.08);
  text-decoration: none;
}
.main-nav a.active {
  border-bottom: 2px solid rgba(255,255,255,.5);
}


/* ---- Hamburger toggle ---- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer; padding: 6px;
  z-index: 100;
}
.nav-toggle span {
  display: block; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO — "Fasaden"
   Hela hero-sektionen täcks av fasadfotot med ett mörkt
   blått övertäckningsskikt för textläsbarhet.
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--primary-deep);
  background-image: url('../images/hero-start.png');
  background-size: cover;
  background-position: center 40%;
}

/* Mörkt blå-gradient overlay — täcker hela hero-ytan */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  /* Tätare på vänster (text) → luftigare höger (foto syns) */
  background: linear-gradient(
    100deg,
    rgba(0, 30, 60, .82) 0%,
    rgba(0, 63, 107, .65) 55%,
    rgba(0, 90, 148, .40) 100%
  );
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 340px;
  min-height: 520px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 48px 72px 0;
}

/* "Sedan 1973" badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 20px;
}
.hero-badge::before {
  content: '';
  display: block;
  width: 24px; height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.hero h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 900;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 22px;
  letter-spacing: -.01em;
}
/* The "Pigment Huset" in italic — matches old logo's italic sub-name */
.hero h1 em {
  font-style: italic;
  font-weight: 700;
  color: rgba(255,255,255,.8);
  font-size: .85em;
  display: block;
  letter-spacing: .02em;
}

.hero-lead {
  font-size: 1rem;
  color: rgba(255,255,255,.72);
  max-width: 460px;
  margin-bottom: 36px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---- Höger hero-panel — glasaktig avdelare ---- */
.hero-panel {
  position: relative;
  overflow: hidden;
  border-left: 1px solid rgba(255,255,255,.12);
  background: rgba(0, 63, 107, .25);
}

/* Subtilt rutnät */
.hero-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 32px 32px;
  z-index: 0;
}

.hero-panel-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px 32px;
}
.hero-panel-tag {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 8px;
}
.hero-panel-name {
  font-size: 1.4rem;
  font-weight: 900;
  color: rgba(255,255,255,.85);
  line-height: 1.15;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 11px 24px;
  font-family: var(--font);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
  line-height: 1;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: #0085d9;
  border-color: #0085d9;
  color: #fff;
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: rgba(255,255,255,.85);
  border-color: rgba(255,255,255,.35);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.65);
  color: #fff;
  text-decoration: none;
}
.btn-sm {
  padding: 7px 16px;
  font-size: .75rem;
}
.btn-danger {
  background: var(--danger); color: #fff; border-color: var(--danger);
}
.btn-danger:hover {
  background: #b91c1c; border-color: #b91c1c; color: #fff; text-decoration: none;
}
.btn-ghost {
  background: transparent; color: var(--primary); border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--light-bg); border-color: var(--primary); text-decoration: none;
}

/* ============================================================
   SECTION LAYOUT
   ============================================================ */
.section { padding: 80px 0; }
.section-alt   { background: var(--light-bg); }
.section-blue  { background: var(--primary-deep); color: #fff; }

.section-header { margin-bottom: 48px; }

.section-label {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}
.section-blue .section-label { color: rgba(255,255,255,.45); }

.section-header h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}
.section-blue .section-header h2 { color: #fff; }

.section-header p {
  margin-top: 14px;
  font-size: 1rem;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.7;
}
.section-blue .section-header p { color: rgba(255,255,255,.65); }

/* ============================================================
   AFFÄRSIDÉ / NYANSERING — two-column content block
   ============================================================ */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.content-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
}
.content-card-accent {
  display: block;
  width: 28px; height: 3px;
  background: var(--primary);
  border-radius: 2px;
  margin-bottom: 18px;
}
.content-card-label {
  display: block;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}
.content-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.25;
}
.content-card p {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.75;
}
/* Tagline — from original site's memorable lines */
.content-card-tagline {
  margin-top: 14px !important;
  font-size: .875rem !important;
  color: var(--primary) !important;
  font-weight: 700 !important;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-block h3 {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 14px;
}
.contact-block p,
.contact-block address {
  font-size: .975rem;
  color: rgba(255,255,255,.82);
  line-height: 1.85;
}
.contact-block a { color: rgba(255,255,255,.9); }
.contact-block a:hover { color: #fff; text-decoration: none; }

.hours-table { border-collapse: collapse; width: 100%; }
.hours-table td {
  padding: 4px 0;
  font-size: .95rem;
  color: rgba(255,255,255,.8);
}
.hours-table td:first-child {
  padding-right: 24px;
  color: rgba(255,255,255,.5);
  font-size: .85rem;
  letter-spacing: .03em;
  white-space: nowrap;
}

.cta-box {
  background: var(--light-bg); 
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.cta-box h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}
.cta-box p {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: .95rem;
  line-height: 1.7;
}

.cta-box .btn-primary:hover {
  background: #0085d9;
  border-color: #0085d9;
  color: #fff;
  text-decoration: none;
}
.cta-box .btn-outline {
  color: var(--primary);
  border-color: var(--primary);
}

/* ============================================================
   PAGE HERO (produktsida)
   ============================================================ */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 52px;
  background-color: var(--primary-deep);
  background-image: url('../images/hero-produkter.png');
  background-size: cover;
  background-position: center center;
}
/* Mörkt overlay för textläsbarhet */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 25, 55, .72);
  z-index: 0;
}
/* Subtilt rutnät */
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
}
.page-hero-inner {
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -.01em;
}
.page-hero p {
  font-size: 1rem;
  color: rgba(255,255,255,.6);
  max-width: 480px;
}
.page-hero .section-label {
  color: rgba(255,255,255,.4);
  margin-bottom: 12px;
}

/* ============================================================
   PRODUCT GRID & CARDS
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: border-color .2s, box-shadow .2s, transform .18s;
}
.product-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(0,114,188,.12);
  transform: translateY(-2px);
}

.product-card-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--light-bg);
  border-bottom: 1px solid var(--border);
}
.product-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.product-card:hover .product-card-image img { transform: scale(1.04); }

/* Placeholder when no image */
.product-card-image.no-image {
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card-image.no-image svg {
  width: 52px; height: 52px;
  color: #c5d5e2;
}

.product-card-body {
  padding: 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 7px;
  line-height: 1.3;
}
.product-card-price {
  font-size: .875rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.product-card-price strong {
  color: var(--primary);
  font-size: .95rem;
  font-weight: 700;
}
.product-card-footer { margin-top: auto; }
.product-card-footer .btn { width: 100%; text-align: center; }

.no-products {
  grid-column: 1/-1;
  text-align: center;
  padding: 72px 0;
  color: var(--muted);
}

/* Döljer produktkort utanför aktuell "sida" eller sökträff */
.is-hidden { display: none !important; }

/* Sökfält ovanför produktgridden */
.product-toolbar {
  margin-bottom: 32px;
}
.product-search {
  display: block;
  width: 100%;
  max-width: 420px;
  padding: 12px 16px;
  font-family: var(--font);
  font-size: .95rem;
  color: var(--text);
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
}
.product-search:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,114,188,.1);
}

/* "Ladda fler"-knapp under gridden */
.load-more-wrap {
  text-align: center;
  margin-top: 40px;
}

/* ============================================================
   MODAL / POPUP
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(10, 22, 40, .65);
  backdrop-filter: blur(3px);
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--background);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modal-in .18s ease-out;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: sticky;
  top: 0;
  float: right;
  margin: 12px 12px -40px auto;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--muted);
  z-index: 10;
  transition: background .15s, color .15s;
}
.modal-close:hover { background: var(--text); color: #fff; border-color: var(--text); }

.modal-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--light-bg);
}
.modal-image-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border-bottom: 1px solid var(--border);
}
.modal-image-placeholder svg { width: 72px; height: 72px; color: #c5d5e2; }

.modal-body { padding: 28px 32px 32px; }
.modal-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.2;
}
.modal-price {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 20px;
}
.modal-desc {
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.8;
  white-space: pre-line;
}
.modal-contact {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: .875rem;
  color: var(--muted);
}
.modal-contact a { font-weight: 700; color: var(--primary); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--primary-deep);
  padding: 56px 0 0;
}
.footer-brand {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 16px;
}
.footer-logo-img {
  display: block;
  height: 64px;
  width: auto;
  background: #fff;
  border-radius: 5px;
  padding: 4px 8px;
  object-fit: contain;
}
.footer-brand-sub {
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
}

.footer-cols {
  display: flex;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  justify-content: space-evenly; 
}
.footer-col h3 {
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}
.footer-col address,
.footer-col p { font-size: .9rem; color: #fff; line-height: 1.85; }
.footer-col a { color: #fff; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-col ul li { margin-bottom: 6px; }
.footer-col .hours-table td { color: #fff; }
.footer-col .hours-table td:first-child { color: #fff; }

.footer-bottom {
  padding: 20px 0;
  font-size: .78rem;
  color: rgba(255,255,255,.28);
}

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-body {
  background: #f1f5f9;
  min-height: 100vh;
}
.admin-header {
  background: var(--primary-deep);
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-header .logo-main { color: #fff; font-size: 1.05rem; }
.admin-header .logo-sub  { color: rgba(255,255,255,.45); font-size: .65rem; }
.admin-header-actions { display: flex; gap: 8px; align-items: center; }
.admin-header-actions a {
  font-size: .78rem;
  color: rgba(255,255,255,.6);
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  transition: color .15s, border-color .15s;
}
.admin-header-actions a:hover { color: #fff; border-color: rgba(255,255,255,.45); text-decoration: none; }

.admin-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
}
.admin-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  margin-bottom: 24px;
}
.admin-card h1 { font-size: 1.4rem; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.admin-card h2 { font-size: 1.15rem; font-weight: 800; color: var(--text); margin-bottom: 20px; }
.admin-card p  { color: var(--muted); font-size: .95rem; margin-bottom: 6px; }

/* Login */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-deep);
  padding: 24px;
}
.login-box {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  width: 100%;
  max-width: 400px;
}
.login-logo { text-align: center; margin-bottom: 36px; }
.login-box h2 {
  font-size: 1.05rem; font-weight: 800; margin-bottom: 24px;
  color: var(--text); text-align: center;
}

/* Form */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.form-control {
  display: block;
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font);
  font-size: .95rem;
  color: var(--text);
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,114,188,.1);
}
textarea.form-control { resize: vertical; min-height: 120px; }

.form-check { display: flex; align-items: center; gap: 10px; }
.form-check input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}
.form-check label {
  font-size: .9rem; font-weight: 400;
  text-transform: none; letter-spacing: 0;
  color: var(--text); cursor: pointer; margin-bottom: 0;
}

/* Alerts */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: .88rem;
  margin-bottom: 20px;
  border: 1px solid transparent;
}
.alert-error   { background: #fef2f2; color: #991b1b; border-color: #fca5a5; }
.alert-success { background: #f0fdf4; color: #166534; border-color: #86efac; }

/* Admin table */
.data-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.data-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid var(--border);
  background: var(--light-bg);
}
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--light-bg); }

.table-thumb {
  width: 56px; height: 42px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--light-bg);
}
.table-thumb-empty {
  width: 56px; height: 42px;
  background: var(--light-bg);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}

.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.badge-visible { background: #dcfce7; color: #166534; }
.badge-hidden  { background: #f1f5f9; color: var(--muted); }

.table-actions { display: flex; gap: 6px; align-items: center; }

/* Image preview */
.img-preview-wrap { margin-top: 10px; }
.img-preview-wrap img {
  max-width: 200px; max-height: 140px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  object-fit: cover;
}
.form-hint { font-size: .78rem; color: var(--muted); margin-top: 4px; }

/* Admin page head */
.admin-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.admin-page-head h1 { font-size: 1.4rem; font-weight: 800; color: var(--text); }

/* Dashboard quick links */
.dash-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.dash-link {
  display: block;
  padding: 24px;
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: .9rem;
  transition: border-color .15s;
}
.dash-link:hover { border-color: var(--primary); text-decoration: none; }
.dash-link-icon {
  font-size: 1.4rem;
  margin-bottom: 10px;
  display: block;
  color: var(--primary);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet ≤900px */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-content { padding: 56px 0 48px; }
  .hero-panel   { height: 180px; }

  .content-grid  { grid-template-columns: 1fr; gap: 20px; }
  .contact-grid  { grid-template-columns: 1fr; gap: 32px; }
  .product-grid  { grid-template-columns: repeat(2, 1fr); }
  
}



/* Mobile ≤600px */
@media (max-width: 600px) {
  .footer-cols   { flex-direction: column; }
  .nav-toggle { display: flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary-deep);
    border-top: 2px solid var(--primary);
    padding: var(--header-h) 16px 16px;
    z-index: 99;
    min-height: 100vh;
    max-width: 50vw;
    min-width: 250px;
  }
  .main-nav.open  { display: block; }
  .main-nav ul    { flex-direction: column; gap: 4px; }
  .main-nav a     { padding: 10px 14px; }
  .nav-email      { margin-left: 0 !important; }

  .hero-content { padding: 44px 0 40px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }

  .section { padding: 56px 0; }

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

  .modal-body { padding: 20px 20px 24px; }

  .admin-card { padding: 20px; }
  .login-box  { padding: 32px 24px; }

  /* Dölj preis-kolumnen på mobil i admintabellen */
  .data-table th:nth-child(3),
  .data-table td:nth-child(3) { display: none; }
}

/* ============================================================
   TEL-POPUP (desktop)
   ============================================================ */
.tel-popup {
  position: absolute;
  z-index: 200;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
  white-space: nowrap;
  animation: modal-in .15s ease-out;
}
.tel-popup-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.tel-popup-number {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: .02em;
}
.tel-popup-number:hover { text-decoration: underline; }
.tel-popup-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  padding: 2px 4px;
  border-radius: var(--radius);
  transition: color .15s;
}
.tel-popup-close:hover { color: var(--text); }
