@font-face {
    font-family: "ATR";
    src: url("../fonts/ATR.ttf"), url("../fonts/ATR.woff2");
}
@font-face {
    font-family: "ATR-B";
    src: url("../fonts/ATR-B.ttf"), url("../fonts/ATR-B.woff2");
}
@font-face {
    font-family: "icon";
    src: url("../fonts/icon.woff2");
}
:root {
    --atr-accent: #D4AF37;
    --atr-light: #eeeeee;
    --atr-dark: #111111;
    --atr-highlight: #f4f4f4;
    --atr-gradient: linear-gradient(135deg, #F5D76E 0%, #D4AF37 40%, #B8860B 100%);
}
html {
    font-family: ATR, sans-serif;
    font-size: 14px;
}
body {
    background: url("../images/main.jpg");
    color: var(--atr-dark);
    line-height: 1;
    direction: rtl;
    display: grid;
    min-height: 100vh;
    grid-template-rows: auto 1fr auto;
    overflow-x: hidden;
}
body.fixed {
    overflow: hidden;
    touch-action: none;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
input, select, textbox  {
    font-family: ATR;
    font-size: 14px;
}
select {
    background: #fff url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%231e1e1e%22%2F%3E%3C%2Fsvg%3E') no-repeat left 8px top 55% / 16px 16px;
    border: 0;
    background-size: 16px 16px;
    appearance: none;
    -moz-appearance: none;
}
h1, h2, h3, h4 {
    font-family: ATR-B, sans-serif;
}
img {
    height: auto;
}
a {
    color: inherit;
    text-decoration: none
}
p {
    line-height: 2;
    text-align: justify;
}
.container {
    width: 90vw;
    margin: 1rem auto;
}
.wrapper {
    display: flex;
    justify-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
}
.separator {
    height: 1px;
    margin: 1rem;
    background: linear-gradient(to right, transparent, var(--atr-accent), transparent);
}
.link-box {
    position: relative;
    display: block;
    background: var(--atr-gradient);
    height: 3rem;
    line-height: 3rem;
}
.link-cover {
    position: absolute;
    inset: 0;
    z-index: 10;
    color: var(--atr-dark);
}
.link-box.circle {
    width: 3rem;
}
.link-box.parallelogram {
    padding: 0 2rem;
    clip-path: polygon(1rem 0, 100% 0, calc(100% - 1rem) 100%, 0 100%);
}
.shiny {
    position: relative;
    overflow: hidden;
}
.shiny::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 100%;
    height: 200%;
    background: linear-gradient(to bottom right, transparent 40%, rgba(255,248,220,0.8) 50%, transparent 60%);
    animation: shine 3s infinite;
}
.swing {
    height: 22px;
    width: 100%;
    background: url("../images/swing.webp");
}
.stitch {
    position: relative;
}
.stitch::after, .stitch::before {
    content: " ";
    height: 12px;
    background-image: url("../images/stitch.svg");
    background-repeat: repeat-x;
    position: absolute;
    left: 3px;
    right: 6px;
}
.stitch::before {
    top: -5px;
}
.stitch::after {
    bottom: -5px
}
[class*="icon-"] {
    position: relative;
}
[class*="icon-"]::before {
    font-family: icon, serif;
    font-size: 1.5rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.icon-menu::before {
    content: '\f0c9';
}
.icon-close::before {
    content: '\f00d';
}
.icon-profile::before {
    content: '\f007';
}
.icon-cart::before {
    content: '\f07a';
}
.hidden {
    display: none;
}
/* Header */
.header .swing {
    bottom: 0;
}
#header {
    position: sticky;
    background: url("../images/header.webp");
    box-shadow: 0 0 5px 5px rgba(0, 0, 0, 0.5);
    top: 0;
    z-index: 99;
    transition: transform .3s ease;
}
#header.hide {
    transform: translateY(-100%);
}
#header .container {
    display: flex;
    padding: 1rem 0 0.5rem 0;
}
#brand {
    display: flex;
    padding: 0 1rem 0 1.5rem;
    gap: 0.25rem;
    flex: 1;
}
#brand-logo {
    width: 3rem;
    height: 3rem;
    margin-right: 0.5rem;
    background: url("../images/logo.webp") center/contain no-repeat;
}
#brand-name {
    height: 3rem;
    line-height: 3rem;
    font-weight: 300;
    font-size: 1rem;
}
.menu-open, .menu-close {
    color: var(--atr-dark);
}
.menu-open {
    width: 4rem;
    height: 3rem;
    background: var(--atr-gradient);
    clip-path: polygon(1rem 0, 100% 0, calc(100% - 1rem) 100%, 0 100%);
    justify-self: start;
}
.menu-close {
    width: 2rem;
    height: 2rem;
    position: absolute;
    color: crimson;
    top: 1rem;
    left: 1rem;
}
.primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    background-color: var(--atr-dark);
    z-index: 9999;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .35s ease;
}
.primary-nav.active {
    transform: translateX(0);
}
.primary-nav ul {
    list-style: none;
    padding: 4rem 2rem 2rem;
    margin: 0;
}
.primary-nav a {
    display: block;
    padding: 0.75rem 2rem;
    background: var(--atr-gradient);
    margin-top: 0.75rem;
    clip-path: polygon(1rem 0, 100% 0, calc(100% - 1rem) 100%, 0 100%);
    font-size: 1.2rem;
}
.sub-menu {
    display: none;
    max-height:0;
    overflow:hidden;
    transition:max-height .3s ease;
}
.sub-menu.open {
    max-height:1000px;
}
.primary-nav {
    background-color: var(--atr-dark);
}
article {
    background-color: var(--atr-light);
}
article p {
    text-align: justify;
}
article h2 {
    font-size: 1.1rem;
    color: var(--atr-accent);
}
article h3 {
    font-size: 1.05rem;
    color: var(--atr-accent);
}
article h4 {
    font-size: 1rem;
    color: var(--atr-accent);
}
article h2, article h3, article h4 {
    margin: 1rem 0 0.5rem 0;
}
article p, article h2, article h3, article h4 {
    line-height: 2;
}
article ul {
    padding-right: 1.5rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    list-style: disc outside;
}
.front-article {
    display: flex;
    flex-direction: column;
    margin: 1rem 0;
    filter: blur(4px);
    transition: opacity .8s ease, filter .8s ease;
}
.front-article.visible {
    opacity: 1;
    filter: blur(0);
}
.front-image {
    position: relative;
    overflow: hidden;
    height: calc(90vw * 5 / 4);
}
.front-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity .8s ease, transform 6s linear;
}
.front-image img.active {
    opacity: 1;
    transform: scale(1);
}
.front-text {
    text-align: justify;
    padding: 1rem 2rem 2rem 2rem;
}
.front-text h2 {
    position: absolute;
    top: calc(90vw * 5 / 4 - 4rem);
    background-color: rgba(0,0,0,0.5);
    left: 0;
    right: 0;
    text-align: center;
    color: var(--atr-light);
    height: 3rem;
    line-height: 3rem;
}
.page-article, .product-article, .archive-article {
    background-color: var(--atr-light);
    padding: 1rem 2rem;
    border-radius: 1rem;
}
.page-title, .product-title, .archive-title {
    text-align: center;
    margin-top: 1rem;
    color: var(--atr-accent);
}
.page-logo, .product-logo, .archive-logo {
    margin: 0 auto;
    background: url("../icons/favicon-96x96.png") center/contain no-repeat;
    width: 5rem;
    height: 5rem;
}
.product-gallery img {
    width: 100%;
}
.archive-image, .archive-image img {
    width: 100%;
}
.reseller-section {
    margin: 0 auto;
}
.reseller-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    justify-content: center;
}
.city-filter {
    min-width: 220px;
    padding: .75rem 1rem;
}
.reseller-list {
    display: grid;
    gap: 1rem;
}
.reseller-article {
    line-height: 2;
}
.reseller-title {
    display: inline-block;
    margin-left: 1rem;
    margin-top: 0;
}
.reseller-city {
    display: inline-block;
    padding: .5rem 1rem;
    border-radius: 3rem;
    background-color: var(--atr-highlight);
    line-height: 1;
}
.reseller-address {
    font-style: normal;
}
.reseller-phones, .reseller-mobile {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.reseller-phones a, .reseller-mobile a {
    padding: 0.1rem 1rem 0 1rem;
    margin-top: -0.1rem;
    background-color: var(--atr-highlight);
    border-radius: 2rem;
    transition: background-color 0.3s;
}
/* Footer */
.footer {
    background: url("../images/footer.webp");
    color: var(--atr-accent);
    position: relative;
    box-shadow: 0 0 5px 5px rgba(0, 0, 0, 0.5);
    font-family: ATR-B, sans-serif;
}
.footer p {
    text-shadow: 1px 1px 0 var(--atr-dark);
}
.footer .swing {
    top: 0;
}
.footer section {
    padding: 1rem;
    background: url("../images/texture.webp");
}
.footer-box {
    padding: 1rem;
    position: relative;
}
#copyright {
    text-align: center;
    padding: 1rem 0 1.5rem 0;
}
@keyframes shine {
    0% {
        transform: translateX(150%);
    }
    100% {
        transform: translateX(-50%);
    }
}