/*!
 * Bootstrap v4.4.1 (https://getbootstrap.com/)
 * Copyright 2011-2019 The Bootstrap Authors
 * Copyright 2011-2019 Twitter, Inc.
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
 */

/* Import Bootstrap core styles - Using CDN link instead */
@import url('https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css');

/********** Custom Variables ************/
:root {
  --primary: #FFD333;
  --secondary: #F5F5F5;
  --light: #FFFFFF;
  --dark: #3D464D;
  --body-color: #6C757D;
}

/********** Typography ************/
.h1, h2, h3 {
  font-weight: 700 !important;
}

.h4, h5, h6 {
  font-weight: 500 !important;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--secondary);
  color: var(--body-color);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  color: var(--dark);
}

/********** Spacing Utilities ************/
.mb-30 {
  margin-bottom: 30px;
}

.pb-30 {
  padding-bottom: 30px;
}

.p-30 {
  padding: 30px;
}

/********** Buttons ************/
.btn.btn-primary {
  color: var(--dark) !important;
}

.btn-square {
  width: 40px;
  height: 40px;
}

.btn-sm-square {
  width: 30px;
  height: 30px;
}

.btn-lg-square {
  width: 50px;
  height: 50px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/********** Navbar ************/
.navbar-dark .navbar-nav .nav-link {
  padding: 20px 10px;
  color: var(--secondary);
  outline: none;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--primary);
}

@media (max-width: 991.98px) {
  .navbar-dark .navbar-nav .nav-link {
    padding: 5px 0px;
  }
}

.navbar-vertical.navbar-light .navbar-nav .nav-link {
  padding: 8px 30px;
  border-bottom: 1px solid var(--secondary);
}

.navbar-light .dropdown-toggle::after,
.navbar-dark .dropdown-toggle::after {
  display: none;
}

/********** Carousel ************/
#header-carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-indicators li {
  width: 15px;
  height: 15px;
  margin: 0 3px 12px 3px;
  background: transparent;
  border: 1px solid #FFFFFF;
  transition: 0.5s;
}

.carousel-indicators .active {
  width: 30px;
  background: #FFFFFF;
}

.carousel-caption {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(61, 70, 77, 0.5);
  z-index: 1;
}

/********** Section Title ************/
.section-title::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0;
  top: 50%;
  left: 0;
  border-top: 1px dashed #b8bec3;
  z-index: -1;
}

/********** Product Offer ************/
.product-offer {
  position: relative;
  overflow: hidden;
}

.product-offer img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.product-offer:hover img {
  transform: scale(1.2) rotate(5deg);
}

.product-offer .offer-text {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(61, 70, 77, 0.5);
  z-index: 1;
}

/********** Category Item ************/
.cat-item {
  background: var(--light);
  transition: 0.5s;
}

.cat-item:hover {
  background: var(--primary);
}

.cat-item img {
  transition: 0.5s;
}

.cat-item:hover img {
  transform: scale(1.2) rotate(5deg);
}

/********** Product Item ************/
.product-item {
  transition: 0.5s;
}

.product-action {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.5s;
}

.product-action a.btn {
  position: relative;
  margin: 0 3px;
  margin-top: 100px;
  opacity: 0;
}

.product-item:hover {
  box-shadow: 0 0 30px #DDDDDD;
}

.product-item:hover .product-action {
  background: rgba(256, 256, 256, 0.7);
}

.product-item:hover .product-action a.btn:first-child {
  opacity: 1;
  margin-top: 0;
  transition: 0.3s 0s;
}

.product-item:hover .product-action a.btn:nth-child(2) {
  opacity: 1;
  margin-top: 0;
  transition: 0.3s 0.05s;
}

.product-item:hover .product-action a.btn:nth-child(3) {
  opacity: 1;
  margin-top: 0;
  transition: 0.3s 0.1s;
}

.product-item:hover .product-action a.btn:nth-child(4) {
  opacity: 1;
  margin-top: 0;
  transition: 0.3s 0.15s;
}

.product-item .product-img img {
  transition: 0.5s;
}

.product-item:hover .product-img img {
  transform: scale(1.2);
}

.product-item .btn:hover {
  color: var(--primary) !important;
}

/********** Table ************/
.table.table-borderless thead tr,
.table.table-borderless tbody tr:not(:last-child) {
  border-bottom: 15px solid var(--secondary);
}

/********** Contact Form ************/
.contact-form .help-block ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

/********** Back to Top Button ************/
.back-to-top {
  position: fixed;
  display: none;
  right: 30px;
  bottom: 30px;
  z-index: 11;
  -webkit-animation: action 1s infinite alternate;
  animation: action 1s infinite alternate;
}

@-webkit-keyframes action {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-15px);
  }
}

@keyframes action {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-15px);
  }
}

/********** Search Bar Enhancements ************/
.search-bar {
  background: white;
  border: 2px solid #e0e0e0 !important;
  transition: all 0.3s ease;
}

.search-bar:focus-within {
  border-color: #ffd333 !important;
  box-shadow: 0 0 0 0.2rem rgba(255, 211, 51, 0.25);
}

.search-divider {
  width: 1px;
  height: 30px;
  background-color: #e0e0e0;
  margin: auto 0;
}

.rounded-pill-left {
  border-radius: 50rem 0 0 50rem !important;
}

.rounded-pill-right {
  border-radius: 0 50rem 50rem 0 !important;
}
