smartpick / static /styles.css
shubhendu-ghosh's picture
Upload styles.css
6ae4504 verified
/* Reset and Base Styles */
body, h1, h2, p, input, select, button {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
background: linear-gradient(to right, #eef2f3, #ffffff);
padding: 30px;
color: #333;
}
/* Headings */
h1 {
text-align: center;
color: #333;
margin-bottom: 30px;
font-size: 2.5em;
}
h2 {
margin-top: 30px;
margin-bottom: 10px;
color: #444;
text-align: center;
font-size: 1.8em;
}
/* Button: Home and Pagination */
#home-button,
#product-filters button,
#pagination button {
background-color: #007bff;
color: white;
border: none;
padding: 10px 16px;
font-size: 1em;
border-radius: 6px;
cursor: pointer;
transition: background-color 0.3s ease;
margin: 10px;
}
#home-button:hover,
#product-filters button:hover {
background-color: #0056b3;
}
#pagination {
display: flex;
justify-content: center;
align-items: center;
gap: 15px;
font-size: 1.1em;
}
#pagination button {
background-color: #27ae60;
}
#pagination button:hover {
background-color: #219150;
}
#page-number {
font-weight: bold;
}
/* Filters Section */
#product-filters {
background: #f9f9f9;
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
max-width: 600px;
margin: 20px auto;
text-align: center;
}
#product-filters input,
#product-filters select {
padding: 8px 10px;
font-size: 1em;
margin: 10px 10px 10px 0;
border-radius: 6px;
border: 1px solid #ccc;
}
/* Card Layout */
.card-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 20px;
margin-top: 20px;
}
/* Card Styling */
.card {
background-color: white;
border: 1px solid #ddd;
border-radius: 12px;
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
transition: transform 0.2s ease, box-shadow 0.3s ease;
padding: 15px;
text-align: center;
cursor: pointer;
}
.card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
/* Card Image */
.card img {
width: 100%;
height: 160px;
object-fit: contain;
border-radius: 8px;
margin-bottom: 10px;
}
/* Card Text */
.card p {
margin: 6px 0;
font-size: 1em;
color: #333;
}
.card p strong {
color: #2c3e50;
}
.brand-header {
background-color: white;
text-align: center;
padding: 30px 0 10px;
border-bottom: 1px solid #e0e0e0;
}
.logo {
font-size: 3rem;
font-weight: 800;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
color: #2c3e50;
letter-spacing: 1px;
}
.logo .highlight {
color: #e74c3c; /* vibrant contrast color */
}