footer {
  margin-top: 0;
}

.product-img,
.single_module,
.main_content {
  background-color: #f4f5f6 !important;
}

.right_side_banner_fl .single_gal {
  flex: 1;
}

.home_gallery_container .banner_content_item .item.right_side_banner_fl {
  flex: 0 0 39% !important;
}

.home_gallery_container .item.big_banner {
  flex: 0 0 61% !important;
}

.compleetshop_video_embed {
  background: #ffffff !important;
  margin: 0 5px;
}

.pim_product {
  background-color: rgba(244, 245, 246, 1);
  background-image: url(../image/pro_bg.jpg);
  background-position: top right;
  background-repeat: no-repeat;
  background-size: contain;
}

.categoty_description {
  column-count: 2;
}

.product_page .breadcrumb_area {
  background: transparent;
  padding-bottom: 25px;
}

.pim_product .product_title {
  border-bottom: 1px solid #e5e7eb;
}
.pim_product .product_title h1 {
  font-size: 26px;
  font-weight: 700;
  padding: 8px 0;
}

#shipping_cost .list_badeg .badge {
  background-color: #e97139;
}

.shipping_cost_and_delivery {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px;
  color: #708089;
}

.price_pim_wall {
  display: flex;
  justify-content: space-between;
}

/* Product Price Styling */
.product_price {
  margin: 20px 0;
}

.price-display-wrapper {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.price-main-row {
  display: flex;
  align-items: end;
  gap: 15px;
  flex-wrap: wrap;
}

.price-old-label {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.advies-label {
  font-size: 16px;
  color: #6b7280;
  font-weight: 400;
}

.old-price {
  font-size: 18px;
  color: #9ca3af;
  text-decoration: line-through;
  font-weight: 400;
}

.price-current {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.current-price {
  font-size: 32px;
  color: #22c55e;
  font-weight: 700;
  line-height: 1;
}

.price-incl-tax {
  font-size: 16px;
  color: #6b7280;
  font-weight: 400;
}

.price-per-liter {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: #6b7280;
  margin-left: 5px;
}

.price-per-liter i {
  font-size: 20px;
  color: #6b7280;
  margin-top: 3px;
}

.price-tax-label,
.price-tax-value {
  font-weight: 500;
  color: #4b5563;
}

.price-discount-section {
  margin-top: 30px;
  margin-bottom: 20px;
  max-width: 500px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.price-discounts {
  max-width: 350px;
  margin-top: 30px;
  margin-bottom: 20px;
}
.discount-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.discount-table thead {
  background-color: #b5bdca;
}

.discount-table thead th {
  padding: 5px 15px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  text-transform: capitalize;
}

.price-discounts tbody {
  border-top: 2px solid #fff;
}

.discount-table tbody tr {
  background-color: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
}

.discount-table tbody tr:last-child {
  border-bottom: none;
}

.discount-table tbody td {
  padding: 1px 15px;
  font-size: 14px;
  color: #a0aabb;
}

.discount-quantity {
  font-weight: 500;
}

.discount-type {
  font-weight: 500;
  text-align: left;
}

.discount-price {
  font-weight: 600;
  text-align: left;
}

#input-sort.form-control {
  -webkit-appearance: auto;
  -moz-appearance: auto;
  appearance: auto;
  width: auto;
}

.custom_listing_category {
  background: #fff;
  border-radius: 8px;
  padding: 8px 15px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .current-price {
    font-size: 36px;
  }

  .advies-label,
  .price-incl-tax {
    font-size: 14px;
  }

  .old-price {
    font-size: 16px;
  }

  .price-discount-section {
    max-width: 100%;
  }
}

.pim_product img {
  margin: 0;
  padding: 0;
}

.product_garrenty {
  padding: 10px;
  background: #ffff;
  border-radius: 8px;
  margin-top: 20px;
}

.product_garrenty p {
  line-height: 25px;
}

.related_product_area {
  padding-bottom: 30px;
}

.related_products {
  margin-top: 15px;
  background: #fff;
  border-radius: 10px;
  padding: 15px;
}

.related-title {
  font-size: 23px;
  font-weight: 600;
  margin-bottom: 15px;
}

.sidebar_product_title {
  font-size: 17px;
  padding-left: 10px;
}

/* Container */
.related_listing {
  display: grid;
  gap: 1rem;
  margin-top: 15px;
}

/* Single product card */
.single_relared {
  display: flex;
  align-items: center;
  background: #f7f7f7;
  border-radius: 0.75rem;
  padding: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.single_relared:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* Product image */
.single_relared .single_relared_image {
  flex: 0 0 80px;
  height: 80px;
  margin-right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.single_relared .single_relared_image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Product info */
.single_relared .single_relared_info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.single_relared .single_relared_info h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #2c2f3a;
  margin: 0 0 0.5rem;
}

/* Bottom row inside info */
.single_relared .single_relared_info_bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Price */
.single_relared .price span {
  font-size: 1.25rem;
  font-weight: 700;
  color: #5dac43; /* matches red tone from screenshot */
}

.product_info_area {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
}

/* Product Gallery Styles */
.product_gallery .main-image-carousel {
  background: #ffffff;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 10px;
}

.cash_discount {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  text-transform: uppercase;
  color: #fff;
  background: #d60a52;
  padding: 2px 5px;
  border-radius: 5px;
}

.main-carousel-container {
  width: 100%;
}

/* Main Image Carousel */
.main-image-carousel {
  position: relative;
  margin-bottom: 20px;
}

.main-images {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.main-image-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-image-item.active {
  opacity: 1;
}

.main-image {
  max-width: 100%;
  max-height: 100%;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.main-image:hover {
  transform: scale(1.02);
}

/* Carousel Navigation Buttons */
.thumb-btn,
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #ffffff;
  border: 2px solid #9ea2aa;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  color: #9ea2aa;
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); */
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.carousel-btn-prev {
  left: 10px;
}

button.thumb-btn.thumb-btn-prev.disabled,
button.thumb-btn.thumb-btn-next.disabled {
  opacity: 0;
}

.carousel-btn-next {
  right: 10px;
}

.carousel-btn svg {
  color: #9ea2aa;
}

.thumbnail-wrapper {
  position: relative;
  overflow: hidden;
}

.thumbnails {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin: 0;
}

.thumbnails::-webkit-scrollbar {
  display: none;
}

.thumbnail-item {
  flex: 0 0 auto;
  /* 4 items in a row: (100% - 3 gaps) / 4 */
  width: calc((100% - 36px) / 4);
  height: calc((100% - 36px) / 4);
  min-width: 80px;
  min-height: 80px;
  max-width: 120px;
  max-height: 120px;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #ffffff;
  padding: 10px;
}

.thumbnail-item.active {
  border-color: #aaabb0;
}

.thumbnail-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.thumbnail-item img {
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}

/* .thumbnail-item:hover img {
  transform: scale(1.05);
} */

.thumb-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.thumb-btn-prev {
  left: 8px;
}

.thumb-btn-next {
  right: 8px;
}

.thumb-btn svg {
  color: #666;
}

.radio_option {
  display: flex;
  gap: 15px;
  flex-direction: row;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
}

.radio_option .form-check {
  background: #f4f5f6;
  padding: 15px 35px;
  border-radius: 8px;
  border: 1px solid #f4f5f6;
  transition: all 0.3s ease;
}

.radio_option .form-check:hover {
  background: #fff;
  transition: all 0.3s ease;
}

.product_details_area {
  margin-top: 30px;
}

.product_details_area .product_tab_area .nav-tabs,
.product_details_area .product_tab_area .nav-tabs .nav-link {
  border: none;
}

.tab-content {
  background: #fff;
  padding: 20px;
  margin-top: 1px;
  border-radius: 0 10px 10px 10px;
}

.product_tab_area li.nav-item {
  margin-right: 10px;
}

.product_tab_area li.nav-item a {
  background-color: #d4d9e2;
  color: #000;
}

.product_barcode {
  max-width: 300px;
}

.product_info_ean_area {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 25px;
}

.info_single {
  display: flex;
  gap: 15px;
  margin-bottom: 5px;
  align-items: center;
}

.info_title {
  font-weight: bold;
}

/* Add to Cart Area Styling */
.add_to_cart_area {
  margin: 30px 0;
}

.cart-actions-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Quantity Controls */
.quantity-controls {
  display: flex;
  align-items: center;
  border: 1px solid #74726f;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
}

.qty-btn {
  width: 45px;
  height: 35px;
  border: none;
  background: #ffffff;
  color: #6b7280;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background: #f3f4f6;
  color: #111827;
}

.qty-input {
  width: 60px;
  height: 37px;
  border: none;
  border-left: 1px solid #74726f;
  border-right: 1px solid #74726f;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  outline: none;
}

.offer-tooltip {
  --bs-tooltip-bg: #72757b;
  --bs-tooltip-color: #fff;
}

.atqatc_prdbtn .fa-regular {
  font-size: 20px;
}

/* Add to Cart Button (Bestellen) */
.btn-bestellen {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 50px;
  background: #22c55e;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-style: italic;
  text-align: center;
}

.pim_product #button-cart .fa-cart-shopping::before {
  top: 6px;
  left: 25px;
  /* right: 0; */
}

.btn-bestellen:hover {
  background: #16a34a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.btn-bestellen i {
  font-size: 18px;
}

/* Quote Button */

.quote-area .mt-2 {
  margin: 0 !important;
}
.atqatc_prdbtn,
.btn-quote {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: #9ca3af;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-quote:hover {
  background: #6b7280;
}

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

/* Wishlist Button */
.btn-wishlist {
  width: 45px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border: 1px solid #fff;
  border-radius: 6px;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.5s ease;
  margin-top: 1px;
}

.btn-wishlist:hover {
  background: #ffffff;
  transition: all 0.5s ease;
}

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

.product_2nd_banner {
  margin: 20px 0 0;
}

.product_page .nav-tabs .nav-link {
  padding: 7px 20px;
}

/* Responsive adjustments for cart area */
@media (max-width: 768px) {
  .cart-actions-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-bestellen,
  .btn-quote {
    width: 100%;
    justify-content: center;
  }

  .quantity-controls {
    width: fit-content;
    margin: 0 auto;
  }

  .btn-wishlist {
    width: 100%;
  }

  /* Tag area responsive */
  .tag-heading {
    font-size: 16px;
  }

  .tag-list {
    gap: 8px;
  }

  .tag-pill {
    padding: 8px 16px;
    font-size: 13px;
  }

  .radio_option {
    flex-direction: column; /* Stack vertically */
    gap: 10px; /* Reduce spacing */
    align-items: flex-start; /* Align to left */
  }
}

.pim_product .list_product_item_info ul {
  padding-left: 5px;
  margin: 10px 0;
}

.pim_product .list_product_item_info ul li {
  color: #000;
  font-weight: 500;
  line-height: 23px;
  position: relative;
  z-index: 2;
  list-style: none;
  padding-left: 30px;
}

.pim_product .list_product_item_info ul li::before {
  position: absolute;
  top: 3px;
  left: 0;
  width: 19px;
  height: 100%;
  content: "";
  background-image: url("../image/list_mark.png");
  background-repeat: no-repeat;
  background-size: contain;
}

/* Tag Area Styling */
.tag_area {
  margin: 30px 0 0;
  padding: 0;
}

.tag-heading {
  font-size: 17px;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 15px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.tag-pill {
  display: inline-block;
  padding: 10px 20px;
  background-color: #fff;
  color: #4b5563;
  border: 1px solid #e5e7eb;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tag-pill:hover {
  background-color: #e5e7eb;
  color: #1f2937;
  border-color: #d1d5db;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tag-pill:active {
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .carousel-btn {
    width: 36px;
    height: 36px;
  }

  .thumbnail-item {
    /* 3 items in a row on tablet: (100% - 2 gaps) / 3 */
    width: calc((100% - 24px) / 3);
    height: calc((100% - 24px) / 3);
    min-width: 60px;
    min-height: 60px;
    max-width: 100px;
    max-height: 100px;
  }

  .thumb-btn {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 480px) {
  .product_gallery {
    padding: 12px;
  }

  .carousel-btn {
    width: 32px;
    height: 32px;
  }

  .carousel-btn-prev {
    left: 8px;
  }

  .carousel-btn-next {
    right: 8px;
  }

  .thumbnail-item {
    /* 2 items in a row on mobile: (100% - 1 gap) / 2 */
    width: calc((100% - 12px) / 2);
    height: calc((100% - 12px) / 2);
    min-width: 50px;
    min-height: 50px;
    max-width: 80px;
    max-height: 80px;
  }
}

/* Loading state */
.main-image-item img,
.thumbnail-item img {
  transition: opacity 0.3s ease;
  margin: 0;
}

.main-image-item img[src=""],
.thumbnail-item img[src=""] {
  opacity: 0;
}

/* Magnific Popup Integration */
.main-image-item .magnific-popup {
  display: block;
  width: 100%;
  height: 100%;
}

.main-image-item .magnific-popup img {
  width: 100%;
  height: 100%;
}

/* Enhanced visual feedback */
.thumbnail-item:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

.carousel-btn:focus,
.thumb-btn:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

/* Smooth scrolling for thumbnail navigation */
html {
  scroll-behavior: smooth;
}

/* ============================================
   Product Files Section - Modern Design
   ============================================ */

.product-files-container {
  padding: 20px 0;
}

/* Files Header */
.files-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e5e7eb;
}

.files-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 8px 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

.files-title svg {
  color: #3b82f6;
  flex-shrink: 0;
}

.files-subtitle {
  font-size: 15px;
  color: #6b7280;
  margin: 0;
  padding-left: 36px;
  font-weight: 400;
}

/* Files Grid */
.product-files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

/* File Card */
.file-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.file-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.05) 0%,
    rgba(147, 51, 234, 0.05) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.file-card:hover {
  transform: translateY(-4px);
  border-color: #3b82f6;
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.15),
    0 4px 8px rgba(0, 0, 0, 0.05);
  text-decoration: none;
}

.file-card:hover::before {
  opacity: 1;
}

.file-card:active {
  transform: translateY(-2px);
}

/* File Icon */
.file-icon-wrapper {
  position: relative;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 5px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
  transition: all 0.3s ease;
  z-index: 1;
}

.file-card:hover .file-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
}

.file-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: filter 0.3s ease;
  border-radius: 10px;
}

/* File Content */
.file-content {
  flex: 1;
  min-width: 0;
  z-index: 1;
}

.file-title {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 8px 0;
  line-height: 1.4;
  word-wrap: break-word;
  transition: color 0.3s ease;
}

.file-card:hover .file-title {
  color: #3b82f6;
}

.file-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  transition: color 0.3s ease;
}

.file-action svg {
  transition: transform 0.3s ease;
}

.file-card:hover .file-action {
  color: #3b82f6;
}

.file-card:hover .file-action svg {
  transform: translateY(2px);
}

/* Hover Indicator */
.file-hover-indicator {
  position: relative;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 1;
}

.file-hover-indicator svg {
  color: #9ca3af;
  transition: all 0.3s ease;
}

.file-card:hover .file-hover-indicator {
  background: #3b82f6;
  transform: translateX(4px);
}

.file-card:hover .file-hover-indicator svg {
  color: #ffffff;
  transform: translateX(2px);
}

/* Empty State (if no files) */
.product-files-grid:empty::after {
  content: "No files available for download";
  display: block;
  padding: 60px 20px;
  text-align: center;
  color: #9ca3af;
  font-size: 16px;
  background: #f9fafb;
  border-radius: 12px;
  border: 2px dashed #e5e7eb;
}

/* Responsive Design */
@media (max-width: 768px) {
  .product-files-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .files-title {
    font-size: 20px;
  }

  .files-subtitle {
    font-size: 14px;
    padding-left: 32px;
  }

  .file-card {
    padding: 16px;
  }

  .file-icon-wrapper {
    width: 56px;
    height: 56px;
  }

  .file-title {
    font-size: 15px;
  }

  .file-action {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .files-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
  }

  .files-title {
    font-size: 18px;
    gap: 8px;
  }

  .files-title svg {
    width: 20px;
    height: 20px;
  }

  .files-subtitle {
    font-size: 13px;
    padding-left: 28px;
  }

  .file-card {
    gap: 12px;
    padding: 14px;
  }

  .file-icon-wrapper {
    width: 48px;
    height: 48px;
    padding: 10px;
  }

  .file-title {
    font-size: 14px;
    margin-bottom: 6px;
  }

  .file-action {
    font-size: 12px;
    gap: 4px;
  }

  .file-action svg {
    width: 14px;
    height: 14px;
  }

  .file-hover-indicator {
    width: 28px;
    height: 28px;
  }

  .file-hover-indicator svg {
    width: 16px;
    height: 16px;
  }
}

/* Loading Animation (optional) */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.file-card.loading {
  background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 50%, #f3f4f6 100%);
  background-size: 2000px 100%;
  animation: shimmer 2s infinite;
  pointer-events: none;
}

/* Accessibility Improvements */
.file-card:focus-visible {
  outline: 3px solid #3b82f6;
  outline-offset: 2px;
}

.file-card:focus-visible:not(:hover) {
  border-color: #3b82f6;
}

/* Print Styles */
@media print {
  .file-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #e5e7eb;
  }

  .file-card:hover {
    transform: none;
  }
}

/* ============================================
   Product Videos Section - Modern Design
   ============================================ */

.product-videos-section {
  margin: 30px 0;
}

.product-videos-container {
  padding: 20px 0;
}

/* Videos Header */
.videos-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e5e7eb;
}

.videos-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 8px 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

.videos-title svg {
  color: #ef4444;
  flex-shrink: 0;
}

.videos-subtitle {
  font-size: 15px;
  color: #6b7280;
  margin: 0;
  padding-left: 36px;
  font-weight: 400;
}

/* Videos Grid */
.product-videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
  margin-top: 25px;
}

/* Video Card */
.video-card {
  position: relative;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.video-card:hover {
  transform: translateY(-4px);
  border-color: #ef4444;
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.15), 0 4px 8px rgba(0, 0, 0, 0.08);
}

/* Video Wrapper - Responsive 16:9 Aspect Ratio */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background: #000000;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Video Title */
.video-title {
  padding: 16px 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
}

.video-title h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 8px;
}

.video-title h4::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-radius: 2px;
  flex-shrink: 0;
}

.video-card:hover .video-title h4 {
  color: #ef4444;
}

.video-wrapper iframe[src] ~ ::before {
  display: none;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Empty State */
.product-videos-grid:empty::after {
  content: "No videos available";
  display: block;
  padding: 60px 20px;
  text-align: center;
  color: #9ca3af;
  font-size: 16px;
  background: #f9fafb;
  border-radius: 12px;
  border: 2px dashed #e5e7eb;
}

/* Responsive Design for Videos */
@media (max-width: 1024px) {
  .product-videos-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .product-videos-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .videos-title {
    font-size: 20px;
  }

  .videos-subtitle {
    font-size: 14px;
    padding-left: 32px;
  }

  .video-title {
    padding: 14px 16px;
  }

  .video-title h4 {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .videos-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
  }

  .videos-title {
    font-size: 18px;
    gap: 8px;
  }

  .videos-title svg {
    width: 20px;
    height: 20px;
  }

  .videos-subtitle {
    font-size: 13px;
    padding-left: 28px;
  }

  .product-videos-grid {
    gap: 16px;
  }

  .video-title {
    padding: 12px 14px;
  }

  .video-title h4 {
    font-size: 14px;
  }

  .video-title h4::before {
    width: 3px;
    height: 16px;
  }
}

/* Accessibility */
.video-card:focus-within {
  outline: 3px solid #ef4444;
  outline-offset: 2px;
}

/* Print Styles for Videos */
@media print {
  .product-videos-section {
    break-inside: avoid;
  }

  .video-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #e5e7eb;
  }

  .video-card:hover {
    transform: none;
  }

  .video-wrapper::before,
  .video-wrapper::after {
    display: none;
  }
}

/* ============================================
   Modern Product Card Design
   ============================================ */

.modern-product-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card-inner {
  background: #ffffff;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #f4f5f6;
  box-shadow: 0 1px 3px rgba(244, 245, 246, 0.08);
}

.product-card-inner:hover {
  /* transform: translateY(-4px); */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  border-color: #d1d5db;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Product Image Section */
.product-image-wrapper {
  position: relative;
  width: 100%;
  padding: 20px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.product-image-wrapper a {
  display: block;
  width: 100%;
  text-align: center;
}

.product-image {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

/* .product-card-inner:hover .product-image {
  transform: scale(1.05);
} */

/* Product Badge */
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
  border-radius: 4px;
  letter-spacing: 0.5px;
  z-index: 10;
}

.badge-sale {
  background: #d60a52;
}

.badge-best {
  background: #ec4899;
}

/* Product Info Section */
.product-info-section {
  padding: 16px 20px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Product Title */
.product-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.product-title a {
  color: #1f2937;
  text-decoration: none;
  transition: color 0.2s ease;
}
.owl-carousel .product-title a {
  text-overflow: ellipsis;
  display: block;
  white-space: nowrap;
  overflow: hidden;
}

.product-title a:hover {
  color: #16a34a;
}

/* Product Features */
.product-features {
  margin-bottom: 12px;
  flex: 1;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 6px;
}

.features-list li:last-child {
  margin-bottom: 0;
}

.features-list li svg {
  flex-shrink: 0;
  margin-top: 2px;
  stroke: #16a34a;
}

/* Options Button */
.product-options-btn {
  margin-top: 12px;
}

.options-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #4b5563;
  text-decoration: none;
  transition: all 0.2s ease;
}

.options-link:hover {
  background: #e5e7eb;
  color: #1f2937;
  text-decoration: none;
}

.options-link svg {
  transition: transform 0.2s ease;
}

.options-link:hover svg {
  transform: translateY(2px);
}

/* Product Footer - Price & Cart */
.product-footer {
  padding: 0 20px 16px;
  /* background: #fafafa; */
}

.price-cart-wrapper {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

/* Price Section */
.price-section {
  flex: 1;
  display: flex;
  gap: 10px;
  align-items: center;
}

.price-label {
  font-size: 10px;
  color: #9ca3af;
  font-weight: 500;
  line-height: 13px;
}

.price-old-value {
  font-size: 12px;
  color: #9ca3af;
  text-decoration: line-through;
}

.price-current {
  font-size: 24px;
  font-weight: 700;
  color: #5b6064;
  line-height: 1;
}

/* Cart Button */
.cart-button-wrapper {
  flex-shrink: 0;
}

.btn-add-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background: #36b32a;
  border: none;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(22, 163, 74, 0.2);
}

.btn-add-cart:hover {
  background: #15803d;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(22, 163, 74, 0.3);
}

.btn-add-cart:active {
  transform: translateY(0);
}

.btn-add-cart svg {
  stroke-width: 2;
}

/* Responsive Design */
@media (max-width: 768px) {
  .product-card-inner {
    border-radius: 6px;
  }

  .product-image-wrapper {
    padding: 16px;
    min-height: 160px;
  }

  .product-info-section {
    padding: 14px 16px;
  }

  .product-title {
    font-size: 15px;
    min-height: auto;
  }

  .features-list li {
    font-size: 13px;
  }

  .product-footer {
    padding: 14px 16px;
  }

  .price-current {
    font-size: 20px;
  }

  .btn-add-cart {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 480px) {
  .product-image-wrapper {
    padding: 12px;
    min-height: 140px;
  }

  .product-info-section {
    padding: 12px;
  }

  .product-title {
    font-size: 14px;
  }

  .features-list li {
    font-size: 12px;
    gap: 6px;
  }

  .features-list li svg {
    width: 14px;
    height: 14px;
  }

  .options-link {
    font-size: 13px;
    padding: 6px 12px;
  }

  .product-footer {
    padding: 12px;
  }

  .price-current {
    font-size: 18px;
  }

  .btn-add-cart {
    width: 40px;
    height: 40px;
  }

  .btn-add-cart svg {
    width: 18px;
    height: 18px;
  }
}

/* Grid Layout Support */
.product-grid .modern-product-card {
  margin-bottom: 20px;
}

/* Loading State */
.modern-product-card.loading {
  opacity: 0.6;
  pointer-events: none;
}

.modern-product-card.loading .product-card-inner {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Out of Stock State */
.modern-product-card.out-of-stock .product-image {
  opacity: 0.5;
  filter: grayscale(100%);
}

.modern-product-card.out-of-stock .btn-add-cart {
  background: #9ca3af;
  cursor: not-allowed;
}

.modern-product-card.out-of-stock .btn-add-cart:hover {
  background: #9ca3af;
  transform: none;
}

/* ============================================
   Recently Viewed Products Section
   ============================================ */

  .best_sell_area {
    margin-bottom: 40px;
  }


.recently-viewed-title {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 20px 0;
}

.recently-viewed-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.recently-viewed-item {
  transition: all 0.2s ease;
}

.recently-viewed-item:hover {
  transform: translateX(4px);
}

.item-link {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.item-link:hover {
  text-decoration: none;
}

/* Item Image */
.item-image {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  background: #ffffff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8px;
}

.item-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.item-link:hover .item-image img {
  transform: scale(1.1);
}

/* Item Info */
.item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.item-title {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  color: #374151;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.item-link:hover .item-title {
  color: #1f2937;
}

.item-price {
  font-size: 18px;
  font-weight: 700;
  color: #2f7093;
  line-height: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .pim_product .product_title h1 {
    font-size: 20px;
  }

  .product_gallery {
    padding: 0;
    margin-bottom: 15px;
  }

  .product_info_area {
    padding: 15px;
  }

  .product_info {
    margin-top: 15px;
  }

  .best_sell_area {
    margin-bottom: 20px;
  }

  .shipping_cost_and_delivery {
    flex-direction: column;
    align-items: start;
    gap: 5px;
  }

  .price_pim_wall {
    justify-content: space-between;
    flex-direction: column;
  }

  .recently-viewed-title {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .recently-viewed-list {
    gap: 16px;
  }

  .item-image {
    width: 80px;
    height: 80px;
  }

  .item-title {
    font-size: 15px;
  }

  .item-price {
    font-size: 16px;
  }

  .product_barcode {
    display: none;
  }

  .product_tab_area li.nav-item {
    margin-right: 0;
  }

  .product_page .nav-tabs .nav-link {
    padding: 7px 9px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .recently-viewed-section {
    margin-top: 24px;
    padding-top: 16px;
  }

  .recently-viewed-title {
    font-size: 16px;
    margin-bottom: 14px;
  }

  .recently-viewed-list {
    gap: 14px;
  }

  .item-link {
    gap: 12px;
  }

  .item-image {
    width: 70px;
    height: 70px;
    padding: 6px;
  }

  .item-title {
    font-size: 14px;
  }

  .item-price {
    font-size: 15px;
  }
}

/* ===================================
   5 Products Per Row Layout Support
   =================================== */

/* Extra Large Devices (1200px and up) */
@media (min-width: 1200px) {
  .col-xl-5th {
    flex: 0 0 20%;
    max-width: 20%;
  }
}

/* Large Devices (992px and up) */
@media (min-width: 992px) {
  .col-lg-5th {
    flex: 0 0 20%;
    max-width: 20%;
  }
}

/* Medium Devices (768px and up) */
@media (min-width: 768px) {
  .col-md-5th {
    flex: 0 0 20%;
    max-width: 20%;
  }
}

/* ============================================
   Category Thumbnails Per Row - Custom Columns
   ============================================ */

/* Large Devices (992px and up) - Category Thumbnails */
@media (min-width: 992px) {
  /* 5 items per row: 12/5 = 2.4 (20%) */
  .col-lg-cat-5 {
    flex: 0 0 20%;
    max-width: 20%;
  }

  /* 7 items per row: 12/7 = 1.714 (14.285%) */
  .col-lg-cat-7 {
    flex: 0 0 14.285714%;
    max-width: 14.285714%;
  }

  /* 8 items per row: 12/8 = 1.5 (12.5%) */
  .col-lg-cat-8 {
    flex: 0 0 12.5%;
    max-width: 12.5%;
  }

  /* 9 items per row: 12/9 = 1.333 (11.111%) */
  .col-lg-cat-9 {
    flex: 0 0 11.111111%;
    max-width: 11.111111%;
  }

  /* 10 items per row: 12/10 = 1.2 (10%) */
  .col-lg-cat-10 {
    flex: 0 0 10%;
    max-width: 10%;
  }

  /* 11 items per row: 12/11 = 1.091 (9.091%) */
  .col-lg-cat-11 {
    flex: 0 0 9.090909%;
    max-width: 9.090909%;
  }

  /* 12 items per row: 12/12 = 1 (8.333%) */
  .col-lg-cat-12 {
    flex: 0 0 8.333333%;
    max-width: 8.333333%;
  }
}

/* Medium Devices (768px to 991px) - 4 items per row */
@media (min-width: 768px) and (max-width: 991px) {
  .col-lg-cat-5,
  .col-lg-cat-7,
  .col-lg-cat-8,
  .col-lg-cat-9,
  .col-lg-cat-10,
  .col-lg-cat-11,
  .col-lg-cat-12 {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

/* Mobile: Reorder sections - related_products before bundle/related area */
@media (max-width: 767px) {
  /* Make main container flex to control row and mt-5 order */
  #product-product.container {
    display: flex !important;
    flex-direction: column !important;
  }

  /* Make row flex to control all children order */
  #product-product > .row {
    order: 1 !important;
    display: flex !important;
    flex-direction: column !important;
  }

  /* Use display: contents to flatten col-md-4 children into row */
  #product-product > .row > .col-md-4 {
    display: contents !important;
  }

  /* Gallery appears first */
  #product-product > .row > .col-md-4 > .product_gallery {
    order: 1 !important;
    margin: 0 15px;
  }

  /* Related products appears third (after product info) */
  #product-product > .row > .col-md-4 > .related_products {
    order: 3 !important;
    margin: 0 15px;
  }

  /* Product info column appears second */
  #product-product > .row > .col-md-8 {
    order: 2 !important;
  }

  /* Bundle and related products section - appears last after everything */
  #product-product > .mt-5 {
    order: 4 !important;
  }
}
