*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
}

.navbar {
    display: flex;
    align-items: center;
    padding: 20px;
}

nav {
    flex: 1;
    text-align: right;
}

nav ul {
    display: inline-block;
    list-style-type: none;
}

nav ul li {
    display: inline-block;
    margin-right: 20px;
    font-family: "Montserrat", Helvetica, Arial, sans-serif
}

nav ul li:hover {
    font-weight: bold;
}

nav ul li input {
    width: 150px;
    height: 30px;
    border: none;
    text-align: center;
    font-family: "Montserrat", Helvetica, Arial, sans-serif;
    font-weight: bold;
}

nav ul li input:active {
    border: 2px solid hsl(49, 90%, 41%);
}


a{
    text-decoration: none;
    color: #555;
}

p {
    color: #555;
}

.container {
    max-width: 1300px;
    margin: auto;
    padding-left: 25px;
    padding-right: 25px;
}

.row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-around;
}

.col-2 {
    flex-basis: 50%;
    min-width: 300px;
}

.col-2 img {
    max-width: 100%;
    padding: 50px 0; /*padding was 50px on tutorial*/
}

.col-2 h1 {
    font-size: 50px;
    line-height: 60px;
    margin: 25px 0;
}

.btn {
    display: inline-block;
    background: #f8ce0a;
    color: #fff;
    padding: 8px 30px;
    margin: 30px 0;
    border-radius: 30px;
    transition: background 0.5s;
    height: 40px;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
    font-family: 'Roboto', sans-serif;
}

.btn:hover {
    background: #937c10;
}

.header {
    background: radial-gradient( #fff, #f8e06e);
}

.header .row {
    margin-top: 20px; /* magin-top was 70px on tutorial */
}


.col-3 {
    flex-basis: 30%;
    min-width: 250px;
    margin-bottom: 30px;
}

.col-3 img {
    width: 100%;
    border-radius: 10%;
}

.small-container {
    max-width: 1080px;
    margin: auto;
    padding-left: 25px;
    padding-right: 25px;
}

.col-4 {
    flex-basis: 25%;
    padding: 10px;
    min-width: 200px;
    margin-bottom: 50px;
    transition: transform 0.5s;
    opacity: 50%;
}

.col-4 img {
    width: 100%;  
}

.title {
    text-align: center;
    margin: 0 auto 30px;
    position: relative;
    line-height: 40px;
    color: #555;
}

.title::after {
    content: '';
    background: #f8ce0a;
    width: 80px;
    height: 5px;
    border-radius: 5px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

h4 {
    color: #555;
    font-weight: normal;
}

.col-4 p {
    font-size: 14px;
}

.rating .fa{
    color: #f8ce0a
}

.offer {
    background: radial-gradient(#fff, #d4b62a);
    margin-top: 10px;
    padding: 10px 0;
}

.col-2 .offer-img {
    padding: 50px;
}

.small {
    color: #555;
}

.testimonial {
    padding-top: 20px;
}

.testimonial .col-3 {
    text-align: center;
    padding: 40px 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 1);
    cursor: pointer;
    transition: transform 0.5s;
}

.testimonial .col-3 img {
    width: 50px;
    margin-top: 20px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.testimonial .col-3:hover {
    transform: translateY(-10px);
}

.fa.fa-quote-left {
    font-size: 34px;
    color: #f8ce0a;
}

.col-3 p {
    font-size: 12px;
    margin: 12px 0;
    color: #777;
}

.testimonial .col-3 h3 {
    font-weight: 600;
    color: #555;
    font-size: 16px;
}

.footer {
    background: #000;
    color: #8a8a8a;
    font-size: 14px;
    padding: 60px 0 20px;
}

.footer p{
    color: #8a8a8a;
}

.footer h3{
    color: #fff;
    margin-bottom: 20px;
}

.footer-col-1, .footer-col-2, .footer-col-3, .footer-col-4 {
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-col-1 {
    flex-basis: 30%;
}

.footer-col-2 {
    flex: 1;
    text-align: center;
}

.footer-col-2 img {
    width: 180px;
    margin-bottom: 20px;
}

.footer-col-3, .footer-col-4 {
    flex-basis: 12%;
    text-align: justify;
}

ul {
    list-style-type: none;
}

.footer-col-3 ul li a:hover {
    color: #f8ce0a;
}

.footer-col-4 ul li a:hover {
    color: #f8ce0a;
}

.app-logo {
    margin-top: 20px;
}

.app-logo img {
    width: 140px;
}

.footer hr {
    border: none;
    background: #b5b5b5;
    height: 1px;
}

.copyright {
    text-align: center;
}

.menu-icon {
    width: 28px;
    margin-left: 20px;
    display: none;
}

/*------ All Products ------*/
.row-2 {
    justify-content: space-between;
    margin: 100px auto 50px;
}

select {
    border: 1px solid #f8ce0a;
    padding: 5px;
}

select:focus {
    outline: none;
}

.page-btn {
    margin: 0 auto 80px;
}

.page-btn span {
    display: inline-block;
    border: 1px solid #f8ce0a;
    margin-left: 10px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    cursor: pointer;
    text-align: center;
    border-radius: 20px;
    font-size: 12px;
}

.page-btn span:hover {
    background: #f8ce0a;
    color: #fff;
}

/*------ Single product details ------*/

.single-product {
    margin-top: 80px;
}

.single-product .col-2 img {
    padding: 0;
}

.single-product .col-2 {
    padding: 20px;
}

.single-product h4 {
    margin: 10px 0;
    font-size: 22px;
    font-weight: bold;
}

.single-product h1 {
    margin: 5px 0;
    font-size: 50px;
    font-weight: bold;
}

.single-product select {
    display: block;
    padding: 10px;
    margin-top: 5px;
    width: 120px;
}

.single-product input {
    width: 70px;
    height: 30px;
    padding-left: 10px;
    font-size: 14px;
    margin-right: 10px;
    border: 1px solid #f8ce0a;
    font-weight: bold;
}

.input:focus {
    outline: none;
}

.addtocart-btn {
    display: inline-block;
    background: #f8ce0a;;
    color: #fff;
    padding: 8px 30px;
    margin: 30px 0;
    border-radius: 30px;
    transition: background 0.5s;
    border: none;
}

.addtocart-btn:hover {
    background: #937c10;
}

.addtocart-btn:focus {
    outline: none;
}

.small-img-row {
    display: flex;
    justify-content: space-between;
}

.small-img-col {
    flex-basis: 24%;
    cursor: pointer;
    margin-top: 5px;
}

.small-img-col:hover {
    border: 2px solid #555;
}

/*------ Account page ----*/

.account-page {
    padding: 50px;
    background: radial-gradient(#fff, #d4b62a);  
}

.form-container {
    background: #fff;
    width: 500px;
    height: 350px;
    position: relative;
    text-align: center;
    padding: 10px 0;
    margin: auto;
    box-shadow: 0 0 20px 0px rgba(0,0,0,0.1);
    overflow: hidden;
}

.form-container span {
    font-weight: bold;
    padding: 0 10px;
    color: #5555;
    cursor: pointer;
    width: 100px;
    display: inline-block;
}

.form-btn {
    display: inline-block;
}

.form-container form {
    max-width: 300px;
    padding: 0 20px;
    top: 130px;
    position: absolute;
    transition: transform 1s;
}

form input{
    width: 100%;
    height: 40px;
    margin: 10px 0;
    padding: 0 10px;
    border: 2px solid #333;
    font-weight: bold;
    font-family: "Montserrat", Helvetica, Arial, sans-serif
}

form .btn{
    width: 100%;
    border: none;
    cursor: pointer;
    margin: 10px 0;
}

form .btn:focus {
    outline: none;
}

form a {
    font-size: 12px;
}

form textarea {
    width: 100%;
    height: 100px;
    border: 2px solid #333;
    font-weight: bold;
    font-family: "Montserrat", Helvetica, Arial, sans-serif
}

#LoginForm {
    left: -300px;
}

#SignupForm {
    left: 0;
}

#Indicator {
    width: 100px;
    border: none;
    background: #ff523b;
    height: 3px;
    margin-top: 8px;
    transform: translateX(100px);
    transition: transform 1s;
}

/* --- Cart Items --- */

.cart-page {
    margin: 80px auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

.cart-info {
    display: flex;
    flex-wrap: wrap;
}

th {
    text-align: left;
    padding: 5px;
    color: #fff;
    background: #f8ce0a;
    font-weight: normal;
}

td {
    padding: 10px 5px;
}

td input{
   width: 40px; 
   height: 30px;
   padding: 5px;
}

td a {
    color: #f8ce0a;
    font-size: 12px;
}

td img {
    width: 80px;
    height: 80px;
    margin-right: 10px;
}

.total-price {
    display: flex;
    justify-content: flex-end;  
}

.total-price table {
    border-top: 3px solid #f8ce0a;
    width: 100%;
    max-width: 400px;
}

td:last-child {
    text-align: right;
}

th:last-child {
    text-align: right;
}

/*------ Shipping page ------*/

.col-2 .shipping-input {
    width: 170px;
    height: 40px;
    text-align: left;
    font-weight: bold;
    color: #555;
}

.btn2 {
    display: inline-block;
    background: #f8ce0a;
    color: #fff;
    padding: 8px 30px;
    margin: 30px 0;
    border-radius: 30px;
    transition: background 0.5s;
    font-weight: bold;
}

.btn2:hover {
    background: #937c10;
}

#demo {
    color: #fff;
}




/*------ media query for menu ------*/

@media only screen and (max-width: 800px) {

    nav ul {
        position: absolute;
        top: 70px;
        left: 0;
        background: #000;
        width: 100%;
        overflow: hidden;
        transition: max-height 0.5s;
        z-index: 9999;
    }

    nav ul li {
        display: block;
        margin-right: 50px;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    nav ul li a {
        color: #fff;
        width: 100%;
    }

    .menu-icon {
        display: block;
        cursor: pointer;
    }

    .cart-info p {
        display: none;
    }
    

} 

.payment-gateways {  
    height: 60px;
    width: 380px;
    padding: 5px 2px;
    border: 2px solid #fff;
    margin-bottom: 10px;
}

.payment-gateways img {
    height: 40px;
    width: 90px;
    padding-top: 10px;
    padding-bottom: 5px;
}

/*------ media query for less than 600 screen size ------*/

@media only screen and (max-width: 600px) {

    .row {
        text-align: center;
    }

    .col-2, .col-3, .col-4 {
      flex-basis: 100%;  
    }

    .col-4 {
        flex-basis: 50%;   
    }
    
    .footer-col-3, .footer-col-4 {
        text-align: center;
    }

    .single-product .row {
        text-align: left;
    }

    .single-product .col-2 {
        padding: 20px 0;
    }

    .single-product h1 {
        font-size: 26px;
        line-height: 22px;
    }

    .cart-info p {
        display: none;
    }

    .form-container {
        width: 300px;
    }

    .payment-gateways {
        margin: 0 auto;
        margin-bottom: 10px;
        text-align: center;
        width: 90%;
    }

    .payment-gateways img {
        width: 50px;
        height: 40px;
    }
    

    form textarea {
        width: 100%;
        height: 100px;
        border: 2px solid #333;
        font-weight: bold;
        font-family: "Montserrat", Helvetica, Arial, sans-serif
    }

    .col-2 img {
        max-width: 100%;
        padding: 50px 0; /*padding was 50px on tutorial*/
        display: none;
    }
}