/**
 * Frontend Stylesheet (Katalog Publik & Halaman Pengajuan User) - Pondok AhdaMart
 * Tema: Putih Bersih + Aksen Biru Mobile App Friendly
 */

/* Sticky App Navbar */
.frontend-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 1030;
    padding: 0.45rem 0;
}

.brand-logo-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-logo-box img {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    object-fit: contain;
    background: #eff6ff;
    padding: 3px;
    border: 1px solid #dbeafe;
}

.brand-title {
    font-weight: 800;
    font-size: 0.94rem;
    color: #0f172a;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.brand-subtitle {
    font-size: 0.65rem;
    color: #2563eb;
    font-weight: 600;
}

.nav-menu-desktop a {
    font-size: 0.78rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-weight: 600;
    white-space: nowrap;
}

/* Tombol Pojok Kanan Atas: Input Barang Baru */
.btn-input-barang-top {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff !important;
    border-radius: 999px;
    padding: 0.38rem 0.9rem;
    font-weight: 700;
    font-size: 0.76rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.24);
    border: none;
    white-space: nowrap;
}

.btn-input-barang-top:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

/* Hero Banner White-Blue */
.hero-banner {
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 60%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px -8px rgba(37, 99, 235, 0.1);
}

/* Product Card */
.product-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.22s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: #93c5fd;
    box-shadow: 0 14px 28px -8px rgba(37, 99, 235, 0.14);
}

.product-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f8fafc;
    overflow: hidden;
    border-bottom: 1px solid #f1f5f9;
}

.product-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.product-card:hover .product-thumb-wrap img {
    transform: scale(1.04);
}

.product-category-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    color: #2563eb;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    border: 1px solid #dbeafe;
}

.product-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-weight: 700;
    font-size: 0.96rem;
    color: #0f172a;
    margin-bottom: 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
}

.product-price {
    font-weight: 800;
    font-size: 1.08rem;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

/* Category Filter Pills */
.category-pills-scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scrollbar-width: none;
}
.category-pills-scroll::-webkit-scrollbar {
    display: none;
}

.pill-item {
    white-space: nowrap;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    background: #ffffff;
    color: #475569;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.pill-item:hover, .pill-item.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

/* Mobile Bottom App Bar */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-top: 1px solid #e2e8f0;
    display: none;
    z-index: 1040;
    padding: 0.4rem 0.5rem calc(0.4rem + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.05);
}

.mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.25rem 0;
    border-radius: 10px;
}

.mobile-nav-item i {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.mobile-nav-item.active {
    color: #2563eb;
    font-weight: 700;
}

.mobile-nav-fab {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff !important;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -16px;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.35);
    border: 3px solid #ffffff;
}
