/* GLOBAL RESET */
body {
    margin: 0;
    padding: 0;
    background: #f5f9ff;
    font-family: 'Poppins', sans-serif;
}

.public-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* HEADER */
.pub-header {
    background: #ffffff;
    padding: 12px 0;
    border-bottom: 1px solid #e5e5e5;
}

.pub-header .wrap {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #004a85;
    text-decoration: none;
}

.logo img {
    height: 38px;
}

.search-bar {
    flex: 1;
    display: flex;
    background: #eef5ff;
    padding: 6px;
    border-radius: 8px;
}
.search-bar input {
    flex: 1;
    padding: 8px;
    border: none;
    outline: none;
    background: transparent;
}
.search-bar button {
    background: #007bff;
    border: none;
    color: white;
    padding: 8px 14px;
    font-weight: 600;
    border-radius: 6px;
}

.pub-nav a {
    margin-left: 12px;
    text-decoration: none;
    color: #003d6e;
    font-weight: 600;
}

.cart-icon {
    font-size: 18px;
}

/* FOOTER */
.pub-footer {
    margin-top: auto;
    padding: 20px;
    text-align: center;
    background:#002c54;
    color: white;
}

.pub-footer .wrap {
    max-width: 1000px;
    margin: auto;
}

/* GLOBAL BOX */
.box,
.product-info {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    padding: 16px;
    margin-top: 14px;
}

/* PRODUCT LIST GRID */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 18px;
}

.product-card {
    background: white;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #eee;
    text-align: center;
    transition: 0.2s;
}
.product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.product-card img {
    width: 100%;
    height: 155px;
    object-fit: cover;
    border-radius: 10px;
}

.product-name {
    margin-top: 8px;
    font-weight: 600;
}

.product-price {
    color: #007bff;
    font-weight: 700;
}

/* BOTTOM BAR FIX */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid #ddd;
    padding: 14px;
    display: flex;
    gap: 12px;
    z-index: 999;
}

.bottom-bar button,
.bottom-bar a {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    color: white !important;
    font-weight: 700;
    text-decoration: none;
}

.btn-add-cart { background: #ff6f00; }
.btn-buy { background: #007bff; }
