html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

body {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('/media/background.jpg') no-repeat center center;
    background-attachment: scroll; 
    background-size: cover;
    background-position: center center;
    color: #0a0a0a;
    font-family: 'Lato', sans-serif;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

footer {
    margin-top: 0;
    padding-top: 50px;
    background-color: #333;
    position: relative; 
    margin-top: auto; 
}

/* Navbar */
.navbar {
    margin-bottom: 0; 
    padding: 0.5rem 1rem; 
    font-size: 0.9rem; 
    height: auto; 
    background-color: #BDBDBD;
}

.navbar a, 
.navbar .nav-link {
    padding: 0.25rem 0.5rem; 
    font-size: 0.85rem; 
}

.navbar-brand {
    font-size: 1rem; 
    padding: 0; 
    margin-right: 1rem;
}

.navbar-toggler {
    padding: 0.3rem 0.3rem; 
}

#delivery-banner {
    margin-top: 0; 
    padding-top: 0; 
}

#delivery-banner h4 {
    height: auto;
    padding: 5px;
    font-size: 14px;
    line-height: 1.2;
}

#delivery-banner h4 i {
    margin-right: 5px !important; 
}

/* Error Page */
.error-page-wrapper {
    height: 100%;
    width: 80%;
    margin: auto;
    padding: 2rem;
}

/* Icon */
.icon {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    height: 1.5rem;
    width: 1.5rem;
}

.logo-font {
    text-transform: uppercase;
    font-weight:600;
    margin-top: 2rem; 
}

.main-logo-link {
    width: fit-content;
}

.shop-now-button {
    background: black;
    color: white;
    min-width: 260px;
}

.btn-black {
    background: black;
    color: white;
}

.btn-outline-black:hover,
.btn-outline-black:active,
.btn-outline-black:focus {
    background: black;
    color: white !important;
}

.shop-now-button:hover,
.shop-now-button:active,
.shop-now-button:focus,
.btn-black:hover,
.btn-black:active,
.btn-black:focus {
    background: #222;
    color: white;
}

.text-black {
    color: #000 !important;
}

.text-white {
    color: #fff !important;
}

.border-black {
    border: 1px solid black !important;
}

.bg-black {
    background: #000 !important;
}

.overlay {
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    position: fixed;
    background: rgb(207, 203, 203);
    z-index: -1;
}

a.category-badge > span.badge:hover {
    background: #212529 !important;
    color: #fff !important;
}

.btt-button {
    height: 42px;
    width: 42px;
    position: fixed;
    bottom: 10px;
    right: 10px;
}

.btt-link,
.update-link,
.remove-item {
    cursor: pointer;
}

.bg-footer {
    background-color: #BDBDBD !important;
}

.fab {
    color: #222 !important;
}


input[name='q']::placeholder {
    color: #aab7c4;
}

.favorite-icon button {
    background: none;
    border: none;
    cursor: pointer;
}

.favorite-icon i {
    transition: color 0.3s ease, transform 0.2s ease;
}

.favorite-icon i:hover {
    transform: scale(1.2);
}

form input, form textarea {
    background-color: #555;
    color: white;
    border: 1px solid #777;
}

/* ------------------------------- bootstrap toasts */

.message-container {
    position: fixed;
    top: 72px;
    right: 15px;
    z-index: 99999999999;
}

.custom-toast {
    overflow: visible;
}

.toast-capper {
    height: 2px;
}

/* from CSS-tricks.com: https://css-tricks.com/snippets/css/css-triangle/ */
.arrow-up {
    width: 0; 
    height: 0; 
    border-left: 4px solid transparent;
    border-right: 4px solid transparent; 
    border-bottom: 10px solid black;
    position: absolute;
    top: -10px;
    right: 36px;
}

/* Main container of the card */
.review-card {
    background-color: #333;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    color: #fff;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-card textarea {
    height: 150px;
    width: 100%;
}

/* Username */
.username {
    font-size: 14px;
    font-weight: bold;
}

/* Review date */
.date {
    font-size: 12px;
    color: #bbb;
}

/* Separator line */
hr {
    border: none;
    border-top: 1px solid #555;
    margin: 8px 0;
}

/* Review title */
.title {
    font-size: 18px;
    font-weight: bold;
}

/* Review content */
.content {
    font-size: 14px;
    line-height: 1.4;
}

/* Rating and buttons section */
.review-rating {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Rating details */
.rating-details {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Rating text */
.rating-text {
    font-size: 14px;
    font-weight: bold;
}

/* Stars */
.stars i {
    color: #ffc107;
    font-size: 18px;
}

/* Action buttons */
.action-buttons {
    display: flex;
    gap: 8px;
}

/* Edit button */
.action-buttons .btn-edit {
    background-color: #ffc107;
    color: #000;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    transition: opacity 0.3s ease;
}

/* Delete button */
.action-buttons .btn-delete {
    background-color: #f44336;
    color: #fff;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    transition: opacity 0.3s ease;
}

/* Hover effect for buttons */
.action-buttons a:hover {
    opacity: 0.8;
}

/* Convenience classes - colors copied from Bootstrap */
.arrow-primary {
    border-bottom-color: #8a8c8d !important;
}

.arrow-secondary {
    border-bottom-color: #6c757d !important;
}

.arrow-success {
    border-bottom-color: #636463 !important;
}

.arrow-danger {
    border-bottom-color: #dc3545 !important;
}

.arrow-warning {
    border-bottom-color: #ffc107 !important;
}

.arrow-info {
    border-bottom-color: #17a2b8 !important;
}

.arrow-light {
    border-bottom-color: #f8f9fa !important;
}

.arrow-dark {
    border-bottom-color: #343a40 !important;
}

.bag-notification-wrapper {
    height: 100px;
    overflow-x: hidden;
    overflow-y: auto;
}

/* -------------------------------- Media Queries */

/* Slightly larger container on xl screens */
@media (min-width: 1200px) {
  .container {
    max-width: 80%;
  }
}

/* Allauth form formatting */
.allauth-form-inner-content p {
    margin-top: 1.5rem;
    color: #6c757d;
}

.allauth-form-inner-content input {
    border-color: #000;
    border-radius: 0;
}

.allauth-form-inner-content label:not([for='id_remember']) {
    display: none;
}

.allauth-form-inner-content input::placeholder {
    color: #aab7c4;
}

.allauth-form-inner-content button,
.allauth-form-inner-content input[type='submit'] {
    /* btn */
    display: inline-block;
    font-weight: 400;
    color: #fff;
    text-align: center;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-color: #000;
    border: 1px solid #000;
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0;

    /* standard bootstrap btn transitions */
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.allauth-form-inner-content button:hover,
.allauth-form-inner-content input[type='submit']:hover {    
    color: #fff;
    background-color: #222;
    border-color: #222;
}

.allauth-form-inner-content a {
    color: #17a2b8;
}

/* Product Form */
.btn-file {
    position: relative;
    overflow: hidden;
}

.btn-file input[type="file"] {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    opacity: 0;
    cursor: pointer;
}

.custom-checkbox .custom-control-label::before {
    border-radius: 0;
    border-color: #dc3545;
}

.custom-checkbox .custom-control-input:checked~.custom-control-label::before {
    background-color: #dc3545;
    border-color: #dc3545;
    border-radius: 0;
}

/* fixed top navbar only on medium and up */
@media (min-width: 992px) {
    .fixed-top-desktop-only {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: 1030;
    }

    .header-container {
        padding-top: 164px;
    }
}

/* pad the top a bit when navbar is collapsed on mobile */
@media (max-width: 991px) {
    .header-container {
        padding-top: 116px;
    }

    body {
        height: calc(100vh - 116px);
    }

    .display-4.logo-font.text-black {
        font-size: 2rem;
    }

    .nav-link {
        padding: 0.15rem;
    }

    .nav-link i.fa-lg {
        font-size: 1rem;
    }

    .navbar-toggler {
        padding: .6rem .6rem;
        font-size: 1rem;
    }

    #delivery-banner h4 {
        font-size: .9rem;
    }

    .btn.btn-outline-black.rounded-0,
    .btn.btn-black.rounded-0 {
        padding: .375rem .375rem;
    }

    .btn.btn-outline-black.rounded-0.btn-lg,
    .btn.btn-black.rounded-0.btn-lg {
        padding: .375rem .375rem;
        font-size: .75rem;
    }

   
}

@media (max-width: 767px) {
    body {
        background-attachment: scroll;
    }

    footer {
        padding-top: 30px; 
    }
}

@media (max-width: 600px) {
    footer {
        position: relative;
        margin-top: 0;
    }

    body {
        background-attachment: scroll;
        height: auto;
    }
}   

@media (min-width: 768px) and (max-width: 1024px) {
    footer {
        position: relative;
        padding-top: 60px;
    }
}

@media (max-width: 1024px) {
    body {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        background-size: cover;
        min-height: 100vh;
    }
}

@media (max-width: 320px) {
    body {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        background-size: contain;
    }

    footer {
        padding-top: 10px;
        padding-bottom: 0;
    }
}

@media (min-width: 1024px) and (max-width: 1366px) and (orientation: portrait) {
    body {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .main-content {
        flex: 1;
    }

    footer {
        position: relative;
        bottom: 0;
        width: 100%;
        margin-top: auto;
    }
}