@import url('fonts.css');

:root {
    --header-height: 80px;
    --footer-height: 260px;
    --edge-inset: 20px;
    --content-inset-sides: 40px;
    --content-inset-top: 40px;
    --content-inset-top-mobile: 0;
    --content-inset-bottom: 100px;

    --lime-color: #c9ff05;
    --petrol-color: #000f14;
    --light-grey-color: #f8f8f8;
    --mid-grey-color: #747474;
    
    --background-color: #fff;
    --header-color: var(--petrol-color);
    --footer-color: var(--background-color);
    --text-color: #000;
    --header-text-color: #fff;
    --footer-text-color: var(--text-color);
}

*, 
*::before, 
*::after {
    box-sizing: border-box;
}

svg, 
svg * {
    display: block;
}

button {
    all: unset;
    cursor: pointer; 
}

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

.inline-link,
.inline-link:link,
.inline-link:visited {
    text-decoration: underline;
}

a img {
    display: block;
}

h1 {
    font-size: 1.6rem;
}

h2 {
    font-size: 1.2rem;
}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.hidden {
    display: none !important;
}

body {
    margin: 0;
    font-family: 'Signifier', serif;
    font-size: 1rem;
    font-variant-ligatures: common-ligatures contextual;
    color: var(--text-color);
    background-color: var(--background-color);
}

.body-content-container {
    display: flex;         
    justify-content: center;
    padding: var(--content-inset-top) var(--content-inset-sides) var(--content-inset-bottom) var(--content-inset-sides);
}

@media screen and (max-width: 660px) {
    .body-content-container {
        padding: var(--content-inset-top-mobile) 0 var(--content-inset-bottom) 0;
    }
}

header {
    width: 100%;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--edge-inset) 0 var(--edge-inset);
    background-color: var(--header-color);
    color: var(--header-text-color);
    font-family: 'American Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.96rem;
}

header a,
header a:link, 
header a:visited {
    color: var(--header-text-color);
}

.header__logo {
    height: 34px;
    width: auto;
    transform: translateY(-4px);
}

.header__toolbar {
    display: flex;
    align-items: center;
    column-gap: var(--edge-inset);
}

.header__toolbar__cart-button,
.header__toolbar__cart-button:link,
.header__toolbar__cart-button:visited {
    text-decoration: underline;
}

.header__toolbar__nav-menu-button {
    display: none;
}

@media screen and (max-width: 660px) {
    .header__toolbar__cart-button,
    .header__toolbar__cart-button:link,
    .header__toolbar__cart-button:visited {
        text-decoration: none;
    }

    .header__toolbar__nav-menu-button {
        display: inline;
    }
}

.header__nav-menu {
    position: relative;
    z-index: 2;
    background-color: var(--header-color);
}

.header__nav-menu__ul {
    display: flex;
    align-items: center;
    column-gap: 60px;
}

@media screen and (max-width: 660px) {
    .header__nav-menu {
        position: absolute;
        top: var(--header-height);
        right: 0;
        width: 100%;
        visibility: hidden;
    }

    .header__nav-menu__ul {
        display: flex;
        flex-direction: column;
        row-gap: 20px;
        padding: 20px 0 20px 0;
    }
}

.promotion-banner {
    display: none;
    width: 100%;
    background-color: var(--lime-color);
}

.promotion-banner__text { 
    height: 30px;
    line-height: 30px;
    margin-block: 0;
    text-align: center;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero__img {
    width: min(764px, 100vw);
    height: auto;
}

.hero > a > .action-button {
    margin: 60px 0 0 0;
}

footer {
    width: 100%;
    height: var(--footer-height);
    display: flex;
    justify-content: space-between;
    padding: var(--edge-inset);
    color: var(--footer-text-color);
    background-color: var(--footer-color);
    font-family: 'American Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.96rem;
}

footer a,
footer a:link, 
footer a:visited {
    color: var(--footer-text-color);
}

.footer__nav-menu__ul {
    height: 100%;
    display: flex;
    flex-direction: column;
    row-gap: 8px;
}

.footer__copyright {
    margin-top: auto;
}

.footer__img {
    width: 120px;
    height: auto;
    align-self: center;
    margin: 0 40px 0 0;
}

@media screen and (max-width: 660px) {
    footer {
        height: auto;
        flex-direction: column;
        row-gap: 40px;
    }

    .footer__nav-menu {
        align-self: flex-start;
    }

    .footer__img {
        margin: 0;
    }
}

.product-grid {
    max-width: 100%;
    display: flex;         
    flex-wrap: wrap;      
    justify-content: center; 
    gap: 40px;
    padding: 0 var(--edge-inset) 0 var(--edge-inset);
}

.product-grid__product-card {
    flex: 0 1 auto;
    width: 400px;
    height: auto;
}

.product-grid__product-card__img {
    max-width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
}

.product-grid__product-card__title {
    width: 100%;
    margin-block: 8px;
    text-align: center;
    font-weight: 700;
}

.information {
    max-width: 700px;
    padding: 0 var(--content-inset-sides) 0 var(--content-inset-sides);
}

.operating-hours {
    display: flex;
    flex-direction: column;
    row-gap: 2px;
}

.operating-hours__row {
    display: flex;
}

.operating-hours__dow {
    width: 124px;
    font-weight: 700;
}

.shipping-rates {
    display: flex;
    flex-direction: column;
    row-gap: 6px;
}

.shipping-rates__row {
    display: flex;
}

.shipping-rates__amount {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 10%;
    font-weight: 700;
}

.shipping-rates__jurisdiction {
    width: 90%;
}

.size-table {
    display: flex;
    flex-direction: column;
    font-variant-numeric: tabular-nums diagonal-fractions;
}

.size-table__row {
    display: flex;
}

.size-table__column { 
    width: 60px; 
}

.size-table__column:nth-child(4) { 
    width: 80px; 
}

.size-table__row:nth-child(1),
.size-table__column:nth-child(1) {
    font-weight: 700;
}

.privacy-policy ul {
    list-style: disc inside none;
    padding: 0 0 0 20px;
}

.error-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    visibility: hidden;
    font-family: 'American Grotesk', sans-serif;
    font-weight: 500;
    background-color: rgba(0, 0, 0, 0.4); 
}

.error-modal__popup {
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    background-color: #ff0022;
    color: #ffffff;
}

.error-modal__popup__message {
    margin-block: 4px 20px;
}

.error-modal__popup__instructions {
    margin-block: 0 24px;
}

.error-modal__popup__ok-button {
    width: 100px;
    padding: 10px;
    background-color: #ff2e3f;
}

.not-found__text {
    font-size: 10rem;
}

.justified {
    text-align: justify;
    text-justify: auto;
    hyphens: none;
}

.state-control-button:disabled {
    color: var(--mid-grey-color);
}

.action-button {
    width: 200px;
    text-align: center;
    font-family: 'American Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.96rem;
    padding: 6px 0 6px 0;
    color: #000;
    background-color: var(--lime-color);
}

.action-button:disabled {
    color: var(--mid-grey-color);
    background-color: var(--light-grey-color);
}

.checkout-success {
    max-width: 580px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 100px 0 80px 0;
}
