/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

body {
    width: 100%;
    margin: 0;
    font-family: "IBM Plex Sans", sans-serif;
    color: rgb(22, 22, 22);
    background-color: rgb(244, 244, 244);
}

nav form {
    margin: 0;
}

form {
    margin: auto 0;
}

a {
    text-decoration: underline;
    color: rgb(15, 98, 254);
}

#products a {
    display: block;
    text-decoration: none;
    color: inherit;
}

#products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.product-card {
    border: 1px solid #e1e4e8;
    padding: 1rem;
    transition: 0.2s ease;
    display: flex;
    flex-direction: column;
    height: calc(100% - 2rem);
}

.product-card span {
    margin-top: auto;
}

.product-card:hover {
    filter: brightness(0.8);
}

.product-card span {
    padding-top: 1rem;
}

button {
    font-size: 1rem;
    padding: 0.75rem;
    border: 0;
    background-color: rgb(15, 98, 254);
    color: white;
}

button:hover {
    cursor: pointer;
    background-color: rgb(0, 45, 156);
}

a:hover {
    color: rgb(0, 45, 156);
}


nav a {
    text-decoration: none;
    color: inherit;
}

nav {
    height: 3rem;
    display: flex;
    justify-content: space-between;
    color: white;
    background-color: rgb(22, 22, 22);
    width: 100%;
    font-size: 1rem;
}

nav a,
nav span,
nav button {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    transition: 0.2s ease;

    border: none;
    border-radius: 0;
    font: inherit;
    color: inherit;
    background-color: inherit;
}

nav button {
    cursor: pointer;
}



nav a:hover,
nav button:hover {
    color: inherit;
    background-color: #393939;
}

h1, h2, h3, h4, p, li {
    font-weight: 400;
}

main {
    max-width: 80ch;
    margin: 4rem auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

article > * {
    padding-bottom: 1rem;
}

code {
    background-color: rgb(224, 224, 224);
    padding: 0.15em 0.3em;
    margin: 0;
    font-size: 80%;
    border-radius: 3px;
    font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace;
}

.notice {
    color: green;
}

section.product {
    display: flex;
    gap: 1rem;
    flex-direction: row;
}

section.product img {
    border-radius: 8px;
    flex-basis: 50%;
    max-width: 50%;
}