@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

:root {
    --primary-color: #FF6A5C;
    --secondary-color: #056571;
}



*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;

    text-decoration: none;
    list-style-type: none;
    border:none;
}

html, body {
    min-height: 100vh;
}

body {
    font-family: 'Roboto', sans-serif;

    background-color: #f9f9f9;
}

.container {
    width: 90;
    max-width: 940px;
    margin: 0 auto;
}


footer {
    margin-top: auto
}

.button {
    background-color: var(--primary-color);
    color: white;
    
    display: block;
    margin: 16px 0;
    padding: 12px 16px;

    width: 100%;
    border-radius: 4px;

    /* para colocar o botao para baixo */
    align-self: end;

    font-weight: bold;
    text-transform: uppercase;
    font-size: 16px;
    text-align: center;

    cursor: pointer;

    transition: all 0.2s;
}

.button:hover {
    background-color: #d7780b
}

.button.edit {
    background-color: var(--secondary-color);
}

.button.delete {
    background-color: lightgray;
}

.button.edit:hover {
    background-color: #065ac1;
}

.button.delete:hover {
    background-color: rgb(223, 62, 62);
}




/* HEADER */
header, footer {
    background-color: #414141;
    color: #CCDFCB;

    width: 100%;
    padding: 32px 0;

    text-align: center;
}

header div.container {
    display: grid;
    grid-template-columns: 220px auto 280px;
    align-items: center;
    grid-gap:24px;
}

header div.container a {
    justify-self: start;
}

/* LOGO */
.logo h1 {
    color: #CCDFCB;
    font-size: 36px;
    line-height: 46px;
}

.logo h2 {
    color: var(--primary-color);
    font-size: 28px;
    line-height: 16px;
    letter-spacing: 2px;
}

/* HEADER SEARCH */

.search input {
    width: 100%;
    padding: 8px 16px;
    border-radius: 2px;
    font-size: 16px;
}

/* PRIMARY MENU*/
nav.primary ul {
    display: flex;
    justify-content: space-between;
}

nav.primary ul li a{
    display: flex; 
    align-items: center; 
    color: #F4F4F4;
    transition: 300ms;
    font-size: 10px;
    margin: 2px;
    font-weight: bold;
}

nav.primary ul li a i{margin-right: 8px;}

nav.primary ul li a:hover {color: #CCDFCB;}

/* footer-copyrigth */
footer a{color: #F4F4F4;}
footer a:hover {
    color: #CCDFCB;
}

/* CREATE PRODUCTS FORM */
section form {
    background-color: white;

    padding: 32px 24px;
    margin: 32px auto;

    box-shadow: 2px 2px 2px -4px rgba(60, 60, 60 , .9);
    border: 1px solid #efefef;
    border-radius: 4px;

    max-width: 700px;
    width: 90%;
}

section.form .header h3 {
    font-size: 14px;
    line-height: 24px;
    letter-spacing: 0.7px;
    text-transform: uppercase;

    font-weight: bold;
    color: var(--primary-color);

    margin-bottom: 16px;
}

form .item {
    margin-bottom: 16px;
}

form .item > div:nth-child(1) {
    color: #777;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: bold;

    margin-bottom: 8px;
}

form .item input[type="text"],
form .item input[type="number"],
form .item textarea,
form .item select {
    width: 100%;

    padding: 8px 16px;

    box-shadow: 2px 2px -5px  rgba(63,63,63,.9);

    border: 1px solid #efefef;
    border-radius:  4px;

    font-size: 16px;
}

form .item select {
    /* permitir estilizacao no select */
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;

    /* trazer de volta o icone lateral */
    background-color: #fff;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E'),
      linear-gradient(to bottom, #ffffff 0%,#e5e5e5 100%);
    background-repeat: no-repeat;
    background-position: right .7em top 50%, 0 0;
    background-size: .65em auto, 100%;
}

form .item textarea {
    min-height: 150px;
}

form .fields {
    margin-bottom: 64px;
}

form .item span {
    padding: 8px 16px;
    background-color: var(--primary-color);
    border-radius: 16px;
    color: white;
    margin-right: 4px;
    margin-top: 8px;
    display: inline-block;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
}

/* PHOTOS UPLOAD */
form .item #photos-upload {
    position: relative;

    display: block;
    overflow: hidden;

    width: 200px;
}

form .item #photos-upload p { 
    padding: 8px 16px;
    border-radius: 4px;
    box-shadow: 0 2px 2px -6px #333;
    background-color: var(--secondary-color);
    color: white;

    width: 100%;
    text-align: center;

    text-transform: uppercase;
    font-size: 14px;
}

form .item #photos-input {
    position: absolute;
    top: 0;
    left: 0;

    display: block;
    overflow: hidden;
    width: 100%;
    height: 100%;
    opacity: 0;

    cursor: pointer;
}

form .item #photos-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 8px;
    width: 100%;
    margin: 8px 0;
}

form .item #photos-preview img {
    width: 100%;
    height: 150px;

    object-fit: cover;
}

#photos-preview .photo {
    position: relative;
}

#photos-preview .photo i {
    position: absolute;
    top: 0;
    left: 0;

    background: rgba(255,255,255,0.8);
    color:red;

    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 500%;
    cursor: pointer;

    transition: opacity 200ms;

    opacity: 0;
}

#photos-preview .photo:hover i {
    opacity: 1;
}

/* PRODUCT VIEW */
.product-single {
    background-color: white;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 24px;

    padding: 32px 24px;
    margin: 32px auto;

    box-shadow: 2px 2px 2px -4px rgba(63,63,63,.9);

    border: 1px solid #efefef;
    border-radius: 4px;

}
/* product single gallery */
.product-single .gallery {
    width: 100%;
}

.product-single .highlight > img {
    width: 100%;
    height: 280px;

    object-fit: none;
    object-position: 50% 50%;
    border: 1px solid #efefef;

    cursor: zoom-in;

}

.product-single .gallery-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 2px
}

.product-single .gallery-preview img {
    height: 100px;
    width: 100%;

    object-fit:cover;

    opacity: 0.6;

    cursor: pointer;

    transition: 200ms;
}

.product-single .gallery-preview img:hover,
.product-single .gallery-preview img.active{
    opacity: 1;
}

/* lightbox product gallery */
.product-single .highlight .lightbox-target {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba( 0,0,0, .7);

    overflow: hidden;
    z-index: 100;

    top: -100%;
    left: 0;
    opacity: 0;

    transition: opacity 400ms;
}

.product-single .highlight .lightbox-target img {
    margin: auto;

    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;

    background-color: white;
    box-shadow: 0px 0px 8px rgba(0,0,0,.3);

    width: 90%;
    height: 90%;

    object-fit: contain;
}

.product-single .highlight a.lightbox-close {
    width:50px;
    height:50px;

    background: white;

    position: absolute;
    top: -80px;
    right: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: 400ms;
}

/* product single info */
.product-single .info {
    display: grid;
    grid-template-rows: auto 40px 2fr 1fr;
}

.product-single .info h1 {
    font-size: 32px;
    line-height: 42px;
    color: #333;
    text-transform: uppercase;
}
.product-single .info .published {
    color: #888;
    font-size: 12px;
    line-height: 22px;
    letter-spacing: 0.4px;
}

/* price-buy */
.product-single .price-buy {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-top: 8px;
    border-top: 1px solid #eee;
}

.product-single .price-buy .price {
    font-size: 24px;
    color: #333;
    font-weight: bold;

    display: flex;
    align-items: center;
}

.product-single .price-buy .price .old {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
    font-weight: normal;
    margin-left:8px;
}

.product-single .price-buy .buy button {
    background-color: var(--secondary-color);

    font-size: 14px;
    letter-spacing: .4px;
}

/* SHOP */
.shop h2{
    margin: 48px 0;
}

.shop .items {
    display:grid;
    grid-template-columns: 1fr 1fr 1fr;

    grid-gap: 32px;
}

.shop .product {
    display: grid;
}

.shop .product .image {
    padding-top: 56.25%;

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.shop .items h4 {
    margin: 8px 0;
    font-weight: 300;
    color: #999;
}

.shop .items p {
    color: #101010;
    font-weight: 300;
    font-size: 24px;
    margin-top: 8px;
}

.shop .product .old-price {
    padding: 0;
    margin: 4px 0;

    font-size: 14px;
    color: #999;

    text-decoration: line-through;
}

/* SEARCH PAGE */
.search-products {
    display: grid;
    grid-template-columns: 200px 1fr;

    margin-top: 48px;
}

.search-products .header {
    margin-bottom: 48px;

    font-size: 14px;
    color: #333;
}

.search-products .header h2{
    font-size: 26px;
    text-transform: capitalize;

    margin-bottom: 8px;
}

.search-products nav h4 {
    margin-bottom: 16px;

    color: #333;
    font-size:14px;
    text-transform: uppercase;
}

.search-products nav ul li{
    margin: 4px 0;

}

.search-products nav ul li a{
    color: #777;
}

.search-products nav ul li a:hover{
    color: black;
    font-weight: bold;
}

.cardzinho {
    max-width: 80%;
    background-color: #fff;
    
    
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.shop-item-title {
    font-weight: 500;
    color: #444;
    margin-top: 3px;
    text-transform: capitalize;
}


.shop-item-title .small{
    margin-right: 10px;
    font-size: 2rem;
    color: #333;
    line-height: 1;
}




.shop-item-image {
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.);
    transition: .5s;
    height: 100px;
    
}



.shop-item-details {
    padding: 0 0 10px 0;
}

.shop-item-price {
    color: #056571;
    display: flex;
    align-items: flex-start;
}

.shop-item-price h1{
    font-size: 2.1rem;
    font-weight: 600;
    line-height: 1;
    font-size: 1.4rem;
    margin-right: 1px;
}

.shop-items {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;

}

.shop-item-button {
    padding: .7rem 1rem;
    background-color:#FF6A5C;
    text-decoration: none;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    font-size: 14px;
    transition: .5s;
}

.shop-item-button:hover{
    transform: scale(1.1);
}

.cart-header {
    font-weight: bold;
    font-size: 1.25em;
    color: #333;
}

.cart-column {
    display: flex;
    align-items: center;
    border-bottom: 1px solid black;
    margin-right: 1.5em;
    padding-bottom: 10px;
    margin-top: 10px;
}

.cart-row {
    display: flex;
}

.cart-item {
    width: 45%;
}

.cart-price {
    width: 20%;
    font-size: 1.2em;
    color: #333;
}

.cart-quantity {
    width: 35%;
}

.cart-item-title {
    color: #333;
    margin-left: .5em;
    font-size: 1.2em;
}

.cart-item-image {
    width: 75px;
    height: auto;
    border-radius: 10px;
}

.btn-danger {
    color: white;
    background-color: #EB5757;
    border: none;
    border-radius: .3em;
    font-weight: bold;
}

.btn-danger:hover {
    background-color: #CC4C4C;
}

.cart-quantity-input {
    height: 34px;
    width: 50px;
    border-radius: 5px;
    border: 1px solid #56CCF2;
    background-color: #eee;
    color: #333;
    padding: 0;
    text-align: center;
    font-size: 1.2em;
    margin-right: 25px;
}

.cart-row:last-child {
    border-bottom: 1px solid black;
}

.cart-row:last-child .cart-column {
    border: none;
}

.cart-total {
    text-align: end;
    margin-top: 10px;
    margin-right: 10px;
}

.cart-total-title {
    font-weight: bold;
    font-size: 1.5em;
    color: black;
    margin-right: 20px;
}

.cart-total-price {
    color: #333;
    font-size: 1.1em;
}


.btn-purchase {
    display: block;
    margin: 40px auto 80px auto;
    font-size: 16px;
    color: white;
    background: #FF6A5C;
    margin-right: 2px;
    padding: .7rem 1rem;
    letter-spacing: 1px;
    border-radius: 10px;
    transition: .5s;
}

.btn-purchase button{
    
    color: #8cbd8e;
    transition: color 300ms;
    

}












.container-content-section {
    justify-content: center;
    min-height: 54vh;
    
    
    
    
    margin: 22px;
    bottom: 20px;
}


.cards {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    bottom: 20p0x;
}

.card {
    background-color:  white;
    display: grid;
    cursor: pointer;
}


