/* Global */
:root {
    --green: #00674B;
    --white: #f8f8f8;
    --black: #272727;
}

html {
    /* border-box box model allows us to add padding and border to our elements without increasing their size */
    box-sizing: border-box;
}

* {
    box-sizing: inherit;
}


/* BODY */
body {
    letter-spacing: -1px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

/* HEADER */
header {
    background-color: var(--green);
    height: 100px;
    padding-top: 10px;
}

header .container {
    width: 80%;
    margin: 0 auto;
    overflow: hidden;
}

/* Logo */
header .container .menu .logo {
    color: var(--white);
    font-size: 50px;
    font-weight: 700;
    text-decoration: none;
}

/* Navigation */
.menu nav {
    float: right;
}

.menu nav ul {
    float: left;
    list-style: none;
    margin: 0;
    width: fit-content;
}

.menu nav ul li {
    display: block;
    float: left;
    list-style: none;
    padding: 0 10px;
}

.nav-links {
    margin-top: 30px;
}

.menu nav ul li a {
    text-decoration: none;
    color: var(--white);
    font-size: 16px;
    text-transform: uppercase;
}

/* Search Bar */
header .container .menu nav .form {
    margin-top: 15px;
}

header .container .menu nav form input[type=text] {
    background-image: url("../imgs/3-512.png");
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: 4px 7px;
    padding: 8px 10px 8px 25px;
    border-radius: 27px;
    margin-top: 8px;
    margin-bottom: 8px;
    outline: none;
    width: 160px;
    transition: width 0.3s ease-in-out;
    -webkit-transition: width 0.3s ease-in-out;
    -moz-transition: width 0.3s ease-in-out;
    -ms-transition: width 0.3s ease-in-out;
    -o-transition: width 0.3s ease-in-out;
}

header .container .menu nav form input[type=text]:focus {
    width: 250px;
}

/* ADD/EDIT SECTION */
#tech .container {
    width: 80%;
    margin: auto;
    overflow: hidden;
}

.product-image {
    float: left;
    width: 20%;
}

.product-details {
    float: left;
    width: 27%;
}

.product-price {
    float: left;
    width: 12%;
}

.product-quantity {
    float: left;
    width: 10%;
}

.item-complete {
    float: left;
    width: 12%;
}


.item-removal {
    float: left;
    width: 9%;
}

.product-line-price {
    float: left;
    width: 12%;
    text-align: right;
}

/* Using the traditional clearfix */
.group:before,
.product-cart:before,
.column-labels:before,
.product:before,
.group:after,
.product-cart:after,
.column-labels:after,
.product:after {
    content: '';
    display: table;
}

.group:after,
.product-cart:after,
.column-labels:after,
.product:after {
    clear: both;
}

.group,
.product-cart,
.column-labels,
.product {
    zoom: 1;
}


/* Apply kenyan shillings */
.product .product-price:before,
.product .product-line-price:before {
    content: 'Kshs.';
}

h1 {
    font-weight: 100;
}

label {
    color: #aaa;
}

.product-cart {
    margin-top: -45px;
}

/* Column headers */
.column-labels label {
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.column-labels .product-image,
.column-labels .product-details,
.column-labels .item-removal {
    text-indent: -9999px;
}

/* Product entries */
.product {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.product .product-image {
    text-align: center;
}

.product .product-image img {
    width: 100px;
}

.product .product-details .product-title {
    margin-right: 20px;
    letter-spacing: 0.5;
    font-size: 20px;
}

.product .product-details .product-description {
    margin: 5px 20px 5px 0;
    line-height: 1.4em;
}

.product .product-quantity input {
    width: 40px;
}

.product .remove-item {
    border: 0;
    padding: 4px 8px;
    background-color: red;
    color: #fff;
    font-size: 12px;
    border-radius: 3px;
}

.product .remove-item:hover {
    background-color: darkred;
}

.product .complete-item {
    border: 0;
    padding: 4px 8px;
    background-color: lightgreen;
    color: var(--white);
    font-size: 12px;
    border-radius: 3px;
}

.product .complete-item:hover {
    background-color: darkgreen;
}



/* FOOTER */

footer {
    background-color: var(--green);
    color: var(--white);
}

footer .container {
    padding: 40px;
}

.address {
    font-size: 1rem;
    letter-spacing: 1px;
    list-style: none;
    line-height: 30px;
}

ul .copyright {
    font-size: 17px;
    font-weight: bold;
    text-transform: uppercase;
}

@media only screen and (min-width: 768px) {
    footer .more-info {
        padding-left: 200px;
    }
}

@media only screen and (min-width: 1000px) {
    footer .more-info {
        padding-left: 300px;
    }
}

@media only screen and (min-width: 1440px) {
    footer .more-info {
        padding-left: 520px;
    }
}