:root {
    --white: #FFFFFF;
    --black: #383838;
    /*#298F64*/
    /*#00BA56 */
    --dark-blue: oklch(0.2795 0.0368 260.03);
    --better-blue: oklch(0.395 0.0368 260.03);
    --med-blue: oklch(0.79 0.0368 260.03);
    --light-blue: oklch(92% 0.0368 260.03);
    --pale-green: oklch(0.8074 0.166 165.92);
    --light-pale-green: oklch(0.9074 0.166 165.92);
    --background-color: var(--white, orange);
    --color: var(--dark-blue);
    --color-hover: blue;
    --color-link: rebeccapurple;
    --color-hover-link: red;
    --color-header-a: orange;
    --border: var(--dark-blue);
}

* {
    box-sizing: border-box;
    transition: all .5s ease-in-out;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    line-height: 1.5;
    background-color: var(--background-color);
    color: var(--color);
    font-size: 18px;
    font-family: "Hanken Grotesk", serif;
    font-weight: 300;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
}

p, h1, h2, h3, h4, h5 {
    margin-top: 0;
}


img {
    display: block;
    max-width: 100%;
}

.site-title {
    border-width: 2px;
    border-style: solid;
    display: block;
    line-height: 1;
    padding-block: 4px;
    padding-inline: 8px;
}

.site-title,
a .site-title,
a:link .site-title,
a:visited .site-title {
    color: var(--white);
    border-color: var(--pale-green);
}

.site-title:hover,
a:hover .site-title,
a:focus .site-title,
a:active .site-title {
    color: var(--pale-green) !important;
    border-color: var(--white);
}

.site-header {
    background-color: var(--dark-blue);
    color: var(--white);
    padding-block: .25rem;
    padding-inline: .75rem;
}

.site-header > div {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}

nav menu {
    list-style-type: "";
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.25ch;
    margin: 0;
}

nav form {
    display: inline-block;
    margin-left: 1.5em;
}

main {
    padding-block: 4rem;
    padding-inline: .75rem;
}

.site-footer {
    background: var(--dark-blue);
    color: var(--white);
    padding-top: 17px;
    padding-bottom: 15px;
    height: 60px;
    text-align: center;
}

.site-footer a,
.site-footer a:link,
.site-footer a:visited {
    color: var(--white);
    text-decoration: underline;
}

.site-footer a:hover,
.site-footer a:focus,
.site-footer a:active {
    color: var(--pale-green);
    text-decoration: none;
}

/*************
 * Links
 ************/
a,
a:link,
a:visited {
    color: var(--color-link);
    text-decoration: none;
}

a:hover,
a:active,
a:focus {
    color: var(--color-hover-link);
    text-decoration: none;
}


a .site-title,
a:link .site-title,
a:visited .site-title {
    color: var(--white);
    text-decoration: none;
}

a:focus .site-title,
a:hover .site-title,
a:active .site-title {
    color: var(--white);
    text-decoration: none;
}

nav menu {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 1.5rem;
}
nav a {
    line-height: 1;
    font-weight: 200;
    letter-spacing: 1px;
}

nav a,
nav a:link,
nav a:visited {
    color: var(--white);
}
nav a:hover,
nav a:focus,
nav a:active {
    color: var(--pale-green);
}
/*****************
 * Typography
 *****************/

h1 {
    font-size: 36px;
    font-weight: bold;
}

h2 {
    font-size: 22px;
    margin-bottom: 36px;
}

/**********
 * Buttons
 ********/
a.button,
input[type="submit"] {
    font-size: 1em;
    color: #FFFFFF;
}

a.button:hover,
input[type="submit"]:hover {
    background-color: #4EB722;
    color: #FFFFFF;
    cursor: pointer;
    text-decoration: none;
}


button {
    background: none;
    padding: 0;
    border: none;
    color: #62CB31;
    text-decoration: none;
}

button:hover {
    color: #4EB722;
    text-decoration: underline;
    cursor: pointer;
}

/***********
 * Forms
 */
textarea,
input:not([type="submit"]) {
    font-size: 18px;
    font-family: "Ubuntu Mono", monospace;
}

form input[type="radio"] {
    margin-left: 18px;
}

form input[type="text"],
form input[type="password"],
form input[type="email"] {
    padding: 0.75em 18px;
    width: 100%;
}

form input[type=text],
form input[type="password"],
form input[type="email"],
textarea {
    color: #6A6C6F;
    background: #FFFFFF;
    border: 1px solid #E4E5E7;
    border-radius: 3px;
}

.error {
    color: #C0392B;
    font-weight: bold;
    display: block;
}

.error + textarea,
.error + input {
    border-color: #C0392B !important;
    border-width: 2px !important;
}

textarea {
    padding: 18px;
    width: 100%;
    height: 266px;
}

.flash {
    color: #FFFFFF;
    font-weight: bold;
    background-color: #34495E;
    padding: 18px;
    margin-bottom: 36px;
    text-align: center;
}

div.error {
    color: #FFFFFF;
    background-color: #C0392B;
    padding: 18px;
    margin-bottom: 36px;
    font-weight: bold;
    text-align: center;
}

/***************
 * Utility
 */
.container {
    max-width: 1200px;
    margin-inline: auto;
}
.box {
    padding: 1rem;
}

/************
 * Products
 ************/

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(289px), 1fr));
    gap: 1.5em;
}

.product-card-shell {
    position: relative;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border-radius: 6px;
    border-width: 1px;
    border-style: solid;
    background-color: var(--dark-blue);
    border-color: var(--pale-green);
    color:  var(--light-blue);
    height: 100%;
    h2 {
        color: var(--pale-green);
    }
    img + header h2 {
        margin-top: .75rem;
    }
    img {
        border: 1px solid var(--dark-blue);
    }
}

a.product-card {
    transition: all .5s ease-in-out;
}

a.product-card,
a.product-card:link,
a.product-card:visited {
    background-color: var(--dark-blue);
    border-color: var(--pale-green);
    color:  var(--light-blue);
    h2 {
        color: var(--pale-green);
    }

    img {
        filter: sepia(100%);
    }
}

a.product-card:hover,
a.product-card:active,
a.product-card:focus {
    background-color: var(--better-blue);
    box-shadow: 9px 9px 15px 7px #23232350;
    h2, h3 {
        /*color: var(--dark-blue);*/
    }
    img {
        filter: sepia(1%);
    }
}

.product-card header {
   display: flex;
   flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    column-gap: 1rem;
    row-gap: .25rem;
}

.product-card h2,
.product-card h3 {
    line-height: 1;
}

.product-card h2 {
   font-weight: 300;
}

.product-card h3 {
    color: var(--light-blue);
    /*color: oklch(0.2795 0.0368 260.03);*/
    font-size: .9rem;
}
.product-card .info-block {
    border: 1px solid oklch(0.2795 0.0368 260.03 / 25%);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: .75em;
    padding: .5rem;
    margin-top: 1rem;
    background-color: var(--light-blue);
    color: var(--dark-blue);
    border-radius: 6px;
    text-shadow: none;
}

.info-block .stats {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.product-card .average-rating {
    margin: 0;
}

.product-card.out-of-stock {
    opacity: .25;
}

.btn-is-out-of-stock {
    background-color: yellow;
    color: var(--dark-blue);
    border: 1px solid var(--dark-blue);
    width: fit-content;
    padding: 2px 16px;
    line-height: 1.2;
    border-radius: 6px;
    font-weight: 800;
    letter-spacing: .2ch;
    margin-block-end: 0;

}

.product-card-shell .btn-is-out-of-stock {
    font-size: .9em;
    position: absolute;
    right: -3px;
    bottom: -3px;
}
.btn-is-on-sale {
    background-color: #FF00FF;
    color: var(--white);
    border: 1px solid yellow;
    width: fit-content;
    padding: 2px 16px;
    line-height: 1.2;
    margin-block-end: 0;
    border-radius: 6px;
    font-weight: 800;
    letter-spacing: .2ch;
}

.product-single__info__wrap .btn-is-on-sale {
    font-size: 1.4em;
    position: absolute;
    right: 10px;
    top: 10px;
}

.product-card-shell .btn-is-on-sale {
    font-size: .9em;
    position: absolute;
    right: -5px;
    top: -5px;
}

.btn-is-new {
    background-color: #00FF00;
    color: var(--dark-blue);
    border: 1px solid var(--dark-blue);
    width: fit-content;
    margin-block-end: 0;
    padding: 2px 16px;
    line-height: 1.2;
    border-radius: 6px;
    font-weight: 800;
    letter-spacing: .2ch;
}

.product-single__info__wrap .btn-is-new {
    font-size: 1.4em;
    position: absolute;
    right: 10px;
    bottom: 10px;
}

@media screen and (min-width: 1290px) {
    .product-single__info__wrap .btn-is-new {
        right: 0;
        bottom: 0;
        transform: translate(25%, 25%);
    }
    .product-single__info__wrap .btn-is-on-sale {
        right: 0;
        top: 0;
        transform: translate(25%, -25%);
    }
}


.product-card-shell .btn-is-new {
    font-size: .9em;
    position: absolute;
    right: -3px;
    bottom: -3px;
}

.product-card h2 {
    margin-bottom: 0;
}

.product-card h3 {
    font-weight: 200;
    font-size: .9em;
    margin-block-end: 1ch;
}

.product-card-cats .kitty {
    background-color: var(--dark-blue);
    border-radius: 12px;
    color: var(--white);
    font-size: .8em;
    padding: 2px 12px;
}

.product-single-cats {
    margin-top: 2rem;
}
.product-single-cats .kitty {
    background-color: var(--pale-green);
    border-radius: 12px;
    color: var(--dark-blue);
    font-size: 1em;
    padding: 2px 12px;
}


.product-single .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(500px, 100%), 1fr));
    gap: 1.25rem;
    margin-inline: auto;
}

.product-single img {
   border: 1px solid var(--dark-blue);
}

.mini-photo-gallery {
    display: grid;
    margin-top: 10px;
    gap: 2px;
    grid-template-columns: repeat(4, minmax(min(72px), 1fr));
    div {
        border: 1px solid green;
    }
    img {

    }
}


.product-single__info__wrap {
    position: relative;
}

@media screen and (max-width: 1043px) {
    .product-single__info__wrap {
        order: -1;
    }
}

.product-single__info {
    color: var(--white);
    background-color: var(--dark-blue);
    height: 100%;
    h1, h2 {
        margin-bottom: 0;
    }
    h1 {
        font-weight: 300;
        line-height: 1.2;
    }
    h2 {
        font-weight: 100;
        line-height: 1;
    }

}

.product-filter {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
}

.product-filter-form {
    background-color: var(--dark-blue);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 2rem;
}
.product-filter-field {
    display: flex;
    flex-direction: column;
    row-gap: .25rem;
    flex-grow: 1;
    label {
        color: var(--white);
    }
}

.product-filter-form-button-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px), 1fr));
    column-gap: .5rem;
    row-gap: 1rem;
    margin-top: 2rem;
    button,
    input[type="submit"] {
        background-color: var(--pale-green);
        color: var(--dark-blue);
        border-color: var(--pale-green);
    }
    button:hover,
    input[type="submit"]:hover {
        background-color: var(--dark-blue);
        color: var(--pale-green);
        border-color: var(--pale-green);
    }
    a,
    a:link,
    a:visited {
        border-color: var(--pale-green);
        color: var(--pale-green);
        background-color: var(--dark-blue)
    }
    a:hover,
    a:focus,
    a:active {
        border-color: var(--pale-green);
        color: var(--dark-blue);
        background-color: var(--pale-green);
    }

    a,
    button,
    input[type="submit"]{
        border-width: 2px;
        border-style: solid;
        border-radius: 3px;
        padding-inline: 2rem;
        padding-block: 1rem;
        line-height: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}

select {
    font-size: 1rem;
    padding-block: 4px;
    padding-inline: 2px;
}

.star svg {
    width: 32px;
    height: 32px;
    fill: yellow;
}

.rating-wrap {
    display: flex;
    gap: 1.25ch;
}

.product-reviews {
    background-color: var(--dark-blue);
    color: var(--white);
    margin-block-start: 1.75rem;
    padding-inline: 1.25rem;
    padding-block: 2rem;
}