/* =====================================================
   TAKARA CARDS
   JAPANESE TCG STORE
===================================================== */


/* RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f6f0e5;
    color: #171717;
    line-height: 1.5;
}


a {
    text-decoration: none;
    color: inherit;
}


button {
    font-family: inherit;
}


/* =====================================================
   TOP BAR
===================================================== */

.top-bar {
    background: #171717;
    color: #ffffff;
    text-align: center;
    padding: 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}


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

.header {
    background: #faf6ee;
    border-bottom: 1px solid #ddd2c2;
    position: sticky;
    top: 0;
    z-index: 1000;
}


.header-container {
    max-width: 1450px;
    margin: auto;
    padding: 12px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}


/* LOGO */

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}


    .logo img {
        display: block;
        width: 150px;
        height: auto;
    }


/* =====================================================
   MENU
===================================================== */

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 27px;
    flex: 1;
}


    .main-nav a {
        position: relative;
        color: #171717;
        font-size: 10px;
        font-weight: 900;
        letter-spacing: 1.2px;
        white-space: nowrap;
        transition: 0.3s;
    }


        .main-nav a:hover {
            color: #b32121;
        }


        .main-nav a::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -8px;
            width: 0;
            height: 2px;
            background: #b32121;
            transition: 0.3s;
        }


        .main-nav a:hover::after {
            width: 100%;
        }


/* =====================================================
   HEADER ICONS
===================================================== */

.header-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}


.icon-button {
    width: 34px;
    height: 34px;
    position: relative;
    border: 1px solid #d1c7b7;
    border-radius: 50%;
    background: #f0eadf;
    color: #222222;
    cursor: pointer;
    transition: 0.3s;
}


    .icon-button:hover {
        background: #b32121;
        border-color: #b32121;
        color: #ffffff;
    }


.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #b32121;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 900;
}


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

.hero {
    width: 100%;
    overflow: hidden;
    background: #eee4d4;
    line-height: 0;
}


.hero-banner {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
}


/* =====================================================
   CATEGORIES
===================================================== */

.categories {
    max-width: 1450px;
    margin: auto;
    padding: 28px 30px 80px;
}


.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}


.category-card {
    display: block;
    overflow: hidden;
    background: #f7f1e5;
    border: 1px solid #d8cbb8;
    border-radius: 6px;
    transition: 0.3s;
}


    .category-card:hover {
        transform: translateY(-5px);
        border-color: #b32121;
        box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    }


    .category-card img {
        display: block;
        width: 100%;
        height: auto;
    }


/* =====================================================
   FEATURED PRODUCTS
===================================================== */

.featured-title {
    text-align: center;
    margin-top: 70px;
    margin-bottom: 35px;
}


    .featured-title p {
        color: #b32121;
        font-size: 10px;
        font-weight: 900;
        letter-spacing: 4px;
    }


    .featured-title h2 {
        margin-top: 8px;
        font-family: Georgia, serif;
        font-size: 38px;
        letter-spacing: -1px;
    }


.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}


.product-card {
    background: #ffffff;
    border: 1px solid #d8cbb8;
    border-radius: 5px;
    overflow: hidden;
    transition: 0.3s;
}


    .product-card:hover {
        transform: translateY(-5px);
        border-color: #b32121;
    }


.product-image {
    height: 330px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee7da;
}


.placeholder-card {
    color: #8d8375;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 3px;
}


.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 9px;
    background: #b32121;
    color: #ffffff;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1px;
}


.product-info {
    padding: 20px;
}


.product-category {
    color: #b32121;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 2px;
}


.product-info h3 {
    margin-top: 8px;
    font-size: 16px;
}


.product-price {
    margin-top: 14px;
    font-size: 19px;
    font-weight: 900;
}


.add-cart {
    width: 100%;
    margin-top: 15px;
    padding: 12px;
    background: #171717;
    border: none;
    color: #ffffff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
}


    .add-cart:hover {
        background: #b32121;
    }


/* =====================================================
   FOOTER
===================================================== */

.footer {
    background: #171717;
    color: #ffffff;
}


.footer-container {
    max-width: 1450px;
    margin: auto;
    padding: 65px 30px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 45px;
}


.footer-brand .logo img {
    width: 130px;
}


.footer-brand p {
    margin-top: 15px;
    color: #888888;
    font-size: 12px;
}


.footer-column {
    display: flex;
    flex-direction: column;
    gap: 9px;
}


    .footer-column h4 {
        color: #d9ad55;
        font-size: 9px;
        letter-spacing: 3px;
        margin-bottom: 8px;
    }


    .footer-column a {
        color: #999999;
        font-size: 12px;
        transition: 0.3s;
    }


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


.footer-bottom {
    border-top: 1px solid #2c2c2c;
    padding: 18px 30px;
    text-align: center;
    color: #666666;
    font-size: 10px;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1050px) {

    .main-nav {
        gap: 15px;
    }


        .main-nav a {
            font-size: 9px;
        }


    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 750px) {

    .header-container {
        padding: 10px 15px;
    }


    .logo img {
        width: 115px;
    }


    .main-nav {
        display: none;
    }


    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 480px) {

    .category-grid {
        grid-template-columns: 1fr;
    }


    .product-grid {
        grid-template-columns: 1fr;
    }


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