/* style.css - O teu design original */
:root {
    --neon: #00f2ff;
    --deep: #0033ff;
    --soft-bg: #f8fafc;
    --text-primary: #1a1a1a;
    --text-secondary: #64748b;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-font-smoothing: antialiased; }

html, body {
    width: 100%; overflow-x: hidden; background: #ffffff;
    color: var(--text-primary); font-family: 'Inter', sans-serif; line-height: 1.5;
}

body { padding-bottom: 90px; }

/* HEADER */
header {
    position: sticky; top: 0; width: 100%;
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px);
    padding: 15px 20px; display: flex; justify-content: space-between;
    align-items: center; border-bottom: 1px solid #eee; z-index: 1100;
}
.logo { font-family: 'Michroma', sans-serif; font-size: 1rem; color: var(--deep); letter-spacing: 1px; }
.top-icons { display: flex; align-items: center; gap: 15px; }
.auth-btn { padding: 6px 12px; border-radius: 50px; font-size: 0.75rem; font-weight: 600; text-decoration: none; transition: background 0.3s, color 0.3s; }
.login-btn { background: transparent; border: 1px solid var(--deep); color: var(--deep); }
.login-btn:hover { background: var(--deep); color: #fff; }
.register-btn { background: var(--deep); color: #fff; }
.register-btn:hover { background: #0022cc; }

/* LAYOUT */
.layout-wrapper { display: flex; width: 100%; max-width: 1400px; margin: 0 auto; }

/* SIDEBAR */
aside {
    width: 260px; padding: 40px 20px; border-right: 1px solid #eee;
    position: sticky; top: 70px; height: calc(100vh - 70px); display: none;
}
.side-nav a {
    display: flex; align-items: center; gap: 12px; text-decoration: none;
    color: var(--text-secondary); font-weight: 600; margin-bottom: 25px;
    transition: color 0.3s, transform 0.3s;
}
.side-nav a:hover, .side-nav a.active { color: var(--deep); transform: translateX(5px); }

/* MAIN CONTENT */
main { flex: 1; padding: 20px; width: 100%; }

/* STATUS BAR */
.status-bar { display: flex; gap: 12px; margin-bottom: 25px; overflow-x: auto; padding-bottom: 5px; scrollbar-width: none; }
.status-bar::-webkit-scrollbar { display: none; }
.stat-card {
    min-width: 150px; background: var(--soft-bg); padding: 15px;
    border-radius: 18px; border: 1px solid #edf2f7; flex-shrink: 0;
    transition: box-shadow 0.3s;
}
.stat-card:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); }
.stat-card small { font-size: 0.65rem; color: #94a3b8; text-transform: uppercase; font-weight: 800; }
.stat-card p { font-weight: 800; margin-top: 4px; color: var(--text-primary); }

/* SEARCH & COUPON */
.search-box, .coupon-box { position: relative; margin-bottom: 25px; }
.search-box input {
    width: 100%; padding: 14px 40px 14px 20px; border-radius: 15px;
    border: 1px solid #e2e8f0; background: var(--soft-bg); outline: none; transition: border-color 0.3s;
}
.search-box input:focus { border-color: var(--deep); }
.search-box i { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: var(--text-secondary); }

.coupon-box { display: flex; align-items: center; gap: 10px; margin-top: 40px; }
.coupon-box input { flex: 1; padding: 14px 20px; border-radius: 15px; border: 1px solid #e2e8f0; background: var(--soft-bg); outline: none; }
.coupon-box button { padding: 14px 20px; background: var(--deep); color: #fff; border: none; border-radius: 15px; font-weight: 600; cursor: pointer; }
.success-msg { color: var(--neon); font-size: 0.85rem; margin-top: 10px; display: none; }

/* PRODUTOS */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; width: 100%; }
.product-card {
    background: #fff; border-radius: 20px; border: 1px solid #f1f5f9;
    overflow: hidden; display: flex; flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); }
.img-container { width: 100%; aspect-ratio: 1; background: #f8fafc; position: relative; }
.img-container img { width: 100%; height: 100%; object-fit: cover; }
.tag-used {
    position: absolute; top: 10px; left: 10px; background: var(--neon);
    color: #000; font-size: 0.6rem; font-weight: 900; padding: 3px 8px; border-radius: 5px;
}
.product-info { padding: 12px; }
.product-info h4 { font-size: 0.85rem; font-weight: 600; margin-bottom: 5px; color: #334155; }
.price { font-weight: 800; color: var(--deep); font-size: 0.95rem; }

/* LIKE & FAVORITE OVERLAY */
.img-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 10px; opacity: 0; transition: opacity 0.3s;
}
.product-card:hover .img-overlay { opacity: 1; }
.favorite-icon {
    align-self: flex-end; cursor: pointer; color: #fff;
    background: rgba(0, 0, 0, 0.5); border-radius: 50%; padding: 5px; transition: color 0.3s;
}
.favorite-icon.active { color: var(--deep); }
.like-dislike { display: flex; gap: 10px; align-self: flex-start; }
.like-dislike button {
    background: rgba(0, 0, 0, 0.5); border: none; border-radius: 50%;
    padding: 5px; cursor: pointer; color: #fff; transition: color 0.3s;
}
.like-dislike button.active { color: var(--deep); }

/* BOTTOM DOCK */
.bottom-dock {
    position: fixed; bottom: 0; left: 0; width: 100%; background: #fff;
    display: flex; justify-content: space-around; padding: 12px 0;
    border-top: 1px solid #eee; z-index: 2000;
}
.dock-link {
    text-decoration: none; color: var(--text-secondary); font-size: 0.6rem;
    font-weight: 700; text-align: center; transition: color 0.3s;
}
.dock-link i { font-size: 1.2rem; display: block; margin-bottom: 4px; }
.dock-link:hover, .dock-link.active { color: var(--deep); }

/* FOOTER */
footer { text-align: center; padding: 20px; background: var(--soft-bg); color: var(--text-secondary); font-size: 0.75rem; margin-top: 40px; }

/* MEDIA QUERIES */
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) {
    aside { display: block; }
    .bottom-dock { display: none; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 25px; }
    main { padding: 40px; }
    header { padding: 15px 50px; }
}

.user-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    font-weight: 700;
    background: #f1f5f9;
    padding: 5px 10px;
    border-radius: 8px;
    color: var(--text-primary);
}

.user-stat i {
    font-size: 1rem;
}

#auth-user button:hover {
    transform: scale(1.1);
    transition: 0.2s;
}