:root {
  --color-primary: #153e2e;
  --color-primary-light: #1f5640;
  --color-primary-dark: #0d281e;
  --color-accent: #d97706;
  --color-accent-hover: #b45309;
  --color-bg: #fbfbf9;
  --color-surface: #ffffff;
  --color-surface-soft: #f4f6f3;
  --color-border: #e2e8f0;
  --color-border-subtle: #edf2f7;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;
  --color-success: #15803d;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

/* TOP ANNOUNCEMENT STRIP */
.top-strip {
  background: var(--color-primary-dark);
  color: #e2e8f0;
  font-size: 0.85rem;
  padding: 0.45rem 1rem;
  width: 100%;
  box-sizing: border-box;
}
.top-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
  box-sizing: border-box;
}
.top-strip-left, .top-strip-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}
.top-strip a {
  color: #f8fafc;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.top-strip a:hover {
  color: var(--color-accent);
}
.badge-tag {
  background: rgba(217, 119, 6, 0.2);
  color: #fcd34d;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

/* HEADER & NAVIGATION */
.main-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
  width: 100%;
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  height: 48px;
  max-height: 48px;
  width: auto;
  object-fit: contain;
}
.btn-text-short {
  display: none;
}
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.25rem;
}
.nav-links a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.4rem 0.2rem;
  white-space: nowrap;
  position: relative;
  transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--color-primary);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all var(--transition);
  font-family: inherit;
}
.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
}
.btn-primary:hover {
  background: var(--color-primary-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-accent {
  background: var(--color-accent);
  color: #ffffff;
}
.btn-accent:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}
.btn-outline:hover {
  background: var(--color-surface-soft);
  border-color: var(--color-text-muted);
}
.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}
.btn-icon {
  padding: 0.55rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  position: relative;
}
.btn-icon:hover {
  background: var(--color-surface-soft);
}
.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--color-accent);
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* HERO SECTION */
.hero {
  position: relative;
  background: linear-gradient(135deg, rgba(21, 62, 46, 0.94) 0%, rgba(13, 40, 30, 0.96) 100%),
              url('../media/13271_Slide-banner-Homepage.webp') center/cover no-repeat;
  color: #ffffff;
  padding: 5rem 1.5rem 4.5rem;
  overflow: hidden;
}
.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}
.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.hero h1 span {
  color: #fcd34d;
}
.hero p {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #e2e8f0;
  margin-bottom: 2rem;
  max-width: 600px;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.hero-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.75rem;
}
.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
/* SVG ICONS (Clean Scandinavian Vector System with Strict Constraints) */
svg {
  flex-shrink: 0;
}
.svg-icon {
  width: 1.15rem;
  height: 1.15rem;
  display: inline-block;
  vertical-align: middle;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
}
.svg-icon-sm {
  width: 14px !important;
  height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
}
.svg-icon-md {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
}
.svg-icon-lg {
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
}
.svg-icon-xl {
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
}

.hero-badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #86efac;
  flex-shrink: 0;
}
.hero-badge-icon svg,
.hero-badge-icon .svg-icon {
  width: 18px !important;
  height: 18px !important;
  stroke-width: 2;
}
.hero-badge-text strong {
  display: block;
  font-size: 0.85rem;
  color: #ffffff;
}
.hero-badge-text span {
  font-size: 0.75rem;
  color: #cbd5e1;
}

/* HERO SIDE CARD */
.hero-quick-card {
  background: rgba(255, 255, 255, 0.98);
  color: var(--color-text);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-xl);
}
.hero-quick-card h3 {
  font-size: 1.35rem;
  color: var(--color-primary-dark);
  margin-bottom: 0.5rem;
}
.hero-quick-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}
.quick-calc-form .form-group {
  margin-bottom: 1rem;
}
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(21, 62, 46, 0.12);
}

/* SECTION CONTAINER */
.section {
  padding: 4.5rem 1.5rem;
}
.section-alt {
  background: var(--color-surface-soft);
}
.container {
  max-width: 1200px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}
.section-subtitle {
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  display: block;
}
.section-title {
  font-size: 2.15rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--color-text-muted);
}

/* CATALOG & FILTERS */
.catalog-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.pill-btn {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.pill-btn:hover {
  background: var(--color-surface-soft);
  border-color: var(--color-text-muted);
}
.pill-btn.active {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}
.search-wrapper {
  position: relative;
  min-width: 260px;
}
.search-input {
  width: 100%;
  padding: 0.55rem 1rem 0.55rem 2.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  background: var(--color-surface);
}
.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  font-size: 0.9rem;
  pointer-events: none;
}

/* PRODUCT GRID */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}
.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}
.product-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f1f5f9;
  overflow: hidden;
  cursor: pointer;
}
.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img {
  transform: scale(1.05);
}
.card-category-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(21, 62, 46, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  z-index: 2;
}
.card-bestseller-badge {
  position: absolute;
  bottom: 0.65rem;
  left: 0.65rem;
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  z-index: 2;
}
.card-sku-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 2;
}

/* HERO POPULAR STRIP */
.hero-popular-strip {
  margin-bottom: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.hero-popular-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fcd34d;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.hero-popular-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero-popular-chip {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.9rem 0.35rem 0.45rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #ffffff;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  transition: all var(--transition);
  backdrop-filter: blur(4px);
}
.hero-popular-chip:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #fcd34d;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.hero-popular-chip img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #ffffff;
}
.hero-popular-chip strong {
  color: #fcd34d;
  margin-left: 0.25rem;
}
.product-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  line-height: 1.35;
  margin-bottom: 0.5rem;
  cursor: pointer;
}
.product-title:hover {
  color: var(--color-accent);
}
.product-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border-subtle);
}
.product-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary);
}
.price-unit {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-muted);
}
.price-unit-block {
  display: block;
  margin-top: 0.2rem;
  line-height: 1.25;
}
.card-certified-badge {
  color: #15803d;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 0.5rem;
}
.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

/* CERTIFICATION & TESTING SECTION */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.cert-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.cert-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.cert-card-icon {
  width: 38px;
  height: 38px;
  background: rgba(21, 62, 46, 0.08);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cert-card-icon svg,
.cert-card-icon .svg-icon {
  width: 20px !important;
  height: 20px !important;
  stroke: var(--color-primary);
}
.cert-card h3 {
  font-size: 1.2rem;
  color: var(--color-primary-dark);
}
.cert-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}
.cert-download-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  background: var(--color-surface-soft);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  margin-top: 0.4rem;
  width: fit-content;
  max-width: 100%;
}
.cert-download-link:hover {
  background: #e2e8f0;
  color: var(--color-primary-dark);
}
.cert-download-link svg,
.cert-download-link .svg-icon {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  max-width: 14px !important;
  stroke: #153e2e;
  stroke-width: 2;
  flex-shrink: 0 !important;
}

/* ABOUT / VALUE PROPS */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}
.value-box {
  background: var(--color-surface);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  text-align: left;
  transition: transform var(--transition), box-shadow var(--transition);
}
.value-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.value-icon-wrap {
  width: auto;
  height: auto;
  background: transparent !important;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 0.75rem;
}
.value-box:hover .value-icon-wrap {
  background: transparent !important;
  color: var(--color-primary);
}
.value-icon-wrap svg,
.value-icon-wrap .svg-icon {
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  stroke: var(--color-primary);
  stroke-width: 1.6;
}
.value-box h4 {
  font-size: 1.15rem;
  color: var(--color-primary-dark);
  margin-bottom: 0.5rem;
}
.value-box p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ABOUT SECTION */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.about-image-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  width: 100%;
}
.about-img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* CONTACT & LOCATION */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-icon {
  width: 24px;
  height: 24px;
  background: transparent !important;
  border-radius: 0 !important;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-icon svg,
.contact-icon .svg-icon {
  width: 20px !important;
  height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  stroke: var(--color-primary);
  stroke-width: 1.75;
}
.contact-details strong {
  display: block;
  font-size: 0.95rem;
  color: var(--color-primary-dark);
  margin-bottom: 0.2rem;
}
.contact-details span, .contact-details a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
}
.contact-details a:hover {
  color: var(--color-accent);
}

/* NATIVE DIALOG (MODAL) STYLING - Strictly following modern-web-guidance */
dialog {
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  max-width: 760px;
  width: 90vw;
  box-shadow: var(--shadow-xl);
  margin: auto;
  background: var(--color-surface);
  color: var(--color-text);
  overflow-x: hidden;
  box-sizing: border-box;
}
dialog:modal {
  overscroll-behavior: contain;
  overflow-x: hidden;
}
dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--color-border);
  gap: 0.75rem;
  box-sizing: border-box;
}
.modal-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  word-break: break-word;
}
.btn-close-modal {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  flex-shrink: 0;
}
.btn-close-modal:hover {
  color: var(--color-text);
}
.modal-content {
  padding: 1.75rem;
  max-height: 75vh;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  box-sizing: border-box;
}
.modal-product-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.75rem;
}
.modal-img-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid var(--color-border);
}
.modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.85rem;
  word-break: break-word;
}
.modal-specs-table th, .modal-specs-table td {
  padding: 0.5rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  word-break: break-word;
}
.modal-specs-table th {
  color: var(--color-text-muted);
  font-weight: 600;
  width: 38%;
  vertical-align: top;
}

/* PRODUCT MODAL LISTS & FORMATTING */
.product-modal-desc p {
  margin-bottom: 0.75rem;
}
.product-modal-desc ul {
  list-style: none;
  padding-left: 0;
  margin: 0.75rem 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.product-modal-desc li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #334155;
}
.product-modal-desc li::before {
  content: "•";
  position: absolute;
  left: 0.25rem;
  top: -0.1rem;
  color: #153e2e;
  font-size: 1.25rem;
  font-weight: bold;
}

/* PRODUCT SHEET CALLOUT BOX */
.product-sheet-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 0.85rem 1.15rem;
  margin: 1.15rem 0;
  transition: all 0.2s ease;
}
.product-sheet-box:hover {
  background: #dcfce7;
  border-color: #86efac;
}
.product-sheet-content {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.product-sheet-icon {
  font-size: 1.5rem;
  line-height: 1;
}
.product-sheet-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #15803d;
  font-weight: 700;
}
.product-sheet-title {
  display: block;
  font-size: 0.92rem;
  color: #153e2e;
  font-weight: 700;
}
.product-sheet-btn {
  background: #153e2e !important;
  color: #ffffff !important;
  border-color: #153e2e !important;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem !important;
  font-size: 0.82rem !important;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 600;
}
.product-sheet-btn:hover {
  background: #0d271c !important;
  color: #ffffff !important;
}

/* CHECKOUT FORM LAYOUT & PAYMENT OPTIONS */
.form-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-row-grid.form-row-grid-address {
  grid-template-columns: 2fr 1fr;
}
.checkout-payment-options {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.checkout-payment-radio {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
}
.checkout-payment-radio:has(input:checked) {
  border-color: var(--color-primary);
  background: rgba(21, 62, 46, 0.04);
  box-shadow: 0 0 0 1px var(--color-primary);
}
.checkout-payment-radio input {
  margin-top: 0.25rem;
}
.checkout-payment-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex-grow: 1;
  min-width: 0;
}
.checkout-payment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  width: 100%;
}
.pay-logo-group {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.pay-subtext {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.35;
}
.pay-logo-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
}

/* DIRECT BANK PAYMENT ENHANCEMENTS */
.direct-pay-bullets {
  list-style: none;
  padding: 0;
  margin: 0.35rem 0 0.45rem 0;
  font-size: 0.78rem;
  color: #475569;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.direct-pay-bullets li {
  position: relative;
  padding-left: 1.15rem;
  line-height: 1.35;
}
.direct-pay-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #16a34a;
  font-weight: 700;
  font-size: 0.8rem;
}

.bank-logos-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  margin: 0.35rem 0 0.45rem 0;
}
.bank-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
  user-select: none;
  letter-spacing: -0.01em;
}
.bank-swedbank {
  background: #fff7ed;
  color: #c2410c;
  border-color: #ffedd5;
}
.bank-nordea {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #dbeafe;
}
.bank-handelsbanken {
  background: #f0f9ff;
  color: #0369a1;
  border-color: #bae6fd;
}
.bank-seb {
  background: #f0fdf4;
  color: #15803d;
  border-color: #bbf7d0;
}
.bank-danske {
  background: #0f2b20;
  color: #ffffff;
  border-color: #0f2b20;
}
.bank-lf {
  background: #f8fafc;
  color: #0284c7;
  border-color: #e2e8f0;
}
.bank-ica {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
}
.bank-more {
  background: #f1f5f9;
  color: #64748b;
  border-color: #cbd5e1;
  font-weight: 600;
}

/* INTERACTIVE COPY BUTTONS */
.btn-copy-code {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-copy-code:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}
.btn-copy-code.copied {
  background: #dcfce7 !important;
  border-color: #86efac !important;
  color: #166534 !important;
  font-weight: 700;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* CART SHIPPING BOX */
.cart-shipping-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.cart-shipping-box.shipping-attention {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
  animation: shippingShake 0.4s ease-in-out;
}
@keyframes shippingShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}
.cart-shipping-alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.65rem;
  line-height: 1.35;
}
.cart-shipping-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 0.65rem;
}
.shipping-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.shipping-radio-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.45rem 0.65rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.shipping-radio-label:hover {
  background: var(--color-surface-soft);
}
.shipping-radio-label.active-method {
  background: #f0fdf4;
  border-color: #86efac;
}
.shipping-radio-label input {
  margin-top: 0.2rem;
  accent-color: #15803d;
}
.shipping-calc-input-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.form-control-sm {
  padding: 0.4rem 0.65rem;
  font-size: 0.85rem;
}
.cart-shipping-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.45rem;
  line-height: 1.4;
}

/* QUOTE / CART DRAWER */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 200;
  display: none;
}
.drawer-backdrop.open {
  display: block;
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  max-width: 90vw;
  height: 100vh;
  background: var(--color-surface);
  box-shadow: var(--shadow-xl);
  z-index: 210;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.cart-drawer.open {
  right: 0;
}
.drawer-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.drawer-header h3 {
  font-size: 1.2rem;
  color: var(--color-primary-dark);
}
.drawer-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex-grow: 1;
}
.drawer-item {
  display: flex;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--color-border-subtle);
  align-items: center;
}
.drawer-item-img {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #f1f5f9;
}
.drawer-item-info {
  flex-grow: 1;
}
.drawer-item-title {
  font-size: 0.9rem;
  font-weight: 600;
}
.drawer-item-price {
  font-size: 0.85rem;
  color: var(--color-primary);
  font-weight: 700;
}
.drawer-item-qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
}
.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}
.drawer-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface-soft);
}
.drawer-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}
.drawer-summary-total {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin: 0.75rem 0 1.25rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--color-border);
}

/* TOAST NOTIFICATION */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.toast {
  background: var(--color-primary-dark);
  color: #ffffff;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideInToast 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideInToast {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* FOOTER */
.site-footer {
  background: var(--color-primary-dark);
  color: #94a3b8;
  padding: 4rem 1.5rem 2rem;
  margin-top: auto;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-col h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer-col a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-col a:hover {
  color: #ffffff;
}
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1080px) {
  .nav-links {
    gap: 0.85rem;
  }
  .nav-links a {
    font-size: 0.88rem;
    padding: 0.35rem 0.15rem;
  }
}

@media (max-width: 900px) {
  /* MOBILE SHOP-FIRST HERO LAYOUT */
  .hero {
    padding: 2.25rem 1rem 2rem;
  }
  .hero-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .hero-content {
    display: contents;
  }
  .hero-tagline {
    order: 1;
    align-self: flex-start;
    margin-bottom: 0.15rem;
  }
  .hero h1 {
    order: 2;
    font-size: 1.85rem;
    line-height: 1.22;
    margin-bottom: 0.25rem;
  }
  .hero p,
  .hero-lead {
    order: 3;
    display: none; /* Skalas bort på mobil för direkt fokus på produkten */
  }
  .hero-viewbox-card {
    order: 4;
    width: 100%;
    margin: 0;
  }
  .hero-ctas {
    order: 5;
    display: none; /* Döljs på mobil så att sortimentet kommer direkt under viewboxen */
  }
  .hero-popular-strip {
    order: 6;
    display: none; /* Döljs på mobil */
  }
  .hero-badges {
    order: 7;
    display: none; /* Döljs på mobil */
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .modal-product-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .top-strip {
    padding: 0.4rem 0.75rem;
  }
  .top-strip-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 0.35rem;
  }
  .top-strip-left, .top-strip-right {
    justify-content: center;
    gap: 0.35rem 0.75rem;
    font-size: 0.78rem;
  }
  .header-container {
    padding: 0.6rem 0.85rem;
    gap: 0.5rem;
  }
  .logo-img {
    height: 36px;
    max-height: 36px;
    max-width: 145px;
  }
  .header-actions {
    gap: 0.4rem;
  }
  .header-actions .btn-sm {
    padding: 0.4rem 0.65rem;
    font-size: 0.82rem;
  }
  .hero h1 {
    font-size: 1.75rem;
    line-height: 1.2;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .guide-page-hero {
    padding: 2.25rem 1rem 2.5rem;
  }
  .guide-page-title {
    font-size: 1.7rem;
    line-height: 1.25;
  }
  .guide-page-subtitle {
    font-size: 1rem;
    margin-bottom: 1.25rem;
  }
  .guide-article-body {
    padding: 2rem 1rem 3.5rem;
  }
  .guide-content-section {
    margin-bottom: 2rem;
  }
  .guide-content-section h2 {
    font-size: 1.3rem;
  }
  .guide-products-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .guide-highlights-grid {
    grid-template-columns: 1fr;
  }
  .depth-calc-card {
    padding: 1rem;
  }
  .guide-buy-section {
    padding: 1.25rem 1rem;
    border-radius: var(--radius-md);
  }
}

@media (max-width: 640px) {
  dialog, dialog:modal {
    width: 95vw;
    max-width: 95vw;
    border-radius: var(--radius-md);
  }
  .modal-header {
    padding: 0.9rem 1rem;
  }
  .modal-title {
    font-size: 1.15rem;
    line-height: 1.3;
  }
  .modal-content {
    padding: 1.15rem 1rem;
    max-height: 80vh;
  }
  .modal-tab-bar {
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.3rem;
    margin-bottom: 1.25rem;
  }
  .modal-tab-btn {
    padding: 0.65rem 0.85rem;
    font-size: 0.88rem;
    justify-content: flex-start;
    width: 100%;
  }
  .btn-text-full {
    display: none;
  }
  .btn-text-short {
    display: inline;
  }
  .form-row-grid,
  .form-row-grid.form-row-grid-address {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .product-sheet-box {
    padding: 0.85rem 1rem;
    flex-wrap: wrap;
  }
  .product-sheet-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .logo-img {
    height: 32px;
    max-height: 32px;
    max-width: 125px;
  }
  .header-actions .btn-sm {
    padding: 0.35rem 0.5rem;
    font-size: 0.78rem;
  }
  .guide-hero-badge {
    font-size: 0.78rem;
    padding: 0.35rem 0.65rem;
  }
}

@media (max-width: 380px) {
  .header-call-btn .btn-text {
    display: none;
  }
  .header-call-btn {
    padding: 0.35rem 0.55rem;
  }
}

/* ==========================================================================
   MODAL TABS & IN-DEPTH PRODUCT GUIDES (HYBRID ARCHITECTURE)
   ========================================================================== */
.modal-tab-bar {
  display: flex;
  gap: 0.5rem;
  background: var(--color-surface-soft);
  padding: 0.35rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  border: 1px solid var(--color-border);
}
.modal-tab-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}
.modal-tab-btn:hover {
  color: var(--color-primary-dark);
}
.modal-tab-btn.active {
  background: #ffffff;
  color: var(--color-primary-dark);
  box-shadow: var(--shadow-sm);
}
.modal-tab-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  background: rgba(21, 62, 46, 0.1);
  color: var(--color-primary);
  letter-spacing: 0.02em;
}

/* Callout on Tab 1 so nobody misses the guide */
.modal-guide-callout {
  margin: 1.25rem 0;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: all var(--transition);
}
.modal-guide-callout:hover {
  background: #dcfce7;
  border-color: #86efac;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.callout-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}
.callout-body {
  flex: 1;
}
.callout-body strong {
  display: block;
  font-size: 0.95rem;
  color: #14532d;
  margin-bottom: 0.2rem;
}
.callout-body p {
  margin: 0;
  font-size: 0.82rem;
  color: #166534;
  line-height: 1.4;
}
.callout-arrow {
  font-size: 0.85rem;
  font-weight: 700;
  color: #15803d;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* Tab 2 Guide Content inside Modal */
.modal-guide-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.modal-guide-header {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}
.modal-guide-header h3 {
  font-size: 1.35rem;
  color: var(--color-primary-dark);
  margin-bottom: 0.35rem;
}
.modal-guide-header p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0;
}
.guide-video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 0.75rem 0 1.25rem;
  background: #000;
  box-shadow: var(--shadow-sm);
}
.guide-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   RESPONSIVE TABLE WRAPPER (Follows modern-web-guidance)
   ========================================================================== */
.table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  margin: 1rem 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.table-responsive table {
  width: 100%;
  min-width: 480px;
  margin: 0;
  border-collapse: collapse;
}

.guide-depth-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 0.88rem;
}
.guide-depth-table th {
  background: var(--color-surface-soft);
  color: var(--color-primary-dark);
  padding: 0.75rem 0.9rem;
  text-align: left;
  border-bottom: 2px solid var(--color-border);
  font-weight: 600;
  white-space: nowrap;
}
.guide-depth-table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--color-border);
}
.guide-depth-table tr:hover td {
  background: rgba(21, 62, 46, 0.02);
}

/* ==========================================================================
   GUIDE SUBPAGE STANDALONE & REUSABLE CLASSES
   ========================================================================== */
.guide-page-hero {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: #ffffff;
  padding: 3.5rem 1.5rem 4rem;
  box-sizing: border-box;
}
.guide-page-container {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}
.guide-breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  word-break: break-word;
}
.guide-breadcrumb a {
  color: #86efac;
  text-decoration: none;
}
.guide-page-title {
  font-size: 2.2rem;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  color: #ffffff;
  word-break: break-word;
}
.guide-page-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  margin-bottom: 1.75rem;
  word-break: break-word;
}
.guide-hero-badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.guide-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #86efac;
  max-width: 100%;
  box-sizing: border-box;
}
.guide-article-body {
  padding: 3rem 1.5rem 5rem;
  background: #ffffff;
  box-sizing: border-box;
}
.guide-content-section {
  margin-bottom: 3rem;
  box-sizing: border-box;
  max-width: 100%;
}
.guide-content-section h2 {
  font-size: 1.5rem;
  color: var(--color-primary-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
  word-break: break-word;
}
.guide-content-section p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 1.25rem;
}
.depth-calc-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid #86efac;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 1.75rem 0;
  box-sizing: border-box;
}
.guide-buy-section {
  background: var(--color-surface-soft);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-sizing: border-box;
}
.guide-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.guide-product-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.guide-product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.guide-product-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.guide-product-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.guide-product-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin: 0.5rem 0 1rem;
}

.guide-highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}
.guide-highlight-card {
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
}
.guide-highlight-card strong {
  display: block;
  font-size: 0.88rem;
  color: var(--color-primary-dark);
  margin-bottom: 0.2rem;
}
.guide-highlight-card p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.35;
}

.guide-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}

/* Home Section #guider */
.guides-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.guide-summary-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: inherit;
}
.guide-summary-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-light);
}
.guide-summary-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
  background: rgba(21, 62, 46, 0.08);
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  width: fit-content;
  margin-bottom: 0.75rem;
}
.guide-summary-card h3 {
  font-size: 1.2rem;
  color: var(--color-primary-dark);
  margin-bottom: 0.5rem;
}
.guide-summary-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}
.guide-summary-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}


/* ==========================================================
   SWISH QUICK PAY & MODAL STYLES
   ========================================================== */
.swish-footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
  color: #ffffff !important;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-top: 0.5rem;
  max-width: 100%;
  cursor: pointer;
  box-sizing: border-box;
}

.swish-footer-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.swish-footer-logo-wrap {
  background: #ffffff;
  border-radius: 4px;
  padding: 2px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.swish-footer-logo {
  height: 22px;
  width: auto;
  display: block;
}

.swish-footer-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.swish-footer-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
}

.swish-footer-sub {
  font-size: 0.78rem;
  color: #cbd5e1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.swish-footer-arrow {
  color: #a7f3d0;
  font-weight: bold;
  font-size: 1.1rem;
  margin-left: 0.25rem;
  transition: transform 0.2s ease;
}

.swish-footer-btn:hover .swish-footer-arrow {
  transform: translateX(3px);
}

/* Swish in Checkout */
.swish-checkout-badge {
  background: #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.swish-checkout-extra {
  margin-top: 10px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

/* Swish Modal */
#swish-modal {
  max-width: 440px;
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  border: none;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

#swish-modal .modal-header {
  background: #153e2e;
  color: #ffffff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#swish-modal .modal-content {
  padding: 20px 20px;
  text-align: center;
}


/* COMPACT STORE HERO (Shop-First Concept) */
.store-hero {
  position: relative;
  background: linear-gradient(135deg, rgba(21, 62, 46, 0.96) 0%, rgba(13, 40, 30, 0.98) 100%),
              url('../media/13271_Slide-banner-Homepage.webp') center/cover no-repeat;
  color: #ffffff;
  padding: 2.25rem 1.5rem 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.store-hero-inner {
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
}
.store-hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: #86efac;
}
.store-hero-title {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: #ffffff;
}
.store-hero-desc {
  font-size: 1.05rem;
  line-height: 1.5;
  color: #e2e8f0;
  margin: 0 auto 1.25rem;
  max-width: 760px;
}
.store-hero-trustbar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.store-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: #f1f5f9;
}
.store-trust-item svg {
  color: #86efac;
}

/* COMPACT CATALOG MAIN */
.catalog-section-compact {
  padding: 1.75rem 1.5rem 4rem;
}

/* FOLKSVAL FEATURE & FAST QUOTE SECTION (BELOW CATALOG) */
.folksval-feature-section {
  padding: 4.5rem 1.5rem;
  border-top: 1px solid var(--color-border);
}
.folksval-feature-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: start;
}
.hero-badges-revamped {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.feature-badge-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  box-shadow: var(--shadow-sm);
}
.feature-badge-card .hero-badge-icon {
  background: rgba(21, 62, 46, 0.1);
  color: #15803d;
}
.feature-badge-text strong {
  display: block;
  font-size: 0.9rem;
  color: var(--color-primary-dark);
  margin-bottom: 0.2rem;
}
.feature-badge-text span {
  display: block;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .folksval-feature-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-badges-revamped {
    grid-template-columns: 1fr;
  }
  .store-hero-title {
    font-size: 1.6rem;
  }
  .store-hero-trustbar {
    gap: 0.75rem 1.25rem;
  }
}


/* HERO PRODUCT VIEWBOX */
.hero-viewbox-card {
  background: #ffffff;
  color: var(--color-text);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.35rem 1.15rem;
  box-shadow: 0 20px 45px -12px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 420px;
  margin: 0 auto;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hero-viewbox-card:hover {
  box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.55);
}
.hero-viewbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #e2e8f0;
}
.hero-viewbox-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-viewbox-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
  display: inline-block;
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.8; }
}
.hero-viewbox-title strong {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary-dark);
}
.hero-viewbox-counter {
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
}
.hero-viewbox-nav {
  display: flex;
  gap: 0.35rem;
}
.viewbox-arrow-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}
.viewbox-arrow-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
}
.hero-viewbox-stage {
  display: grid;
  grid-template-areas: "viewbox-stack";
  background: #f8fafc;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 14px -3px rgba(0, 0, 0, 0.08);
}

.viewbox-slide {
  grid-area: viewbox-stack;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(0.985);
  will-change: opacity, transform;
  z-index: 1;
}

.viewbox-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  z-index: 2;
}

.viewbox-slide .product-image-wrap {
  width: 100%;
  height: 290px;
  position: relative;
  overflow: hidden;
  background: #f1f5f9;
  cursor: pointer;
}

.viewbox-slide .product-image-wrap img.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.45s ease;
}

.viewbox-slide:hover .product-img {
  transform: scale(1.03);
}

.viewbox-product-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.viewbox-product-info:hover {
  background: #f8fafc;
}

.viewbox-product-info .product-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin: 0;
  line-height: 1.25;
  transition: color 0.2s ease;
}

.viewbox-product-info:hover .product-title {
  color: var(--color-primary);
}

.viewbox-info-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.viewbox-product-info:hover .viewbox-info-pill {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

@media (max-width: 480px) {
  .hero {
    padding: 1.75rem 0.85rem 1.75rem;
  }
  .hero h1 {
    font-size: 1.55rem;
    line-height: 1.2;
  }
  .hero-tagline {
    font-size: 0.78rem;
    padding: 0.3rem 0.75rem;
  }
  .hero-viewbox-card {
    padding: 1rem 0.85rem 0.95rem;
  }
  .viewbox-slide .product-image-wrap {
    height: 240px;
  }
  .viewbox-product-info .product-title {
    font-size: 1rem;
  }
}
.hero-viewbox-pills {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 0.85rem;
  padding-top: 0.65rem;
  border-top: 1px solid #f1f5f9;
}
.viewbox-pill {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.viewbox-pill:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.viewbox-pill.active {
  background: var(--color-primary-dark);
  color: #ffffff;
  border-color: var(--color-primary-dark);
  box-shadow: 0 2px 6px rgba(21, 62, 46, 0.25);
}
