:root {
    --bg: #0a0a0a;
    --bg2: #161616;
    --text: #ffffff;
    --text2: #a0a0a0;
    --text3: #222222;
    --accent: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.4);
}

* { margin:0; padding:0; box-sizing:border-box; }


body {
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, sans-serif;
    min-height:100vh;
}


header {
    padding:10px;
    border-bottom:1px solid var(--text3);
    text-align:center;
}

main {
    max-width:1200px;
    margin:auto;
    padding:10px;
}



footer {
    padding:10px;
    text-align:center;
    border-top:1px solid var(--text3);
    color:var(--text2);
}

.sites {
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
    gap:10px;
    margin:20px auto;
}

.site-card {
    background-color: var(--bg2);
    border: 1px solid #222;
    border-radius: 16px;
    padding: 15px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.site-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px -10px var(--accent-glow);
}

.site-icon {
    width:48px;
    height:48px;
    border-radius:12px;
    background:#222;
    padding:4px;
    object-fit:contain;
}

.site-name { font-weight:600; }
.site-info span { color:var(--text2); font-size:.9rem; }


/* Header Logo Clickable */

.logo a {
    color: var(--text);
    text-decoration: none;
    transition: .3s ease;
    text-align: center;
}

.logo a:hover {
    color: var(--accent);
}


/* =========================
   PRODUCT GRID
========================= */

.products {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(320px,1fr));
    gap: 25px;
    padding: 40px 20px;
}


@media (max-width: 400px) {
    .products {
        grid-template-columns: 1fr;
        padding: 30px 15px;
    }
}


/* =========================
   PRODUCT CARD
========================= */


.product-card {
    position: relative;
    background: var(--bg2);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #222;
    transition: all .35s ease;
    display: flex;
    flex-direction: column;
}



.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px -15px var(--accent-glow);
}



.product-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-content h2 {
    font-size: 1.3rem;
}

.product-content p {
    color: var(--text2);
    font-size: .95rem;
}

.meta {
    display: flex;
    justify-content: space-between;
    font-size: .85rem;
    color: var(--text2);
}



.buttons {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Buttons */

.btn-primary {
    background: var(--accent);
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
}

.btn-secondary {
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
}

.btn-buy {
    background: #22c55e;
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
}

/* Responsive */
@media (max-width:768px){
    .hero h2 { font-size:1.6rem; }
}



.topbar {
    text-align: center;
    padding: 25px 10px;
    border-bottom: 1px solid var(--text3);
}




/* =========================
   CLICKABLE CARD SYSTEM
========================= */

.product-card {
    position: relative;
    background: var(--bg2);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #222;
    transition: all .35s ease;
    display: flex;
    flex-direction: column;
}


/* Full card clickable layer */
.card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Make buttons above clickable layer */
.buttons a {
    position: relative;
    z-index: 2;
    text-align: center;
}


.product-title a {
    color: var(--text);
    text-decoration: none;
    transition: .3s;
    position: relative;
    z-index: 2;
}

.product-title a:hover {
    color: var(--accent);
}



/* Buttons */

.btn-primary {
    background: var(--accent);
    color: #fff;
    padding: 9px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: .3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99,102,241,0.4);
}

.btn-buy {
    background: #22c55e;
    color: #fff;
    padding: 9px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: .3s;
}

.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34,197,94,0.4);
}


/* =========================
   TRUE RESPONSIVE IMAGE
========================= */

.product-image {
    width: 100%;
    height: auto;        /* auto height */
    display: block;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}




/* =========================
   PAGINATION
========================= */

.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0 30px 0;
}

.page-btn {
    background: var(--bg2);
    border: 1px solid #222;
    color: var(--text2);
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all .25s ease;
    font-size: 14px;
}

.page-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.page-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 8px 20px var(--accent-glow);
}




