/* Basic Global Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f6f9;
    color: #333;
}

/* Header Navbar Styling */
header {
    background-color: #1e293b;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

header .logo {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
}

header .logo span {
    color: #38bdf8;
}

header nav a {
    color: #f1f5f9;
    text-decoration: none;
    margin-left: 20px;
    font-size: 16px;
    transition: color 0.3s;
}

header nav a:hover {
    color: #38bdf8;
}

/* Page Main Title */
.main-heading {
    text-align: center;
    margin: 30px 0;
    font-size: 32px;
    color: #0f172a;
    position: relative;
}

.main-heading::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #38bdf8;
    margin: 8px auto 0 auto;
    border-radius: 2px;
}

/* Flexbox/Grid Grid System for 10 Cards */
.products-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 50px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

/* Card Design Framework */
.product-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Image Wrapper Adjustment */
.product-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Content Within Cards */
.product-title {
    font-size: 18px;
    color: #1e293b;
    padding: 15px 15px 5px 15px;
}

.product-desc {
    font-size: 14px;
    color: #64748b;
    padding: 0 15px 15px 15px;
    line-height: 1.4;
    flex-grow: 1;
}

/* Bottom Actions Block */
.product-footer {
    padding: 15px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8fafc;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.buy-btn {
    background-color: #0284c7;
    color: #fff;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.buy-btn:hover {
    background-color: #0369a1;
}

/* Footer Section */
footer {
    background-color: #0f172a;
    color: #94a3b8;
    text-align: center;
    padding: 20px;
    font-size: 14px;
    margin-top: 20px;
}