/* HTML5 display-role reset for older browsers */
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,
acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,
center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,
canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,
video{
	margin:0;
	padding:0;
	border:0;
	font-size:100%;
	vertical-align:baseline;
}
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}
body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}
table{border-collapse:collapse;border-spacing:0}
body{width:100%;}
body:before,body:after{content:"";display:table}
body:after{clear:both}

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

@font-face {
    font-family: 'Inter';
    src: url('/fonts/InterVariable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

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


@font-face {
	font-family: 'Poppins';
	src: url('/fonts/poppins-v22-latin-400.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	ascent-override: 92%;
	descent-override: 24%;
	line-gap-override: 0%;
}

@font-face {
	font-family: 'Poppins';
	src: url('/fonts/poppins-v22-latin-italic.woff2') format('woff2');
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: 'Poppins';
	src: url('/fonts/poppins-v22-latin-600.woff2') format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
	ascent-override: 92%;
	descent-override: 24%;
	line-gap-override: 0%;
}

@font-face {
	font-family: 'Poppins';
	src: url('/fonts/poppins-v22-latin-700.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
	ascent-override: 92%;
	descent-override: 24%;
	line-gap-override: 0%;
}

@font-face{font-family:Roboto;src:url(/fonts/roboto-v30-latin-regular.woff2);font-weight:400;font-style:normal;font-display:swap;ascent-override:92%;descent-override:24%;line-gap-override:0%}
@font-face{font-family:Roboto;src:url(/fonts/roboto-v30-latin-italic.woff2);font-weight:400;font-style:italic;font-display:swap;ascent-override:92%;descent-override:24%;line-gap-override:0%}
@font-face{font-family:Roboto;src:url(/fonts/roboto-v30-latin-700.woff2);font-weight:700;font-style:normal;font-display:swap;ascent-override:92%;descent-override:24%;line-gap-override:0%}
@font-face{font-family:Roboto;src:url(/fonts/roboto-v30-latin-700italic.woff2);font-weight:700;font-style:italic;font-display:swap;ascent-override:92%;descent-override:24%;line-gap-override:0%}


body {
	font-family: Poppins, Roboto, "Helvetica Neue", Arial, sans-serif;
	background-color: #FFF8F6; /* Almost white */
	color: #000000;
  	line-height: 1.4; /* Slightly more spacious lines */
	display: flex; flex-direction: column; min-height: 100vh;
	font-weight: 400;
}

h1, h2, h3, h4, h5, h6,
.promo-box-button {
	font-family: 'Poppins', Roboto, "Helvetica Neue", Arial, sans-serif;
}

.underline {
  text-decoration: underline;
}

em, i {
	font-style: italic;
}

.content-html {
	line-height: 1.5;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

/* Ta bort extra luft först/sist i innehållet */
.content-html > *:first-child {
	margin-top: 0 !important;
}

.content-html > *:last-child {
	margin-bottom: 0 !important;
}

/* Rubriker */
.content-html h1,
.content-html h2,
.content-html h3,
.content-html h4,
.content-html h5,
.content-html h6 {
	margin: 0 0 0.15em;
	line-height: 1.25;
}

.content-html h1 {
	font-size: 2em;
}

.content-html h2 {
	font-size: 1.35em;
}

.content-html h3 {
	font-size: 1.15em;
}

.content-html h4 {
	font-size: 1.05em;
}

/* Ge luft före rubrik bara när den kommer efter innehåll */
.content-html p + h1,
.content-html p + h2,
.content-html p + h3,
.content-html p + h4,
.content-html ul + h1,
.content-html ul + h2,
.content-html ul + h3,
.content-html ul + h4,
.content-html ol + h1,
.content-html ol + h2,
.content-html ol + h3,
.content-html ol + h4,
.content-html hr + h1,
.content-html hr + h2,
.content-html hr + h3,
.content-html hr + h4,
.content-html table + h1,
.content-html table + h2,
.content-html table + h3,
.content-html table + h4,
.content-html blockquote + h1,
.content-html blockquote + h2,
.content-html blockquote + h3,
.content-html blockquote + h4 {
	margin-top: 0.75em;
}

/* Brödtext */
.content-html p {
	margin: 0 0 0.75em;
}

/* Länkar */
.content-html a {
	text-decoration: underline;
	text-underline-offset: 0.08em;
}

/* Bilder */
.content-html img {
	display: block;
	max-width: 100%;
	height: auto;
	padding: 8px 0;
}

/* Centrerat innehåll */
.content-html .center {
	text-align: center;
}

.content-html .center a {
	display: inline-block;
}

.content-html .center img {
	margin: 0 auto;
	float: none;
}

.content-html .center em,
.content-html .center figcaption {
	display: block;
	margin-top: 4px;
}

/* Listor */
.content-html ul,
.content-html ol {
	margin: 0 0 0.75em;
	padding-left: 1.15em;
}

.content-html ul {
	list-style: disc;
}

.content-html ol {
	list-style: decimal;
}

.content-html li {
	margin: 0;
}

.content-html li + li {
	margin-top: 0.1em;
}

/* Om importerad html har <p> inne i <li>, undvik extra luft */
.content-html li p {
	margin: 0;
}

.content-html li p + p {
	margin-top: 0.3em;
}

/* Luft mellan text och lista */
.content-html p + ul,
.content-html p + ol {
	margin-top: -0.1em;
}

.content-html ul + p,
.content-html ol + p {
	margin-top: 0.1em;
}

/* Horisontell linje */
.content-html hr {
	margin: 0.9em 0;
	border: 0;
	border-top: 1px solid #ddd;
}

/* Citat */
.content-html blockquote {
	margin: 0.9em 0;
	padding: 0.6em 0.9em;
	border-left: 4px solid #ddd;
}

/* Tabeller */
.content-html table {
	width: 100%;
	border-collapse: collapse;
	margin: 0.9em 0;
	display: block;
	overflow-x: auto;
}

.content-html th,
.content-html td {
	padding: 7px 9px;
	border: 1px solid #ddd;
	text-align: left;
	vertical-align: top;
}

/* Inbäddat innehåll */
.content-html iframe,
.content-html video {
	display: block;
	max-width: 100%;
	margin: 0.9em 0;
}

/* Kodblock */
.content-html pre {
	overflow-x: auto;
	padding: 10px;
	margin: 0.9em 0;
}

.content-html code {
	word-break: break-word;
}

/* Read more wrapper */
.read-more-block {
	display: flow-root;
}

/* Trunkerad text */
.content-html.read-more {
	position: relative;
	max-height: var(--read-more-height, 10em);
	overflow: hidden;
	transition: max-height 0.3s ease;
}

/* Fade längst ned */
.content-html.read-more::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2em;
	background: linear-gradient(to bottom, rgba(249, 249, 249, 0) 0%, #f9f9f9 100%);
	pointer-events: none;
	transition: opacity 0.3s ease;
}

/* Expanderad */
.content-html.read-more.expanded {
	max-height: none;
}

.content-html.read-more.expanded::after {
	opacity: 0;
}

/* Ingen fade om texten redan är kort */
.content-html.read-more.no-fade::after {
	display: none;
}

/* Läs mer-länk */
.read-more-link {
	color: #007bff;
	cursor: pointer;
	margin-top: 10px;
	display: inline-block;
	text-decoration: none;
}

.read-more-link:hover {
	text-decoration: underline;
}

strong, b {
	font-weight: 700;
}

small {
  font-size: 0.85em; /* or try 0.8em or 80% */
}

.responsivetable table {
	width:100%;
	border-collapse:collapse
}

.responsivetable tbody tr:nth-of-type(odd) {
    background: #eee;
}

.responsivetable th {
	font-weight: 700;
	background-color: transparent;
	padding: 6px;
	text-align: left;
	border-bottom: 1px solid #ccc;
}

.responsivetable td {
	padding: 6px;
	border-bottom: 1px solid #ccc;
	text-align: left
}

.onlySmall{display:none !important;}
.onlyLarge{display:block}

.page-container {
	max-width: 1300px;
	width: 100%;
	margin: 0 auto;
	padding: clamp(6px, 1vw, 8px) clamp(16px, 2vw, 24px);
	flex: 1;
}



.page-container img {
  max-width: 100%;
  height: auto;
}

.header-container {
	max-width: 1300px;
	width: 100%;
	margin: 0 auto;
	padding: 0 2vw;
	display: flex;
	align-items: center;

}

.header-image {
  display: flex;                 /* Enables horizontal layout */
  justify-content: space-between; /* Pushes images to far left and right */
  align-items: center;          /* Vertically center-aligns the images */
  margin: 1vw 0;
  padding: 0.5vw;

}

:root {
    --grid-columns: 60;
	font-synthesis-weight: none;
	font-synthesis-style: none;
}

/* Main grid */
.grid {
    display: grid;
    grid-template-columns: repeat(var(--grid-columns), 1fr);
    gap: clamp(6px, 2vw, 12px);
}

/* Dynamic nested grids */
.grid-item {
    display: flex;
    flex-direction: column;
}

/* Dynamic span sizes */
[style*="--span-columns"] {
    grid-column: span var(--span-columns) / auto;
}

.grid-item > img {
	display: block;
	max-width: 100%;
	width: auto !important;
	height: auto;
	align-self: flex-start;
}


/* Inner styling box */
.item-inner {
	padding: clamp(12px, 1.5vw, 16px);
}

/* Inner styling box */
.item-inner-white-box {
	background-color: white;
	padding: 16px;
	border: 1px solid #eee;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Soft shadow */	
	height: 100%;
}

.item-inner-white-box img {
    display: inline-block;      /* Keeps it inline-like, but allows box properties */
    max-width: 100%;            /* Shrinks to fit container */
    height: auto;               /* Maintains aspect ratio */
    vertical-align: middle;     /* Optional: aligns with text */
}

.promo-box {
	position: relative;
}

/* Bara för varianten där hela boxen är en länk */
.promo-box-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.promo-box-inner {
	position: relative;
	border-radius: 24px;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: #8E385B; /* fallback när bild saknas */
}

/* Bilden fungerar som bakgrundslager */
.promo-box-media {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}

/* Gradient ovanpå bilden */
.promo-box-inner::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(0,0,0,0.45) 0%,
		rgba(0,0,0,0.15) 40%,
		rgba(0,0,0,0.35) 100%
	);
	pointer-events: none;
	z-index: 1;
}

.promo-box-overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	padding: 28px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.promo-box-content {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 100%;
}

.promo-box h2 {
	margin: 0;
	padding: 0;
	color: #fff;
	font-size: 2.2rem;
	line-height: 1.2;
	font-weight: 700;
	max-width: 320px;
}

/* Gemensam knappstil */
.promo-box-button {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	align-self: flex-start;
	padding: 14px 24px;
	border-radius: 999px;
	background: #fff;
	color: #222;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1;
	box-shadow: 0 2px 10px rgba(0,0,0,0.12);
	text-decoration: none;
}

.promo-box-arrow {
	font-size: 1.2rem;
	line-height: 1;
}

/* Knapprad i boxen utan helklick */
.promo-box-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 20px;
	width: 100%;
	align-self: flex-start;
}

/* Om boxen saknar bild: ingen gradient */
.promo-box-inner:not(:has(.promo-box-media))::after {
	display: none;
}

.bread-crumbs {
	font-size: 14px;
	color: #888;
	margin-bottom: 14px;
}

.bread-crumbs a {
	color: #666;
	text-decoration: none;
}

.bread-crumbs a:hover {
	color: #000;
	text-decoration: underline;
}

.bread-crumbs strong {
	color: #000;
	font-weight: 500;
}

.bread-crumbs .sep {
	color: #bbb;
	margin: 0 6px;
}

.brand-strip {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	overflow-y: hidden;
	gap: 10px;
	width: 100%;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: none;
	scrollbar-width: none;
}

.brand-strip-item {
	flex: 0 0 calc((100% - (7 * 10px)) / 8);
	min-width: calc((100% - (7 * 10px)) / 8);
	box-sizing: border-box;
	scroll-snap-align: none;
}

.brand-strip-box {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100px;
	padding: 5px;
	box-sizing: border-box;
}

.brand-strip-link {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 100%;
	text-decoration: none;
}

.brand-strip-link img {
	display: block;
	max-width: 100%;
	max-height: 70px;
	width: auto;
	height: auto;
	object-fit: contain;
}

/* Döljer scrollbar visuellt, valfritt */
.brand-strip {
	scrollbar-width: none;
}

.brand-strip::-webkit-scrollbar {
	display: none;
}

.brand-letter {
	border-bottom: 1px solid #e5e5e5;
	font-size: 2em;
	padding-bottom: 5px;
	margin-bottom: 10px;
}

.brand-letter-group {
	margin-bottom: 25px;
}

.brand-list {
	list-style: none;
	padding: 0;
	margin: 0 0 30px 0;

	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 8px 20px;
}

.bg-white {
	background-color: #ffffff;
}	

.bg-grey {
	background-color: #f0f0f0;
}


.subcat-wrap {
	width: 100%;
	max-width: 100%;      /* don’t overflow small screens */
	padding: 10px 0px;
}

.subcat-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 10px 16px;       /* fixed vertical / horizontal spacing between items */
	justify-content: start; /* keep the grid aligned to the left */
	width: 100%;
}

.subcat-grid a {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;  /* 👈 ändrad */
	text-align: left;             /* 👈 viktig */

	padding: 8px 12px;
	font-weight: 600;

	
	text-decoration: none;

	border: 1px solid #ddd;
	border-radius: 6px;
	background: #ffffff;

	white-space: normal;
	word-break: break-word;
	/*box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
	transition: all 0.2s ease;
}

.subcat-grid a:hover {
	background: #f5f5f5;
	border-color: #ccc;
	color: #000;
}

.hoverimage { border: 0px; position:absolute;left:0px;top:0px;z-index:1; }
.nobr {white-space: nowrap} 

.arrow-nav {margin: 0; padding: 0;}
.arrow-nav span a {width: 29px; height: 27px;  margin-left: 10px; margin-right: 10px; display: block; background: url(theme/bg_direction_nav.png) no-repeat; position: absolute; top: 0%; cursor: pointer; text-indent: -999em;}
.arrow-nav span .next {background-position: -27px 0; right: 0px;}
.arrow-nav span .prev {left: 0px;}
.arrow-nav span .disabled {opacity: .3; filter:alpha(opacity=30); cursor: default;}
.arrow-nav span .disabled:hover {opacity: .3; filter:alpha(opacity=30); cursor: default;}
.arrow-nav span a:hover {opacity: .8; filter:alpha(opacity=80);}

.modal-overlay {
	position: fixed;
	top: 0; left: 0;
	width: 100%; height: 100%;
	background: rgba(0,0,0,0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	z-index: 9999;
}

.modal-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 50px;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 16px;
	box-sizing: border-box;
	z-index: 2;
}

.modal-title {
	font-size: 1.3em;
	font-weight: bold;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: calc(100% - 40px);
}

.modal-content {
	background: #fff;
	max-width: 90vw;
	width: fit-content;
	max-height: 90vh;
	padding: 50px 16px 16px 16px;
	box-sizing: border-box;
	border-radius: 6px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	position: relative;
}

.modal-iframe {
	width: 100%;
	flex-grow: 1;
	min-height: 100px;
	max-height: calc(90vh - 50px - 32px);
	border: none;
	overflow: auto;
	display: block;
}

.modal-close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 1;
	background: transparent;
	border: none;
	font-size: 24px;
	cursor: pointer;
}

body.modal-open {
  overflow: hidden;
}

#customModal {
	transition: opacity 0.2s ease;
}

.image-modal {
	position: fixed;
	top: 0; left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10000;
}

.image-wrapper {
	position: relative;
	background: white;
	padding: 1rem;
	border-radius: 10px;
	max-width: calc(100% - 2rem);
	max-height: 100%;
	box-sizing: border-box;
	overflow: auto;
}

.image-wrapper img {
	width: 100%;
	height: auto;
	max-height: 95vh;
	display: block;
	margin: 0 auto;
	border-radius: 6px;
	object-fit: contain;
	cursor: default;
}

.image-wrapper img.clickable-image {
	cursor: pointer;
}

.image-wrapper .nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	font-size: clamp(1rem, 4vw, 2rem);
	background: rgba(255, 255, 255, 0.7);
	color: black;
	border: none;
	padding: 0.7rem;
	cursor: pointer;
	z-index: 10001;
	user-select: none;
	border-radius: 4px;
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
	opacity: 0.3;
	transition: opacity 0.5s ease-in-out;
	pointer-events: none;
}

.image-wrapper.hover-left .nav.left,
.image-wrapper.hover-right .nav.right {
	opacity: 1;
	pointer-events: auto;
}

.image-wrapper .nav.left {
	left: 10px;
}

.image-wrapper .nav.right {
	right: 10px;
}

/* Close button */
.image-wrapper .close {
	position: absolute;
	top: 10px;
	right: 10px;
	font-size: clamp(1rem, 4vw, 2rem);
	background: rgba(255, 255, 255, 0.7);
	color: black;
	border: none;
	padding: 0.7rem;
	cursor: pointer;
	z-index: 10001;
	user-select: none;
	border-radius: 4px;
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
	transition: background 0.2s ease;
}


.image-wrapper .close:hover {
	background: rgba(255, 255, 255, 0.9);
}

.cookie-banner {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.cookie-banner-box {
	position: relative;
	top: 50%;
	left: 50%;
	max-width: 500px;
	transform: translate(-50%, -50%);
	padding: 10px;
}

.cookie-banner-content {
	border: solid black 1px;
	margin: 10px;
	padding: 20px;
	background-color: #ffffff;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.consentButton {
	border: 1px solid black;
	background: #8E385B;
	font-size: 1em;
	padding: 0.5em 0.6em;
	font-weight: 700;
	color: #FFFFFF;
	text-decoration: none;
	font-family: 'Roboto', 'Georgia', Helvetica, sans-serif;
	border-radius: 4px;
}

.consentButton:hover {
	background-color: #000000 !important;
	color: #ffffff !important;
	cursor: pointer;
	text-decoration: none;	
} 

.youtube {
    position: relative;
    display: inline-block;
}

.youtube::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Play triangle */
.youtube::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%) scale(1);
    width: 0;
    height: 0;
    border-left: 18px solid white;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    z-index: 11;
    transition: transform 0.3s ease;
}

/* Hover effect: scale both circle and arrow */
.youtube:hover::before {
    transform: translate(-50%, -50%) scale(1.1);
	background-color: rgba(0, 0, 0, 0.8);
}

.youtube:hover::after {
    transform: translate(-40%, -50%) scale(1.2);
}

.sticky {
	position: sticky;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
}  

.sticky:before,
.sticky:after {
    content: '';
    display: table;
}

.hide, .hidden {
	display:none;
}

.show {
	display:block;
}

.visually-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

div.toggle {
	cursor:pointer;
	color: #4A611C;
}

div.toggle:hover {
	color: #999999;
	text-decoration: underline;
}

td {
	padding: 4px;
}

tr.zEven td
{
	border-bottom:1px solid #999999;
	background-color:#eee;
}

tr.zOdd td,.zOddTd
{
	border-bottom:1px solid #999999;
	background-color:#fff;
}

tr.zHeader td,.zHeaderTd
{
	font-weight: bold;
	border-bottom:1px solid #000000;
}

h1 {
	font-size: 2em;
	margin: 0 0 0.15em;
	line-height: 1.25;
	color: #000000;
	font-weight: 600;
}
	
h2 {
	font-size: 1.35em;
	margin: 0 0 0.15em;
	line-height: 1.25;
	color: #333333;
	font-weight: 600;

}

h3 {
	font-size: 1.15em;
	margin: 0 0 0.15em;
	line-height: 1.25;
	color: #000000;

}

p + h1,
p + h2,
p + h3,
p + h4,
ul + h1,
ul + h2,
ul + h3,
ul + h4,
ol + h1,
ol + h2,
ol + h3,
ol + h4,
hr + h1,
hr + h2,
hr + h3,
hr + h4,
table + h1,
table + h2,
table + h3,
table + h4,
blockquote + h1,
blockquote + h2,
blockquote + h3,
blockquote + h4 {
	margin-top: 0.75em;
}

p + p {
	margin-top: 8px;
}

a {
	color: #4A611C;
	text-decoration: underline;
}

.shoppingCart a {
	text-decoration: none;
}

.fluid-form {
	position:relative;
	padding:0;
	width: 100%;
}

.fluid-form div .input {
	width: 100%;
	
}

.fluid-form .button {
	width:50px;
	position:absolute;
	right:0;
	top:0;
}

a:hover {
	color: #999999;
	text-decoration: underline;
}

.xsmall {
	font-size: 0.7em;
}

.small {
	font-size: 0.8em;
}

.medium {
	font-size: 0.95em;
}

.large {
	font-size: 1.1em;
}

.xlarge {
	font-size: 1.2em;
}

.transparent {
	zoom: 1;
	filter: alpha(opacity=80);
	opacity: 0.8;
}

.arrow {
  border: solid #4A611C;
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 4px;
  margin: 2px;
  transition: transform 0.3s, border-color 0.3s;
  cursor: pointer;
}

.arrow.right {
  transform: rotate(-45deg);
}

.arrow.left {
  transform: rotate(135deg);
}

.arrow.up {
  transform: rotate(-135deg);
}

.arrow.down {
  transform: rotate(45deg);
}

.subCategory {
	display:inline;
	background:white;
	padding:3px 0;
	box-shadow: -3px 0 0 white, 3px 0 0 white;
}

.subCategoryActive {
	display:inline;
	color: #ffffff;
	background:#4A611C;
	padding:3px 0;
	box-shadow: -3px 0 0 #4A611C, 3px 0 0 #4A611C;
}

.content {
	padding: 0 clamp(12px, 1.5vw, 16px);
}

.product {
	position: relative; /* Ensure the product itself is positioned correctly for the hover image */
	height: 100%;
	display: flex;
	flex-direction: column;
	text-align: center;
}

.product a {
	text-decoration: none;
	color: #4A611C;
}

.product a:hover {
	color: #999999;
}

.product-slider-wrapper {
	padding: 0px;
}

.product-container {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: clamp(6px, 2vw, 12px);

}

.product-item {
	position: relative; /* This is required to position the hoverimage absolutely inside it */
	overflow: visible;  /* Ensure the hover image is not clipped by any overflow */		
	background-color: white;
	padding: 12px;
	text-align: center;
	border: 1px solid #eee;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Soft shadow */	
	min-width: 0;
	box-sizing: border-box;

}

/* ===== CATEGORY BOX ===== */

.cat-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	text-decoration: none;
	color: #171717;
	width: 100%;
}

/* ===== CIRKEL ===== */

.cat-circle {
	width: 100%;              /* 🔥 styrs av grid-item */
	aspect-ratio: 1 / 1;

	border-radius: 50%;


	background: radial-gradient(69.7% 69.7% at 50% 50%, #ffffff 0%, #ffe4df 100%);

	display: flex;
	align-items: center;
	justify-content: center;

	overflow: hidden;
	position: relative;

	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* ===== BILD ===== */

.cat-image {
	width: 100%;
	height: 100%;

	background-repeat: no-repeat;
	background-position: center;

	/* 🔥 justera mellan 55–70 beroende på bild */
	background-size: 65%;

	/* 💥 gör att vit bakgrund "försvinner" */
	mix-blend-mode: multiply;

	transition: transform 0.2s ease;
}

/* ===== TITEL ===== */

.cat-title {
	margin-top: 10px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
}

/* ===== HOVER ===== */

.cat-box:hover .cat-circle {
	box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* ===== OPTIONAL: MAX SIZE (rekommenderas ofta) ===== */
/* Ta bort om du vill att den ska fylla helt */

.cat-circle {
	max-width: 160px;
}

/* Star Container */
.star-container {
    position: relative;
    display: inline-block;
    font-size: clamp(20px, 3vw, 30px);
    cursor: pointer;
    line-height: 1;  /* Reduce line height to remove extra space */
    vertical-align: middle;  /* Align vertically */
    padding-top: 0;  /* Remove padding at the top */
    margin-top: -8px;  /* Slight negative margin to pull the stars up */	
}

/* Background Stars */
.star-background {
    color: #ccc;
    white-space: nowrap;
}

/* Foreground Stars */
.star-foreground {
    color: #f8c72a;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    white-space: nowrap;
    width: 0; /* Set by JS */
}

/* Popdown Styles */
.star-popdown {
    display: none;
    position: absolute;
    top: 100%;
    background-color: #ffffff;
    border: 1px solid #ddd;
    padding: 10px;
    margin-top: 5px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    z-index: 10;
    white-space: nowrap;
    min-width: 200px;
    cursor: default;
    font-size: initial;
    line-height: 1.4;
}

/* Show the Popdown on Hover */
.star-container:hover .star-popdown {
    display: block;
}

/* Prevent Overflow */
.star-container .star-popdown {
    left: auto;
    transform: translateX(0);
}

/* Overlay Styles */
.product-info-overlay {
    position: absolute;
    top: -12px;
    right: -12px;
	background-color: rgba(255, 255, 255, 0.8); /* 80% opaque white */
    color: #000000;
    padding: 10px;
    text-align: center;
    border-radius: 0 8px 0 8px;
    z-index: 2;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Soft shadow */
	pointer-events: none; /* Prevents the overlay from triggering hover */
}

/* Hover effect */
.product-item:hover .product-info-overlay {
    opacity: 1;
    transform: translateX(0);
}

/* Optional styling for the text */
.product-info-overlay p {
    margin: 5px 0;
    font-size: 0.9rem;
    font-weight: bold;
}
  
.product-item:hover {
	border-color: #4CAF50;
}  

/* Instantly hide when hovering out */
.product-item:not(:hover) .product-info-overlay {
    transition: none !important;
}

/* Shopping cart container */
.shopping-cart {
    position: relative;
    font-size: 18px;
    display: flex;
    margin-left: auto;
    align-items: center; /* vertical center of icon + count */
}

/* Cart icon and count next to each other */
.cart-icon {
    display: flex;
    align-items: center; /* vertical center */
    text-decoration: none;
    transition: transform 0.4s ease;
	transform-origin: center;
}

/* Image inside the cart icon */
.cart-icon img {
    max-width: 32px;
    height: auto;
}

/* Cart count bubble */
.cart-count {
    background: #ffffff;
    color: #000000;
    font-weight: bold;
    padding: 4px;
    border-radius: 50%;
    margin-left: 6px;
    font-size: 14px;
    min-width: 26px;
	height: 26px;
    line-height: 20px;
    text-align: center;
	display: inline-block;
}

/* Bump animation */
.cart-icon.cart-bump {
    animation: bump 0.4s ease forwards;
}

@keyframes bump {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}


.info-section {
  margin-bottom: clamp(6px, 2vw, 12px);
}

.toggle-button {
  background-color: #f0f0f0;
  border: none;
  padding: 0.75em 1em;
  width: 100%;
  text-align: left;
  font-weight: 700;
  cursor: pointer;
  border-radius: 5px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  font-size: 1em;
  transition: background-color 0.2s ease; /* <--- Add this */
}

.toggle-button:hover {
  background-color: #e0e0e0;
}

.toggle-icon {
  font-weight: 700;
  font-size: 1.2em;
  transition: transform 0.3s ease;
  display: inline-block;
  margin-left: auto;
}

.info-section.open .toggle-icon {
  transform: rotate(180deg);
}

.info-content {
  max-height: 0;
  overflow: hidden;
  background-color: transparent;
  padding: 0 1em;
  margin-top: 0em;
}

.info-section.open .info-content {
	max-height: 100%; /* Enough for most content */
	padding: 1em;
}

.info-section.open .toggle-icon {
  content: "-";
}

/* Scroll + maxhöjd ENDAST när sektionen är öppen */
.info-section.open .review-list {
	max-height: 400px;
	overflow-y: auto;
	padding-right: 8px;
}


/* Enskild recension */
.review-item {
	padding: 14px 10px;
	border-bottom: 1px solid #e5e5e5;
}

.review-item:last-child {
	border-bottom: 0;
}


/* Header: namn + datum + stjärnor */
.review-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 8px;
}


/* Namn + datum */
.review-meta {
	min-width: 0;
}

.review-name {
	margin: 0 0 4px 0;
	font-size: 18px;
	line-height: 1.2;
}

.review-date {
	font-size: 14px;
	line-height: 1.3;
	color: #666;
}


/* Stjärnor (höger) */
.review-stars {
	flex-shrink: 0;
	white-space: nowrap;
	font-size: 20px;
	line-height: 1;
}

.review-stars .star {
	color: #ccc;
}

.review-stars .star.filled {
	color: #f5b301;
}


/* Text */
.review-text {
	font-size: 15px;
	line-height: 1.5;
	word-break: break-word;
}

.review-text p {
	margin: 0;
}


.sort-container {
  display: flex;
  align-items: center;    /* 🔥 Vertically align children */
  flex-wrap: wrap;
  align-items: flex-start;
}

.sort-buttons {
  display: flex;
  flex-wrap: wrap;
  flex-grow: 1;
  min-width: 300px; /* Ensures buttons take as much space as they can */
}

.sort-wrapper {
  display: inline-block;
  position: relative;
  margin-right: 0.2rem;
}

/* Label */
.sort-label {
  font-weight: bold;
  color: #000;
}

/* Button */
.sort-button {
	padding: 0px 6px;
	background: transparent;
	color: #4A611C;
	border: none;
	cursor: pointer;
	font-size: 16px;
	font-weight: 700;
	transition: color 0.3s;
}
.sort-button:hover {
	color: #000;
}

.sort-button .arrow {
	border: solid #4A611C;
	border-width: 0 2px 2px 0;
	display: inline-block;
	padding: 3px;
	margin-bottom: 2px;
	transform: rotate(45deg);
	transition: transform 0.3s, border-color 0.3s;
}

.sort-button .sort-active {
	font-size: 14px;
}

/* “Open” state */
.sort-wrapper.open .sort-menu {
  display: block;
}
.sort-wrapper.open .sort-button .arrow {
  transform: rotate(225deg);
}

.button-wrapper {
  position: relative; /* positioning context for the dropdown */
  display: inline-block; /* shrink-wrap the button */
}

/* Dropdown */
.sort-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: #fff;
	border: 1px solid #ddd;
	min-width: 250px;
	box-shadow: 0 8px 16px rgba(0,0,0,0.2);
	border-radius: 4px;
	overflow: hidden;
	z-index: 100;
	padding: 10px;
	width: max-content;
	overflow-y: auto; /* Enables vertical scrolling */
	max-height: 300px; /* Or whatever fits your layout */
}

.sort-menu a {
  display: block;
  padding: 10px 12px;
  color: #000;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}
.sort-menu a:hover {
  background-color: #4A611C;
  color: #fff;
}
.sort-menu a.active {
  background-color: #f0f0f0;
}

.display-type-icons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 100px;
  flex-shrink: 0; /* Prevent shrinking */
}

.search-wrapper {
  flex: 1 1 auto;  /* allow grow & shrink */
  max-width: 500px; /* limit max width */
  min-width: 0; /* important for flexbox to allow shrinking */
  display: flex;
}

.search-container {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%; /* take full width of wrapper */
}

.search-input {
  flex: 1 1 auto; /* grow and shrink */
  min-width: 0;   /* prevent input from forcing container wider */
  padding: 4px;
  font-size: 16px;
}

.search-button {
    padding: 4px 8px;
    font-size: 16px;
    cursor: pointer;
    white-space: nowrap;
}

.autocomplete-list {
    margin-top: 40px;
    border: 1px solid #d4d4d4;
    max-height: 300px;
    max-width: 500px;
    overflow-y: auto;
    position: absolute;
    width: 100%;
    background-color: #fff;
    z-index: 100000;
    display: none;
}

.autocomplete-list div {
    padding: 10px;
    cursor: pointer;
    background-color: #fff;
    border-bottom: 1px solid #d4d4d4;
}

.autocomplete-list div:hover {
    background-color: #e9e9e9;
}

.footer {
	margin-top: 2vw;
	background-color: #4E192E;
	padding: 2vw 0;
	color: #ffffff;
}

.footer a {
	color: #ffffff;
}

.footer h2 {
	color: #ffffff;
}

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


.topMenu {

	display: flex;
	justify-content: flex-start; /* Align the menu items to the left */
	position: relative;
	flex-wrap: nowrap;
	flex-grow: 1;
    position: relative;  

}

.menu-header {
	display: none;
}

.close-menu {
	display: none;
}

.menuWrapper {
	position: relative;
	display: flex;
	justify-content: flex-start; /* Align menu item to the left within the wrapper */
}

.menuItem {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
}

.menuItem > a {
	color: #ffffff;
	text-decoration: none;
	padding: 10px 20px;
	display: inline-block;
	white-space: nowrap;
	font-weight: 700;
}

.menuItem:hover > a {
  background-color: #444;
  color: #ffffff;
}

/* === Submenu styling === */
.subMenu .menuItem {
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	width: 100%;
	padding: 0px;
}

.subMenu .menuItem > a {
	color: #4A611C;
	text-decoration: none;
	padding: 10px 20px;
	display: block;
	width: 100%;
	font-weight: 500;
	text-align: left;
	white-space: normal;
}

.subMenu .menuItem:hover > a {
	background-color: #ddd;
	color: #000;
}

.subMenu {
	position: absolute;
	top: 100%;
	left: 0;
	width: max-content;
	background-color: #f0f0f0;
	display: none;
	z-index: 1000;
	padding: 10px 10px;
	box-shadow: 0 6px 6px -4px rgba(0, 0, 0, 0.2);
    flex-direction: row; 
    flex-wrap: wrap;
    max-width: none;
	max-height: min(70vh, 480px);      /* cap the height responsively */
	overflow: auto;                    /* <-- enable scrollbars when needed */
	overscroll-behavior: contain;      /* keep wheel/trackpad from scrolling the page underneath */
}

.submenu-toggle {
   display: none;
}

.subMenu a {
	color: #4A611C;
	text-decoration: none;
	padding: 0.75rem;
}

.subMenu a:hover {
	color: #999999;
}

.no-scroll {
	overflow: hidden;
	touch-action: none;
}

/* Hamburger menu icon */
.hamburger-menu {
  display: none;
  cursor: pointer;
  font-size: 30px;
  color: #ffffff;
}

.subMenu .back-button {
    display: none;

}

.slider-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 3 / 1;
  border-radius: 12px;
}

/* Each slide */
.slider-slide {
  display: none;
  width: 100%;
  height: 100%;
  transition: opacity 0.5s ease;
  position: absolute;
  top: 0;
  left: 0;
}

.slider-slide.slider-active {
  display: block;
  position: relative;
}

/* Make entire slide clickable */
.slider-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* Slide background image */
.slider-background {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: transform 0.3s ease;
}

.slider-overlay {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0.5rem 1rem;
  /* Remove background */
  background: none;
  color: #fff;
  border-radius: 0;
  /* Optional: spacing tweaks */
  z-index: 2;
}

/* Apply text-shadow to improve contrast */
.slider-overlay h1,
.slider-overlay p {
	margin: 0;
	padding: 0.2rem 0;
	color: white;
	text-shadow:
		  -1px -1px 1px #4A611C,
		   1px -1px 1px #4A611C,
		  -1px  1px 1px #4A611C,
		   1px  1px 1px #4A611C;
}

.slider-overlay h1 {
	font-size: 300%;
}

.slider-overlay p {
	font-size: 200%;
}

/* Nav buttons */
.slider-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	background: rgba(255, 255, 255, 0.70);
	border: none;
	color: #333;
	font-size: 2rem;
	width: 40px;
	height: 46px;
	cursor: pointer;
	transition: background-color 0.3s ease, color 0.3s ease;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.slider-nav:hover {
  background-color: #ffff;
  color: #000;
}

.slider-prev {
  left: 10px;
}

.slider-next {
  right: 10px;
}

/* Pagination dots */
.slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.slider-dot:hover {
  background: rgba(255, 255, 255, 0.9);
}

.slider-dot-active {
  background: rgba(255, 255, 255, 1);
}

/* Hide controls by default */
.slider-prev,
.slider-next,
.slider-dots {
  display: none;
}

.pagination-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0px;
}

.pagination-prev,
.pagination-next {
	flex: 1;
}

.pagination-prev a,
.pagination-next a {
	text-decoration: none;
	white-space: nowrap;
}

.pagination-prev.disabled,
.pagination-next.disabled {
	padding: 8px 0px;
	color: #ccc;
	user-select: none;
	white-space: nowrap;
}

.pagination-pages {
	flex: 2;
	display: flex;
	justify-content: center;
	gap: 6px;
	flex-wrap: wrap;
}

.pagination-pages a,
.pagination-pages span {
	display: inline-block;
	padding: 6px 6px;
	border: 1px solid #4A611C;
	border-radius: 4px;
	color: #4A611C;
	text-decoration: none;
	cursor: pointer;
	min-width: 28px;
	text-align: center;
	user-select: none;
}

.pagination-pages a:hover {
	background-color: #4A611C;
	color: white;
}

.pagination-pages .current {
	background-color: #4A611C;
	color: white;
	font-weight: bold;
	cursor: default;
}

.pagination-pages .ellipsis {
	border: none;
	cursor: default;
	color: #666;
}

.pagination-mobile-info {
	display: none;
	flex: 2;
	text-align: center;
	color: #4A611C;
	user-select: none;
}

strong {
	font-weight: 700;
}

.button-place-order {
	border: 1px solid black;
	background: #009900;
	font-size: 1em;
	padding: 10px;
	font-weight: 700;
	color: #FFFFFF;
	text-decoration: none;
}

.button-place-order:hover {
	background-color: #000000;
	color: #ffffff;
	cursor: pointer;
	text-decoration: none;	
}

/* ===== Base Button Styles ===== */
.button,
a.button,
input.button,
button.button {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    background-color: #006c00; /* default fallback */
    color: #fff;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    transform: translateZ(0);
    backface-visibility: hidden;
    appearance: none;
    -webkit-appearance: none;
	font-family: 'verdana';
	font-size: 1em;
	line-height: 1.4;
	border: solid black 1px;
}


/* ===== Shared Hover Effects ===== */
a.button:hover,
input.button:hover,
button.button:hover {
    background-color: #444444;
    color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15); /* same as default */
    text-decoration: none;
}

/* ===== Button Color Variants ===== */
a.button.green  { background-color: #007700; color: #fff; }
a.button.yellow { background-color: #eedd00; color: #000; }
a.button.red    { background-color: #990000; color: #fff; }
a.button.grey   { background-color: #999999; color: #333; }
a.button.blue   { background-color: #0000ee; color: #fff; }

/* Optional: Keep yellow and grey hover text white */
a.button.yellow:hover,
a.button.grey:hover {
    color: #fff;
}

a.button.green:hover,
a.button.red:hover,
a.button.yellow:hover,
a.button.grey:hover,
a.button.blue:hover {
    background-color: #444444;
}

input[type="text"],
input[type="email"],
input[type="search"],
input[type="password"],
textarea,
select {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'verdana';
    font-size: 1em;
    line-height: 1.4;
    border: solid black 1px;
    background-color: #fff;
    color: #000;
    transition: box-shadow 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    appearance: none;
    -webkit-appearance: none;
}

select {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'verdana';
    font-size: 1em;
    line-height: 1.4;
    border: solid black 1px;
    background-color: #fff;
    color: #000;
    transition: box-shadow 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2210%22%20height%3D%227%22%20viewBox%3D%220%200%2010%207%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M0%200l5%207%205-7z%22%20fill%3D%22%23000%22/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5em center;
    background-size: 0.65em auto;
    padding-right: 2em; /* space for arrow */
}

.round {
	-moz-border-radius: 5px;
	border-radius: 5px;
}

.shadow {
	-moz-box-shadow: 3px 3px 4px #000;
	-webkit-box-shadow: 3px 3px 4px #000;
	box-shadow: 3px 3px 4px #000;
	/* For IE 8 */
	-ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#000000')";
	/* For IE 5.5 - 7 */
	filter: progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#000000');
}

.menu ul
{
margin: 0;
padding: 0;

}

.menu li
{
	display: inline;
	margin: 0;
	padding: 0;
	/* for IE5 and IE6 */
	width: 100%;
	margin-bottom: 0; 
}

.menu a
{
	display: block;
	margin: 0;
	padding: 5px;
	/*background-color: #eeeeee;
	border: solid black 1px;*/
	text-align: left;
	text-decoration: none;
	color: #4A611C;
	font-weight: 700;
	margin-bottom: 0.3em;

}

.menu a:hover { background-color: #000000; color: #ffffff; }

.menu a.current {
	background-color: #4A611C;
	color: #ffffff;
	display: block;
	}



.playbutton {
	opacity:0.6;
	filter:alpha(opacity=60);
}

.playbutton:hover {
	opacity:0.8;
	filter:alpha(opacity=80);
}

.fluid_img {
  height: auto;
  width: auto;
}




/* Medium screens: 4 per row */
@media (min-width: 768px) and (max-width: 1024px) {

    :root {
        --grid-columns: 48; /* 48 columns for iPad */
    }
    
    .grid {
        grid-template-columns: repeat(var(--grid-columns), 1fr); /* 48 columns for iPad */
    }
	
	.product-container {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		gap: clamp(6px, 2vw, 12px);
		padding-bottom: 8px;
		padding-top: 10px;
	}

	.product-item {
		flex: 0 0 calc(25% - (clamp(6px, 2vw, 12px) * 3 / 4));
		scroll-snap-align: start;
	}		

    [style*="--span-columns: 60"] {
        grid-column: span 48;
    }

    [style*="--span-columns: 30"] {
        grid-column: span 24;
    }

    [style*="--span-columns: 12"] {
        grid-column: span 12;
    }

    [style*="--span-columns: 10"] {
        grid-column: span 12;
    }

    [style*="--span-columns"]:not([style*="--span-columns: 60"]):not([style*="--span-columns: 30"]):not([style*="--span-columns: 12"]):not([style*="--span-columns: 10"]) {
        grid-column: span var(--span-columns);
    }
	

}


/* Mobile responsive */
@media (max-width: 768px) {
	  
    .grid {
		display: grid;
        grid-template-columns: repeat(6, 1fr);
    }
	
/* default: 1 per rad */
[style*="--span-columns"] {
    grid-column: span 6;
}

/* 2 per rad */
[style*="--span-columns: 12;"],
[style*="--span-columns: 10;"] {
    grid-column: span 3;
}

/* 3 per rad */
[style*="--span-columns: 6;"] {
    grid-column: span 2;
}
	
	
	.header-container {
		padding: 0;
	}
	
	.header-image {
		margin: 0;
		padding: 10px;
		border: none;
		border-radius: 0;
		box-shadow: none;
		width: 100%;
	}

	.sort-container {
		display: flex;
		align-items: center;
		flex-wrap: wrap;
		align-items: flex-start;
	}

	.sort-buttons {
		display: flex;
		flex-wrap: wrap;
		flex-grow: 1;
		width: 300px;
	}

	.button-wrapper {
		position: relative;
		width: 100%;
	}


	.sort-wrapper {
		width: 100%;
		border-bottom: 1px solid #ddd;
	}

	.sort-button {
		width: 100%;
		text-align: left;
		background: #f5f5f5;
		color: #4A611C;
		font-size: 16px;
		padding: 10px;
		border-top: 1px solid #ddd;
	}

	.sort-menu {
		display: none;
		padding: 10px;
		border-top: none;
		box-shadow: none;
		border: none;
		max-height: none;
		position: relative;
		width: 100%;
		max-height: 300px;
		overflow-y: auto;	
	}

	.sort-summary {
		font-size: 80%;
		margin-left: 4px;
	}
 
	.sort-wrapper.open .sort-menu {
		display: block;
	} 

	.sort-button .arrow {
		float: right;
	}  

	.slider-overlay {
		padding: 0.5rem 1rem;
	}  	  
	  
	.slider-overlay h1 {
		font-size: 150%;
	}

	.slider-overlay p {
		font-size: 100%;
	}  
	  
	.slider-nav {
		display: none !important;
	}

	.promo-box-inner {
		aspect-ratio: 16 / 10;
		
	}

	.promo-box-overlay {
		padding: 18px;
	}

	.promo-box h2 {
		font-size: 1.7rem;
		max-width: 220px;
	}

	.promo-box-button {
		padding: 12px 18px;
		font-size: 0.95rem;
	}

	.promo-box-buttons {
		gap: 10px;
	}

	.brand-strip-item {
		flex: 0 0 calc((100% - (2 * 10px)) / 3);
		max-width: calc((100% - (2 * 10px)) / 3);
	}

	.brand-strip-box {
		min-height: 75px;
		padding: 8px;
	}

	.brand-strip-link img {
		max-height: 42px;
	}

	
	.product-container {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		gap: clamp(6px, 2vw, 12px);
		padding: 8px 0px; /* vertical and horizontal padding */

	}

	.product-item {
		flex: 0 0 calc(50% - (clamp(6px, 2vw, 12px)/2)); /* Two items per view with gap accounted */
		scroll-snap-align: start;
	}	
	
    .product-info-overlay {
        display: none;
    }
	
	.category-grid {
		display: flex !important;           /* override grid */
		overflow-x: auto;
		gap: 10px;

		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;

		padding-bottom: 10px; /* lite luft */
	}

	.category-grid .grid-item {
		flex: 0 0 calc(33.333% - 10px);  /* 🔥 3 per view */
		max-width: calc(33.333% - 10px);

		
	}

	.category-grid::-webkit-scrollbar {
	display: none;
}

.category-grid {
	scrollbar-width: none;
}
	
    .autocomplete-list {
        width: 80%;
        font-size: 16px;
    }

    .autocomplete-list div {
        font-size: 16px;
    }
	
  .search-wrapper {
    flex-basis: 100%;  /* take full row */
    max-width: 100%;
  }
	
	.responsivetable table,.responsivetable thead,.responsivetable tbody,.responsivetable th,.responsivetable td,.responsivetable tr {
		display:block;
	}

	.responsivetable thead tr {
		position:absolute;
		top:-9999px;
		left:-9999px;
	}

	.responsivetable tr {
		border-bottom:1px solid #ccc;
	}

	.responsivetable td {
		border:0;
		position:relative;
		padding-left:110px;
		text-align:left!important;
	}

	.responsivetable td:before {
		content: attr(data-label);
		position: absolute;
		top: 6px;
		left: 6px;
		min-width: 100px;
		white-space: nowrap;
		padding-right: 10px;
		text-align: left;
		font-weight: bold;
	}

	.forumheader td:nth-of-type(1):before{content:"Forum"}
	.forumheader td:nth-of-type(2):before{content:"Antal tr\0000E5dar"}
	.forumheader td:nth-of-type(3):before{content:"Antal inl\0000E4gg"}
	.forumheader td:nth-of-type(4):before{content:"Senaste inl\0000E4gget"}
	.threadheader td:nth-of-type(1):before{content:"Tr\0000E5d"}
	.threadheader td:nth-of-type(2):before{content:"Antal inl\0000E4gg"}
	.threadheader td:nth-of-type(3):before{content:"Skapad av"}
	.threadheader td:nth-of-type(4):before{content:"Senaste inl\0000E4gget"}
	.marketplaceheader td:nth-of-type(1):before{content:"L\0000E4n"}
	.marketplaceheader td:nth-of-type(2):before{content:"Kommun"}
	.marketplaceheader td:nth-of-type(3):before{content:"Rubrik"}
	.marketplaceheader td:nth-of-type(4):before{content:"Pris"}
	.marketplaceheader td:nth-of-type(5):before{content:"Anv.namn"}
	.marketplaceheader td:nth-of-type(6):before{content:"Beskrivning"}
	.marketplaceheader td:nth-of-type(7):before{content:"Datum"}
	.marketplaceheader td:nth-of-type(8):before{content:"Kontakta"}

	.onlySmall{display:block}
	.onlyLarge{display:none !important;}	

	.pagination-pages {
		display: none;
	}
	
	.pagination-mobile-info {
		display: block;
	}	
	
	.topMenu,
	.subMenu {
		position: fixed;
		top: 0;
		left: -100vw;
		width: 80vw;

		/* Mobile-safe viewport */
		height: 100dvh;
		min-height: 100vh;

		display: flex;
		flex-direction: column;
		align-items: flex-start;

		background-color: #f0f0f0;

		overflow-y: auto;
		overflow-x: hidden;

		transition: left 0.3s ease;
		z-index: 1000;
		
		padding: 0;

		padding-top: 60px;
		padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));

		box-shadow: 4px 0 12px rgba(0, 0, 0, 0.3);
	}

	/* Show the menu */
	.topMenu.show,
	.subMenu.active {
		left: 0;
	}
	
	.menu-shade {
		position: fixed;
		top: 0;
		left: -100vw; /* Start hidden off-screen */
		width: 20vw;
		height: 100vh;
		background-color: rgba(0, 0, 0, 0.5);
		z-index: 9999;
		transition: left 0.3s ease, opacity 0.3s ease;
		opacity: 0;
		pointer-events: none;
	}

	.menu-shade.visible {
		left: 80vw; /* Move into place next to menu */
		opacity: 1;
		pointer-events: all;
	}
	
	
	.menu-header {
		position: absolute;
		top: 0;
		left: 0;
		display: flex;
		justify-content: space-between;
		align-items: center;
		width: 100%;
		height: 60px;
		background-color: #f0f0f0;
		padding: 0 20px;
		z-index: 1001;
		border-bottom: solid #aaaaaa 1px;
	}

	.submenu-title {
		font-size: 1.4rem;
		color: #000000;
		font-weight: bold;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		max-width: 80%;
	}

	.close-menu {
		display: block;
		font-size: 2rem;
		color: #4A611C;
		cursor: pointer;
		z-index: 1002;
	}	
	

	/* Submenu styles */
	.menuWrapper {
		width: 100%;
		margin: 0px;
		position: relative; /* Set relative positioning for menu item */
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		flex: 0 0 auto;
	}

	.menuItem a[aria-current="page"] {
    	background-color: #ffffff;
		color: #000000;
	}

	.topMenu .menuItem,
	.subMenu .menuItem {
		display: flex;
		font-size: 1.2rem;
		justify-content: space-between;
		align-items: center;
		width: 100%;
		flex-direction: row;
		flex: 0 0 auto;
		padding: 0;
		border-bottom: solid #aaaaaa 1px;
		
	}
	
	/* WebKit browsers (Chrome, Safari, Edge, most mobile) */
	.subMenu::-webkit-scrollbar {
	  width: 8px;
	}

	.subMenu::-webkit-scrollbar-track {
	  background: #e0e0e0;   /* track color */
	}

	.subMenu::-webkit-scrollbar-thumb {
	  background-color: #888; /* scrollbar thumb */
	  border-radius: 4px;
	}

	.subMenu::-webkit-scrollbar-thumb:hover {
	  background-color: #555;
	}	
	
	
	.topMenu .menuItem a,
	.subMenu .menuItem a {
		width: 100%;
		color: #4A611C;
		text-decoration: none;
		padding: 10px 20px;
		display: block;
		width: 100%;
		font-weight: 700;
		text-align: left;
		white-space: normal;		
	}

	.submenu-toggle {
		display: flex;            /* center the arrow */
		align-items: center;
		padding: 10px 18px;
		border-left: 1px solid #aaa;
		align-self: stretch;      /* make it full height of the row */
		cursor: pointer;
	}	

	.subMenu .back-button {
		display: block;
		font-size: 1.2rem;
		color: #4A611C;
		padding: 10px 20px;
		font-weight: 700;
		cursor: pointer;
		width: 100%;
		border-bottom: solid #aaaaaa 1px;
	}	

	.topMenu a, .subMenu a {
		color: #4A611C;
		text-decoration: none;
		padding: 10px 20px;
		display: inline-block;
		white-space: nowrap;
		font-weight: 700;
		font-size: 1.2rem;
		width: 100%;
	}

	.topMenu .menuItem:hover > a,
	.subMenu .menuItem:hover > a	{
		background-color: #f0f0f0;
		color: #4A611C;
	}

.subcat-wrap {
		padding: 10px 0;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;

		/* dölj scrollbar */
		scrollbar-width: none;      
		-ms-overflow-style: none;   
	}

	.subcat-wrap::-webkit-scrollbar {
		display: none;
	}

	.subcat-grid {
		display: flex;
		flex-wrap: nowrap;
		gap: 10px;
		width: max-content;
		min-width: 100%;
	}

	.subcat-grid a {
		flex: 0 0 auto;            /* 🔥 viktigt */
		white-space: nowrap;
		word-break: normal;
	}

	.bread-crumbs {
		font-size: 14px;
		line-height: 1.3;
		margin-bottom: 12px;
		white-space: nowrap;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.bread-crumbs::-webkit-scrollbar {
		display: none;
	}

	.bread-crumbs a,
	.bread-crumbs strong,
	.bread-crumbs .sep {
		white-space: nowrap;
	}

	.bread-crumbs .sep {
		margin: 0 4px;
	}	


	/* Hamburger button */
	.hamburger-menu {
		display: block;
		background-color: #8E385B;
		padding: 10px 10px;
		color: #ffffff;
		cursor: pointer;
		font-size: 1.5rem;
	}	
	
	.responsive-hide {
		display: none;
	}
	
}