nav {
    display: flex;
    gap: 0.5rem;
    padding: 0 2rem;
    border-bottom: 1px solid #e6e6e6;
    background-color: #ffffff;
}

nav a {
    display: inline-block;
    text-decoration: none;
    color: #555;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 1rem 1.25rem;
    border-bottom: 3px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

nav a:hover {
    color: #FF4B4B;
    background-color: #fff8f8;
}

nav a.active {
    color: #FF4B4B;
    border-bottom: 3px solid #FF4B4B;
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #31333F;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #0e1117;
}

nav a {
    font-family: inherit;
    font-weight: 600;
}


/* Form container */
form {
    border: 1px solid #e6e6e6;
    border-radius: 0.75rem;
    padding: 2rem;
    background-color: #fafafa;
}




form p {
    margin-bottom: 1.25rem;
}

/* Labels */
form label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #31333F;
    margin-bottom: 0.4rem;
}

/* Text inputs, textareas, and selects — shared base style */
form input[type="text"],
form input[type="email"],
form input[type="number"],
form textarea,
form select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #d0d0d0;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: #31333F;
    background-color: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    margin-bottom: 1rem;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="number"]:focus,
form textarea:focus,
form select:focus {
    outline: none;
    border-color: #FF4B4B;
    box-shadow: 0 0 0 1px #FF4B4B;
}

form textarea {
    min-height: 100px;
    resize: vertical;
}



.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}


.product-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

.product-card h3 {
    margin: 0.25rem 0;
    font-size: 1.1rem;
}

.product-description {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.product-price {
    font-weight: 700;
    color: #0e1117;
    margin-bottom: 0.75rem;
}

.product-card button {
    background-color: #FF4B4B;
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
}

.product-card button:hover {
    background-color: #e13a3a;
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%; /* only matters if .product-grid uses grid or the cards sit side by side */
}

.buy-form {
    margin-top: auto;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-right: 1rem;
}

.cart-item {
    display: flex;
    align-items: flex-start;
}

.button-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.add-to-cart-button {
    background-color: #ffffff;
    color: #FF4B4B;
    border: 1px solid #FF4B4B;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
}

.add-to-cart-button:hover {
    background-color: #fff8f8;
}

.buy-now-button {
    background-color: #FF4B4B;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
}

.buy-now-button:hover {
    background-color: #e13a3a;
}