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

:root {
    --primary: #6a11cb;
    --secondary: #2575fc;
    --accent: #ff6b6b;
    --light: #f8f9fa;
    --dark: #212529;
    --success: #28a745;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --ff-orange: #ff6a00;
    --ff-blue: #00a8ff;
    --robux-red: #ff4655;
    --robux-blue: #0a1428;
    --nokos-purple: #8a2be2;
    --suntik-ch-red: #ff4655;
    --suntik-ch-blue: #0a1428;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    color: var(--dark);
    min-height: 100vh;
    padding-bottom: 60px;
    position: relative;
}

/* Header Styles */
header {
    background: var(--gradient);
    color: white;
    padding: 1rem 5%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 700;
}

.logo i {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 30px;
}

.nav-links a:hover, .nav-links a.active {
    background: rgba(255, 255, 255, 0.2);
}

.nav-icons {
    display: flex;
    gap: 1.5rem;
}

.nav-icons i {
    font-size: 1.4rem;
    cursor: pointer;
    transition: var(--transition);
}

.nav-icons i:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero {
    padding: 4rem 5% 2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-container input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    box-shadow: var(--card-shadow);
    font-size: 1rem;
    padding-right: 50px;
}

.search-container button {
    position: absolute;
    right: 10px;
    top: 10px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: var(--transition);
}

.search-container button:hover {
    background: var(--primary);
    transform: scale(1.05);
}

/* Main Content */
.container {
    display: flex;
    gap: 2rem;
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Sidebar */
.sidebar {
    flex: 0 0 250px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    padding: 1.5rem;
    height: fit-content;
}

.sidebar h2 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-gray);
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--light-gray);
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    text-decoration: none;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    font-weight: 500;
}

.category-list a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.category-list a i {
    color: var(--secondary);
}

.active-category {
    color: var(--primary) !important;
    font-weight: 600 !important;
}

/* Product Section */
.products {
    flex: 1;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 1.8rem;
    color: var(--dark);
}

.sort-filter {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sort-filter select {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--light-gray);
    background: white;
    font-size: 0.9rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.product-image {
    height: 200px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
}

.product-image img {
    max-width: 80%;
    max-height: 80%;
    transition: var(--transition);
    object-fit: contain;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 1.5rem;
}

.product-category {
    color:  var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--dark);
}

.product-description {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary);
}

.add-to-cart {
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.add-to-cart:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* Footer */
footer {
    background: var(--gradient);
    color: white;
    padding: 2rem 5%;
    margin-top: 4rem;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent);
}

.footer-column p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Category Pages */
.category-page {
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    display: none;
}

.page-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.page-header h1 {
    font-size: 2.2rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.nokos-header h1 {
    background: linear-gradient(135deg, var(--nokos-purple), #d946ef);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.suntik-ch-header h1 {
    background: linear-gradient(135deg, var(--suntik-ch-red), var(--suntik-ch-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.back-button {
    background: var(--light-gray);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.back-button:hover {
    background: var(--secondary);
    color: white;
    transform: scale(1.1);
}

.page-description {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
}

.page-description p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--gray);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.category-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.category-icon {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: var(--primary);
}

.free-fire-icon {
    background: linear-gradient(135deg, #ff6a00, #00a8ff);
}

.robux-icon {
    background: linear-gradient(135deg, #ff4655, #0a1428);
}

.nokos-icon {
    background: linear-gradient(135deg, var(--nokos-purple), #d946ef);
}

.suntik-ch-icon {
    background: linear-gradient(135deg, var(--suntik-ch-red), var(--suntik-ch-blue));
}

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

.category-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.category-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark);
}

.category-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    color: var(--gray);
    line-height: 1.6;
    margin-top: 10px;
    padding: 0 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.category-detail.expanded {
    max-height: 500px;
    padding: 10px;
    margin-top: 15px;
}

.category-price {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--primary);
    margin-top: auto;
    padding-top: 1rem;
}

.free-fire-price {
    color: var(--ff-orange);
}

.robux-price {
    color: var(--robux-red);
}

.nokos-price {
    color: var(--nokos-purple);
}

.suntik-ch-price {
    color: var(--suntik-ch-red);
}

.category-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.buy-button {
    flex: 1;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    text-align: center;
}

.free-fire-button {
    background: linear-gradient(135deg, var(--ff-orange), var(--ff-blue));
}

.robux-button {
    background: linear-gradient(135deg, var(--robux-red), var(--robux-blue));
}

.nokos-button {
    background: linear-gradient(135deg, var(--nokos-purple), #d946ef);
}

.suntik-ch-button {
    background: linear-gradient(135deg, var(--suntik-ch-red), var(--suntik-ch-blue));
}

.buy-button:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.detail-button {
    flex: 1;
    background: var(--light-gray);
    color: var(--dark);
    border: none;
    border-radius: 8px;
    padding: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    text-align: center;
}

.detail-button:hover {
    background: var(--gray);
    color: white;
}

.detail-button.expanded {
    background: var(--accent);
    color: white;
}

/* Modal Pembayaran */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: modalAppear 0.4s ease-out;
    overflow: hidden;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--gray);
    transition: var(--transition);
    z-index: 2;
}

.close-modal:hover {
    color: var(--accent);
    transform: rotate(90deg);
}

.modal h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 15px;
}

.modal h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
}

.qris-container {
    position: relative;
    padding: 20px;
    margin: 20px auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: inline-block;
}

.qris-container:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient);
    border-radius: 15px 15px 0 0;
}

.modal img {
    width: 100%;
    max-width: 280px;
    border: 1px solid var(--light-gray);
    border-radius: 10px;
    margin: 1rem auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.modal img:hover {
    transform: scale(1.02);
}

.modal-instructions {
    background: var(--light-gray);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: left;
    position: relative;
    border-left: 4px solid var(--secondary);
}

.modal-instructions:before {
    content: '\f05a';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: -12px;
    left: -12px;
    background: var(--secondary);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.modal-instructions p {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark);
}

.modal-instructions ol {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.modal-instructions li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
    color: var(--gray);
}

.whatsapp-button {
    background: #25D366;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 300px;
    margin: 1rem auto 0;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-button:hover {
    background: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-button i {
    font-size: 1.4rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        flex: 0 0 auto;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 3rem 5% 1.5rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
    
    .modal h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo span {
        display: none;
    }
    
    .nav-icons {
        gap: 1rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .category-actions {
        flex-direction: column;
    }
    
    .modal-instructions {
        font-size: 0.9rem;
    }
    
    .whatsapp-button {
        padding: 0.8rem;
        font-size: 1rem;
    }
}