html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #0b0b0b;
    color: #fff;
    margin: 0;
}

header {
    background: linear-gradient(145deg, #1c1c1c, #000);
    padding: 15px 5%;
    border-bottom: 2px solid #d4af37;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { color: #d4af37; font-size: 26px; margin: 0; }
.logo span { color: #fff; }

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: 0.3s;
}

.nav-menu a:hover { color: #d4af37; }

.dropdown { position: relative; }
.dropbtn { cursor: pointer; }
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #1a1a1a;
    min-width: 180px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.6);
    z-index: 1100;
    border: 1px solid #d4af37;
    top: 100%;
    border-radius: 4px;
}
.dropdown-content a {
    color: white;
    padding: 12px 16px;
    display: block;
    font-size: 14px;
    border-bottom: 1px solid #2a2a2a;
}
.dropdown:hover .dropdown-content { display: block; }

.auth-box { display: flex; align-items: center; gap: 15px; }
#user-profile { font-size: 13px; color: #aaa; }

.gold-button {
    background: linear-gradient(to bottom, #d4af37, #aa8507);
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    color: #000;
}

.hero {
    text-align: center;
    padding: 15px 10% 30px 10%;
    background: radial-gradient(circle, #222, #0b0b0b);
}
.hero h2 { color: #d4af37; font-size: 32px; margin: 0 0 10px 0; }
.hero p { font-size: 16px; margin: 0; line-height: 1.4; }

.container { padding: 20px 5%; }

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

.product-card {
    background: #181818;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #2a2a2a;
    transition: 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    scroll-margin-top: 100px;
}

.product-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #d4af37;
    color: #000;
    padding: 3px 8px;
    font-weight: bold;
    font-size: 10px;
    border-radius: 4px;
    z-index: 2;
}

.product-info { padding: 12px; text-align: center; flex-grow: 1; }
.product-info h3 { color: #d4af37; margin: 0; font-size: 14px; }
.product-info .price { font-size: 16px; margin: 8px 0; font-weight: bold; color: #fff; }

.button-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 12px 12px 12px;
}

.detail-button {
    text-align: center;
    padding: 8px;
    background: transparent;
    border: 1px solid #d4af37;
    color: #d4af37;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    border-radius: 6px;
    transition: 0.3s;
}

.buy-button {
    width: 100%;
    padding: 8px;
    background: #d4af37;
    color: #000;
    border: none;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
}

.buy-button:hover { background: #fff; }
.detail-button:hover { background: rgba(212, 175, 55, 0.1); }

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    border-radius: 50px;
    padding: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    z-index: 9999;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-float img { width: 30px; height: 30px; }
.whatsapp-float:hover { transform: scale(1.1); }

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1200;
}
.hamburger span { width: 25px; height: 3px; background-color: #d4af37; border-radius: 2px; }

@media (max-width: 992px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        right: 0;
        background: #161616;
        width: 250px;
        height: 100vh;
        border-left: 1px solid #d4af37;
    }
    .nav-menu.active { display: block; }
    .nav-menu ul { flex-direction: column; padding: 30px; gap: 20px; }
    .hamburger { display: flex; }
}

@media (min-width: 768px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .product-card img { height: 180px; }
}

@media (min-width: 1024px) {
    .product-grid { grid-template-columns: repeat(4, 1fr); }
}