/* ========================================================================================================== */
/* ================================================== General ================================================ */
@font-face {
  font-family: 'poppins-regular';
  src: url('../font/Poppins-Regular.ttf');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'poppins-bold';
  src: url('../font/Poppins-Bold.ttf');
  font-weight: 700;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  outline: none;
  list-style-type: none;
  font-family: poppins-regular;
  line-height: 1.2;
}

.container {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

h5,
h3 {
  font-family: poppins-bold;
}

a {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

.logo-wrap {
  overflow: hidden;
  width: 120px;
}

.logo-wrap img {
  display: block;
  width: 100%;
  object-fit: cover;
}

/* ========================================================================================================== */
/* ================================================== Header ================================================ */

header {
  padding: 20px 0;
  background-color: rgb(122, 0, 0);
}

.header-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
  align-items: center;
}

.header-search #search {
  padding: 8px 16px;
  border: none;
  border-radius: 10px;
}

.header-search #search {
  width: 300px;
  background-color: #f3f3f3;
  transition-property: box-shadow;
  transition-duration: 0.2s;
  transition-timing-function: linear;
}

.header-search #search:focus {
  box-shadow: 0px 0px 10px 0px #ffffff;
}

.admin-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  transition: box-shadow 0.2s ease;
  background-color: #ffffff;
}

.admin-wrap:hover {
  box-shadow: 0px 0px 10px 0px #ffffff;
}

.admin-wrap img {
  display: block;
  width: 100%;
  object-fit: cover;
}

/* ========================================================================================================== */
/* ==================================================== Main ================================================ */

.products {
  padding: 50px;
  color: #000000;
}

.products-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.products-items {
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 1);
  display: flex;
  flex-direction: column;
}

.products-items div:nth-child(2) {
  padding: 15px;

  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px 0;
}

.products-img-wrap {
  overflow: hidden;
}

.products-items img {
  display: block;
  width: 100%;
  object-fit: cover;
  transition: transform 0.2s linear;
}

.products-items img:hover {
  transform: scale(1.05);
}

.products-items p {
  margin-bottom: 10px;
  font-size: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.products-items strong {
  color: #7a0000;
}

.products-name {
  height: 40px;
}

/* ========================================================================================================== */
/* ================================================== Footer ================================================ */

footer {
  padding: 40px 0;
  background-color: rgb(0, 0, 0);
  color: #ffffff;
}

footer a,
footer p {
  font-size: 14px;
}

.footer-top {
  margin-bottom: 40px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  align-items: start;
  justify-items: center;
  gap: 0 40px;
}

.footer-bottom h5 {
  margin-bottom: 15px;
}

.footer-bottom h5::after {
  content: '';
  display: block;
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, var(--theme-color, #7a0000), transparent);
  border-radius: 2px;
  margin-top: 3px;
}

.cols div {
  display: flex;
  flex-direction: column;
  gap: 5px 0;
}
.cols a {
  padding: 5px;
}

.cols a:hover {
  background-color: #7a0000;
}
