/*
Template Name: Furnitore - Furniture & Interior Template
Author: Pillarix
Author URI: https://wrapbootstrap.com/user/pillarix
Version: 1.0
*/
/*
-- Body
-- Custom Classes
-- Navbar
-- Blog
-- My Account
-- About
-- Cart Page
-- Filter Sidebar
-- Mobile Media
*/

/* Custom Classes */
a {
  text-decoration: none;
  color: #7f715c;
}
.text-purple {
  color: #a8977b !important;
}
.btn-theme {
  padding: 10px 25px !important;
}
.btn-purple {
  background-color: #a8977b;
  color: #ffffff;
  border: 1px solid #a8977b;
}
.btn-purple:hover,
.btn-purple:focus,
.btn-outline-purple:hover {
  background-color: #7f715c;
  color: #ffffff;
  border: 1px solid #7f715c;
}
.btn-outline-purple {
  color: #7f715c;
  border: 1px solid #7f715c;
}
.nav-pills.purple-tab .nav-link.active,
.nav-pills.purple-tab .show > .nav-link {
  background-color: #a8977b;
}
.bg-purple {
  background-color: #a8977b;
}
.purple-tab .nav-link {
  color: #a8977b;
}
.border-primary {
  border-color: #a8977b !important;
}
.form-check-input:checked {
  background-color: #a8977b;
  border-color: #a8977b;
}
.breadcrumb.bg-dark .breadcrumb-item + .breadcrumb-item::before {
  color: rgb(204 204 204 / 23%);
}
.bg-opacity-purple {
  background: rgb(139 61 255 / 8%);
}

/* Navbar */
.osahan-header-logo .logo {
  height: 30px;
}
.osahan-main-nav.fixed-top {
  background-color: #f9f8f8 !important;
}
.elements-top-header a.nav-link {
  padding-top: 30px !important;
  padding-bottom: 30px !important;
  color: #090909 !important;
}
.my-account-nav a.nav-link {
  padding-top: 30px !important;
  padding-bottom: 30px !important;
}

/* Blog */
.svg-border-rounded svg {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 60px;
  width: 100%;
}
.sticky-sidebar {
  position: sticky;
  top: 20px;
}
.bg-primary.rounded-circle.admin-icon img {
  height: 28px;
  width: 28px;
  object-fit: cover;
}
.bg-primary.rounded-circle.admin-icon {
  background: transparent !important;
}
.blog-list-osahan .cover-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-author-profile-header .profile-img {
  height: 120px;
  width: 120px;
  object-fit: cover;
}
.portfolio-osahan-w .card-img {
  height: 300px;
  object-fit: cover;
}
.portfolio-osahan-h .card-img {
  height: 600px;
  object-fit: cover;
}
.shop-product-detail-slider {
  margin-top: 11px !important;
}
.shop-product-detail-slider.small-img .img-fluid {
  border: 4px solid #fff;
}
.shop-product-detail-slider.small-img .img-fluid.slick-current.slick-active {
  border-color: #a8977b;
}

/* Zoom Effect Styles */
.big-img {
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) {
  .big-img {
    cursor: zoom-in; /* Only on desktop */
  }
  .big-img .slick-slide img {
    transition: transform 0.2s ease !important;
    transform-origin: center center;
    width: 100%;
    height: auto;
    display: block !important; /* Override Slick Slider display */
  }
  .big-img .slick-slide img.zoomed {
    transform: scale(2) !important; /* Ensure zoom applies */
  }
}
@media (max-width: 767px) {
  .big-img {
    touch-action: auto; /* Allow native touch interactions */
  }
  .big-img .slick-slide img {
    max-width: 100%;
    height: auto;
    transform: none !important; /* Explicitly disable zoom */
  }
}


/* My Account */
.avtar-sm {
  width: 40px;
  height: 40px;
  object-fit: cover;
}
.osahan-sidebar {
  margin-top: -120px;
  position: relative;
}
.osahan-sidebar .profile-img {
  height: 120px;
  width: 120px;
  object-fit: cover;
}
.btn-file {
  position: relative;
  overflow: hidden;
}
.btn-file input[type="file"] {
  position: absolute;
  top: 0;
  right: 0;
  text-align: right;
  filter: alpha(opacity=0);
  opacity: 0;
  outline: none;
  cursor: inherit;
  width: 125px;
  display: block;
  height: 38px;
}
.osahan-sidebar-links .dropdown-item {
  font-size: 15px;
  padding: 12px 15px;
  color: #595c5f;
  border-radius: 8px;
  margin: 2px 0;
}
.osahan-sidebar-links .dropdown-item.active,
.osahan-sidebar-links .dropdown-item:hover {
  background: rgb(139 61 255 / 8%);
  color: #a8977b;
}
.osahan-user-header {
  background-image: url(../../img/pages/3d-render-furniture-design.jpg);
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 400px;
  border-radius: 24px;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: cover;
  overflow: hidden;
  max-width: 1380px;
  margin: auto;
}
.build-something-together {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(../../img/pages/3d-render-furniture-design.jpg);
  background-position: top;
  background-repeat: no-repeat;
  background-size: cover;
  margin-bottom: -8rem;
}
.footer-icon {
  height: 45px;
  width: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-tabs-osahan .nav-link {
  color: #979797;
}
.nav-tabs-osahan .nav-link.active {
  color: #a8977b;
}

/* About */
  .bg-elements {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
      url(../../img/pages/3d-render-furniture-design.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
  }

/* Cart Page */
.cart-img.rounded-2 {
  height: 70px;
  width: 58px;
  min-width: 58px;
  object-fit: cover;
}
.quantity-osahan {
  width: 110px;
  text-align: center;
  border-radius: 10px;
  border: 0px solid #dee2e6;
  overflow: hidden;
  padding: 3px;
}
.quantity-osahan .quantity-input {
  text-align: center;
}
.quantity-osahan .btn {
  padding: 0 0 1px 0;
  border-radius: 8px !important;
  width: 33px;
  height: 33px;
  display: flex;
  align-items: end;
  justify-content: center;
  font-size: 23px;
}
.quantity-osahan .quantity-input {
  border: none;
  padding: 0px;
}

/* Filter Sidebar */
.osahan-filter .accordion-button {
  border-radius: 0px !important;
  font-weight: bold;
  color: #000;
  padding: 0 0 19px 0px;
  background: none;
  text-transform: uppercase;
  font-size: 15px;
  border-bottom: 1px solid #dee2e6;
  box-shadow: none;
  letter-spacing: 1px;
  position: relative;
}
.osahan-filter .accordion-item {
  border: none;
  border-radius: 0px !important;
  margin-bottom: 20px;
}
.osahan-filter .accordion-body {
  padding: 18px 0 27px 0;
}
.osahan-filter .accordion-button:after {
  width: 16px;
  height: 16px;
  background-size: 16px;
}
.osahan-filter .accordion-button:before {
  border-bottom: 3px solid #a8977b;
  width: 62px;
  position: absolute;
  content: "";
  bottom: -1px;
}

/* Mobile Media */
@media (max-width: 992px) {
  .m-none {
    display: none;
  }
}
@media (min-width: 1280px) {
  .position-lg-relative {
    position: relative;
  }
  .position-lg-absolute {
    position: absolute;
  }
}

.horizontal-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}
.horizontal-scroll::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}
.carousel-container {
  position: relative;
}
.scroll-btn {
  position: absolute;
  top: 34%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.scroll-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}
.scroll-btn-left {
  left: 10px;
}
.scroll-btn-right {
  right: 10px;
}
.product-card {
  display: inline-block;
  white-space: normal;
  vertical-align: top;
  width: 280px;
  margin-right: 20px;
}
@media (min-width: 992px) {
  .product-card {
    width: calc(25% - 15px);
    min-width: 250px;
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  .product-card {
    width: calc(50% - 10px);
    min-width: 280px;
  }
}

/* Ensure two product cards per row on mobile screens */
@media (max-width: 767px) {
  .col-sm-6 {
    flex: 0 0 auto;
    width: calc(50% - 10px); /* Two cards per row with 10px gap */
    margin-right: 10px; /* Space between cards */
    margin-bottom: 20px; /* Space between rows */
  }

  /* Ensure every second card has no right margin to align properly */
  .col-sm-6:nth-child(2n) {
    margin-right: 0;
  }

  /* Maintain card image aspect ratio */
  .card-img-top {
    aspect-ratio: 1 / 1; /* Ensure images are square */
    object-fit: cover; /* Prevent stretching */
  }

  /* Adjust card body padding for better spacing on mobile */
  .card-body {
    padding: 15px !important; /* Override any excessive padding */
  }
}

.osahan-card-footer a {
  font-size: 10px;
}

.card-body h5 {
  font-size: 10px;
}





/* Product Detail Slider Styles */
.big-img .slide img {
  width: 100%;
  height: auto;
}
.small-img img {
  cursor: pointer;
  transition: border 0.2s ease;
}
.small-img img.selected {
  border: 2px solid #2874f0;
  box-shadow: 0 0 5px rgba(40, 116, 240, 0.3);
}
.slick-dots {
  text-align: center;
  margin-top: 10px;
}
.slick-dots li {
  display: inline-block;
  margin: 0 5px;
}
.slick-dots li button {
  font-size: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  cursor: pointer;
}
.slick-dots li.slick-active button {
  background: #2874f0;
}
@media (max-width: 576px) {
  .small-img img {
    width: 60px;
    height: 60px;
  }
}

