
:root {
    --purple: #0756b8;
    --purple2: #0b69d1;
    --deep: #06336f;
    --card: #0b58ad;
    --border: #032653;

    --yellow: #ffdf00;
    --yellow-dark: #d9ad00;

    --white: #ffffff;
    --soft: #f5f9ff;
    --ink: #062b59;

    --blue: #0756b8;
    --blue-light: #1685ed;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--white);
    font-family: "Cairo", sans-serif;
    background: var(--deep);
}

button, input {
    font-family: inherit;
}

button {
    cursor: pointer;
}

.background {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: repeating-linear-gradient(
        -45deg,
        #06336f,
        #06336f 35px,
        #0756b8 35px,
        #0756b8 70px
    );
}

/* HEADER */

.header {
    min-height: 85px;
    padding: 12px 4%;
    display: flex;
    align-items: center;
    gap: 22px;
    background: var(--deep);
    border-bottom: 5px solid var(--yellow);
    box-shadow: 0 7px 0 #032653;
    position: sticky;
    top: 0;
    z-index: 20;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-gif {
    width: 58px;
    height: 58px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px #0008);
}

.logo-text strong {
    display: block;
    font: 800 23px Fredoka;
    color: var(--yellow);
}

.logo-text small {
    display: block;
    font: 700 9px Fredoka;
    letter-spacing: 2px;
    color: var(--white);
}

.server-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
    padding: 8px 12px;
    background: #0756b8;
    border: 2px solid var(--yellow);
    border-radius: 12px;
}

.server-info strong,
.server-info small {
    display: block;
}

.server-info strong {
    font: 700 13px Fredoka;
}

.server-info small {
    color: #ffffff;
    font-size: 10px;
}

.online-dot {
    width: 9px;
    height: 9px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 4px #22c55e30;
}

.server-info button {
    border: 0;
    border-radius: 7px;
    padding: 5px 9px;
    color: var(--ink);
    background: var(--yellow);
    font-weight: 900;
}

.discord {
    color: white;
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
}

.header-buttons {
    display: flex;
    gap: 10px;
}

.cart-btn,
.login-btn {
    padding: 10px 13px;
    border: 3px solid var(--yellow);
    border-radius: 11px;
    font-weight: 900;
    box-shadow: 0 4px 0 #032653;
}

.cart-btn {
    background: var(--blue-light);
    color: white;
}

.cart-btn span {
    display: inline-block;
    background: var(--yellow);
    color: var(--ink);
    border-radius: 20px;
    padding: 0 7px;
}

.login-btn {
    background: var(--yellow);
    color: var(--ink);
    box-shadow: 0 4px 0 var(--yellow-dark);
}

/* LAYOUT */

.container {
    width: 94%;
    max-width: 1420px;
    margin: 35px auto;
    display: grid;
    grid-template-columns: 245px minmax(0, 1fr);
    gap: 25px;
    align-items: start;
}

/* SIDEBAR */

.sidebar {
    position: sticky;
    top: 105px;
    padding: 18px;
    background: var(--deep);
    border: 4px solid var(--yellow);
    border-radius: 18px;
    box-shadow: 0 8px 0 var(--border);
}

.sidebar h3 {
    margin: 5px 0 13px;
    color: var(--yellow);
    font-size: 12px;
}

.nav-item {
    display: block;
    width: 100%;
    text-align: right;
    margin-bottom: 11px;
    padding: 12px 14px;
    background: var(--card);
    color: white;
    border: 3px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 4px 0 var(--border);
    font-weight: 800;
    transition: .15s;
}

.nav-item:hover,
.nav-item.active {
    background: var(--yellow);
    color: var(--ink);
    transform: translateY(-2px);
}

.sidebar-box {
    margin-top: 25px;
    padding: 15px;
    text-align: center;
    background: var(--blue);
    border: 2px solid var(--yellow);
    border-radius: 13px;
}

.sidebar-box .crown {
    color: var(--yellow);
    font-size: 35px;
}

.sidebar-box strong {
    display: block;
}

.sidebar-box p {
    color: white;
    font-size: 11px;
    line-height: 1.8;
}

.sidebar-box a {
    color: var(--yellow);
    font-weight: 800;
    font-size: 12px;
}

/* HERO */

.main {
    min-width: 0;
}

.hero {
    min-height: 420px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 45px;
    background: linear-gradient(
        115deg,
        #0b69d1,
        #0756b8 65%,
        #06336f
    );
    border: 4px solid var(--yellow);
    border-radius: 22px;
    box-shadow: 0 9px 0 var(--border);
}

.hero::before {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    left: 3%;
    top: 50%;
    transform: translateY(-50%);
    background: radial-gradient(circle, #ffffff35, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 570px;
}

.hero-label {
    color: var(--yellow);
    font: 700 10px Fredoka;
    letter-spacing: 2px;
}

.hero h1 {
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.3;
    margin: 13px 0;
    font-weight: 900;
    text-shadow: 3px 4px 0 var(--border);
}

.hero h1 span {
    display: block;
    color: var(--yellow);
}

.hero p {
    color: white;
    font-size: 14px;
    line-height: 1.9;
}

.yellow-button {
    padding: 12px 22px;
    background: var(--yellow);
    color: var(--ink);
    border: 3px solid var(--border);
    border-radius: 12px;
    font-weight: 900;
    box-shadow: 0 5px 0 var(--yellow-dark), 0 7px 0 var(--border);
    transition: .15s;
}

.yellow-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 0 var(--yellow-dark), 0 10px 0 var(--border);
}

/* HERO ANIMATED LOGO */

.hero-logo {
    position: absolute;
    left: 6%;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    animation: logoFloat 3s ease-in-out infinite;
}

.hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 12px 20px #0009);
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(-50%);
    }
    50% {
        transform: translateY(calc(-50% - 12px));
    }
}

/* WELCOME */

.welcome {
    margin: 27px 0;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 13px;
    background: var(--soft);
    color: var(--ink);
    border: 4px solid var(--yellow);
    border-radius: 15px;
    box-shadow: 0 6px 0 var(--border);
}

.welcome-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: var(--yellow);
    border: 3px solid var(--border);
    border-radius: 10px;
    font-size: 22px;
}

.welcome strong {
    font-size: 14px;
}

.welcome p {
    margin: 2px 0 0;
    color: #0756b8;
    font-size: 11px;
}

.welcome-tag {
    margin-right: auto;
    padding: 6px 9px;
    background: #0756b8;
    color: white;
    border-radius: 7px;
    font: 700 9px Fredoka;
}

/* SECTIONS */

.section {
    margin: 32px 0;
    scroll-margin-top: 110px;
}

.section-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 17px;
}

.section-title small {
    color: var(--yellow);
    font: 700 10px Fredoka;
    letter-spacing: 2px;
}

.section-title h2 {
    margin: 3px 0 0;
    font-size: 25px;
    text-shadow: 2px 2px var(--border);
}

.section-title > span {
    color: white;
    font-size: 11px;
}

/* CATEGORIES */

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.category-card {
    position: relative;
    min-height: 155px;
    padding: 17px;
    text-align: right;
    background: linear-gradient(140deg, #0b69d1, #06336f);
    color: white;
    border: 4px solid var(--yellow);
    border-radius: 17px;
    box-shadow: 0 7px 0 var(--border);
    transition: .18s;
}

.category-card:hover {
    transform: translateY(-5px);
    background: #1685ed;
    box-shadow: 0 12px 0 var(--border);
}

.category-card > span {
    display: block;
    font-size: 34px;
    margin-bottom: 10px;
    filter: drop-shadow(2px 3px 0 var(--border));
}

.category-card strong {
    display: block;
    font-size: 17px;
}

.category-card small {
    display: block;
    color: white;
    font-size: 10px;
}

.category-card > b {
    position: absolute;
    left: 13px;
    bottom: 12px;
    color: var(--yellow);
    font-size: 20px;
}

.category-card:nth-child(2) {
    background: linear-gradient(140deg, #0756b8, #06336f);
}

.category-card:nth-child(3) {
    background: linear-gradient(140deg, #1685ed, #0756b8);
}

.category-card:nth-child(4) {
    background: linear-gradient(140deg, #0b69d1, #06336f);
}

/* PRODUCTS */

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.product-card {
    overflow: hidden;
    background: var(--soft);
    color: var(--ink);
    border: 4px solid var(--yellow);
    border-radius: 17px;
    box-shadow: 0 7px 0 var(--border);
    transition: .18s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 11px 0 var(--border);
}

.product-image {
    height: 155px;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(140deg, #1685ed, #0756b8);
    border-bottom: 4px solid var(--yellow);
}

.product-image.gold {
    background: linear-gradient(140deg, #ffdf00, #d9ad00);
}

.product-image.money {
    background: linear-gradient(140deg, #0b69d1, #06336f);
}

.product-image img {
    width: 110px;
    height: 110px;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(5px 7px 0 #032653);
}

.product-emoji {
    position: relative;
    z-index: 1;
    font-size: 68px;
    filter: drop-shadow(5px 7px 0 #032653);
}

.badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    padding: 3px 8px;
    background: var(--yellow);
    color: var(--ink);
    border: 2px solid var(--border);
    border-radius: 6px;
    font: 800 9px Fredoka;
}

.product-info {
    padding: 14px;
}

.product-info > small {
    color: #0756b8;
    font-size: 9px;
    font-weight: 900;
}

.product-info h3 {
    margin: 5px 0;
    font: 800 19px Fredoka;
}

.product-info p {
    min-height: 37px;
    margin: 0 0 13px;
    color: #315477;
    font-size: 11px;
    line-height: 1.7;
}

.product-bottom {
    padding-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-top: 2px dashed #9bbfe5;
}

.product-bottom strong {
    color: #0756b8;
    font: 800 18px Fredoka;
}

.add-button {
    padding: 7px 10px;
    background: var(--yellow);
    color: var(--ink);
    border: 3px solid var(--border);
    border-radius: 9px;
    box-shadow: 0 3px 0 var(--yellow-dark);
    font-size: 11px;
    font-weight: 900;
}

.add-button:hover {
    background: #fff078;
}

/* FOOTER */

footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 2px solid #ffffff35;
    color: white;
    font-size: 10px;
}

footer strong {
    color: var(--yellow);
    font: 800 17px Fredoka;
}

footer a {
    color: var(--yellow);
}

/* MODALS */

.modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: #031b39dd;
}

.modal.show {
    display: flex;
}

.modal-box {
    position: relative;
    width: min(430px, 100%);
    padding: 30px;
    text-align: center;
    background: var(--deep);
    border: 4px solid var(--yellow);
    border-radius: 20px;
    box-shadow: 0 10px 0 var(--border), 0 25px 60px #0009;
}

.close-modal {
    position: absolute;
    left: 13px;
    top: 10px;
    background: transparent;
    border: 0;
    color: white;
    font-size: 28px;
}

.modal-icon {
    font-size: 40px;
    color: var(--yellow);
}

.modal-box > small {
    color: white;
    font-size: 10px;
}

.modal-box h2 {
    margin: 5px 0;
    font-size: 25px;
}

.modal-box p {
    color: white;
    font-size: 12px;
}

.modal-box label {
    display: block;
    text-align: right;
    font-size: 12px;
    margin: 17px 0 6px;
}

.modal-box input {
    width: 100%;
    padding: 12px;
    background: #0756b8;
    color: white;
    border: 3px solid var(--yellow);
    border-radius: 10px;
    outline: none;
    font: 600 15px Fredoka;
    text-align: left;
    direction: ltr;
}

.modal-box input:focus {
    border-color: white;
}

.full-button {
    width: 100%;
    margin-top: 17px;
}

.hint {
    display: block;
    margin-top: 15px;
    color: white;
    font-size: 10px;
}

/* CART */

.cart-box {
    text-align: right;
}

.cart-box h2 {
    margin-bottom: 15px;
}

#cartItems {
    max-height: 300px;
    overflow-y: auto;
}

.empty-cart {
    display: grid;
    justify-items: center;
    gap: 7px;
    padding: 30px;
    color: white;
}

.empty-cart span {
    font-size: 30px;
}

.empty-cart strong {
    color: white;
}

.empty-cart small {
    font-size: 11px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid #ffffff25;
}

.cart-emoji {
    font-size: 25px;
}

.cart-product {
    flex: 1;
}

.cart-product strong,
.cart-product small {
    display: block;
}

.cart-product strong {
    font: 700 13px Fredoka;
}

.cart-product small {
    color: white;
    font-size: 10px;
}

.quantity {
    display: flex;
    align-items: center;
    gap: 9px;
}

.quantity button {
    width: 25px;
    height: 25px;
    background: var(--yellow);
    color: var(--ink);
    border: 2px solid var(--border);
    border-radius: 6px;
    font-weight: 900;
}

.total {
    display: flex;
    justify-content: space-between;
    margin-top: 17px;
    padding-top: 12px;
    border-top: 2px dashed #ffffff50;
}

.total strong {
    color: var(--yellow);
    font: 800 19px Fredoka;
}

/* TOAST */

.toast {
    position: fixed;
    bottom: 25px;
    left: 50%;
    z-index: 80;
    transform: translate(-50%, 20px);
    opacity: 0;
    pointer-events: none;
    padding: 10px 18px;
    background: var(--yellow);
    color: var(--ink);
    border: 3px solid var(--border);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 5px 0 var(--yellow-dark);
    transition: .2s;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* MOBILE */

.mobile-menu {
    display: none;
}

@media (max-width: 1050px) {

    .container {
        grid-template-columns: 210px minmax(0, 1fr);
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-logo {
        left: -10px;
        opacity: .65;
    }
}

@media (max-width: 760px) {

    .header {
        min-height: 72px;
        padding: 8px 12px;
        gap: 10px;
    }

    .mobile-menu {
        display: block;
        padding: 7px 10px;
        background: var(--card);
        color: white;
        border: 2px solid var(--yellow);
        border-radius: 8px;
    }

    .logo-gif {
        width: 43px;
        height: 43px;
    }

    .logo-text strong {
        font-size: 18px;
    }

    .logo-text small {
        font-size: 7px;
    }

    .server-info,
    .discord {
        display: none;
    }

    .header-buttons {
        margin-right: auto;
    }

    .cart-btn,
    .login-btn {
        padding: 7px 9px;
        font-size: 11px;
    }

    .container {
        display: block;
        width: 92%;
        margin: 20px auto;
    }

    .sidebar {
        display: none;
        position: fixed;
        top: 80px;
        right: 4%;
        width: min(280px, 92%);
        z-index: 30;
    }

    .sidebar.open {
        display: block;
    }

    .hero {
        min-height: 340px;
        padding: 28px 22px;
    }

    .hero-logo {
        left: -55px;
        width: 210px;
        height: 210px;
        opacity: .35;
    }

    .hero-content {
        z-index: 3;
    }

    .hero h1 {
        font-size: 36px;
    }

    .welcome {
        align-items: flex-start;
    }

    .welcome-tag {
        display: none;
    }

    .section-title h2 {
        font-size: 21px;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }

    .product-image {
        height: 125px;
    }

    .product-emoji {
        font-size: 55px;
    }

    .product-info {
        padding: 10px;
    }

    .product-info h3 {
        font-size: 16px;
    }

    .product-info p {
        font-size: 10px;
    }

    .product-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .add-button {
        width: 100%;
    }

    footer {
        flex-wrap: wrap;
    }
}

@media (max-width: 420px) {

    .logo-text small {
        display: none;
    }

    .cart-btn {
        font-size: 0;
    }

    .cart-btn span {
        font-size: 11px;
    }

    .category-card {
        min-height: 135px;
        padding: 12px;
    }

    .category-card strong {
        font-size: 15px;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
