:root {
    --pico-font-size: 100%;
}

/* Header Styling */
header.container {
    padding-top: 3rem;
    padding-bottom: 2rem;
    text-align: center;
}

/* Filter Buttons Styling */
.filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.filters button {
    width: auto;
    border-radius: 4px;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

.filters button.outline {
    border-color: var(--pico-primary);
    color: var(--pico-primary);
}

/* Grid Produk */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* Card Styling */
article.product-card {
    padding: 0;
    overflow: hidden;
    border-radius: 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--pico-muted-border-color);
    transition: transform 0.2s;
}

article.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* Gambar Rasio 1:1 */
.product-image-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #f4f4f4;
    position: relative;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

article.product-card:hover .product-image-container img {
    transform: scale(1.05);
}

/* Badge Kategori */
.category-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--pico-primary);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Konten Card */
.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    margin-bottom: 0.25rem;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
}

.product-category-text {
    font-size: 0.8rem;
    color: var(--pico-muted-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-price {
    color: var(--pico-primary); /* Warna Amber */
    font-weight: 800;
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.product-desc {
    font-size: 0.9rem;
    color: var(--pico-color);
    opacity: 0.8;
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Mendorong tombol ke bawah */
}

/* Z-index fix for jQuery UI datepicker inside PicoCSS modal */
.ui-datepicker {
    z-index: 10000 !important;
}

/* Shipping Badge */
.shipping-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--pico-secondary-background);
    color: var(--pico-secondary-inverse);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    z-index: 2; /* To be on top of the image */
}

/* Footer Styling */
footer.container {
    border-top: 1px solid var(--pico-muted-border-color);
    padding-top: 2rem;
    padding-bottom: 2rem;
    text-align: center; /* Center align all content */
}

.footer-contact {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-contact a {
    text-decoration: none;
    color: var(--pico-color);
    font-size: 1.5rem; /* Larger icons */
    transition: color 0.2s;
}

.footer-contact a:hover {
    color: var(--pico-primary);
}

footer small {
    display: block;
    width: 100%;
    color: var(--pico-muted-color); /* More subtle color */
}

/* Info Popup Modal Specific Styles */
#info-popup-modal {
    max-width: 600px; /* Optional: Limit width for better readability */
    z-index: 10000; /* Ensure it's on top of other elements */
}