:root {
  --primary-values: 242,99,109;
  --primary-color: rgb(var(--primary-values));
  --primary-opaque-6: rgba(var(--primary-values), 0.8);
  --primary-opaque: rgba(var(--primary-values), 0.3);
}

html {
  background-color: #f4f5f0;
  max-width: 70ch;
  padding: 3em 1em;
  margin: auto;
  line-height: 1.75;
  font-size: 1.25em;
}

body {
}

* {
    box-sizing: border-box;
    margin: 0;
    font-family: "Poppins", sans-serif;
    font-style: normal;
    padding: 0;
}
.products {
    display:  flex;
}

h1,h2,h3,h4,h5,h6 {
  margin: 2em 0 1em;
  color: var(--primary-color);
  text-transform: uppercase;
}

p,ul,ol {
  margin-bottom: 2em;
  color: #1d1d1d;
  font-family: sans-serif;
}

.product-card {
    overflow: hidden;
    background-color: white;
    border-radius: 8px;
    position: relative;
    box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.1) 0px 2px 4px -2px
}

.product-card .footer {
    padding: 10px;
    display: flex;
    flex-flow: column;
    justify-content: center;
}

.price {
    background-color: var(--primary-opaque-6);
    opacity: 1;
    color: white;
    font-weight: bold;
    padding: 2px 10px;
    position: absolute;
    top: 5px;
    right: 5px;
    border-radius: 16px;
}

.products {
    display: inline-flex;
    gap: 25px 15px;
    flex-flow: row wrap;
}

.product-card button {
    border-radius: 0;
}

.product-card img {
    width: 330px;
    height: 250px;
    object-fit: cover;
}

button {
    background-color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    padding: 5px 15px;
    width: fit-content;
    border: none;
    font-size: 13px;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
}

 

.quantity {
  position: relative;
  display: flex;
  flex-flow: row-inverse;
  justify-content: center;
  align-items: center;
  width:100%;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button
{
  -webkit-appearance: none;
  margin: 0;
}

input[type=number]
{
  -moz-appearance: textfield;
}

.quantity small {
    font-size: 13px;
}
.quantity input {
  width: 45px;
  height: 42px;
  line-height: 1.65;
  float: left;
  display: block;
  padding: 0;
  border-radius: 8px;
  margin: 0;
  margin-left: 10px;
  padding-left: 20px;
  border: 1px solid #eee;
}

.highlighted {
    color: var(--primary-color);
    font-weight: bold;
}


.product-card label {
    text-align: center;
}
.product-card button, #cart-drawer button {
    width: 100%;
    height: 50px;
}

#cart-drawer {
    position: fixed;
    border-radius: 8px;
    box-shadow: var(--primary-opaque) 0px 0px 0px 0px, var(--primary-opaque) 0px 0px 0px 0px, var(--primary-opaque) 0px 4px 6px -1px, var(--primary-opaque) 0px 2px 4px -2px;
    background-color: white;
    overflow: hidden;
    display: none;
    height: 100dvh;
    top: 0;
    right: 0;
}

#cart-drawer table td:last-child {
    padding-left: 15px;
}

#cart-drawer table {
    padding: 15px;
}

.name {
    font-size: 16px;
    font-weight: 300;
}

.qtd {
    font-size: 16px;
    font-weight: bold;
    width: 50px;
    border: none;
}

a button {
    margin-top: 2em;
    font-size: 15px;
    font-weight: bold;
}
a {
    text-decoration: none;
}
a svg {
    width: 50px
    height: 30px;
    fill: white;
}

.mobile-only {
    display: none;
}

@media only screen and (min-width: 801px) {
    #cart-drawer:has(.qtd:not([value="0"])) {
        display: inline-flex;
    }
}
#cart-drawer form{ 
    display: inline-flex;
    flex: 1;
    max-height: 100%;
    flex-direction: column;
    justify-content: space-between;
}
@media only screen and (max-width: 800px) {
    iframe {
        display: none;
    }

    #cart-drawer {
        display: inline-flex;
        flex-direction: column;
        width: 100%;
    }
    #cart-drawer:not(.show) {
        display: none;
    }

    .mobile-cart button {
        width: 100%;
        height: 50px;
        font-size: 20px;
        border-radius: 0 0 8px 8px;
    }

    .close-button {
        border-radius: 0 0 8px 8px;
    }

    #cart-drawer.show:has(.qtd:not([value="0"])) {
        display: inline-flex;
    }
    .mobile-cart.show {
        position: fixed;
        top: 0;
        width: 100vw;
        left: 0;
        background-color: white;
    }

    .mobile-only {
        display: block;
    }

}

tr:has(.qtd[value="0"]), tr:has(.qtd[value=""]) {
    display: none;
}
#cart-drawer button.dec, button.del {
    background-color: var(--primary-opaque);
    color: #2d2926;
}

#cart-drawer input {
    text-align: center;
    height: 50px;
}

#cart-drawer table tr td:last-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


#cart-drawer table tr button {
    border-radius: 50%;
    width: 30px;
    padding: 5px;
    height: 30px;
}

.info {
    display: flex;
    flex-direction: column;
    padding: 5px 15px;
}

.info label {
    font-size: 13px;
    font-weight: 300;
}
.info input {
    font-size: .875rem;
    overline: none;
    border-radius: 8px;
    border: 1px solid rgb(75, 85, 99);
    line-height: 1.25rem;
}

.del {
    margin-left: 5px;
    width: unset !important;
    border-radius: 12px !important;
}

.submit-cart {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 70px !important;
}

.submit-cart small {
    opacity: 0.8;
}


td {
    margin-bottom: 5px;
}

.product-subtitle {
    font-size: 12px;
    text-align: center;
    width: 100%;
}


.float-button {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 12px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 12px;
    padding: 5px;
    font-weight: 500;
}
