/* Outfit
Light 300
Regular 400
Medium 500
SemiBold 600
*/

/************************************************ Elements ************************************************/
* {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Outfit', sans-serif;
    color: #4f4e4e;
    background-color: #f4f2f2;
}

h1 {
    font-size: 80px;
}

h2 {
    font-size: 48px;
    color: #474125;
}

h3 {
    font-size: 32px;
    color: #474125;
}

h5 {
    font-size: 20px;
}

p {
    font-size: 16px;
    font-weight: 300;
}

a {
    color: #4f4e4e;
    text-decoration: none;
    font-weight: 300;
}

a:hover {
    color: #c1a18f;
}

footer {
    margin-top: auto;
    width: 100%;
    padding: 50px 0 20px 0;
    background-color: #474125;
}

footer p, footer a {
    color: white;
}

footer img {
    filter: brightness(0) invert(1);
}

section {
    margin-bottom: 7%;
}

i:hover {
    color: #c1a18f;
}

th, td {
    color: #4f4e4e;
}

select::after {
    color: #4f4e4e;
}

/************************************************ IDs ************************************************/
#cart {
    position: relative;
    margin-bottom: 0;
}

#register-form, #login-form {
    margin: 5% 0;
}

#product-table_filter, #order-table_filter, #order-details-table_filter {
    display: none;
}

#checkout {
    margin-top: 3%;
}

section#favourites-list {
    margin-bottom: 2%;
}

/************************************************ Classes ************************************************/
/****************************** Homepage ********************************/
.hide {
    display: none;
}

.brand-logo {
    width: 100px;
}

.nav-item {
    margin: auto 15px;
}

.navbar-nav:hover .nav-link:hover {
    color: #c1a18f;
}

.navbar-light .navbar-nav .nav-link:focus, .navbar-light .navbar-nav .nav-link:hover {
    color: rgba(0,0,0,.55);
}

.navbar-light .navbar-nav .nav-link.active, .navbar-light .navbar-nav .show > .nav-link, .bi-person.active {
    color: #c1a18f;
}

.navbar-light .navbar-toggler {
    border-color: rgb(0, 0, 0, 0);
}

i.bi-bag {
    position: relative;
}

.item-added {
    position: absolute;
    top: 5px;
    right: -3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #c1a18f;
}

.main-masthead {
    width: 100%;
    padding: 220px 0;
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(180deg, rgba(193, 161, 143), rgba(219, 189, 170));
}

.main-masthead > h1, .main-masthead > p {
    position: relative;
    color: white;
}

.main-masthead > p {
    font-size: 18px;
}

.masthead-img > img {
    position: absolute;
}

.masthead-img > img {
    width: 950px;
    top: -30%;
    right: 0%;
}

.title-component {
    margin-bottom: 50px;
}

.content-margin {
    margin: 0 7%;
}

.category-container {
    display: flex;
    justify-content: space-between;
}

.category-card {
    cursor: pointer;
    height: 400px;
    overflow: hidden;
    background-color: #c1a18f;
    position: relative;
}

.category-title {
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
}

.gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(360deg, rgb(0, 0, 0, 0.4), rgb(0, 0, 0, 0));
}

.category-listing {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn {
    width: 200px;
    padding: 10px 0;
    margin: 15px 0;
    border: 1px solid grey;
    color: grey;
    border-radius: 0;
}

.btn-light {
    border-color: white;
    background-color: transparent;
    color: white;
    display: none;
    margin: 10px auto;
}

.left-banner > img {
    width: 93%;
    height: 500px;
    object-fit: cover;
}

.left-title-component {
    margin: auto 0;
}

.top-row {
    margin-bottom: 30px;
}

.social-icons, .social-links {
    text-align: right;
}

.social-icons {
    display: flex;
    justify-content: space-between;
}

.social-links > a:hover {
    color: white;
}

.social-links > a {
    margin-left: 70px;
}

.social-icons > a > i {
    color: white;
}

/****************************** Cart ********************************/
.offcanvas-end {
    width: 480px;
    border-left: 0;
    transition: transform .4s ease-out;
    background-color: #f4f2f2;
    padding: 16px 30px;
}

.offcanvas-header, .offcanvas-body, .cart-total {
    padding: 0;
}

.offcanvas-header {
    padding-bottom: 16px;
}

.offcanvas-body {
    height: 100%;
    padding: 16px 0;
    overflow-x: hidden;
    overflow-y: scroll;
}

.modal-backdrop {
    background-color: lightgrey;
}

.cart-product{
    margin-bottom: 70px;
}

.cart-product:last-child{
    margin-bottom: 0;
}

.cart-no-item {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.cart-prod-img {
    height: 120px;
    overflow: hidden;
}

.cart-prod-img > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-qty {
    margin-bottom: 15px;
}

.cart-qty > p {
    margin-bottom: 5px;
}


.qty-counter > form > .btn {
    font-size: 24px;
    padding: 0;
}

.qty-counter > form > .btn, .qty-counter > form > input {
    display: inline;
    padding: 0px 5px;
    border-color: lightgrey;
    width: 40px;
    height: 40px;
    margin: 0;
    line-height: 30px;
    border-radius: 0;
}

.qty-counter > form > input {
    width: 80px;
}

.cart-prod-price {
    text-align: right;
    margin-bottom: 20px;
}

.cart-total > .btn {
    width: 100%;
}

.cart-total-price {
    text-align: right;
}

.cart-remove-btn > span {
    color: grey;
}

.content-align-top {
    display: flex;
    align-items: flex-start;
}

.cart-total-body {
    display: flex;
    justify-content: space-between;
}

h5.cart-total-price {
    margin-bottom: 0;
}

/****************************** Shop ********************************/
.btn:disabled {
    opacity: .35;
}

.card-component {
    padding: 0 30px;
    border: none;
    background-color: transparent;
    position: relative;
}

.no-stocks {
    position: absolute;
    background-color: #474125;
}

.no-stocks > p {
    margin: 0px;
    padding: 10px 30px;
    color: white;
}

.card-img-top {
    height: 350px;
    overflow: hidden;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 0;
}

.card-body {
    text-align: center;
    margin: 10px 0 20px 0;
    padding: 0;
}

.card-text {
    font-weight: 300;
}

.like-product {
    position: absolute;
    right: 0;
    margin: 15px 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
}

.bi-heart, .bi-heart-fill {
    color: #c1a18f;
}

button.heart-icon {
    color: inherit;
    background-color: transparent;
    border: none;
}

.btn-add-to-cart{
    margin: 25px 0;
}

.btn:hover, .btn:active {
    background-color: #c1a18f;
    color: white;
    border-color: transparent;
    box-shadow: none;
}

.btn:focus {
    box-shadow: none;
}

.shop-content-margin {
    margin-left: 20%;
}

.shop-card {
    margin-bottom: 30px;
}

.title-spacing {
    margin: 50px 0;
}

.shop-filter {
    margin: 20px 0 50px 0;
}

.form-select.filter-category {
    width: 30%;
}

.dropdown {
    display: flex;
    justify-content: space-around;
}

.dropdown-menu {
    box-shadow: 1px 1px 10px rgba(0,0,0,0.2);
    border: none;
}

.dropdown-item {
    padding: 15px 20px;
}

.dropdown-item:hover {
    background-color: #ede6e2;
}

.dropdown-toggle::after {
    margin-left: 8px;
    vertical-align: 2px;
}

.form-select {
    background-color: transparent;
}

.selected {
    background-color: rgba(193, 161, 143, 0.5);
}

/****************************** Login & Register ********************************/
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active  {
    -webkit-box-shadow: 0 0 0 30px #f4f2f2 inset;
    box-shadow: 0 0 0 30px #f4f2f2 inset;
    transition: background-color 5000s ease-in-out 0s;
}
.form-control::placeholder, .form-select::placeholder {
    color: lightgrey;
}

.hide {
    display: none;
}

.login-page-bg {
    height: 100%;
    padding: 3% 0;
    background-image: url(../img/background-login.jpg);
    background-position: center;
    background-size: cover;
}

.register-page-bg {
    height: 100%;
    padding: 3% 0;
    background-image: url(../img/background-register.jpg);
    background-position: center;
    background-size: cover;
}

.form-bg {
    height: 100%;
    padding: 40px;
    background-color:#ffffff;
    margin: 0 auto;
}

.btn-form {
    width: 100%;
}

form > div > i {
    margin-right: 5px; 
    color: grey;
}

.bi.bi-envelope {
    vertical-align: -1.5px;
}

.bi.bi-key {
    vertical-align: sub;
}

.form-label, .form-check-label {
    color: grey;
}

.form-control {
    background-color: transparent;
}

.form-select {
    width: 100%;
}

.form-label:focus, .form-control:focus, .form-control:active, .form-select:focus, .form-select:active  {
    color: inherit;
    outline: none;
    border-color: #c1a18f;
    box-shadow: none;
}

.form-check-input:focus {
    border-color: #ced4da;
    box-shadow: none;
}

.form-check-input:checked {
    background-color: #c1a18f;
    border-color: #c1a18f;
    box-shadow: none;
}

span {
    color: #c1a18f;
    text-decoration: underline;
}

/****************************** Admin ********************************/
.table>:not(caption)>*>* {
    padding: 15px 30px;
}

.table > tbody {
    vertical-align:middle;
}

.table {
    --bs-table-striped-bg:  rgba(193, 161, 143, 0.1);
    --bs-table-hover-bg: rgba(193, 161, 143, 0.3);
    border-color: rgba(193, 161, 143, 0.2);
}

.content-align-middle {
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-right {
    display: block;
    text-align: right;
    color: inherit;
    text-decoration: underline;
}

.search-input {
    border-radius: 50px;
    padding: 0px 30px;
    height: 50px;
    background-color: white;
}

.search-input::placeholder {
    font-family: 'Bootstrap-icons', 'Outfit';
}

.btn-addprod {
    text-align: right;
}

.paginate_button {
    margin-left: 20px;
}

.dataTables_length > label > select {
    margin: 0 5px;
    margin-bottom: 20px;
}

.current {
    color: #c1a18f;
}

.dataTables_info, .dataTables_paginate {
    display: inline-block;
}

.dataTables_paginate {
    float: right;
}

.swal2-styled.swal2-confirm, .swal2-styled.swal2-cancel {
    width: 150px;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.swal2-popup { 
    -webkit-border-radius: 0 !important; 
    -moz-border-radius: 0 !important; 
    border-radius: 0 !important; 
}

.paginate_button {
    cursor: pointer;
}

/****************************** Edit Product ********************************/
.content-align-start {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

/****************************** Checkout ********************************/
.checkout-content-margin {
    margin: 0 12%;
}

.checkout-logo, .checkout-title {
    padding: 0 40px;
}

.checkout-bg {
    background-color: white;
    padding: 40px;
}

.cart-summary {
    height: 100vh;
    background-color: white;
    padding-top: 5%;
}

a.checkout-logo > img {
    margin-top: 5%;
    margin-bottom: 40px;
}

.line-spacing {
    margin: 35px 0;
}

.name-container {
    display: flex;
    justify-content: space-between;
}

.first-name, .last-name {
    width: 48%;
}

.checkout-offcanvas-body {
    height: 500px;
}

.cart-summary .title-component {
    margin-bottom: 20px;
}

/****************************** User Profile ********************************/
#order-table > tbody > tr > th, #order-details-table > tbody > tr > th {
    font-weight: normal;
}

.underline {
    text-decoration: underline;
}

.order-history > .table > :not(:last-child) > :last-child > * {
    border-bottom-color: rgb(79, 78, 78, 0.25);
}

/****************************** Order History ********************************/
#order-details-table > thead > tr > th:first-child {
    width: 150px;
}

#order-details-table > thead > tr > th:nth-child(2) {
    width: 500px;
}

#order-details-table > tbody > tr {
    border-color: transparent;
}

.img-test {
    width: 150px;
    height: 150px;
    object-fit: cover;
    object-position: 50% 50%;
}

.subtotal-table {
    display: flex;
    justify-content: space-between;
}

/****************************** Thank you ********************************/
.order-placed {
    padding: 120px 0;
    margin: auto 0;
}

.bi-check-circle {
    font-size: 90px;
    color: #c1a18f;
    margin-bottom: 10px;
    display: block;
}

/************************************************ MEDIA QUERY ************************************************/
@media (max-width: 992px) {
    .left-banner > img {
        width: 100%;
    }

    .left-title-component {
        margin-top: 30px;
    }
    
    .gradient {
        display: block;
    }

    .category-title {
        display: block;
    }

    .shop-card {
        margin-bottom: 20px;
    }

    .table > :not(caption) > * > * {
        padding: 15px 30px;
    }

    .edit-delete > a > i:last-child {
        display: block;
        margin-top: 20px;
    }

    .cart-summary {
        height: 500px;
    }

    .checkout-offcanvas-body {
        height: 320px;
    }

    .dataTables_length {
        margin-top: 50px;
    }
    
    footer {
        text-align: center;
    }

    .social-icons, .social-links {
        text-align: center;
        margin: 0 auto;
        margin-top: 30px;
    }

    .social-links > a {
        margin-left: 0;
    }

    .social-links {
        display: flex;
        justify-content: space-between;
    }
}


@media (max-width: 768px) {
    .btn-right {
        margin-top: 0px;
        text-align: left;
    }

    .btn {
        width: 100%;
    }

    .btn-light {
        width: 200px;
    }

    .btn-link {
        margin-top: 30px;
        text-align: center;
    }

    .qty-counter > .content-align-middle {
        display: flex;
    }

    .content-align-middle, .content-align-start {
        display: block;
    }

    .cart-title-spacing.content-align-middle, .cart-total-body.content-align-middle  {
        display: flex;
    }

    .name-container {
        display: block;
    }

    .first-name, .last-name {
        width: 100%;
    }
}