/* Reset dan Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    background: #2e7d32;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header .logo {
    font-size: 1.5rem;
    font-weight: bold;
}

header ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

header a {
    color: white;
    text-decoration: none;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #66bb6a 0%, #2e7d32 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 10px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

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

.product-card h3 {
    padding: 15px;
    font-size: 1.1rem;
}

.product-card p {
    padding: 0 15px 10px;
    color: #666;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #2e7d32;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.btn:hover {
    background: #1b5e20;
}

.btn-primary {
    background: #2e7d32;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

/* Product Detail */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.product-image img {
    width: 100%;
    border-radius: 10px;
}

.variant-selector {
    margin-top: 30px;
}

.price-box {
    background: #e8f5e9;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
}

.price-box h2 {
    color: #2e7d32;
    margin-bottom: 10px;
}

/* Checkout */
.checkout-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #ddd;
}

.form-section h3 {
    margin-bottom: 20px;
    color: #2e7d32;
}

.payment-methods label {
    display: block;
    padding: 15px;
    margin-bottom: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.payment-methods label:hover {
    border-color: #2e7d32;
}

.payment-methods input[type="radio"] {
    margin-right: 10px;
}

.keterangan-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin: 20px 0;
}

/* Admin Styles */
.admin-body {
    background: #f0f0f0;
}

.admin-container {
    max-width: 1400px;
    margin: 20px auto;
    padding: 20px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.table th {
    background: #2e7d32;
    color: white;
}

.status {
    padding: 5px 10px;
    border-radius: 3px;
    font-weight: bold;
}

.status-unpaid {
    background: #ffc107;
    color: #000;
}

.status-paid {
    background: #28a745;
    color: white;
}

.status-rejected {
    background: #dc3545;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
    }
    
    header nav {
        flex-direction: column;
        gap: 10px;
    }
}

/* Auth Forms */
.auth-form {
    max-width: 500px;
    margin: 40px auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.auth-form h1 {
    margin-bottom: 30px;
    text-align: center;
    color: #2e7d32;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.auth-link a {
    color: #2e7d32;
    text-decoration: none;
    font-weight: 600;
}

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
}

/* Cart */
.cart-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr 150px;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.item-image img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
}

.item-details h3 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.variant {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.price {
    font-weight: bold;
    color: #2e7d32;
    margin-bottom: 10px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 3px;
}

.qty-btn:hover {
    background: #f5f5f5;
}

.qty-input {
    width: 60px;
    text-align: center;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.remove-item {
    background: #f44336;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.85rem;
}

.item-subtotal {
    text-align: right;
    font-weight: bold;
    font-size: 1.1rem;
    color: #2e7d32;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.cart-summary {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Orders List */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.order-header {
    background: #f5f5f5;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

.order-key {
    display: flex;
    flex-direction: column;
}

.order-date {
    font-size: 0.85rem;
    color: #666;
}

.order-body {
    padding: 20px;
}

.order-total {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #2e7d32;
}

.order-info p {
    margin-bottom: 8px;
}

.keterangan-highlight {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 10px 15px;
    margin: 15px 0;
}

.keterangan-highlight strong {
    display: block;
    margin-bottom: 5px;
    color: #856404;
}

.order-actions {
    margin-top: 20px;
    text-align: right;
}

.paid-notice {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 10px 15px;
    border-radius: 5px;
    margin-top: 15px;
    font-weight: 600;
}

.rejected-notice {
    background: #ffebee;
    color: #c62828;
    padding: 10px 15px;
    border-radius: 5px;
    margin-top: 15px;
    font-weight: 600;
}

.empty-cart,
.empty-orders {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.empty-cart p,
.empty-orders p {
    margin-bottom: 20px;
    color: #666;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 968px) {
    .cart-wrapper {
        grid-template-columns: 1fr;
    }
    
    .cart-summary {
        position: static;
    }
    
    .cart-item {
        grid-template-columns: 80px 1fr;
    }
    
    .item-subtotal {
        grid-column: 1 / -1;
        justify-content: flex-start;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid #eee;
    }
}

/* Kategori Section */
.kategori-section {
    margin: 50px 0;
}

.kategori-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2e7d32;
    font-size: 2rem;
}

.kategori-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.kategori-card {
    background: white;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    color: #333;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.kategori-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.2);
    border-color: #2e7d32;
    text-decoration: none;
    color: #333;
}

.kategori-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.kategori-card h3 {
    color: #2e7d32;
    margin: 10px 0;
    font-size: 1.4rem;
}

.kategori-card p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

/* Responsive untuk kategori */
@media (max-width: 768px) {
    .kategori-grid {
        grid-template-columns: 1fr;
    }
}