/*
Theme Name: Storefront Child
Theme URI: https://woocommerce.com/products/storefront/
Template: storefront
Author: Automattic
Author URI: https://woocommerce.com/
Description: Storefront is the perfect theme for your next WooCommerce project. Designed and developed by WooCommerce Core developers, it features a bespoke integration with WooCommerce itself plus many of the most popular customer facing WooCommerce extensions. There are several layout &amp; color options to personalise your shop, multiple widget regions, a responsive design and much more. Developers will love its lean and extensible codebase making it a joy to customize and extend. Looking for a WooCommerce theme? Look no further!
Tags: e-commerce,two-columns,left-sidebar,right-sidebar,custom-background,custom-colors,custom-header,custom-menu,featured-images,full-width-template,threaded-comments,accessibility-ready,rtl-language-support,footer-widgets,sticky-post,theme-options,editor-style
Version: 4.6.1.1754899936
Updated: 2025-08-11 10:12:16

/* Centrera WooCommerce-sök och gör den 800px bred */
.woocommerce-product-search{
    display: block !important;
    max-width: 800px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
    position: static !important;
}

/* Ta bort Storefronts vänster-ikon/label som skjuter layouten */
.woocommerce-product-search::before,
.woocommerce-product-search::after{
    content: none !important;
    display: none !important;
}
.woocommerce-product-search label{
    display: none !important;
}

/* Låt inputen fylla hela bredden */
.woocommerce-product-search input[type="search"]{
    width: 100% !important;
    height: 44px !important;
    box-sizing: border-box !important;
}

.search-info {
    text-align: center;
    font-size: 14px;
    margin-bottom: 8px;
    color: #555;
}
.woocommerce-product-search input[type="search"]:focus {
    outline: none !important; /* tar bort standardblå kant */
    border-color: #b7c4ae  !important; /* limegrön */
    box-shadow: 0 0 5px rgba(50, 205, 50, 0.5) !important; /* mjuk glow */
}
.woocommerce-product-search input[type="search"] {
    border: 2px solid #95b97b !important;
    background-color: #f9fff9 !important;
    font-size: 16px !important;
}



/* === Minicart (clean) === */

/* Bas: overlay under ikonen (JS sätter top/left) */
.site-header-cart .widget_shopping_cart,
.site-header-cart .sub-menu {
  position: fixed !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;

  width: 450px !important;
  max-height: 70vh !important;
  box-sizing: border-box !important;

  /* stabil bredd i Chrome/Windows */
  overflow-y: scroll !important;
  scrollbar-gutter: stable both-edges !important;

  z-index: 100000 !important;
  display: none; /* stängd som standard – JS öppnar */
}

/* Visa när öppen */
.site-header-cart .widget_shopping_cart.is-open,
.site-header-cart .sub-menu.is-open {
  display: block !important;
}

/* Inre padding så innehåll inte hamnar under scrollbar */
.site-header-cart .widget_shopping_cart_content {
  padding-right: 14px !important; /* matcha ev. scrollbarbredd */
}

/* Lås layout vid öppet: kolumn + ordning */
.site-header-cart .widget_shopping_cart.is-open .widget_shopping_cart_content {
  display: flex !important;
  flex-direction: column !important;
}

.site-header-cart .widget_shopping_cart.is-open ul.woocommerce-mini-cart {
  order: 1 !important;
}

.site-header-cart .widget_shopping_cart.is-open .woocommerce-mini-cart__total,
.site-header-cart .widget_shopping_cart.is-open .total {
  order: 2 !important;
  display: block !important;
  margin-top: 12px !important;
  min-height: 40px !important;
}

.site-header-cart .widget_shopping_cart.is-open .woocommerce-mini-cart__buttons,
.site-header-cart .widget_shopping_cart.is-open .buttons {
  order: 3 !important;
  display: flex !important;
  gap: 10px;
  margin-top: 0px !important;
  min-height: 48px !important;
}

/* Ingen flimmer/animation när öppen */
.site-header-cart .widget_shopping_cart.is-open,
.site-header-cart .widget_shopping_cart.is-open * {
  transition: none !important;
  animation: none !important;
}

/* Lås trigger-stil så ikonen inte ändrar sig när hover släpper */
.site-header-cart.is-open,
.site-header-cart.is-open .cart-contents {
  opacity: 1 !important;
  transform: none !important;
  font-weight: inherit !important;
  box-shadow: none !important;
  border-width: 0 !important;
}

/* Fallback om browsern saknar scrollbar-gutter */
@supports not (scrollbar-gutter: stable) {
  .site-header-cart .widget_shopping_cart,
  .site-header-cart .sub-menu {
    overflow-y: scroll !important;
  }
}

/* — HÅRDLÅS: behandla .is-open som :hover, och ta bort sticky/absolute — */
.site-header-cart .widget_shopping_cart.is-open { display:block !important; }

/* ordning och visning låsta */
.site-header-cart .widget_shopping_cart.is-open .widget_shopping_cart_content {
  display:flex !important; flex-direction:column !important;
}
.site-header-cart .widget_shopping_cart.is-open ul.woocommerce-mini-cart { order:1 !important; }
.site-header-cart .widget_shopping_cart.is-open .woocommerce-mini-cart__total,
.site-header-cart .widget_shopping_cart.is-open .total {
  order:2 !important; display:block !important; margin-top:12px !important;
  min-height:40px !important;
  position:static !important; bottom:auto !important; top:auto !important;
}
.site-header-cart .widget_shopping_cart.is-open .woocommerce-mini-cart__buttons,
.site-header-cart .widget_shopping_cart.is-open .buttons {
  order:3 !important; display:flex !important; gap:10px; margin-top:10px !important;
  min-height:48px !important;
  position:static !important; bottom:auto !important; top:auto !important;
}

/* neutralisera alla hover-transitions som kan trigga reflow */
.site-header-cart .widget_shopping_cart.is-open,
.site-header-cart .widget_shopping_cart.is-open * {
  transition:none !important; animation:none !important;
}

/* behåll stabil boxstorlek (ingen “snäpp” vid scrollbar) */
.site-header-cart .widget_shopping_cart.is-open {
  width:450px !important; max-height:70vh !important;
  box-sizing:border-box !important;
  overflow-y:auto !important;
  scrollbar-gutter:stable both-edges !important;
}

/* om temat gömmer knappar/total i icke-hover-läget – tvinga dem synliga i open */
.site-header-cart.is-open .widget_shopping_cart .woocommerce-mini-cart__buttons,
.site-header-cart.is-open .widget_shopping_cart .buttons,
.site-header-cart.is-open .widget_shopping_cart .woocommerce-mini-cart__total,
.site-header-cart.is-open .widget_shopping_cart .total { display:block !important; }

/* lås trigger-stil så ikonen inte byter weight/padding när hover släpper */
.site-header-cart.is-open,
.site-header-cart.is-open .cart-contents {
  opacity:1 !important; transform:none !important; font-weight:inherit !important;
  box-shadow:none !important; border-width:0 !important;
}
