/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff5f0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- PERBAIKAN LOGO: Pastikan styling ini ada --- */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.logo-image {
  height: 40px;
  width: auto;
}

.logo-text {
  font-weight: 700;
  font-size: 1.5rem;
  font-family: 'Poppins', sans-serif;
  color: #ffffff; /* Warna putih untuk teks logo di header */
}
/* --- AKHIR PERBAIKAN LOGO --- */


.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-link:hover::before {
    left: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #ff6b35, #ff8c42, #ffa726);
    color: white;
    text-align: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    background: white;
    color: #ff6b35;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.cta-button i {
    margin-right: 0.5rem;
}

.hero-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.floating-icon {
    position: absolute;
    font-size: 3rem;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.floating-icon:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: -2s;
}

.floating-icon:nth-child(2) {
    top: 60%;
    right: 10%;
    animation-delay: -4s;
}

.floating-icon:nth-child(3) {
    bottom: 20%;
    left: 50%;
    animation-delay: -1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Search Section */
.search-section {
    padding: 4rem 0 2rem;
    background: #fff;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #ff6b35;
    margin-bottom: 3rem;
    font-weight: 700;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ff6b35, #ffa726);
    border-radius: 2px;
}

.search-filter-container {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #ffb366;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #ff6b35;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #ff6b35;
    font-size: 1.2rem;
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.7rem 1.5rem;
    border: 2px solid #ff6b35;
    background: transparent;
    color: #ff6b35;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #ff6b35;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

/* Products Section */
.products-section {
    padding: 2rem 0 4rem;
    background: #fff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

.product-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff6b35, #ffa726, #ff6b35);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(255, 107, 53, 0.3);
}

.product-image {
    width: 100%;          /* Lebar mengikuti container */
    aspect-ratio: 1 / 1;  /* Memaksa rasio 1:1 */
    object-fit: cover;    /* Memotong gambar agar memenuhi kotak tanpa meregang */
    border-radius: 15px;  /* Opsional: sudut membulat */
    display: block;       /* Hilangkan spasi bawah */
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.badge {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-bestseller {
    background: #ffd700;
    color: #b8860b;
}

.badge-promo {
    background: #ff4757;
    color: white;
}

.badge-warranty {
    background: #3742fa;
    color: white;
}

.product-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #13b60d;
    margin-bottom: 0.5rem;
}

.product-original-price {
    font-size: 1rem;
    color: #ff0000;
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.product-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-actions {
    display: flex;
    gap: 1rem;
}

.btn-detail {
    flex: 1;
    padding: 0.8rem;
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-detail:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 20px;
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideInUp 0.4s ease-out;
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
}

.close {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.close:hover {
    transform: scale(1.2);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.modal-left {
    text-align: center;
}

.modal-product-image {
    width: 100%;
    max-width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.modal-center {
    space-y: 2rem;
}

.modal-center h3 {
    color: #ff6b35;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.variant-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.variant-option {
    padding: 0.8rem 1rem;
    border: 2px solid #ffb366;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.variant-option:hover,
.variant-option.selected {
    border-color: #ff6b35;
    background: #ff6b35;
    color: white;
    transform: scale(1.05);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #ff6b35;
    background: white;
    color: #ff6b35;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qty-btn:hover {
    background: #ff6b35;
    color: white;
    transform: scale(1.1);
}

#quantityDisplay {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff6b35;
    min-width: 50px;
    text-align: center;
}

.price-display {
    background: #fff5f0;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    text-align: center;
    border-left: 4px solid #ff6b35;
}

.price-label {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.price-value {
    font-size: 2rem;
    font-weight: bold;
    color: #ff6b35;
}

#sellerMessage {
    width: 100%;
    min-height: 80px;
    padding: 1rem;
    border: 2px solid #ffb366;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    resize: vertical;
    outline: none;
    transition: border-color 0.3s ease;
    margin-bottom: 2rem;
}

#sellerMessage:focus {
    border-color: #ff6b35;
}

.purchase-buttons {
    display: flex;
    gap: 1rem;
}

.btn-cart,
.btn-buy {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-cart {
    background: white;
    color: #ff6b35;
    border: 2px solid #ff6b35;
}

.btn-cart:hover {
    background: #ff6b35;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

.btn-buy {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white;
}

.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

.modal-right {
    max-height: 500px;
    overflow-y: auto;
}

.modal-right h3 {
    color: #ff6b35;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.modal-right h4 {
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem 0;
}

.product-features ul {
    list-style-type: none;
    padding: 0;
}

.product-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 1.5rem;
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #ff6b35;
    font-weight: bold;
}

.warranty-info p {
    background: #f0f9ff;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
    color: #1e40af;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #ffa726;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-section h4 {
    color: #ffa726;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #bdc3c7;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ffa726;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 167, 38, 0.2);
    color: #ffa726;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #ffa726;
    color: white;
    transform: translateY(-3px);
}

.contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}

.contact-info i {
    margin-right: 0.8rem;
    color: #ffa726;
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #95a5a6;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(135deg, #ff6b35, #ff8c42);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero {
        padding: 6rem 1rem 3rem;
    }

    .search-filter-container {
        flex-direction: column;
        gap: 1rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .modal-body {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }

    .modal-content {
        width: 98%;
        margin: 1% auto;
        max-height: 95vh;
    }

    .purchase-buttons {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .social-links {
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        margin: 0 1rem;
    }

    .filter-buttons {
        justify-content: center;
    }

    .filter-btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ff6b35;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e55a2b;
}

/* Feedback Page Styles */
.feedback-hero {
    background: linear-gradient(135deg, #ff6b35, #ff8c42, #ffa726);
    color: white;
    text-align: center;
    padding: 6rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

/* Stats Section */
.stats-section {
    background: white;
    padding: 4rem 0;
    margin-top: -2rem;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(255, 107, 53, 0.1);
    border: 1px solid #fff5f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ff6b35, #ffa726);
    transition: left 0.5s ease;
}

.stat-card:hover::before {
    left: 0;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(255, 107, 53, 0.2);
}

.stat-icon {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
}

.stat-info h3 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ff6b35;
    margin: 0.5rem 0;
}

.stat-info p {
    color: #666;
    font-weight: 500;
}

/* Add Review Section */
.add-review-section {
    background: #fff5f0;
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-top: 1rem;
}

.review-form-container {
    text-align: center;
}

.add-review-btn {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white;
    padding: 1.2rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.3);
}

.add-review-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.4);
}

/* Reviews Section */
.reviews-section {
    background: white;
    padding: 4rem 0;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.reviews-filters {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.sort-select {
    padding: 0.8rem 1rem;
    border: 2px solid #ffb366;
    border-radius: 25px;
    background: white;
    color: #ff6b35;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.sort-select:focus {
    border-color: #ff6b35;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.2);
}

.rating-filters {
    display: flex;
    gap: 0.5rem;
}

.rating-filter {
    padding: 0.5rem 1rem;
    border: 2px solid #ffb366;
    background: white;
    color: #ff6b35;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.rating-filter:hover,
.rating-filter.active {
    background: #ff6b35;
    color: white;
    transform: scale(1.05);
}

/* Review Cards */
.reviews-list {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.review-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.15);
    border-color: #ffb366;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.reviewer-info {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.reviewer-avatar {
    font-size: 2.5rem;
    color: #ff6b35;
}

.reviewer-name {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.verified-badge {
    background: #10b981;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.review-rating {
    display: flex;
    gap: 0.2rem;
}

.review-date {
    color: #999;
    font-size: 0.9rem;
}

.product-tag {
    background: #fff5f0;
    color: #ff6b35;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #ffb366;
}

.review-content {
    margin-bottom: 1.5rem;
}

.review-text {
    line-height: 1.6;
    color: #444;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.recommend-badge {
    background: #dcfce7;
    color: #166534;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.helpful-btn {
    background: none;
    border: 1px solid #ddd;
    color: #666;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.helpful-btn:hover {
    border-color: #ff6b35;
    color: #ff6b35;
    background: #fff5f0;
}

.review-actions {
    display: flex;
    gap: 1rem;
}

.reply-btn,
.share-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.reply-btn:hover,
.share-btn:hover {
    color: #ff6b35;
}

.load-more-container {
    text-align: center;
    margin-top: 3rem;
}

.load-more-btn {
    background: white;
    border: 2px solid #ff6b35;
    color: #ff6b35;
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: #ff6b35;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

.no-reviews {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

/* Review Modal Styles */
.review-modal-content {
    max-width: 600px;
    margin: 5% auto;
}

.review-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.8rem;
    border: 2px solid #ffb366;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #ff6b35;
}

.star-rating {
    display: flex;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.star {
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #ddd;
}

.star:hover {
    transform: scale(1.1);
}

.rating-text {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    min-height: 20px;
}

.char-counter {
    text-align: right;
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.5rem;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.btn-cancel {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #ddd;
    padding: 0.8rem 2rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.btn-submit {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

/* Success Modal */
.success-modal-content {
    max-width: 400px;
    text-align: center;
    padding: 3rem 2rem;
}

.success-icon {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 1rem;
}

.success-modal-content h2 {
    color: #333;
    margin-bottom: 1rem;
}

.success-modal-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.btn-close-success {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-close-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

/* Mobile Responsiveness for Feedback */
@media screen and (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem 1rem;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .stat-info h3 {
        font-size: 2rem;
    }
    
    .reviews-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .reviews-filters {
        justify-content: center;
    }
    
    .rating-filters {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .reviewer-info {
        width: 100%;
    }
    
    .product-tag {
        align-self: flex-start;
    }
    
    .review-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .review-actions {
        justify-content: center;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .review-modal-content {
        margin: 2% auto;
        width: 95%;
    }
}

@media screen and (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .feedback-hero {
        padding: 4rem 1rem 3rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .add-review-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .review-card {
        padding: 1.5rem;
    }
    
    .reviewer-info {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .reviewer-avatar {
        font-size: 2rem;
    }
    
    .star-rating {
        gap: 0.3rem;
    }
    
    .star {
        font-size: 1.5rem;
    }
}

/* Cart Page Styles */
.cart-item {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.cart-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.15);
}

.cart-item h3 {
    color: #ff6b35;
    margin-bottom: 0.3rem;
    font-size: 1.3rem;
}

.cart-item p {
    color: #666;
    font-size: 0.9rem;
    margin: 0.2rem 0;
}

.cart-item div:last-child {
    text-align: right;
}

.cart-item button {
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 0.3rem 0.7rem;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.cart-item button:hover {
    background: #e55a2b;
}

.cart-item span {
    font-weight: 600;
    margin: 0 0.5rem;
    font-size: 1rem;
}

#cartSummary {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ff6b35;
    text-align: right;
}

#checkoutBtn {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.3);
}

#checkoutBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.4);
}

/* Responsive for Cart Page */
@media screen and (max-width: 768px) {
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-item div:last-child {
        width: 100%;
        margin-top: 1rem;
        text-align: left;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 1rem;
    }

    #cartSummary {
        text-align: left;
        margin-top: 1rem;
    }

    #checkoutBtn {
        width: 100%;
        max-width: 100%;
    }
}

/* Admin Panel Styles Scoped with .admin-panel */
.admin-panel {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    margin: 2rem auto;
    font-family: 'Poppins', sans-serif;
    color: #333;
}

.admin-panel h1,
.admin-panel h2 {
    color: #ff6b35;
    margin-bottom: 1rem;
}

.admin-panel #btnAddProduct {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.admin-panel #btnAddProduct:hover {
    background: linear-gradient(135deg, #e55a2b, #d46a1f);
}

.admin-panel table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.admin-panel th,
.admin-panel td {
    border: 1px solid #ddd;
    padding: 0.8rem 1rem;
    text-align: left;
    vertical-align: middle;
}

.admin-panel th {
    background: #ff6b35;
    color: white;
    font-weight: 600;
}

.admin-panel button {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.admin-panel button:hover {
    background: #e55a2b;
}

.admin-panel button[style*="background:#e55a2b"] {
    background: #e55a2b;
}

.admin-panel button[style*="background:#e55a2b"]:hover {
    background: #c1441f;
}

/* Modal Styles */
.admin-panel .modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.admin-panel .modal-content {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 10px 40px rgba(255, 107, 53, 0.2);
}

.admin-panel .modal-content h2 {
    margin-top: 0;
    color: #ff6b35;
}

.admin-panel .close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: #ff6b35;
    cursor: pointer;
    transition: color 0.3s ease;
}

.admin-panel .close:hover {
    color: #e55a2b;
}

.admin-panel .form-group {
    margin-bottom: 1.5rem;
}

.admin-panel .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.admin-panel .form-group input[type="text"],
.admin-panel .form-group input[type="number"],
.admin-panel .form-group select,
.admin-panel .form-group textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 2px solid #ffb366;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.admin-panel .form-group input[type="text"]:focus,
.admin-panel .form-group input[type="number"]:focus,
.admin-panel .form-group select:focus,
.admin-panel .form-group textarea:focus {
    border-color: #ff6b35;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .admin-panel {
        padding: 1rem;
        margin: 1rem;
    }

    .admin-panel table,
    .admin-panel thead,
    .admin-panel tbody,
    .admin-panel th,
    .admin-panel td,
    .admin-panel tr {
        display: block;
    }

    .admin-panel thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .admin-panel tr {
        margin-bottom: 1rem;
        border: 1px solid #ddd;
        border-radius: 10px;
        padding: 1rem;
    }

    .admin-panel td {
        border: none;
        position: relative;
        padding-left: 50%;
        text-align: left;
    }

    .admin-panel td::before {
        position: absolute;
        top: 1rem;
        left: 1rem;
        width: 45%;
        padding-right: 1rem;
        white-space: nowrap;
        font-weight: 600;
        color: #ff6b35;
    }

    .admin-panel td:nth-of-type(1)::before { content: "Nama Produk"; }
    .admin-panel td:nth-of-type(2)::before { content: "Kategori"; }
    .admin-panel td:nth-of-type(3)::before { content: "Harga"; }
    .admin-panel td:nth-of-type(4)::before { content: "Promo"; }
    .admin-panel td:nth-of-type(5)::before { content: "Best Seller"; }
    .admin-panel td:nth-of-type(6)::before { content: "Garansi"; }
    .admin-panel td:nth-of-type(7)::before { content: "Aksi"; }

    /* Untuk tabel ulasan */
    .admin-panel#reviewsTable td:nth-of-type(1)::before { content: "Nama"; }
    .admin-panel#reviewsTable td:nth-of-type(2)::before { content: "Produk"; }
    .admin-panel#reviewsTable td:nth-of-type(3)::before { content: "Rating"; }
    .admin-panel#reviewsTable td:nth-of-type(4)::before { content: "Ulasan"; }
    .admin-panel#reviewsTable td:nth-of-type(5)::before { content: "Aksi"; }
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: 'Poppins', sans-serif;
}

.product-card h3 {
  color: #ff6b35;
  margin-bottom: 0.5rem;
}

.product-card .category {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 0.5rem;
}

.product-card .price {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.product-card .promo {
  background: #ff6b35;
  color: white;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  font-size: 0.8rem;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.product-card .best-seller {
  background: #f9a825;
  color: white;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  font-size: 0.8rem;
  display: inline-block;
  margin-left: 0.5rem;
}

.product-card button {
  background: #ff6b35;
  color: white;
  border: none;
  padding: 0.7rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: auto;
}

.product-card button:hover {
  background: #e55a2b;
}


.faq-item {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #ff6b35;
  padding-bottom: 1rem;
}

.faq-question {
  color: #ff6b35;
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.faq-answer {
  color: #333;
  line-height: 1.5;
}

/* Container khusus untuk halaman konten seperti Cara Pembelian dan Kebijakan Garansi */
.content-page {
  max-width: 1000px;       /* Lebar maksimal yang cukup luas */
  margin: 3rem auto;       /* Margin atas-bawah dan auto center */
  padding: 0 1.5rem;       /* Padding kiri-kanan agar tidak mepet */
  font-family: 'Poppins', sans-serif;
  color: #333;
  line-height: 1.7;
  box-sizing: border-box;  /* Pastikan padding tidak menambah lebar */
}

/* Judul utama halaman */
.content-page .section-title {
  color: #ff6b35;
  font-weight: 700;
  font-size: 2.4rem;
  margin-bottom: 2.5rem;
  text-align: center;
}

/* Styling daftar berurutan dan tidak berurutan */
.content-page ol,
.content-page ul {
  padding-left: 1.8rem;
  margin-bottom: 2rem;
  font-size: 1.15rem;
  color: #333;
}

.content-page ol li,
.content-page ul li {
  margin-bottom: 1rem;
}

/* Styling paragraf */
.content-page p {
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  color: #333;
}

/* Link styling (jika ada) */
.content-page a {
  color: #ff6b35;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.content-page a:hover {
  color: #e55a2b;
  text-decoration: underline;
}

/* Responsive untuk layar kecil */
@media screen and (max-width: 600px) {
  .content-page {
    max-width: 90%;
    margin: 2rem auto;
    padding: 0 1rem;
  }

  .content-page .section-title {
    font-size: 1.8rem;
    margin-bottom: 1.8rem;
  }

  .content-page ol,
  .content-page ul,
  .content-page p {
    font-size: 1rem;
  }
}

/* Container khusus untuk halaman konten */
.content-page {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  font-family: 'Poppins', sans-serif;
  color: #333;
  line-height: 1.6;
  box-sizing: border-box;
}

.section-title {
  color: #ff6b35;
  font-weight: 700;
  font-size: 2.4rem;
  margin-bottom: 2.5rem;
  text-align: center;
}

.contact-wrapper {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-form {
  flex: 1 1 400px;
  background: #fff;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #ff6b35;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid #ffb366;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #ff6b35;
}

.error-message {
  color: #e55a2b;
  font-size: 0.9rem;
  margin-top: 0.3rem;
  min-height: 1.2em;
}

.btn-submit {
  background: linear-gradient(135deg, #ff6b35, #ff8c42);
  color: white;
  border: none;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s ease;
  width: 100%;
  font-size: 1.1rem;
}

.btn-submit:hover {
  background: linear-gradient(135deg, #e55a2b, #d46a1f);
}

.contact-style {
  flex: 1 1 300px;
  background: #fff;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  font-size: 1.1rem;
  color: #333;
}

.contact-style h2 {
  color: #ff6b35;
  margin-bottom: 1.5rem;
}

.contact-style p {
  margin-bottom: 1rem;
}

.contact-style a {
  color: #ff6b35;
  text-decoration: none;
  font-weight: 600;
}

.contact-style a:hover {
  text-decoration: underline;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .contact-wrapper {
    flex-direction: column;
  }

  .contact-form,
  .contact-style {
    flex: 1 1 100%;
  }
}

/* Popup slider container */
.popup-slider {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 15px;
}

/* Slide images */
.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slides img {
  width: 100%;
  border-radius: 10px;
  flex-shrink: 0;
}

/* Next & prev buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 10px;
  margin-top: -20px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.3s;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  user-select: none;
}

.prev:hover, .next:hover {
  background: rgba(0,0,0,0.8);
}

.prev { left: 10px; }
.next { right: 10px; }

.popup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-content {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  max-width: 600px;
  text-align: center;
  position: relative;
}

.popup-close {
  position: absolute;
  top: -6px;
  right: 8px;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}
.popup-close:hover {
  color: #000;
}

.popup-img {
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
  border-radius: 8px;
}

.product-image-container {
    position: relative;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.logo-image {
  height: 40px;
  width: auto;
}

.logo-text {
  font-weight: 700;
  font-size: 1.5rem;
  font-family: 'Poppins', sans-serif;
  color: #ffffff;
}

FileName: MultipleFiles/am.jpg
FileContents: Binary File Here

FileName: MultipleFiles/canva.jpg
FileContents: Binary File Here

FileName: MultipleFiles/capcutlogo.jpg
FileContents: Binary File Here

FileName: MultipleFiles/capelogo.jpg
FileContents: Binary File Here

FileName: MultipleFiles/javabedrock.jpg
FileContents: Binary File Here

FileName: MultipleFiles/MCDungeon.jpg
FileContents: Binary File Here

FileName: MultipleFiles/MCLegend.jpg
FileContents: Binary File Here

FileName: MultipleFiles/mcpe.jpg
FileContents: Binary File Here

FileName: MultipleFiles/nerushop_logo.png
FileContents: Binary File Here

FileName: MultipleFiles/nerushop_title.png
FileContents: Binary File Here

FileName: MultipleFiles/Netflix.jpg
FileContents: Binary File Here

FileName: MultipleFiles/promoam.jpg
FileContents: Binary File Here

FileName: MultipleFiles/realms.jpg
FileContents: Binary File Here

FileName: MultipleFiles/robux.jpg
FileContents: Binary File Here

FileName: MultipleFiles/skin.jpg
FileContents: Binary File Here

FileName: MultipleFiles/youtube.jpg
FileContents: Binary File Here

FileName: MultipleFiles/promomc.jpg
FileContents: Binary File Here

FileName: MultipleFiles/cart.js` (Tidak ada perubahan fungsional, hanya memastikan pemuatan `main.js`)`
FileContents: const cartItemsContainer = document.getElementById('cartItemsContainer');
const cartSummary = document.getElementById('cartSummary');
const checkoutBtn = document.getElementById('checkoutBtn');

let cart = JSON.parse(localStorage.getItem('nerushop_cart')) || [];

function renderCart() {
    if (cart.length === 0) {
        cartItemsContainer.innerHTML = '<p style="text-align:center; font-size:1.2rem; color:#666;">Keranjang Anda kosong.</p>';
        cartSummary.textContent = '';
        checkoutBtn.style.display = 'none';
        return;
    }

    checkoutBtn.style.display = 'block';

    cartItemsContainer.innerHTML = cart.map((item, index) => `
        <div class="cart-item" style="display:flex; align-items:center; justify-content:space-between; padding:1rem 0; border-bottom:1px solid #eee;">
            <div>
                <h3 style="color:#ff6b35; margin-bottom:0.3rem;">${item.productName}</h3>
                <p style="font-size:0.9rem; color:#666;">Varian: ${item.variantName}</p>
                <p style="font-size:0.9rem; color:#666;">Pesan: ${item.message || '-'}</p>
            </div>
            <div style="text-align:right;">
                <p style="font-weight:600; margin-bottom:0.5rem;">Rp ${(item.price * item.quantity).toLocaleString('id-ID')}</p>
                <div style="display:flex; align-items:center; gap:0.5rem; justify-content:flex-end;">
                    <button onclick="decreaseQuantity(${index})" style="padding:0.3rem 0.7rem; border:none; background:#ff6b35; color:white; border-radius:5px; cursor:pointer;">-</button>
                    <span>${item.quantity}</span>
                    <button onclick="increaseQuantity(${index})" style="padding:0.3rem 0.7rem; border:none; background:#ff6b35; color:white; border-radius:5px; cursor:pointer;">+</button>
                </div>
                <button onclick="removeItem(${index})" style="margin-top:0.5rem; background:none; border:none; color:#ff6b35; cursor:pointer; font-size:0.9rem;">Hapus</button>
            </div>
        </div>
    `).join('');

    updateSummary();
}

function updateSummary() {
    const total = cart.reduce((sum, item) => sum + item.price * item.quantity, 0);
    cartSummary.textContent = `Total Harga: Rp ${total.toLocaleString('id-ID')}`;
}

function increaseQuantity(index) {
    cart[index].quantity++;
    saveCart();
    renderCart();
}

function decreaseQuantity(index) {
    if (cart[index].quantity > 1) {
        cart[index].quantity--;
        saveCart();
        renderCart();
    }
}

function removeItem(index) {
    if (confirm('Yakin ingin menghapus produk ini dari keranjang?')) {
        cart.splice(index, 1);
        saveCart();
        renderCart();
    }
}

function saveCart() {
    localStorage.setItem('nerushop_cart', JSON.stringify(cart));
}

checkoutBtn.addEventListener('click', () => {
    alert('Fitur pembayaran akan segera hadir!');
    // nanti bisa redirect ke halaman pembayaran
});

document.addEventListener('DOMContentLoaded', renderCart);