.gap-4 {
  gap: 1.5rem;
}

.gallery-thumb {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.gallery-thumb:hover {
  transform: scale(1.05);
}

.gap-2 {
  gap: .5rem;
}

.gap-3 {
  gap: 1rem;
}

/* HEADER LEFT */
.service-logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.service-search-bar {
  width: 400px;
}

.service-search-bar:focus {
  outline: none;
  box-shadow: none;
  border: 1px solid #dee2e6;
}

/* Mobile search full width */
.service-search-mobile {
  margin-top: 4px;
}

/* HEADER RIGHT */
.cart-badge {
  top: -4px !important;
  left: 10px !important;
}

/* MAIN CONTAINER */
.service-container {
  max-width: 1600px;
}

.breadcrumb-item+.breadcrumb-item::before {
  content: "›";
  color: #6b7280;
  font-weight: 600;
  padding-right: 6px;
}

.breadcrumb a {
  color: #2563eb;
  font-weight: 500;
}

.breadcrumb .active {
  color: #1f2937 !important;
  font-weight: 600;
}

/* LEFT COLUMN */
.left-column {
  position: relative;
}

.left-sticky {
  position: sticky;
  top: 10px;
}

/* Main image container */
.main-image-wrapper {
  height: 450px;
  /* fixed height on desktop */
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  overflow: hidden;

  /* center image */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Main image itself */
.main-image-wrapper img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  padding: 10px;
}

.badge-group {
  top: 10px;
  left: 10px;
  z-index: 5;
}

.badge-off {
  background: #fee2e2;
  color: #991b1b;
  padding: 3px 7px;
  font-size: 12px;
  border-radius: 4px;
}

.badge-best {
  background: #dcfce7;
  color: #166534;
  padding: 3px 7px;
  font-size: 12px;
  border-radius: 4px;
}

.wishlist-btn {
  top: 10px;
  right: 10px;
  background: white;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.wishlist-btn:hover {
  background: #fee2e2;
  transform: scale(1.1);
}

.wishlist-btn i {
  font-size: 18px;
  color: #6b7280;
  transition: color 0.3s ease;
}

.wishlist-btn:hover i {
  color: #dc2626;
}

/* Active/Added to wishlist state */
.wishlist-btn.active {
  background: #fee2e2;
}

.wishlist-btn.active i {
  color: #dc2626;
}

.wishlist-btn.active i::before {
  content: "\f415";
  /* bi-heart-fill */
}


/* Share Button - positioned below wishlist */
.share-btn {
  top: 50px;
  right: 10px;
  background: white;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.share-btn:hover {
  background: #8c53fe;
  transform: scale(1.1);
}

.share-btn i {
  font-size: 16px;
  color: #6b7280;
  transition: color 0.3s ease;
}

.share-btn:hover i {
  color: white;
}

/* Share Menu Dropdown */
.share-menu {
  top: 50px;
  right: 55px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 8px;
  min-width: 160px;
  z-index: 100;
  animation: slideIn 0.2s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(10px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.share-menu-arrow {
  position: absolute;
  right: -6px;
  top: 12px;
  width: 12px;
  height: 12px;
  background: white;
  transform: rotate(45deg);
  box-shadow: 2px -2px 4px rgba(0, 0, 0, 0.05);
}

.share-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  color: #374151;
}

.share-menu-item:hover {
  background: #f3f4f6;
}

.share-menu-item i {
  font-size: 18px;
  width: 20px;
}

.share-menu-item:nth-child(2) i {
  color: #1877f2;
}

.share-menu-item:nth-child(3) i {
  color: #1da1f2;
}

.share-menu-item:nth-child(4) i {
  color: #25d366;
}

.share-menu-item:nth-child(5) i {
  color: #6b7280;
}


/* Thumbnail Scrollbox (Smaller height) */
.thumb-scroll-area {
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  padding-bottom: 6px;
}

.thumb-row {
  display: flex;
  gap: 10px;
}

.thumb-item {
  display: inline-block;
  width: 70px;
}

/* Smaller Thumbnails */
.service-gallery-thumb {
  width: 70px;
  height: 70px;
  /* REDUCED HEIGHT */
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid #ddd;
  transition: 0.2s;
}

.service-gallery-thumb:hover {
  border-color: #3b82f6;
}

/* Default dot style */
.mobile-dots .dot {
  width: 8px;
  height: 8px;
  background: #9CA3AF;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: .2s;
}

.mobile-dots .dot.active {
  background: #1F2937;
  transform: scale(1.2);
}

/* SHARE SECTION */
.share-section {
  margin: 20px 0px;
}

.share-section .btn {
  background: #f3f4f6;
  border-radius: 6px;
  padding: 6px 10px;
}

.share-section .d-flex {
  gap: 10px !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start;
}

.share-title {
  font-weight: 600;
  margin-bottom: 6px;
}

/* Colors */
.share-btn.fb {
  background: #3b5998;
}

.share-btn.tw {
  background: #1da1f2;
}

.share-btn.wa {
  background: #25d366;
}

.share-btn.cp {
  background: #6b7280;
}

/* Hover Effects */
.share-btn:hover {
  opacity: 0.9;
}

/* RIGHT COLUMN */
.right-column {
  padding-left: 20px;
}

/* BADGE GROUP */
.service-badge-group {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Service Not Available Warning */
.alert-warning {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-warning .btn:hover {
  background-color: #d97706 !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
  transition: all 0.2s ease;
}

.alert-warning .btn:active {
  transform: translateY(0);
}

/* Offer Modal Styles */
.offer-modal .modal-body {
  max-height: 500px;
  overflow: hidden;
}

.offer-modal .col-4 {
  max-height: 500px;
  overflow-y: auto;
}

.offer-modal .col-8 {
  max-height: 500px;
  overflow-y: auto;
}

.offer-item {
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.offer-item:hover {
  background-color: #f9fafb !important;
  border-color: #e5e7eb;
}

.offer-item.active {
  background-color: #f3f4f6 !important;
  border-color: #8c53fe;
  border-left: 3px solid #8c53fe;
}

.offer-detail-content h5 {
  color: #1f2937;
}

.offer-detail-content h6 {
  color: #374151;
  font-size: 0.95rem;
}

.offer-detail-content ul {
  padding-left: 1.25rem;
}

.offer-detail-content ul li {
  margin-bottom: 0.5rem;
  color: #4b5563;
}

/* PREMIUM */
.badge-premium {
  background: #dbeafe !important;
  color: #1e40af !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  padding: 12px !important;
  border-radius: 5px !important;
}

/* VERIFIED */
.badge-verified {
  background: #dcfce7 !important;
  color: #166534 !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  padding: 12px !important;
  border-radius: 5px !important;
}

/* TOP RATED */
.badge-toprated {
  background: #fef9c3 !important;
  color: #b45309 !important;
  font-weight: 600 !important;
  padding: 12px !important;
  border-radius: 5px !important;
  display: flex !important;
  align-items: center !important;
  font-size: 14px !important;
}

.badge-toprated i {
  color: #facc15;
}

/* Background gradient recreated */
.bg-warning-light {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

/* Custom colors */
.text-brown {
  color: #92400e !important;
}

.price-box {
  border-radius: 8px;
}

.offers-box {
  border-color: #e5e7eb !important;
}

.offer-icon {
  color: #10b981;
}

.provider-box {
  border-color: #e5e7eb !important;
  background: #fafbfc !important;
}

.provider-badge {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  font-size: 1.5rem;
}

.price-box {
  background-color: rgb(235, 235, 235);
}

#addButton {
  background-color: white;
  border: 2px solid #8c53fe;
  color: #8c53fe;
}

#buyButton {
  background-color: #8c53fe;
  border: 2px solid #8c53fe;
}

.service-view-store {
  background-color: white;
  border: 2px solid #8c53fe;
  color: #8c53fe;
}

.service-add-cart {
  background-color: #8c53fe;
  border: 2px solid #8c53fe;
  color: white;
  border-radius: 5px;
}

.service-check-button {
  background: #8c53fe;
  color: white;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
}

.service-view-all-offers {
  color: #8c53fe;
  border: 0px;
  background-color: transparent;
}

.body-content .my-wishlist-page .my-wishlist table>thead>tr>th,
.table>tbody>tr>th,
.table>tfoot>tr>th,
.table>thead>tr>td,
.table>tbody>tr>td,
.table>tfoot>tr>td {
  vertical-align: middle;
  border: 1px solid #e5e7eb !important;
  padding: 7px !important;
}

.service-view-all-button {
  background-color: #8c53fe;
  border: 1px solid #8c53fe;
  color: white;
  padding: 3px 6px;
  font-size: 18px;
  border-radius: 5px;
}

/* Custom scrollbar for horizontal card list */
.card-scroll::-webkit-scrollbar {
  height: 6px;
  /* Thickness of scrollbar */
}

.card-scroll::-webkit-scrollbar-track {
  background: #f1f1f1;
  /* Track color */
  border-radius: 10px;
}

.card-scroll::-webkit-scrollbar-thumb {
  background: #b4b4b4;
  /* Scrollbar color */
  border-radius: 10px;
}

.card-scroll::-webkit-scrollbar-thumb:hover {
  background: #888;
  /* Darker on hover */
}

.accordion-button:not(.collapsed) {
  background-color: #f3e5ff !important;
  box-shadow: none !important;
}

.accordion-button:focus {
  box-shadow: none !important;
  outline: none !important;
}







@media (max-width: 576px) {

  /* MAIN CONTAINER */
  /* LEFT COLUMN */
  #main_image {
    height: 250px !important;
    object-fit: contain !important;
    object-position: center;
  }

  .main-image-wrapper {
    height: auto;
  }

  .thumb-scroll-area {
    display: none !important;
  }

  .badge-group {
    top: 5px;
    left: 5px;
    gap: 6px;
  }

  .badge-off {
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 8px;
    font-weight: 400;
  }

  .badge-best {
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 8px;
    font-weight: 400;
  }

  .wishlist-btn {
    top: 5px;
    right: 5px;
    width: 32px;
    height: 32px;
  }

  .wishlist-btn i {
    font-size: 16px;
  }

  .share-btn {
    top: 45px;
    right: 5px;
    width: 28px;
    height: 28px;
  }

  .share-btn i {
    font-size: 12px;
  }

  .share-menu {
    top: 45px;
    right: 38px;
    min-width: 140px;
    padding: 6px;
  }

  .share-menu-item {
    padding: 8px 10px;
    font-size: 12px;
    gap: 8px;
  }

  .share-menu-item i {
    font-size: 16px;
  }


  .share-section {
    margin-top: 10px;
  }

  .share-section .d-flex {
    gap: 10px !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
  }

  .share-section .share-btn {
    padding: 4px 8px !important;
    font-size: 11px !important;
    flex: 0 0 auto;
  }

  /* Hide scrollbar if any */
  .share-section .d-flex::-webkit-scrollbar {
    display: none;
  }

  /* RIGHT COLUMN */
  .right-column {
    padding-left: 13px;
  }

  .service-badge-group {
    align-items: start;
    gap: 4px;
  }

  /* PREMIUM */
  .badge-premium {
    font-size: 10px !important;
    padding: 6px !important;
    border-radius: 5px !important;
  }

  /* VERIFIED */
  .badge-verified {
    font-size: 10px !important;
    padding: 6px !important;
    border-radius: 5px !important;
  }

  /* TOP RATED */
  .badge-toprated {
    font-size: 10px !important;
    padding: 6px !important;
    border-radius: 5px !important;
  }

  .service-view-all-button {
    font-size: 12px;
  }
}

@media (min-width: 768px) {
  .thumb-scroll-area::-webkit-scrollbar {
    height: 5px;
    width: 6px;
    background: transparent;
  }

  .thumb-scroll-area::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 10px;
    transition: background 0.3s ease;
  }

  .thumb-scroll-area:hover::-webkit-scrollbar-thumb {
    background: #c2c2c2;
  }
}

/* Hide tabs on mobile, show on desktop */
@media (max-width: 768px) {
  .desktop-tabs {
    display: none !important;
  }
}

/* Hide accordion on desktop, show on mobile */
@media (min-width: 769px) {
  .mobile-accordion {
    display: none;
  }
}