/*
Theme Name: Smartabildelar
Theme URI: https://smartabildelar.se
Author: Smarte Deler AS
Author URI: https://smartabildelar.se
Description: Custom WordPress theme for smartabildelar.se - Scandinavian car parts supplier
Version: 3.8.2
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: smartabildelar
*/

/* ==========================================================================
   CSS Reset & Base Styles
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-dark: #2b2b2b;
  --color-blue: #0099d6;
  --color-blue-dark: #007bb5;
  --color-orange: #e8600a;
  --color-white: #ffffff;
  --color-light-gray: #f7f8fa;
  --color-gray: #555555;
  --color-border: #e0e0e0;
  --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition: all 0.3s ease;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-system);
  line-height: 1.7;
  color: #333;
  background: var(--color-white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-blue);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-orange);
}

*:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(0, 153, 214, 0.1);
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
}

/* ==========================================================================
   Layout & Container
   ========================================================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  background: var(--color-white);
  color: var(--color-dark);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border-top: 4px solid var(--color-blue);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.site-branding {
  flex-shrink: 0;
}

.site-title {
  margin: 0;
  font-size: 1.5rem;
}

.site-title a {
  color: var(--color-dark);
  font-weight: 700;
  text-decoration: none;
}

.site-title a:hover {
  color: var(--color-blue);
}

/* Logo sizing */
.custom-logo-link img {
  max-height: 44px;
  width: auto;
}

.site-navigation {
  flex-grow: 1;
}

.main-menu {
  list-style: none;
  display: flex;
  gap: 2rem;
  justify-content: flex-end;
  align-items: center;
}

.main-menu li {
  margin: 0;
}

.main-menu a {
  color: var(--color-dark);
  font-weight: 500;
  padding: 0.5rem 0;
  display: block;
  font-size: 0.95rem;
  transition: var(--transition);
}

.main-menu a:hover {
  color: var(--color-blue);
}

.header-cta {
  flex-shrink: 0;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--color-dark);
  font-size: 0.9rem;
}

.header-contact a {
  color: var(--color-blue);
  font-weight: 600;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-dark);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: var(--transition);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  background: linear-gradient(135deg, #0088c2 0%, #00aae6 50%, #0099d6 100%);
  color: var(--color-white);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(135deg, transparent, transparent 40px, rgba(255,255,255,.04) 40px, rgba(255,255,255,.04) 80px);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at top, rgba(255,255,255,0.15), transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  line-height: 1.6;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1.5;
}

.btn-primary {
  background: var(--color-orange);
  color: var(--color-white);
}

.btn-primary:hover {
  background: #d65509;
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
  color: var(--color-white);
}

.btn-secondary {
  background: var(--color-blue);
  color: var(--color-white);
}

.btn-secondary:hover {
  background: #0080bd;
  color: var(--color-white);
}

.btn-large {
  padding: 1.125rem 2.5rem;
  font-size: 1.125rem;
}

/* ==========================================================================
   Quote Form Section
   ========================================================================== */

.quote-form-section {
  background: var(--color-light-gray);
  padding: 4rem 0;
  position: relative;
}

.quote-form-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20px 20px, rgba(0, 153, 214, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.quote-form-section h2 {
  text-align: center;
  color: var(--color-dark);
  margin-bottom: 2rem;
  position: relative;
}

.form-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: var(--color-gray);
}

/* ==========================================================================
   How It Works Section
   ========================================================================== */

.how-it-works {
  background: var(--color-white);
}

.section-title {
  text-align: center;
  color: var(--color-dark);
  margin-bottom: 3rem;
  font-size: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--color-blue);
  border-radius: 2px;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .steps-grid::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(to right, var(--color-blue), var(--color-blue) 33%, transparent 33%, transparent 66%, var(--color-blue) 66%);
    z-index: 0;
  }
}

.step {
  background: var(--color-white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-left: 4px solid var(--color-blue);
  position: relative;
  z-index: 1;
}

.step:hover {
  box-shadow: var(--shadow-md);
  transform: scale(1.02);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-blue);
  color: var(--color-white);
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.step h3 {
  color: var(--color-dark);
  margin-bottom: 0.75rem;
}

.step p {
  color: var(--color-gray);
  margin-bottom: 0;
  line-height: 1.7;
}

/* ==========================================================================
   USP Cards
   ========================================================================== */

.usp-section {
  background: var(--color-light-gray);
}

.usp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.usp-card {
  background: var(--color-white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-left: 4px solid var(--color-blue);
}

.usp-card:hover {
  box-shadow: var(--shadow-md);
  transform: scale(1.02);
}

.usp-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  display: block;
  border-radius: 50%;
  background-color: var(--color-blue);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 36px;
  box-shadow: 0 4px 12px rgba(6, 106, 171, 0.3);
}

.usp-icon--search {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
}

.usp-icon--shield {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
}

.usp-icon--box {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z'/%3E%3Cpolyline points='3.27 6.96 12 12.01 20.73 6.96'/%3E%3Cline x1='12' y1='22.08' x2='12' y2='12'/%3E%3C/svg%3E");
}

.usp-card h3 {
  color: var(--color-dark);
  margin-bottom: 0.75rem;
}

.usp-card p {
  color: var(--color-gray);
  margin-bottom: 0;
}

/* ==========================================================================
   Main Content Section
   ========================================================================== */

.main-content-section {
  background: var(--color-white);
  text-align: center;
}

.main-content-section h2 {
  color: var(--color-dark);
  margin-bottom: 2rem;
}

.content-text {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--color-gray);
  line-height: 1.8;
}

/* ==========================================================================
   Stats Section (New)
   ========================================================================== */

.stats-section {
  background: linear-gradient(135deg, #0088c2 0%, #0099d6 100%);
  color: var(--color-white);
  padding: 4rem 0;
}

.stats-section h2 {
  text-align: center;
  color: var(--color-white);
  margin-bottom: 3rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.stat-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
  color: var(--color-white);
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
  color: var(--color-white);
}

/* ==========================================================================
   Brands Section (New)
   ========================================================================== */

.brands-section {
  background: var(--color-light-gray);
  padding: 3rem 0;
}

.brands-section h2 {
  text-align: center;
  color: var(--color-dark);
  margin-bottom: 2rem;
}

.brands-scroll {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.brand-item {
  font-size: 1rem;
  color: var(--color-gray);
  font-weight: 500;
  padding: 0.5rem 1rem;
  background: var(--color-white);
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.brand-item:hover {
  color: var(--color-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

@media (max-width: 767px) {
  .brands-scroll {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 0 1rem;
    gap: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--color-blue) var(--color-light-gray);
  }
  
  .brand-item {
    flex-shrink: 0;
  }
}

/* ==========================================================================
   Trust Badges
   ========================================================================== */

.trust-badges {
  background: var(--color-light-gray);
}

.badges-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.badge {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--color-white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.badge-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: var(--color-blue);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px;
}

.badge-icon--building {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Crect x='4' y='2' width='16' height='20' rx='2'/%3E%3Cline x1='9' y1='6' x2='9' y2='6.01'/%3E%3Cline x1='15' y1='6' x2='15' y2='6.01'/%3E%3Cline x1='9' y1='10' x2='9' y2='10.01'/%3E%3Cline x1='15' y1='10' x2='15' y2='10.01'/%3E%3Cline x1='9' y1='14' x2='9' y2='14.01'/%3E%3Cline x1='15' y1='14' x2='15' y2='14.01'/%3E%3Cpath d='M9 22v-4h6v4'/%3E%3C/svg%3E");
}

.badge-icon--headset {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M3 18v-6a9 9 0 0 1 18 0v6'/%3E%3Cpath d='M21 19a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3zM3 19a2 2 0 0 0 2 2h1a2 2 0 0 0 2-2v-3a2 2 0 0 0-2-2H3z'/%3E%3C/svg%3E");
}

.badge-icon--return {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpolyline points='1 4 1 10 7 10'/%3E%3Cpath d='M3.51 15a9 9 0 1 0 2.13-9.36L1 10'/%3E%3C/svg%3E");
}

.badge-content h4 {
  color: var(--color-dark);
  margin-bottom: 0.25rem;
  font-size: 1.125rem;
}

.badge-content p {
  color: var(--color-gray);
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* ==========================================================================
   Final CTA Section
   ========================================================================== */

.final-cta {
  background: linear-gradient(135deg, #0088c2 0%, #0099d6 100%);
  color: var(--color-white);
  text-align: center;
  padding: 5rem 0;
}

.final-cta h2 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.final-cta p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: #2b2b2b;
  color: var(--color-white);
  padding: 3rem 0 1.5rem;
  border-top: 3px solid var(--color-orange);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--color-white);
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.footer-section a:hover {
  color: var(--color-orange);
}

.footer-menu {
  list-style: none;
}

.footer-menu li {
  margin-bottom: 0.5rem;
}

.payment-icons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   Company Cards (for page-foretag.php)
   ========================================================================== */

.company-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.company-card {
  background: var(--color-light-gray);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--color-blue);
  transition: var(--transition);
}

.company-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.company-card h4 {
  color: var(--color-dark);
  margin-bottom: 0.75rem;
}

.company-card p {
  color: var(--color-gray);
  margin-bottom: 0;
  line-height: 1.7;
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--color-orange);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.back-to-top:hover {
  background: #d65509;
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
  display: flex;
}

/* ==========================================================================
   Page Templates
   ========================================================================== */

.page-header {
  background: linear-gradient(135deg, #0088c2 0%, #0099d6 100%);
  color: var(--color-white);
  padding: 3rem 0;
  text-align: center;
}

.page-header h1 {
  color: var(--color-white);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-intro {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
}

.page-content {
  padding: 4rem 0;
}

.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.content-wrapper h2 {
  color: var(--color-dark);
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
}

.content-wrapper h3 {
  color: var(--color-dark);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.content-wrapper p {
  color: var(--color-gray);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.content-wrapper ul,
.content-wrapper ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
  color: var(--color-gray);
}

.content-wrapper li {
  margin-bottom: 0.75rem;
  line-height: 1.8;
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */

/* Tablet */
@media (min-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .section {
    padding: 5rem 0;
  }

  .hero {
    padding: 6rem 0;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .usp-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .badges-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .company-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }

  .section {
    padding: 6rem 0;
  }

  .hero {
    padding: 7rem 0;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Mobile Menu */
@media (max-width: 767px) {
  .menu-toggle {
    display: block;
  }

  .site-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    padding: 1rem;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--color-border);
    transition: var(--transition);
  }

  .site-navigation.is-open {
    display: block;
    animation: slideDown 0.3s ease;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .main-menu {
    flex-direction: column;
    gap: 0;
  }

  .main-menu li {
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }

  .main-menu a {
    padding: 1rem;
    color: var(--color-dark);
  }

  .header-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.85rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
  }
}

/* Print Styles */
@media print {
  .site-header,
  .site-footer,
  .menu-toggle,
  .btn,
  .back-to-top {
    display: none;
  }
}

/* CSS Icons - replacing emojis */
.icon-phone {
  display: inline-block;
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 4px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

/* Checkmark list styling for kompatibilitetskontroll */
.check-list li {
  position: relative;
  padding-left: 1.8rem;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  background: var(--color-blue);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ==========================================================================
   Single Product Page
   ========================================================================== */

.product-page {
  padding: 2rem 0 4rem;
}

.product-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.product-breadcrumb {
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--color-gray);
}

.product-breadcrumb a {
  color: var(--color-blue);
  text-decoration: none;
}

.product-breadcrumb a:hover {
  text-decoration: underline;
}

.product-breadcrumb .sep {
  margin: 0 0.5rem;
  color: var(--color-border);
}

.product-breadcrumb .current {
  color: var(--color-gray);
}

.product-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

/* Product Gallery */
.product-gallery {
  max-width: 100%;
}

.product-main-image {
  overflow: hidden;
  margin-bottom: 1rem;
  background: #fff;
  border-radius: 4px;
  position: relative;
}

.product-main-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  max-height: 500px;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.product-main-image:hover img {
  transform: scale(1.03);
}

.product-thumbnails {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.product-thumbnails .thumb {
  width: 70px;
  height: 70px;
  border-radius: 4px;
  cursor: pointer;
  overflow: hidden;
  transition: var(--transition);
  opacity: 0.6;
}

.product-thumbnails .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-thumbnails .thumb:hover,
.product-thumbnails .thumb.active {
  opacity: 1;
}

/* Product Info */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.product-title {
  font-size: 1.5rem;
  color: var(--color-dark);
  line-height: 1.3;
  margin: 0;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.product-price .woocommerce-Price-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-dark);
}

.product-price .price-vat {
  font-size: 0.85rem;
  color: var(--color-gray);
}

.product-price del .woocommerce-Price-amount {
  font-size: 1.25rem;
  color: var(--color-gray);
  font-weight: 400;
}

.product-price ins .woocommerce-Price-amount {
  color: #c00;
}

/* Condition badges */
.product-condition {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
}

.product-condition--new {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.product-condition--used {
  background: #fff3e0;
  color: #e65100;
  border: 1px solid #ffe0b2;
}

.product-meta-row {
  font-size: 0.9rem;
  color: var(--color-gray);
}

.product-sku strong {
  color: var(--color-dark);
}

/* Add to Cart */
.product-add-to-cart .quantity {
  display: inline-flex;
  align-items: center;
  margin-right: 0.75rem;
}

.product-add-to-cart .quantity input {
  width: 60px;
  text-align: center;
  padding: 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 1rem;
}

.product-add-to-cart .single_add_to_cart_button {
  background: var(--color-orange);
  color: white;
  border: none;
  padding: 0.875rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.product-add-to-cart .single_add_to_cart_button:hover {
  background: #d45508;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Product Features */
.product-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--color-light-gray);
  border-radius: 8px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--color-dark);
}

.feature-item svg {
  flex-shrink: 0;
}

.feature-item--compat a {
  color: var(--color-blue);
  font-weight: 600;
  text-decoration: none;
}

.feature-item--compat a:hover {
  color: var(--color-orange);
}

/* Product Tabs */
.product-tabs {
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
}

.tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 1.5rem;
}

.tab-btn {
  background: none;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-gray);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
}

.tab-btn:hover {
  color: var(--color-dark);
}

.tab-btn.active {
  color: var(--color-blue);
  border-bottom-color: var(--color-blue);
}

.tab-pane {
  display: none;
  line-height: 1.8;
  color: var(--color-gray);
}

.tab-pane.active {
  display: block;
}

.tab-pane h2 {
  font-size: 1.25rem;
  color: var(--color-dark);
}

.tab-pane h3 {
  font-size: 1.15rem;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

.tab-pane ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.tab-pane li {
  margin-bottom: 0.35rem;
}

.tab-pane a {
  color: var(--color-blue);
}

/* Compatibility Check Popup */
.compat-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.compat-popup {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.compat-popup h3 {
  font-size: 1.25rem;
  color: var(--color-dark);
  margin: 0 0 0.5rem;
}

.compat-popup p {
  color: var(--color-gray);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.compat-popup-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--color-gray);
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
}

.compat-popup-close:hover {
  color: var(--color-dark);
}

/* SMARTgaranti in cart */
.smartgaranti-cart-option {
  margin-top: 0.5rem;
}

.product-guarantee-status {
  font-style: italic;
  margin-top: 0.25rem;
  font-size: 0.9rem;
}

.extended-warranty-option {
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(0, 153, 214, 0.06);
  border: 1px solid var(--color-blue);
  border-radius: 6px;
  font-size: 0.9rem;
}

.extended-warranty-option label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.extended-warranty-option input[type="checkbox"] {
  accent-color: var(--color-blue);
}

/* WooCommerce overrides */
.woocommerce-main {
  min-height: 50vh;
}

.woocommerce-notices-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Responsive */
@media (min-width: 768px) {
  .product-top {
    grid-template-columns: 1fr 1fr;
  }

  .product-title {
    font-size: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .product-top {
    grid-template-columns: 55% 45%;
    gap: 3rem;
  }
}

/* ============================================
   Shop / Archive Page
   ============================================ */

/* Shop Hero */
.shop-hero {
  background: linear-gradient(135deg, #0088c2 0%, #00aae6 50%, #0099d6 100%);
  color: #fff;
  padding: 2.5rem 0 2rem;
  text-align: center;
}

.shop-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: #fff;
}

.shop-hero p {
  font-size: 1.05rem;
  opacity: 0.9;
  margin: 0 0 1.5rem;
}

/* Search Bar */
.shop-search {
  max-width: 600px;
  margin: 0 auto;
}

.shop-search-inner {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.shop-search-icon {
  flex-shrink: 0;
  margin-left: 1rem;
  color: #999;
}

.shop-search input[type="text"] {
  flex: 1;
  border: none;
  padding: 0.85rem 0.75rem;
  font-size: 0.95rem;
  outline: none;
  background: transparent;
  color: #333;
  min-width: 0;
}

.shop-search input::placeholder {
  color: #aaa;
}

.shop-search button {
  flex-shrink: 0;
  background: var(--color-cta, #e8600a);
  color: #fff;
  border: none;
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.shop-search button:hover {
  background: #d65509;
}

.shop-search-info {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: #555;
}

.shop-search-info a {
  color: var(--color-blue, #0088c2);
}

/* Shop Layout */
.shop-page {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.shop-toolbar .woocommerce-result-count {
  margin: 0;
  color: #777;
  font-size: 0.9rem;
}

.shop-toolbar .woocommerce-ordering select {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border, #e2e5ea);
  border-radius: 4px;
  font-size: 0.9rem;
  background: #fff;
}

/* Product Grid */
.shop-products .products,
.shop-products ul.products,
.shop-products .products.columns-4,
.shop-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.shop-products .products li.product {
  list-style: none;
}

.woocommerce ul.products.shop-grid::before,
.woocommerce ul.products.shop-grid::after,
ul.products.shop-grid::before,
ul.products.shop-grid::after {
  content: none !important;
  display: none !important;
}

.shop-grid li {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
}

/* Product Card */
.shop-product-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  border: 1px solid #f0f0f0;
}

.shop-product-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.shop-product-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.shop-product-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #fafafa;
  flex-shrink: 0;
}

.shop-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
  transition: transform 0.3s ease;
}

.shop-product-card:hover .shop-product-image img {
  transform: scale(1.04);
}

.shop-product-image .condition-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 1;
}

.condition-badge.condition-new {
  background: #e6f7ee;
  color: #1a7a42;
}

.condition-badge.condition-used {
  background: #fff3e6;
  color: #b85c00;
}

/* Product Info — flex column to push price/sku to bottom */
.shop-product-info {
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.shop-product-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(0.88rem * 1.4 * 3);
}

.shop-product-meta {
  margin-top: auto;
  padding-top: 0.5rem;
}

.shop-product-price {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a1a;
}

.shop-product-price .woocommerce-Price-amount {
  font-weight: 700;
}

.shop-product-sku {
  display: block;
  font-size: 0.78rem;
  color: #999;
  margin-top: 0.15rem;
}

/* Pagination */
.shop-pagination {
  margin-top: 2rem;
  text-align: center;
}

.shop-pagination .page-numbers {
  display: inline-flex;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
}

.shop-pagination .page-numbers li a,
.shop-pagination .page-numbers li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 4px;
  font-size: 0.9rem;
  text-decoration: none;
  color: #1a1a1a;
  border: 1px solid #e2e5ea;
}

.shop-pagination .page-numbers li span.current {
  background: #0088c2;
  color: #fff;
  border-color: #0088c2;
}

/* No Products */
.shop-no-products {
  text-align: center;
  padding: 4rem 2rem;
}

.shop-no-products h2 {
  margin: 1rem 0 0.5rem;
  font-size: 1.5rem;
}

.shop-no-products p {
  color: #777;
  max-width: 480px;
  margin: 0 auto;
}

.shop-no-products a {
  color: #0088c2;
  font-weight: 600;
}

/* Shop Responsive */
@media (min-width: 768px) {
  .shop-hero h1 {
    font-size: 2.25rem;
  }

  .shop-products .products,
  .shop-products ul.products,
  .shop-products .products.columns-4,
  .shop-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (min-width: 1280px) {
  .shop-products .products,
  .shop-products ul.products,
  .shop-products .products.columns-4,
  .shop-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .shop-products .products,
  .shop-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  .shop-product-card {
    display: flex;
  }

  .shop-product-link {
    flex-direction: row;
  }

  .shop-product-image {
    width: 120px;
    min-height: 120px;
    aspect-ratio: 1;
  }

  .shop-product-info {
    flex: 1;
    padding: 0.75rem;
  }

  .shop-product-title {
    min-height: auto;
    -webkit-line-clamp: 2;
  }

  .shop-search-inner {
    flex-wrap: wrap;
  }

  .shop-search-icon {
    display: none;
  }

  .shop-search input[type="text"] {
    width: 100%;
    padding: 0.75rem;
  }

  .shop-search button {
    width: 100%;
    padding: 0.75rem;
  }
}
