html {
    background-color: #fafafa;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #333;
}
body {
    max-width: 1080px;
    margin: auto;
    padding: 72px 0 0;
    position: relative;
}
h1 {
    margin: 20px;
}
product {
    display: inline-block;
    width: 320px;
    height: 270px;
    margin: 10px 20px 30px;
    background-color: white;
    box-shadow: 0 4px 10px #0000001a;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}
@media (max-width: 1079px) {
    product {
        width: 29.6333%;
        height: auto;
        aspect-ratio: 1.1852;
        margin: 10px 1.85% 30px;
    }
}
@media (max-width: 860px) {
    product {
        width: 44.4444%;
        margin: 10px 2.7778% 30px;
    }
    product h4 {
        font-size: min(16px, 2.7vw);
    }
}
@media (max-width: 480px) {
    product {
        width: 88.8888%;
        margin: 10px 5.5556% 30px;
    }
    product h4 {
        font-size: 16px;
    }
}
product img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}
product h4 {
    padding: 8px 10px;
    margin: 0;
    position: absolute;
    bottom: 0px;
    background-color: rgba(255,255,255,0.96);
    width: 100%;
    box-sizing: border-box;
    line-height: 1.5;
}
product h4 price {
    color: #888;
    font-weight: 400;
    float: right;
    font-size: 0.9375em;
}
price::before {
    content: '$';
}
price.subscription::after {
    content: ' / year';
}
modal {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0,0,0,0.4);
    display: none;
    z-index: 3;
}
product-details {
    background-color: #fff;
    border-radius: 8px;
    width: 720px;
    max-width: calc(100% - 40px);
    max-height: calc(100vh - 20px);
    position: absolute;
    top: 50%;
    left: 50%;
    overflow: auto;
    transform: translate(-50%, -50%);
    padding-right: 20px;
}
product-details img {
    width: 50%;
    float: left;
    max-height: calc(100vh - 40px);
    margin: 20px;
}
product-details div {
    float: left;
    width: calc(50% - 40px);
    margin-bottom: 20px;
}
product-details price {
    display: block;
    margin-bottom: 20px;
}
product-details description {
    display: block;
    line-height: 1.4;
    margin: 20px 0;
}
product-details .unit-label:empty {
    display: none;
}
product-details .unit-label::before {
    content: 'Number of ';
    text-transform: none;
}
product-details .unit-label::after {
    content: 's:';
}
product-details .unit-label {
    display: block;
    font-size: 13px;
    margin-bottom: 5px;
    text-transform: capitalize;
}
product-details input {
    border: 1px solid #ccc;
    padding: 0;
    border-radius: 5px;
    appearance: textfield;
    font-family: inherit;
    width: 40px;
    font-size: 16px;
    line-height: 40px;
    text-align: center;
}
product-details .unit-label:not(:empty) ~ input {
    width: 123px;
    box-sizing: border-box;
    padding: 0 10px;
    text-align: left;
}
product-details :is(.decrease,.increase) {
    width: 36px;
    display: inline-block;
    text-align: center;
    font-size: 16px;
    background-color: #eee;
    line-height: 36px;
    border-radius: 4px;
    border: 0;
    padding: 0;
    cursor: pointer;
}
product-details .unit-label:not(:empty) ~ :is(.increase,.decrease) {
    display: none;
}
product-details button[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
}
product-details .add-to-cart {
    display: block;
    margin-top: 10px;
    height: 44px;
    font-size: 16px;
    padding: 0;
    width: 123px;
    border: 0;
    border-radius: 5px;
    color: white;
    background-color: #4AA361;
    cursor: pointer;
}
modal-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 36px;
    text-align: center;
    line-height: 36px;
    color: #808080;
    font-size: 24px;
    cursor: pointer;
}
.cart {
    font-family: FontAwesome;
    height: 68px;
    width: 68px;
    font-size: 28px;
    border: 0;
    background-color: #fafafa;
    color: inherit;
    top: 80px;
    right: max(calc(50vw - 532px), 8px);
    position: fixed;
    cursor: pointer;
    border-radius: 24px;
    z-index: 1;
}
.cart[data-item-count]:not([data-item-count="0"])::before {
    position: absolute;
    right: 22px;
    bottom: 17px;
    background-color: #4AA361;
    border-radius: 10px;
    line-height: 20px;
    min-width: 20px;
    text-align: center;
    font-size: 12px;
    color: white;
    content: attr(data-item-count);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    padding: 0 4px;
    box-sizing: border-box;
    transform: translateX(100%);
}
input[type='number']::-webkit-inner-spin-button {
    display: none;
}
status-message {
    z-index: 1000;
    color: #fff;
    background-color: #000c;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 16px;
    display: none;
    position: fixed;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}