/* ================= GLOBAL ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

html {
    scrollbar-gutter: stable;
    scroll-behavior: smooth;
}

body {
    background: #121212;
    color: white;
    line-height: 1.7;
}

strong {
    color: gold;
}


/* ================= NAVIGATION ================= */

.top-nav {

    position: sticky;
    top: 0;
    z-index: 2000;

    background: #1b1b1b;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 14px 60px;

    border-bottom: 1px solid rgba(255, 215, 0, .15);

    box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}

.nav-left {

    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-right {
    margin-left: auto;
}

.top-nav a {

    color: white;
    text-decoration: none;

    font-size: 16px;

    padding-bottom: 6px;

    transition: .25s;
}

.top-nav a:hover {

    color: gold;

    transform: translateY(-2px);
}

.top-nav a.active {

    color: gold;

    font-weight: bold;

    border-bottom: 3px solid gold;
}


/* ================= HERO ================= */

.hero {

    height:100vh;

    background-image:url("../images/homepage/background.jpg");

    background-size:cover;

    background-position:top;

    padding:0 0;
}

.logo{
    width:20%;

    max-width:100%;
    
    display:block;

    margin-bottom:30px;
}

.overlay {

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, .75);

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    text-align: center;

    padding: 20px;
}

.overlay h1 {

    font-size: 70px;

    color: gold;

    margin-bottom: 20px;
}

.overlay p {

    max-width: 750px;

    font-size: 18px;
}


/* ================= BREADCRUMB ================= */

.breadcrumb {

    position: sticky;

    top: 0;

    z-index: 1000;

    background: #1b1b1b;

    padding: 18px 80px;

    box-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}

.breadcrumb a {

    color: gold;

    text-decoration: none;
}

.breadcrumb a:hover {

    text-decoration: underline;
}

.breadcrumb span {

    margin: 0 8px;

    color: #aaa;
}

/* ================= BUTTON ================= */

.btn{

    margin-top:40px;

    padding:15px 40px;

    background:gold;

    color:black;

    text-decoration:none;

    border-radius:30px;

    font-weight:bold;

    transition:transform .3s;

}

.btn:hover{

    transform:scale(1.05);

}

/* ================= COMMON ================= */

section {

    padding: 60px 80px;
}

section h2 {

    color: gold;

    margin-bottom: 20px;
}


/* ================= OVERVIEW ================= */

.overview p {

    max-width: 950px;

    font-size: 18px;

    color: #d5d5d5;
}


/* ================= ITEM SECTION ================= */

.item-section {

    padding-top: 20px;
}


/* ================= CATEGORY TABS ================= */

.category-tabs {

    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-bottom: 35px;
}

.category-tab {

    background: #202020;

    border: none;

    border-radius: 12px;

    color: white;

    cursor: pointer;

    padding: 12px 25px;

    font-size: 16px;

    transition: .3s;
}

.category-tab:hover {

    background: #2d2d2d;

    transform: translateY(-3px);
}

.category-tab.active {

    background: #2b2b2b;

    color: gold;

    border: 1px solid gold;
}


/* ================= ITEM GRID ================= */

.item-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(150px, 1fr));

    gap: 18px;
}


/* ================= ITEM CARD ================= */

.item-card {

    background: #202020;

    border-radius: 16px;

    padding: 15px;

    text-align: center;

    cursor: pointer;

    border: 1px solid transparent;

    transition: .3s;
}

.item-card:hover {

    transform: translateY(-7px);

    background: #292929;

    border-color: rgba(255, 215, 0, .5);
}

.item-card img {

    width: 85px;

    height: 85px;

    object-fit: cover;

    border-radius: 12px;

    margin-bottom: 10px;
}

.item-card h3 {

    color: gold;

    font-size: 16px;

    line-height: 1.3;

    margin-bottom: 5px;
}

.item-use {

    color: #ddd;

    font-size: 13px;

    font-weight: bold;

    line-height: 1.3;
}

.item-category {

    color: #888;

    font-size: 12px;

    margin-top: 4px;
}


/* ================= MODAL ================= */

.item-modal {

    display: none;

    position: fixed;

    inset: 0;

    z-index: 5000;

    background: rgba(0, 0, 0, .8);

    padding: 30px;

    overflow-y: auto;
}

.item-modal.show {

    display: flex;

    justify-content: center;

    align-items: flex-start;
}


/* ================= MODAL CARD ================= */

.modal-card {

    position: relative;

    background: #202020;

    border: 1px solid rgba(255, 215, 0, .3);

    border-radius: 20px;

    width: 900px;

    max-width: 100%;

    margin: 20px auto;

    padding: 45px;

    animation: modalFade .3s ease;
}

@keyframes modalFade {

    from {

        opacity: 0;

        transform: translateY(20px);
    }

    to {

        opacity: 1;

        transform: translateY(0);
    }
}


/* ================= CLOSE BUTTON ================= */

.close-modal {

    position: absolute;

    top: 15px;

    right: 18px;

    width: 38px;

    height: 38px;

    border: none;

    border-radius: 50%;

    background: #2d2d2d;

    color: white;

    font-size: 25px;

    cursor: pointer;

    transition: .25s;
}

.close-modal:hover {

    background: #444;

    color: gold;
}


/* ================= MODAL IMAGE ================= */

.modal-icon {

    width: 130px;

    height: 130px;

    object-fit: cover;

    border-radius: 50%;

    display: block;

    margin: 0 auto 20px;
}


/* ================= MODAL HEADER ================= */

.modal-title {

    text-align: center;

    color: gold;

    font-size: 36px;

    margin-bottom: 5px;
}

.modal-use {

    text-align: center;

    color: #ddd;

    font-size: 17px;

    font-weight: bold;
}

.modal-category {

    text-align: center;

    color: #888;

    margin-bottom: 30px;
}


/* ================= STATS ================= */

.stats-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(200px, 1fr));

    gap: 18px;

    margin-bottom: 25px;
}

.stat-box {

    background: #2b2b2b;

    border-radius: 15px;

    padding: 20px;

    text-align: center;
}

.stat-box h4 {

    color: #ccc;

    font-size: 14px;

    margin-bottom: 5px;
}

.stat-box p {

    color: gold;

    font-size: 21px;

    font-weight: bold;
}


/* ================= PRICES ================= */

.price-section {

    display: grid;

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

    gap: 15px;

    background: #181818;

    border-radius: 15px;

    padding: 18px;

    margin-bottom: 35px;
}

.price-box {

    text-align: center;

    border-right: 1px solid #333;
}

.price-box:last-child {

    border-right: none;
}

.price-box h4 {

    color: #aaa;

    font-size: 13px;

    margin-bottom: 4px;
}

.price-box p {

    color: gold;

    font-size: 17px;

    font-weight: bold;
}


/* ================= DESCRIPTION ================= */

.modal-section {

    margin-top: 25px;
}

.modal-section h3 {

    color: gold;

    margin-bottom: 10px;
}

.modal-section p {

    color: #d5d5d5;

    font-size: 15px;
}


/* ================= RESPONSIVE ================= */

@media(max-width: 900px) {

    .top-nav {

        flex-direction: column;

        gap: 15px;

        padding: 18px;
    }

    .nav-left {

        flex-wrap: wrap;

        justify-content: center;

        gap: 18px;
    }

    section {

        padding: 50px 25px;
    }

    .overlay h1 {

        font-size: 50px;
    }

    .breadcrumb {

        padding: 15px 25px;
    }

    .modal-card {

        padding: 35px 25px;
    }

}


@media(max-width: 600px) {

    .item-grid {

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

        gap: 12px;
    }

    .category-tabs {

        justify-content: center;
    }

    .price-section {

        grid-template-columns: 1fr;
    }

    .price-box {

        border-right: none;

        border-bottom: 1px solid #333;

        padding-bottom: 12px;
    }

    .price-box:last-child {

        border-bottom: none;

        padding-bottom: 0;
    }

    .modal-title {

        font-size: 28px;
    }

}