* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Lucida Calligraphy, sans-serif;
    background-color: #121212;
    color: #ffffff;
}

/* Header Styles */
header {
    background-color: #030100;
    padding: 15px 0;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 40px;
}

.search {
    flex: 1;
    margin: 0 20px;
}

.search input {
    width: 80%;
    padding: 10px;
    border: none;
    border-radius: 4px 0 0 4px;
}

.search button {
    padding: 10px 20px;
    background: #00ab39;
    border: none;
    color: white;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-button {
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.nav-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    z-index: -1;
    transition: transform 0.3s ease;
    transform: scaleX(0);
    transform-origin: right;
}

.nav-button:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-button:hover {
    color: white;
}

/* Login button */
.nav-links a:nth-child(1) {
    font-family: Copperplate Gothic, sans-serif;
    background: linear-gradient(to right, #004f26, #c2e9fb);
    color: #f9f9fb;
    border-color: #000206;
}

.nav-links a:nth-child(1):hover {
    color: white;
}

/* Daftar button */
.nav-links a:nth-child(2) {
    font-family: Copperplate Gothic, sans-serif;
    background: linear-gradient(to right, #004f26, #c2e9fb);
    color: #f9f9fb;
    border-color: #000206;
}

.nav-links a:nth-child(2):hover {
    color: white;
}

/* Promosi button */
.nav-links .promo {
    font-family: Copperplate Gothic, sans-serif;
    background: linear-gradient(to right, #004f26, #c2e9fb);
    color: #f9f9fb;
    border-color: #000206;
}

.nav-links .promo:hover {
    color: white;
}

/* Keranjang link */
.nav-links a:last-child {
    display: flex;
    align-items: center;
    gap: 5px;
    color: white;
}

.nav-links a:last-child:hover {
    color: #ffe0d1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-button {
        padding: 6px 12px;
        font-size: 0.9em;
    }
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.categories-menu {
    position: relative;
}

.categories-btn {
    background: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.categories-btn i {
    font-size: 16px;
}

.categories-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 250px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 4px;
    display: none;
    z-index: 1000;
}

.categories-menu:hover .categories-dropdown {
    display: block;
}

.categories-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
}

.categories-dropdown a:hover {
    background-color: #f5f5f5;
}

.categories-dropdown i {
    width: 20px;
    text-align: center;
}

/* Banner Styles */
.banner {
    max-width: 1200px;
    margin: 20px auto;
}

.banner img {
    width: 100%;
    border-radius: 8px;
}

/* Categories Styles */
.categories {
    max-width: 1200px;
    margin: 40px auto;
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.categories h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #ffffff;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.category-item {
    text-align: center;
    background-color: #252525;
    padding: 15px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.category-item:hover {
    transform: translateY(-5px);
    background-color: #2d2d2d;
}

.category-item img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.category-item p {
    font-family: Matura MT Script Capitals, sans-serif;
    font-size: 1.1em;
    margin-top: 8px;
    font-weight: 500;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.category-item:hover p {
    color: #f0f0f0;
}

/* Flash Sale Styles */
.flash-sale {
    max-width: 1200px;
    margin: 40px auto;
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.product-card {
    background-color: #252525;
    border: 1px solid #333;
    padding: 10px;
    border-radius: 8px;
    position: relative;
}

.product-card img {
    width: 100%;
}

.price {
    color: #f57224;
    font-weight: bold;
}

.discount {
    text-decoration: line-through;
    color: #9e9e9e;
    font-size: 0.9em;
}

.discount-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f57224;
    color: white;
    padding: 5px;
    border-radius: 4px;
}

/* Footer Styles */
footer {
    background: #1a1a1a;
    color: #ffffff;
    padding: 40px 0;
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #cccccc;
    text-decoration: none;
}

.footer-section ul li a:hover {
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 10px;
    }

    .search {
        margin: 15px 0;
        width: 100%;
    }

    .nav-links {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        margin: 0 10px;
    }
}

/* Cursor Styles */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid #f36f21;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    animation: cursorAnim 0.5s infinite alternate;
}

.cursor::after {
    content: "";
    width: 20px;
    height: 20px;
    position: absolute;
    border: 8px solid rgba(243, 111, 33, 0.3);
    border-radius: 50%;
    opacity: .5;
    top: -8px;
    left: -8px;
    animation: cursorAnimAfter 0.5s infinite alternate;
}

@keyframes cursorAnim {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(.7);
    }
}

@keyframes cursorAnimAfter {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.5);
    }
}