* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #fff;
}

body {
    background: url('../img/background6.jpg') center center / cover no-repeat;
    font-family: 'Vazirmatn', sans-serif;
    overflow-x: hidden;
    direction: rtl;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}


h1 {
    font-size: 2.5em;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.cart {
    position: absolute;
    left: 20px;
    top: 25px;
    background: linear-gradient(45deg, #fff, #eee);
    color: #000;
    padding: 10px 15px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.riotlogo {
    position: fixed;
    height: 130px;
    filter: drop-shadow(0 0 15px rgb(0, 0, 0));
    right: 50%;
    z-index: 5;
    transform: translateX(50%);
    top: 1rem;
}

.cart:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 10vh auto;
}

.card {
    background: rgba(34, 34, 34, 0.3);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.4s ease;
    backdrop-filter: blur(6px);
    border: 1px solid #444;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    filter: grayscale(100%) brightness(1.2);
    transition: filter 0.3s;
}

.card:hover img {
    filter: grayscale(0%) brightness(1.5);
}

h3 {
    margin: 15px 0;
    font-size: 1.4em;
}

.shopingcart {
    position: relative;
    right: 10.5vh;
    margin: 0px 0;
    width: 100px;
}

shopingcart {
    position: relative;
    right: vh;
}

p {
    color: #ccc;
    margin-bottom: 15px;
}

.fancy {
    background-color: transparent;
    border: 2px solid #fff;
    border-radius: 0;
    box-sizing: border-box;
    color: #000;
    cursor: pointer;
    display: inline-block;
    float: right;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin: 0;
    outline: none;
    overflow: visible;
    padding: 1.25em 2em;
    position: relative;
    text-align: center;
    text-decoration: none;
    text-transform: none;
    transition: all 0.3s ease-in-out;
    user-select: none;
    font-size: 13px;
    right: 25%;
}

.fancy::before {
    content: " ";
    width: 1.5625rem;
    height: 2px;
    background: white;
    top: 50%;
    left: 1.5em;
    position: absolute;
    transform: translateY(-50%);
    transform-origin: center;
    transition: background 0.3s linear, width 0.3s linear;
}

.fancy .text {
    font-size: 1.125em;
    line-height: 1.33333em;
    padding-left: 2em;
    display: block;
    text-align: left;
    transition: all 0.3s ease-in-out;
    text-transform: uppercase;
    text-decoration: none;
    color: white;
}

.fancy .top-key {
    height: 2px;
    width: 1.5625rem;
    top: -2px;
    left: 0.625rem;
    position: absolute;
    background: #212121;
    transition: width 0.5s ease-out, left 0.3s ease-out;
}

.fancy .bottom-key-1 {
    height: 2px;
    width: 1.5625rem;
    right: 1.875rem;
    bottom: -2px;
    position: absolute;
    background: #212121;
    transition: width 0.5s ease-out, right 0.3s ease-out;
}

.fancy .bottom-key-2 {
    height: 2px;
    width: 0.625rem;
    right: 0.625rem;
    bottom: -2px;
    position: absolute;
    background: #212121;
    transition: width 0.5s ease-out, right 0.3s ease-out;
}

.fancy:hover {
    color: white;
    background: white;
}

.fancy:hover::before {
    width: 0.9375rem;
    background: black;
}

.fancy:hover .text {
    color: black;
    padding-left: 1.5em;
}

.fancy:hover .top-key {
    left: -2px;
    width: 0px;
}

.fancy:hover .bottom-key-1,
.fancy:hover .bottom-key-2 {
    right: 0;
    width: 0;
}

.fancy.vest-unavailable {
    border-color: #ff2b2b;
    background: rgba(255, 0, 0, 0.12);
    cursor: not-allowed;
    pointer-events: none;
}

.fancy.vest-unavailable::before {
    background: #ff2b2b;
}

.fancy.vest-unavailable .text {
    color: #ff2b2b;
}

input[type="number"] {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #444;
    color: #fff;
    border-radius: 5px;
    padding: 5px;
    text-align: center;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.home-footer {
    background: #101216;
    color: #d9d9d9;
    padding: 40px 0;
    font-family: "Vazirmatn", sans-serif;
    margin-top: auto;
}

.home-footer .content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
}

.logo-wrapper a {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    text-shadow: 0px 0px 20px rgba(255, 255, 255, 0.5);
}

.logo-wrapper span {
    color: rgb(0, 184, 76);
    text-shadow: 0px 0px 20px rgba(0, 184, 77, 0.5);
}

.logo-wrapper p {
    font-size: 0.9rem;
    color: #777;
    margin-top: 5px;
}

.socials {
    display: flex;
    gap: 15px;
}

.socials .social {
    color: #ccc;
    transition: all 0.3s ease;
}

.socials .social:hover {
    color: #fcfcfc;
    transform: translateY(-3px);
}

.signs-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.signs-wrapper p {
    font-size: 0.95rem;
    color: #bbb;
}

.signs-wrapper .itemZ img,
.signs-wrapper .itemE img,
.signs-wrapper .itemS img {
    height: 45px;
    border-radius: 10px;
    padding: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.signs-wrapper .itemZ img {
    filter: drop-shadow(0 0 15px rgba(255, 238, 0, 0.6));
}

.signs-wrapper .itemZ img:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(255, 238, 0, 0.6));
}

.signs-wrapper .itemE img {
    filter: drop-shadow(0 0 15px rgba(0, 122, 221, 0.6));
}

.signs-wrapper .itemE img:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(0, 122, 221, 0.6));
}

.signs-wrapper .itemS img {
    filter: drop-shadow(0 0 15px rgba(255, 217, 0, 0.6));
}

.signs-wrapper .itemS img:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(255, 217, 0, 0.6));
}

.cart-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 400px;
    height: 100%;
    background: rgba(34, 34, 34, 0.5);
    backdrop-filter: blur(10px);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 20;
    overflow-y: auto;
    border-right: 1px solid #444;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.cart-drawer.open {
    transform: translateX(0);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 15;
    display: none;
}

.overlay.show {
    display: block;
}

.cart-content {
    padding: 20px;
}

.close {
    position: absolute;
    top: 10px;
    left: 10px;
    cursor: pointer;
    font-size: 24px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 20px;
    backdrop-filter: blur(30px);
    border-radius: 5px;
}

.remove {
    background: #ff000000;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    filter: drop-shadow(0 0 2px #ba0000c9);
    transition: all 0.3s;
}

.remove:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 0 6px #ba0000c9);
}

.total {
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
}

.gang-input-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    justify-content: center;
}

#gangQuantity {
    width: 60px;
    padding: 5px;
    text-align: center;
    font-family: vazir;
    background: rgb(0 0 0 / 10%);
    border: 1px solid #44444400;
    color: #fff;
    border-radius: 5px;
}

#gangTotalPrice {
    color: #ccc;
    font-weight: bold;
    min-width: 80px;
    /* جلوگیری از جابجایی */
}

/* From Uiverse.io by JaydipPrajapati1910 */
.button {
    position: absolute;
    left: 2.2vh;
    top: 1.7vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 15px;
    gap: 15px;
    background-color: #181717;
    outline: 3px #181717 solid;
    outline-offset: -3px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: 400ms;
    font-weight: bold;
    box-shadow: 0px 0px 50px #000000;
}

.button .text {
    color: white;
    font-weight: 700;
    font-size: 1em;
    transition: 400ms;
    margin: 0;
    font-family: vazir;
}

.button svg path {
    transition: 400ms;
}

.button:hover {
    background-color: #000000a3;
}

.buybutton {
    position: relative;
    right: 7.0vh;
    --green: #1BFD9C;
    font-size: 15px;
    padding: 0.8em 4.7em;
    letter-spacing: 0.06em;
    position: relative;
    font-family: inherit;
    font-weight: 500;
    border-radius: 0.6em;
    overflow: hidden;
    transition: all 0.3s;
    line-height: 1.4em;
    border: 2px solid var(--green);
    background: linear-gradient(to right, rgba(27, 253, 156, 0.1) 1%, transparent 40%, transparent 60%, rgba(27, 253, 156, 0.1) 100%);
    color: var(#fff);
    box-shadow: inset 0 0 10px rgba(27, 253, 156, 0.4), 0 0 9px 3px rgba(27, 253, 156, 0.1);
}

.buybutton:hover {
    color: #ffffff;
    box-shadow: inset 0 0 10px rgba(27, 253, 156, 0.6), 0 0 9px 3px rgba(27, 253, 156, 0.2);
}

.buybutton:before {
    content: "";
    position: absolute;
    left: -4em;
    width: 4em;
    height: 100%;
    top: 0;
    transition: transform .4s ease-in-out;
    background: linear-gradient(to right, transparent 1%, rgba(27, 253, 156, 0.1) 40%, rgba(27, 253, 156, 0.1) 60%, transparent 100%);
}

.buybutton:hover:before {
    transform: translateX(15em);
}





.buybutton2 {
    position: relative;
    right: 0vh;
    --green: #ffffff;
    font-size: 15px;
    padding: 0.8em 3.7em;
    letter-spacing: 0.06em;
    position: relative;
    font-family: inherit;
    font-weight: 500;
    border-radius: 0.6em;
    overflow: hidden;
    transition: all 0.3s;
    line-height: 1.4em;
    border: 2px solid var(--green);
    background: linear-gradient(to right, rgb(202 202 202 / 10%) 1%, #00000000 40%, transparent 60%, rgb(222 222 222 / 10%) 100%);
    color: var(#fff);
    box-shadow: inset 0 0 10px rgb(255 255 255 / 40%), 0 0 9px 3px rgb(255 255 255 / 10%);
}

.buybutton2:hover {
    color: #ffffff;
    box-shadow: inset 0 0 10px rgb(255 255 255 / 60%), 0 0 9px 3px rgb(255 255 255 / 20%);
}

.buybutton2:before {
    content: "";
    position: absolute;
    left: -4em;
    width: 4em;
    height: 100%;
    top: 0;
    transition: transform .4s ease-in-out;
    background: linear-gradient(to right, transparent 1%, rgb(255 255 255 / 10%) 40%, rgb(255 255 255 / 10%) 60%, transparent 100%);
}

.buybutton2:hover:before {
    transform: translateX(18em);
}

@media (max-width: 768px) {
    .home-footer .content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .socials {
        justify-content: center;
    }

    .signs-wrapper {
        justify-content: center;
    }

    .grid {
        grid-template-columns: 1fr;
        padding: 20px 10px;
    }

    h1 {
        font-size: 2em;
    }

    .cart-drawer {
        width: 100%;
    }

    .button {
        opacity: 0;
    }

}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    color: #fff;
    overflow-x: hidden;
    direction: rtl;
    background-color: rgb(15, 15, 15);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navbar */
.home-navbar {
    position: fixed;
    top: 5%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60rem;
    height: 5.5rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid #b4b4b43f;
    box-shadow: 0 0 50px #0000007a;
    z-index: 10;
}

.home-navbar_content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.riot-logo {
    font-size: 2rem;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
}

.version {
    font-size: 0.8rem;
    opacity: 0.7;
}

.links {
    display: flex;
    gap: 2rem;
    position: relative;
}

.links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.links a:hover {
    color: #ccc;
}

.actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

/* Logo */
.logo {
    height: 80px;
    filter: drop-shadow(0 0 10px rgba(228, 228, 228, 0.2));
    transition: all 0.5s ease;
}

.logo:hover {
    filter: drop-shadow(0 0 15px rgba(228, 228, 228, 0.6));
}

.logo-mobile {
    height: 90px;
    width: 100px;
    position: relative;
    top: -100%;
    left: -12%;
    filter: drop-shadow(0 0 10px rgba(228, 228, 228, 0.5));
    transition: all 0.5s ease;
}

/* Buttons */
.login {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 22px;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    color: #000;
    background: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 1px 1px 0 #000;
    transition: all 0.5s ease;
}

.login:hover {
    box-shadow: 3px -3px 0 #000;
    transform: skewX(-5deg) scale(1.05);
}

.login .second {
    width: 20px;
    margin-left: 20px;
    position: relative;
    top: 12%;
    transition: 0.5s;
}

.login:hover .second {
    margin-right: 45px;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    transition: 0.3s;
}

.mobile-menu {
    position: fixed;
    top: 5rem;
    right: 10rem;
    width: 80%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    transform: translateX(100%);
    z-index: 1000;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 10px #000;
    display: flex;
    opacity: 0;
    pointer-events: none;
}

.mobile-menu.open {
    animation: slideInRight 0.4s ease forwards;
    pointer-events: all;
}

.mobile-menu.close {
    animation: slideOutRight 0.4s ease forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

.mobile-menu .content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    height: 60%;
    justify-content: center;
    flex: 1;
}

.moblie-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.moblie-links a {
    font-size: 1.2rem;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

h6 {
    position: relative;
    right: 0%;
    width: 20vh;
    height: 4vh;
    font-weight: 500;
    font-family: vazir;
    font-size: 12px;
    color: #e5e5e5;
    margin: 10%;
}

/* 

@media (max-width: 1024px) {
    .home-navbar {
        width: calc(100% - 2rem);
        left: 1rem;
        right: 1rem;
        transform: none;
        top: 1rem;
    }

    .links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;

    }

    .mobile-menu {
        position: fixed;
        right: 60vw;
    }

    .logo {
        height: 90px;
        width: 100px;
    }

    .actions {
        gap: 0.5rem;
    }

    .login {
        position: relative;
        bottom: 0.6vw;
        left: 3vw;
        font-size: 25px;
        padding: 4px 16px;
    }

    img {
        width: 90%;
    }

    .button2 {
        position: absolute;
        width: 150px;
        left: 53vw;
        top: 30vw;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 7px 15px;
        gap: 15px;
        background-color: #181717;
        outline: 3px #181717 solid;
        outline-offset: -3px;
        border-radius: 5px;
        border: none;
        cursor: pointer;
        transition: 400ms;
        font-family: vazir;
        font-weight: bold;
        box-shadow: 0px 0px 50px #000000;
    }

    .logo-mobile {
        right: 5vw;
        top: -15vw;
        height: 200px;
        width: 200px;
    }

    .text2 {
        position: relative;
        top: 6px;
    }

    .mobile-menu-toggle {
        position: relative;
        bottom: 0.6vw;
        left: 1.4vw;
    }
}

 */

@media (max-width: 768px) {
    .home-navbar {
        width: calc(100% - 2rem);
        left: 1rem;
        right: 1rem;
        transform: none;
        top: 1rem;
    }

    .links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .logo {
        height: 50px;
    }

    .actions {
        gap: 0.5rem;
    }

    .login {
        font-size: 16px;
        padding: 4px 16px;
    }

    img {
        width: 80%;
    }

    .button2 {
        position: absolute;
        width: 150px;
        left: 45vw;
        top: 40vw;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 7px 15px;
        gap: 15px;
        background-color: #181717;
        outline: 3px #181717 solid;
        outline-offset: -3px;
        border-radius: 5px;
        border: none;
        cursor: pointer;
        transition: 400ms;
        font-family: vazir;
        font-weight: bold;
        box-shadow: 0px 0px 50px #000000;
    }

    h6 {
        right: 15%;
    }

    .text2 {
        position: relative;
        top: 6px;
    }
}

@media (max-width: 480px) {
    .home-navbar {
        height: 4rem;
    }

    .mobile-menu {
        width: 100%;
    }

    .login {
        font-size: 14px;
        padding: 6px 14px;
        left: 15%;
    }
}

/* استایل Modal برای نام گنگ */
.modal {
    display: none;
    position: fixed;
    z-index: 30;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    direction: rtl;
}

.modal-content {
    background-color: rgba(34, 34, 34, 0.9);
    margin: 15% auto;
    padding: 30px;
    border: 1px solid #444;
    border-radius: 15px;
    width: 80%;
    max-width: 400px;
    text-align: center;
    color: #fff;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.modal-content h3 {
    margin-bottom: 20px;
    color: #fff;
}

.modal-content input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #444;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-align: center;
    font-family: 'Vazirmatn', sans-serif;
    direction: ltr;
    /* برای انگلیسی */
}

.modal-content input::placeholder {
    color: #ccc;
    direction: ltr;
}

.modal-content .close {
    position: absolute;
    left: 2vh;
    top: 10px;
    color: #ffffff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-content .close:hover {
    color: #ccc;
}

@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        margin: 20% auto;
        padding: 20px;
    }
}