@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: 16px;
}
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;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
input, select, textbox  {
    font-family: ATR;
    font-size: 16px;
}
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.5;
    text-align: justify;
}
/* General */
.mobile {
    display: none;
}
.container {
    max-width: 1200px;
    width: 80vw;
    margin: 0 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, .menu-item>a {
    position: relative;
    display: block;
    background: var(--atr-gradient);
    height: 3rem;
    line-height: 3rem;
}
.link-cover {
    position: absolute;
    inset: 0;
    z-index: 10;
    cursor: pointer;
    color: var(--atr-dark);
}
.link-box.circle {
    width: 3rem;
}
.link-box.parallelogram, .menu-item>a {
    padding: 0 2rem;
    clip-path: polygon(1rem 0, 100% 0, calc(100% - 1rem) 100%, 0 100%);
}
.shiny {
    position: relative;
    contain: paint;
}
.shiny::after {
    content: ' ';
    position: absolute;
    top: 0;
    left: -50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, transparent 40%, rgba(255,248,220,0.8) 50%, transparent 60%);
    animation: shine 3s infinite;
    clip-path: polygon(1rem 0, 100% 0, calc(100% - 1rem) 100%, 0 100%);
}
.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: 5px;
    right: 5px;
}
.stitch::before {
    top: -5px;
}
.stitch::after {
    bottom: -5px
}
[class*="icon-"]::before {
    font-family: icon, serif;
    font-size: 1.5rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.icon-menu {

}
.icon-profile::before {
    content: '\f007';
}
.icon-cart::before {
    content: '\f07a';
}
/* 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;
    align-items: center;
    justify-content: center;
    padding-top: 0.5rem;
}
#brand {
    display: flex;
    gap: 0.25rem;
}
#brand-logo {
    width: 3rem;
    height: 3rem;
    background: url("../images/logo.webp") center/contain no-repeat;
}
#brand-name {
    height: 3rem;
    line-height: 3rem;
    font-weight: 300;
    font-size: 1rem;
}
.primary-nav ul {
    display: flex;
    align-items: center;
    list-style: none;
}
.primary-nav .sub-menu {
    display: none;
}
main {
    padding: 1rem 0;
}
article {
    background-color: var(--atr-light);
}
article h1 {
    color: var(--atr-accent);
}
article h2, article h3, article h4 {
    line-height: 2.5;
    margin-top: 1rem;
    color: var(--atr-accent);
}
article ul {
    padding-right: 3rem;
    line-height: 2;
    margin-bottom: 0.5rem;
    list-style: disc outside;
}
.front-article {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin: 1rem 0;
    filter: blur(4px);
    transition: opacity .8s ease, filter .8s ease;
    align-items: center;
}
.front-article.visible {
    filter: blur(0);
}
.front-article.reverse {
    flex-direction: row-reverse;
}
.front-image {
    flex: 2;
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
}
.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 {
    flex: 3;
    text-align: justify;
    padding: 1rem 4rem 3rem 4rem;
}
.page-article, .product-article, .archive-article {
    background-color: var(--atr-light);
    padding: 3rem 5rem;
    border-radius: 2rem;
}
.page-title, .product-title, .archive-title {
    text-align: center;
    margin-top: 2rem;
}
.page-logo, .product-logo, .archive-logo {
    margin: 0 auto;
    background: url("../icons/favicon-96x96.png") center/contain no-repeat;
    width: 96px;
    height: 96px;
}
.product-gallery img {
    width: 50%;
}
.archive-product {
    width: 10rem;
}
.archive-image, .archive-image img {
    width: 100%;
}
.reseller-section {
    margin: 0 auto;
}
.reseller-header {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}
.city-filter {
    min-width: 220px;
    padding: .75rem 1rem;
}
.reseller-list {
    display: grid;
    gap: 1rem;
}
.reseller-article {
    padding: 3rem;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fff;
}
.reseller-title {
    display: inline-block;
    margin-left: 1rem;
    line-height: 1;
    margin-top: 0;
}
.reseller-city {
    display: inline-block;
    padding: .75rem 1rem;
    border-radius: 3rem;
    background-color: var(--atr-highlight);
    line-height: 1;
}
.reseller-city:hover {
    background-color: var(--atr-accent);
    cursor: pointer;
}
.reseller-address {
    font-style: normal;
    margin-top: 2rem;
}
.reseller-phones, .reseller-mobile {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}
.reseller-phones a, .reseller-mobile a {
    padding: 0.5rem 1rem 0.3rem 1rem;
    margin-top: -0.5rem;
    background-color: var(--atr-highlight);
    border-radius: 2rem;
    transition: background-color 0.3s;
}
.reseller-phones a:hover, .reseller-mobile a:hover {
    background-color: var(--atr-accent);
}
.hidden {
    display: none;
}
/* 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: 0.5rem;
    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%);
    }
}