﻿/**
 * Base reset and accessibility
 * @package Elmaslar
 */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--elmaslar-font-base);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--elmaslar-color-text);
	background-color: var(--elmaslar-color-bg);
}

body.is-menu-open,
body.is-search-open,
body.is-filter-open,
body.is-cart-open {
	overflow: hidden;
}

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

a {
	color: var(--elmaslar-color-primary);
	text-decoration: none;
}

a:hover,
a:focus-visible {
	text-decoration: underline;
}

button {
	font: inherit;
}

/* -------------------------------------------------------------------------
   Accessibility
   ------------------------------------------------------------------------- */

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus,
.screen-reader-text:focus-visible {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

.skip-link:focus,
.skip-link:focus-visible {
	position: fixed;
}
