/*
CTC Separate Stylesheet
Updated: 2025-11-04 17:06:54
*/

      html, body {
        overflow-x: hidden !important;
      }

    .sunglass-slider-viewport {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  justify-content: center; /* ✅ ensures the swiper sits centered */
   /* optional, just to match your example background */
}

.sunglass-swiper {
  width: 100%;
  max-width: 1366px; /* ✅ ensures proper centering relative to screen size */
  overflow: visible;
  padding: 0 10px; /* balanced padding */
  box-sizing: border-box;
}

.sunglass-swiper .swiper-wrapper {
  align-items: center;
}

@media (min-width: 1025px) {
  .sunglass-swiper .swiper-slide {
    width: 85% !important;
    transition: all 0.4s ease;
    opacity: 0.6;
    /* transform: scale(0.9); */
  }

  .sunglass-swiper .swiper-slide-active {
    opacity: 1;
    transform: scale(1);
  }
  
}

@media (max-width: 1024px) {
  .sunglass-swiper {
    padding: 0 !important;
  }

  .sunglass-swiper .swiper-slide {
    width: 100% !important;
    opacity: 1 !important;
    transform: scale(1) !important;
  }
}

.sunglass-swiper .swiper-slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  display: block;
}

/* Pagination dots style */
.sunglass-swiper .swiper-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
}

/* Default bullet (circle) */
.sunglass-swiper .swiper-pagination-bullet {
  width: 18px;
  height: 8px;
  border-radius: 50px;
  background: #38313191;
  opacity: 0.6;
  transition: all 0.3s ease;
}

/* Active bullet (long pill style) */
.sunglass-swiper .swiper-pagination-bullet-active {
  width: 60px;              /* 👈 make it longer */
  height: 8px;
  border-radius: 10px;      /* 👈 keeps pill shape */
  background: #FF7800;         /* 👈 active color */
  opacity: 1;
}



/* Image Car */

/* 🎯 Target your image carousel widget directly */
.type-car .swiper-slide-inner {
  position: relative;
  overflow: hidden;
}

/* 🖼 Make image behave normally */
.type-car .swiper-slide-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* 🟥 Caption overlay on image bottom */
.type-car .elementor-image-carousel-caption {
    position: absolute;
    bottom: 5px;
    left: 25px;
    width: 80%;
    background: rgb(45 45 45 / 53%);
    color: #fff;
    text-align: center;
    padding: 7px 0;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    box-sizing: border-box;
    z-index: 2;
    border-radius: 10px;
    margin: 10px auto !important;
    transition: all 0.3s ease;
}

/* 🧭 Hover bright effect */
.type-car .swiper-slide-inner:hover .elementor-image-carousel-caption {
  background:#ff7700a4;
}

/* 📱 Responsive tweak */
@media (max-width: 767px) {
  .type-car .elementor-image-carousel-caption {
    font-size: 14px;
    padding: 8px 0;
  }
}
/* ====== General Container ====== */
.global-search-container {
  display: inline-flex;
  align-items: center;
  margin: 0;
  position: relative;
  width: auto;
}

/* Desktop Search Wrapper */
.desktop-only {
  position: relative;
  display: inline-block;
}

/* Desktop search bar - Clean & Professional */
.global-search-input {
  width: 320px;
  height: 42px;
  padding: 0 42px 0 16px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  font-weight: 400;
  color: #333;
  line-height: 42px;
}

.global-search-input:hover {
  border-color: #ff7800;
  box-shadow: 0 2px 8px rgba(255, 120, 0, 0.12);
}

.global-search-input:focus {
  outline: none;
  border-color: #ff7800;
  box-shadow: 0 0 0 3px rgba(255, 120, 0, 0.1);
}

.global-search-input::placeholder {
  color: #999;
  font-size: 14px;
}

/* Search icon button inside input */
.search-icon-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: color 0.2s ease;
  pointer-events: none;
}

.search-icon-btn:hover {
  color: #ff7800;
}

.search-icon-btn svg {
  width: 18px;
  height: 18px;
}

/* Mobile search icon - Compact & Round */
.global-search-icon {
  background: #ff7800;
  border: none;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(255, 120, 0, 0.3);
  transition: all 0.2s ease;
  color: #fff;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.global-search-icon:hover {
  transform: scale(1.05);
  box-shadow: 0 3px 10px rgba(255, 120, 0, 0.4);
  background: #ff8c1a;
}

.global-search-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

.mobile-only { display: none; }
.desktop-only { display: block; }

/* ====== Popup Styles ====== */
.global-search-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 15px;
}

.global-search-popup.active {
  display: flex;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.search-popup-inner {
  background: #fff;
  border-radius: 16px;
  width: 90%;
  max-width: 900px;
  max-height: 88vh;
  padding: 25px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
  position: relative;
  animation: popupSlide 0.3s ease;
  overflow-y: auto;
}

@keyframes popupSlide {
  from { 
    opacity: 0; 
    transform: translateY(-25px) scale(0.96); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0) scale(1); 
  }
}

/* ====== Popup Header ====== */
.popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #f3f4f6;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #6b7280;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
  line-height: 1;
}

.popup-close:hover {
  background: #ff7800;
  color: #fff;
  transform: rotate(90deg);
}

#live-search-input {
  width: 100%;
  padding: 13px 18px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 20px;
  transition: all 0.25s ease;
  background: #f9fafb;
}

#live-search-input:focus {
  outline: none;
  border-color: #ff7800;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 120, 0, 0.08);
}

#live-search-input::placeholder {
  color: #9ca3af;
  font-size: 13px;
}

/* ====== Product Grid - Compact & Uniform ====== */
.search-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 15px;
}

.product-item {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.product-item:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
  border-color: #ff7800;
}

.product-item a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* FIXED: Uniform Image Sizes */
.product-image-wrapper {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 10px;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-item:hover img {
  transform: scale(1.08);
}

.product-item h4 {
  font-size: 13px;
  margin: 0 0 6px;
  color: #1f2937;
  line-height: 1.35;
  font-weight: 600;
  min-height: 35px;
  max-height: 35px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-item .price {
  color: #ff7800;
  font-weight: 700;
  font-size: 15px;
  margin: 6px 0 10px;
  display: block;
}

.product-item del {
  color: #9ca3af;
  font-size: 12px;
  font-weight: 400;
  margin-right: 6px;
}

/* ====== Add to Cart Button - Compact & Modern ====== */
.product-item .button,
.product-item .add_to_cart_button,
.product-item .product_type_simple,
.product-item .ajax_add_to_cart {
  background: linear-gradient(135deg, #ff7800 0%, #ff9500 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: all 0.25s ease;
  cursor: pointer;
  width: 100%;
  text-align: center;
  display: inline-block;
  margin-top: auto;
  box-shadow: 0 2px 6px rgba(255, 120, 0, 0.25);
}

.product-item .button:hover,
.product-item .add_to_cart_button:hover,
.product-item .product_type_simple:hover,
.product-item .ajax_add_to_cart:hover {
  background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
  box-shadow: 0 3px 10px rgba(45, 45, 45, 0.35);
  transform: translateY(-1px);
}

.product-item .button.loading,
.product-item .ajax_add_to_cart.loading {
  background: #9ca3af;
  cursor: wait;
  pointer-events: none;
}

.product-item .button.added,
.product-item .ajax_add_to_cart.added {
  background: #10b981;
}

.product-item .added_to_cart {
  display: none;
}

/* Loading state */
.loading {
  text-align: center;
  padding: 35px;
  color: #6b7280;
  font-size: 14px;
}

/* No results */
.no-results {
  text-align: center;
  padding: 50px 20px;
  color: #6b7280;
  font-size: 14px;
  grid-column: 1 / -1;
}

/* ====== Responsive ====== */
@media (max-width: 768px) {
  .desktop-only { display: none; }
  .mobile-only { display: inline-flex; }

  .search-popup-inner {
    width: 96%;
    padding: 18px;
    border-radius: 14px;
    max-height: 92vh;
  }

  #live-search-input {
    padding: 11px 15px;
    font-size: 13px;
    margin-bottom: 16px;
  }

  .popup-close {
    width: 30px;
    height: 30px;
    font-size: 18px;
    top: 10px;
    right: 10px;
  }

  .search-results {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .product-image-wrapper {
    height: 150px;
  }

  .product-item {
    padding: 10px;
  }

  .product-item h4 {
    font-size: 12px;
    min-height: 32px;
    max-height: 32px;
  }

  .product-item .price {
    font-size: 13px;
    margin: 5px 0 8px;
  }

  .product-item .button,
  .product-item .add_to_cart_button,
  .product-item .ajax_add_to_cart {
    padding: 7px 12px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .search-popup-inner {
    padding: 15px;
  }

  .search-results {
    gap: 8px;
  }

  .product-image-wrapper {
    height: 130px;
  }

  .product-item {
    padding: 8px;
  }

  .product-item h4 {
    font-size: 11px;
    min-height: 30px;
    max-height: 30px;
  }

  .product-item .price {
    font-size: 12px;
  }
}

/* Wider screens - More columns */
@media (min-width: 1200px) {
  .search-results {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Custom scrollbar for popup */
.search-popup-inner::-webkit-scrollbar {
  width: 7px;
}

.search-popup-inner::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 8px;
}

.search-popup-inner::-webkit-scrollbar-thumb {
  background: #ff7800;
  border-radius: 8px;
}

.search-popup-inner::-webkit-scrollbar-thumb:hover {
  background: #ff9500;
}