/* Reset & Body */
body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    padding: 20px;
    margin: 0;
}

/* Header with company name left and cart icon right */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 100;
}

.company-name {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2c3e50;
}

/* Cart icon styling */
.cart-icon {
    position: relative;
    font-size: 1.8rem;
    cursor: pointer;
    text-decoration: none;
    color: #2c3e50;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    padding: 2px 7px;
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: 0 0 2px rgba(0,0,0,0.3);
}

/* Page Title */
h1 {
    color: #333;
    text-align: center;
    margin: 30px 0 20px;
}

/* Products container */
.products {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Individual product card */
.product {
    background-color: rgb(215, 215, 215);
    width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: box-shadow 0.2s ease-in-out;
}

.product:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* Product image */
.product img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Product name */
.product h2 {
    margin: 10px 0 8px;
    font-size: 1.2rem;
    color: #2c3e50;
}

/* Product description */
.product p {
    margin: 0 0 10px;
    font-size: 0.95rem;
    color: #333;
    min-height: 48px; /* keep cards uniform */
}

/* Product price */
.product p.price {
    font-weight: bold;
    color: #27ae60;
    margin-bottom: 2px;
    font-size: 1.1rem;
}

/* Links inside product */
.product a {
    display: block;
    margin: 5px 0;
    color: #2980b9;
    text-decoration: none;
    font-weight: 600;
}

.product a:hover {
    text-decoration: underline;
}

/* Link to go to cart page */
.goto-cart {
    display: block;
    max-width: 1200px;
    margin: 30px auto 0;
    text-align: right;
    font-weight: 600;
    color: #2980b9;
    text-decoration: none;
}

.goto-cart:hover {
    text-decoration: underline;
}

/* Table styles */
table {
    width: 80%;
    border-collapse: collapse;
    margin: 20px auto;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

th {
    background-color: #eee;
    border-bottom: 2px solid #ddd;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

td, th {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

td button {
    margin-right: 5px;
}

/* Buttons */
button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #008CBA;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #005f73;
}
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

input[type="text"],
textarea {
    width: 100%;
    max-width: 500px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

