* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f6f6f6;
    color: #222;
}

.top-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1200px;
    margin: auto;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    color: #d60000;
    font-size: 25px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.search-form {
    flex: 1;
    display: flex;
    background: #f1f1f1;
    border-radius: 14px;
    overflow: hidden;
}

.search-form input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px;
    outline: none;
    font-size: 15px;
}

.search-form button {
    border: none;
    background: #d60000;
    color: white;
    padding: 0 22px;
    font-weight: bold;
    cursor: pointer;
}

.admin-btn {
    background: #d60000;
    color: white;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: bold;
}

.hero {
    background: linear-gradient(135deg, #d60000, #ff3b3b);
    color: white;
    padding: 38px 15px;
}

.hero div {
    max-width: 1200px;
    margin: auto;
}

.hero h1 {
    margin: 0;
    font-size: 36px;
}

.hero p {
    margin: 8px 0 0;
    font-size: 17px;
}

.container {
    max-width: 1200px;
    margin: 25px auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 22px;
}

.categories {
    background: white;
    border-radius: 18px;
    padding: 15px;
    box-shadow: 0 5px 18px rgba(0,0,0,.06);
    height: max-content;
}

.categories a {
    display: block;
    padding: 12px;
    margin-bottom: 8px;
    background: #f5f5f5;
    color: #222;
    text-decoration: none;
    border-radius: 12px;
    font-weight: bold;
}

.categories a.active,
.categories a:hover {
    background: #d60000;
    color: white;
}

.filter-bar {
    background: white;
    border-radius: 18px;
    padding: 15px;
    margin-bottom: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 5px 18px rgba(0,0,0,.06);
}

.filter-bar select {
    padding: 11px;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 18px;
}

.product-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(0,0,0,.08);
    transition: .2s;
}

.product-card:hover {
    transform: translateY(-3px);
}

.product-image {
    height: 220px;
    background: #eee;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image span {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
    color: #777;
}

.category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #d60000;
    color: white;
    padding: 6px 11px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: bold;
}

.product-info {
    padding: 15px;
}

.product-info h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.price {
    color: #d60000;
    font-size: 23px;
    font-weight: 900;
    margin-bottom: 8px;
}

.product-info p {
    color: #666;
    font-size: 14px;
    min-height: 42px;
}

.whatsapp-btn {
    display: block;
    text-align: center;
    background: #25D366;
    color: white;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
}

.empty {
    background: white;
    padding: 35px;
    border-radius: 18px;
    text-align: center;
    color: #777;
}

@media(max-width: 800px) {
    .header-inner {display:block;}
    .logo {display:block;text-align:center;margin-bottom:12px;}
    .search-form {margin-bottom:10px;}
    .admin-btn {display:block;text-align:center;}
    .hero h1 {font-size:26px;}
    .container {grid-template-columns:1fr;}
    .categories {display:flex;overflow-x:auto;gap:8px;padding:12px;}
    .categories a {white-space:nowrap;margin:0;}
    .filter-bar {display:block;}
    .filter-bar select {width:100%;margin-top:10px;}
    .product-grid {grid-template-columns:repeat(2,1fr);gap:12px;}
    .product-image {height:160px;}
    .product-info h3 {font-size:15px;}
    .price {font-size:18px;}
}
