/* ========================================
   PRODUCTS.CSS - Consolidated Product & Carousel Styles
   ======================================== */

/* ========================================
   PRODUCT CAROUSEL
   ======================================== */

.product-carousel {
  position: relative;
  display: block !important;
  visibility: visible !important;
}

.product-carousel .carousel-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  display: block !important;
  visibility: visible !important;
}

.product-carousel .carousel-track {
  display: flex !important;
  transition: transform 0.5s ease;
  visibility: visible !important;
}

.product-carousel .product-carousel-item {
  flex: none !important;
  width: calc(100% / 3) !important; /* Show 3 items at once */
  padding: 0 15px;
  box-sizing: border-box;
  min-width: 0; /* Prevent flex items from overflowing */
  display: block !important;
  visibility: visible !important;
}

/* Carousel Arrows for Products */
.product-carousel .carousel-arrows {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 10;
}

.product-carousel .slick-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: all;
  z-index: 15;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.product-carousel .slick-arrow:hover {
  background: rgba(0, 0, 0, 0.9);
}

.product-carousel .slick-prev {
  left: -20px;
}

.product-carousel .slick-next {
  right: -20px;
}

/* Product Dots */
.product-carousel .product-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  padding: 0;
  list-style: none;
  gap: 10px;
}

.product-carousel .product-dots li {
  margin: 0;
}

.product-carousel .product-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #ddd;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0;
}

.product-carousel .product-dots .slick-active button {
  background: #007bff;
  border-color: #007bff;
}

.product-carousel .product-dots button:hover {
  border-color: #007bff;
}

/* ========================================
   PRODUCT GRID LAYOUT
   ======================================== */

.shop-product-wrap {
  margin-bottom: -30px;
}

.shop-product-wrap .product-item {
  margin-bottom: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

@media (hover: hover) {
  .shop-product-wrap .product-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  }
}

/* ========================================
   PRODUCT CAPTION STYLES
   ======================================== */

.product-caption {
  text-align: center;
  padding: 12px 16px 16px;
}

.product-caption .product-name {
  margin-bottom: 10px;
}

.product-caption .product-name a {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  line-height: 1.4;
  display: block;
  transition: color 0.3s ease;
}

.product-caption .product-name a:hover {
  color: #007bff;
}

.manufacturer-name {
  margin-bottom: 8px;
}

.manufacturer-name a {
  font-size: 13px;
  color: #666;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.manufacturer-name a:hover {
  color: #007bff;
}

.price-box {
  margin-top: 10px;
}

.price-regular {
  font-size: 18px;
  font-weight: 700;
  color: #007bff;
}

.price-old {
  margin-left: 8px;
  font-size: 14px;
  color: #999;
}

.price-old del {
  text-decoration: line-through;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .product-carousel .product-carousel-item {
    width: 50%; /* Show 2 items on tablet */
  }
  
  .product-carousel .slick-prev {
    left: -15px;
  }
  
  .product-carousel .slick-next {
    right: -15px;
  }
  
  .shop-product-wrap .product-item {
    margin-bottom: 25px;
  }
}

@media (max-width: 768px) {
  .product-carousel .product-carousel-item {
    width: 100%; /* Show 1 item on mobile */
  }
  
  .product-carousel .slick-arrow {
    display: none;
  }
  
  .product-carousel .product-dots {
    margin-top: 20px;
  }
  
  .shop-product-wrap .product-item {
    margin-bottom: 20px;
  }
  
  .product-caption .product-name a {
    font-size: 14px;
  }
  
  .price-regular {
    font-size: 16px;
  }
}

/* Banner item hover effects */
.banner-item {
  transition: transform 0.3s ease;
  height: 100%;
  display: block !important;
  visibility: visible !important;
}

.banner-item:hover {
  transform: translateY(-5px);
}

.banner-item .banner-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  display: block !important;
}

.banner-item .banner-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block !important;
}

.banner-item .banner-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  color: white;
  padding: 20px;
  text-align: center;
}

.banner-item .text1 {
  font-size: 14px;
  margin-bottom: 5px;
  opacity: 0.9;
}

.banner-item .text2 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 5px;
}

.banner-item .text3 {
  font-size: 12px;
  margin-bottom: 15px;
}

.banner-item .store-link {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.3s ease;
}

.banner-item .store-link:hover {
  background: #0056b3;
  color: white;
  text-decoration: none;
}

/* ========================================
   PRODUCT CATEGORIES
   ======================================== */

.banner-statistics .banner-item {
  position: relative;
  height: 100%;
}

.banner-statistics .banner-thumb {
  position: relative;
  background-color: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.banner-statistics .banner-thumb > a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  max-height: 300px;
  width: 100%;
  padding: 20px;
  overflow: hidden;
}

.banner-statistics .banner-thumb img {
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 260px !important;
  object-fit: contain !important;
  object-position: center !important;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .banner-statistics .banner-thumb > a {
    min-height: 250px;
    max-height: 250px;
  }
  
  .banner-statistics .banner-thumb img {
    max-height: 210px !important;
  }
}

@media (max-width: 767.98px) {
  .banner-statistics .banner-thumb > a {
    min-height: 200px;
    max-height: 200px;
  }
  
  .banner-statistics .banner-thumb img {
    max-height: 160px !important;
  }
}

/* Banner content positioning - BELOW image */
.banner-statistics .banner-content {
  position: relative;
  padding: 20px;
  text-align: center;
  background-color: transparent;
}

.banner-statistics .banner-content .text1 {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
}

.banner-statistics .banner-content .text2 {
  font-size: 20px;
  font-weight: 600;
  color: #242424;
  margin-bottom: 5px;
}

.banner-statistics .banner-content .text3 {
  font-size: 12px;
  color: #888;
  margin-bottom: 10px;
}

.banner-statistics .store-link {
  display: inline-block;
  padding: 6px 16px;
  background-color: var(--color-primary);
  color: white !important;
  text-decoration: none;
  border-radius: 4px;
  font-size: 12px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  font-weight: 500;
}

.banner-statistics .store-link:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
}

/* ========================================
   CAROUSEL ARROWS
   ======================================== */

.hero-slider-active {
  position: relative;
}

.hero-slider-active .slick-arrow-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 10;
}

.hero-slider-active .slick-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: all;
  z-index: 15;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  outline: none !important;
  box-shadow: none !important;
}

.hero-slider-active .slick-arrow:focus,
.hero-slider-active .slick-arrow:active {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

.hero-slider-active .slick-arrow:hover {
  background: rgba(0, 0, 0, 0.8);
}

.hero-slider-active .slick-prev {
  left: 30px;
}

.hero-slider-active .slick-next {
  right: 30px;
}

/* Hide arrows on mobile */
@media (max-width: 768px) {
  .hero-slider-active .slick-arrow {
    display: none;
  }
}

/* Dots positioning */
.hero-slider-active .slick-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
}

.hero-slider-active .slick-dots button {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

.hero-slider-active .slick-dots button:focus,
.hero-slider-active .slick-dots button:active {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* ========================================
   PRODUCT CAROUSEL ARROWS
   ======================================== */

.product-carousel-wrapper.slick-arrow-style_hero button.slick-arrow {
  font-size: 60px;
  left: 0px;
  width: inherit;
  height: inherit;
  background-color: transparent;
  color: white;
  font-weight: 900;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  top: 50%;
  position: absolute;
  transform: translateY(-50%);
  cursor: pointer;
  display: block;
  z-index: 1;
  opacity: 1 !important;
  visibility: visible !important;
  border: none;
  outline: none !important;
  box-shadow: none !important;
}

.product-carousel-wrapper.slick-arrow-style_hero button.slick-arrow:focus,
.product-carousel-wrapper.slick-arrow-style_hero button.slick-arrow:active {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

.product-carousel-wrapper.slick-arrow-style_hero button.slick-arrow.slick-next {
  right: 0px;
  left: auto;
}

.product-carousel-wrapper.slick-arrow-style_hero button.slick-arrow:hover {
  color: #010096;
  background-color: transparent;
}

/* Make sure the container has relative positioning */
.product-carousel-wrapper {
  position: relative;
}

/* Product carousel dots focus removal */
.product-carousel-wrapper ul button {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

.product-carousel-wrapper ul button:focus,
.product-carousel-wrapper ul button:active {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}


/* ========== product-descriptions ========== */
/* ========================================
   PRODUCT DESCRIPTIONS STANDARDIZATION
   ======================================== */

/* Product Description Container */
.shop-product-wrap .product-description-container {
  margin: 10px 0;
}

/* Product Description Standardization */
.shop-product-wrap .product-description {
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Limit to 3 lines */
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  height: calc(1.4em * 3); /* Fixed height for 3 lines */
  font-size: 14px;
  color: #666;
  text-align: left;
  transition: all 0.3s ease;
}

/* Expanded state */
.shop-product-wrap .product-description.expanded {
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

/* Description Toggle Button */
.shop-product-wrap .description-toggle-btn {
  background: none;
  border: none;
  color: var(--color-text-muted, #707070);
  font-size: 14px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: inline-block;
  position: relative;
}

.shop-product-wrap .description-toggle-btn:hover {
  color: var(--color-primary, #010096);
  background-color: rgba(1, 0, 150, 0.05);
  transform: translateY(-1px);
}

.shop-product-wrap .description-toggle-btn:focus {
  outline: 2px solid var(--color-primary, #010096);
  outline-offset: 2px;
}

/* Tooltip styles - EXACT copy from language switcher */
.product-description-container .description-toggle-btn,
.shop-product-wrap .description-toggle-btn,
.description-toggle-btn {
  position: relative;
  display: inline-block;
}

.product-description-container .description-toggle-btn::before,
.shop-product-wrap .description-toggle-btn::before,
.description-toggle-btn::before {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.15s ease-in-out;
  z-index: 1000;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.product-description-container .description-toggle-btn::after,
.shop-product-wrap .description-toggle-btn::after,
.description-toggle-btn::after {
  content: '';
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: all 0.15s ease-in-out;
  z-index: 1000;
  pointer-events: none;
}

.product-description-container .description-toggle-btn:hover::before,
.product-description-container .description-toggle-btn:hover::after,
.shop-product-wrap .description-toggle-btn:hover::before,
.shop-product-wrap .description-toggle-btn:hover::after,
.description-toggle-btn:hover::before,
.description-toggle-btn:hover::after {
  opacity: 1;
  visibility: visible;
  transition-delay: 0.3s;
}

.product-description-container .description-toggle-btn:focus::before,
.product-description-container .description-toggle-btn:focus::after,
.shop-product-wrap .description-toggle-btn:focus::before,
.shop-product-wrap .description-toggle-btn:focus::after,
.description-toggle-btn:focus::before,
.description-toggle-btn:focus::after {
  opacity: 1;
  visibility: visible;
}

/* Remove native browser tooltip - no title attribute needed */

/* Icon styling */
.description-toggle-btn i {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.description-toggle-btn:hover i {
  transform: scale(1.1);
}

/* Ensure tooltips don't interfere with layout */
.description-toggle-btn {
  overflow: visible;
}

/* Mobile adjustments for tooltips */
@media (max-width: 768px) {
  /* Hide toggle button completely on mobile */
  .description-toggle-btn,
  .shop-product-wrap .description-toggle-btn,
  .product-description-container .description-toggle-btn {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
  
  .description-toggle-btn::before {
    font-size: 12px;
    padding: 6px 10px;
    top: calc(100% + 6px);
  }
  
  .description-toggle-btn::after {
    border-width: 5px;
    top: calc(100% + 1px);
  }
  
  /* Faster tooltip on mobile */
  .description-toggle-btn:hover::before,
  .description-toggle-btn:hover::after {
    transition-delay: 0.2s;
  }
  
  /* Larger touch target on mobile */
  .description-toggle-btn {
    padding: 8px 12px !important;
    font-size: 16px !important;
  }
  
  .description-toggle-btn i {
    font-size: 14px;
  }
}

/* Grid view product names standardization */
.shop-product-wrap .product-caption .product-name {
  height: 2.8em !important; /* Fixed height for 2 lines */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  margin-bottom: 10px !important;
}

.shop-product-wrap .product-caption .product-name a {
  font-size: 16px !important;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  line-height: 1.4;
  display: block;
  transition: color 0.3s ease;
}

/* List view product names standardization */
.shop-product-wrap .product-content-list .product-name {
  height: 2.8em !important; /* Fixed height for 2 lines */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  margin-bottom: 15px !important;
}

.shop-product-wrap .product-content-list .product-name a {
  font-size: 18px !important;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  line-height: 1.4;
  display: block;
  transition: color 0.3s ease;
}

/* List view description standardization */
.shop-product-wrap .product-content-list .product-description {
  display: -webkit-box;
  -webkit-line-clamp: 4; /* More lines for list view */
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
  height: calc(1.5em * 4); /* Fixed height for 4 lines */
  font-size: 14px;
  color: #666;
  text-align: left;
  transition: all 0.3s ease;
}

.shop-product-wrap .product-content-list .product-description.expanded {
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

/* Manufacturer name standardization */
.shop-product-wrap .manufacturer-name {
  overflow: hidden;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.shop-product-wrap .manufacturer-name a {
  font-size: 13px;
  color: #666;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Price box standardization */
.shop-product-wrap .price-box {
  height: auto;
  min-height: 2em;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  gap: 8px;
  flex-wrap: wrap;
}

/* Price range in product grid — keep on one line with smaller font */
.shop-product-wrap .price-box .price-regular {
  white-space: nowrap;
  font-size: 16px;
}

.shop-product-wrap .price-box .price-range-note {
  margin-top: 0;
}

.shop-product-wrap .product-content-list .price-box {
  justify-content: flex-start;
}

/* ========================================
   VIEW MODE CONTROLS
   ======================================== */

/* Default: Grid View */
.shop-product-wrap {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: -30px;
}

.shop-product-wrap .product-item {
  display: block;
  margin-bottom: 30px;
}

.shop-product-wrap .product-list-item {
  display: none;
}

/* List View */
.shop-product-wrap.list-view .product-item {
  display: none !important;
}

.shop-product-wrap.list-view .product-list-item {
  display: flex !important;
  width: 100%;
  margin-bottom: 30px;
  padding: 20px;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fff;
  transition: box-shadow 0.3s ease;
}

.shop-product-wrap.list-view .product-list-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.shop-product-wrap.list-view .product-list-item .product-thumb {
  flex: 0 0 200px !important;
  margin-right: 20px;
  margin-bottom: 0;
}

.shop-product-wrap.list-view .product-list-item .product-content-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Grid View (explicit) */
.shop-product-wrap.grid-view .product-item {
  display: block !important;
}

.shop-product-wrap.grid-view .product-list-item {
  display: none !important;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .shop-product-wrap .product-description {
    -webkit-line-clamp: 2;
    line-clamp: 2;
    height: calc(1.4em * 2);
    font-size: 13px;
  }
  
  .shop-product-wrap .product-content-list .product-description {
    -webkit-line-clamp: 3;
    line-clamp: 3;
    height: calc(1.5em * 3);
  }
  
  .shop-product-wrap .product-caption .product-name a {
    font-size: 15px !important;
  }
  
  .shop-product-wrap .product-content-list .product-name a {
    font-size: 17px !important;
  }
  
  .shop-product-wrap.list-view .product-list-item .product-thumb {
    flex: 0 0 150px !important;
    margin-right: 15px;
  }
}

@media (max-width: 768px) {
  /* Mobile: Show full description without truncation */
  .shop-product-wrap .product-description {
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    font-size: 13px;
    margin: 8px 0;
    line-height: 1.5;
  }
  
  .shop-product-wrap .product-content-list .product-description {
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    font-size: 13px;
    line-height: 1.5;
  }
  
  /* Hide toggle button on mobile since we show full description */
  .shop-product-wrap .description-toggle-btn {
    display: none !important;
  }
  
  .shop-product-wrap .product-caption .product-name {
    height: 2.4em !important;
  }
  
  .shop-product-wrap .product-caption .product-name a {
    font-size: 14px !important;
  }
  
  .shop-product-wrap .product-content-list .product-name {
    height: 2.4em !important;
  }
  
  .shop-product-wrap .product-content-list .product-name a {
    font-size: 16px !important;
  }
  
  .shop-product-wrap .manufacturer-name a {
    font-size: 12px;
  }
  
  .shop-product-wrap .price-box {
    min-height: 1.8em;
  }
  
  .shop-product-wrap .price-box .price-regular {
    font-size: 14px;
  }
  
  /* List view becomes vertical on mobile */
  .shop-product-wrap.list-view .product-list-item {
    flex-direction: column;
    padding: 15px;
  }
  
  .shop-product-wrap.list-view .product-list-item .product-thumb {
    flex: none !important;
    margin-right: 0;
    margin-bottom: 15px;
    align-self: center;
    max-width: 200px;
  }
}

@media (max-width: 576px) {
  /* Small mobile: Still show full description */
  .shop-product-wrap .product-description {
    font-size: 12px;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
  
  .shop-product-wrap .product-content-list .product-description {
    font-size: 12px;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
  
  .shop-product-wrap .product-caption .product-name {
    height: 2em !important;
  }
  
  .shop-product-wrap .product-caption .product-name a {
    font-size: 13px !important;
  }
  
  .shop-product-wrap .product-content-list .product-name {
    height: 2em !important;
  }
  
  .shop-product-wrap .product-content-list .product-name a {
    font-size: 15px !important;
  }
  
  .shop-product-wrap.list-view .product-list-item .product-thumb {
    max-width: 150px;
  }
}

/* Fallback for browsers that don't support -webkit-line-clamp */
@supports not (-webkit-line-clamp: 1) {
  .shop-product-wrap .product-description {
    max-height: calc(1.4em * 3);
    overflow: hidden;
    position: relative;
  }
  
  .shop-product-wrap .product-description::after {
    content: '...';
    position: absolute;
    bottom: 0;
    right: 0;
    background: white;
    padding-left: 20px;
  }
  
  .shop-product-wrap .product-description.expanded {
    max-height: none !important;
    overflow: visible !important;
  }
  
  .shop-product-wrap .product-description.expanded::after {
    display: none;
  }
  
  .shop-product-wrap .product-caption .product-name,
  .shop-product-wrap .product-content-list .product-name {
    max-height: 2.8em;
    overflow: hidden;
  }
  
  @media (max-width: 768px) {
    .shop-product-wrap .product-description {
      max-height: none !important;
      overflow: visible !important;
    }
    
    .shop-product-wrap .product-description::after {
      display: none;
    }
    
    .shop-product-wrap .product-content-list .product-description {
      max-height: none !important;
      overflow: visible !important;
    }
    
    .shop-product-wrap .product-content-list .product-description::after {
      display: none;
    }
    
    .shop-product-wrap .product-caption .product-name,
    .shop-product-wrap .product-content-list .product-name {
      max-height: 2.4em;
    }
  }
  
  @media (max-width: 576px) {
    .shop-product-wrap .product-caption .product-name,
    .shop-product-wrap .product-content-list .product-name {
      max-height: 2em;
    }
  }
}

/* Product item container standardization */
.shop-product-wrap .product-item,
.shop-product-wrap .product-list-item {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.shop-product-wrap .product-item .product-caption,
.shop-product-wrap .product-list-item .product-content-list {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Ensure consistent spacing */
.shop-product-wrap .product-item .product-thumb,
.shop-product-wrap .product-list-item .product-thumb {
  margin-bottom: 15px;
}

/* Grid layout improvements */
.shop-product-wrap .row {
  display: flex;
  flex-wrap: wrap;
}

.shop-product-wrap .col-lg-4,
.shop-product-wrap .col-md-6,
.shop-product-wrap .col-sm-6 {
  display: flex;
  margin-bottom: 30px;
}

.shop-product-wrap .product-item {
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Force mobile behavior for testing */
@media (max-width: 768px) {
  .product-description-container .product-description {
    display: block !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    overflow: visible !important;
    text-overflow: unset !important;
    height: auto !important;
    max-height: none !important;
  }
}

/* ========== product-descriptions-override ========== */
/* ========================================
   PRODUCT DESCRIPTIONS OVERRIDE - FORCE CORRECT BEHAVIOR
   ======================================== */

/* Force mobile behavior - show full descriptions */
@media (max-width: 768px) {
  .product-description-container .product-description,
  .shop-product-wrap .product-description-container .product-description,
  .product-description,
  .shop-product-wrap .product-description {
    display: block !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    overflow: visible !important;
    text-overflow: unset !important;
    height: auto !important;
    max-height: none !important;
    line-height: 1.5 !important;
  }
  
  .product-description-container .description-toggle-btn,
  .shop-product-wrap .description-toggle-btn,
  .description-toggle-btn {
    display: none !important;
  }
}

/* Desktop behavior - ensure buttons show for long descriptions */
@media (min-width: 769px) {
  .product-description-container .description-toggle-btn,
  .shop-product-wrap .description-toggle-btn {
    display: inline-block !important;
    background: none !important;
    border: none !important;
    color: var(--color-text-muted, #707070) !important;
    font-size: 14px !important;
    cursor: pointer !important;
    padding: 6px 8px !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
    position: relative !important;
  }
  
  .product-description-container .description-toggle-btn:hover,
  .shop-product-wrap .description-toggle-btn:hover {
    color: var(--color-primary, #010096) !important;
    background-color: rgba(1, 0, 150, 0.05) !important;
    transform: translateY(-1px) !important;
  }
  
  /* Ensure descriptions are truncated on desktop when not expanded */
  .product-description-container .product-description:not(.expanded),
  .shop-product-wrap .product-description-container .product-description:not(.expanded),
  .shop-product-wrap .product-description:not(.expanded),
  p.product-description:not(.expanded),
  p.product-description[data-expanded="false"] {
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    height: calc(1.4em * 3) !important;
    max-height: calc(1.4em * 3) !important;
  }
  
  .shop-product-wrap .product-content-list .product-description:not(.expanded),
  .product-content-list p.product-description[data-expanded="false"] {
    -webkit-line-clamp: 4 !important;
    line-clamp: 4 !important;
    height: calc(1.5em * 4) !important;
    max-height: calc(1.5em * 4) !important;
  }
  
  /* CRITICAL: Expanded state on desktop - highest specificity */
  .product-description-container .product-description.expanded,
  .shop-product-wrap .product-description-container .product-description.expanded,
  .shop-product-wrap .product-description.expanded,
  .shop-product-wrap .product-content-list .product-description.expanded,
  p.product-description.expanded,
  p.product-description[data-expanded="true"] {
    display: block !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    text-overflow: unset !important;
  }
}

/* Fallback for older browsers */
@supports not (-webkit-line-clamp: 1) {
  @media (min-width: 769px) {
    .product-description-container .product-description:not(.expanded),
    .shop-product-wrap .product-description:not(.expanded),
    p.product-description[data-expanded="false"] {
      max-height: calc(1.4em * 3) !important;
      overflow: hidden !important;
      position: relative !important;
    }
    
    .product-description-container .product-description:not(.expanded)::after,
    .shop-product-wrap .product-description:not(.expanded)::after,
    p.product-description[data-expanded="false"]::after {
      content: '...' !important;
      position: absolute !important;
      bottom: 0 !important;
      right: 0 !important;
      background: white !important;
      padding-left: 20px !important;
    }
    
    .product-description-container .product-description.expanded,
    .shop-product-wrap .product-description.expanded,
    p.product-description[data-expanded="true"] {
      max-height: none !important;
      overflow: visible !important;
    }
    
    .product-description-container .product-description.expanded::after,
    .shop-product-wrap .product-description.expanded::after,
    p.product-description[data-expanded="true"]::after {
      display: none !important;
    }
  }
  
  @media (max-width: 768px) {
    .product-description-container .product-description,
    .shop-product-wrap .product-description {
      max-height: none !important;
      overflow: visible !important;
    }
    
    .product-description-container .product-description::after,
    .shop-product-wrap .product-description::after {
      display: none !important;
    }
  }
}

/* ========== product-title ========== */
/* Product Title Component Styles */
/* Handles title truncation with native browser tooltip */

.product-title-wrapper {
  position: relative;
  margin-bottom: 6px; /* Reduced from 10px */
}

.product-title-wrapper a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-title-wrapper a:hover {
  color: var(--color-primary, #010096);
}

.product-title-text {
  font-size: 14px;
  font-weight: 500;
  color: #242424;
  transition: color 0.3s ease;
  cursor: pointer;
  line-height: 1.3; /* Reduced from 1.4 for more compact spacing */
}

.product-title-text.multi-line {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3; /* Consistent line-height */
  max-height: 2.6em; /* Adjusted for new line-height (1.3 * 2) */
  word-break: break-word;
  hyphens: auto;
}

.product-title-text.single-line {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3; /* Consistent line-height */
}

/* Override conflicting styles from other CSS files */
.shop-product-wrap .product-caption .product-title-wrapper.product-name {
  height: auto !important;
  margin-bottom: 4px !important;
  padding-bottom: 0 !important;
  overflow: visible !important;
}

.shop-product-wrap .product-caption .product-title-wrapper.product-name a {
  font-size: 14px !important;
  line-height: 1.3 !important;
  height: auto !important;
  display: block !important;
}

/* Grid View Specific Styles */
.shop-product-wrap:not(.list-view) .product-title-wrapper {
  margin-bottom: 8px; /* Reduced from 10px */
  /* Remove fixed min-height to allow dynamic spacing */
}

.shop-product-wrap:not(.list-view) .product-title-wrapper.product-name {
  /* Override the fixed height from product-descriptions.css */
  height: auto !important;
  margin-bottom: 4px !important;
  padding-bottom: 0 !important;
}

.shop-product-wrap:not(.list-view) .product-title-text {
  font-size: 14px;
  font-weight: 500;
  /* Let the content determine the height naturally */
}

/* List View - Keep original styling */
.shop-product-wrap.list-view .product-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.shop-product-wrap.list-view .product-name a {
  color: #242424;
  text-decoration: none;
  line-height: 1.3;
}

.shop-product-wrap.list-view .product-name a:hover {
  color: var(--color-primary, #010096);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .product-title-text {
    font-size: 13px;
  }
  
  /* Override tablet styles from product-descriptions.css */
  .shop-product-wrap .product-caption .product-title-wrapper.product-name {
    height: auto !important;
    margin-bottom: 4px !important;
  }
  
  .shop-product-wrap .product-caption .product-title-wrapper.product-name a {
    font-size: 13px !important;
  }
}

@media (max-width: 768px) {
  .product-title-wrapper {
    margin-bottom: 5px; /* Reduced from 8px */
  }
  
  .product-title-text {
    font-size: 12px;
    line-height: 1.3;
  }
  
  .product-title-text.multi-line {
    max-height: 2.6em;
  }
  
  /* Override mobile styles from product-descriptions.css */
  .shop-product-wrap .product-caption .product-title-wrapper.product-name {
    height: auto !important;
    margin-bottom: 3px !important;
  }
  
  .shop-product-wrap .product-caption .product-title-wrapper.product-name a {
    font-size: 12px !important;
  }
}

@media (max-width: 576px) {
  .product-title-wrapper {
    margin-bottom: 4px; /* Further reduced */
  }
  
  .product-title-text {
    font-size: 11px;
  }
  
  /* Override small mobile styles from product-descriptions.css */
  .shop-product-wrap .product-caption .product-title-wrapper.product-name {
    height: auto !important;
    margin-bottom: 2px !important;
  }
  
  .shop-product-wrap .product-caption .product-title-wrapper.product-name a {
    font-size: 11px !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .product-title-text {
    color: #000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .product-title-text {
    transition: none;
  }
}

/* ========== products-filters ========== */
/* Products Page - Search and Filters Styling */

/* Search Widget */
.sidebar-single .input-group {
  display: flex;
  gap: 0.5rem;
}

.sidebar-single .input-group .form-control {
  flex: 1;
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border, #ddd);
  border-radius: 4px;
  font-size: 14px;
}

.sidebar-single .input-group .btn {
  padding: 0.5rem 1rem;
  background-color: var(--color-primary);
  color: var(--color-text-light, white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  min-width: 45px;
}

.sidebar-single .input-group .btn:hover {
  background-color: var(--color-primary-dark, #000070);
}

/* Active Filters */
.active-filters {
  margin-bottom: 2rem;
  padding: 1rem;
  background-color: var(--color-bg-light, #f8f9fa);
  border-radius: 4px;
}

.active-filters .d-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.active-filters .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-secondary) !important;
  color: var(--color-text-light, white);
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-weight: normal;
}

.active-filters .badge a {
  color: var(--color-text-light, white);
  text-decoration: none;
  font-size: 1.2rem;
  line-height: 1;
  font-weight: bold;
}

.active-filters .badge a:hover {
  opacity: 0.8;
}

.active-filters .btn-outline-secondary {
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  border: 1px solid var(--color-text-muted, #6c757d);
  border-radius: 4px;
  color: var(--color-text-muted, #6c757d);
  text-decoration: none;
  background-color: var(--color-text-light, white);
  display: inline-block;
}

.active-filters .btn-outline-secondary:hover {
  background-color: var(--color-text-muted, #6c757d);
  color: var(--color-text-light, white);
}


/* ========== price-range-slider ========== */
/* Price Range Slider - Dual Range */
.price-range-slider {
  padding: 1rem 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.price-range-loading {
  padding: 1rem;
  text-align: center;
  color: #666;
  font-size: 0.9rem;
}

.price-range-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: nowrap;
  min-height: 24px;
}

.price-range-title {
  font-weight: 600;
  color: #333;
  font-size: 1rem;
}

.price-range-values {
  font-weight: 500;
  color: var(--color-primary, #010096);
  font-size: 0.9rem;
  background-color: #f8f9fa;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  border: 1px solid #e9ecef;
}

/* Dual Range Slider Container */
.dual-range-slider {
  position: relative;
  height: 40px;
  margin: 1.5rem 0;
}

/* Slider Track */
.slider-track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 6px;
  background-color: #e9ecef;
  border-radius: 3px;
  transform: translateY(-50%);
}

/* Active Range */
.slider-range {
  position: absolute;
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary, #010096), #0056b3);
  border-radius: 3px;
  transition: all 0.2s ease;
}

/* Slider Thumbs */
.slider-thumb {
  position: absolute;
  top: 50%;
  width: 100%;
  height: 20px;
  background: transparent;
  pointer-events: none;
  transform: translateY(-50%);
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  cursor: pointer;
}

.slider-thumb::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #fff;
  border: 3px solid var(--color-primary, #010096);
  border-radius: 50%;
  cursor: pointer;
  pointer-events: all;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.slider-thumb::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #fff;
  border: 3px solid var(--color-primary, #010096);
  border-radius: 50%;
  cursor: pointer;
  pointer-events: all;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.slider-thumb:hover::-webkit-slider-thumb {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.slider-thumb:hover::-moz-range-thumb {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.slider-thumb:active::-webkit-slider-thumb {
  transform: scale(1.2);
  border-color: #0056b3;
}

.slider-thumb:active::-moz-range-thumb {
  transform: scale(1.2);
  border-color: #0056b3;
}

/* Action Buttons */
.price-range-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn-apply {
  flex: 2;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, var(--color-primary, #010096), #0056b3);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-apply:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(1, 0, 150, 0.3);
}

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

.btn-reset {
  flex: 1;
  padding: 0.75rem 1rem;
  background: #fff;
  color: #666;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-reset:hover {
  background: #f8f9fa;
  border-color: #dee2e6;
  color: #495057;
}

/* Responsive Design */
@media (max-width: 768px) {
  .price-range-slider {
    padding: 0.75rem 0;
  }
  
  .price-range-header {
    /* Manter na mesma linha no mobile */
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  
  .price-range-title {
    font-size: 0.9rem;
    flex-shrink: 0;
  }
  
  .price-range-values {
    font-size: 0.85rem;
    padding: 0.2rem 0.6rem;
    flex-shrink: 0;
  }
  
  .dual-range-slider {
    margin: 1rem 0;
    height: 35px;
  }
  
  .slider-thumb::-webkit-slider-thumb {
    width: 24px;
    height: 24px;
  }
  
  .slider-thumb::-moz-range-thumb {
    width: 24px;
    height: 24px;
  }
  
  .price-range-actions {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.5rem;
  }
  
  .btn-apply,
  .btn-reset {
    flex: 1;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .price-range-header {
    gap: 0.25rem;
  }
  
  .price-range-title {
    font-size: 0.85rem;
  }
  
  .price-range-values {
    font-size: 0.8rem;
    padding: 0.15rem 0.5rem;
  }
  
  .dual-range-slider {
    height: 32px;
  }
  
  .slider-thumb::-webkit-slider-thumb {
    width: 16px;
    height: 16px;
    border-width: 2px;
  }
  
  .slider-thumb::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-width: 2px;
  }
}

/* Sidebar integration - remove extra spacing */
.sidebar-single .price-range-slider {
  padding: 0;
  margin-top: -0.5rem;
}

.sidebar-single .price-range-header {
  margin-bottom: 1rem;
}

.sidebar-single .dual-range-slider {
  margin: 1rem 0;
}

.sidebar-single .price-range-actions {
  margin-top: 1.5rem;
}

/* Search section styling */
.price-range-search-section {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.price-range-search-section .price-range-slider {
  padding: 0;
}

.price-range-search-section .price-range-header {
  margin-bottom: 1rem;
}

.price-range-search-section .price-range-title {
  font-size: 1.1rem;
  color: #495057;
}

/* Animation for value changes */
.price-range-values {
  transition: all 0.3s ease;
}

.price-range-values:hover {
  background-color: #e9ecef;
  transform: scale(1.05);
}

/* Focus states for accessibility */
.slider-thumb:focus {
  outline: 2px solid var(--color-primary, #010096);
  outline-offset: 2px;
}

.btn-apply:focus,
.btn-reset:focus {
  outline: 2px solid var(--color-primary, #010096);
  outline-offset: 2px;
}

/* ========== product-actions ========== */
/* Product View Toggle - Grid/List */

/* Hide product-item in list view, show in grid view */
.shop-product-wrap.list-view .product-item {
  display: none;
}

.shop-product-wrap.grid-view .product-item {
  display: block;
  animation-name: zoomIn;
  animation-duration: 1s;
  padding: 0;
}

/* Hide product-list-item in grid view, show in list view */
.shop-product-wrap.grid-view .product-list-item {
  display: none !important;
}

.shop-product-wrap.list-view .product-list-item {
  display: flex;
  animation-name: fadeInRight;
  animation-duration: 1s;
}

/* Make columns full width in list view */
.shop-product-wrap.row.list-view .col-md-4,
.shop-product-wrap.row.list-view .col-sm-6 {
  flex: 0 0 100%;
  max-width: 100%;
}

/* List item layout */
.product-list-item {
  display: flex;
  flex-direction: row;
  margin-bottom: 30px;
  border: 1px solid var(--color-border, #e5e5e5);
  border-radius: 8px;
  padding: 20px;
  transition: all 0.3s ease;
}

.product-list-item:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-list-item .product-thumb {
  flex: 0 0 300px;
  margin: 0;
  margin-right: 30px;
  position: relative;
}

.product-list-item .product-thumb img {
  width: 100%;
  height: auto;
  max-height: 250px;
}

.product-list-item .product-thumb .sec-img {
  display: none;
}

.product-list-item .product-content-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-list-item .product-name {
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: 500;
}

.product-list-item .product-name a {
  color: var(--color-text-primary, #242424);
  text-decoration: none;
}

.product-list-item .product-name a:hover {
  color: var(--color-primary, #CC2121);
}

.product-list-item .price-box {
  margin-top: 15px;
  margin-bottom: 15px;
}

.product-list-item .price-regular {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--color-primary, #CC2121);
}

.product-list-item .price-old {
  font-size: 1.4rem;
  color: var(--color-text-muted, #999);
  margin-left: 10px;
}

.product-list-item .button-group {
  position: static;
  transform: none;
  flex-direction: row;
  opacity: 1;
  visibility: visible;
  margin-top: 20px;
  gap: 10px;
}

.product-list-item .product-description {
  color: var(--color-text-muted, #666);
  line-height: 1.6;
  margin-top: 10px;
}

/* Responsive List View */
@media (max-width: 768px) {
  .product-list-item {
    flex-direction: column;
  }
  
  .product-list-item .product-thumb {
    flex: 0 0 auto;
    margin-right: 0;
    margin-bottom: 20px;
    max-width: 100%;
  }
  
  .product-list-item .product-content-list {
    text-align: center;
  }
}

/* Product Action Buttons */

.product-item {
  position: relative;
}

.product-item .button-group {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 10;
}

.product-item:hover .button-group {
  opacity: 1;
  visibility: visible;
}

.button-group a {
  width: 40px;
  height: 40px;
  background-color: var(--color-background, #fff);
  border: 1px solid var(--color-border, #e5e5e5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-primary, #242424);
  transition: all 0.3s ease;
  text-decoration: none;
}

.button-group a:hover {
  background-color: var(--color-primary, #CC2121);
  color: var(--color-text-light, #fff);
  border-color: var(--color-primary, #CC2121);
  transform: scale(1.1);
}

.button-group a i {
  font-size: 16px;
}

/* Add to Cart Button */
.box-cart {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 10;
}

.product-item:hover .box-cart {
  bottom: 15px;
  opacity: 1;
  visibility: visible;
}

.box-cart .btn-cart {
  background-color: var(--color-secondary, #0066cc);
  color: var(--color-text-light, #fff);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  border: none;
  padding: 10px 20px;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.box-cart .btn-cart:hover {
  background-color: var(--color-text-primary, #242424);
}

/* Product Identity (Manufacturer) */
.manufacturer-name {
  line-height: 1;
  margin-bottom: 8px;
}

.manufacturer-name a {
  font-size: 13px;
  line-height: 1;
  color: var(--color-text-muted, #555);
  text-transform: capitalize;
  text-decoration: none;
}

.manufacturer-name a:hover {
  color: var(--color-primary, #CC2121);
}

/* List View Specific */
.product-list-item .manufacturer-name {
  margin-bottom: 10px;
}

.product-list-item .box-cart {
  position: static;
  opacity: 1;
  visibility: visible;
  margin-top: 15px;
}

/* View Toggle Styles */
.product-view-mode {
  display: flex;
  gap: 10px;
  margin-right: 20px;
}

.product-view-mode a {
  width: 35px;
  height: 35px;
  border: 1px solid var(--color-border, #e5e5e5);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted, #666);
  background-color: var(--color-background, #fff);
  transition: all 0.3s ease;
  text-decoration: none;
}

.product-view-mode a:hover,
.product-view-mode a.active {
  background-color: var(--color-primary, #CC2121);
  color: var(--color-text-light, #fff) !important;
  border-color: var(--color-primary, #CC2121);
}

.product-view-mode a:hover i,
.product-view-mode a.active i {
  color: var(--color-text-light, #fff) !important;
}

.top-bar-left {
  display: flex;
  align-items: center;
}

.product-amount {
  margin: 0;
}

.product-amount p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 14px;
}

/* Product Badge Improvements */
.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.product-label {
  padding: 5px 12px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-text-light);
}

.product-label.new {
  background-color: var(--color-success);
}

.product-label.discount {
  background-color: var(--color-error);
}

.product-label.out-of-stock {
  background-color: var(--color-text-muted);
}

.product-label.scratch-dent {
  background-color: #e67e22;
}

.product-label.reconditioned {
  background-color: #17a2b8;
}


/* ========== product-image-standardization ========== */
/* ========================================
   PRODUCT IMAGE STANDARDIZATION
   Standardization of containers and spacing for product images
   ======================================== */

/* ========================================
   STANDARD CONTAINER FOR PRODUCT IMAGES
   ======================================== */

.product-thumb {
  position: relative;
  width: 100%;
  /* Aspect ratio 1:1 (square) for consistency */
  aspect-ratio: 1 / 1;
  background-color: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.product-thumb:hover {
  border-color: #dee2e6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Link inside container should occupy full space */
.product-thumb > a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-decoration: none;
}

/* ========================================
   IMAGE STANDARDIZATION
   ======================================== */

.product-thumb img,
.product-thumb .pri-img,
.product-thumb .sec-img {
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  transition: all 0.4s ease;
  border-radius: 4px;
}

/* Secondary image (hover effect) */
.product-thumb .sec-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  visibility: hidden;
}

/* Hover effect - show secondary image */
.product-item:hover .product-thumb .sec-img {
  opacity: 1;
  visibility: visible;
}

.product-item:hover .product-thumb .pri-img {
  opacity: 0;
  visibility: hidden;
}

/* ========================================
   BADGES AND OVERLAY ELEMENTS
   ======================================== */

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.product-label {
  background: #dc3545;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-label.discount {
  background: #28a745;
}

.product-label.out-of-stock {
  background: #6c757d;
}

.product-label.new {
  background: #007bff;
}

/* ========================================
   ACTION BUTTONS
   ======================================== */

.button-group {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 10;
}

.button-group a {
  position: relative;
  width: 35px;
  height: 35px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #dee2e6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #495057;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  z-index: 10;
}

.product-item:hover .button-group a {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.button-group a:hover {
  background: #007bff;
  color: white;
  border-color: #007bff;
  transform: scale(1.1);
}

/* ========================================
   ADD TO CART BUTTON
   ======================================== */

.box-cart {
  position: absolute;
  bottom: -50px;
  left: 10px;
  right: 10px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 5;
}

.product-item:hover .box-cart {
  bottom: 10px;
  opacity: 1;
  visibility: visible;
}

.btn-cart {
  width: 100%;
  background: #007bff;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-cart:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.btn-cart:disabled {
  background: #6c757d;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

/* Tablets */
@media (max-width: 992px) {
  .product-thumb {
    margin-bottom: 12px;
  }
  
  /* Hide button-group on tablets and mobile */
  .button-group {
    display: none !important;
    visibility: hidden !important;
  }
  
  .button-group a {
    display: none !important;
  }
  
  .product-badge {
    top: 8px;
    left: 8px;
  }
  
  .box-cart {
    left: 8px;
    right: 8px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .product-thumb {
    margin-bottom: 10px;
    border-radius: 6px;
  }
  
  .product-thumb img,
  .product-thumb .pri-img,
  .product-thumb .sec-img {
    max-width: 95%;
    max-height: 95%;
  }
  
  /* Hide button-group completely on mobile */
  .button-group {
    display: none !important;
    visibility: hidden !important;
  }
  
  .button-group a {
    display: none !important;
  }
  
  .product-badge {
    top: 6px;
    left: 6px;
  }
  
  .product-label {
    padding: 3px 6px;
    font-size: 11px;
  }
  
  .box-cart {
    left: 6px;
    right: 6px;
  }
  
  .btn-cart {
    padding: 6px 12px;
    font-size: 12px;
  }
}

/* ========================================
   LIST VIEW ADJUSTMENTS
   ======================================== */

.shop-product-wrap.list-view .product-thumb {
  aspect-ratio: 4 / 3;
  max-width: 300px;
  margin-right: 20px;
  margin-bottom: 0;
}

.shop-product-wrap.list-view .product-thumb img,
.shop-product-wrap.list-view .product-thumb .pri-img {
  max-width: 100%;
  max-height: 100%;
}

/* Hide hover effects in list view */
.shop-product-wrap.list-view .button-group,
.shop-product-wrap.list-view .box-cart {
  display: none;
}

/* ========================================
   LIST VIEW MOBILE & TABLET FIXES
   ======================================== */

/* Tablet adjustments (768px - 991px) */
@media only screen and (min-width: 768px) and (max-width: 991.98px) {
  .product-list-item .product-thumb {
    aspect-ratio: 1 / 1;
    max-width: 150px;
    width: 150px;
    height: 150px;
    margin-right: 15px;
    margin-bottom: 0;
    flex-shrink: 0;
  }
  
  .product-content-list {
    padding-left: 15px;
    flex: 1;
  }
}

/* Mobile adjustments (max-width: 767px) */
@media only screen and (max-width: 767.98px) {
  .product-list-item {
    display: block !important;
    padding: 15px;
  }
  
  .product-list-item .product-thumb {
    aspect-ratio: 4 / 3;
    max-width: 100%;
    width: 100%;
    height: auto;
    margin-right: 0;
    margin-bottom: 15px;
    flex-basis: auto;
  }
  
  .product-list-item .product-thumb img,
  .product-list-item .product-thumb .pri-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
  }
  
  .product-content-list {
    padding-left: 0;
    max-width: 100%;
    flex-basis: auto;
    margin-top: 0;
  }
}

/* ========================================
   LOADING STATE
   ======================================== */

.product-thumb.loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ========================================
   NO IMAGE PLACEHOLDER
   ======================================== */

.product-thumb .no-image-placeholder {
  width: 60%;
  height: 60%;
  background: #e9ecef;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-size: 14px;
  text-align: center;
  flex-direction: column;
}

.product-thumb .no-image-placeholder i {
  font-size: 24px;
  margin-bottom: 8px;
  opacity: 0.5;
}

/* ========================================
   FALLBACK IMAGE STYLING
   ======================================== */

.no-image-fallback {
  background-color: #f8f9fa !important;
  border: 1px solid #e9ecef !important;
  object-fit: contain !important;
  padding: 10px !important;
}

/* Ensure fallback images maintain aspect ratio */
.product-thumb .no-image-fallback,
.pro-large-img .no-image-fallback,
.pro-nav-thumb .no-image-fallback {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
}

/* Loading state for images */
.product-thumb img.loading,
.pro-large-img img.loading,
.pro-nav-thumb img.loading {
  opacity: 0.7;
  filter: blur(1px);
  transition: all 0.3s ease;
}

/* Error state styling */
.image-error {
  background-color: #f8f9fa;
  border: 2px dashed #dee2e6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-size: 14px;
  text-align: center;
  padding: 20px;
  width: 100%;
  height: 100%;
}

.image-error i {
  font-size: 24px;
  margin-bottom: 8px;
  color: #adb5bd;
}

/* Product detail page specific styling */
.pro-large-img .no-image-fallback {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

.pro-nav-thumb .no-image-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive adjustments for fallback images */
@media (max-width: 768px) {
  .no-image-fallback {
    padding: 5px !important;
  }
  
  .pro-nav-thumb .no-image-fallback {
    width: 60px;
    height: 60px;
  }
}
/* ========================================
   MINICART IMAGE STYLING
   ======================================== */

.minicart-product-image {
  object-fit: contain !important;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 2px;
}

.minicart-thumb {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
  border-radius: 4px;
  overflow: hidden;
}

.minicart-thumb a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.minicart-thumb .no-image-fallback {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}
/* ========================================
   CART TABLE IMAGE STYLING
   ======================================== */

.cart-product-image {
  object-fit: contain !important;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 4px;
  max-width: 100px;
  max-height: 100px;
}

.pro-thumbnail {
  width: 120px;
  text-align: center;
}

.pro-thumbnail a {
  display: inline-block;
  width: 100px;
  height: 100px;
  background-color: #f8f9fa;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pro-thumbnail .no-image-fallback {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

/* Responsive cart images */
@media (max-width: 768px) {
  .pro-thumbnail {
    width: 80px;
  }
  
  .pro-thumbnail a {
    width: 80px;
    height: 80px;
  }
  
  .cart-product-image {
    max-width: 80px;
    max-height: 80px;
  }
}

/* ========================================
   LIST VIEW HOVER OVERRIDE
   Remove hover effects from list view to keep images static
   ======================================== */

/* Remove hover effect from list view - keep images static */
.product-list-item:hover .product-thumb .sec-img {
  opacity: 0 !important;
  visibility: hidden !important;
}

.product-list-item:hover .product-thumb .pri-img {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Ensure primary image is always visible in list view */
.product-list-item .product-thumb .pri-img {
  opacity: 1;
  visibility: visible;
}

/* Ensure secondary image is always hidden in list view */
.product-list-item .product-thumb .sec-img {
  opacity: 0;
  visibility: hidden;
}
/* ========================================
   MOBILE VIEW TOGGLE REMOVAL
   Hide list view option on mobile - only show grid view
   ======================================== */

/* Hide view toggle on mobile (Safari/iOS optimized) */
@media only screen and (max-width: 767.98px) {
  .product-view-mode,
  .top-bar-left .product-view-mode,
  .shop-top-bar .product-view-mode {
    display: none !important;
  }
  
  /* Show shop-top-bar on mobile with stacked layout */
  .shop-top-bar {
    display: block !important;
  }

  .shop-top-bar .top-bar-right {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .shop-top-bar .top-bar-right .product-short select {
    width: 100% !important;
    max-width: 180px;
  }

  .shop-top-bar .top-bar-left {
    justify-content: center;
    padding-top: 10px;
  }
  
  /* Ensure product-list-item is hidden on mobile */
  .product-list-item {
    display: none !important;
  }
  
  /* Ensure product-item (grid) is always shown on mobile */
  .shop-product-wrap .product-item {
    display: block !important;
  }
  
  /* Force grid layout on mobile regardless of view state */
  .shop-product-wrap.list-view .product-item {
    display: block !important;
  }
  
  .shop-product-wrap.list-view .product-list-item {
    display: none !important;
  }
}

/* ========== product-detail ========== */
/* Product Detail Page Styles */

/* .product-details-inner {
  margin-bottom: 3rem;
} */

.pro-large-img {
  text-align: center;
  margin-bottom: 1rem;
}

.pro-large-img img {
  max-width: 100%;
  height: auto;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pro-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 1rem;
  justify-content: center;
}

.pro-nav-thumb {
  width: 80px;
  height: 80px;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pro-nav-thumb:hover,
.pro-nav-thumb.active {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.pro-nav-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-details-des {
  padding-left: 2rem;
}

.manufacturer-name {
  margin-bottom: 0.5rem;
}

.manufacturer-name a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-name {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-text-dark);
  line-height: 1.3;
}

.product-sku {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  background-color: #f8f9fa;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  display: inline-block;
}

.price-box {
  margin: 1.5rem 0;
  padding: 1rem 0;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

.price-regular {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
}

.price-old {
  margin-left: 1rem;
  color: var(--color-text-muted);
  font-size: 1.2rem;
}

.discount-badge {
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(238, 90, 36, 0.3);
}

.availability {
  margin: 1rem 0;
  display: flex;
  align-items: center;
  padding: 0.75rem;
  border-radius: 6px;
  background-color: #f8f9fa;
}

.availability .text-success {
  color: #28a745 !important;
  font-weight: 600;
}

.availability .text-danger {
  color: #dc3545 !important;
  font-weight: 600;
}

.product-condition {
  margin: 1rem 0;
  padding: 0.75rem;
  background-color: #f8f9fa;
  border-radius: 6px;
}

.pro-desc {
  margin: 1.5rem 0;
  line-height: 1.6;
  color: var(--color-text);
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 6px;
  border-left: 4px solid var(--color-primary);
}

.quantity-cart-box {
  margin: 2rem 0;
  gap: 1rem;
  padding: 1.5rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.quantity-cart-box h5 {
  margin: 0;
  font-weight: 600;
  color: var(--color-text-dark);
}

/* Override the original style.css rules with maximum specificity */
.product-details-des .quantity .pro-qty {
  display: flex !important;
  border: 2px solid #e0e0e0 !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  background-color: white !important;
  width: auto !important; /* Override fixed 90px width from style.css */
  float: none !important; /* Override float from style.css */
  height: auto !important; /* Override fixed 40px height from style.css */
  padding: 0 !important; /* Override padding from style.css */
}

.product-details-des .quantity .pro-qty button {
  background: #f8f9fa !important;
  border: none !important;
  padding: 0.75rem 1rem !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  font-weight: 600 !important;
  color: var(--color-text-dark) !important;
  width: auto !important; /* Override fixed 15px width from style.css */
  height: auto !important; /* Override fixed 40px height from style.css */
  display: block !important; /* Ensure buttons are visible */
  min-width: 40px !important; /* Ensure minimum clickable area */
  float: none !important; /* Override float from style.css */
  line-height: normal !important; /* Override line-height from style.css */
  text-align: center !important;
  font-size: 16px !important;
}

.product-details-des .quantity .pro-qty button:hover {
  background: var(--color-primary) !important;
  color: white !important;
}

.product-details-des .quantity .pro-qty button:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

.product-details-des .quantity .pro-qty input {
  border: none !important;
  text-align: center !important;
  width: 80px !important; /* Override fixed 28px width from style.css */
  padding: 0.75rem !important;
  float: none !important; /* Override float from style.css */
  background: white !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  height: auto !important; /* Override fixed 40px height from style.css */
  line-height: normal !important; /* Override line-height from style.css */
  outline: none !important;
}

.btn-cart2 {
  background: linear-gradient(135deg, var(--color-primary), #2c5aa0);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 8px rgba(52, 144, 220, 0.3);
}

.btn-cart2:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(52, 144, 220, 0.4);
}

.btn-cart2:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.useful-links {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
}

/* Product Details Tabs */
.product-details-reviews {
  border-top: 2px solid #e0e0e0;
  padding-top: 2rem;
  margin-top: 3rem;
}

.review-tab {
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 2rem;
  padding: 0;
  display: flex;
  gap: 0;
}

.review-tab li {
  list-style: none;
  flex: 1;
  text-align: center;
}

.review-tab li a {
  display: block;
  padding: 1rem 2rem;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  background-color: #f8f9fa;
  margin-right: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.review-tab li:last-child a {
  margin-right: 0;
}

.review-tab li a:hover,
.review-tab li a.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  background-color: white;
  transform: translateY(-2px);
}

.tab-content {
  min-height: 200px;
  padding: 2rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab-one p {
  line-height: 1.8;
  color: var(--color-text);
  font-size: 1rem;
}

.table-bordered {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.table-bordered td {
  padding: 1rem;
  border: 1px solid #e0e0e0;
  vertical-align: middle;
}

.table-bordered td:first-child {
  background-color: #f8f9fa;
  font-weight: 600;
  width: 200px;
  color: var(--color-text-dark);
}

.table-bordered tbody tr:hover {
  background-color: #f8f9fa;
}

/* Responsive Design */
@media (max-width: 991px) {
  .product-details-des {
    padding-left: 0;
    margin-top: 2rem;
  }
  
  .pro-nav {
    justify-content: center;
  }
  
  .review-tab {
    flex-direction: column;
  }
  
  .review-tab li {
    text-align: left;
  }
  
  .review-tab li a {
    margin-right: 0;
    margin-bottom: 2px;
  }
}

@media (max-width: 768px) {
  .product-name {
    font-size: 1.5rem;
  }
  
  .price-regular {
    font-size: 1.5rem;
  }
  
  .quantity-cart-box {
    align-items: flex-start;
    gap: 1rem;
  }
  
  .product-details-des .quantity .pro-qty {
    width: 100% !important;
    justify-content: center !important;
  }
  
  .btn-cart2 {
    width: 100%;
    padding: 1rem;
  }
  
  .table-bordered td:first-child {
    width: auto;
  }
  
  .tab-content {
    padding: 1rem;
  }
}

/* ========== product-not-found ========== */
/* Product Not Found Page Styles */

.product-not-found-area {
  min-height: 70vh;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 3rem 0;
}

.product-not-found-content {
  background: white;
  border-radius: 16px;
  padding: 3rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.product-not-found-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), #007bff, var(--color-primary));
}

/* Icon Styles */
.not-found-icon {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Title Styles */
.not-found-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 1rem;
}

/* Description Styles */
.not-found-description {
  font-size: 1.1rem;
  color: var(--color-text);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* Action Buttons */
.not-found-actions {
  margin: 2rem 0;
}

.not-found-actions .btn {
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.not-found-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.not-found-actions .btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #007bff);
  border: none;
  color: white;
}

.not-found-actions .btn-primary:hover {
  background: linear-gradient(135deg, #000075, #0056b3);
}

.not-found-actions .btn-outline-secondary {
  border: 2px solid #6c757d;
  color: #6c757d;
  background: transparent;
}

.not-found-actions .btn-outline-secondary:hover {
  background: #6c757d;
  color: white;
  border-color: #6c757d;
}

/* Helpful Links Section */
.helpful-links {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 2rem;
  margin-top: 2rem;
}

.helpful-links h5 {
  color: var(--color-text-dark);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.category-link {
  display: block;
  padding: 0.75rem 1rem;
  background: white;
  border-radius: 8px;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid #e9ecef;
}

.category-link:hover {
  color: var(--color-primary);
  background: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: var(--color-primary);
}

.category-link i {
  color: var(--color-primary);
  font-size: 1.1rem;
}

/* Contact Help Section */
.contact-help {
  background: linear-gradient(135deg, var(--color-primary), #007bff);
  border-radius: 12px;
  color: white;
  text-align: center;
}

.contact-help h6 {
  color: white !important;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-help p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.5rem;
}

.phone-link {
  display: inline-block;
  color: #ffeb3b;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.phone-link:hover {
  color: #ffeb3b;
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 991px) {
  .product-not-found-content {
    padding: 2rem 1.5rem;
  }
  
  .not-found-title {
    font-size: 2rem;
  }
  
  .not-found-actions .btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .not-found-actions .btn:last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .product-not-found-area {
    padding: 2rem 0;
  }
  
  .product-not-found-content {
    padding: 1.5rem 1rem;
  }
  
  .not-found-title {
    font-size: 1.75rem;
  }
  
  .not-found-description {
    font-size: 1rem;
  }
  
  .helpful-links {
    padding: 1.5rem 1rem;
  }
  
  .contact-help {
    padding: 1.5rem 1rem;
  }
  
  .phone-link {
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .not-found-icon i {
    font-size: 3rem !important;
  }
  
  .not-found-title {
    font-size: 1.5rem;
  }
  
  .category-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }
  
  .helpful-links .col-6 {
    margin-bottom: 0.5rem;
  }
}

/* Animation for page load */
.product-not-found-content {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hover effects for better interactivity */
.helpful-links .row {
  gap: 0.5rem 0;
}

.category-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.category-link:hover::before {
  left: 100%;
}

.category-link {
  position: relative;
  overflow: hidden;
}

/* Focus states for accessibility */
.btn:focus,
.category-link:focus,
.phone-link:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .product-not-found-area {
    background: white;
    box-shadow: none;
  }
  
  .product-not-found-content {
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  .not-found-actions,
  .helpful-links,
  .contact-help {
    display: none;
  }
}

/* ========== cart-fixes ========== */
/* Cart Page Fixes */

/* Fix horizontal scroll issue */
.cart-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cart-table .table {
  min-width: 100%;
  white-space: normal;
}

/* Make table responsive on mobile */
@media (max-width: 767px) {
  .cart-table .table {
    white-space: nowrap;
  }
  
  .cart-table .table thead {
    display: none;
  }
  
  .cart-table .table tbody tr {
    display: block;
    margin-bottom: 20px;
    border: 1px solid #ddd;
  }
  
  .cart-table .table tbody tr td {
    display: block;
    text-align: right;
    padding: 10px;
    border: none;
    border-bottom: 1px solid #eee;
  }
  
  .cart-table .table tbody tr td:before {
    content: attr(data-label);
    float: left;
    font-weight: bold;
    text-transform: uppercase;
  }
  
  .cart-table .table tbody tr td:last-child {
    border-bottom: none;
  }
}

/* Fix product title wrapping */
.cart-table .table .pro-title {
  min-width: 200px;
  max-width: 300px;
  white-space: normal;
  word-wrap: break-word;
}

/* Ensure images don't cause overflow */
.cart-table .table .pro-thumbnail img {
  max-width: 100%;
  height: auto;
}

/* Fix button styling */
.cart-table .table .btn-remove {
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  font-size: 18px;
  padding: 5px 10px;
  transition: all 0.3s ease;
}

.cart-table .table .btn-remove:hover {
  color: var(--color-secondary);
  transform: scale(1.1);
}

/* Fix quantity input */
.cart-table .table .pro-qty input {
  width: 60px;
  padding: 5px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* Prevent body overflow */
body {
  overflow-x: hidden;
}

.cart-main-wrapper {
  overflow-x: hidden;
}


/* Checkout Page Fixes */
.checkout-page-wrapper {
  overflow-x: hidden;
}

.order-summary-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.order-summary-table .table {
  min-width: 100%;
  white-space: normal;
}

/* Fix product title wrapping in checkout */
.order-summary-table .table tbody tr td:first-child {
  min-width: 200px;
  max-width: 300px;
  white-space: normal;
  word-wrap: break-word;
  text-align: left;
}

.order-summary-table .table tbody tr td:last-child {
  white-space: nowrap;
}

/* Make checkout table responsive on mobile */
@media (max-width: 767px) {
  .order-summary-table .table {
    font-size: 13px;
  }
  
  .order-summary-table .table tr td,
  .order-summary-table .table tr th {
    padding: 10px 6px;
  }
  
  .order-summary-table .table tbody tr td:first-child {
    min-width: 150px;
    max-width: 200px;
  }
}

/* Fix checkout form overflow */
.checkout-billing-details-wrap,
.order-summary-details {
  overflow-x: hidden;
}

/* ===== PRODUCT DETAIL PAGE IMPROVEMENTS ===== */

/* Product Image Section */
.product-image-section {
  margin-bottom: 2rem;
}

/* Main Product Image Container - Standardized */
.product-image-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  aspect-ratio: 1;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image-container:hover {
  border-color: var(--color-primary);
  box-shadow: 0 8px 25px rgba(1, 0, 150, 0.15);
  transform: translateY(-2px);
}

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

/* Image Zoom Overlay */
.image-zoom-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: white;
  font-size: 14px;
  text-align: center;
}

.product-image-container:hover .image-zoom-overlay {
  opacity: 1;
}

.image-zoom-overlay i {
  font-size: 24px;
  margin-bottom: 8px;
}

/* Thumbnail Navigation - Improved */
.pro-nav {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
  padding: 0 10px;
}

.pro-nav-thumb {
  width: 80px;
  height: 80px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.pro-nav-thumb:hover,
.pro-nav-thumb.active {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(1, 0, 150, 0.2);
}

.thumbnail-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
}

.thumbnail-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}

/* Product Details Section - Improved Spacing */
.product-details-des {
  padding-left: 2rem;
  padding-top: 1rem;
}

.product-details-des .manufacturer-name {
  margin-bottom: 0.5rem;
}

.product-details-des .manufacturer-name a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-details-des .product-name {
  margin-bottom: 1rem;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.3;
  color: #2c3e50;
}

.product-details-des .product-sku {
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 6px;
  font-size: 14px;
  color: #6c757d;
  border-left: 3px solid var(--color-primary);
}

.product-details-des .price-box {
  margin: 1.5rem 0;
  padding: 1rem 0;
  border-bottom: 1px solid #e9ecef;
}

.product-details-des .availability {
  margin-bottom: 1rem;
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: 8px;
  display: flex;
  align-items: center;
}

.product-details-des .availability i {
  font-size: 18px;
  margin-right: 8px;
}

.product-details-des .product-condition {
  padding: 10px 14px;
  background: #f8f9fa;
  border-radius: 6px;
  font-size: 14px;
}

.product-details-des .pro-desc {
  margin: 1.5rem 0;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  line-height: 1.6;
  color: #495057;
}

.product-details-des .quantity-cart-box {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #ffffff;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.product-details-des .useful-links {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e9ecef;
}

/* Product image containers with standardized aspect ratio */
.product-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image-container .product-main-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Image zoom overlay */
.image-zoom-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 8px;
}

.product-image-container:hover .image-zoom-overlay {
  opacity: 1;
}

.image-zoom-overlay i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.image-zoom-overlay span {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Responsive adjustments for product detail images */
@media (max-width: 991px) {
  .product-image-container {
    max-width: 400px;
    margin: 0 auto;
  }
  
  .pro-nav {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .product-image-container {
    max-width: 100%;
    aspect-ratio: 1;
  }
  
  .pro-nav-thumb {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 575px) {
  .product-image-container {
    border-radius: 8px;
  }
  
  .pro-nav {
    gap: 8px;
  }
  
  .pro-nav-thumb {
    width: 50px;
    height: 50px;
  }
}

/* Product Details Tabs - Following Original Pattern */
.product-details-reviews {
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: none !important;
}

.product-review-info .nav.review-tab {
  border-bottom: none !important;
  margin-bottom: 0 !important;
  display: flex !important;
}

.product-review-info .nav.review-tab li {
  margin-right: 0 !important;
}

.product-review-info .nav.review-tab li a {
  color: #fff !important;
  display: block !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 18px !important;
  text-transform: uppercase !important;
  padding: 8px 10px !important;
  border: 1px solid #ebebeb !important;
  border-bottom: none !important;
  background-color: #979898 !important;
  border-radius: 0 !important;
  margin-right: 0 !important;
  transition: all 0.3s ease !important;
}

.product-review-info .nav.review-tab li a:hover,
.product-review-info .nav.review-tab li a.active {
  color: #555 !important;
  background-color: #fff !important;
  border-bottom-color: transparent !important;
}

.product-review-info .tab-content.reviews-tab {
  border: 1px solid #ebebeb !important;
  padding: 15px 20px 20px !important;
  margin-top: 0 !important;
  background: #fff !important;
}

.product-review-info .tab-content.reviews-tab .tab-one {
  font-size: 14px !important;
  line-height: 1.8 !important;
  color: #555 !important;
  font-weight: 400 !important;
}

.product-review-info .tab-content.reviews-tab .table {
  margin-bottom: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
}

.product-review-info .tab-content.reviews-tab .table tr {
  text-transform: capitalize !important;
}

.product-review-info .tab-content.reviews-tab .table td {
  padding: 8px 12px !important;
  border-color: #ebebeb !important;
  vertical-align: middle !important;
  font-size: 14px !important;
  line-height: 1.8 !important;
}

.product-review-info .tab-content.reviews-tab .table td:first-child {
  background: #f8f9fa !important;
  font-weight: 500 !important;
  color: #242424 !important;
  width: 30% !important;
}

/* Responsive adjustments for tabs */
@media only screen and (max-width: 479.98px) {
  .product-review-info .nav.review-tab li a {
    font-size: 12px !important;
    padding: 8px 8px !important;
  }
}

/* Product Details Page Styles - Following Original HTML Pattern EXACTLY */
.product-details-des .product-name {
  color: #242424 !important;
  font-weight: 500 !important;
  font-size: 24px !important; /* Exato do original */
  line-height: 1.2 !important;
  padding-top: 5px !important;
  padding-bottom: 5px !important;
  display: block !important;
  margin-bottom: 0 !important;
}

.product-details-des .manufacturer-name {
  line-height: 1 !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.product-details-des .manufacturer-name a {
  font-size: 13px !important;
  line-height: 1 !important;
  color: #555 !important; /* Cor padrão do original */
  text-transform: capitalize !important;
  text-decoration: none !important;
  font-weight: 400 !important;
}

.product-details-des .manufacturer-name a:hover {
  color: var(--color-primary, #010096) !important; /* Azul padrão do sistema */
}

.product-details-des .price-box {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  line-height: 1 !important;
  margin: 0 !important;
}

.product-details-des .price-regular {
  font-size: 18px !important; /* Exato do original */
  line-height: 1 !important;
  color: var(--color-primary, #010096) !important; /* Azul padrão do sistema */
  font-weight: 500 !important;
}

.product-details-des .price-old {
  font-size: 15px !important; /* Exato do original */
  color: #999 !important;
  padding-left: 5px !important;
  margin-left: 0 !important;
}

.product-details-des .discount-badge {
  background: #dc3545 !important;
  color: white !important;
  padding: 0.25rem 0.5rem !important;
  border-radius: 4px !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  margin-left: 10px !important;
}

/* Product SKU styling following availability pattern */
.product-details-des .product-sku {
  margin-bottom: 15px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  color: #555 !important;
}

.product-details-des .product-sku strong {
  color: #242424 !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
}

.product-details-des .availability {
  margin-bottom: 15px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
}

.product-details-des .availability i {
  color: #81ca33 !important; /* Verde original para "in stock" */
}

.product-details-des .availability span {
  color: #555 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  padding-left: 3px !important;
  text-transform: uppercase !important;
}

.product-details-des .product-condition {
  margin-bottom: 15px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
}

.product-details-des .pro-desc {
  margin-bottom: 20px !important;
  font-size: 14px !important; /* Tamanho base do body original */
  line-height: 1.8 !important; /* Line-height do body original */
  color: #555 !important; /* Cor do body original */
  font-weight: 400 !important;
}

/* Product Details Page - Quantity Section Fixed */
.product-details-inner .product-details-des .quantity-cart-box {
  margin-bottom: 20px !important;
  display: flex !important;
  align-items: center !important;
}

.product-details-inner .product-details-des .quantity-cart-box h5 {
  color: #242424 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  margin-right: 10px !important;
  margin-bottom: 0 !important;
  text-transform: uppercase !important;
}

.product-details-inner .product-details-des .quantity {
  margin-right: 15px !important;
}

.product-details-inner .product-details-des .pro-qty {
  width: 90px !important;
  height: 40px !important;
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
  float: left !important;
  display: flex !important;
  align-items: center !important;
}

.product-details-inner .product-details-des .pro-qty .qtybtn {
  width: 15px !important;
  display: block !important;
  float: left !important;
  line-height: 40px !important;
  cursor: pointer !important;
  text-align: center !important;
  font-size: 16px !important;
  color: #555 !important;
  user-select: none !important;
}

.product-details-inner .product-details-des .pro-qty .qtybtn:hover:not([style*="not-allowed"]) {
  color: var(--color-primary, #010096) !important;
}

.product-details-inner .product-details-des .pro-qty input {
  width: 28px !important;
  float: left !important;
  border: none !important;
  height: 40px !important;
  line-height: 40px !important;
  padding: 0 !important;
  text-align: center !important;
  background-color: transparent !important;
  font-size: 14px !important;
  color: #242424 !important;
}

.product-details-inner .product-details-des .action_link {
  margin-left: 0 !important;
}

.product-details-inner .product-details-des .btn-cart2 {
  background: var(--color-primary, #010096) !important;
  color: white !important;
  border: none !important;
  padding: 0.75rem 1.5rem !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  border-radius: 4px !important;
  text-transform: uppercase !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

.product-details-inner .product-details-des .btn-cart2:hover:not(:disabled) {
  background: var(--color-primary-dark, #000080) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(1, 0, 150, 0.3) !important;
}

.product-details-inner .product-details-des .btn-cart2:disabled {
  background: #ccc !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

.product-details-des .btn-cart2:hover:not(:disabled) {
  background: var(--color-primary-dark, #000080) !important; /* Azul mais escuro */
  color: white !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(1, 0, 150, 0.3) !important;
}

.product-details-des .btn-cart2:disabled {
  background: #ccc !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

.product-details-des .useful-links {
  display: flex !important;
  margin-bottom: 20px !important;
  padding-top: 20px !important;
  border-top: 1px solid #ebebeb !important;
}

/* Hide useful-links on mobile */
@media (max-width: 767.98px) {
  .product-details-des .useful-links {
    display: none !important;
  }
}

.product-details-des .useful-links a {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #242424 !important;
  margin-right: 20px !important;
  text-transform: capitalize !important;
  text-decoration: none !important;
}

.product-details-des .useful-links a:hover {
  color: var(--color-primary, #010096) !important;
}

.product-details-des .useful-links a i {
  padding-right: 5px !important;
  vertical-align: middle !important;
}

/* Responsive adjustments following original pattern */
@media only screen and (max-width: 575.98px) {
  .product-details-des .product-name {
    font-size: 17px !important; /* Exato do original */
  }
  
  .product-details-des .quantity h5 {
    margin-right: 10px !important;
  }
}

@media only screen and (max-width: 479.98px) {
  .product-details-des .quantity h5 {
    margin-right: 10px !important;
  }
  
  .product-details-des .like-icon a {
    margin-right: 0 !important;
  }
  
  .product-details-des .share-icon {
    margin-bottom: 2rem !important;
  }
  
  .product-details-des .share-icon a {
    padding: 0 5px !important;
  }
}

/* Additional mobile spacing for share section */
@media (max-width: 767.98px) {
  .product-details-des .share-icon {
    margin-bottom: 2rem !important;
  }
  
  .product-details-reviews {
    padding-top: 1rem !important;
  }
}

@media (max-width: 991px) {
  .product-details-des {
    padding-left: 0 !important;
    margin-top: 2rem !important;
  }
}

@media (max-width: 767px) {
  .product-details-des .quantity-cart-box {
    padding: 1rem !important;
    align-items: stretch !important;
  }
  
  .product-details-des .quantity-cart-box .d-flex {
    align-items: stretch !important;
    gap: 1rem !important;
  }
}
  
/* Thumbnail navigation */
.pro-nav {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.pro-nav-thumb {
  width: 80px;
  height: 80px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.pro-nav-thumb:hover,
.pro-nav-thumb.active {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.thumbnail-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumbnail-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 575px) {
  .product-details-des .quantity-cart-box {
    align-items: stretch;
    gap: 1rem;
  }
  
  .product-details-des .quantity-cart-box .d-flex {
    align-items: stretch;
  }
  
  .product-review-info .nav.review-tab li a {
    padding: 0.75rem 1rem;
    font-size: 14px;
  }
}

/* Additional improvements for image containers */

/* Ensure consistent image sizing regardless of original dimensions */
.product-main-image,
.thumbnail-image {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center !important;
}

/* Loading state for product images */
.product-main-image[data-loading="true"],
.thumbnail-image[data-loading="true"] {
  opacity: 0.7;
  filter: blur(1px);
}

/* Fallback for missing images */
.product-image-container:empty::before,
.thumbnail-container:empty::before {
  content: "No Image Available";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #f8f9fa;
  color: #6c757d;
  font-size: 14px;
  text-align: center;
}

/* Smooth transitions for all interactive elements */
.product-image-container,
.pro-nav-thumb,
.image-zoom-overlay {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus states for accessibility */
.product-image-container:focus,
.pro-nav-thumb:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .product-image-container,
  .pro-nav-thumb {
    border-width: 3px;
  }
  
  .image-zoom-overlay {
    background: rgba(0, 0, 0, 0.9);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .product-image-container,
  .pro-nav-thumb,
  .image-zoom-overlay,
  .product-main-image {
    transition: none;
  }
  
  .product-image-container:hover {
    transform: none;
  }
  
  .pro-nav-thumb:hover,
  .pro-nav-thumb.active {
    transform: none;
  }
}


/* ========================================
   CUSTOM TOOLTIPS FOR PRODUCT ACTIONS
   ======================================== */

/* Product Action Tooltips - Same style as language switcher */
.button-group a,
.button-group span {
  position: relative;
  display: inline-block;
}

.button-group a[data-tooltip]::before,
.button-group span[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  top: 50%;
  right: calc(100% + 12px);
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 0px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.15s ease-in-out;
  z-index: 9999;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.button-group a[data-tooltip]::after,
.button-group span[data-tooltip]::after {
  content: '';
  position: absolute;
  top: 50%;
  right: calc(100% + 6px);
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: all 0.15s ease-in-out;
  z-index: 9999;
  pointer-events: none;
}

.button-group a[data-tooltip]:hover::before,
.button-group a[data-tooltip]:hover::after,
.button-group span[data-tooltip]:hover::before,
.button-group span[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  transition-delay: 0.3s;
}

/* Focus state for accessibility */
.button-group a[data-tooltip]:focus::before,
.button-group a[data-tooltip]:focus::after,
.button-group span[data-tooltip]:focus::before,
.button-group span[data-tooltip]:focus::after {
  opacity: 1;
  visibility: visible;
}

/* Hide tooltip on active/click state */
.button-group a[data-tooltip]:active::before,
.button-group a[data-tooltip]:active::after,
.button-group span[data-tooltip]:active::before,
.button-group span[data-tooltip]:active::after {
  opacity: 0 !important;
  visibility: hidden !important;
  transition-delay: 0s !important;
}

/* Mobile adjustments - COMPLETE TOOLTIP DISABLE */
@media (max-width: 768px) {
  .button-group a[data-tooltip]::before,
  .button-group a[data-tooltip]::after,
  .button-group span[data-tooltip]::before,
  .button-group span[data-tooltip]::after {
    display: none !important;
    content: "" !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -99999px !important;
    top: -99999px !important;
    z-index: -1 !important;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
  }
  
  .button-group a[data-tooltip]:hover::before,
  .button-group a[data-tooltip]:hover::after,
  .button-group a[data-tooltip]:focus::before,
  .button-group a[data-tooltip]:focus::after,
  .button-group a[data-tooltip]:active::before,
  .button-group a[data-tooltip]:active::after,
  .button-group span[data-tooltip]:hover::before,
  .button-group span[data-tooltip]:hover::after,
  .button-group span[data-tooltip]:focus::before,
  .button-group span[data-tooltip]:focus::after,
  .button-group span[data-tooltip]:active::before,
  .button-group span[data-tooltip]:active::after {
    display: none !important;
    content: "" !important;
  }
}

/* ========================================
   COLLAPSIBLE LIST (Sidebar Categories/Brands)
   ======================================== */

.collapsible-list-toggle {
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  color: #010096;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 10px 0;
  min-height: 44px;
  transition: color 0.3s;
}

.collapsible-list-toggle:hover {
  color: #242424;
  text-decoration: underline;
}

/* ========================================
   MOBILE RESPONSIVENESS FIXES
   ======================================== */

/* QuickView modal - mobile viewport fix */
@media (max-width: 767px) {
  #quick_view .modal-dialog {
    margin: 10px;
    max-height: calc(100vh - 20px);
  }

  #quick_view .modal-body {
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  #quick_view .modal-content {
    max-height: calc(100vh - 20px);
  }

  #quick_view .product-details-inner .row {
    flex-direction: column;
  }

  #quick_view .col-lg-5,
  #quick_view .col-md-5 {
    max-width: 100%;
    flex: 0 0 100%;
  }

  #quick_view .col-lg-7,
  #quick_view .col-md-7 {
    max-width: 100%;
    flex: 0 0 100%;
  }

  /* Quantity buttons - 44px touch targets */
  .pro-qty .qtybtn {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    font-size: 1.2rem;
  }

  .pro-qty {
    height: 44px;
  }

  .pro-qty input {
    height: 44px;
    font-size: 16px;
  }
}

/* Cart table mobile fix */
@media (max-width: 767px) {
  .cart-table .table {
    font-size: 13px;
  }

  .cart-table .table th,
  .cart-table .table td {
    padding: 10px 6px;
  }

  .cart-table .pro-thumbnail {
    width: 60px;
  }

  .cart-table .pro-thumbnail img {
    max-width: 60px;
  }

  .cart-table .pro-title a {
    font-size: 13px;
  }

  .cart-table .pro-qty input {
    width: 50px;
    font-size: 16px;
  }

  /* Remove button touch target */
  .cart-table .btn-remove {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* Footer social icons - 44px touch targets */
.footer-social-link a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
}

/* Pagination mobile fix */
@media (max-width: 480px) {
  .pagination-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
  }

  .pagination-box li a,
  .pagination-box li span {
    min-width: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
  }
}

/* Off-canvas menu - safe width for 320px screens */
@media (max-width: 359px) {
  .off-canvas-wrapper .off-canvas-inner-content,
  .off-canvas-inner-content {
    width: 85vw !important;
  }
}

/* Checkout form stacking on tablets */
@media (max-width: 991px) {
  .checkout-page-wrapper .col-lg-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .order-summary-details {
    margin-top: 40px;
  }
}

/* Prevent iOS zoom on input focus (font-size >= 16px) */
@media (max-width: 767px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="password"],
  input[type="search"],
  textarea,
  select {
    font-size: 16px !important;
  }
}

/* Header action icons - touch targets */
@media (max-width: 767px) {
  .header-configure-area ul li a {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-menu-toggler .off-canvas-btn {
    min-width: 44px;
    min-height: 44px;
  }
}
