/* General styling */
.clCursorPointer {
  cursor: pointer;
}

.clPadding5px {
  padding: 5px;
}

.clVCenter {
  margin-top: 45px;
}

.clRedGlow {
    text-shadow: 0px 0px 8px #cc0000;
    color: red;
}

.clGreenGlow {
    text-shadow: 0px 0px 8px #00cc00;
    color: green;
}

.clColorRed {
  color: red;
}

.clNoUnderline {
  text-decoration: none;
}

.clMarginTop2 {
  margin-top: 2px;
}

.clMarginTop12 {
  margin-top: 12px;
}

.clMarginBottom2 {
  margin-bottom: 2px;
}

.clMarginBottom12 {
  margin-bottom: 12px;
}

/* DataTables styling override */
.dataTables_filter {
  margin-bottom: 3px;
}

/* Product image styling */
.clProductImage {
  height:100%;
  width:100%;
  object-fit:scale-down;
}

.clProductImageCarousel {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin: 2px;
}

/* Navbar styling */
@media screen and (max-width: 600px) {
  #idNavbarMobile {
    display: block;
  }
  #idNavbarNormal {
    display: none;
  }
}

@media screen and (min-width: 601px) {
  #idNavbarMobile {
    display: none;
  }
  #idNavbarNormal {
    display: block;
  }
}

#idNavbarMobileMenu {
  height: 39px;
  background: #f1f1f1;
}

#idNavbarMobileDropdown {
  width: 100%;
  display: none;
}

#idNavbarMobileBottom table {
  width: 100%;
}

.clHamburger {
  margin-top: 5px;
  margin-right: 5px;
  cursor: pointer;
}

/* Scroll to Top button styling */
#idScrollTop {
  display: none; /* Hidden by default */
  position: fixed; /* Fixed/sticky position */
  bottom: 55px; /* Place the button at the bottom of the page */
  right: 4px; /* Place the button 4px from the right */
  z-index: 99; /* Make sure it does not overlap */
  border: none;
  outline: none;
  background-color: rgba(0, 0, 0, 0.0); /* Transparent background color */
  color: black;
  cursor: pointer;
  padding: 5px;
}

/* Social media bar styling */
#idSocialBar {
  position: fixed;
  bottom: 90px;
  right: 8px;
  padding: 4px 4px 12px 4px;
}

#idSocialBar a {
  display: block;
}

#idSocialBar a:hover {
  background-color: #dddddd;
}

#idSocialBar a:hover {
  background-color: #dddddd;
}

/* Social media icon badge */
.clIconContainer {
  position: relative; /* Position relative for absolute positioning of badge */
  display: inline-block; /* Allows the icon to be inline */
}

.clBadge {
  position: absolute; /* Position the badge */
  top: -2px; /* Adjust vertical position */
  right: -8px; /* Adjust horizontal position */
  background-color: red; /* Badge color */
  color: white; /* Text color */
  border-radius: 50%; /* Make it circular */
  padding: 1px 4px; /* Padding for the badge */
  font-size: 10px; /* Font size of the badge text */
}

/* Pagination bar styling */
.clPagination {
  display: inline-block;
}

.clPagination a {
  color: black;
  float: left;
  padding: 8px 16px;
  text-decoration: none;
  transition: background-color .3s;
  border: 1px solid #ddd;
}

.clPagination a.active {
  background-color: #4CAF50;
  color: white;
  border: 1px solid #4CAF50;
}

/* Sorting bar styling */
.clSorting {
  display: inline-block;
}

.clSorting a {
  color: black;
  float: left;
  padding: 8px 5px;
  text-decoration: none;
  transition: background-color .3s;
}

.clSorting a.active {
  background-color: #4CAF50;
  color: white;
}

/* Flexbox Cards */
/* Thanks to https://codepen.io/drralte/pen/LMrJpb */
.clCards {
  display: flex;
  flex-flow: row wrap;
}

.clCardItem {
  display: flex;
  width: 100%;
  padding: 0.5em;
}

/* ===== == = === 37.5em (600px) === = == ===== */
@media all and (min-width: 37.5em) {
  .clCardItem {
    width: calc(100% / 12 * 6 );
  }
}
/* ===== == = === 56.25em (900px) === = == ===== */
@media all and (min-width: 56.25em) {
  .clCardItem {
    width: calc(100% / 12 * 3 );
  }
}

.clCardBody {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  padding: 0;
  border-radius: 3px;
  box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.clCardBody p {
  flex: 1 0 auto;
  margin: 0;
}

.clCardTitle,
.clCardText,
.clCardFooter {
  padding: 1em 1em 0;
}
.clCardHeader {
  height:76px;
  overflow-y:auto;
}

.clCardFooter {
  margin-bottom: 1em;
}

/* New listing indicator */
.clNew {
  position: relative;
  top: -1em;
  left: -1em;
  padding: 2px;
}

/* Flexbox equal height */
.clColContainer {
  display: flex;
  flex-direction: row;
}

@media (max-width: 800px) {
  .clColContainer {
    flex-direction: column;
  }
}

.clCol {
  flex: 1;
  margin: 8px;
  padding: 8px;
}

/* TikTok styling */
.clTikTokWrapper {
  background: #fff;
  position: relative;
  margin: auto;
  max-width: 325px;
}

.clTikTokWrapper iframe {
  border: 0;
  position: relative;
}
.clTikTokWrapper a {
  color: rgba(0,0,0,0);
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
}

/* YouTube styling */
.clYouTube {
  max-width: 600px;
}
