* {
    font-family:"Agency FB","Bziba";
    box-sizing: border-box;
}
@font-face {
    font-family: 'Bziba';
    src: url('Bziba.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
html, body {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
}
html{
    height: 100%;
}


body {
    background-image: url("Images/nasty.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: brightness(90%);
    display: flex;
    min-height: 100%;
    flex-direction: column;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}
.logo {
    position: absolute;
    top: 30px;
    left:30px;
    width:90px;

}
.Menu {
    display: flex;
    direction: rtl;
    justify-content: flex-start;
    position: fixed;
    top: 10px;
    right: 0;
    font-size: 30px;
    list-style: none ;


}
.footer-bottom .enamad {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

#zarinpal{
    position: absolute;
    right: 150px;
    top: 50%;
    transform: translateY(-50%)

}

.Menu a {
    text-decoration: none;
    color: #FFBE42;
    padding: 10px 20px;
    display: block;
    font-size: 20px;
}

a:hover {
    color: gray;
}



.box {
    top: 20px;
    left: 20px;
    width: 450px;
    height: 550px;
    background-color: #FFBE42;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    z-index: 10;
}

.box img {
    width: 90%;
    height: 380px;
    object-fit: cover;
    padding-top: 10px;
}

.box .discount {
    color: red;
    font-size: 20px;
    font-weight: bold;
    margin: 20px 0;
}

.box .price {
    font-size: 25px;
    color: #333;
    margin-left: 160px;
    text-decoration: line-through;
}

.box .discounted-price {
    font-size: 35px;
    margin-left: 160px;
    margin-top:-5px;
    color: green;
    font-weight: bold;
}


.box .actions {
    display: flex;
    justify-content: center;
    align-items: center;
}

.box .actions button {
    background-color: black;
    color: white;
    border: none;
    padding: 10px 50px;
    margin-top: 50px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
}


.box .actions button:hover {
    background-color: gray;
}
.background-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.info-box {
    flex: 1;
    background-color: #fff;
    padding: 10px;
    border-radius: 18px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    direction: rtl;
}

.info-box h1 {
    font-size: 30px;
    margin-bottom: 20px;
    color: #333;
}

.info-columns {
    display: flex;
    gap:20px;
    flex-wrap: wrap;
}

.column {
    flex: 1;
    min-width: 220px;
}

.column p {
    margin-bottom: 5px;
    font-size: 18px;
    line-height: 1.6;
    color: #444;
    font-weight: bold;
}
.background-container {
    position: relative;
    background-color: white;
    /*height: 570px;*/
    width:85%;
    margin-top: 120px;
    margin-left: 100px;
    border-radius: 10px;
    padding: 20px;
}
.sale{
    position: absolute;
    top: 350px;
    left:12px;
    width:200px;
    z-index:10;
}

.twice{
    display: flex;
    flex-direction: row-reverse;
}
.chart{
    flex: 1;
}
.swiper{
    flex: 1;
    width: 60%;
    max-width: 600px;
    margin-top: 80px;
    margin-bottom: 100px;
    margin-right: 80px !important;
}

.footer {
    margin-top: 30px;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
    /*overflow-x: hidden;*/
}
h2 {
    margin-bottom: 40px;
}


@media screen and (max-width: 600px) {
    .testimonial-card {
        flex-direction: column;
        text-align: center;
    }

    .testimonial-text {
        text-align: center;
    }
}

@keyframes shake {
    0% { transform: translate(0px, 0px); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(2px, -2px); }
    60% { transform: translate(-2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0px, 0px); }
}

.cart-shake {
    animation: shake 0.5s ease;
}
.cart-wrapper {
    position: relative;
    display: inline-block;
}
.cart-wrapper :hover{


}
#cart-count {
    position: absolute;
    top: 10px;
    right: 95px;
    font-size: 12px;
    background: red;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    display: none;
}
.image-container {
    display: flex;
    justify-content: center; /* افقی وسط */
    align-items: center;     /* عمودی وسط */
    height: 100vh;           /* کل ارتفاع صفحه */
    margin-top: 60px; /* فاصله از المان قبلی */
    margin-bottom: 50px; /* فاصله از المان قبلی */
}

.tattoo {
    border: 5px solid #000; /* بوردر مشکی */
    border-radius: 18px;    /* گوشه‌های گرد (اختیاری) */
    max-width: 75%;         /* تصویر از صفحه بیرون نزنه */
    height: auto;
}

.article a {
    color: #0066cc;
    text-decoration: none;
    font-weight: bold;
}
.articleContainer a:hover,
.articleContainer a:focus {
    color: #003366; /* آبی تیره‌تر برای تاکید */
    outline: 2px solid #003366; /* مشخص شدن فوکوس برای صفحه‌خوان‌ها و کیبورد */
    outline-offset: 2px;
}
.article{
    color: black;
    font-size: 25px;
    direction: rtl;
}
.articleContainer {
    background-color: white;
    padding: 50px 200px; /* بالا/پایین 20px، چپ/راست 40px */
    line-height: 1.6;
    width: 85%;
    margin: 20px auto 100px auto; /* بالا - وسط - پایین - وسط */
    border-radius: 18px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    direction: rtl;
}

.footer-top {
    background-color: #FFBE42;
    padding: 40px 0;
    text-align: center;
}

.social-icons {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icons li {
    display: inline-block;
}

.social-icons a {
    font-size: 24px;
    color: black;
    text-decoration: none;
}

.social-icons a:hover {
    color: white;
}

.footer-bottom {
    background-color: black;
    color: #FFBE42;
    text-align: center;
    padding: 20px 10px;
    position: relative;
}

.logo-text h2 {
    margin: 0;
    font-size: 36px;
    color: #FFBE42;
}

.logo-text span {
    display: block;
    font-size: 16px;
    margin-top: 5px;
}

.links a {
    color: #FFBE42;
    text-decoration: none;
    margin: 0 5px;
}

.links a:hover {
    text-decoration: underline;
}

.scroll-top {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: #FFBE42;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.scroll-top:hover {
    background-color: gray;
}

.scroll-top i {
    font-size: 18px;
}
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    background-color: #FFBE42;
    border: 2px solid #000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    width: 500px;  /* عرض دلخواه */
    height: auto; /* ارتفاع دلخواه */
    text-align: center;
}
/* استایل برای دکمه */
.popup button {
    background-color: #4CAF50; /* رنگ دکمه */
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    border-radius: 8px;
}
/* استایل برای پس‌زمینه نیمه شفاف */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}
/*responsive*/

@media screen and (max-width: 768px) {
    nav {
        position: relative;
    }

    .hamburger {
        display: block;
        position: absolute;
        right: 20px;
        font-size: 28px;
        color: #fff;
        cursor: pointer;
        z-index: 1001;
        top: 33px;
    }

    .Menu {
        display: none;
        flex-direction: column;
        background-color: #111;
        width: 100%;
        position: absolute;
        top: -190px;
        right: -30px;
        z-index: 1000;
    }

    .Menu.active {
        display: flex;
        margin-top: 190px;
        margin-right: 30px;
    }

    .Menu a {
        display: block;
        padding: 12px 20px;
        text-align: center;
        color: white;
        text-decoration: none;
        border-bottom: 1px solid #333;
        font-size: 16px;
    }

    .Menu a:hover {
        background-color: #222;
    }
}
@media screen and (max-width: 768px) {
    .logo {
        width: 40px;
        top: 10px;
        left: 10px;
    }
}


@media (max-width: 768px) {
    .background-container {
        align-items: center !important;
        text-align: center;
        width: 100%;
        margin-left: auto;
        display: flex;
        flex-direction: column !important;
        margin-bottom: 77px
    }

    .background-container .box,
    .background-container .info-box {
        max-width: 100%;
    }

    .background-container img {
        max-width: 100%;
        height: auto;
    }

    .background-container {
        width: 100%;
        margin-left: auto;
        border-radius: 0;
    }

    .box {
        height: auto;
    }

    #contact {
        margin-bottom: 20px;
        margin-top: 20px;
    }
}
@media screen and (max-width: 768px) {
    .footer-bottom {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-bottom .enamad {
        position: static; /* لغو absolute */
        transform: none;
        margin-top: 10px; /* فاصله از لینک‌ها */
    }
}
@media screen and (max-width: 768px) {
    .footer-bottom {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* لوگوها بیاد اول */
    .footer-bottom .trust-logos {
        order: -1; /* بیار بالا */
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 10px;
        margin-bottom: 10px; /* فاصله از اجزای بعدی */
    }

    .footer-bottom .trust-logos .enamad,
    .footer-bottom .trust-logos #zarinpal {
        position: static;
        transform: none;
        margin: 0;
        max-width: 120px;
    }
}

@media screen and (max-width: 768px) {
    .article{
        color: black;
        font-size:20px;
        direction: rtl;
    }
    .articleContainer {
        background-color: white;
        padding: 7px 20px;
        line-height: 1.6;
        margin-top:0;
        margin-bottom: 100px;
        width: 100%;
        margin: 0 auto 100px auto;

    }
}

@media screen and (max-width: 768px) {
    .image-container {
        text-align: center;
        margin-top: 10px; /* فاصله از بالای صفحه یا المان قبلی */
        margin-bottom: 90px;
    }

    .tattoo {
        border: 5px solid #000;
        border-radius: 10px;
        max-width: 400px;  /* حداکثر اندازه روی دسکتاپ */
        width: 100%;       /* توی موبایل و تبلت عرض رو پر کنه */
        height: auto;
    }


}
