@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #0b1120;
    color: #f8fafc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Batas Ukuran SVG Ikon - Mencegah Gambar SVG Raksasa */
svg {
    display: inline-block;
    vertical-align: middle;
    max-width: 100%;
    max-height: 100%;
}

.brand-icon {
    width: 32px;
    height: 32px;
    color: #6366f1;
}

.search-icon {
    width: 18px;
    height: 18px;
    color: #94a3b8;
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
}

.btn-icon {
    width: 18px;
    height: 18px;
    margin-right: 6px;
}

/* Navbar */
.navbar {
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.brand-subtitle {
    font-size: 0.72rem;
    color: #94a3b8;
}

/* Search Box */
.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    background-color: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    padding: 10px 16px 10px 40px;
    color: #f8fafc;
    font-size: 0.88rem;
    outline: none;
    transition: all 0.2s;
}

.search-box input:focus {
    border-color: #6366f1;
    background-color: rgba(30, 41, 59, 0.9);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background-color: #6366f1;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #4f46e5;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.btn-success {
    background-color: #10b981;
    color: #ffffff;
}

.btn-success:hover {
    background-color: #059669;
}

.btn-danger {
    background-color: #ef4444;
    color: #ffffff;
}

.btn-danger:hover {
    background-color: #dc2626;
}

.btn-wa {
    background-color: #22c55e;
    color: #ffffff;
    font-weight: 700;
}

.btn-wa:hover {
    background-color: #16a34a;
}

.btn-cart {
    position: relative;
}

.badge {
    background-color: #ef4444;
    color: white;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 9999px;
    margin-left: 6px;
}

.btn-block {
    width: 100%;
}

/* Announcement Bar */
.announcement-bar {
    background: linear-gradient(90deg, #4f46e5, #06b6d4);
    color: white;
    text-align: center;
    padding: 8px 16px;
    font-size: 0.82rem;
    font-weight: 600;
}

/* Main Content */
.main-content {
    flex: 1;
    padding-top: 32px;
    padding-bottom: 64px;
}

/* Hero Card */
.hero-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 36px 28px;
    margin-bottom: 40px;
}

.tag {
    display: inline-block;
    background-color: rgba(99, 102, 241, 0.2);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.3);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 9999px;
    margin-bottom: 12px;
}

.hero-body h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #ffffff;
}

.hero-body p {
    color: #94a3b8;
    font-size: 0.95rem;
    max-width: 650px;
    line-height: 1.6;
}

/* Products Section */
.products-section {
    margin-bottom: 60px;
}

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

.section-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
}

.product-count {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Grid Layout */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* Product Card */
.product-card {
    background-color: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.5);
}

.card-img-wrap {
    position: relative;
    width: 100%;
    height: 180px;
    background-color: #1e293b;
    overflow: hidden;
}

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

.category-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: rgba(15, 23, 42, 0.85);
    color: #e2e8f0;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
}

.card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
}

.card-desc {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 16px;
    flex: 1;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.price-box {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
}

.price-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: #10b981;
}

.admin-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 36px;
}

.page-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #cbd5e1;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.page-btn:hover {
    background-color: rgba(99, 102, 241, 0.2);
    border-color: #6366f1;
    color: #ffffff;
}

.page-btn.active {
    background-color: #6366f1;
    border-color: #6366f1;
    color: #ffffff;
}

/* Reviews Section */
.reviews-section {
    background-color: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 32px;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.reviews-sub {
    font-size: 0.88rem;
    color: #94a3b8;
    margin-top: 4px;
}

.rating-summary-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
    background-color: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 28px;
}

@media (max-width: 640px) {
    .rating-summary-card {
        grid-template-columns: 1fr;
    }
}

.rating-score-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding-right: 20px;
}

@media (max-width: 640px) {
    .rating-score-box {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-right: 0;
        padding-bottom: 16px;
    }
}

.rating-score {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.star-row {
    color: #f59e0b;
    font-size: 1.2rem;
    margin: 8px 0;
}

.rating-count {
    font-size: 0.8rem;
    color: #94a3b8;
}

.rating-bars-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.82rem;
    color: #cbd5e1;
}

.bar-row span:first-child {
    width: 70px;
}

.bar-bg {
    flex: 1;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background-color: #f59e0b;
    border-radius: 9999px;
    transition: width 0.3s;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-item {
    background-color: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 16px 20px;
}

.review-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.reviewer-name {
    font-weight: 700;
    color: #f8fafc;
    font-size: 0.95rem;
}

.review-stars {
    color: #f59e0b;
    font-size: 0.9rem;
}

.review-text {
    font-size: 0.88rem;
    color: #cbd5e1;
    line-height: 1.5;
}

.review-date {
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 8px;
}

/* Modals & Drawer */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(6px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 16px;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background-color: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 100%;
    max-width: 460px;
    padding: 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.btn-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.btn-close:hover {
    color: #ffffff;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #cbd5e1;
}

.input-control {
    background-color: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 10px 14px;
    color: #ffffff;
    font-size: 0.88rem;
    outline: none;
}

.input-control:focus {
    border-color: #6366f1;
}

.form-hint {
    font-size: 0.72rem;
    color: #64748b;
}

/* Star Picker */
.star-picker {
    display: flex;
    gap: 8px;
    font-size: 1.8rem;
    color: #475569;
    cursor: pointer;
}

.star-picker span.active {
    color: #f59e0b;
}

/* Cart Drawer */
.drawer-content {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 420px;
    height: 100%;
    background-color: #0f172a;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    padding: 24px;
    box-shadow: -10px 0 25px -5px rgba(0, 0, 0, 0.5);
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 12px;
}

.cart-img {
    width: 60px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
}

.cart-info {
    flex: 1;
}

.cart-item-title {
    font-size: 0.88rem;
    font-weight: 700;
}

.cart-item-price {
    font-size: 0.82rem;
    color: #10b981;
    font-weight: 700;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.btn-qty {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    cursor: pointer;
}

.drawer-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 16px;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    margin-bottom: 16px;
}

.cart-total-row strong {
    font-size: 1.2rem;
    color: #10b981;
}

/* Footer */
.footer {
    background-color: #070a12;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 24px 0;
    text-align: center;
    font-size: 0.82rem;
    color: #64748b;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer a {
    color: #22c55e;
    text-decoration: none;
    font-weight: 600;
}

/* Responsive Rules */
@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
        height: auto;
        padding-top: 12px;
        padding-bottom: 12px;
    }
    .search-box {
        order: 3;
        max-width: 100%;
        width: 100%;
        margin-top: 8px;
    }
}
