/* === [AUTO-CSS] UNIVERSAL ======================== */

* {
    box-sizing: border-box;
}



/* === [AUTO-CSS] TAGS ============================= */

button {
    cursor: pointer;
}

button, input, select {
    font: inherit;
}



/* === [AUTO-CSS] CLASSES ========================== */

.add {
    background: var(--dark);
    border: 0;
    border-radius: 6px;
    color: #fff;
    font-size: 21px;
    height: 38px;
    width: 38px;
}

.add:disabled {
    background: #bbb;
    cursor: not-allowed;
}

.add:hover {
    background: var(--blue);
}

.basket {
    background: #fff;
    box-shadow: -10px 0 40px #0002;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: fixed;
    right: -450px;
    top: 0;
    transition: .3s;
    width: min(440px, 100%);
    z-index: 100;
}

.basket form {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
}

.basket-foot {
    border-top: 1px solid var(--border);
    padding: 22px;
}

.basket-head {
    align-items: center;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    padding: 22px;
}

.basket-head h2 {
    margin: 0;
}

.basket-image {
    align-items: center;
    background: var(--light);
    border-radius: 6px;
    display: flex;
    height: 70px;
    justify-content: center;
    width: 75px;
}

.basket-image img {
    height: 90%;
    object-fit: contain;
    width: 90%;
}

.basket-info small {
    color: var(--gray);
    margin-top: 3px;
}

.basket-info strong, .basket-info small {
    display: block;
}

.basket-item {
    align-items: center;
    border-bottom: 1px solid var(--border);
    display: grid;
    gap: 12px;
    grid-template-columns:75px 1fr auto;
    padding: 17px 0;
}

.basket-items {
    flex: 1;
    overflow: auto;
    padding: 10px 22px;
}

.basket.open {
    right: 0;
}

.big-checkbox {
    height: 20px;
    margin-right: 8px;
    width: 20px;
}

.cart-btn {
    background: var(--dark);
    border: 0;
    border-radius: 7px;
    color: #fff;
    font-weight: bold;
    padding: 11px 17px;
}

.cart-count {
    background: var(--blue);
    border-radius: 20px;
    display: inline-block;
    margin-left: 6px;
    padding: 2px 7px;
}

.checkout {
    background: var(--blue);
    border: 0;
    border-radius: 6px;
    color: #fff;
    font-weight: bold;
    margin-top: 18px;
    padding: 14px;
    width: 100%;
}

.close {
    background: none;
    border: 0;
    font-size: 28px;
}

.contact {
    display: grid;
    gap: 20px;
    grid-template-columns:1fr 1fr;
}

.empty {
    color: var(--gray);
    padding: 50px 0;
    text-align: center;
}

.feature {
    align-items: center;
    display: flex;
    gap: 15px;
}

.feature .symbol {
    font-size: 30px;
}

.feature span {
    color: #bbb;
    font-size: 12px;
}

.feature-grid {
    display: grid;
    gap: 30px;
    grid-template-columns:repeat(3, 1fr);
}

.filter {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 9px 15px;
}

.filter.active, .filter:hover {
    background: var(--dark);
    border-color: var(--dark);
    color: #fff;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.footer-grid {
    display: grid;
    gap: 40px;
    grid-template-columns:repeat(3, 1fr);
}

.footer-grid a {
    color: var(--gray);
    text-decoration: none;
}

.footer-grid a:hover {
    color: var(--blue);
}

.footer-grid p {
    margin: 8px 0;
}

.footer-grid strong {
    color: var(--dark);
}

.header {
    align-items: center;
    display: flex;
    gap: 25px;
    height: 100%;
}

.hero h1 {
    font-size: 52px;
    letter-spacing: -2px;
    line-height: 1;
    margin: 12px 0 18px;
}

.hero p {
    color: var(--gray);
    font-size: 19px;
    line-height: 1.6;
    margin: 0 0 25px;
}

.hero small {
    color: var(--blue);
    font-weight: bold;
    letter-spacing: 2px;
}

.hero-content {
    max-width: 650px;
}

.info h3 {
    margin: 0 0 8px;
}

.info p {
    color: var(--gray);
    line-height: 1.6;
    margin: 0;
}

.info-grid {
    display: grid;
    gap: 40px;
    grid-template-columns:repeat(3, 1fr);
}

.item-price {
    font-weight: bold;
    white-space: nowrap;
}

.language {
    display: flex;
    gap: 4px;
}

.language button {
    background: none;
    border: 0;
    color: var(--gray);
    font-weight: bold;
    padding: 7px;
}

.language button.active {
    color: var(--blue);
}

.logo {
    font-size: 27px;
    font-weight: 900;
    letter-spacing: 3px;
}

.logo span {
    color: var(--blue);
}

.modal {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 20px 70px #0005;
    left: 50%;
    opacity: 0;
    position: fixed;
    top: 50%;
    transform: translate(-50%, -45%);
    transition: .2s;
    visibility: hidden;
    width: min(600px, calc(100% - 30px));
    z-index: 201;
}

.modal-actions {
    margin-top: 10px;
    text-align: right;
}

.modal-content {
    line-height: 1.6;
    padding: 22px;
}

.modal-head {
    align-items: center;
    border-bottom: 1px solid var(--border);
    display: flex;
    font-size: 20px;
    justify-content: space-between;
    padding: 20px 22px;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal.open {
    opacity: 1;
    transform: translate(-50%, -50%);
    visibility: visible;
}

.overlay.open {
    opacity: 1;
    visibility: visible;
}

.panel {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 25px;
}

.panel h3 {
    margin: 0 0 10px;
}

.panel h3:not(:first-child) {
    margin-top: 25px;
}

.panel p {
    color: var(--gray);
    line-height: 1.6;
}

.price {
    font-size: 18px;
    font-weight: bold;
}

.primary {
    background: var(--blue);
    border: 0;
    border-radius: 6px;
    color: #fff;
    font-weight: bold;
    padding: 13px 20px;
}

.product {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: .2s;
}

.product h3 {
    font-size: 19px;
    margin: 6px 0 12px;
}

.product-bottom {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
}

.product-image {
    align-items: center;
    background: var(--light);
    display: flex;
    height: 180px;
    justify-content: center;
}

.product-image img {
    display: block;
    height: 90%;
    object-fit: contain;
    width: 90%;
}

.product-info {
    padding: 17px;
}

.product:hover {
    box-shadow: 0 8px 25px #00000012;
    transform: translateY(-3px);
}

.products {
    display: grid;
    gap: 18px;
    grid-template-columns:repeat(4, 1fr);
}

.qty {
    align-items: center;
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.qty button {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    height: 27px;
    width: 27px;
}

.qty button:disabled {
    cursor: not-allowed;
    opacity: .3;
}

.remove {
    background: none;
    border: 0;
    color: #999;
    font-size: 12px;
    margin-top: 4px;
    padding: 5px 0;
}

.remove:hover {
    color: #c33;
}

.row {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
}

.search input {
	border:1px solid var(--border);
	border-radius:7px;
	outline:0;
	padding:12px 42px 12px 16px;
	width:100%;
}

.search input:focus {
	border-color:var(--blue);
}

.search-clear {
	background:none;
	border:0;
	color:var(--gray);
	display:none;
	font-size:22px;
	line-height:1;
	padding:5px;
	position:absolute;
	right:10px;
	top:50%;
	transform:translateY(-50%);
}

.search-clear:hover {
	color:var(--dark);
}

.search.has-text .search-clear {
	display:block;
}

.selects {
    display: grid;
    gap: 8px;
}

.selects select {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 9px;
    width: 100%;
}

.shop-head {
    margin-bottom: 25px;
}

.shop-head h2 {
    font-size: 30px;
    margin: 0;
}

.shop-head p {
    color: var(--gray);
    margin: 6px 0 0;
}

.support-section h2 {
    font-size: 30px;
    margin: 0 0 25px;
}

.terms-check {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    padding: 15px 0;
}

.terms-check a {
    color: var(--blue);
}

.total {
    border-top: 1px solid var(--border);
    font-size: 20px;
    font-weight: bold;
    margin-top: 15px;
    padding-top: 15px;
}

.type {
    color: var(--blue);
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}



/* === [AUTO-CSS] OTHER ============================ */

/*-- BASE ------------*/
body {
    background: #fff;
    color: var(--dark);
    font: 15px Arial, sans-serif;
    margin: 0;
}

/*-- BASKET ------------*/
.overlay {
    background: #0008;
    inset: 0;
    opacity: 0;
    position: fixed;
    transition: .2s;
    visibility: hidden;
    z-index: 90;
}

/*-- FEATURES ------------*/
.features {
    background: var(--dark);
    color: #fff;
    padding: 30px 0;
}

/*-- FOOTER ------------*/
footer {
    border-top: 1px solid var(--border);
    color: var(--gray);
    padding: 40px 0;
}

/*-- HEADER ------------*/
header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    height: 72px;
    position: sticky;
    top: 0;
    z-index: 20;
}

/*-- HERO ------------*/
.hero {
    background: var(--light);
    padding: 65px 0;
}

/*-- INFO ------------*/
.info {
    background: var(--light);
    padding: 50px 0;
}

/*-- LAYOUT ------------*/
.wrap {
    margin: auto;
    width: min(1180px, calc(100% - 40px));
}

/*-- MODAL ------------*/
.modal-overlay {
    background: #0009;
    inset: 0;
    opacity: 0;
    position: fixed;
    transition: .2s;
    visibility: hidden;
    z-index: 200;
}

/*-- RESPONSIVE ------------*/
@media (max-width: 900px) {
    .products {
        grid-template-columns:repeat(2, 1fr)
    }

    .info-grid {
        grid-template-columns:1fr
    }

    .hero h1 {
        font-size: 42px
    }
}

/*-- SEARCH ------------*/
.search {
	flex:1;
	max-width:520px;
	position:relative;
}

/*-- SHOP ------------*/
.shop {
    padding: 55px 0;
}

/*-- SUPPORT ------------*/
.support-section {
    padding: 55px 0;
}

/*-- VARIABLES ------------*/
:root {
    --blue: #087ea4;
    --border: #e1e5e8;
    --dark: #20252a;
    --gray: #69737d;
    --light: #f5f7f8;
}

/* === [AUTO-CSS] MEDIA ============================ */

@media (max-width: 600px) {

/* === [AUTO-CSS] TAGS ============================= */

header {
        height: auto;
}



/* === [AUTO-CSS] CLASSES ========================== */

.basket-image {
        height: 60px;
        width: 65px;
}

.basket-item {
        grid-template-columns:65px 1fr auto;
}

.header {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 0;
}

.hero {
        padding: 45px 0;
}

.hero h1 {
        font-size: 36px;
}

.products, .contact, .feature-grid, .footer-grid {
        grid-template-columns:1fr;
}

.search {
        flex-basis: 100%;
        max-width: none;
        order: 4;
}

.wrap {
        width: calc(100% - 24px);
}

}
