.imagecontour {
  padding: 10px;
  border: solid 1px #EFEFEF;
  background-color: #FFFFFF;
}

.effect2 {
  position: relative;
}

.effect2:before,
.effect2:after {
  z-index: -1;
  position: absolute;
  content: "";
  bottom: 15px;
  left: 10px;
  width: 50%;
  top: 80%;
  max-width: 300px;
  background: #777;
  box-shadow: 0 15px 10px #777;
  transform: rotate(-3deg);
}

.effect2:after {
  transform: rotate(3deg);
  right: 10px;
  left: auto;
}

/* Fix product detail layout after removing review section */
.c-product-meta>.c-content-title-1 {
  width: 100%;
  margin-bottom: 20px;
}

.c-product-meta>.c-content-title-1::after {
  content: "";
  display: table;
  clear: both;
}

/* Custom product badges styling */
.c-product-meta>.c-product-badge-custom {
  display: flex;
  gap: 5px;
  margin-bottom: 20px;
}

.c-product-badge-custom .badge-sale,
.c-product-badge-custom .badge-new {
  display: inline-block;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  color: #ffffff;
}

.c-product-badge-custom .badge-sale {
  background-color: #eb5d68;
}

.c-product-badge-custom .badge-new {
  background-color: #32c5d2;
}

.c-product-meta>.c-product-category {
  margin-bottom: 15px;
  font-size: 18px;
  color: #666;
}

.c-product-meta>.c-product-price {
  clear: both;
  margin-bottom: 20px;
}

/* Product tabs content styling */
.product-description,
.product-specs .spec-item {
  padding: 30px;
  background-color: #f5f5f5;
  border-radius: 6px;
  line-height: 1.8;
  color: #555;
  font-size: 15px;
}

.product-description p {
  margin-bottom: 15px;
}

.product-description ul,
.product-description ol {
  margin-left: 20px;
  margin-bottom: 15px;
}

.product-description li {
  margin-bottom: 8px;
}

.product-specs {
  padding: 20px 0;
}

.product-specs .spec-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.product-specs .spec-content {
  color: #666;
  line-height: 1.8;
}

/* Mobile Menu Fullscreen Overlay */
.tbm.tbm--mobile .tbm-collapse {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 9999 !important;
  overflow-y: auto !important;
  padding: 80px 0 20px 0 !important;
}

/* Keep hamburger button visible on top */
.tbm.tbm--mobile .tbm-button {
  position: relative;
  z-index: 10000 !important;
  border: none !important;
  background-color: #394048 !important;
}

.tbm.tbm--mobile .tbm-button .tbm-button-container span {
  background-color: #fff !important;
}

/* When menu is open, match button background to menu background */
.tbm.tbm--mobile .tbm-button[aria-expanded="true"] {
  background-color: #fff !important;
}

.tbm.tbm--mobile .tbm-button[aria-expanded="true"] .tbm-button-container span {
  background-color: #394048 !important;
}

/* Make menu items more visible in fullscreen mode */
.tbm.tbm--mobile .tbm-nav {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
}

.tbm.tbm--mobile .tbm-item.level-1 {
  width: 100% !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.tbm.tbm--mobile .tbm-link.level-1 {
  padding: 20px 30px !important;
  font-size: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

/* Move breadcrumb to the left of page title */
.c-breadcrumbs-wrapper .container {
  display: flex !important;
  flex-direction: row !important;
  justify-content: flex-start !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
}

.c-breadcrumbs-wrapper .c-page-title {
  float: none !important;
  order: 2 !important;
  margin: 0 !important;
}

.c-breadcrumbs-wrapper .c-page-title.c-pull-left {
  float: none !important;
}

.c-breadcrumbs-wrapper nav[role="navigation"] {
  float: none !important;
  order: 1 !important;
  margin: 0 !important;
}

.c-breadcrumbs-wrapper .c-page-breadcrumbs {
  float: none !important;
  margin: 0 !important;
}

.c-breadcrumbs-wrapper .c-page-breadcrumbs.c-pull-right {
  float: none !important;
}

.c-breadcrumbs-wrapper .c-page-breadcrumbs>li {
  padding: 8px 4px !important;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .c-breadcrumbs-wrapper .container {
    flex-direction: row !important;
    align-items: center !important;
  }

  .c-breadcrumbs-wrapper .c-page-title {
    order: 2 !important;
  }

  .c-breadcrumbs-wrapper .c-page-title h3 {
    font-size: 16px !important;
    margin: 0 !important;
  }

  .c-breadcrumbs-wrapper nav[role="navigation"] {
    order: 1 !important;
  }

  .c-breadcrumbs-wrapper .c-page-breadcrumbs>li {
    font-size: 16px !important;
    padding: 4px 2px !important;
  }
}

@media (max-width: 480px) {
  .c-breadcrumbs-wrapper .container {
    gap: 10px !important;
  }

  .c-breadcrumbs-wrapper .c-page-title h3 {
    font-size: 14px !important;
  }

  .c-breadcrumbs-wrapper .c-page-breadcrumbs>li,
  .c-breadcrumbs-wrapper .c-page-breadcrumbs>li>a {
    font-size: 14px !important;
  }
}

/* Services We Do - Mobile/Tablet: Image on top, text below */
@media (max-width: 991px) {
  .c-content-tile-1>.row {
    display: flex !important;
    flex-direction: column !important;
  }

  .c-content-tile-1>.row>.col-sm-6 {
    width: 100% !important;
  }

  /* Image container always first (on top) */
  .c-content-tile-1>.row>.col-sm-6:has(.c-content-overlay) {
    order: 1 !important;
  }

  /* Text container always second (below) */
  .c-content-tile-1>.row>.col-sm-6:has(.c-content-v-center) {
    order: 2 !important;
  }

  /* Fix arrow direction - always point down to text below */
  .c-content-tile-1 .c-tile-content.c-arrow-left:after,
  .c-content-tile-1 .c-tile-content.c-arrow-right:after {
    left: calc(50% - 13px) !important;
    right: auto !important;
    top: auto !important;
    bottom: 0 !important;
    border-top-color: transparent !important;
    border-left-color: transparent !important;
    border-right-color: transparent !important;
    border-bottom-color: #ffffff !important;
  }
}

/* Blog teaser-list - Fixed height cards */
.c-content-blog-post-card-1 {
  height: 450px;
  overflow: hidden;
}

.c-content-blog-post-card-1 .c-media {
  height: 200px;
  overflow: hidden;
}

.c-content-blog-post-card-1 .c-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-content-blog-post-card-1 .c-body {
  min-height: 250px;
}

/* Blog cards RWD */
@media (max-width: 991px) {
  .c-content-blog-post-card-1 {
    height: 420px;
    margin: 32px 0;
  }

  .c-content-blog-post-card-1 .c-media {
    height: 180px;
  }

  .c-content-blog-post-card-1 .c-body {
    min-height: 240px;
  }
}

@media (max-width: 767px) {
  .c-content-blog-post-card-1 {
    height: auto;
    max-height: 500px;
  }

  .c-content-blog-post-card-1 .c-media {
    height: 200px;
  }

  .c-content-blog-post-card-1 .c-body {
    min-height: auto;
    padding-bottom: 20px;
  }
}

/* Product teaser - Fixed height cards */
.c-content-product-2 {
  height: 400px;
  display: flex;
  flex-direction: column;
}

.c-content-product-2 .c-content-overlay {
  flex: 1;
  min-height: 270px;
}

.c-content-product-2 .c-info {
  height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.c-content-product-2 .c-info .c-title {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Product cards RWD */
@media (max-width: 991px) {
  .c-content-product-2 {
    height: 380px;
  }

  .c-content-product-2 .c-content-overlay {
    min-height: 250px;
  }

  .c-content-product-2 .c-info {
    height: 90px;
  }
}

@media (max-width: 767px) {
  .c-content-product-2 {
    height: 360px;
  }

  .c-content-product-2 .c-content-overlay {
    min-height: 230px;
  }
}

@media (max-width: 480px) {
  .c-content-product-2 {
    height: 340px;
  }

  .c-content-product-2 .c-content-overlay {
    min-height: 210px;
  }

  .c-content-product-2 .c-info {
    height: 80px;
  }

  .c-content-product-2 .c-info .c-title {
    font-size: 14px;
  }
}

/* Services We Do Page - Mobile: Image always on top */
@media (max-width: 991px) {
  .c-content-feature-14>.container>.row {
    display: flex !important;
    flex-direction: column !important;
  }

  .c-content-feature-14 .service-image {
    order: 1 !important;
    width: 100% !important;
    margin-bottom: 30px;
  }

  .c-content-feature-14 .service-content {
    order: 2 !important;
    width: 100% !important;
  }
}