@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #e0f2fe, #f8feff);
    font-family: 'Inter', sans-serif;
    color: #1e293b;
    line-height: 1.5;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.25);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: "Huninn", sans-serif;
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #2b92ac, #05809f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.categories {
    display: flex;
    gap: 32px;
}

.categories a {
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    transition: color 0.3s;
}

.categories a:hover {
    color: #0ea5e9;
}

main {
    padding: 500px 0 40px;
}

main.container {
    padding: 20pt 0 40px !important;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.card {
    position: relative;
    overflow: hidden;
    padding: 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 20px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 30px 60px rgba(0, 0, 0, 0.12);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 16px;
}

.card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1e293b;
}

.price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.current {
    font-size: 24px;
    font-weight: 700;
    color: #059669;
}

.old {
    font-size: 16px;
    color: #94a3b8;
    text-decoration: line-through;
}

.badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: #ef4444;
}

.badge.new {
    background: #3b82f6;
}

.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff, #f0f9ff);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 8px 16px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    font-size: 16px;
    color: #0ea5e9;
    cursor: pointer;
    transition: all 0.3s;
}

.admin_btn {
    width: 100%;
    padding: 8pt;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff, #f0f9ff);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 8px 16px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    color: #0ea5e9;
    cursor: pointer;
    transition: all 0.3s;
}

/* .btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 12px 24px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #f0f9ff, #ffffff);
} */

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.table th, .table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.table th {
    font-weight: 600;
    opacity: 0.8;
}

.form-glass {
    padding: 20px;
    border-radius: 24px;
    background: rgba(255,255,255,0.35);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255,255,255,0.6);
    max-width: 600px;
    margin: 20px auto;
}

.form-glass label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

header h1 {
    font-size: clamp(22px,4vw,28px);
    font-weight: 700;
    background: linear-gradient(135deg,#543bf6,#06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-glass input, .form-glass textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.2);
    margin-bottom: 14px;
    outline: none;
}

@media(max-width:768px){
    .product-grid{
        grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
    }
}

a {
    text-decoration: none;
}

.add-title{
    text-align: center;
    padding-top: 60pt;
}

.card {
    display: flex;
    flex-direction: column;
}

.price {
    margin-bottom: auto + 5pt;
}

.btn {
    margin-top: auto;
}
.search-input {
    width: 100%;
    max-width: 420px;
    padding: 14px 16px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    color: #1e293b;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    box-shadow: 
        inset 0 2px 8px rgba(0, 0, 0, 0.04),
        0 8px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    outline: none;
}

.search-input::placeholder {
    color: #64748b;
    opacity: 0.7;
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.65);
    border-color: rgba(59, 131, 246, 0.129);
    box-shadow: 
        inset 0 2px 8px rgba(0, 0, 0, 0.04),
        0 12px 32px rgba(59, 130, 246, 0.18);
    transform: translateY(-1px);
}

.search-wrapper {
    position: relative;
    max-width: 420px;
}

.search-wrapper input {
    padding-left: 44px;
}

.search-wrapper {
    position: relative;
}

.search-wrapper::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-image: url("images/lupa.png");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 2;
}

.btn-pdf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    padding: 8px 16px;
    margin-bottom: 20px;
    background: #e74c3c;
    color: #fff;
}
