:root {
    --fg-color: #333;
    --bg-color: #eff5f8;
    --bg-alt-color: #bdc8d2;
    --gray-color: #9d9d9d;
    --yellow-color: #f8a911;
    --yellow-alt-color: #f6c463;
    --green-color: #13ce65;
    --red-color: #ff4d44;

    --default-border: 2px solid var(--gray-color);
    --default-shadow: 0 1rem 3rem var(--gray-color);
}

html {
    font-size: 100%;
}

body {
    background: var(--bg-color);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    padding: 0;
    margin: 0;
    line-height: 1.75;
    color: var(--fg-color);
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--fg-color);
}

h1, h2, h3, h4, h5 {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: 2.488rem;
}

h2 {
    font-size: 2.074rem;
}

h3 {
    font-size: 1.728rem;
}

h4 {
    font-size: 1.44rem;
}

h5 {
    font-size: 1.2rem;
}

small {
    font-size: 0.833rem;
}

label {
}


input[type=text],
input[type=email],
input[type=number],
input[type=date],
input[type=password],
select[multiple=multiple],
textarea {
    font: inherit;
    text-align: left;
    color: var(--fg-color);
    border: var(--default-border);
    padding: 0.5rem;
    outline: 0;
    line-height: 1;
}

input:focus,
textarea:focus {
    border-color: var(--yellow-color);
}

select {
    text-align: left;
    font: inherit;
    font-size: 1rem;
    border: var(--default-border);
    padding: 0.5em;
    outline: 0;
    line-height: 1;
}

input[type=number] + select {
    margin-left: 1rem;
}

input[type=text],
input[type=email],
input[type=password],
select[multiple=multiple],
textarea {
    display: block;
}

input[type=number] {
    max-width: 6rem;
}

input[type=checkbox],
input[type=radio] {
    width: 2rem;
    height: 2rem;
    vertical-align: middle;
}


.action-button,
input[type=submit],
button {
    font-family: inherit;
    font-weight: bold;
    font-size: 1rem;
    color: var(--fg-color);
    text-decoration: none;
    background-color: var(--yellow-color);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
}

.action-button:hover,
input[type=submit]:hover,
button:hover {
    background-color: var(--yellow-alt-color);
}

.action-button--warning {
    background-color: var(--red-color) !important;
}

.action-link {
    font-family: inherit;
    font-weight: bold;
    font-size: 1rem;
    color: var(--yellow-color);
    text-decoration: none;
    cursor: pointer;
}

.action-link--warning {
    color: var(--red-color);
}

figure {
    margin: 0;
    padding: 0;
}


main {
    overflow: scroll;
    height: 100vh;
}

main article {
    margin: 2rem 2rem 2rem 0;
}


.store__info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 1rem 0;
}

.store__info div {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
}

.store__info div h3 {
    text-align: right;
}

.store__action {
    background-color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    display: block;
    /*font-size: 1.2rem;*/
    font-weight: bold;
    text-decoration: none;
    font-family: "Inter";
}

.store__action:hover {
    background-color: var(--bg-alt-color);
}

.dashboard__main {
    display: grid;
    grid-template-columns: 1fr 7fr;
    gap: 2rem;
}

.dashboard__sidebar {
    height: 100vh;
    background-color: var(--bg-alt-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dashboard__nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
}

.dashboard__user {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
}

.dashboard__user a,
.dashboard__nav a {
    padding: 0.5rem 1rem;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.dashboard__nav a img {
    width: 24px;
    margin-right: 0.5rem;
}

.dashboard__user a:hover,
.dashboard__nav a:hover {
    background-color: var(--bg-color);
    border-radius: 0.25rem;
}


.site__messages {
    text-align: left;
    white-space: normal;
    background-color: var(--fg-color);
    border-radius: 0.5rem;
    box-shadow: var(--default-shadow);

    margin: 1rem;
    padding: 0.5rem 1rem;

    position: fixed;

    left: auto;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 990;
}

.messages__message.debug {
    color: white;
}
.messages__message.info {
    color: white;
}
.messages__message.success {
    color: var(--green-color);
}
.messages__message.warning {
    color: var(--yellow-color);
}
.messages__message.error {
    color: var(--red-color);
}


.object__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.object__list,
.object__panel {
    background-color: white;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.object__item {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 0.05rem solid var(--gray-color);
    text-decoration: none;
    align-items: center;
    justify-items: start;
}

.object__item--col3 {
    grid-template-columns: repeat(3, 1fr);
}

.object__item--col5 {
    grid-template-columns: repeat(5, 1fr);
}

.object__item--col4 {
    grid-template-columns: repeat(4, 1fr);
}

.object__item--col8 {
    grid-template-columns: repeat(8, 1fr);
}

.panel__header--flex {
    display: flex;
    justify-content: space-between;
}

.panel__item:last-child,
.object__item:last-child {
    border-bottom: unset;
    border-radius: 0 0 0.5rem 0.5rem;
}

.object__item--link:hover {
    background-color: var(--bg-alt-color);
}

.panel__header {
    font-weight: bold;
    background-color: var(--bg-alt-color);
    border-radius: 0.5rem 0.5rem 0 0;
}

.panel__item {
    padding: 1rem;
    border-bottom: 0.05rem solid var(--gray-color);
    text-decoration: none;
}

.product__figure img {
    max-height: 400px;
}


.product__detail {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    padding: 1rem;
}

.product__image {
    max-height: 200px;
    border: 0.02rem solid var(--gray-color);
}


.object__menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.object__menu > a:not(:last-child) {
    margin-right: 1rem;
}

.order__fulfill {
    grid-column: 8;
}


.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown__menu {
    background-color: var(--bg-alt-color);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 1.25rem;
    margin-right: 1rem;
    font-weight: bold;
    display: inline-block;
    cursor: pointer;
}

.dropdown__child {
    display: none;
    cursor: pointer;
    background-color: var(--bg-color);
    position: absolute;
    right: 1rem;
    border-radius: 0.5rem;
    box-shadow: var(--default-shadow);
}

.dropdown__child a {
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: block;
    font-size: 1.25rem;
    font-weight: bold;
    white-space: nowrap;
    /*border-radius: 0.5rem;*/
}
.dropdown__child a:hover {
    background-color: var(--bg-alt-color);
}

.dropdown__child a:first-child {
    border-radius: 0.5rem 0.5rem 0 0;
}

.dropdown__child a:last-child {
    border-radius: 0 0 0.5rem 0.5rem;
}

.dropdown:hover .dropdown__child {
    display: block;
}

.dropdown__icon {
    background-color: var(--bg-alt-color);
    cursor: pointer;
    border-radius: 0.5rem;
    fill: currentColor;
    width: 3em;
    height: 3em;
    display: inline-block;
    line-height: 1.75;
    transition: fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
}

.dropdown__icon:hover {
    background-color: var(--yellow-alt-color);
}

.order__status {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 1.25rem;
    font-weight: bold;
    display: inline-block;
}

.order__status--display {
    display: flex;
    align-items: center;
    flex-direction: row;
}

.order__status--draft {
    background-color: var(--gray-color);
}
.order__status--unfulfilled {
    background-color: var(--red-color);
}
.order__status--partially_returned {
    background-color: var(--yellow-alt-color);
}
.order__status--partially_fulfilled {
    background-color: var(--yellow-alt-color);
}
.order__status--returned {
    background-color: var(--gray-color);
}
.order__status--fulfilled {
    background-color: var(--green-color);
}
.order__status--cancelled {
    background-color: var(--gray-color);
}

.status__dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    min-height: 8px;
    border-radius: 100%;
    margin-right: 0.4rem;
}


.item__figure {
    display: flex;
    align-items: flex-start;
    flex-direction: row;
    align-items: center;
}

.item__figure img {
    height: 50px;
    margin-right: 1rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;

}

.gallery__item {
}

.gallery__item,
.gallery__item img {
    width: 100%;
}

.gallery__item img {
    border: var(--default-border);
    object-fit: cover;
    aspect-ratio: 1/1;
}
