html, body {
    height: 100%;
    margin: 0;
    background-color: #0d0d0d !important;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: white;
    font-family: Arial, sans-serif;
}

/* HEADER */
header {
    padding:15px 20px;
    background:#111;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

/* MAIN WRAPPER */
.grid-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 170px);
    justify-content: center;
    gap: 14px;
    padding: 20px;
}

/* CARD */
.card {
    background:#151515;
    border-radius:10px;
    overflow:hidden;
    text-align:center;
    width:170px;
}

/* IMAGE */
.card img {
    width:100%;
    height:220px;
    object-fit:cover;
    display:block;
    background:#111;
}

/* TEXT */
.info {
    padding:8px 6px 10px;
}

.title {
    font-size:14px;
    margin:5px 0 4px;
    line-height:1.3;
    min-height:36px;
}

/* PRICE */
.price {
    color:#39ff88;
    font-size:17px;
    font-weight:bold;
    margin-top:6px;
}

/* BUTTON */
.buy {
    width:90%;
    margin:8px auto;
    padding:10px;
    background:#fff;
    color:#000;
    border:none;
    border-radius:8px;
    font-weight:bold;
    cursor:pointer;
    font-size:13px;
    display:block;
}

.buy:hover {
    opacity:0.9;
}

/* FOOTER */
footer {
    background:#0a0a0a;
    padding:30px 20px;
    text-align:center;
    border-top:1px solid #222;
    margin-top:auto;
}

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

.modal {
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.85);
    justify-content:center;
    align-items:center;
    z-index:9999;
}

.modal-content {
    background:#151515;
    padding:20px;
    border-radius:10px;
    width:320px;
    text-align:center;
    position:relative;
}

.modal-content img {
    width:100%;
    border-radius:8px;
    margin-bottom:10px;
}

.modalPrice {
    color:#39ff88;
    font-size:18px;
    font-weight:bold;
}

.close {
    position:absolute;
    right:10px;
    top:5px;
    font-size:22px;
    cursor:pointer;
}

/* ========================= */
/* LINK FIX (NO PURPLE)      */
/* ========================= */

.modal-content a {
    color:#aaa !important;
    text-decoration: underline;
}

.modal-content a:visited {
    color:#aaa !important;
}

.modal-content a:hover,
.modal-content a:active {
    color:#fff !important;
}

/* ========================= */
/* AGE GATE                  */
/* ========================= */

.age-gate {
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.92);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:10000;
}

.age-box {
    background:#151515;
    padding:25px;
    border-radius:12px;
    text-align:center;
    width:320px;
}

.age-buttons {
    display:flex;
    gap:10px;
    margin-top:15px;
}

.age-buttons button {
    flex:1;
    padding:10px;
    border:none;
    border-radius:8px;
    cursor:pointer;
    font-weight:bold;
}

.age-buttons button:first-child {
    background:#39ff88;
    color:black;
}

.age-buttons button:last-child {
    background:#ff4444;
    color:white;
}