/* Default dark mode theme */
:root {
    --bg: #111;
    --bg2: #181818;
    --card: #222;
    --text: #eee;
    --accent: #4fe09d;
    --accent2: #3cc47f;
}

/* Light mode theme */
body.light {
    --bg: #fafafa;
    --bg2: #ffffff;
    --card: #f0f0f0;
    --text: #111;
    --accent: #008f5a;
    --accent2: #00a86b;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, sans-serif;
    text-align: center;
}

header {
    padding: 40px 0;
    background: var(--bg2);
    margin-bottom: 30px;
}

h1, h2, h3 {
    margin: 10px 0;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: var(--bg);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    padding: 20px;
}

.product-card {
    background: var(--card);
    padding: 15px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text);
    transition: 0.2s;
}

.product-card:hover {
    background: var(--accent2);
    transform: translateY(-4px);
}

.product-card img {
    width: 100%;
    border-radius: 8px;
}

.price {
    color: var(--accent);
    font-weight: bold;
}

.free {
    color: #88e0ff;
}

.back {
    position: absolute;
    left: 20px;
    top: 20px;
    color: var(--accent);
    text-decoration: none;
}

.back:hover {
    text-decoration: underline;
}

.product-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 40px;
    flex-wrap: wrap;
}

.preview-img {
    width: 320px;
    border-radius: 10px;
    border: 2px solid var(--card);
}

.details {
    max-width: 400px;
    text-align: left;
}

.button {
    display: inline-block;
    padding: 12px 24px;
    background: var(--accent);
    color: var(--bg);
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    margin-top: 20px;
}

.button:hover {
    background: var(--accent2);
}

.wallet {
    background: var(--card);
    padding: 10px;
    display: inline-block;
    border-radius: 6px;
    word-break: break-all;
}

footer {
    padding: 20px 0;
    background: var(--bg2);
    margin-top: 40px;
}

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--accent);
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
    z-index: 999;
}

.theme-toggle:hover {
    background: var(--accent);
    color: var(--bg);
}

.product-page {
    max-width: 1100px;
    margin: auto;
    padding: 40px 20px;
}

.product-hero {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.viewer-wrap {
    background: var(--bg2);
    padding: 15px;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}

.details {
    max-width: 420px;
    text-align: left;
}

.desc {
    opacity: 0.85;
    line-height: 1.6;
    margin: 10px 0 20px;
}

.price-box {
    background: var(--card);
    padding: 10px 14px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 20px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.info-card {
    background: var(--card);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.info-card h3 {
    margin-bottom: 8px;
}

.creator-box {
    margin-top: 50px;
    padding: 25px;
    background: var(--bg2);
    border-radius: 12px;
    text-align: center;
}
model-viewer {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}
.specs-box {
    margin-top: 30px;
    background: var(--card);
    padding: 20px;
    border-radius: 12px;
}

.specs-box h3 {
    margin-bottom: 15px;
}

.specs-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.specs-box li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.specs-box li span {
    opacity: 0.7;
}
