/* style.css */

/* GLOBAL & TYPOGRAPHY */
/* Styling Seragam H2 (Judul Keranjang dan Data Pemesan) */
/* style.css */
/* style.css - Kontrol Filter & Paginasi Baru Ditambahkan */

/* BASE STYLING (Mempertahankan desain yang elegan) */
* { 
    box-sizing: border-box; 
    font-family: 'Poppins', sans-serif; 
}
body {
    background: #f4f7f6; 
    margin: 0; 
    padding: 0; /* Ubah padding body menjadi 0 */
    color: #333;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px; /* Container yang menampung konten */
}

/* HEADER UTAMA */
#mainHeader {
    /* Ganti URL ini dengan URL gambar daster_header_bg.jpg Anda */
    background-image: url('images/daster_header_bg.png'); 
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat;
    
    padding: 40px 20px; 
    margin: 0 0 20px 0; /* Hilangkan margin negatif */
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

h1 { 
    text-align: center; 
    color: #ffffff; 
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); 
    font-size: 3em; 
    margin: 0; 
}

#mainHeader .subtitle {
    color: #f0f0f0; 
    font-size: 1.2em;
    font-weight: 400; 
    margin: 10px 0 0 0; 
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* INFO BAR (Menggantikan .intro, Gaya Diperhalus) */
.info-bar {
    background-color: #fff9e6; /* Warna kuning muda lembut */
    color: #333;
    padding: 12px 20px;
    margin-bottom: 25px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    border-left: 5px solid #ffcc33; /* Garis aksen kuning */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    font-size: 15px;
}

/* --- KONTROL FILTER & PAGINASI BARU --- */

.filter-controls {
    margin-bottom: 30px;
    padding: 15px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.filter-group {
    display: flex;
    flex-wrap: wrap; 
    gap: 15px;
    margin-bottom: 15px;
}

.filter-group select {
    flex-grow: 1; 
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background-color: #f9f9f9;
    cursor: pointer;
    min-width: 150px;
    transition: border-color 0.2s;
}

.filter-group select:hover {
    border-color: #3498db;
}

#productSearch {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 8px; 
    font-size: 16px;
    transition: border-color 0.3s;
}

#productSearch:focus {
    border-color: #3498db; 
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
}

/* KONTROL PAGINASI */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 25px 0;
    padding: 10px;
}

.pagination-controls button {
    background-color: #ffffff;
    color: #3498db;
    border: 1px solid #3498db;
    padding: 8px 15px;
    margin: 0 4px;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

.pagination-controls button:hover:not(:disabled) {
    background-color: #3498db;
    color: white;
}

.pagination-controls button.active {
    background-color: #3498db; 
    color: white;
    border-color: #3498db;
    font-weight: bold;
}

.pagination-controls button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.pagination-controls span {
    margin: 0 5px;
    color: #777;
}

/* (Sisa styling dari file style.css Anda tetap dipertahankan) */
.separator {
    margin: 25px 0;
    border-top: 2px dashed #ccc;
}
#orderSummaryContainer h2, 
.buyer-card h2 {
    text-align: center;
    color: #3498db; 
    margin-bottom: 20px;
    font-size: 26px; 
    font-weight: 700; 
    padding-bottom: 5px;
    border-bottom: 2px solid #e0e0e0; 
}
.products {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px; 
    margin-top: 20px;
}
.product {
    background: #ffffff;
    padding: 0; 
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1); 
    cursor: pointer; 
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    display: flex; 
    flex-direction: column; 
}
.product:hover {
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); 
}
.product img {
    width: 100%; 
    height: 200px; 
    object-fit: cover; 
    border-radius: 12px 12px 0 0; 
}
.product-info {
    padding: 15px 15px 10px 15px; 
    flex-grow: 1; 
}
.pname { 
    font-size: 16px; 
    font-weight: 600; 
    margin: 0 0 5px 0; 
    color: #333;
}
.pprice {
    font-size: 18px;
    font-weight: 800; 
    color: #e74c3c; 
    margin-bottom: 10px;
}
#cartSummary {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
}
.cart-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    font-size: 15px;
}
.item-details {
    font-weight: bold;
    color: #333;
}
.item-details small {
    display: block;
    font-weight: normal;
    color: #777;
}
.item-qty-price {
    text-align: right;
    font-size: 14px;
    color: #555;
}
#cartTotalSummary {
    text-align: right;
    font-weight: bold;
    font-size: 20px;
    padding-top: 10px;
    border-top: 3px solid #3498db; 
    margin-top: 10px;
    color: #2c3e50;
}
.empty-cart {
    text-align: center;
    color: #666;
    padding: 10px;
    font-style: italic;
}
.modal {
    display: none; 
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6); 
    padding-top: 60px;
}
.modal-content {
    background-color: #fefefe;
    margin: 5% auto; 
    padding: 20px;
    border-radius: 15px;
    width: 90%; 
    max-width: 500px; 
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    position: relative;
}
.modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}
.modal-close:hover,
.modal-close:focus {
    color: #e74c3c;
    text-decoration: none;
    cursor: pointer;
}
.modal-img {
    width: 100%;
    height: auto; 
    border-radius: 10px;
    margin-bottom: 15px;
}
.modal-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #3498db;
}
.modal-price {
    font-size: 20px;
    font-weight: 800;
    color: #e74c3c;
    margin-bottom: 10px;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 10px;
}
.modal-desc {
    font-size: 15px;
    margin-bottom: 15px;
}
.motif-selector {
    margin: 15px 0;
    border-top: 1px solid #eee;
    padding-top: 15px;
}
.motif-selector h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
}
.motif-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
}
.motif-item {
    border: 3px solid transparent; 
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s;
    position: relative;
}
.motif-item.selected {
    border-color: #3498db; 
    box-shadow: 0 0 8px rgba(52,152,219,0.7); 
}
.motif-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
}
.modal-qty-area {
    display: flex;
    justify-content: flex-start; 
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
    gap: 15px;
}
.qty-control {
    display: flex;
    align-items: center;
    gap: 5px;
}
.qty-control span {
    font-weight: bold;
    color: #333;
    min-width: 30px; 
    text-align: center;
    font-size: 18px;
}
.qty-button {
    width: 35px;
    height: 35px;
    border: 1px solid #bbb;
    background: #ecf0f1;
    color: #333;
    font-size: 20px;
    border-radius: 50%; 
    cursor: pointer;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}
.qty-button:hover { background: #bdc3c7; }
.buyer-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 18px; 
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
    width: calc(100% - 10px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08); 
    border: 1px solid #e0e0e0; 
}
.input-group {
    margin-bottom: 20px;
}
.input-group label {
    font-weight: 600;
    color: #555; 
    display: block;
    margin-bottom: 5px;
    font-size: 15px;
}
.input-icon {
    position: relative;
    display: flex; 
    align-items: center;
}
.input-icon input[type="text"],
.input-icon input[type="email"],
.input-icon textarea {
    width: 100%;
    padding: 12px 12px 12px 45px; 
    border: 1px solid #ccc;
    border-radius: 10px; 
    transition: border-color 0.3s, box-shadow 0.3s;
    font-size: 16px;
    background: #fcfcfc;
}
.input-icon input:focus,
.input-icon textarea:focus {
    border-color: #3498db; 
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2); 
    outline: none; 
    background: #ffffff;
}
.input-icon img {
    position: absolute;
    left: 12px; 
    width: 20px; 
    height: 20px;
    opacity: 0.7; 
    transition: opacity 0.3s;
    z-index: 10;
}
.input-icon input:focus + img, 
.input-icon textarea:focus + img {
    opacity: 1;
}
.checkout-area {
    margin-top: 20px;
    background: #ecf0f1;
    padding: 20px;
    border-radius: 10px;
    border-left: 6px solid #3498db;
}
.checkout-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    background: #2ecc71; 
    color: white;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}
.checkout-btn:hover { 
    background: #27ae60; 
}
.motif-item.out-of-stock {
    position: relative;
    cursor: not-allowed; 
    opacity: 0.7; 
}
.motif-item.out-of-stock img {
    filter: grayscale(100%); 
}
.motif-item.out-of-stock:after {
    content: "HABIS";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 0, 0, 0.9); 
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: bold;
    z-index: 20; 
    letter-spacing: 0.5px;
    pointer-events: none; 
}
.motif-item.out-of-stock.selected {
    border: 3px solid transparent; 
}