@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    /** Fonts */
    --title: 'EB Garamond', serif;
    --main-font: 'Roboto', serif;

    /** Color */
    --background: rgb(245, 245, 220);
    --rusty-red: #DA2C43;
    --rust: #B7410E;
    --white: #fff;
    --off-white: #f6f6f6;
    --black: #000;
    --blue: #304674;

    /* Utils */
    --small-box-shadow: 1px -1px 8px 0 #000000;
    --border: 1px solid #00000030;

}
html {
    height: 100%;
}

body {
    min-height:400px;
    margin-bottom: 100px;
    background-color: var(--background);
    color: var(--black);
    font-family: var(--main-font);
    display: flex;
    flex-direction: column;
}
p {
    font-family: var(--main-font);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--title);
}
/** Header */
header {
    width: 100vw;
}
.logo {
    width: fit-content;
}
.btn-rust {
    background-color: #C1551F;
    border-color: #C1551F;
    color: #ffffff;
    box-shadow: var(--small-box-shadow)
}
.btn-rust:hover,
.btn-rust:focus {
    background-color: #9B4318;
    border-color: #9B4318;
}
.text-white {
    color: var(--white);
}
.bg-blue {
    background-color: var(--blue);
}
.form-text,
.helptext {
    color: #222222 !important;
}


/** Mobile-Header */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}


/** Account styles */
#acc {
    color: var(--rust);
}
#acc:hover {
    color: var(--blue);
    font-weight: bold;
}
#mob-acc {
    color: var(--rust);
}
#mob-acc:hover {
    color: var(--blue);
    font-weight: bold;
}
.text-acc {
    color: var(--rust);
}
.text-blue {
    color: var(--blue);
    font-family: var(--title);
}
#search {
    color: var(--rust);
}

#bag {
    color: var(--rust);
}
#bag:hover {
    color: var(--blue);
    font-weight: bold;
}
#mob-bag {
    color: var(--rust);
}
#mob-bag:hover {
    color: var(--blue);
    font-weight: bold;
}
.text-val {
    color: var(--rust);
}
.dropdown-item {
    color: var(--rust);
}
.dropdown-item:hover {
    color: var(--blue);
    font-weight: bold;
}
.text-rust {
    color: var(--rust);
    font-family: var(--title);
    font-weight: bold;
}
#main-nav li a {
    color: var(--rust);
    font-family: var(--title);
    font-size: medium;
}
#main-nav li a:hover {
    text-decoration: underline;
    color: var(--blue);
    font-weight: bold;
}
.active {
    font-weight: 500;
    border-bottom: var(--blue);

}
.btn-outline-black {
    background: white;
    color: black;
    border: 1px solid black;
}
.btn-outline-black:hover {
    background: var(--rust);
    color: white;
}
.btn-black {
    background: black;
    color: white;
}
.btn-black:hover {
    background: var(--rust);
}

/* Form */
.form {
    width: 100%;
    margin: 3% auto;
    box-shadow: var(--small-box-shadow);
    border-radius: 5px;
}

/** Body */
.overlay {
    height: 100%;
	width: 100%;
	top: 0;
	left: 0;
	position: fixed;
	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;
}
.update-link,
.remove-item {
    cursor: pointer;
}

/* Product page */
.product-card-img {
    width: 100%;
    aspect-ratio: 4 / 3;   /* or 1 / 1, 3 / 4, whatever fits your design */
    object-fit: cover;
}
.product-category-link {
    color: #2b2b2b; /* dark color */
}
.product-category-link:hover,
.product-category-link:focus {
    color: #b3541e;
}
.sr-only { /* added for screan readers to improve accesbility */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/** General links css  to improve accessibility */
.text-muted {
    color: #555555;
}
a.product-category-link,
a.footer-link {
    color: #004085;   /* dark blue – high contrast on light background */
}
a.auth-link {
    color: #8b2c03;          /* darker than the rust colour */
    font-weight: 600;
}

a.auth-link:hover,
a.auth-link:focus {
    color: #5b1c02;
    text-decoration: underline;
}
.helptext,
.form-text,
.text-muted {
    color: #333333 !important;   /* darker grey for better contrast */
}

/* ------------------------------- bootstrap toasts */

.message-container {
    position: fixed;
    top: 72px;
    right: 15px;
    z-index: 99999999999;
}

.custom-toast {
    overflow: visible;
}

.toast-capper {
    height: 2px;
}
/** Contact */
.text-contact {
    text-align: center;
    color: var(--blue);
}

/** Footer */
footer {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    border-top: var(--border);
}


.bg-brand-blue {
    background-color: var(--blue);
}
.btn-beige {
    background: var(--background);
    color: var(--blue);
    box-shadow: var(--small-box-shadow);
}
.newsletter-form {
    align-content: center;
}


/* Header icon colours (desktop + mobile) */

header .fas,
header .fa-solid,
header .far,
header .fa-regular {
    color: var(--rust) !important;
}

/* Hover / focus: blue icons */
header .fas:hover,
header .fas:focus,
header .fa-solid:hover,
header .fa-solid:focus,
header .far:hover,
header .far:focus,
header .fa-regular:hover,
header .fa-regular:focus {
    color: var(--blue) !important;
}


/* -------------------------------- Media Queries */

/* Slightly larger container on xl screens */
@media (min-width: 1200px) {
  .container {
    max-width: 80%;
  }

    .header-container {
        padding-top: 164px;
    }
}
/*Media query for small screens */
/* Home Page */
@media (min-width: 576px) and (max-width:770px) {
    #icon {
        color: var(--rust);
    }
}
/* 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);
    }
}