:root {
    --primary-green: #00ff41;
    --dark-bg: #0a0a0a;
    --card-bg: #111;
    --text-gray: #ccc;
    --danger-red: #ff4b2b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: white;
    overflow-x: hidden;
}

header {
    background: rgba(0, 0, 0, 0.9);
    padding: 20px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #222;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.logo span {
    color: var(--primary-green);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary-green);
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background: none;
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
    padding: 8px 15px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #111;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0,255,65,0.2);
    z-index: 1;
    border-radius: 4px;
}

.dropdown-content button {
    color: white;
    padding: 12px 16px;
    display: block;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.dropdown-content button:hover {
    background-color: #222;
    color: var(--primary-green);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.cart-icon {
    position: relative;
}

#cart-count, #like-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--primary-green);
    color: black;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
}

/* --- HERO SECTION --- */
.hero-section {
    height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1587202372775-e229f172b9d7?q=80&w=1200') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 10%;
}

.hero-text h1 {
    font-size: 4rem;
    margin-bottom: 20px;
}

.hero-text p {
    color: var(--text-gray);
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 50px 5%;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid #222;
    padding: 20px;
    border-radius: 10px;
    transition: 0.3s;
    position: relative;
    text-align: center;
}

.product-card:hover {
    border-color: var(--primary-green);
    transform: translateY(-5px);
}

.product-img-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

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

/* --- INTERACTIVE BUTTONS --- */
.like-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.like-btn.active {
    color: var(--danger-red);
    background: white;
}

.details-btn {
    background: none;
    border: none;
    color: var(--primary-green);
    cursor: pointer;
    font-size: 0.8rem;
    margin: 10px 0;
    font-weight: bold;
}

.details-content {
    max-height: 0;
    overflow: hidden;
    transition: 0.4s ease-out;
    background: #0a0a0a;
    border-radius: 5px;
    color: #999;
    font-size: 0.85rem;
}

.details-content.active {
    max-height: 150px;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #222;
}

/* --- ACTION BUTTONS --- */
.price {
    font-size: 1.4rem;
    margin: 15px 0;
    font-weight: bold;
}

.add-to-cart {
    width: 100%;
    background: var(--primary-green);
    color: black;
    border: none;
    padding: 12px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.3s;
}

.add-to-cart:hover {
    background: #00cc33;
    box-shadow: 0 0 15px var(--primary-green);
}

.remove-btn {
    width: 100%;
    background: transparent;
    color: var(--danger-red);
    border: 1px solid var(--danger-red);
    padding: 12px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.3s;
}

.remove-btn:hover {
    background: var(--danger-red);
    color: white;
    box-shadow: 0 0 15px rgba(255, 75, 43, 0.4);
}

.section-title-center {
    text-align: center;
    margin: 50px 0;
    color: var(--primary-green);
    font-size: 2rem;
}

.empty-msg {
    color: #666;
    text-align: center;
    width: 100%;
    grid-column: 1 / -1;
    margin-top: 50px;
    font-size: 1.2rem;
}

.cat-tag {
    color: var(--primary-green);
    font-size: 0.7rem;
    text-transform: uppercase;
    margin-bottom: 5px;
}

footer {
    padding: 80px 5% 40px;
    background: #000;
    position: relative;
    overflow: hidden;
    border-top: 1px solid #222;
}

.lava-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.bubble {
    position: absolute;
    bottom: -120px;
    background: rgba(0, 255, 65, 0.15); 
    border-radius: 50%;
    filter: blur(20px);
    animation: rise infinite ease-in;
}

@keyframes rise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    30% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-800px) scale(1.6);
        opacity: 0;
    }
}

.footer-content {
    position: relative;
    z-index: 2; 
    text-align: center;
}
