/* CSS Document */

/* ── Base ── */
body {
  background-color: #3C3C3C;
  font-family: Bahnschrift, sans-serif;
  color: white;
  font-weight: 200;
  font-size: 0.99em;
}

/* ── Headings ── */
h1 {
  font-family: Roboto, sans-serif;
  color: white;
  font-weight: 220;
  font-size: 3em;
  font-variant: small-caps;
  text-shadow: 3px 3px 12px #080808;
}

h2 {
  font-family: Roboto, sans-serif;
  color: white;
  font-weight: 10;
  font-size: 1.11em;
  text-shadow: 3px 3px 12px #080808;
}

h3 {
  font-family: Bahnschrift, sans-serif;
  color: white;
  font-weight: 10;
  font-size: 1em;
}

h4 {
  font-family: Bahnschrift, sans-serif;
  color: white;
  font-weight: 10;
  font-size: 0.8em;
}

/* ── Links ── */
a:link,
a:visited {
  color: black;
  font-weight: 300;
  text-decoration: none;
  font-size: 0.99em;
}

a:hover {
  border-color: #F49600;
}

a.one:link,
a.one:visited {
  color: white;
  font-weight: 300;
  text-decoration: none;
  font-size: 0.99em;
}

a.one:hover {
  text-decoration: underline;
}

/* ── Navigation ── */
ul.topnav {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #333;
  display: flex;
  align-items: center;
}

ul.topnav li {
  display: flex;
  align-items: center;
}

ul.topnav li a {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

ul.topnav li a:hover:not(.active) {
  background-color: #F49600;
}

ul.topnav li a.active {
  color: black;
  background-color: #F49600;
}

ul.topnav li.right {
  margin-left: auto;
}

ul.topnav li.search-nav {
  margin-left: 0;
}

@media screen and (max-width: 600px) {
  .nav-text {
    display: none;
  }
  ul.topnav li a {
    padding: 14px 10px;
  }
}

/* ── Header ── */
.header {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  color: white;
  box-shadow: 0 5px 8px rgba(0, 0, 0, 0.12), 0 5px 8px rgba(0, 0, 0, 0.24);
  text-align: right;
  padding: 20px 5%;
  font-family: Roboto, sans-serif;
  margin: auto;
  max-width: 1920px;
  height: 350px;
}

/* ── Search box (in topnav) ── */
li.search-nav {
  display: flex;
  align-items: center;
  padding: 7px 12px;
  box-sizing: border-box;
  cursor: pointer;
}

li.search-nav #searchIcon {
  color: white;
  font-size: 1em;
  cursor: pointer;
  padding: 4px;
}

li.search-nav #searchIcon:hover {
  color: #F49600;
}

li.search-nav input {
  width: 0;
  padding: 0;
  font-size: 0.9em;
  font-family: Bahnschrift, sans-serif;
  border: none;
  border-bottom: 2px solid transparent;
  background-color: transparent;
  color: white;
  outline: none;
  transition: width 0.3s, padding 0.3s, border-color 0.3s;
  box-sizing: border-box;
  overflow: hidden;
}

li.search-nav input.open {
  width: 160px;
  padding: 4px 8px;
  border-bottom: 2px solid #F49600;
}

li.search-nav input::placeholder {
  color: #aaa;
}

@media screen and (max-width: 600px) {
  ul.topnav {
    flex-wrap: nowrap;
  }
  li.search-nav input.open {
    width: 80px;
  }
  li.search-nav {
    padding: 7px 8px;
  }
}

.no-results {
  display: none;
  text-align: center;
  padding: 30px;
  font-size: 18px;
  color: #ccc;
  width: 100%;
}

/* ── Product cards ── */
.bc {
  background-color: #ffffe6;
  border: 1px solid black;
  border-radius: 2%;
  text-align: center;
  color: black;
  font-weight: 300;
  font-size: 0.99em;
  margin: auto;
  max-width: 370px;
}

.bc:hover {
  opacity: 0.8;
  background-color: #F49600;
  color: white;
}

/* ── Footer blocks ── */
.bd {
  background-color: #333;
  color: white;
  font-weight: 300;
  font-size: 0.9em;
  text-align: center;
  margin: auto;
  max-width: 920px;
  padding: 20px 5%;
}

#be {
  flex-grow: 2;
  max-width: 920px;
}

#footer {
  line-height: 20px;
  font-family: Bahnschrift, sans-serif;
  background-color: #333;
  color: white;
  opacity: 0.8;
  clear: both;
  text-align: center;
  padding: 20px 5%;
  margin: auto;
  max-width: 1920px;
}

/* ── Flex layout ── */
.flex-container {
  display: flex;
  flex-wrap: wrap;
  background-color: #333;
  justify-content: center;
}

.flex-container > div {
  margin: 1px;
  text-align: center;
  font-family: Bahnschrift, sans-serif;
}

/* ── Images ── */
.img {
  margin: 0 0 -2px 0;
}

.img1 {
  border-width: 1px;
  border-radius: 50%;
  max-width: 50px;
  float: left;
}

.img1:hover {
  opacity: 0.95;
  background-color: green;
}

.img2 {
  border-radius: 2%;
  max-width: 600px;
  overflow: hidden;
}

.img2:hover {
  opacity: 0.8;
  background-color: #F49600;
  border-color: #800000;
}

@media screen and (max-width: 600px) {
  .img2 {
    width: 100%;
    height: auto;
  }
}

.img3 {
  border-radius: 3%;
  max-width: 150px;
}

.img3:hover {
  opacity: 0.7;
  background-color: #F49600;
  border-color: #800000;
}

.img4 {
  border-width: 1px;
  max-width: 50px;
  float: left;
  margin: 2px 2px 2px 2px;
}

/* ── Misc ── */
.hr {
  border: 1px solid #F49600;
}

.clearfix::after {
  content: "";
  clear: both;
  display: table;
}
