/*
 Theme Name:   Brandex WP
 Theme URI:    https://varnox.si
 Description:  Default GeneratePress child theme
 Author:       Varnox
 Author URI:   https://varnox.si
 Template:     generatepress
 Version:      0.1
*/
:root {
  --contrast: #222222;
  --contrast-2: #575760;
  --contrast-3: #b2b2be;
  --base: #f0f0f0;
  --base-2: #ffffff;
  --base-3: #ffffff;
  --accent: #000000;
}


body {
  font-family: "Recoleta", sans-serif;
}

/* BARKODE Header Styles */
.header-container {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Brand Section */
.header-brand {
  flex-shrink: 0;
}

.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #000;
}

.header-logo .logo-icon {
  width: 40px;
  height: 40px;
  background-color: #000;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  font-size: 20px;
}

.header-logo .logo-text {
  font-weight: bold;
  font-size: 24px;
  color: #000;
  letter-spacing: 1px;
}

/* Navigation Section */
.header-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-menu {
  display: flex;
  gap: 30px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  text-decoration: none;
  color: #666;
  font-weight: 500;
  font-size: 15px;
  display: flex;
  align-items: center;
  padding: 10px 0;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #000;
}

.dropdown-indicator {
  margin-left: 5px;
  font-size: 10px;
  transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-indicator {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  min-width: 180px;
  list-style: none;
  margin: 0;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 8px 20px;
  text-decoration: none;
  color: #666;
  font-size: 14px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-link:hover {
  background-color: #f8f8f8;
  color: #000;
}

/* Product Dropdown Styles */
.product-dropdown-menu {
  min-width: 420px;
  padding: 7.5px 0;
}

.product-dropdown-item {
  border-bottom: 1px solid #f0f0f0;
}

.product-dropdown-item:last-child {
  border-bottom: none;
}

.product-dropdown-link {
  padding: 0;
  transition: all 0.2s ease;
}

.product-dropdown-link:hover {
  background-color: transparent;
  transform: translateY(-1px);
}

.product-dropdown-content {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  transition: all 0.2s ease;
}

.product-dropdown-link:hover .product-dropdown-content {
  background-color: #f8f9fa;
  border-radius: 4px;
  margin: 0 4px;
}

.product-image-container {
  flex-shrink: 0;
  width: 75px;
  height: 75px;
  border-radius: 6px;
  overflow: hidden;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-dropdown-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.product-dropdown-link:hover .product-dropdown-image {
  transform: scale(1.05);
}

.product-dropdown-placeholder {
  font-size: 20px;
  color: #bbb;
  opacity: 0.7;
}

.product-dropdown-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.product-dropdown-name {
  font-size: 21px;
  font-weight: 500;
  color: #333;
  line-height: 1.3;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-dropdown-price {
  font-size: 19.5px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.product-dropdown-price .amount {
  font-weight: 600;
}

/* Hover animations for product dropdown */
.product-dropdown-link:hover .product-dropdown-name {
  color: #000;
}

.product-dropdown-link:hover .product-dropdown-price {
  color: #000;
}

/* Actions Section */
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.account-link {
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: #666;
  font-size: 14px;
  transition: color 0.3s ease, transform 0.2s ease;
}

.account-link:hover {
  color: #000;
  transform: scale(1.1);
  background: none;
}

.action-icon {
  font-size: 16px;
}

.search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #666;
  font-size: 18px;
  cursor: pointer;
  padding: 5px;
  transition: color 0.3s ease, transform 0.2s ease;
}

.search-icon:hover {
  transform: scale(1.1);
  background: none;
}

.cart-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: none;
  border: none;
  color: #666;
  font-size: 18px;
  cursor: pointer;
  padding: 5px;
  transition: color 0.3s ease, transform 0.2s ease;
}

.cart-icon:hover {
  color: #000;
  transform: scale(1.1);
  background: none;
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #e74c3c;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 3px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.mobile-menu-toggle:hover {
  background-color: #f5f5f5;
}

.mobile-menu-toggle span {
  width: 20px;
  height: 2px;
  background-color: #333;
  transition: all 0.3s ease;
  border-radius: 1px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  background-color: #ffffff;
  border-top: 1px solid #e5e5e5;
  padding: 15px 20px;
  max-height: 70vh;
  overflow-y: auto;
}

.mobile-nav.active {
  display: block;
}

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

.mobile-nav-item {
  border-bottom: 1px solid #f8f9fa;
}

.mobile-nav-item:last-child {
  border-bottom: none;
}

.mobile-nav-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s ease;
}

.mobile-nav-link:hover {
  color: #007cba;
}

.mobile-dropdown-indicator {
  font-size: 18px;
  font-weight: bold;
  color: #666;
  min-width: 20px;
  text-align: center;
  transition: transform 0.2s ease;
}

.mobile-submenu {
  list-style: none;
  margin: 10px 0 0 0;
  padding: 0;
  background-color: #f8f9fa;
  border-radius: 6px;
  overflow: hidden;
}

.mobile-submenu-link {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: #555;
  font-size: 14px;
  font-weight: 400;
  border-bottom: 1px solid #e9ecef;
  transition: background-color 0.2s ease;
}

.mobile-submenu-link:hover {
  background-color: #e9ecef;
  color: #333;
}

.mobile-submenu .mobile-submenu-link:last-child {
  border-bottom: none;
}

/* Mobile Product Dropdown Styles */
.mobile-product-submenu {
  margin: 10px 0 0 0;
  padding: 0;
}

.mobile-product-item {
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 8px;
  padding-bottom: 8px;
}

.mobile-product-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.mobile-product-link {
  padding: 10px 15px;
  border-bottom: 1px solid #e9ecef;
  transition: background-color 0.2s ease;
}

.mobile-product-link:hover {
  background-color: #e9ecef;
}

.mobile-product-content {
  display: block;
}

.mobile-product-image {
  display: none; /* Hide images for cleaner mobile experience */
}

.mobile-product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-product-placeholder {
  font-size: 16px;
  color: #bbb;
  opacity: 0.7;
}

.mobile-product-details {
  display: block;
}

.mobile-product-name {
  font-size: 14px;
  font-weight: 400;
  color: #555;
  line-height: 1.4;
  margin: 0;
}

.mobile-product-price {
  display: none; /* Hide prices for cleaner look */
}

/* Header Responsive Design - styles moved to consolidated media queries at bottom */

/* Mobile Menu Active State styles are defined above in the mobile menu section */

/* Cart Badge Animation */
@keyframes bounce {
  0%,
  20%,
  60%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  80% {
    transform: translateY(-5px);
  }
}

.cart-badge.bounce {
  animation: bounce 0.6s ease-in-out;
}

/* Cart added message */
.cart-added-message {
  background-color: #27ae60;
  color: white;
  padding: 12px 20px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  border-radius: 0;
  margin: 0;
  animation: slideInMessage 0.3s ease-out;
}

@keyframes slideInMessage {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Cart Sidebar Styles - Minimalistic Black & White */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;
}

/* Prevent body scroll when cart is open */
body.cart-open {
  overflow: hidden;
}

.cart-sidebar.active {
  visibility: visible;
  opacity: 1;
}

.cart-sidebar-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.cart-sidebar-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 100%;
  background-color: #ffffff;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.cart-sidebar.active .cart-sidebar-content {
  transform: translateX(0);
}

.cart-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background-color: #ffffff;
}

.cart-sidebar-title {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
  color: #000000;
  letter-spacing: 0.5px;
}

.cart-sidebar-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #000000;
  padding: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
  font-weight: 300;
}

.cart-sidebar-close:hover {
  opacity: 0.6;
}

.cart-sidebar-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cart-item {
  display: flex;
  align-items: flex-start;
  gap:16px;
  padding: 20px;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  background: #ffffff;
  transition: background-color 0.2s ease;
}

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

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

.cart-item-image {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 4px;
  overflow: hidden;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-image img,
.cart-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.cart-item-image a {
  display: block;
  text-decoration: none;
  width: 100%;
  height: 100%;
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0; /* Allows text to wrap properly */
}

.cart-item-name {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #000000;
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.cart-item-pricing {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  margin: 0;
}

.line-total {
  font-size: 18px;
  font-weight: 600;
  color: #000000;
}

.line-total.original {
  text-decoration: line-through;
  color: #888888;
  font-weight: 400;
}

/* Legacy support for old cart-item-price */
.cart-item-price {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: #000000;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 0;
}

.quantity-btn {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  width: 28px;
  height: 28px;
  border-radius: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 400;
  font-size: 16px;
  color: #000000;
  transition: all 0.2s ease;
  user-select: none;
}

.quantity-btn:hover {
  background: #f5f5f5;
  border-color: #cccccc;
}

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

.quantity-value {
  min-width: 30px;
  text-align: center;
  font-weight: 400;
  font-size: 14px;
  color: #000000;
}

.cart-item-remove {
  background: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #888888;
  transition: all 0.2s ease;
  user-select: none;
}

.cart-item-remove:hover {
  background: #f5f5f5;
  border-color: #cccccc;
  color: #d32f2f;
}

.cart-item-remove:active {
  transform: scale(0.95);
}

/* Loading states for cart operations */
.cart-item.updating,
.cart-item.removing {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}

.cart-item.updating::after,
.cart-item.removing::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #e74c3c;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: #888888;
}

.cart-empty p {
  margin: 0 0 24px 0;
  font-size: 14px;
  font-weight: 400;
}

.cart-sidebar-footer {
  padding: 24px 20px;
  border-top: 1px solid #f0f0f0;
  background-color: #ffffff;
}

.cart-total {
  margin-bottom: 24px;
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: 400;
  color: #000000;
  padding: 0;
}

.total-amount {
  color: #000000;
  font-weight: 500;
}

.cart-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn {
  display: inline-block;
  padding: 16px 20px;
  text-decoration: none;
  text-align: center;
  border-radius: 0.3em;
  font-weight: 400;
  font-size: 14px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.btn-primary {
  background-color: #000000;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #333333;
}

.btn-secondary {
  background-color: transparent;
  color: #000000;
  border: 1px solid #000000;
}

.btn-secondary:hover {
  background-color: #000000;
  color: #ffffff;
}

.btn-full {
  width: 100%;
}

/* Responsive Design for Cart Sidebar - styles moved to consolidated media queries at bottom */

/* Search Overlay Styles */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  background-color: rgba(0, 0, 0, 0.8);
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;
}

.search-overlay.active {
  visibility: visible;
  opacity: 1;
}

.search-overlay-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 600px;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 60px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.search-overlay-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.search-overlay-close:hover {
  background-color: #f0f0f0;
  color: #000;
}

.search-form-container {
  width: 100%;
}

.page-404 {
  padding:12em 0;
}


/* .search-field styles moved to search-specific section */

.search-form {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: center;
}

.entry-header {
  text-align: center;
}

.search-field {
  flex: 1;
  padding: 16px 20px !important;
  font-size: 18px;
  border: 2px solid gray !important;
  height:100%;
  border-top-left-radius: 0.5em !important;
  border-bottom-left-radius: 0.5em !important;
  border-right: none !important;
}

.search-field:focus {
  border-color: #333 !important;
}

.search-submit {
  padding: 15px 20px;
  background-color: #333;
  color: #ffffff;
  border-radius: 0 0.5em 0.5em 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
  align-items: center;
  justify-content: center;
}

.search-submit:hover {
  background-color: #000;
}

.search-submit-icon {
  font-size: 18px;
}

/* Search Overlay Responsive Design - styles moved to consolidated media queries at bottom */

/* Live Search Results Styles */
.live-search-results {
  margin-top: 20px;
  background-color: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow-x: visible;
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
}

.search-results-header {
  padding: 12px 16px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 1001;
}

.search-results-title {
  font-size: 14px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-results-list {
  max-height: 320px;
}

.search-result-item {
  transition: all 0.2s ease;
  border-bottom: 1px solid #f0f0f0;
}

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

.search-result-link {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.search-result-item:hover,
.search-result-item.active {
  background-color: #f8f9fa;
}

.search-result-item:hover .search-result-link,
.search-result-item.active .search-result-link {
  transform: translateX(2px);
}

.search-result-image-container {
  width: 50px;
  height: 50px;
  margin-right: 12px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-result-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result-image-placeholder {
  font-size: 20px;
  color: #999;
}

.search-result-content {
  flex: 1;
  min-width: 0;
}

.search-result-name {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 4px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
}

.search-result-price {
  font-size: 14px;
  font-weight: 600;
  color: #e74c3c;
  margin-bottom: 2px;
}

.search-result-type {
  font-size: 12px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.search-result-arrow {
  margin-left: 12px;
  font-size: 16px;
  color: #999;
  transition: all 0.2s ease;
}

.search-result-item:hover .search-result-arrow,
.search-result-item.active .search-result-arrow {
  color: #333;
  transform: translateX(3px);
}

.search-results-footer {
  padding: 12px 16px;
  background-color: #f8f9fa;
  border-top: 1px solid #e5e5e5;
}

.view-all-results-btn {
  width: 100%;
  padding: 10px 16px;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.view-all-results-btn:hover {
  background-color: #000;
}

/* Loading and Error States */
.search-results-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: #666;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 10px;
}

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

.search-no-results,
.search-error {
  text-align: center;
  padding: 40px 20px;
}

.no-results-icon,
.error-icon {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: 0.7;
}

.no-results-message,
.error-message {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
}

.no-results-suggestion {
  font-size: 14px;
  color: #666;
}

/* Top Products Styles */
.top-products-header {
  padding: 12px 16px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #e5e5e5;
}

.top-products-title {
  font-size: 14px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.top-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background-color: #e5e5e5;
}

.top-product-card {
  background-color: #ffffff;
  transition: all 0.2s ease;
  position: relative;
}

.top-product-card:hover,
.top-product-card.hover {
  background-color: #f8f9fa;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.top-product-link {
  display: block;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.top-product-image-container {
  width: 60px;
  height: 60px;
  margin: 0 auto 12px;
  border-radius: 4px;
  overflow: hidden;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-product-image-placeholder {
  font-size: 24px;
  color: #ccc;
}

.top-product-content {
  text-align: center;
}

.top-product-name {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  margin-bottom: 6px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 32px;
}

.top-product-price {
  font-size: 12px;
  color: #666;
  font-weight: 400;
}

/* Responsive Design for Live Search - styles moved to consolidated media queries at bottom */

/* Custom scrollbar for search results */
.search-results-list::-webkit-scrollbar {
  width: 6px;
}

.search-results-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.search-results-list::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.search-results-list::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance:none !important;
}

/* ========================================
   CONSOLIDATED RESPONSIVE STYLES
   ======================================== */

/* Large Tablets and Small Desktops (max-width: 1024px) */
@media (max-width: 1024px) {
  /* Header Styles */
  .header-content {
    padding: 12px 25px;
  }

  .nav-menu {
    gap: 20px;
  }

  .nav-link {
    font-size: 14px;
  }
  
  /* Product dropdown responsive adjustments for tablet */
  .product-dropdown-menu {
    min-width: 250px;
  }
  
  .product-image-container {
    width: 45px;
    height: 45px;
  }
  
  .product-dropdown-name {
    font-size: 13px;
  }
  
  .product-dropdown-price {
    font-size: 12px;
  }
}

/* Tablets (max-width: 768px) */
@media (max-width: 768px) {
  /* Header Styles */
  .header-content {
    padding: 10px 15px;
    position: relative;
  }

  .header-nav {
    display: none;
  }

  /* Mobile Header Layout Restructure */
  .header-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
  }

  .header-actions {
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
  }

  /* Burger menu on the left */
  .mobile-menu-toggle {
    display: flex;
    order: -1;
  }

  /* Hide account button on mobile */
  .account-link {
    display: none !important;
  }

  /* Push search and cart to the right */
  .search-icon {
    margin-left: auto;
    order: 1;
  }

  .cart-icon {
    order: 2;
  }

  .account-link .action-text {
    display: none;
  }

  .header-logo .logo-text {
    font-size: 20px;
  }

  .header-logo .logo-icon {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }

  /* Search Overlay Styles */
  .search-overlay-content {
    width: 95%;
    padding: 60px 20px;
  }

  .search-field {
    padding: 12px 15px;
    font-size: 16px;
  }

  .search-submit {
    padding: 12px 15px;
  }

  .search-submit-icon {
    font-size: 16px;
  }

  /* Live Search Styles */
  .live-search-results {
    margin-top: 15px;
    max-height: 350px;
  }

  .search-result-link {
    padding: 10px 12px;
  }

  .search-result-image-container {
    width: 40px;
    height: 40px;
    margin-right: 10px;
  }

  .search-result-name {
    font-size: 13px;
  }

  .search-result-price {
    font-size: 13px;
  }

  .search-results-header,
  .search-results-footer {
    padding: 10px 12px;
  }
}

.search-form label { 
  width: 100%;
}

.search-form .search-field { 
  width: 100%; 
}


/* Mobile Phones (max-width: 480px) */
@media (max-width: 480px) {
  /* Search Form Styles */
  .search-form label { 
    width: 100%;
  }
  
  .search-form .search-field { 
    border-right: 2px solid gray !important; 
    width: 100%; 
    border-radius: 0.5em; 
  }

  /* Header Styles */
  .header-content {
    padding: 8px 10px;
    position: relative;
  }

  /* Ensure mobile header layout is maintained on very small screens */
  .header-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
  }

  .header-actions {
    gap: 8px;
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
  }

  /* Ensure search icon is pushed to the right on small screens too */
  .search-icon {
    margin-left: auto;
    order: 1;
  }

  .cart-icon {
    order: 2;
  }

  /* Smaller logo on very small screens */
  .header-logo .logo-text {
    font-size: 18px;
  }

  .header-logo .logo-icon {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  .mobile-nav {
    padding: 15px 10px;
  }
  
  /* Mobile product dropdown responsive adjustments */
  .mobile-product-image {
    width: 35px;
    height: 35px;
  }
  
  .mobile-product-name {
    font-size: 12px;
  }
  
  .mobile-product-price {
    font-size: 11px;
  }
  
  .mobile-product-content {
    gap: 8px;
  }

  /* Cart Sidebar Styles */
  .cart-sidebar-content {
    width: 100%;
  }

  .cart-sidebar-header {
    padding: 20px 16px;
    font-size:22px;
  }

  .cart-sidebar-close {
    width: 32px;
    height: 32px;
    font-size: 24px;
  }

  .cart-item {
    padding: 16px;
    gap: 12px;
  }

  .quantity-btn {
    width: 26px;
    height: 26px;
    font-size: 14px;
  }

  .quantity-value {
    font-size: 13px;
    min-width: 26px;
  }

  .cart-item-remove {
    width: 26px;
    height: 26px;
    font-size: 14px;
  }

  .cart-sidebar-footer {
    padding: 20px 16px;
  }


  .cart-actions {
    gap: 10px;
  }


  /* Search Overlay Styles */
  .search-overlay-content {
    padding: 60px 15px;
  }

  .search-form {
    flex-direction: column;
    gap: 15px;
  }

  .search-submit {
    width: 100%;
    justify-content: center;
    border-radius: 0.5em;
  }

  /* Live Search Styles */
  .live-search-results {
    max-height: 300px;
  }

  .search-result-image-container {
    width: 35px;
    height: 35px;
    margin-right: 8px;
  }

  .search-result-name {
    font-size: 12px;
  }

  .search-result-price {
    font-size: 12px;
  }

  .search-result-type {
    font-size: 11px;
  }
}

/* Hide all WooCommerce sale flash badges */
.woocommerce span.onsale,
.woocommerce .onsale,
.onsale,
span.onsale,
.sale-flash,
.woocommerce-loop-product__sale-flash,
.sale-badge,
.sale-text {
    display: none !important;
    visibility: hidden !important;
}