/* ==========================================================================
   UNIVERSAL & FONT
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');

/* ==========================================================================
   DEFINISI VARIABEL TEMA
   ========================================================================== */

/* :root mendefinisikan tema default (Terang) */
:root {
    --bg-main: #FFFFFF;
    --bg-secondary: #fdf6f9;
    --bg-highlight: #ffeff3;
    --text-primary: #333333;
    --text-secondary: #777777;
    --accent-primary: #b95c75;
    --accent-secondary: #e491a5;
    --border-color: #f0e2e6;
    --card-shadow: rgba(0, 0, 0, 0.08);
}

body.theme-dark {
    --bg-main: #121212;
    --bg-secondary: #1E1E1E;
    --bg-highlight: #2a2a2a;
    --text-primary: #E0E0E0;
    --text-secondary: #A0A0A0;
    --accent-primary: #f06292; /* Pink lebih cerah untuk tema gelap */
    --accent-secondary: #ec407a;
    --border-color: #333333;
    --card-shadow: rgba(255, 255, 255, 0.05);
}

body.theme-tech {
    --bg-main: #0a192f;
    --bg-secondary: #112240;
    --bg-highlight: #172a45;
    --text-primary: #ccd6f6;
    --text-secondary: #8892b0;
    --accent-primary: #64ffda; /* Cyan/Mint */
    --accent-secondary: #00c7b1;
    --border-color: #233554;
    --card-shadow: rgba(0, 0, 0, 0.2);
}

/* Styling untuk tombol tema */
.theme-switcher {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 10px;
}
.theme-btn {
    width: 30px; height: 30px;
    border-radius: 50%; border: 2px solid transparent;
    cursor: pointer; font-size: 18px;
    display: flex; justify-content: center; align-items: center;
    background: var(--bg-highlight); color: var(--text-secondary);
}
.theme-btn.active {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

/* ==========================================================================
   LOGIN/REGISTER PAGE STYLING (index.php)
   ========================================================================== */

body:not(.home-page) {
    position: relative;
    display: flex; justify-content: center; align-items: center; min-height: 100vh;
    background-color: #fff5f7;
    overflow: hidden;
}

body:not(.home-page)::before {
    content: '';
    position: absolute; width: 900px; height: 900px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 105, 180, 0.85) 60%);
    border-radius: 50%; filter: blur(200px);
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    z-index: -1;
}

.wrapper {
    position: relative;
    width: 440px;
    height: 520px;
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(50px) saturate(130%); -webkit-backdrop-filter: blur(50px) saturate(130%);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05), 0 25px 60px rgba(224, 69, 133, 0.2);
    border-radius: 30px;
    overflow: hidden;
    transition: height 0.5s ease;
}

.wrapper.active {
    height: 660px;
}

.form-box {
    position: absolute;
    top: 0;
    width: 100%;
    padding: 35px 45px;
    transition: transform 0.5s ease;
}

.form-box.login { transform: translateX(0); }
.wrapper.active .form-box.login { transform: translateX(-450px); }
.form-box.register { transform: translateX(450px); }
.wrapper.active .form-box.register { transform: translateX(0); }

.form-box form {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.form-header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px;
}
.logo-text {
    font-size: 14px; color: rgba(0, 0, 0, 0.4);
}

.form-box h1 {
    font-size: 36px; font-weight: 700; text-align: left; margin-bottom: 25px; color: #1a1a1a;
}

.input-box {
    position: relative; width: 100%; height: 55px; margin-bottom: 22px;
}
.input-box input, .input-box select {
    width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid transparent;
    outline: none; border-radius: 50px; font-size: 16px; font-weight: 500; color: #333;
    padding: 0 25px 0 55px; transition: all 0.3s ease;
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
}
.input-box select {
    padding-right: 55px; color: #555; cursor: pointer;
}
.input-box input:hover, .input-box select:hover { border-color: rgba(255, 255, 255, 1); }
.input-box input:focus, .input-box select:focus {
    border-color: #ff69b4; background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 18px rgba(255, 105, 180, 0.4);
}
.input-box input[type="password"] { padding: 0 110px 0 55px; }
.input-box input::placeholder { color: #999; font-weight: 400; }
.input-box i {
    position: absolute; left: 20px; top: 50%; transform: translateY(-50%); font-size: 20px; color: #888;
}
.input-box .arrow {
    position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
    font-size: 24px; color: #888; pointer-events: none;
}

.forgot-link {
    position: absolute; top: 50%; right: 20px; transform: translateY(-50%);
    color: #333; background: rgba(255, 255, 255, 0); padding: 4px 10px; border-radius: 20px;
    font-size: 13px; font-weight: 500; text-decoration: none; transition: all 0.3s ease;
}
.forgot-link:hover { background: rgba(255, 255, 255, 0.7); color: black; }

.terms-conditions {
    font-size: 14px; font-weight: 500; color: #666; margin-bottom: 25px;
}
.terms-conditions label input {
    accent-color: #ff69b4; margin-right: 8px;
}

.btn {
    width: 60px; height: 60px; background: #1a1a1a; border: none; outline: none; border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2); cursor: pointer; font-size: 24px; color: #fff;
    font-weight: 700;
    align-self: flex-end;
    margin-top: 10px;
    display: flex; justify-content: center; align-items: center; transition: all 0.3s ease;
}
.btn:hover { background: #333; transform: scale(1.05); }
.btn::after { content: '→'; font-family: 'Inter', sans-serif; }

.register-link {
    font-size: 15px; text-align: center; color: #555;
    margin-top: auto; padding-top: 20px;
}
.register-link p a {
    color: #1a1a1a; text-decoration: none; font-weight: 700;
}
.register-link p a:hover { text-decoration: underline; }

.alert-error {
    padding: 10px; background-color: #f8d7da; color: #721c24;
    border: 1px solid #f5c6cb; border-radius: 8px; margin-bottom: 15px;
    font-size: 14px; text-align: center;
}

/* ==========================================================================
   HOME, BUYING, OOTD, & OTHER PAGES STYLING
   ========================================================================== */

body.home-page {
    background-color: var(--bg-main);
    color: var(--text-primary);
}
.promo-box {
    background-color: var(--bg-highlight);
    color: var(--text-primary);
}
.product-price {
    color: var(--accent-primary);
}

/* --- Header --- */
.home-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 30px; background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}
.header-icon {
    font-size: 28px; color: var(--text-secondary); cursor: pointer; text-decoration: none;
}
.search-bar {
    flex-grow: 1; margin: 0 25px; position: relative;
}
.search-bar input {
    width: 100%; height: 45px; border-radius: 50px;
    border: 1px solid var(--border-color); background-color: var(--bg-main);
    padding: 0 55px 0 25px; font-size: 15px; color: var(--text-primary); outline: none;
}
.search-bar input::placeholder { color: var(--text-secondary); }
.search-bar .search-btn {
    position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
    width: 35px; height: 35px; background-color: var(--bg-highlight); border: none;
    border-radius: 50%; cursor: pointer; display: flex;
    justify-content: center; align-items: center; transition: background-color 0.2s ease;
}
.search-bar .search-btn i { font-size: 20px; color: var(--accent-primary); }
.search-bar .search-btn:hover { background-color: var(--accent-secondary); }

/* --- Pop-up Menu --- */
.header-options { position: relative; }
.popup-menu {
    position: absolute; top: 120%; right: 0; width: 220px;
    background-color: var(--bg-main); border-radius: 15px;
    box-shadow: 0 5px 25px var(--card-shadow); border: 1px solid var(--border-color);
    padding: 10px 0; z-index: 1000;
    opacity: 0; transform: translateY(-10px) scale(0.95);
    visibility: hidden; pointer-events: none;
    transition: all 0.2s ease-in-out;
}
.popup-menu.active {
    opacity: 1; transform: translateY(0) scale(1);
    visibility: visible; pointer-events: auto;
}
.popup-menu ul { list-style: none; padding: 0; margin: 0; }
.popup-menu ul li a {
    display: flex; align-items: center; gap: 15px; padding: 12px 20px;
    text-decoration: none; font-size: 15px; font-weight: 500;
    color: var(--text-primary); transition: background-color 0.2s ease;
}
.popup-menu ul li a i { font-size: 20px; color: var(--text-secondary); }
.popup-menu ul li a:hover { background-color: var(--bg-secondary); }
.popup-menu ul li.admin-link {
    border-top: 1px solid var(--border-color); margin-top: 5px; padding-top: 5px;
}

/* --- Main Content --- */
main { padding: 30px; max-width: 1400px; margin: 0 auto; }
.top-section {
    display: flex; gap: 30px; padding: 30px;
    background-color: var(--bg-highlight); border-radius: 25px; flex-wrap: wrap;
}
.actions-container { flex: 1; min-width: 300px; }
.actions-container h2 {
    font-size: 24px; font-weight: 500; color: var(--text-primary); margin-bottom: 20px;
}
.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.action-buttons a:last-child {
    grid-column: 1 / -1; 
}
.action-btn {
    flex-grow: 1; flex-basis: 150px;
    padding: 18px 25px; border-radius: 50px; border: 1.5px solid var(--accent-secondary);
    background-color: var(--accent-secondary); font-size: 16px; font-weight: 700;
    color: white; cursor: pointer; transition: all 0.2s ease;
    text-decoration: none; text-align: center;
}
.action-btn:hover { 
    background-color: var(--accent-primary); 
    transform: translateY(-2px); 
    box-shadow: 0 4px 8px var(--card-shadow);
}
.promo-box {
    flex: 1.5; min-width: 300px; background-color: var(--bg-highlight); border-radius: 20px;
    padding: 30px; font-size: 18px; line-height: 1.6; color: var(--text-primary);
    display: flex; align-items: center; justify-content: center; text-align: center;
}
.promo-box strong { color: var(--text-primary); }

/* --- OOTD Carousel Section --- */
.bottom-section {
    margin-top: 30px; padding: 20px 0; display: block;
}
.slider-container {
    width: 100%; overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.ootd-scroller {
    display: flex; flex-direction: row; flex-wrap: nowrap;
    gap: 20px; width: max-content;
}
.ootd-scroller.scrolling {
    width: calc(270px * 14);
    animation: scroll 60s linear infinite;
}
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-270px * 7)); }
}
.slider-container:hover .ootd-scroller { animation-play-state: paused; }
.ootd-card, .ootd-call-to-action {
    width: 250px; flex-shrink: 0; background-color: var(--bg-main);
    border-radius: 20px; box-shadow: 0 4px 20px var(--card-shadow);
    overflow: hidden; transition: transform 0.2s ease;
}
.ootd-card:hover { transform: translateY(-5px); }
.ootd-image-placeholder {
    width: 100%; height: 180px; background-color: var(--bg-secondary);
}
.ootd-card-info { padding: 15px; }
.ootd-card-info h3 {
    font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: 5px;
}
.card-description {
    font-size: 14px; color: var(--text-secondary); margin-top: 8px; line-height: 1.5;
}
.ootd-call-to-action {
    background-color: var(--bg-highlight);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; padding: 20px;
}
.ootd-call-to-action h3 {
    font-size: 50px; font-weight: 800; color: var(--accent-primary); line-height: 1; margin: 5px 0;
}

/* --- Modal Detail Produk --- */
.product-card-clickable { cursor: pointer; }
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex; justify-content: center; align-items: center;
    z-index: 2000;
    opacity: 0; visibility: hidden;
    transition: all 0.3s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content {
    position: relative; background-color: var(--bg-main); padding: 0;
    border-radius: 20px; width: 90%; max-width: 800px;
    max-height: 90vh; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex; overflow: hidden;
    transform: scale(0.9); transition: transform 0.3s ease;
}
.modal-overlay.active .modal-content { transform: scale(1); }
.close-modal {
    position: absolute; top: 15px; right: 20px;
    font-size: 30px; font-weight: bold; color: var(--text-secondary);
    z-index: 10; cursor: pointer; transition: color 0.2s ease;
}
.close-modal:hover { color: var(--text-primary); }
#modal-img {
    flex: 1 1 50%; width: 50%;
    object-fit: cover; display: block;
}
.modal-text-content {
    flex: 1 1 50%; padding: 30px 35px;
    display: flex; flex-direction: column; overflow-y: auto;
}
#modal-name {
    font-size: 28px; font-weight: 700; color: var(--text-primary); margin-bottom: 10px;
}
#modal-description {
    font-size: 16px; color: var(--text-secondary); line-height: 1.7;
}

/* --- Halaman Buying --- */
.buying-page-header { text-align: center; margin-bottom: 70px; }
.buying-page-header h1 { font-size: 36px; color: var(--text-primary); margin-bottom: 10px; }
.buying-page-header p { font-size: 18px; color: var(--text-secondary); }
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
}
.product-card {
    background-color: var(--bg-main); border-radius: 16px;
    box-shadow: 0 8px 25px var(--card-shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-8px); box-shadow: 0 12px 30px var(--card-shadow); }
.product-link {
    text-decoration: none; color: inherit; display: flex;
    flex-direction: column; flex-grow: 1;
}
.product-image {
    width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block;
}
.product-info { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.product-name { font-size: 20px; font-weight: 600; margin: 0 0 8px 0; color: var(--text-primary); }
.product-desc {
    font-size: 14px; color: var(--text-secondary); line-height: 1.5; flex-grow: 1;
}
.product-footer {
    padding: 15px 20px; display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid var(--border-color); background: var(--bg-secondary);
}
.product-price { font-size: 20px; font-weight: 700; color: var(--accent-primary); }
.add-to-cart-btn {
    background: var(--bg-highlight); color: var(--accent-primary); border: none; border-radius: 10px;
    width: 40px; height: 40px; font-size: 24px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background-color 0.3s ease;
}
.add-to-cart-btn:hover { background-color: var(--accent-secondary); color: white; }
.no-products, .no-products-message {
    grid-column: 1 / -1; text-align: center;
    font-size: 1.2rem; color: var(--text-secondary); padding: 50px;
}

/* ==========================================================================
   PENYEMPURNAAN TOMBOL DI HALAMAN BUYING
   ========================================================================== */

/* Tombol "Beli Sekarang" yang baru */
.order-btn {
    background-color: var(--accent-primary);
    color: white;
    border: none;
    padding: 10px 20px; /* Padding yang pas */
    border-radius: 50px; /* Bentuk kapsul */
    font-weight: 600; /* Teks lebih tebal */
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Efek saat disentuh */
.order-btn:hover {
    background-color: var(--accent-secondary); /* Warna lebih gelap */
    transform: scale(1.05); /* Sedikit efek zoom */
    box-shadow: 0 4px 15px var(--card-shadow);
}

/* Hapus styling untuk tombol add-to-cart yang lama jika masih ada */
.add-to-cart-btn {
    display: none; /* Sembunyikan tombol add-to-cart lama */
}

/* --- Modal Order & Sukses --- */
.order-modal-content, .success-modal-content {
    background: var(--bg-main); padding: 30px; border-radius: 15px; max-width: 400px; width: 90%; position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2); transform: scale(0.9); transition: transform 0.3s ease;
}
.modal-overlay.active .order-modal-content, .modal-overlay.active .success-modal-content { transform: scale(1); }
.order-modal-content h2, .success-modal-content h2 { text-align: center; margin-bottom: 25px; color: var(--text-primary); }
.order-modal-content .form-group { margin-bottom: 15px; }
.order-modal-content label { display: block; margin-bottom: 5px; font-weight: 500; color: var(--text-primary); }
.order-modal-content input { width: 100%; padding: 10px; border-radius: 8px; border: 1px solid var(--border-color); background: var(--bg-main); color: var(--text-primary); }
.order-modal-content input[readonly] { background: var(--bg-secondary); cursor: not-allowed; }
.total-price-group p { font-size: 20px; font-weight: bold; color: var(--accent-primary); }
.submit-order-btn {
    width: 100%; padding: 12px; border: none; border-radius: 8px;
    background-color: var(--accent-primary); color: white; font-weight: bold; font-size: 16px; cursor: pointer;
}
.success-modal-content { max-width: 500px; text-align: center; padding: 40px; }
.success-icon-container { font-size: 60px; color: #155724; margin-bottom: 20px; }
.success-modal-content h2 { font-size: 28px; color: #155724; margin-bottom: 10px; }
.success-modal-content p { color: var(--text-secondary); margin-bottom: 25px; line-height: 1.6; }
.order-code-box { background: #e6ffed; border: 1px dashed #2e7d32; color: #155724; padding: 15px; border-radius: 10px; margin: 20px 0; }
.order-code-box p { margin: 0; color: #2e7d32; font-weight: 500; }
.order-code-box h3 { font-size: 24px; color: #155724; margin: 5px 0 0 0; }
.success-actions { margin-top: 30px; display: flex; justify-content: center; gap: 15px; }
.success-actions .back-link { margin: 0; }

/* --- Halaman Riwayat Pesanan --- */
.history-container { max-width: 900px; margin: 40px auto; }
.history-title { text-align: center; font-size: 28px; margin-bottom: 30px; color: var(--text-primary); }
.order-list { display: flex; flex-direction: column; gap: 20px; }
.order-item-link { text-decoration: none; color: inherit; display: block; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.order-item-link:hover .order-card { transform: translateY(-5px); box-shadow: 0 10px 30px var(--card-shadow); }
.order-card {
    display: flex; align-items: center; gap: 20px; background: var(--bg-main);
    padding: 20px; border-radius: 15px; box-shadow: 0 5px 20px var(--card-shadow);
    border: 1px solid var(--border-color); transition: all 0.2s ease;
}
.order-image { width: 80px; height: 80px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.order-info { flex-grow: 1; }
.order-id { font-size: 13px; font-weight: 500; color: var(--text-secondary); margin-bottom: 8px; }
.order-product-name { font-size: 18px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.order-seller { font-size: 14px; color: var(--text-secondary); }
.order-status-price { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; text-align: right; white-space: nowrap; }
.order-total { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.status-badge {
    padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; text-transform: capitalize;
}
.order-date { font-size: 13px; color: var(--text-secondary); }
.empty-history-card { background: var(--bg-main); padding: 40px; border-radius: 15px; text-align: center; border: 1px solid var(--border-color); }
.empty-icon { font-size: 50px; color: var(--text-secondary); }
.empty-history-card p { font-size: 18px; color: var(--text-secondary); margin: 15px 0 25px 0; }

/* ==========================================================================
   HALAMAN OOTD & POP-UP (VERSI FINAL)
   ========================================================================== */

/* Tombol Upload OOTD */
.upload-ootd-btn {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
    padding: 10px 20px; background-color: var(--accent-primary); color: white;
    text-decoration: none; border-radius: 50px; font-weight: 500;
    transition: all 0.2s ease;
}
.upload-ootd-btn:hover { background-color: var(--accent-secondary); }

/* Kontainer Grid Pinterest */
.grid {
    margin: 0 auto;
}
.grid:after {
  content: '';
  display: block;
  clear: both;
}

/* Item di dalam grid */
.grid-item {
    width: calc(33.333% - 14px);
    margin-bottom: 20px;
    background: var(--bg-main);
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--card-shadow);
    overflow: hidden;
}

.grid-item img {
    width: 100%;
    display: block;
}

.grid-item-info {
    padding: 15px;
}
.ootd-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}
.ootd-user {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Membuat kartu OOTD bisa diklik */
.ootd-clickable {
    cursor: pointer;
}

/* Penyesuaian khusus untuk konten modal OOTD */
.ootd-modal-content {
    max-width: 700px;
    max-height: 95vh;
    padding: 0;
    overflow: hidden;
    /* Ubah layout menjadi kolom */
    flex-direction: column;
}

#ootd-modal-img {
    width: 100%;
    height: auto;
    max-height: 75vh;
    object-fit: contain; /* Tampilkan seluruh gambar tanpa memotong */
    display: block;
    background-color: var(--bg-secondary);
}

/* Memindahkan tombol close ke dalam agar lebih kontras */
.ootd-modal-content .close-modal {
    color: var(--text-primary);
    text-shadow: none;
}

#ootd-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

#ootd-modal-user {
    font-size: 15px;
    color: var(--text-secondary);
    margin-top: 5px;
}

/* Responsif untuk Grid */
@media (max-width: 992px) {
    .grid-item {
        width: calc(50% - 10px); /* 2 kolom */
    }
}
@media (max-width: 768px) {
    .grid-item {
        width: 100%; /* 1 kolom */
    }
}

/* --- Tombol Kembali --- */
.back-link {
    display: inline-flex; align-items: center; gap: 8px;
    margin: 40px auto; width: max-content; padding: 12px 25px;
    background-color: var(--bg-highlight); color: var(--accent-primary);
    border: 1.5px solid var(--border-color); border-radius: 50px;
    text-decoration: none; font-weight: 600; font-size: 15px;
    transition: all 0.2s ease;
}
.back-link:hover {
    text-decoration: none; background-color: var(--accent-secondary);
    color: white;
    box-shadow: 0 4px 15px var(--card-shadow);
    transform: translateY(-2px);
}
.back-link i { font-size: 20px; }

/* --- Helper & Status --- */
.warning-text { color: #e74c3c; font-size: 12px; margin-top: 5px; }
.status-menunggu-konfirmasi { background-color: #fff0c2; color: #8c6b00; }
.status-diproses { background-color: #cde7ff; color: #004a8c; }
.status-dikirim { background-color: #d4edda; color: #155724; }
.status-selesai { background-color: #e2e3e5; color: #4d5154; }

/* --- Media Queries --- */
@media (max-width: 992px) {
    .grid-item { width: calc(50% - 10px); }
}
@media (max-width: 768px) {
    .modal-content {
        flex-direction: column; max-width: 90%; max-height: 85vh;
    }
    #modal-img {
        width: 100%; height: 250px; flex-basis: auto;
    }
    .modal-text-content { flex-basis: auto; }
    .top-section { flex-direction: column; }
    .order-date { flex-basis: auto; text-align: left; margin-top: 10px; }
    .grid-item { width: 100%; }
}

/* Styling untuk Ikon Keranjang di Header */
.header-cart-icon {
    position: relative;
    color: var(--text-primary);
    text-decoration: none;
}
.header-cart-icon .bxs-cart {
    font-size: 28px;
}
.cart-counter {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--accent-primary);
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 600;
    border: 2px solid var(--bg-secondary); /* Warna background header */
}