:root {
  /* Basvärden för t.ex. mobil */
  --spacing-sm: 0.5rem;
  --spacing-sm-halfstep: 0.75rem; /* Mellansteg mellan sm och md */
  --spacing-md: 1rem;
  --spacing-md-halfstep: 1.5rem; /* Mellansteg mellan md och lg */
  --spacing-lg: 2rem;
  --spacing-lg-halfstep: 2.5rem; /* Mellansteg mellan lg och xl */
  --spacing-xl: 3rem;

  /* Vertikal spacing i steg för mobil */
  --spacing-vertical-sm: 0.5rem;
  --spacing-vertical-sm-halfstep: 0.75rem; /* Mellansteg mellan sm och md */
  --spacing-vertical-md: 1rem;
  --spacing-vertical-md-halfstep: 1.5rem; /* Mellansteg mellan md och lg */
  --spacing-vertical-lg: 2rem;
  --spacing-vertical-lg-halfstep: 2.5rem; /* Mellansteg mellan lg och xl */
  --spacing-vertical-xl: 3rem;

  /* Horisontell spacing i steg för mobil */
  --spacing-horizontal-sm: 0.5rem;
  --spacing-horizontal-sm-halfstep: 0.75rem; /* Mellansteg mellan sm och md */
  --spacing-horizontal-md: 1rem;
  --spacing-horizontal-md-halfstep: 1.5rem; /* Mellansteg mellan md och lg */
  --spacing-horizontal-lg: 2rem;
  --spacing-horizontal-lg-halfstep: 2.5rem; /* Mellansteg mellan lg och xl */
  --spacing-horizontal-xl: 3rem;
}

@media (min-width: 768px) {
  :root {
    /* Större skärmar */
    --spacing-sm: 1rem;
    --spacing-sm-halfstep: 1.5rem; /* Mellansteg mellan sm och md */
    --spacing-md: 2rem;
    --spacing-md-halfstep: 3rem; /* Mellansteg mellan md och lg */
    --spacing-lg: 4rem;
    --spacing-lg-halfstep: 5rem; /* Mellansteg mellan lg och xl */
    --spacing-xl: 6rem;

    --spacing-vertical-sm: 1rem;
    --spacing-vertical-sm-halfstep: 1.5rem; /* Mellansteg mellan sm och md */
    --spacing-vertical-md: 2rem;
    --spacing-vertical-md-halfstep: 3rem; /* Mellansteg mellan md och lg */
    --spacing-vertical-lg: 4rem;
    --spacing-vertical-lg-halfstep: 5rem; /* Mellansteg mellan lg och xl */
    --spacing-vertical-xl: 6rem;

    --spacing-horizontal-sm: 1rem;
    --spacing-horizontal-sm-halfstep: 1.5rem; /* Mellansteg mellan sm och md */
    --spacing-horizontal-md: 2rem;
    --spacing-horizontal-md-halfstep: 3rem; /* Mellansteg mellan md och lg */
    --spacing-horizontal-lg: 4rem;
    --spacing-horizontal-lg-halfstep: 5rem; /* Mellansteg mellan lg och xl */
    --spacing-horizontal-xl: 6rem;
  }
}

:root {
  --black-primary: #222222;
  --myproject-primary-color: #457D99;
  --grey-primary: #555555;
  }




/* assets/styles/base.css */
@font-face {
    font-family: 'Jost';
    src: url('../fonts/Jost-Regular-Subset.woff2') format('woff2');
    font-weight: 100 900; /* Variable weight */
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Jost';
    src: url('../fonts/Jost-Italic-Subset.woff2') format('woff2');
    font-weight: 100 900; /* Variable weight */
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Material Icons';
    src: url('../fonts/MaterialIcons-Subset.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

.mi-check::before {
  content: "\e5ca";
}

/* Trustpilot mini-widget fix */

/* Set a minimum height for the widget */

/* Hide the <a> tag within the TrustBox widget */
.trustpilot-widget a {
    display: none;
}


    
@media (max-width: 768px) {
    .hero-bg {
        width: 100vw;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        min-height: 400px;
    }
}

@media (min-width: 769px) {
    .hero-bg {
        width: 100vw;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        min-width: 100% !important;
        min-height: 600px;

    
}
    }

.hero-custom-container {
    width: 100%;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content-wrapper {
    max-width: 1200px;
    width: 100%;
    padding: 40px;
    color: white;
    text-align: center;
    z-index: 2;
}

.woocommerce ul.products li.product a img  {
    
aspect-ratio: 1/1;
height: auto;
width: 100%;
background: #ffffff;
display: block;
filter: brightness(.96);
box-sizing: border-box;

}


.single-product-wrapper .woocommerce-product-gallery, .single-product-wrapper  div.summary  {
    
float: none !important;
width: 100% !important;

}

.single-product-wrapper {
    
display: flex;
gap: 6rem;
flex-wrap: nowrap;
max-width: 1440px;
margin: 0 auto;
position: relative;
width: 100%;

}

@media (max-width: 768px) {
    .single-product-wrapper {
        flex-direction: column;
        gap: 0;
        flex-wrap: wrap;
    }
    
}    

.single-product-wrapper .woocommerce-product-gallery  {
    
flex: 4;

}

.single-product-wrapper .summary  {
    
flex: 5;

}

/***************   HEADER CSS   ****************** /

/*Top bar*/

.top-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* Improved column distribution */
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
  contain: layout;
}

.top-bar .social-icons {
  display: grid;
  grid-auto-flow: column; /* Makes children layout in columns → horizontal row */
  gap: 1rem;
  justify-self: start; /* Aligns to left grid line */
}

.top-bar .trustpilot-widget {
  justify-self: center; /* Centers in middle column */
  height: 24px;
  min-height:24px;
  width: auto;
  contain: layout;
  
}

.top-bar .free-shipping {
  justify-self: end; /* Aligns to right grid line */
}

/* Mobile styles */
@media (max-width: 767px) {
.top-bar  .social-icons,
.top-bar .free-shipping {
    display: none;
  }
  
  .trustpilot-widget {
    grid-column: 1 / -1; /* Span full width */
    justify-self: center;
  }
}

/* Header */

.main-menu  {

display: grid;
  grid-template-columns: 1fr 130px 1fr;
  align-items: center;
  column-gap: 16px;
  padding: 16px;
  position: relative;

  
}

@media screen and (min-width: 1024px) {
    
    .main-menu  {
        
    grid-template-columns: 1fr 600px 1fr;
    
    }
    
   }

.main-menu .hamburger {
    
display: grid;
place-items: center;
width: 44px;
height: 44px;

}

@media screen and (min-width: 1024px) {
    
    .main-menu .hamburger  {
        
    display: none;
    
    }
    
    }



.main-menu .logo-a {

justify-self: start; 

}

@media screen and (min-width: 1024px) {

.main-menu .logo-a {

justify-self: start; 

    }

}

@media screen and (max-width: 768px) {

.logo-a img {

max-width: 120px; 

    }

}

.main-menu .search-bar {
    
justify-self: center;   
width: 100%;

}

.main-menu .dgwt-wcas-search-wrapp  {
    
margin-bottom: 0 !important;

}

.main-menu .contact-info  {
    
justify-self: end;
display: grid;
grid-template-columns: 1fr 1fr;
align-items: center;
column-gap: 8px;

}

.icon-link {
    display: grid; /* Ensures alignment of the icon within the link */
    place-content: center;
    width: 44px; 
    height: 44px; 
    color: var(--black-primary);
    font-size: 1.5em;
    
}

.contact-info a:hover {
  color: var(--myproject-primary-color);
}

.icon-link .cart-icon {
  position: relative;
}

span.cart-count {
  background-color: #47819e;
  color: #fff;
  font-size: 0.75em;
  border-radius: 100%;
  height: 24px;
  width: 24px;
  font-weight: 600;
  display: inline grid;
  pointer-events: none;
  place-items: center;
  position: absolute;
  bottom: 44px;
  right: 12px;
  border: 2px solid #fff;
}



/* Mobile menu re-write */

.hamburger-container.active  {
    
top: 100% !important;

}

.hamburger-container .input-group {
    
    margin-top: 12px;
    margin-bottom: 32px;
}

.mobile-cat-wrapper {  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr;
  gap: 24px 16px;
  grid-auto-flow: row;
  margin-top: 16px;
  margin-bottom: 16px;
}

.mobile-cat-wrapper .hamburger-menu-cat {
    
    display: inline-grid;
    row-gap: 8px;
    place-items: center;
    
}

.mobile-cat-wrapper .category-title {
    
    color: var(--black-primary);
    font-size: 18px;
    font-weight: 500;
    
}

.mobile-cat-wrapper .category-img  {
    
    aspect-ratio: 3/2;
    object-fit: cover;
    height: auto;
    width: 100%;
    overflow-clip-margin: content-box;
    overflow: clip;
    
}

.hamburger-container {
  /* Layout & positioning */
  position: absolute;
  top: 100%;             
  right: 0;
  z-index: 9999;
  width: 100%;          
   transform: translateX(-100%); 
  transition: transform 0.5s ease;

  /* Presentation */
  background-color: #fff;
  box-shadow: none;      /* no shadow by default */
  padding: 16px;
  overflow-y: auto;
  display: block;
  
}

/* “Active” or “open” state */
.hamburger-container.active {
  transform: translateX(0);
  box-shadow: 0 20px 40px -25px rgba(0, 0, 0, 0.5);
}

.menu li.menu-item-has-children.open > a {
  color: #47819e;
  border: 1px solid #000;
}

    
/* Checkout fix 

.woocommerce-form-coupon-toggle {
	display: none !important;
}
.checkout_coupon.woocommerce-form-coupon {
	display: block !important;

}

.checkout_coupon.woocommerce-form-coupon p {
	display: block !important;
}


*/

/*v.new-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: #008300;
    color: #fff;
    padding: 0.25rem 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    
    z-index: 10;
    
} */

.product-badges-wrapper {
    
top: 0;
left: 0;
position: absolute;
display: flex;
flex-direction: column;
gap: 0.25rem;
z-index: 10;

}



.product-badge {
    
font-size: 1rem;
font-weight: 500;
max-width: fit-content;
padding: 0.25rem 0.5rem;

}

@media (max-width: 768px) {
    
.product-badge {
    
font-size: 0.85rem;

    } 
    
}    

.new-badge {
    
    background: #008300;
    color: #fff;
}

.best-seller-badge {

background: #0062df;
color: #fff;

}

.campaign-badge {

background: #f9eb00;
color: #333

}



/*.best-seller-badge

 position: absolute;
    top: 20;
    left: 0;
    background: #0062df;
    color: #fff;
    padding: 0.25rem 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    
    z-index: 10;
    
}

.on-sale {
    position: absolute;
    top: 0;
    left: 0;
    background: #c70000;
    color: #fff;
    padding: 0.25rem 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    
    z-index: 10;
    
}

@media (max-width: 768px) {
    
.new-badge, .on-sale {
    
font-size: 0.85rem;

}    */

.woocommerce ul.products li.product {
    position: relative;
}

.campaign-end-date-grid {
    font-size: 0.85rem;
    color: #aa1f1b ; 
    line-height: 0.85rem;
    font-weight: 400;
    margin-top: -0.25rem;
    
}

.campaign-end-date-single {   font-size: 0.85rem;
    color: #aa1f1b ; 
    line-height: 0.85rem;
    font-weight: 400;
    margin-bottom: 1rem;
    margin-top: -0.5rem;
    
    
}
