* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  height: 2950px;
  font-family: "pt-sans", sans-serif;
}

.container {
  width: 80%;
  margin: auto;
}
.list-unstyled {
  list-style: none;
}
a {
  text-decoration: none;
}

/* Header___________________________________________________________________________________________ */
header {
  padding: 40px 0;
}
.section-header {
  text-align: center;
  margin-bottom: 25px;
}
.section-title {
  font-size: 30px;
  margin-bottom: 10px;
}
.section-header .line {
  display: block;
  width: 100px;
  margin: auto;
  height: 2px;
  background-color: #3d240f;
  transition: width 0.5s;
}
.section-header:hover .line {
  width: 150px;
}
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-content img {
  flex: 1;
  max-width: 150px;
}
.header-content nav {
  flex: 3;
  text-align: center;
}
.header-content .login {
  flex: 1;
  text-align: right;
}
.header-content ul li {
  display: inline-block;
}
.header-content ul li a,
.header-content ul li a {
  color: #3d240f;
}

.header-content nav ul li .link-item {
  position: relative;
  padding: 10px 19px;
  display: block;
  font-weight: bold;
  position: relative;
}

.header-content nav ul li .link-item:before,
.header-content nav ul li .link-item:after {
  content: "";
  position: absolute;
  border-style: solid;
  left: 0;
  top: 0;
  transition: transform 0.2s;
}
.header-content nav ul li .link-item:before {
  border-width: 0 2px;
  height: 100%;
  width: 96%;
  transform: scale3d(1, 0, 1);
}
.header-content nav ul li .link-item:hover:before {
  transform: scale3d(1, 1, 1);
}
.header-content nav ul li .link-item:after {
  border-width: 2px 0;
  height: 91%;
  width: 98%;
  transform: scale3d(0, 1, 1);
  transform-origin: left;
}
.header-content nav ul li .link-item:hover:after {
  transform: scale3d(1, 1, 1);
  transition-delay: 0.2s;
}

.header-content .login ul li {
  padding: 10px;
  font-weight: bold;
}
.header-content .login ul li:last-child i {
  position: relative;
  margin-right: 11px;
}
.header-content .login ul li:last-child i::after {
  position: absolute;
  content: "0";
  background-color: #3d240f;
  color: #fff;
  border-radius: 50%;
  padding: 4px;
  font-size: 13px;
  bottom: -4px;
}

.dropdown {
  position: relative;
}
.dropdown-menu {
  position: absolute;
  width: 450px;
  border: 2px solid #3d240f;
  background-color: #fff;
  padding: 15px;
  margin-top: 5px;
  transform: scale(0);
  transition: transform 0.5s, visibility 0.5s;
  opacity: 0;
  visibility: hidden;
}
.dropdown:hover .dropdown-menu {
  transform: scale(1);
  visibility: visible;
  opacity: 1;
}
.dropdown-menu ul {
  display: table-cell;
  text-align: left;
}
.dropdown-menu ul li:first-child a {
  display: block;
  border-bottom: 1px dotted #3d240f;
  margin-bottom: 10px;
}
.dropdown-menu ul li {
  line-height: 1.7;
}

/* Home________________________________________________________________________________________________ */
/* .home */
.home .container {
  width: 80%;
  margin: auto;
  background-image: url(../images/bakery-bg.png);
  background-size: cover;
  height: 530px;
}
.home div {
  padding-top: 100px;
  padding-left: 30px;
}
.home h2 {
  color: whitesmoke;
  font-size: 40px;
  text-shadow: 2px 2px black;
  padding-bottom: 50px;
}

.home button {
  border: none;
  color: #3d240f;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 22px;
  font-weight: bold;
  margin: 4px 2px;
  border: 1px solid #3d240f;
  cursor: pointer;
}

/* Category______________________________________________________________________________________________ */
.category {
  padding: 40px 0;
}
.category-items {
  display: grid;
  grid-template-columns: auto auto auto auto;
  grid-gap: 10px;
}
.category-items img {
  width: 100%;
  height: 75%;
  margin-bottom: 25px;
}
.category-item-subtitle {
  color: gray;
  font-weight: normal;
}
.category-item-title {
  font-size: 19px;
}

.category-item-description {
  position: relative;
}
.category-item .icon {
  width: 30px;
  height: 30px;
  background-color: #3d240f;
  color: #fff;
  text-align: center;
  display: block;
  line-height: 30px;
  position: absolute;
  bottom: 0;
  right: 0;
  visibility: hidden;
  opacity: 0;
  transition: 0.8s;
  cursor: pointer;
}
.category-item:hover .icon {
  visibility: visible;
  opacity: 1;
}
/* Discount______________________________________________________________________________________________ */
.discount {
  margin: 30px 0;
  display: flex;
}
.discount-desc {
  flex: 2;
  background: #927e733d;
  padding: 20px;
  position: relative;
}
.discount-item {
  flex: 1;
  height: 300px;
  position: relative;
}
.discount-item-info {
  position: absolute;
  top: 20px;
  left: 15px;
}
.discount-item-info h3 {
  font-weight: normal;
  color: #3d240f;
}
.discount-item-info h2 {
  font-size: 20px;
}
.discount-item:nth-child(2) {
  background-image: url(../images/pizza-pic.jpg);
  background-size: cover;
  margin: 0 20px;
  transition: transform 0.5s;
}
.discount-item:nth-child(2):hover {
  transform: scale(1.1);
}
.discount-desc-title {
  position: relative;
  padding-left: 50px;
  margin-bottom: 20px;
}
.discount-desc-title .icon {
  position: absolute;
  left: 0px;
  top: 10px;
  font-size: 50px;
  color: #3d240f;
}
.discount-desc-title + p {
  line-height: 1.7;
}
.discount-desc .bullets span {
  display: inline-block;
  width: 50px;
  height: 2px;
  background: #3d240f;
  margin-left: 10px;
}
.discount-desc .bullets {
  text-align: right;
  position: absolute;
  bottom: 20px;
  right: 10px;
}
.discount-item:nth-child(3) {
  background-image: url(../images/cupcake.jpg);
  background-size: cover;
  transition: transform 0.5s;
}
.discount-item:nth-child(3):hover {
  transform: scale(1.1);
}
/* benefits______________________________________________________________________________________________*/
.benefits {
  display: flex;
  margin-bottom: 55px;
}
.benefits-item {
  flex: 1;
  text-align: center;
  border-right: 1px solid #3d240f;
}
.benefits-item:last-child {
  border: 0;
}
.benefits-info h3 {
  font-size: 17px;
}
.benefits-info span {
  color: gray;
  font-size: 15px;
}
.bficon {
  font-size: 40px;
  margin: 10px;
  color: #3d240f;
}
.bficon:hover {
  transition: 0.9s;
  transform: rotateY(180deg);
}

/* Products______________________________________________________________________________________________ */
.products {
  padding: 40px 0;
}
.list-product {
  display: flex;
  justify-content: center;
}
.list-product li {
  margin: 10px 20px;
}
.products-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 20px;
  margin: 30px 0px;
}
.product-img {
  position: relative;
  width: 100%;
}
.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  transform: scalex(0);
  opacity: 0.9;
  transition: transform 0.2s;
}
.product-overlay ul {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.product-overlay ul li {
  width: 40px;
  height: 40px;
  background-color: #3d240f;
  display: inline-block;
  text-align: center;
}
.product-overlay ul li i {
  color: #fff;
  line-height: 40px;
}
.product-item:hover .product-overlay {
  transform: scalex(1);
}
.product-item i.active {
  color: gold;
}
.product-info span {
  display: block;
  margin: 5px 0;
}
.product-info i {
  margin-top: 10px;
}
