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

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
}

html,
body {
    width: 100%;
    min-height: 100vh;
    background-color: #2c2225;
    background-image: url('bg.jpeg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
}

/* Frame Layar Mobile */
.mobile-container,
.mobile-screen,
.admin-mobile {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    background-color: #f7dfe5;
    background-image: url('bg.jpeg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    padding: 20px;
    padding-bottom: 90px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.35);
    color: #5c333d;
    overflow-x: hidden;
}

/* Di layar HP penuh agar tidak ada bayangan pinggir berlebih */
@media (max-width: 480px) {
    .mobile-container,
    .mobile-screen,
    .admin-mobile {
        max-width: 100%;
        box-shadow: none;
    }
}

/* Typography & Brand */
.brand-header {
    text-align: center;
    margin-bottom: 15px;
}
.brand-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    letter-spacing: 3px;
    color: #8c4b5b;
    font-weight: 700;
}
.brand-sub {
    font-size: 10px;
    letter-spacing: 2px;
    color: #8c4b5b;
    text-transform: uppercase;
}

/* Top Bar */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.nav-icons a {
    color: #7a4250;
    text-decoration: none;
    font-size: 20px;
    margin-left: 12px;
    position: relative;
}
.badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #c93b4b;
    color: white;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 50%;
}

/* Tombol & Input */
.btn-primary {
    background-color: #9e5b6b;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    font-size: 14px;
    text-align: center;
    display: inline-block;
    text-decoration: none;
    transition: 0.2s;
}
.btn-primary:hover {
    background-color: #844857;
}
.btn-sm {
    padding: 7px 14px;
    font-size: 12px;
    border-radius: 8px;
    width: auto;
}

.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 5px;
    color: #6e3b47;
}
.form-control {
    width: 100%;
    padding: 11px 15px;
    border-radius: 12px;
    border: 1px solid rgba(158, 91, 107, 0.3);
    background: rgba(255, 255, 255, 0.85);
    outline: none;
    font-size: 14px;
}

/* Glass / Card Styles */
.glass-card {
    background: rgba(255, 245, 247, 0.78);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 4px 15px rgba(140, 75, 91, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

/* Search Bar */
.search-bar {
    display: flex;
    background: #9e5b6b;
    border-radius: 12px;
    padding: 6px 12px;
    margin-bottom: 15px;
}
.search-bar input {
    background: transparent;
    border: none;
    color: #fff;
    width: 100%;
    outline: none;
    font-size: 13px;
}
.search-bar input::placeholder { color: #f3dce2; }
.search-bar button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

/* Banner */
.hero-banner {
    background: linear-gradient(135deg, rgba(255,255,255,0.6), rgba(240,200,210,0.7));
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 18px;
    border: 1px solid rgba(255,255,255,0.8);
}
.hero-banner h2 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: #7d3e4e;
    line-height: 1.2;
    margin: 5px 0 8px;
}
.hero-banner p {
    font-size: 11px;
    color: #6b424c;
    margin-bottom: 12px;
}

/* Grid Produk User */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.product-card {
    background: rgba(255, 255, 255, 0.75);
    border-radius: 15px;
    padding: 12px;
    text-align: left;
    text-decoration: none;
    color: #5c333d;
    transition: transform 0.2s;
    border: 1px solid rgba(255,255,255,0.8);
}
.product-card:hover { transform: translateY(-3px); }
.product-img-box {
    width: 100%;
    height: 110px;
    background: #f9e6eb;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    overflow: hidden;
}
.product-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}
.product-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 3px;
}
.product-price {
    font-size: 12px;
    font-weight: 700;
    color: #8c4b5b;
}
.product-old-price {
    font-size: 10px;
    text-decoration: line-through;
    color: #a8828b;
    margin-left: 4px;
}

/* Cart & Checkout Item */
.cart-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 12px;
    margin-bottom: 12px;
    gap: 12px;
}
.cart-thumb {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: #f7dfe5;
    object-fit: cover;
}

/* Bottom Bar Fixed */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: rgba(255, 240, 244, 0.95);
    backdrop-filter: blur(10px);
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(158, 91, 107, 0.2);
}

/* Admin Dashboard Menu Grid */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}
.admin-menu-box {
    background: rgba(244, 203, 213, 0.85);
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 16px;
    padding: 20px 15px;
    text-decoration: none;
    color: #5c333d;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 135px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.admin-menu-box i {
    font-size: 32px;
    color: #3d2229;
    margin-bottom: 15px;
}
.admin-menu-box span {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

/* Transaction Card Admin */
.trx-card {
    background: #9e5b6b;
    color: #fff;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.btn-selesai {
    background: #8ce99a;
    color: #1b4332;
    border: none;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: block;
    width: 100%;
    margin-bottom: 5px;
}
.btn-detail-trx {
    background: #fff;
    color: #5c333d;
    border: none;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    display: block;
    text-align: center;
}
/* === Tambahan upgrade: responsif, chip kategori, pagination, tombol qty === */
.qty-btn {
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 8px;
    background: #9e5b6b;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.chip-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 12px;
    scrollbar-width: none;
}
.chip-row::-webkit-scrollbar { display: none; }
.chip {
    flex: 0 0 auto;
    background: rgba(255,255,255,0.6);
    color: #7a4250;
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 12px;
    text-decoration: none;
    border: 1px solid #d8a7b3;
}
.chip-active {
    background: #9e5b6b;
    color: #fff;
    border-color: #9e5b6b;
}
.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin: 18px 0 6px;
    flex-wrap: wrap;
}
.page-btn {
    min-width: 34px;
    text-align: center;
    padding: 7px 10px;
    border-radius: 10px;
    background: rgba(255,255,255,0.6);
    color: #7a4250;
    font-size: 13px;
    text-decoration: none;
    border: 1px solid #d8a7b3;
}
.page-active {
    background: #9e5b6b;
    color: #fff;
    border-color: #9e5b6b;
}
@media (min-width: 768px) {
    .mobile-container { max-width: 720px; }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .admin-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
    .mobile-container { max-width: 1024px; }
    .product-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Select sortir ringkas di dalam search bar + tautan tanpa garis bawah */
.search-bar select {
    border: none;
    background: rgba(255,255,255,0.22);
    color: #fff;
    font-size: 11px;
    border-radius: 8px;
    padding: 4px 2px;
    margin-left: 6px;
    max-width: 96px;
    outline: none;
    cursor: pointer;
}
.search-bar select option { color: #333; }
a { text-decoration: none; }

/* === REFRESH MODERN v8: header sticky, kartu solid lembut, filter ringkas, checkbox custom === */
.mobile-container, .mobile-screen, .admin-mobile { overflow-x: clip; }
.top-nav {
    position: sticky;
    top: 0;
    z-index: 200;
    margin: -20px -20px 16px;
    padding: 14px 20px;
    background: rgba(253, 243, 245, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(158, 91, 107, 0.12);
}
.glass-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #f3dde2;
    box-shadow: 0 10px 30px rgba(140, 75, 91, 0.10);
    border-radius: 20px;
}
.btn-primary {
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(158, 91, 107, 0.28);
    font-weight: 600;
}
.btn-sm { border-radius: 999px; }
.form-control { background: #fff; border: 1px solid #ecd2d9; }
.form-control:focus { border-color: #9e5b6b; box-shadow: 0 0 0 3px rgba(158, 91, 107, 0.15); }
.product-card {
    background: #fff;
    border: 1px solid #f3dde2;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(140, 75, 91, 0.07);
    padding: 10px;
}
.product-img-box { height: 128px; border-radius: 14px; background: #fbeef1; }
.product-img-box img { width: 100%; height: 100%; object-fit: cover; }
.cart-item {
    background: #fff;
    border: 1px solid #f3dde2;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(140, 75, 91, 0.06);
}
.chip { background: #fff; border-color: #ecd2d9; }
.hero-banner {
    border-radius: 20px;
    box-shadow: 0 12px 28px rgba(140, 75, 91, 0.12);
    border: 1px solid #fff;
}
.bottom-bar {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 -8px 24px rgba(140, 75, 91, 0.10);
    border-top: 1px solid #f3dde2;
}
.admin-menu-box {
    background: #fff;
    border: 1px solid #f3dde2;
    box-shadow: 0 8px 20px rgba(140, 75, 91, 0.07);
}
.filter-bar {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.filter-search {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ecd2d9;
    border-radius: 999px;
    padding: 5px 6px 5px 14px;
    box-shadow: 0 4px 14px rgba(140, 75, 91, 0.07);
    width: 168px;
}
.filter-search input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 12px;
    width: 100%;
    min-width: 0;
    color: #5c333d;
}
.filter-search button {
    border: none;
    background: #9e5b6b;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    flex: 0 0 auto;
    font-size: 12px;
}
.filter-select {
    border: 1px solid #ecd2d9;
    background: #fff;
    color: #7a4250;
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
    padding: 9px 10px;
    outline: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(140, 75, 91, 0.07);
    max-width: 132px;
}
.cart-check {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid #dcaebb;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    position: relative;
    flex: 0 0 auto;
    transition: 0.15s;
}
.cart-check:checked { background: #9e5b6b; border-color: #9e5b6b; }
.cart-check:checked::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #fff;
    font-size: 12px;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
