/* 

========================================
   CSS Variables & Reset
   ======================================== */
   
   /* ===== FONTS - Self-hosted ===== */
   
/* Lato Regular (400) */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/lato-v25-latin-regular.woff2') format('woff2');
}

/* Lato Bold (700) */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/lato-v25-latin-700.woff2') format('woff2');
}

/* Lato Black (900) */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/lato-v25-latin-900.woff2') format('woff2');
}

/* Playfair Display Bold (700) */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/playfair-display-v40-latin-700.woff2') format('woff2');
}

/* Playfair Display Black (900) */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/playfair-display-v40-latin-900.woff2') format('woff2');
}

/* ===== ROOT VARIABLES ===== */

:root {
  /* Primärfärger */
  --color-primary: hsl(210, 65%, 77%);
  --color-primary-dark: hsl(208, 100%, 7%);
  --color-primary-medium: hsl(201, 88%, 25%);
  
  /* Bakgrunder */
  --color-bg-light: hsl(0, 0%, 100%);
  --color-bg-soft: hsl(240, 31%, 96%);
  
  /* Text */
  --color-text-dark: hsl(0, 0%, 0%);
  --color-text-muted: hsla(0, 0%, 0%, 0.54);
  
  /* Funktionella */
  --color-success: hsl(127, 46%, 46%);
  --color-error: hsl(4, 87%, 57%);
  --color-price: hsl(127, 46%, 46%);
  
  /* Typsnitt */
  --font-primary: 'Lato', sans-serif;
  --font-secondary: 'Playfair Display', serif;
  
  --font-size-base: 16px;
  --font-size-small: 14px;
  --font-size-h1: 56px;
  --font-size-h2: 40px;
  --font-size-h3: 28px;
  --font-size-h4: 22px;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: var(--font-size-base);
}

body {
  font-family: var(--font-primary);
  color: var(--color-text-dark);
  background-color: var(--color-bg-light);
  line-height: 1.6;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3 {
  font-family: var(--font-secondary);
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

h1 {
  font-size: clamp(2rem, 5vw, var(--font-size-h1));
  font-weight: 900;
}

h2 {
  font-size: clamp(1.75rem, 4vw, var(--font-size-h2));
  font-weight: 700;
}

h3 {
  font-size: clamp(1.25rem, 3vw, var(--font-size-h3));
  font-weight: 700;
}

p {
  margin-bottom: var(--spacing-sm);
}

/* ========================================
   Layout Utilities
   ======================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-md);
  color: var(--color-primary-medium);
}

/* ========================================
   Buttons
   ======================================== */

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: var(--font-size-base);
  font-weight: 700;
  text-align: center;
  border-radius: 4px;
  transition: all var(--transition-normal);
  min-height: 44px;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-primary-dark);
}

.btn-primary:hover {
  background-color: hsl(210, 65%, 70%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-outline {
  border: 2px solid var(--color-primary);
  color: var(--color-primary-medium);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-primary-dark);
}

/* ========================================
   Header
   ======================================== */

.header {
  background-color: var(--color-primary-dark);
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--transition-normal);    
    
 /* Safe area för iPhone/Android med notch */
  padding-top: env(safe-area-inset-top);
}

.header.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.10rem 0;
  gap: var(--spacing-sm);
}

.logo img {
    display: block;
    max-height: 100px;
    width: auto;
    height: auto;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        filter: drop-shadow(0 0 2px rgba(135, 183, 221, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(135, 183, 221, 0.6));
    }
}

.nav {
  display: flex;
  gap: var(--spacing-md);
}

.nav-link {
  color: white;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.icon-btn {
  color: white;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: opacity var(--transition-fast);
}

.icon-btn:hover {
  opacity: 0.7;
}

.cart-count {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--color-error);
  color: white;
  font-size: 12px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background-color: white;
  transition: all var(--transition-normal);
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary-medium) 100%);
  color: white;
  padding: var(--spacing-lg) var(--spacing-sm);
  text-align: center;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  max-width: 800px;
}

.hero-title {
  margin-bottom: var(--spacing-sm);
  color: white;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
  color: var(--color-primary);
}

/* ========================================
   Products Section
   ======================================== */

.products-section {
  padding: var(--spacing-lg) 0;
  background-color: var(--color-bg-soft);
}

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

.product-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.product-info {
  padding: var(--spacing-sm);
}

.product-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary-medium);
  margin-bottom: 0.25rem;
}

.product-variant {
  font-size: var(--font-size-small);
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.product-description {
  font-size: var(--font-size-small);
  margin-bottom: var(--spacing-sm);
  color: #333;
  }

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-sm);
}

.product-price {
  font-size: 1.0rem;
  font-weight: 500;
  color: var(--color-price);
}

.add-to-cart {
  flex: 1;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-primary);
  color: var(--color-primary-dark);
  font-weight: 700;
  border-radius: 4px;
  transition: all var(--transition-normal);
}

.add-to-cart:hover {
  background-color: hsl(210, 65%, 70%);
}

.add-to-cart:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========================================
   Video Section
   ======================================== */

.video-section {
  padding: var(--spacing-lg) 0;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.video-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-normal);
}

.video-card:hover {
  transform: scale(1.02);
}

.video-poster,
.video-inline {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
}

.video-card:hover .video-play-btn {
  background-color: white;
  transform: translate(-50%, -50%) scale(1.1);
}

.video-play-btn svg {
  width: 32px;
  height: 32px;
  fill: var(--color-primary-dark);
  margin-left: 4px;
}

.video-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--spacing-sm);
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: white;
  font-weight: 700;
}

/* ========================================
   Cart Panel
   ======================================== */

.cart-panel,
.login-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: white;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  z-index: 1100;
  transition: right var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.cart-panel.active,
.login-panel.active {
  right: 0;
}

.cart-header,
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-sm);
  border-bottom: 1px solid var(--color-bg-soft);
  background-color: var(--color-primary-dark);
  color: white;
}

.cart-header h3,
.panel-header h3 {
  margin: 0;
  font-size: 1.25rem;
}

.close-btn {
  font-size: 2rem;
  color: inherit;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition-fast);
}

.close-btn:hover {
  opacity: 0.7;
}

.cart-body,
.panel-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--spacing-sm);
}

.cart-empty {
  text-align: center;
  padding: var(--spacing-md);
  color: var(--color-text-muted);
}

.cart-item {
  display: flex;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm);
  border-bottom: 1px solid var(--color-bg-soft);
}

.cart-item-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.cart-item-variant {
  font-size: var(--font-size-small);
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.qty-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--color-bg-soft);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.qty-btn:hover {
  background-color: var(--color-bg-soft);
}

.qty-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.cart-item-qty {
  min-width: 30px;
  text-align: center;
  font-weight: 700;
}

.cart-item-price {
  font-weight: 700;
  color: var(--color-price);
  margin-left: auto;
}

.cart-footer {
  padding: var(--spacing-sm);
  border-top: 1px solid var(--color-bg-soft);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.cart-total span:last-child {
  color: var(--color-price);
}

/* ========================================
   Coming Soon
   ======================================== */

.coming-soon {
  text-align: center;
  padding: var(--spacing-md);
}

.coming-soon svg {
  margin: 0 auto var(--spacing-sm);
  color: var(--color-primary);
}

.coming-soon h4 {
  color: var(--color-primary-medium);
  margin-bottom: var(--spacing-sm);
}

.coming-soon p {
  color: var(--color-text-muted);
  margin: 0;
}

/* ========================================
   Video Lightbox
   ======================================== */

.video-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
}

.video-lightbox.active {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  color: white;
  z-index: 2001;
}

.video-container {
  width: 100%;
  max-width: 900px;
}

.video-container video {
  width: 100%;
  border-radius: 8px;
}

/* ========================================
   Overlay
   ======================================== */

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1050;
  display: none;
}

.overlay.active {
  display: block;
}

/* ========================================
   Loading
   ======================================== */

.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.9);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
}

.loading.active {
  display: flex;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--color-bg-soft);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ========================================
   Footer
   ======================================== */

.footer {
  background-color: var(--color-primary-dark);
  color: white;
  padding: var(--spacing-lg) 0 var(--spacing-sm);
    
 /* Safe area för iPhone/Android med notch */
  padding-bottom: calc(var(--spacing-sm) + env(safe-area-inset-bottom));
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.footer-col h3 {
  font-family: var(--font-primary);
  font-size: 1.125rem;
  margin-bottom: var(--spacing-sm);
  color: var(--color-primary);
}

.footer-tagline {
  font-size: var(--font-size-small);
  color: var(--color-primary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: white;
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

.footer-links a:hover {
  opacity: 1;
}

.footer-col p {
  margin-bottom: var(--spacing-sm);
}

.footer-col a {
  color: var(--color-primary);
  transition: opacity var(--transition-fast);
}

.footer-col a:hover {
  opacity: 0.8;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.footer-bottom p {
  margin: 0;
  font-size: var(--font-size-small);
  opacity: 0.7;
}

.payment-icons {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 73px;
    left: -100%;
    width: 250px;
    height: calc(100vh - 73px);
    background-color: var(--color-primary-dark);
    flex-direction: column;
    padding: var(--spacing-sm);
    gap: 0;
    transition: left var(--transition-normal);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
  }
  
  .nav.active {
    left: 0;
  }
  
  .nav-link {
    padding: var(--spacing-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .hamburger {
    display: flex;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--spacing-sm);
  }
  
  .cart-panel,
  .login-panel {
    max-width: 100%;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 576px) {
  :root {
    --spacing-lg: 3rem;
  }
  
  .hero {
    padding: var(--spacing-md) var(--spacing-sm);
    min-height: 300px;
  }
  
  .products-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .video-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Mobil: Förhindra auto-zoom på inputs
   ======================================== */

@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="password"],
  select,
  textarea {
    font-size: 16px !important;
  }
}
/* ========================================
   Product Card Enhancements
   ======================================== */

.product-card {
  display: flex;
  flex-direction: column;
}

.product-card-clickable {
  cursor: pointer;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.read-more-link {
  color: var(--color-primary-medium);
  font-weight: 600;
  font-size: 0.875rem;
  margin-top: auto;
  display: inline-block;
  transition: opacity var(--transition-fast);
}

.read-more-link:hover {
  opacity: 0.7;
}

.product-footer {
  padding: var(--spacing-sm);
  border-top: 1px solid var(--color-bg-soft);
}

/* ========================================
   Product Page Styles
   ======================================== */

.product-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.product-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary-medium);
  font-weight: 600;
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.back-btn:hover {
  opacity: 0.7;
}

.back-btn svg {
  width: 20px;
  height: 20px;
}

.close-btn-page {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-soft);
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.close-btn-page:hover {
  background: var(--color-primary);
  transform: scale(1.1);
}

.product-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

@media (min-width: 768px) {
  .product-container {
    grid-template-columns: 1fr 1fr;
  }
}

.product-image-section {
  position: relative;
}

.product-main-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-info-section {
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 2rem;
  color: var(--color-primary-medium);
  margin-bottom: 0.5rem;
}

.product-variant {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-price);
  margin-bottom: 1rem;
}

.product-package-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--color-bg-soft);
  border-radius: 4px;
}

.product-stock {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-success);
  font-weight: 600;
  margin-bottom: 2rem;
}

.product-stock svg {
  width: 20px;
  height: 20px;
}

.add-to-cart-large {
  padding: 1.25rem 2rem;
  font-size: 1.125rem;
  font-weight: 700;
  background-color: var(--color-primary);
  color: var(--color-primary-dark);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-normal);
  margin-bottom: 2rem;
}

.add-to-cart-large:hover {
  background-color: hsl(210, 65%, 70%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.product-tabs {
  display: flex;
  gap: 1rem;
  border-bottom: 2px solid var(--color-bg-soft);
  margin-bottom: 2rem;
}

.tab-btn {
  padding: 1rem 1.5rem;
  background: none;
  border: none;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.tab-btn.active {
  color: var(--color-primary-medium);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-primary);
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-content h3 {
  color: var(--color-primary-medium);
  margin-bottom: 1rem;
}

.tab-content p {
  line-height: 1.8;
  margin-bottom: 1rem;
}

.tab-content ul {
  list-style: none;
  padding: 0;
}

.tab-content ul li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.tab-content ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 700;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.feature-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--color-bg-soft);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
}

.feature-badge svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-success);
}

/* ========================================
   Package Selector
   ======================================== */

.package-selector {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--color-bg-soft);
  border-radius: 8px;
}

.package-option {
  display: flex;
  align-items: flex-start;
  padding: 1.25rem;
  margin-bottom: 1rem;
  background: white;
  border: 2px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.package-option:hover {
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(135, 183, 221, 0.2);
}

.package-option:last-child {
  margin-bottom: 0;
}

.package-option input[type="radio"] {
  margin-right: 1rem;
  margin-top: 0.25rem;
  width: 20px;
  height: 20px;
  cursor: pointer;
  flex-shrink: 0;
}

.package-option input[type="radio"]:checked {
  accent-color: var(--color-primary-medium);
}

.package-details {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.package-label {
  font-weight: 600;
  color: var(--color-text-dark);
}

.package-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-price);
}

.bulk-option {
  position: relative;
  border-color: var(--color-success);
  background: linear-gradient(135deg, #ffffff 0%, #f0f9f4 100%);
}

.bulk-savings {
  width: 100%;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  /*border-top: 1px dashed var(--color-success);*/
  font-size: 0.875rem;
  color: var(--color-success);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 576px) {
  .package-details {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .package-price {
    font-size: 1.2rem;
  }
}

/* ========================================
   Login Panel Styles
   ======================================== */

.login-tabs {
  display: flex;
  border-bottom: 2px solid var(--color-bg-soft);
  margin-bottom: 1.5rem;
}

.login-tab {
  flex: 1;
  padding: 1rem;
  background: none;
  border: none;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.login-tab.active {
  color: var(--color-primary-medium);
}

.login-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-primary);
}

.login-form-container {
  display: none;
}

.login-form-container.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text-dark);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.customer-type-selector {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--color-bg-soft);
  border-radius: 4px;
}

.customer-type-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  background: white;
  border: 2px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.customer-type-option:hover {
  border-color: var(--color-primary);
}

.customer-type-option input[type="radio"] {
  margin-right: 0.5rem;
  width: auto;
}

.customer-type-option input[type="radio"]:checked + span {
  font-weight: 700;
  color: var(--color-primary-medium);
}

.customer-type-option:has(input:checked) {
  border-color: var(--color-primary);
  background-color: rgba(135, 183, 221, 0.1);
}

.company-fields-panel {
  padding: 1rem;
  background: var(--color-bg-soft);
  border-radius: 4px;
  margin-bottom: 1rem;
}

.form-message {
  padding: 0.75rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  display: none;
  font-size: 0.875rem;
}

.form-message.success {
  display: block;
  background-color: rgba(76, 175, 80, 0.1);
  color: var(--color-success);
  border: 1px solid var(--color-success);
}

.form-message.error {
  display: block;
  background-color: rgba(244, 67, 54, 0.1);
  color: var(--color-error);
  border: 1px solid var(--color-error);
}

.form-message.warning {
    display: block;
    background-color: #FEF3C7;
    color: #92400E;
    border-left: 4px solid #F59E0B;
}

.logged-in-view {
  text-align: center;
  padding: 2rem 1rem;
}

.user-info {
  margin-bottom: 2rem;
}

.user-info svg {
  margin: 0 auto 1rem;
  color: var(--color-primary);
}

.user-info h4 {
  font-size: 1.25rem;
  color: var(--color-primary-medium);
  margin-bottom: 0.5rem;
}

.user-info p {
  color: var(--color-text-muted);
  margin: 0;
}

@media (max-width: 576px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .customer-type-selector {
    flex-direction: column;
  }
}

/* ========================================
   MOMS-VISNING FÖR FÖRETAG
   ======================================== */

.vat-row {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    padding: 0.5rem 0;
    border-top: 1px dashed var(--color-border);
}

.vat-row:first-of-type {
    margin-top: 0.5rem;
}

.vat-row:last-of-type {
    border-bottom: 1px dashed var(--color-border);
    margin-bottom: 0.5rem;
}

.vat-row span:last-child {
    color: var(--color-success);
    font-weight: 600;
}

.total-row.grand-total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--color-border);
    font-size: 1.125rem;
}

/* Momsinfo i ordersammanfattning */
.summary-rows {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
}

/* ========================================
      Banner Section
      ======================================== */

   .banner-section {
       background-color: var(--color-bg-soft);
       padding: var(--spacing-md) 0 0 0;
   }

   .banner-image {
       width: 100%;
       max-width: 100%;
       height: auto;
       border-radius: 8px;
       box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
   }

/* ========================================
   KAMPANJ - Priser och badges
   ======================================== */

/* Se till att produktkortet har position relative för badges */
.product-card {
    position: relative;
}

/* Container för badges (håller dem på en rad) */
.campaign-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

/* Kampanj-badge */
.campaign-badge {
    background: #EF4444;
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

/* Storpack-badge (grön variant) */
.storpack-badge {
    background: #047857;
    box-shadow: 0 2px 8px rgba(4, 120, 87, 0.4);
}

/* ----------------------------------------
   Prisvisning på produktkort
   ---------------------------------------- */

/* Wrapper för priserna */
.product-price-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Överstruket originalpris */
.product-price-original {
    text-decoration: line-through;
    color: #9CA3AF;
    font-size: 0.9rem;
}

/* Kampanjpris (rött) */
.product-price-campaign {
    color: #EF4444;
    font-weight: 700;
    font-size: 1.1rem;
}

/* ----------------------------------------
   Prisvisning i kundvagnen
   ---------------------------------------- */

.cart-item-price-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.cart-item-price-original {
    text-decoration: line-through;
    color: #9CA3AF;
    font-size: 0.8rem;
}

.cart-item-price-campaign {
    color: #EF4444;
    font-weight: 700;
}

/* ========================================
   RABATTKOD - Kundvagnen
   ======================================== */

.discount-code-section {
    padding: 1rem;
    border-top: 1px dashed #E5E7EB;
    margin-top: 0.5rem;
}

/* Inputfält + knapp */
.discount-input-row {
    display: flex;
    gap: 0.5rem;
}

.discount-input-row input {
    flex: 1;
    padding: 0.65rem 0.75rem;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.discount-input-row input:focus {
    outline: none;
    border-color: #87B7DD;
    box-shadow: 0 0 0 3px rgba(135, 183, 221, 0.2);
}

.discount-input-row input::placeholder {
    font-family: 'Lato', sans-serif;
    text-transform: none;
    letter-spacing: normal;
    color: #9CA3AF;
}

.discount-input-row button {
    padding: 0.65rem 1.25rem;
    background: #024873;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.discount-input-row button:hover {
    background: #036B9E;
}

.discount-input-row button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Aktiverad rabattkod */
.discount-active {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.discount-active-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.discount-tag {
    font-size: 1.25rem;
}

.discount-active-info strong {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    color: #024873;
}

.discount-percent {
    display: inline-block;
    margin-left: 0.5rem;
    background: #10B981;
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
}

.discount-remove {
    width: 28px;
    height: 28px;
    background: none;
    border: 1px solid #D1D5DB;
    border-radius: 50%;
    color: #6B7280;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.discount-remove:hover {
    background: #FEE2E2;
    border-color: #EF4444;
    color: #EF4444;
}

/* Meddelanden */
.code-message {
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.5rem;
    padding: 0.4rem 0;
    display: none;
}

.code-message.success {
    display: block;
    color: #059669;
}

.code-message.error {
    display: block;
    color: #DC2626;
}