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

@font-face {
    font-family: Vazirmatn;
    src: url('../font/Vazirmatn-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url('../font/Vazirmatn-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url('../font/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url('../font/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url('../font/Vazirmatn-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url('../font/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url('../font/Vazirmatn-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

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


/* =========================================================
   Variables
========================================================= */

:root {
    --font-color: #5f5f5f;
    --color-accent: rgb(0, 134, 229);
}


/* =========================================================
   Reset
========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    overflow-x: hidden;
}

body {
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    font-size: 16px;
    background: #fafafa;
    color: var(--font-color);
    font-family: Vazirmatn;
}


/* =========================================================
   Main
========================================================= */

main {
    flex: 1;
}


/* =========================================================
   Header
========================================================= */

header {
    width: 100%;
    text-align: center;
}

header img {
    width: 100%;
    max-width: 70px;
    max-height: 70px;
    float: left;
}

header > section {
    width: 100%;
    max-width: 800px;
    height: 70px;

    margin: 18px auto 0;
    padding: 0 20px;

    border-radius: 20px 20px 0 0;

    background: #ffffff;

    box-shadow:
        1px 1px 10px 1px #00000020;
}

header div {
    display: flex;
    justify-content: center;
    align-items: center;

    float: right;
}

header div input {
    font-size: 16px;
    font-family: Vazirmatn;
    font-weight: 300;

    border-radius: 5px;
    border: 2px solid rgba(0, 0, 0, 0.3);
}

header .header-link {
    font-size: 18px;

    color: var(--font-color);

    text-decoration: none;

    font-weight: 900;

    margin: 15px 10px;
    padding: 5px;
}

header a:hover {
    text-decoration: underline;
}


/* =========================================================
   Products
========================================================= */

.products {
    width: 100%;
    max-width: 847px;

    display: flex;
    flex-wrap: wrap;

    margin: 20px auto 0;

    justify-content: center;
    align-items: flex-start;
}


/* =========================================================
   Product Box
========================================================= */

.product-box {
    position: relative;
}

.product-box section {
    width: 250px;
    max-width: 250px;

    margin: 15px;

    height: 100%;

    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;

    padding-bottom: 6px;

    overflow: auto;

    background: #ffffff;
}

.product-box section:hover {
    box-shadow:
        1px 1px 10px 1px #00000020;
}

.product-box section > img {
    width: 100%;

    padding: 10px;

    border-top-right-radius: inherit;
    border-top-left-radius: inherit;
}

.product-box section > h3 {
    margin: 5px;

    text-overflow: ellipsis;
    overflow: hidden;

    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;

    white-space: normal;

    height: 56px;
}

.product-box section > p {
    font-size: 12px;

    margin: 0 10px 7px;

    font-weight: 300;

    text-overflow: ellipsis;
    overflow: hidden;

    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;

    white-space: normal;
}


/* =========================================================
   Price
========================================================= */

.price {
    font-size: 16px;
    font-weight: 500;
}

td.price {
    font-weight: normal;
}


/* =========================================================
   Product Number
========================================================= */

.product-number {
    direction: ltr !important;

    font-weight: 600 !important;
    font-size: 16px !important;

    margin-top: 5px !important;
}

.product-number.out-of-stock {
    color: rgb(237, 44, 44);
}


/* =========================================================
   Cart Button
========================================================= */

.add-to-cart-btn {
    text-decoration: none;

    padding: 5px;

    color: #fafafa;

    font-size: 12px;

    border: 2px solid var(--color-accent);
    border-radius: 9px;

    background: rgb(0, 55, 118);

    position: absolute;

    left: 20px;
    top: 20px;

    font-weight: 300;

    opacity: 0;

    z-index: 10;

    display: inline-flex;
    align-items: center;

    transition:
        opacity 200ms ease-in,
        background 200ms ease-in,
        color 200ms ease-in;
}

.product-box:hover .add-to-cart-btn {
    opacity: 1;
}

.add-to-cart-btn:hover {
    color: rgb(0, 55, 118);
    background: #ffffff;
}

.add-to-cart-btn:hover img {
    filter: brightness(0);
}


/* =========================================================
   Like Button
========================================================= */

.add-to-like-btn {
    text-decoration: none;

    padding: 5px;

    color: #fafafa;

    font-size: 12px;

    border: 2px solid var(--color-accent);
    border-radius: 9px;

    background: rgb(0, 55, 118);

    position: absolute;

    right: 20px;
    top: 20px;

    font-weight: 300;

    opacity: 0;

    z-index: 10;

    display: inline-flex;

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

    transition:
        opacity 200ms ease-in,
        background 200ms ease-in,
        color 200ms ease-in;
}

.product-box:hover .add-to-like-btn {
    opacity: 1;
}

.add-to-like-btn:hover {
    color: rgb(0, 55, 118);
    background: #ffffff;
}


/* =========================================================
   Icon
========================================================= */

a.icon {
    display: inline-flex;
    align-items: center;
}

a.icon > img {
    width: 20px;
    margin-right: 5px;
}


/* =========================================================
   Cart Button 2
========================================================= */

.add-to-cart-btn2 {
    text-decoration: none;

    padding: 5px;

    color: #fafafa;

    font-size: 16px;

    border-bottom-right-radius: 9px;
    border-bottom-left-radius: 9px;

    background: var(--color-accent);

    font-weight: 400;

    display: flex !important;
    justify-content: center;
}

.add-to-cart-btn2:hover {
    background: rgb(0, 61, 108);
}


/* =========================================================
   Tags
========================================================= */

.tag {
    display: inline-flex;
    align-items: center;

    font-size: 14px;

    border-radius: 10px;

    padding: 2px 5px;

    font-weight: 200;
}

.tag img {
    width: 20px;
    margin-left: 5px;
}

.tag.big {
    font-weight: 400;
    font-size: 16px;
    margin: 5px;
}

.tag.red {
    border: 1px solid #ff000061;
    background: rgba(255, 0, 0, 0.05);
}

.tag.blue {
    border: 1px solid rgba(0, 94, 255, 0.38);
    background: rgba(0, 136, 255, 0.05);
}

.tag.yellow {
    border: 1px solid rgba(255, 191, 0, 0.38);
    background: rgba(255, 221, 0, 0.05);
}

.tag.green {
    border: 1px solid rgba(17, 255, 0, 0.38);
    background: rgba(55, 255, 0, 0.05);
}

.tag.orange {
    border: 1px solid rgba(255, 119, 0, 0.38);
    background: rgba(255, 60, 0, 0.05);
}


/* =========================================================
   Banner
========================================================= */

.banner {
    display: block;

    height: 0;

    width: 100%;
    max-width: 800px;

    margin: auto;

    border-radius: 35px;

    transition:
        height 400ms ease-out !important;
}

#slideshow {
    margin-top: 30px;
    height: 300px;
}


/* =========================================================
   Product Detail
========================================================= */

.product-detail-box {
    width: 100%;
    max-width: 800px;

    display: flex;
    flex-wrap: wrap;

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

    margin: 50px auto 0;

    background: #ffffff;

    border-radius: 10px;

    border: 2px solid rgba(0, 0, 0, 0.1);

    padding: 10px;
}

.product-detail-box .product-image {
    max-width: 280px;

    margin-left: 10px;

    width: 100%;
}

.product-detail-box > section {
    width: 100%;
    max-width: 500px;
}

.product-detail-box h1 {
    margin: 5px;
}

.product-detail-box h6 {
    font-size: 13px;
    margin: 5px;
}

.product-detail-box .price {
    display: block;

    background: rgb(0 0 0 / 79%);

    font-size: 20px;
    font-weight: 500;

    color: #fafafa;

    border-top-left-radius: 9px;
    border-top-right-radius: 9px;
}

.product-detail-box .price-box {
    margin: 20px;
    text-align: center;
}


/* =========================================================
   Simple Box
   اندازه مشابه هدر
========================================================= */

.simple-box {
    width: 100%;
    max-width: 800px;

    margin: 20px auto 0;

    padding: 10px;

    box-sizing: border-box;

    background: #ffffff;

    border: 2px solid rgba(0, 0, 0, 0.1);

    border-radius: 25px;

    overflow: auto;
}

.simple-box p {
    text-align: justify;
    padding: 5px 10px;
}

.simple-box h1 {
    margin: 0 10px;
    text-align: right;
}


/* =========================================================
   Login / Register
========================================================= */

.login-box {
    width: 100%;
    max-width: 800px;

    direction: rtl;

    text-align: center;
}

#login-box,
#register-box {
    text-align: center;
    padding: 25px;
}


/* =========================================================
   فرم‌های داخل simple-box
========================================================= */

.simple-box input,
.simple-box textarea,
.simple-box select {
    color: var(--font-color);

    font-size: 16px;

    max-width: 180px;

    font-family: Vazirmatn;

    display: block;

    border-radius: 10px;

    margin: 5px auto;

    border: 1px solid rgba(0, 0, 0, 0.3);

    padding: 2px 10px;
}

.simple-box.big input,
.simple-box.big textarea,
.simple-box.big select {
    max-width: 400px;
    width: 100%;
}

.simple-box input[type='submit'] {
    all: unset;

    border-radius: 10px;

    width: 100%;
    max-width: 191px;

    cursor: pointer;

    margin: auto;

    display: block;

    text-align: center;

    background: transparent;

    border: 2px solid var(--color-accent);

    padding: 3px 4px;

    color: var(--color-accent);

    font-weight: 900;
}

.simple-box input[type='submit']:hover {
    background: var(--color-accent);
    color: #ffffff;
}


/* =========================================================
   Cart
========================================================= */

.cart .pay-btn {
    text-decoration: none;

    font-size: 18px;

    float: left;

    font-weight: 600;

    border-radius: 15px;

    border: 2px solid var(--color-accent);

    color: var(--color-accent);

    padding: 7px;

    margin: 5px;
}

.cart .pay-btn:hover {
    background: var(--color-accent);
    color: #ffffff;
}

.cart .pay-btn:hover img {
    filter: brightness(100);
}

.red-btn {
    text-decoration: none;

    font-size: 20px;

    font-weight: 700;

    border-radius: 15px;

    border: 2px solid #ff0000;

    color: #ff0000;

    padding: 6px;

    margin: 5px;
}

.red-btn:hover {
    background: #ff0000;
    color: #ffffff;
}


/* =========================================================
   Cart Items
========================================================= */

.cartitem-btn {
    width: 25px;
    height: 25px;

    border-radius: 50%;

    padding: 2px;

    display: inline-block;

    margin: 5px;

    text-align: center;

    color: var(--font-color);

    text-decoration: none;

    background: rgba(0, 126, 210, 0.2);
}


/* =========================================================
   Tables
========================================================= */

table tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.03);
}

table tr:last-child td {
    border: none;
}

table.cart {
    margin: auto;
}

table.cart td {
    padding: 5px;

    border-bottom:
        2px solid rgba(0, 0, 0, 0.1);
}


/* =========================================================
   Description
========================================================= */

.product-description-box {
    width: 100%;
    max-width: 1100px;

    margin: auto;
}

.product-description-box p {
    text-align: justify;

    font-weight: 300;

    margin: 0 15px;
}


/* =========================================================
   Similar Products
========================================================= */

.similar-products-box {
    width: 100%;
    max-width: 1100px;

    margin: auto;
}


/* =========================================================
   Header Menu
========================================================= */

#header-menu-btn {
    float: right;
    display: none;
}

#header-menu-close-btn {
    text-align: right;

    width: 100%;

    margin: 10px;

    font-size: 20px;

    display: none;
}


/* =========================================================
   Eggy
========================================================= */

.eggy .title {
    font-weight: 800 !important;
    font-size: 19px !important;
}

.eggy .message {
    font-weight: 400 !important;
    font-size: 16px !important;
}


/* =========================================================
   Mobile Header
========================================================= */

@media (max-width: 725px) {

    header > section > div {
        display: block;

        position: absolute;

        left: 0;
        right: 0;
        top: 0;

        background: #ffffff;

        height: 0;

        overflow: hidden;

        z-index: 99;
    }

    header > section > div > * {
        display: block;
        margin-top: 5px;
    }

    #header-menu-btn {
        display: block;
    }

    #header-menu-close-btn {
        display: block;
    }
}


/* =========================================================
   Error Page
========================================================= */

.error-page {
    min-height: 70vh;

    display: flex;

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

    padding: 40px 20px;

    direction: rtl;
}

.error-box {
    width: 100%;
    max-width: 600px;

    padding: 50px 30px;

    text-align: center;

    background: #ffffff;

    border-radius: 25px;

    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.08);
}

.error-icon {
    font-size: 55px;
    margin-bottom: 10px;
}

.error-number {
    margin: 0;

    font-size: 100px;

    font-weight: 900;

    line-height: 1;

    color: #e74c3c;
}

.error-title {
    margin: 20px 0 15px;

    font-size: 27px;

    color: #333;
}

.error-text {
    margin: 0 auto 30px;

    max-width: 450px;

    color: #777;

    font-size: 16px;

    line-height: 2;
}

.error-home {
    display: inline-block;

    padding: 13px 30px;

    color: white;

    background: #3498db;

    border-radius: 12px;

    text-decoration: none;

    transition: all 0.3s;
}

.error-home:hover {
    background: #2980b9;

    transform: translateY(-3px);

    box-shadow:
        0 8px 20px rgba(52, 152, 219, 0.25);
}


/* =========================================================
   Menu
========================================================= */

#menu {
    width: 100%;
    max-width: 800px;

    height: 40px;

    margin: 0 auto;

    background: rgba(30, 31, 34, 0.16);

    border-radius: 0 0 20px 20px;

    overflow: hidden;

    position: relative;
}

#menu .p {
    position: absolute;

    top: 0;
    left: 0;

    height: 40px;

    display: flex;

    align-items: center;

    gap: 20px;

    width: max-content;

    white-space: nowrap;

    animation:
        menu-move 15s linear infinite;
}

#menu .p:nth-child(2) {
    left: calc(100% + 170px);
}

#menu .product-box {
    flex: 0 0 auto;

    display: flex;

    align-items: center;
}

#menu .product-box a {
    white-space: nowrap;

    text-decoration: none;

    color: var(--font-color);

    font-size: 14px;

    padding: 4px 10px;
}

@keyframes menu-move {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }

}


/* =========================================================
   Page Loader
========================================================= */

#page-loader {
    position: fixed;

    inset: 0;

    background: rgba(255, 255, 255, 0.35);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    display: flex;

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

    z-index: 99999;
}

.loader-logo {
    width: 90px;
    height: 90px;

    display: flex;

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

    animation:
        logo-spin 1.1s linear infinite;
}

.loader-logo img {
    width: 70px;
    height: 70px;

    object-fit: contain;
}

@keyframes logo-spin {

    from {
        transform:
            perspective(500px)
            rotateY(0deg);
    }

    to {
        transform:
            perspective(500px)
            rotateY(360deg);
    }

}


/* =========================================================
   Loading Bar
========================================================= */

#loading-bar {
    position: fixed;

    top: 0;
    right: 0;

    width: 0;
    height: 3px;

    background: #777777;

    z-index: 999999;

    transition:
        width 0.2s ease,
        opacity 0.3s ease;
}


/* =========================================================
   Scrollbar
========================================================= */

::-webkit-scrollbar {
    width: 3px;
    height: 3px;
}

::-webkit-scrollbar-track {
    background: #eeeeee;
}

::-webkit-scrollbar-thumb {
    background: #888888;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #666666;
}


/* =========================================================
   Footer
========================================================= */

.site-footer {
    width: 100%;

    margin-top: 50px;

    background: #111827;

    color: #ffffff;

    direction: rtl;
}

.footer-container {
    width: 100%;
    max-width: 1000px;

    margin: auto;

    padding: 40px 20px;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 30px;
}

.footer-section h3 {
    margin-top: 0;
    margin-bottom: 18px;

    font-size: 18px;
}

.footer-section p {
    line-height: 2;

    color: #d1d5db;
}

.footer-section a {
    display: block;

    margin-bottom: 12px;

    color: #d1d5db;

    text-decoration: none;

    transition: 0.2s;
}

.footer-section a:hover {
    color: #ffffff;
}

.footer-section i {
    margin-left: 5px;
}

.footer-social {
    display: flex;

    gap: 10px;
}

.footer-social a {
    width: 40px;
    height: 40px;

    display: flex;

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

    border-radius: 50%;

    background: #1f2937;

    color: #ffffff;

    font-size: 18px;
}

.footer-social a:hover {
    background: #374151;
}

.footer-bottom {
    border-top:
        1px solid #374151;

    text-align: center;

    padding: 18px 10px;
}

.footer-bottom p {
    margin: 0;

    color: #9ca3af;

    font-size: 13px;
}


/* =========================================================
   Responsive Product Buttons
========================================================= */

@media (max-width: 500px) {

    .add-to-cart-btn {
        left: 20px;
        top: 20px;
    }

    .add-to-like-btn {
        right: 20px;
        top: 20px;
    }
}


/* =========================================================
   Mobile
========================================================= */

@media (max-width: 500px) {

    header > section,
    .simple-box,
    .login-box,
    .product-detail-box {
        width: calc(100% - 20px);
    }

    .form-card {
        padding: 16px;
    }

    .address-section {
        padding: 13px;
    }

    .profile-upload {
        gap: 10px;
        padding: 12px;
    }

    .profile-upload-preview {
        width: 60px;
        height: 60px;
    }

    .profile-preview-default {
        font-size: 26px;
    }

    .profile-upload-content input[type="file"] {
        font-size: 10px;
    }

    .progress-line {
        width: 18px;
    }

    .progress-step small {
        font-size: 8px;
    }

    #house-box {
        gap: 7px;
    }
}


/* =========================================================
   Footer Mobile
========================================================= */

@media (max-width: 700px) {

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 450px) {

    .footer-container {
        grid-template-columns: 1fr;

        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}


/* =========================================================
   Footer پایین صفحه
========================================================= */

footer {
    margin-top: auto;
}


/* =========================================================
   Transitions
========================================================= */

.product-box section {
    transition:
        background 200ms ease-in,
        color 200ms ease-in,
        box-shadow 200ms ease-in;
}