/* Custom Blue/Navy Blue Theme for Electro */
:root {
  --bs-primary: #2563eb;
  --bs-ec-primary: #2563eb;
  --bs-ec-primary-d: #1d4ed8;
  --bs-warning: #2563eb;
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --navy-blue: #1e3a8a;
  --light-blue: #3b82f6;
}

/* Fix Departments Menu Dropdown - White Text & Always Open */
.departments-menu-v2 .departments-menu-v2-title {
  background-color: #2563eb !important;
  color: #fff !important;
}

.departments-menu-v2 .departments-menu-v2-title:hover {
  background-color: #1d4ed8 !important;
}

.departments-menu-v2 .departments-menu-v2-icon {
  color: #fff !important;
}

/* Departments dropdown - normal Bootstrap behavior */
.departments-menu-v2 .dropdown-menu {
  display: none;
  z-index: 10000 !important;
}

.departments-menu-v2 .dropdown-menu.show {
  display: block !important;
  z-index: 10000 !important;
}

/* Shopping Cart Dropdown - Hide Arrow Icon */
.navbar-mini-cart .header-icon-link::after {
    display: none !important;
}

.navbar-mini-cart .header-icon-link::before {
    display: none !important;
}

/* Remove any Bootstrap dropdown arrow */
.navbar-mini-cart .dropdown-toggle::after {
    display: none !important;
}

.navbar-mini-cart .dropdown-toggle::before {
    display: none !important;
}

/* Shopping Cart Dropdown - Animated */
.navbar-mini-cart.dropdown {
  position: relative;
}

.dropdown-menu-mini-cart {
  min-width: 400px;
  padding: 0;
  border: 2px solid #2563eb;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  animation: slideDown 0.3s ease-in-out;
  margin-top: 10px !important;
}

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

.widget_shopping_cart_content {
  padding: 20px;
}

.cart-list.product_list_widget {
  list-style: none;
  padding: 0;
  margin: 0 0 15px;
  max-height: 250px;
  overflow-y: auto;
}

.mini-cart-item {
  display: flex;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #e5e5e5;
  position: relative;
  transition: background-color 0.3s ease;
  max-height: 80px;
  overflow: hidden;
}

.mini-cart-item:last-child {
  border-bottom: none;
}

.mini-cart-item:hover {
  background-color: #f9f9f9;
}

.mini-cart-item .remove {
  position: absolute;
  top: 10px;
  right: 0;
  color: #999;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  line-height: 1;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-cart-item .remove:hover {
  color: #dc3545;
  transform: rotate(90deg) scale(1.2);
}

.mini-cart-item a:not(.remove) {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #333;
  text-decoration: none;
  flex: 1;
  padding-right: 30px;
  font-size: 14px;
  line-height: 1.4;
}

.mini-cart-item a:not(.remove):hover {
  color: #2563eb;
}

.mini-cart-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  flex-shrink: 0;
}

.mini-cart-item .quantity {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  color: #666;
}

.mini-cart-item .amount {
  font-weight: 600;
  color: #2563eb;
}

.widget_shopping_cart_content .total {
  padding: 15px 0;
  margin: 0;
  border-top: 2px solid #e5e5e5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
}

.widget_shopping_cart_content .total strong {
  color: #333;
}

.widget_shopping_cart_content .total .amount {
  font-size: 20px;
  font-weight: 700;
  color: #2563eb;
}

.widget_shopping_cart_content .buttons {
  margin: 15px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.widget_shopping_cart_content .buttons .btn {
  transition: all 0.3s ease;
}

.widget_shopping_cart_content .buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Cart icon badge animation */
.cart-items-count {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Cart item removal animation */
.mini-cart-item.removing {
  opacity: 0;
  transform: translateX(-100%);
  transition: all 0.3s ease;
}

/* Empty cart message */
.widget_shopping_cart_content .cart-empty {
  text-align: center;
  padding: 40px 20px;
  color: #999;
}

.widget_shopping_cart_content .cart-empty i {
  font-size: 60px;
  margin-bottom: 15px;
  display: block;
  color: #ddd;
}

/* Fix Header Icons - White Icons, Black on Hover */
.header-icon {
  position: relative;
  display: inline-block;
}

.header-icon a {
  position: relative;
  display: inline-block;
}

.header-icon i,
.header-icon__user-account i {
  color: #fff !important;
  font-size: 24px;
}

.header-icon:hover i,
.header-icon__user-account:hover i {
  color: #000 !important;
}

.header-icon-counter {
  background-color: #2563eb !important;
  color: #fff !important;
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 11px;
  line-height: 20px;
  text-align: center;
  padding: 0 5px;
  font-weight: 700;
  display: inline-block;
  z-index: 10;
}

/* My Account Dropdown */
.header-icon__user-account .dropdown-toggle::after {
  display: none;
}

.dropdown-menu-user-account {
  min-width: 280px;
  padding: 20px;
}

.register-sign-in-dropdown-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.register-sign-in-dropdown-inner .sign-in,
.register-sign-in-dropdown-inner .register {
  text-align: center;
}

.register-sign-in-dropdown-inner p {
  margin-bottom: 10px;
  color: #333e48;
}

.sign-in-button,
.register-action a {
  display: inline-block;
  padding: 8px 20px;
  background-color: #2563eb;
  color: #fff !important;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.sign-in-button:hover,
.register-action a:hover {
  background-color: #1d4ed8;
  color: #fff !important;
}

/* Search Button - White Background, Black Icon */
.navbar-search .search-btn {
  background-color: #fff !important;
  border-color: #dee2e6 !important;
}

.navbar-search .search-btn i {
  color: #000 !important;
}

.navbar-search .search-btn:hover {
  background-color: #f8f9fa !important;
}

/* Electro-Laravel Search Bar Styling - Slider Button Frame */
.header_search_content {
  width: 100% !important;
  max-width: 100% !important;
}

.search_block_top {
  position: relative !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
  border-radius: 25px !important;
  padding: 3px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
  border: 1px solid #dee2e6 !important;
}

.search_block_top form {
  display: flex !important;
  width: 100% !important;
  align-items: center !important;
  background: #fff !important;
  border-radius: 22px !important;
  overflow: hidden !important;
}

.search_query {
  flex: 1 !important;
  height: 40px !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 20px !important;
  font-size: 14px !important;
  background-color: transparent !important;
  color: #333 !important;
  transition: all 0.3s ease !important;
  outline: none !important;
}

.search_query:focus {
  background-color: #f8f9fa !important;
  color: #2563eb !important;
}

.search_query::placeholder {
  color: #6c757d !important;
  font-style: italic !important;
}

.button-search {
  height: 40px !important;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  border: none !important;
  border-radius: 0 22px 22px 0 !important;
  color: #fff !important;
  padding: 0 25px !important;
  font-size: 16px !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 60px !important;
  position: relative !important;
  overflow: hidden !important;
}

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

.button-search:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3) !important;
}

.button-search:hover::before {
  left: 100% !important;
}

.button-search:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.2) !important;
}

.button-search i {
  color: #fff !important;
  font-size: 16px !important;
  z-index: 1 !important;
  position: relative !important;
}

/* Live Search Results Dropdown - ULTRA VISIBLE for layouts/app.blade.php */
.live-search-results,
#liveSearchResults {
  position: fixed !important; /* Escape all parents */
  top: 150px !important; /* Center of screen for testing */
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 650px !important;
  max-width: 90vw !important;
  background: #fff !important;
  background-color: #ffffff !important;
  border: 10px solid #ff0000 !important; /* THICK RED border for visibility test */
  border-radius: 12px !important;
  box-shadow: 0 10px 40px rgba(255, 0, 0, 0.8) !important;
  z-index: 999999999 !important;
  height: 500px !important;
  max-height: 500px !important;
  min-height: 500px !important;
  overflow-y: scroll !important;
  overflow-x: hidden !important;
  margin: 0 !important;
  display: none !important;
  padding: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  clip: auto !important;
  clip-path: none !important;
}

.live-search-results.show,
#liveSearchResults.show {
  display: block !important;
}

.live-search-results.show {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* CRITICAL: Ensure ALL parent containers don't clip dropdown */
.search-section,
.search-container,
.search-form,
.search-input-group,
.electro-navbar,
.electro-navbar-inner,
.container,
.container-fluid,
.row,
.col,
.col-md-7,
.col-lg-7,
.col-auto,
.electro-navbar-search,
.navbar-search,
.header_search_content,
.search_block_top,
#search_block_top,
.masthead,
.header-v2,
#masthead {
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  transform: none !important;
}

/* CRITICAL: search_block_top is the positioning parent for dropdown */
#search_block_top,
.search_block_top {
  position: relative !important;
  overflow: visible !important;
}

.header_search_content {
  overflow: visible !important;
}

.electro-navbar-search {
  overflow: visible !important;
}

/* Force search results container to be above EVERYTHING */
#search_block_top {
  position: relative !important;
  z-index: auto !important;
}

#liveSearchResults,
.live-search-results {
  /* Position and z-index handled by main rule and inline style */
  background: #ffffff !important;
  background-color: #ffffff !important;
}

/* Force dropdown visibility for testing */
.live-search-results.show {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
}

/* Ensure navbar doesn't hide dropdown */
.electro-navbar {
  overflow: visible !important;
}

/* Fix z-index for all header dropdowns */
.electro-navbar .dropdown-menu,
.navbar .dropdown-menu,
.departments-menu-v2 .dropdown-menu,
.mega-menu {
  z-index: 10000 !important;
  position: absolute !important;
}

/* Ensure search bar doesn't overlap dropdowns */
.electro-navbar-search,
.navbar-search,
.header_search_content {
  z-index: 100 !important;
  position: relative !important;
}

.electro-navbar-inner {
  overflow: visible !important;
}

/* CRITICAL: Live search results MUST be above menu dropdowns */
div#liveSearchResults,
div.live-search-results,
.search_block_top .live-search-results,
#search_block_top .live-search-results {
  z-index: 999999 !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
}

/* Ultra-specific background override */
div.live-search-results.show,
#liveSearchResults.show,
.search_block_top div.live-search-results,
#search_block_top div#liveSearchResults {
  background: #ffffff !important;
  background-color: #ffffff !important;
}

/* Ensure header doesn't create new stacking context */
header,
#masthead,
.header-v2,
.site-header {
  position: relative !important;
  z-index: auto !important;
}

.search-results-header {
  padding: 18px 25px !important;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  background-color: #2563eb !important;
  border-radius: 12px 12px 0 0 !important;
  display: flex !important;
  align-items: center !important;
  font-weight: 600 !important;
  color: #fff !important;
  font-size: 16px !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2) !important;
  min-height: 60px !important;
  height: auto !important;
}

.search-results-header i {
  margin-right: 10px !important;
  color: #fff !important;
  font-size: 18px !important;
}

.search-results-list {
  padding: 10px !important;
  margin: 0 !important;
  list-style: none !important;
  background: #fff !important;
  background-color: #ffffff !important;
  min-height: 380px !important;
  height: auto !important;
  overflow: visible !important;
  display: block !important;
}

.search-result-item {
  padding: 15px 20px !important;
  margin-bottom: 8px !important;
  border: 1px solid #f0f0f0 !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  background: #fff !important;
  background-color: #ffffff !important;
  min-height: 110px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.search-result-item:hover {
  background: #f8f9fa !important;
  border-color: #2563eb !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1) !important;
  transform: translateX(4px) !important;
}

.search-result-item:last-child {
  margin-bottom: 0 !important;
  background-color: #f8f9fa !important;
}

.search-result-item:last-child {
  border-bottom: none !important;
}

.search-result-image {
  width: 80px !important;
  height: 80px !important;
  object-fit: cover !important;
  border-radius: 10px !important;
  margin-right: 0 !important;
  flex-shrink: 0 !important;
  border: 1px solid #eee !important;
  background: #f5f5f5 !important;
}

.search-result-content {
  flex: 1 !important;
  min-width: 0 !important;
  display: block !important;
}

.search-result-title {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #333 !important;
  margin: 0 0 8px 0 !important;
  line-height: 1.4 !important;
  display: block !important;
  overflow: visible !important;
  min-height: 20px !important;
}

.search-result-title .badge {
  font-size: 11px !important;
  padding: 3px 8px !important;
  border-radius: 4px !important;
  margin-right: 6px !important;
  vertical-align: middle !important;
}

.search-result-price {
  font-size: 18px !important;
  color: #2563eb !important;
  font-weight: 700 !important;
  margin: 0 !important;
  display: block !important;
  min-height: 20px !important;
}

.search-results-footer {
  padding: 15px 20px !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  border-top: 2px solid #f0f0f0 !important;
  text-align: center !important;
  border-radius: 0 0 12px 12px !important;
}

.search-results-footer a {
  color: #fff !important;
  text-decoration: none !important;
  font-size: 14px !important;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  padding: 12px 35px !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
}

.search-results-footer a:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
}

.search-loading {
  padding: 40px 20px !important;
  text-align: center !important;
  color: #666 !important;
  font-size: 15px !important;
  background: #fff !important;
  font-weight: 500 !important;
  display: inline-flex !important;
  align-items: center !important;
  transition: color 0.2s ease !important;
}

.search-results-footer a:hover {
  color: #1d4ed8 !important;
}

.search-results-footer i {
  margin-left: 6px !important;
}

.search-loading {
  padding: 20px !important;
  text-align: center !important;
  color: #6c757d !important;
  font-size: 14px !important;
}

.search-loading i {
  margin-right: 8px !important;
  animation: spin 1s linear infinite !important;
}

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

/* Sidebar Live Search Results */
.sidebar-search-container {
  position: relative !important;
}

.sidebar-live-search-results {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: 0 !important;
  background: #fff !important;
  border: 1px solid #dee2e6 !important;
  border-radius: 0 0 8px 8px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
  z-index: 1000 !important;
  max-height: 300px !important;
  overflow-y: auto !important;
  margin-top: 2px !important;
}

/* Departments Menu */
.departments-menu-v2 {
  flex: 0 0 auto !important;
  padding: 0 15px !important;
}

/* Electro Navbar Search Container */
.electro-navbar-search {
  overflow: hidden !important;
  max-width: 100% !important;
  flex: 0 0 auto !important;
  padding: 0 15px !important;
  display: flex !important;
  align-items: center !important;
}

/* Ensure header icons are visible */
.header-icons {
  flex-shrink: 0 !important;
  min-width: auto !important;
  padding: 0 10px !important;
}

.header-icons .header-icon {
  margin: 0 5px !important;
}

/* Electro Navbar Container */
.electro-navbar-inner {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
}

.electro-navbar-inner .row {
  width: 100% !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
}

/* Override primary colors */
.btn-primary,
.bg-primary {
  background-color: #2563eb !important;
  border-color: #2563eb !important;
}

.btn-primary:hover {
  background-color: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
}

.text-primary {
  color: #2563eb !important;
}

/* Navigation active states */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #2563eb !important;
}

/* Links */
a {
  color: #2563eb;
}

a:hover {
  color: #1d4ed8;
}

/* Product cards */
.product-card:hover {
  border-color: #2563eb;
}

/* Buttons */
.btn-add-to-cart {
  background-color: #2563eb;
  border-color: #2563eb;
}

.btn-add-to-cart:hover {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
}

/* Header top bar */
.top-bar {
  background-color: #1e3a8a;
}

.top-bar p,
.top-bar .nav-link,
.top-bar a {
  color: #fff !important;
}

.top-bar .nav-link:hover,
.top-bar a:hover {
  color: #fed700 !important;
}

/* Footer */
.footer-primary {
  background-color: #1e3a8a;
}

/* Badges */
.badge-primary {
  background-color: #2563eb !important;
}

/* Forms */
.form-control:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

/* Owl Carousel navigation */
.owl-theme .owl-nav [class*='owl-']:hover {
  background-color: #2563eb !important;
}

.owl-theme .owl-dots .owl-dot.active span {
  background-color: #2563eb !important;
}

/* Product Hover Area - Ensure Wishlist and Compare Show on Hover */
.products > .product,
.owl-item > .product,
ul.products > li.product {
  position: relative;
}

.products > .product .product-outer,
.owl-item > .product .product-outer,
ul.products > li.product .product-outer {
  position: relative;
}

/* CRITICAL FIX: Reserve space for hover-area to prevent layout shift */
.products > .product .product-inner,
.owl-item > .product .product-inner,
ul.products > li.product .product-inner {
  position: relative;
  overflow: visible !important;
  transition: box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
  /* FIX: Remove transform to prevent glitching - use box-shadow only */
  /* Ensure product-inner has stable dimensions */
  box-sizing: border-box;
  /* Reserve space for hover-area at bottom */
  padding-bottom: 0;
  /* Default border to prevent layout shift */
  border: 2px solid transparent !important;
  border-radius: 8px;
}

.products > .product .hover-area,
.owl-item > .product .hover-area,
ul.products > li.product .hover-area {
  /* CRITICAL: Always reserve maximum space to prevent ANY layout shift */
  /* Reserve enough space for: padding-top (0.214em ≈ 3px) + action-buttons (~45px) + margin-top (8px) ≈ 70px */
  display: block !important;
  visibility: hidden !important;
  opacity: 0 !important;
  min-height: 70px !important;
  height: 70px !important;
  max-height: 70px !important;
  overflow: hidden !important;
  border: none;
  position: relative;
  background-color: #fff;
  /* FIX: Always reserve space - no margin/padding changes on hover */
  margin-top: 8px !important;
  padding-top: 0.214em !important;
  padding-bottom: 0 !important;
  transition: opacity 0.3s ease, visibility 0.3s ease, border-color 0.3s ease;
  border-top: 1px solid transparent;
  /* Ensure this space is always maintained */
  box-sizing: border-box;
}

.products > .product:hover .hover-area,
.products > .product.hover .hover-area,
.owl-item > .product:hover .hover-area,
.owl-item > .product.hover .hover-area,
ul.products > li.product:hover .hover-area,
ul.products > li.product.hover .hover-area {
  visibility: visible !important;
  opacity: 1 !important;
  /* Keep fixed height - content fits within reserved space, no expansion */
  height: 70px !important;
  max-height: 70px !important;
  overflow: visible !important;
  display: block !important;
  /* FIX: Keep same padding/margin - no layout shift */
  padding-top: 0.214em !important;
  padding-bottom: 0 !important;
  margin-top: 8px !important;
  border-top: 1px solid #eaeaea !important;
  /* Maintain reserved space */
  min-height: 70px !important;
}

.products > .product .hover-area .action-buttons,
.owl-item > .product .hover-area .action-buttons,
ul.products > li.product .hover-area .action-buttons {
  width: 100%;
  font-size: 0.929em;
  line-height: 1.385em;
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 8px 0;
  gap: 30px !important;
}

.products > .product .hover-area .action-buttons > div,
.products > .product .hover-area .action-buttons > a,
.owl-item > .product .hover-area .action-buttons > div,
.owl-item > .product .hover-area .action-buttons > a,
ul.products > li.product .hover-area .action-buttons > div,
ul.products > li.product .hover-area .action-buttons > a {
  padding-top: 0.571em;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
  color: #8598a9;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.products > .product .hover-area .action-buttons a:hover,
.owl-item > .product .hover-area .action-buttons a:hover,
ul.products > li.product .hover-area .action-buttons a:hover {
  color: #2563eb !important;
}

.products > .product .hover-area .action-buttons i,
.owl-item > .product .hover-area .action-buttons i,
ul.products > li.product .hover-area .action-buttons i {
  margin-right: 0 !important;
  font-size: 1.5em !important;
}

/* Ensure hover state works on all product cards */
/* Note: product-inner transition is defined above - this is a duplicate, keeping for compatibility */

.products > .product:hover .product-inner,
.owl-item > .product:hover .product-inner,
ul.products > li.product:hover .product-inner {
  box-shadow: 0px 0px 6px 0px rgba(1, 1, 1, 0.3);
  background-color: #fff;
  /* FIX: Remove transform to prevent glitching with hover-area */
  transform: none;
  /* Blue border covering entire card on hover - match other sections */
  border: 2px solid #2563eb !important;
  border-radius: 8px;
}


/* Ensure Çok Satanlar section has same hover design as En Çok Satan Ürünlerimiz */
.home-v2-product-cards-carousel .products > .product .product-outer,
.section-product-cards-carousel .products > .product .product-outer {
  overflow: visible !important;
  position: relative;
}

.home-v2-product-cards-carousel .products > .product .product-inner,
.section-product-cards-carousel .products > .product .product-inner {
  position: relative;
  overflow: visible !important;
  transition: box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  padding-bottom: 0;
  /* Default border to prevent layout shift */
  border: 2px solid transparent !important;
  border-radius: 8px;
  /* Ensure border is always visible */
  margin: 0;
}

.home-v2-product-cards-carousel .products > .product:hover .product-inner,
.home-v2-product-cards-carousel .products > .product.hover .product-inner,
.section-product-cards-carousel .products > .product:hover .product-inner,
.section-product-cards-carousel .products > .product.hover .product-inner {
  box-shadow: 0px 0px 6px 0px rgba(1, 1, 1, 0.3);
  background-color: #fff;
  transform: none;
  /* Blue border covering entire card on hover - CRITICAL: Must override all other rules */
  border: 2px solid #2563eb !important;
  border-width: 2px !important;
  border-style: solid !important;
  border-color: #2563eb !important;
  border-radius: 8px;
}

.home-v2-product-cards-carousel .products > .product .hover-area,
.section-product-cards-carousel .products > .product .hover-area {
  display: block !important;
  visibility: hidden !important;
  opacity: 0 !important;
  min-height: 70px !important;
  height: 70px !important;
  max-height: 70px !important;
  overflow: hidden !important;
  border: none;
  position: relative;
  background-color: #fff;
  margin-top: 8px !important;
  padding-top: 0.214em !important;
  padding-bottom: 0 !important;
  transition: opacity 0.3s ease, visibility 0.3s ease, border-color 0.3s ease;
  border-top: 1px solid transparent;
  box-sizing: border-box;
}

.home-v2-product-cards-carousel .products > .product:hover .hover-area,
.section-product-cards-carousel .products > .product:hover .hover-area {
  visibility: visible !important;
  opacity: 1 !important;
  height: 70px !important;
  max-height: 70px !important;
  overflow: visible !important;
  display: block !important;
  padding-top: 0.214em !important;
  padding-bottom: 0 !important;
  margin-top: 8px !important;
  border-top: 1px solid #eaeaea !important;
  min-height: 70px !important;
}

.home-v2-product-cards-carousel .products > .product .hover-area .action-buttons,
.section-product-cards-carousel .products > .product .hover-area .action-buttons {
  width: 100%;
  font-size: 0.929em;
  line-height: 1.385em;
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 8px 0;
  gap: 30px !important;
}

.home-v2-product-cards-carousel .products > .product .hover-area .action-buttons > a,
.section-product-cards-carousel .products > .product .hover-area .action-buttons > a {
  padding-top: 0.571em;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
  color: #8598a9;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.home-v2-product-cards-carousel .products > .product .hover-area .action-buttons a:hover,
.section-product-cards-carousel .products > .product .hover-area .action-buttons a:hover {
  color: #2563eb !important;
}

.home-v2-product-cards-carousel .products > .product .hover-area .action-buttons i,
.section-product-cards-carousel .products > .product .hover-area .action-buttons i {
  margin-right: 0 !important;
  font-size: 1.5em !important;
}

/* Specific styling for product-card class (horizontal cards in Çok Satanlar) */
li.product.product-card .hover-area {
  margin-top: 8px;
}

/* Fix duplicate compare buttons */

/* Ensure action-buttons layout */
.hover-area .action-buttons {
  display: flex !important;
  justify-content: space-around !important;
  align-items: center !important;
  width: 100% !important;
  padding: 8px 0 !important;
  gap: 10px;
}

/* Style the action buttons properly */
.hover-area .action-buttons > a {
  display: inline-flex !important;
  align-items: center;
  padding-top: 0.571em;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
  color: #8598a9;
  text-decoration: none;
  cursor: pointer;
}

/* Hide duplicate compare buttons - SPECIFIC APPROACH */
/* Only hide the SECOND compare button if it exists */
.hover-area .action-buttons > a.add-to-compare-link:nth-child(3) {
  display: none !important;
}

/* Hide any compare button that's 4th or later */
.hover-area .action-buttons > a.add-to-compare-link:nth-child(n+4) {
  display: none !important;
}

/* If there are exactly 4 links, hide the 4th one */
.hover-area .action-buttons > a:nth-child(4) {
  display: none !important;
}

/* Hide any clear divs or other junk - but NOT the buttons */
.hover-area .action-buttons .clear {
  display: none !important;
}

.hover-area .action-buttons > div:not(.add_to_wishlist):not(.add-to-compare-link) {
  display: none !important;
}

/* Fix owl-carousel overflow issues that hide hover buttons */
.owl-carousel,
.owl-stage-outer,
.owl-stage,
.products.owl-carousel {
  overflow: visible !important;
}

/* Ensure carousel containers don't clip hover elements */
.products-carousel-tabs-v5,
.home-v2-categories-products-carousel,
.section-products-carousel,
.section-product-cards-carousel,
.home-v2-product-cards-carousel {
  overflow: visible !important;
}

/* Add padding to carousel sections to accommodate hover buttons */
.products-carousel-tabs-v5 .tab-content,
.home-v2-categories-products-carousel > div,
.section-products-carousel > div,
.section-product-cards-carousel > div,
.home-v2-product-cards-carousel > div {
  padding-bottom: 60px !important;
}

/* ============================================
   Mobile Live Search - 2-Column Grid (Trendyol Style)
   ============================================ */
@media (max-width: 991.98px) {
    /* Container for mobile search results */
    .mobile-live-search-results {
        position: fixed !important;
        top: 55px !important;
        left: 0 !important;
        right: 0 !important;
        max-height: calc(100vh - 55px - 70px) !important;
        background: #f8f8f8 !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
        overflow-y: auto !important;
        z-index: 999 !important;
        border-top: 1px solid #f0f0f0 !important;
    }
    
    /* 2-Column Grid Layout */
    .mobile-search-results-list {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
        padding: 6px !important;
        margin: 0 !important;
        list-style: none !important;
    }
    
    /* Individual search result item - VERTICAL CARD */
    .search-result-item {
        background: #fff !important;
        border-radius: 8px !important;
        padding: 8px !important;
        display: flex !important;
        flex-direction: column !important;
        cursor: pointer !important;
        transition: all 0.2s !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.06) !important;
    }
    
    .search-result-item:hover,
    .search-result-item:active {
        box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
        transform: translateY(-2px) !important;
    }
    
    /* Product image in search results */
    .search-result-image {
        width: 100% !important;
        aspect-ratio: 1 !important;
        border-radius: 6px !important;
        object-fit: cover !important;
        background: #f5f5f5 !important;
        margin-bottom: 8px !important;
    }
    
    /* Info section (title + price) */
    .search-result-info {
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
    }
    
    /* Product title with badge */
    .search-result-title {
        font-size: 11px !important;
        color: #333 !important;
        margin: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        line-height: 1.3 !important;
        min-height: 28px !important;
        max-height: 28px !important;
    }
    
    .search-result-title .badge {
        font-size: 8px !important;
        padding: 2px 4px !important;
        margin-right: 3px !important;
        vertical-align: middle !important;
        display: inline-block !important;
    }
    
    /* Category - HIDE IT */
    .search-result-category {
        display: none !important;
    }
    
    /* Product price */
    .search-result-price {
        font-size: 14px !important;
        font-weight: 700 !important;
        color: #2563eb !important;
        margin: 0 !important;
    }
    
    /* Loading/empty states - FULL WIDTH */
    .mobile-search-results-list .search-loading,
    .mobile-search-results-list .search-empty {
        grid-column: 1 / -1 !important;
        padding: 30px 15px !important;
        text-align: center !important;
        color: #666 !important;
        font-size: 14px !important;
        background: #fff !important;
        border-radius: 8px !important;
        margin: 6px !important;
    }
    
    /* View all results button - FULL WIDTH */
    .mobile-search-results-footer {
        grid-column: 1 / -1 !important;
        padding: 15px !important;
        text-align: center !important;
        background: transparent !important;
    }
    
    .mobile-search-results-footer .btn {
        width: 100% !important;
        max-width: 300px !important;
        padding: 12px 20px !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        border-radius: 8px !important;
    }
}

/* Desktop Live Search (keep existing styles if any) */
@media (min-width: 992px) {
    .mobile-live-search-results {
        display: none !important;
    }
    
    /* Desktop live search - FINAL OVERRIDE */
    .live-search-results,
    #liveSearchResults {
        position: absolute !important; /* Stick to search bar */
        z-index: 999999 !important;
        background: #ffffff !important;
        background-color: #ffffff !important;
    }
    
    /* CRITICAL: Desktop search items HORIZONTAL layout (not column like mobile) */
    .live-search-results .search-result-item,
    #liveSearchResults .search-result-item,
    #searchResultsList .search-result-item {
        display: flex !important;
        flex-direction: row !important;  /* Horizontal: image left, text right */
        align-items: center !important;
        gap: 15px !important;
        padding: 15px 20px !important;
        min-height: 110px !important;
        height: auto !important;
        background: #fff !important;
        background-color: #ffffff !important;
        overflow: visible !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .live-search-results .search-result-image,
    #liveSearchResults .search-result-image {
        width: 80px !important;
        height: 80px !important;
        flex-shrink: 0 !important;
    }
    
    .live-search-results .search-result-content,
    #liveSearchResults .search-result-content {
        flex: 1 !important;
        display: block !important;
    }
    
    .live-search-results .search-result-title,
    #liveSearchResults .search-result-title {
        font-size: 15px !important;
        display: block !important;
        margin-bottom: 8px !important;
    }
    
    .live-search-results .search-result-price,
    #liveSearchResults .search-result-price {
        font-size: 18px !important;
        display: block !important;
        color: #2563eb !important;
        font-weight: 700 !important;
    }
}

/* ============================================
   FINAL NUCLEAR OVERRIDE - DESKTOP DROPDOWN
   This MUST be at the end of file!
   ============================================ */
div.live-search-results,
div#liveSearchResults,
.search_block_top .live-search-results,
#search_block_top #liveSearchResults {
    background: #ffffff !important;
    background-color: #ffffff !important;
}

/* When dropdown is shown */
div.live-search-results.show,
div#liveSearchResults.show {
    display: block !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
}

/* ============================================
   QUANTITY STEPPER (Desktop & All Screens)
   ============================================ */
.quantity-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    width: auto !important;
    border: 2px solid #e5e5e5 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #fff !important;
}

.quantity-btn {
    flex: 0 0 40px !important;
    width: 40px !important;
    height: 46px !important;
    background: #f8f9fa !important;
    border: none !important;
    color: #2563eb !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

.quantity-btn:hover {
    background: #2563eb !important;
    color: #fff !important;
}

.quantity-btn:active {
    transform: scale(0.95) !important;
}

.quantity-btn.minus {
    border-right: 1px solid #e5e5e5 !important;
}

.quantity-btn.plus {
    border-left: 1px solid #e5e5e5 !important;
}

.quantity input.qty {
    width: 80px !important;
    height: 46px !important;
    padding: 0 10px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #333 !important;
    border: none !important;
    background: #fff !important;
    text-align: center !important;
    -webkit-appearance: none !important;
    -moz-appearance: textfield !important;
}

.quantity input.qty:focus {
    outline: none !important;
}

/* Remove spinner arrows */
.quantity input.qty::-webkit-outer-spin-button,
.quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* ============================================
   BENZER ÜRÜNLER (Similar Products)
   ============================================ */
.related.products {
    margin-top: 40px !important;
    padding-top: 20px !important;
    border-top: 1px solid #e5e5e5 !important;
    clear: both !important;
    width: 100% !important;
    display: block !important;
}

.related.products h2 {
    font-size: 28px !important;
    margin-bottom: 25px !important;
    color: #333 !important;
    font-weight: 600 !important;
    width: 100% !important;
    display: block !important;
    clear: both !important;
}

.scroll-products {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 20px !important;
    padding: 20px 0 !important;
    margin: 0 !important;
    list-style: none !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-behavior: smooth !important;
    scrollbar-width: thin !important;
    scrollbar-color: #2563eb #f1f1f1 !important;
    width: 100% !important;
    clear: both !important;
}

.scroll-products::-webkit-scrollbar {
    height: 8px !important;
}

.scroll-products::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
    border-radius: 10px !important;
}

.scroll-products::-webkit-scrollbar-thumb {
    background: #2563eb !important;
    border-radius: 10px !important;
}

.scroll-products::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8 !important;
}

.scroll-products li.product {
    flex: 0 0 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
}

.scroll-products .product-outer {
    width: 100% !important;
    height: 100% !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    background: #fff !important;
}

.scroll-products .product-outer:hover {
    border-color: #2563eb !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1) !important;
    transform: translateY(-3px) !important;
}

.scroll-products .product-inner {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 15px !important;
}

.scroll-products .product-thumbnail {
    width: 100% !important;
    height: 280px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f8f9fa !important;
    border-radius: 8px !important;
    margin-bottom: 15px !important;
}

.scroll-products .product-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    max-width: 100% !important;
    max-height: 100% !important;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .related.products {
        margin-top: 30px !important;
        margin-left: -15px !important;
        margin-right: -15px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 15px !important;
        clear: both !important;
        width: 100% !important;
        display: block !important;
        overflow: hidden !important;
    }
    
    .related.products h2 {
        font-size: 20px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        margin-bottom: 15px !important;
        margin-top: 0 !important;
        width: 100% !important;
        display: block !important;
        clear: both !important;
    }
    
    .scroll-products {
        gap: 15px !important;
        padding: 10px 0 10px 15px !important;
        margin: 0 !important;
        width: 100% !important;
        clear: both !important;
    }
    
    .scroll-products li.product:last-child {
        margin-right: 15px !important;
    }
    
    .scroll-products li.product {
        flex: 0 0 200px !important;
        min-width: 200px !important;
        max-width: 200px !important;
    }
    
    .scroll-products .product-outer {
        border: 1px solid #e5e5e5 !important;
        border-radius: 8px !important;
    }
    
    .scroll-products .product-inner {
        padding: 12px !important;
    }
    
    .scroll-products .product-thumbnail {
        height: 200px !important;
        margin-bottom: 12px !important;
    }
    
    .scroll-products::-webkit-scrollbar {
        height: 4px !important;
    }
    
    .scroll-products .woocommerce-loop-product__title {
        font-size: 14px !important;
        line-height: 1.4 !important;
        margin: 8px 0 !important;
        height: 40px !important;
        overflow: hidden !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
    }
    
    .scroll-products .price {
        font-size: 16px !important;
        font-weight: 600 !important;
        color: #2563eb !important;
    }
    
    .scroll-products .loop-product-categories {
        font-size: 11px !important;
        margin-bottom: 8px !important;
    }
    
    .scroll-products .product-rating {
        margin: 8px 0 !important;
    }
    
    .scroll-products .hover-area {
        display: none !important;
    }
    
    .scroll-products .add-to-cart-wrap {
        margin-top: 10px !important;
    }
    
    .scroll-products .add-to-cart-wrap .button {
        padding: 8px 12px !important;
        font-size: 13px !important;
    }
    
    /* Ensure wishlist buttons are clickable on mobile */
    .add_to_wishlist,
    .wishlist-icon,
    .product-wishlist-btn,
    .hover-area .action-buttons a.add_to_wishlist {
        pointer-events: auto !important;
        cursor: pointer !important;
        touch-action: manipulation !important;
        z-index: 10 !important;
        position: relative !important;
        -webkit-tap-highlight-color: rgba(0,0,0,0.1) !important;
        user-select: none !important;
    }
    
    .add_to_wishlist i,
    .wishlist-icon i,
    .product-wishlist-btn i {
        pointer-events: none !important;
    }
}

/* ============================================
   MOBILE: PRODUCT DETAIL PAGE IMPROVEMENTS
   ============================================ */
@media (max-width: 767px) {
    /* Product title */
    .single-product-wrapper .product_title {
        font-size: 22px !important;
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
    }
    
    /* Product images */
    .product-images-wrapper {
        margin-bottom: 20px !important;
    }
    
    .flex-control-thumbs {
        margin-top: 10px !important;
        gap: 10px !important;
        display: flex !important;
        overflow-x: auto !important;
        padding-bottom: 5px !important;
    }
    
    .flex-control-thumbs .electro-wc-product-gallery__image {
        flex: 0 0 80px !important;
        width: 80px !important;
        height: 80px !important;
    }
    
    /* Product price */
    .single-product-wrapper .price {
        font-size: 24px !important;
        margin: 15px 0 !important;
    }
    
    /* Quantity and buttons */
    .variations_button {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    /* Quantity selector styling */
    .quantity {
        width: 100% !important;
        margin-bottom: 10px !important;
    }
    
    .quantity label {
        display: block !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        color: #333 !important;
        margin-bottom: 8px !important;
    }
    
    .quantity-wrapper {
        display: flex !important;
        align-items: center !important;
        gap: 0 !important;
        width: 100% !important;
        border: 2px solid #e5e5e5 !important;
        border-radius: 8px !important;
        overflow: hidden !important;
        background: #fff !important;
    }
    
    .quantity-btn {
        flex: 0 0 50px !important;
        width: 50px !important;
        height: 50px !important;
        background: #f8f9fa !important;
        border: none !important;
        color: #2563eb !important;
        font-size: 24px !important;
        font-weight: 700 !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
    }
    
    .quantity-btn:hover {
        background: #2563eb !important;
        color: #fff !important;
    }
    
    .quantity-btn:active {
        transform: scale(0.95) !important;
    }
    
    .quantity-btn.minus {
        border-right: 1px solid #e5e5e5 !important;
    }
    
    .quantity-btn.plus {
        border-left: 1px solid #e5e5e5 !important;
    }
    
    .quantity input.qty {
        flex: 1 !important;
        height: 50px !important;
        padding: 0 15px !important;
        font-size: 18px !important;
        font-weight: 700 !important;
        color: #333 !important;
        border: none !important;
        background: #fff !important;
        text-align: center !important;
        -webkit-appearance: none !important;
        -moz-appearance: textfield !important;
    }
    
    .quantity input.qty:focus {
        outline: none !important;
    }
    
    /* Remove spinner arrows on number input */
    .quantity input.qty::-webkit-outer-spin-button,
    .quantity input.qty::-webkit-inner-spin-button {
        -webkit-appearance: none !important;
        margin: 0 !important;
    }
    
    .single_add_to_cart_button,
    .add-to-wishlist-btn {
        width: 100% !important;
        padding: 15px !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        border-radius: 8px !important;
        transition: all 0.3s ease !important;
    }
    
    .single_add_to_cart_button {
        background: #2563eb !important;
        color: #fff !important;
        border: 2px solid #2563eb !important;
    }
    
    .single_add_to_cart_button:hover {
        background: #1d4ed8 !important;
        border-color: #1d4ed8 !important;
    }
    
    .add-to-wishlist-btn {
        background: #fff !important;
        color: #2563eb !important;
        border: 2px solid #2563eb !important;
    }
    
    .add-to-wishlist-btn:hover {
        background: #2563eb !important;
        color: #fff !important;
    }
    
    /* Tabs reverted to default */
    
    /* Social share on mobile */
    .electro-single-product-sharing {
        margin-top: 15px !important;
        padding-top: 15px !important;
    }
}

/* ============================================
   SOCIAL SHARE BUTTONS (Paylaş)
   ============================================ */
.electro-single-product-sharing {
    margin-top: 20px !important;
    padding-top: 20px !important;
    border-top: 1px solid #e5e5e5 !important;
}

.electro-single-product-sharing .social-icons {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    flex-wrap: wrap !important;
}

.electro-single-product-sharing .share-label {
    font-weight: 600 !important;
    font-size: 16px !important;
    color: #333 !important;
    margin-right: 10px !important;
}

.electro-single-product-sharing .social-icons a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    font-size: 18px !important;
}

.electro-single-product-sharing .social-icons a i {
    display: block !important;
    font-size: 18px !important;
    line-height: 1 !important;
}

.electro-single-product-sharing .share-facebook {
    background-color: #1877f2 !important;
    color: #fff !important;
}

.electro-single-product-sharing .share-facebook:hover {
    background-color: #0c5ec5 !important;
    transform: translateY(-2px) !important;
}

.electro-single-product-sharing .share-twitter {
    background-color: #1da1f2 !important;
    color: #fff !important;
}

.electro-single-product-sharing .share-twitter:hover {
    background-color: #0d8bd9 !important;
    transform: translateY(-2px) !important;
}

.electro-single-product-sharing .share-whatsapp {
    background-color: #25d366 !important;
    color: #fff !important;
}

.electro-single-product-sharing .share-whatsapp:hover {
    background-color: #1ebd57 !important;
    transform: translateY(-2px) !important;
}

/* Mobile responsive */
@media (max-width: 767px) {
    .electro-single-product-sharing .social-icons {
        gap: 10px !important;
    }
    
    .electro-single-product-sharing .social-icons a {
        width: 36px !important;
        height: 36px !important;
        font-size: 16px !important;
    }
    
    .electro-single-product-sharing .social-icons a i {
        font-size: 16px !important;
    }
    
    .electro-single-product-sharing .share-label {
        font-size: 14px !important;
        width: 100% !important;
        margin-bottom: 5px !important;
    }
}

/* ============================================
   URETIM & IMALAT PAGE - MOBILE IMAGE FIX
   ============================================ */

/* Fix product images on uretim-detay and imalat pages */
.product-image,
.product-thumbnail,
.imalat-categories .product-thumbnail,
.uretim-detay-page .product-image,
.product-category .product-thumbnail,
.product-card .product-image {
    width: 100% !important;
    height: 0 !important;
    padding-bottom: 100% !important;
    overflow: hidden !important;
    display: block !important;
    background: #ffffff !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 8px !important;
    margin-bottom: 15px !important;
    position: relative !important;
}

/* Ensure product images are visible on homepage sections - use fixed aspect ratio */
.section-product-cards-carousel .product-thumbnail,
.home-v2-product-cards-carousel .product-thumbnail,
.section-products-carousel .product-thumbnail,
.home-v2-categories-products-carousel .product-thumbnail,
.products-carousel-tabs-v5 .product-thumbnail {
    width: 100% !important;
    height: 0 !important;
    padding-bottom: 75% !important; /* 4:3 aspect ratio for consistent sizing */
    position: relative !important;
    overflow: hidden !important;
    background: #f5f5f5 !important;
    border-radius: 8px !important;
}

.section-product-cards-carousel .product-thumbnail img,
.home-v2-product-cards-carousel .product-thumbnail img,
.section-products-carousel .product-thumbnail img,
.home-v2-categories-products-carousel .product-thumbnail img,
.products-carousel-tabs-v5 .product-thumbnail img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    border-radius: 8px !important;
}

.section-product-cards-carousel .product-thumbnail a,
.home-v2-product-cards-carousel .product-thumbnail a,
.section-products-carousel .product-thumbnail a,
.home-v2-categories-products-carousel .product-thumbnail a,
.products-carousel-tabs-v5 .product-thumbnail a {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    /* Remove blue rectangle on hover/focus */
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.section-product-cards-carousel .product-thumbnail a:hover,
.section-product-cards-carousel .product-thumbnail a:focus,
.home-v2-product-cards-carousel .product-thumbnail a:hover,
.home-v2-product-cards-carousel .product-thumbnail a:focus,
.section-products-carousel .product-thumbnail a:hover,
.section-products-carousel .product-thumbnail a:focus,
.home-v2-categories-products-carousel .product-thumbnail a:hover,
.home-v2-categories-products-carousel .product-thumbnail a:focus,
.products-carousel-tabs-v5 .product-thumbnail a:hover,
.products-carousel-tabs-v5 .product-thumbnail a:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* ============================================
   MOBILE: ADD-TO-CART ICON PILL
   ============================================ */
@media (max-width: 767px) {
  /* .btn-add-to-cart (for product-card component) */
  .btn-add-to-cart {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
  }
  .btn-add-to-cart i {
    background: #2563eb !important;
    color: #fff !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
  }

  /* .add_to_cart_button (main page and urunler page) - make visible with blue icon */
  .add_to_cart_button,
  a.button.add_to_cart_button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    background: #2563eb !important;
    color: #fff !important;
    border-radius: 50% !important;
    text-decoration: none !important;
    position: relative !important;
    visibility: visible !important;
    opacity: 1 !important;
    border: none !important;
    padding: 0 !important;
    min-width: 40px !important;
  }

  .add_to_cart_button::before,
  a.button.add_to_cart_button::before {
    content: "\f07a" !important; /* FontAwesome shopping cart icon */
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    font-size: 18px !important;
    display: inline-block !important;
    line-height: 1 !important;
  }

  .add_to_cart_button:hover,
  a.button.add_to_cart_button:hover {
    background: #1d4ed8 !important;
    transform: scale(1.1) !important;
  }

  /* Ensure add-to-cart-wrap doesn't hide the button */
  .add-to-cart-wrap {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

.product-image a,
.product-thumbnail a,
.imalat-categories .product-thumbnail a,
.uretim-detay-page .product-image a,
.product-category .product-thumbnail a {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    /* Remove blue rectangle on hover/focus */
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.product-image a:hover,
.product-image a:focus,
.product-thumbnail a:hover,
.product-thumbnail a:focus,
.imalat-categories .product-thumbnail a:hover,
.imalat-categories .product-thumbnail a:focus,
.uretim-detay-page .product-image a:hover,
.uretim-detay-page .product-image a:focus,
.product-category .product-thumbnail a:hover,
.product-category .product-thumbnail a:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Homepage sections - override absolute positioning */
.section-product-cards-carousel .product-thumbnail a,
.home-v2-product-cards-carousel .product-thumbnail a,
.section-products-carousel .product-thumbnail a,
.home-v2-categories-products-carousel .product-thumbnail a,
.products-carousel-tabs-v5 .product-thumbnail a {
    position: static !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
}

.product-image img,
.product-thumbnail img,
.imalat-categories .product-thumbnail img,
.uretim-detay-page .product-image img,
.product-category .product-thumbnail img,
.product-card .product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    border-radius: 8px !important;
    transform: scale(1.1) !important;
}

/* Homepage sections - override image styling */
.section-product-cards-carousel .product-thumbnail img,
.home-v2-product-cards-carousel .product-thumbnail img,
.section-products-carousel .product-thumbnail img,
.home-v2-categories-products-carousel .product-thumbnail img,
.products-carousel-tabs-v5 .product-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    border-radius: 8px !important;
    transform: none !important;
}

/* Product cards styling */
.product-card .product-inner,
.product-outer .product-inner {
    border: 1px solid #e5e5e5 !important;
    border-radius: 8px !important;
    padding: 15px !important;
    background: #fff !important;
    transition: all 0.3s ease !important;
}

/* CRITICAL: Override for Çok Satanlar section - must come after general rule */
.home-v2-product-cards-carousel .product-outer .product-inner,
.section-product-cards-carousel .product-outer .product-inner {
    border: 2px solid transparent !important;
    /* Keep original padding - don't override */
    background: #fff !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease !important;
}

/* CRITICAL: Ensure Çok Satanlar section has default border to prevent layout shift */
.home-v2-product-cards-carousel .products > .product .product-outer,
.home-v2-product-cards-carousel .owl-item > .product .product-outer,
.section-product-cards-carousel .products > .product .product-outer,
.section-product-cards-carousel .owl-item > .product .product-outer {
    overflow: visible !important;
    position: relative;
}

.home-v2-product-cards-carousel .products > .product .product-inner,
.home-v2-product-cards-carousel .owl-item > .product .product-inner,
.section-product-cards-carousel .products > .product .product-inner,
.section-product-cards-carousel .owl-item > .product .product-inner {
    border: 2px solid transparent !important;
    border-radius: 8px !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease !important;
    margin: 0 !important;
    overflow: visible !important;
}

.product-card .product-inner:hover,
.product-outer .product-inner:hover {
    border: 2px solid #2563eb !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1) !important;
    transform: translateY(-3px) !important;
}

/* CRITICAL OVERRIDE: Ensure Çok Satanlar section border works - must override product-card rule */
.home-v2-product-cards-carousel .product-outer .product-inner,
.section-product-cards-carousel .product-outer .product-inner {
    border: 2px solid transparent !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease !important;
}

/* CRITICAL: Ensure Çok Satanlar section gets blue border on hover - override any conflicting rules */
/* Must be more specific than other rules and placed after them - covering ALL possible selectors */
/* This is the FINAL override - must work for Çok Satanlar section */
.home-v2-product-cards-carousel .products > .product:hover .product-inner,
.home-v2-product-cards-carousel .products > .product.hover .product-inner,
.home-v2-product-cards-carousel .products > .product:hover .product-outer .product-inner,
.home-v2-product-cards-carousel .owl-item > .product:hover .product-inner,
.home-v2-product-cards-carousel .owl-item > .product.hover .product-inner,
.home-v2-product-cards-carousel .owl-item > .product:hover .product-outer .product-inner,
.section-product-cards-carousel .products > .product:hover .product-inner,
.section-product-cards-carousel .products > .product.hover .product-inner,
.section-product-cards-carousel .products > .product:hover .product-outer .product-inner,
.section-product-cards-carousel .owl-item > .product:hover .product-inner,
.section-product-cards-carousel .owl-item > .product.hover .product-inner,
.section-product-cards-carousel .owl-item > .product:hover .product-outer .product-inner,
.home-v2-product-cards-carousel .product-outer:hover .product-inner,
.section-product-cards-carousel .product-outer:hover .product-inner {
    border: 2px solid #2563eb !important;
    border-width: 2px !important;
    border-style: solid !important;
    border-color: #2563eb !important;
    border-radius: 8px !important;
    box-shadow: 0px 0px 6px 0px rgba(1, 1, 1, 0.3) !important;
    background-color: #fff !important;
    transform: none !important;
}

/* Desktop: SQUARE images and enhanced styling */
@media (min-width: 768px) {
    /* Desktop: Force square images using padding trick - EXCEPT homepage sections */
    .product-image,
    .product-thumbnail,
    .imalat-categories .product-thumbnail,
    .uretim-detay-page .product-image,
    .product-category .product-thumbnail,
    .product-card .product-image {
        width: 100% !important;
        height: 0 !important;
        padding-bottom: 100% !important;
        background: #ffffff !important;
        border: 1px solid #e5e5e5 !important;
    }
    
    /* Homepage sections - use fixed aspect ratio for consistent image sizes */
    .section-product-cards-carousel .product-thumbnail,
    .home-v2-product-cards-carousel .product-thumbnail,
    .section-products-carousel .product-thumbnail,
    .home-v2-categories-products-carousel .product-thumbnail,
    .products-carousel-tabs-v5 .product-thumbnail {
        width: 100% !important;
        height: 0 !important;
        padding-bottom: 75% !important; /* 4:3 aspect ratio */
        position: relative !important;
        overflow: hidden !important;
        border-radius: 8px !important;
        background: #f5f5f5 !important;
    }
    
    .section-product-cards-carousel .product-thumbnail img,
    .home-v2-product-cards-carousel .product-thumbnail img,
    .section-products-carousel .product-thumbnail img,
    .home-v2-categories-products-carousel .product-thumbnail img,
    .products-carousel-tabs-v5 .product-thumbnail img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: center !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        border-radius: 8px !important;
        transform: none !important;
    }
    
    .section-product-cards-carousel .product-thumbnail a,
    .home-v2-product-cards-carousel .product-thumbnail a,
    .section-products-carousel .product-thumbnail a,
    .home-v2-categories-products-carousel .product-thumbnail a,
    .products-carousel-tabs-v5 .product-thumbnail a {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        display: block !important;
    }
    
    /* Desktop: Anchor positioning */
    .product-image a,
    .product-thumbnail a,
    .imalat-categories .product-thumbnail a,
    .uretim-detay-page .product-image a,
    .product-category .product-thumbnail a {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Desktop: Enhanced card styling */
    .uretim-detay-page .product-card .product-inner,
    .imalat-categories .product-inner {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    }
    
    /* Desktop: Product title styling */
    .uretim-detay-page .product-title,
    .imalat-categories .woocommerce-loop-category__title {
        font-size: 18px !important;
        font-weight: 600 !important;
        color: #333 !important;
        margin: 15px 0 10px 0 !important;
    }
    
    .uretim-detay-page .product-title a,
    .imalat-categories .woocommerce-loop-category__title a {
        color: #333 !important;
        text-decoration: none !important;
        transition: color 0.3s ease !important;
    }
    
    .uretim-detay-page .product-title a:hover,
    .imalat-categories .woocommerce-loop-category__title a:hover {
        color: #2563eb !important;
    }
    
    /* Desktop: Price styling */
    .uretim-detay-page .product-details .price {
        font-size: 20px !important;
        font-weight: 700 !important;
        color: #2563eb !important;
        margin: 10px 0 !important;
    }
    
    /* Desktop: Category count badge */
    .woocommerce-loop-category__title .count {
        background: #2563eb !important;
        color: #fff !important;
        font-size: 14px !important;
        padding: 5px 10px !important;
        border-radius: 4px !important;
        margin-left: 8px !important;
    }
}

/* Mobile specific fixes */
@media (max-width: 767px) {
    /* Uretim & Imalat pages - SQUARE images on mobile */
    .product-image,
    .product-thumbnail,
    .imalat-categories .product-thumbnail,
    .uretim-detay-page .product-image,
    .product-category .product-thumbnail,
    .product-card .product-image {
        width: 100% !important;
        height: 0 !important;
        padding-bottom: 100% !important;
        margin-bottom: 12px !important;
        display: block !important;
        overflow: hidden !important;
        background: #ffffff !important;
        border: 1px solid #e5e5e5 !important;
        border-radius: 8px !important;
        position: relative !important;
    }
    
    /* Mobile: anchor links */
    .product-image a,
    .product-thumbnail a,
    .imalat-categories .product-thumbnail a,
    .uretim-detay-page .product-image a,
    .product-category .product-thumbnail a,
    .product-card .product-image a {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Mobile: images */
    .product-image img,
    .product-thumbnail img,
    .imalat-categories .product-thumbnail img,
    .uretim-detay-page .product-image img,
    .product-category .product-thumbnail img,
    .product-card .product-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: center !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        border-radius: 8px !important;
        transform: scale(1.1) !important;
    }
    
    /* Product cards on mobile */
    .product-card .product-inner,
    .product-outer .product-inner,
    .imalat-categories .product-inner,
    .uretim-detay-page .product-inner {
        padding: 10px !important;
        border: 1px solid #e5e5e5 !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
        background: #fff !important;
    }
    
    /* Product details section */
    .product-details {
        padding: 8px 0 0 0 !important;
    }
    
    /* Product titles on mobile - SMALLER */
    .product-title,
    .woocommerce-loop-category__title {
        font-size: 14px !important;
        line-height: 1.3 !important;
        margin: 8px 0 6px 0 !important;
        font-weight: 600 !important;
        color: #333 !important;
        height: auto !important;
        overflow: visible !important;
        display: block !important;
    }
    
    .product-title a,
    .woocommerce-loop-category__title a {
        color: #333 !important;
        text-decoration: none !important;
    }
    
    .product-title a:hover,
    .woocommerce-loop-category__title a:hover {
        color: #2563eb !important;
    }
    
    /* Price on mobile - SMALLER */
    .product-card .price,
    .product-inner .price,
    .product-details .price {
        font-size: 16px !important;
        font-weight: 700 !important;
        color: #2563eb !important;
        margin: 6px 0 !important;
        display: block !important;
    }
    
    /* Smaller currency symbols */
    .product-details .price .woocommerce-Price-currencySymbol {
        font-size: 14px !important;
    }
    
    /* Better spacing for mobile cards */
    .imalat-categories .products,
    .uretim-detay-page .products {
        gap: 12px !important;
        margin-bottom: 20px !important;
    }
    
    /* Category info section */
    .category-info {
        padding: 8px 0 0 0 !important;
    }
    
    /* Category count badge - SMALLER */
    .woocommerce-loop-category__title .count {
        font-size: 11px !important;
        padding: 3px 6px !important;
        display: inline-block !important;
        margin-left: 4px !important;
        background: #2563eb !important;
        color: #fff !important;
        border-radius: 3px !important;
    }
    
    /* Ensure columns stack properly on mobile */
    .imalat-categories .products .col,
    .uretim-detay-page .products .col {
        padding: 0 !important;
        margin-bottom: 12px !important;
    }
    
    /* Uretim page specific - better mobile spacing */
    .uretim-detay-page .products .col-lg-4 {
        padding: 0 6px !important;
    }
    
    /* Mobile: Hide or minimize unnecessary elements */
    .uretim-detay-page .product-rating,
    .product-card .product-rating {
        display: none !important;
    }
}

/* ============================================
   HAKKIMIZDA PAGE - MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 767px) {
    /* About page header */
    .about-page .page-header h1 {
        font-size: 24px !important;
        margin-bottom: 15px !important;
    }
    
    .about-page .page-header .lead {
        font-size: 16px !important;
    }
    
    /* Feature boxes on mobile */
    .feature-box {
        padding: 20px 15px !important;
        margin-bottom: 15px !important;
    }
    
    .feature-box .icon-circle {
        width: 60px !important;
        height: 60px !important;
    }
    
    .feature-box .icon-circle i {
        font-size: 28px !important;
    }
    
    .feature-box h4 {
        font-size: 16px !important;
        margin-bottom: 10px !important;
    }
    
    .feature-box p {
        font-size: 13px !important;
        margin-bottom: 0 !important;
    }
    
    /* Statistics section on mobile */
    .statistics-section {
        padding: 30px 20px !important;
        margin-bottom: 30px !important;
    }
    
    .stat-item h2 {
        font-size: 36px !important;
        margin-bottom: 10px !important;
    }
    
    .stat-item p {
        font-size: 14px !important;
    }
    
    /* Mission & Vision boxes */
    .mission-box,
    .vision-box {
        padding: 20px 15px !important;
        margin-bottom: 20px !important;
    }
    
    .mission-box h3,
    .vision-box h3 {
        font-size: 18px !important;
        margin-bottom: 15px !important;
    }
    
    .mission-box h3 i,
    .vision-box h3 i {
        font-size: 20px !important;
    }
    
    .mission-box p,
    .vision-box p {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }
    
    /* Core values on mobile */
    .value-card {
        padding: 20px 15px !important;
    }
    
    .value-card .icon-circle {
        width: 60px !important;
        height: 60px !important;
    }
    
    .value-card .icon-circle i {
        font-size: 28px !important;
    }
    
    .value-card h4 {
        font-size: 16px !important;
        margin-bottom: 10px !important;
    }
    
    .value-card p {
        font-size: 13px !important;
    }
    
    /* Company story section */
    .about-page .row .col-lg-6 img {
        margin-bottom: 20px !important;
    }
    
    .about-page h2 {
        font-size: 22px !important;
        margin-bottom: 20px !important;
    }
    
    .about-page .content p {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }
    
    /* Section spacing on mobile */
    .our-values,
    .core-values {
        margin-bottom: 30px !important;
    }
    
    .our-values h2,
    .core-values h2 {
        font-size: 22px !important;
        margin-bottom: 30px !important;
    }
}

/* ============================================
   HIDE GREY STRIKETHROUGH PRICING ON PRODUCT CARDS
   ============================================ */
.price del,
.product-price del,
.woocommerce-Price del,
del.woocommerce-Price-amount,
.price del .woocommerce-Price-amount,
.product-price del .woocommerce-Price-amount,
.price-add-to-cart del,
.price-add-to-cart del span {
    display: none !important;
}

/* Show discount prices in ALL homepage sections */
.section-product-cards-carousel .price del,
.home-v2-product-cards-carousel .price del,
.section-products-carousel .price del,
.home-v2-categories-products-carousel .price del,
.products-carousel-tabs-v5 .price del,
.section-product-cards-carousel .price-add-to-cart del,
.home-v2-product-cards-carousel .price-add-to-cart del,
.section-products-carousel .price-add-to-cart del,
.home-v2-categories-products-carousel .price-add-to-cart del,
.products-carousel-tabs-v5 .price-add-to-cart del,
.products-carousel-tabs-v5 .products .price del,
.products-carousel-tabs-v5 .products .price-add-to-cart del,
.products-carousel-tabs-v5 .tab-content .price del,
.products-carousel-tabs-v5 .tab-pane .price del,
.home-v2-categories-products-carousel .products .price del,
.home-v2-categories-products-carousel .products .price-add-to-cart del,
.section-products-carousel .products .price del,
.section-products-carousel .products .price-add-to-cart del {
    display: inline !important;
    text-decoration: line-through !important;
    color: #999 !important;
    font-size: 14px !important;
    margin-right: 8px !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.section-product-cards-carousel .price del .woocommerce-Price-amount,
.home-v2-product-cards-carousel .price del .woocommerce-Price-amount,
.section-products-carousel .price del .woocommerce-Price-amount,
.home-v2-categories-products-carousel .price del .woocommerce-Price-amount,
.products-carousel-tabs-v5 .price del .woocommerce-Price-amount,
.products-carousel-tabs-v5 .products .price del .woocommerce-Price-amount,
.home-v2-categories-products-carousel .products .price del .woocommerce-Price-amount,
.section-products-carousel .products .price del .woocommerce-Price-amount {
    display: inline !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.section-product-cards-carousel .price ins,
.home-v2-product-cards-carousel .price ins,
.section-products-carousel .price ins,
.home-v2-categories-products-carousel .price ins,
.products-carousel-tabs-v5 .price ins,
.products-carousel-tabs-v5 .products .price ins,
.home-v2-categories-products-carousel .products .price ins,
.section-products-carousel .products .price ins {
    display: inline !important;
    text-decoration: none !important;
    color: #2563eb !important;
    font-weight: 700 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* ============================================
   SMALLER QUANTITY COUNTERS IN CART
   ============================================ */
@media (max-width: 991.98px) {
    .mobile-qty .qty-display {
        min-width: 18px !important;
        font-size: 11px !important;
        padding: 0 4px !important;
    }
    
    .mobile-qty .qty-btn {
        width: 22px !important;
        height: 22px !important;
        font-size: 11px !important;
    }
}

/* ============================================
   Fix WooCommerce Star Font 404 Error
   ============================================ */
/* Override ALL @font-face declarations that try to load star.ttf */
@font-face {
    font-family: 'WooCommerce' !important;
    src: url('data:application/x-font-ttf;charset=utf-8;base64,') format('truetype') !important;
    font-weight: normal !important;
    font-style: normal !important;
    font-display: swap !important;
}

@font-face {
    font-family: 'star' !important;
    src: url('data:application/x-font-ttf;charset=utf-8;base64,') format('truetype') !important;
    font-weight: normal !important;
    font-style: normal !important;
    font-display: swap !important;
}

/* Override any font-face with star.ttf in the URL - catch all variations */
@font-face {
    font-family: 'star';
    src: url('data:application/x-font-ttf;charset=utf-8;base64,') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Ensure star ratings use Unicode characters instead of font files */
.star-rating,
.woocommerce .star-rating,
.star-rating::before,
.star-rating span::before,
.star-rating::after,
.star-rating span::after,
.woocommerce-product-rating .star-rating,
.widget_products .star-rating,
.woocommerce .star-rating::before,
.woocommerce .star-rating::after {
    font-family: inherit !important;
    font-style: normal !important;
    font-weight: normal !important;
    /* Use Unicode stars, not font icons */
}

/* ========================================
   Modern Discount Badge - Global Styles
   ======================================== */

.discount-badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 50%, #ff4757 100%);
    color: #fff;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
    position: relative;
    overflow: hidden;
    animation: pulse-discount 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

.discount-badge-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s infinite;
}

.discount-badge-modern:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.5);
}

.discount-badge-icon {
    font-size: 16px;
    animation: bounce 1s ease-in-out infinite;
    display: inline-block;
}

.discount-badge-text {
    position: relative;
    z-index: 1;
}

/* Badge variants */
.discount-badge-modern.new-badge {
    background: linear-gradient(135deg, #28a745 0%, #20c997 50%, #17a2b8 100%);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.discount-badge-modern.new-badge:hover {
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.5);
}

@keyframes pulse-discount-new {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(40, 167, 69, 0.6);
    }
}

.discount-badge-modern.new-badge {
    animation: pulse-discount-new 2s ease-in-out infinite;
}

/* Position absolute badges (for product cards) */
.position-absolute.discount-badge-modern {
    z-index: 10;
    margin: 0 !important;
}

/* Badge positioning for product thumbnails and listings */
.product-thumbnail,
.loop-product-thumbnail {
    position: relative;
}

.product-thumbnail .discount-badge-modern,
.loop-product-thumbnail .discount-badge-modern,
.product-image .discount-badge-modern {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

.products .product .discount-badge-modern,
.product-outer .discount-badge-modern {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

.price-new {
    color: #2563eb !important;
    font-weight: 700 !important;
    font-size: 1.5em !important;
}

/* Detail page specific: Add left margin */
.product-detail .price .discount-badge-modern,
.product-summary .price .discount-badge-modern,
.woocommerce div.product .price .discount-badge-modern {
    margin-left: 10px;
}

@keyframes pulse-discount {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(255, 71, 87, 0.6);
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* Home page badges - 50% smaller */
.home-v2-product-cards-carousel .discount-badge-modern,
.home-v2-categories-products-carousel .discount-badge-modern,
.section-products-carousel .discount-badge-modern,
.products-carousel-tabs-v5 .discount-badge-modern {
    padding: 4px 10px !important;
    font-size: 10px !important;
    border-radius: 15px !important;
    gap: 4px !important;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3) !important;
    letter-spacing: 0.3px !important;
}

.home-v2-product-cards-carousel .discount-badge-icon,
.home-v2-categories-products-carousel .discount-badge-icon,
.section-products-carousel .discount-badge-icon,
.products-carousel-tabs-v5 .discount-badge-icon {
    font-size: 12px !important;
}

.home-v2-product-cards-carousel .discount-badge-modern:hover,
.home-v2-categories-products-carousel .discount-badge-modern:hover,
.section-products-carousel .discount-badge-modern:hover,
.products-carousel-tabs-v5 .discount-badge-modern:hover {
    transform: scale(1.03) !important;
    box-shadow: 0 3px 10px rgba(255, 71, 87, 0.4) !important;
}

.home-v2-product-cards-carousel .discount-badge-modern::before,
.home-v2-categories-products-carousel .discount-badge-modern::before,
.section-products-carousel .discount-badge-modern::before,
.products-carousel-tabs-v5 .discount-badge-modern::before {
    display: none; /* Disable shine on smaller badges */
}

/* Mobile responsive */
@media (max-width: 768px) {
    .discount-badge-modern {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .discount-badge-icon {
        font-size: 14px;
    }
    
    .price-new {
        font-size: 1.3em !important;
    }
    
    /* Adjust margin on mobile for detail pages */
    .product-detail .price .discount-badge-modern,
    .product-summary .price .discount-badge-modern,
    .woocommerce div.product .price .discount-badge-modern {
        margin-left: 8px;
    }
    
    /* Home page badges on mobile */
    .home-v2-product-cards-carousel .discount-badge-modern,
    .home-v2-categories-products-carousel .discount-badge-modern,
    .section-products-carousel .discount-badge-modern,
    .products-carousel-tabs-v5 .discount-badge-modern {
        padding: 3px 8px !important;
        font-size: 9px !important;
    }
    
    .home-v2-product-cards-carousel .discount-badge-icon,
    .home-v2-categories-products-carousel .discount-badge-icon,
    .section-products-carousel .discount-badge-icon,
    .products-carousel-tabs-v5 .discount-badge-icon {
        font-size: 11px !important;
    }
}

