/* assets/css/style.css - Main Stylesheet */

:root {
  --primary: #667eea;
  --primary-dark: #5568d3;
  --secondary: #764ba2;
  --success: #2ecc71;
  --danger: #e74c3c;
  --warning: #f39c12;
  --info: #3498db;
  --dark: #2c3e50;
  --light: #ecf0f1;
  --gray: #95a5a6;
  --border: #ddd;
  --shadow: rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ============ SCROLLBAR - WHITE & GREY AESTHETIC ============ */
/* Firefox scrollbar */
.cart-sidebar,
.cart-items,
.messages,
.products-grid,
.potw-content,
.newsletter-form,
.banner-content {
  scrollbar-width: thin;
  scrollbar-color: #9ca3af #f3f4f6;
}

/* WebKit browsers (Chrome, Edge, Safari) */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

/* Track - Light grey background */
::-webkit-scrollbar-track {
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid rgba(229, 231, 235, 0.5);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

/* Main scrollbar thumb */
::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #d1d5db 0%, #9ca3af 100%);
  border-radius: 8px;
  border: 2px solid #f9fafb;
  transition: all 0.3s ease;
}

/* Hover state */
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(107, 114, 128, 0.2);
}

/* Active state (when dragging) */
::-webkit-scrollbar-thumb:active {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

/* Corner */
::-webkit-scrollbar-corner {
  background: #f9fafb;
}

/* ============ CART SPECIFIC SCROLLBARS ============ */
.cart-sidebar::-webkit-scrollbar,
.cart-items::-webkit-scrollbar {
  width: 8px;
}

.cart-sidebar::-webkit-scrollbar-track,
.cart-items::-webkit-scrollbar-track {
  background: rgba(249, 250, 251, 0.9);
  border-radius: 4px;
  margin: 4px;
}

.cart-sidebar::-webkit-scrollbar-thumb,
.cart-items::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
  border-radius: 4px;
  border: 1px solid rgba(249, 250, 251, 0.8);
}

.cart-sidebar::-webkit-scrollbar-thumb:hover,
.cart-items::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #d1d5db 0%, #9ca3af 100%);
}

/* ============ DARK THEME SUPPORT ============ */
[data-theme="dark"] ::-webkit-scrollbar-track {
  background: #1f2937;
  border: 1px solid rgba(55, 65, 81, 0.5);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #4b5563 0%, #6b7280 100%);
  border: 2px solid #1f2937;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
}

[data-theme="dark"] .cart-sidebar::-webkit-scrollbar-track,
[data-theme="dark"] .cart-items::-webkit-scrollbar-track {
  background: rgba(31, 41, 55, 0.9);
}

[data-theme="dark"] .cart-sidebar::-webkit-scrollbar-thumb,
[data-theme="dark"] .cart-items::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
  border: 1px solid rgba(31, 41, 55, 0.8);
}

/* ============ SMOOTH SCROLLING ============ */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar for specific containers */
.scrollable-container {
  scrollbar-width: thin;
  scrollbar-color: #d1d5db #f9fafb;
}

.scrollable-container::-webkit-scrollbar {
  width: 8px;
}

.scrollable-container::-webkit-scrollbar-track {
  background: #f9fafb;
  border-radius: 6px;
}

.scrollable-container::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 6px;
  border: 2px solid #f9fafb;
}

.scrollable-container::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* ============ PRODUCT GRID SCROLLBAR ============ */
.products-grid {
  scrollbar-width: none; /* Hide on Firefox */
}

.products-grid::-webkit-scrollbar {
  display: none; /* Hide on WebKit */
}

/* ============ MESSAGES/CHAT SCROLLBAR ============ */
.messages::-webkit-scrollbar {
  width: 6px;
}

.messages::-webkit-scrollbar-track {
  background: rgba(249, 250, 251, 0.5);
  border-radius: 3px;
}

.messages::-webkit-scrollbar-thumb {
  background: rgba(156, 163, 175, 0.5);
  border-radius: 3px;
}

.messages::-webkit-scrollbar-thumb:hover {
  background: rgba(107, 114, 128, 0.7);
}

/* ============ ANIMATED SCROLLBAR (Optional) ============ */
@keyframes scrollbarPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Add this class to elements that need animated scrollbars */
.animated-scrollbar::-webkit-scrollbar-thumb {
  animation: scrollbarPulse 2s infinite;
}

/* ============ ACCESSIBILITY ============ */
@media (prefers-reduced-motion: reduce) {
  ::-webkit-scrollbar-thumb {
    transition: none;
  }

  .animated-scrollbar::-webkit-scrollbar-thumb {
    animation: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  ::-webkit-scrollbar-thumb {
    background: #4b5563;
    border: 2px solid #111827;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: #111827;
  }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }

  .cart-sidebar::-webkit-scrollbar,
  .cart-items::-webkit-scrollbar {
    width: 4px;
  }
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f8f9fa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: #fff;
}

/* Header Styles */
/* ============ HEADER - BLENDED WITH BANNER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: none;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

/* When not scrolled - blend with banner */
.site-header:not(.scrolled) {
  background: #fff;
  backdrop-filter: blur(12px);
  border-bottom: none;
}

/* Stylish half underline */
.site-header:not(.scrolled)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40%; /* Half width of header */
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(107, 114, 128, 0.4),
    rgba(75, 85, 99, 0.6),
    rgba(107, 114, 128, 0.4),
    transparent
  );
  border-radius: 0 0 2px 2px;
  transition: all 0.3s ease;
}

/* When scrolled - solid background */
.site-header.scrolled {
  background: #fff;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
}

.site-header.scrolled::after {
  opacity: 0;
}

/* Header content styling */
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  gap: 2rem;
}

/* Logo styling for blended header */
.site-header:not(.scrolled) .logo a {
  color: #374151;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.site-header:not(.scrolled) .logo i {
  color: #4b5563;
}

/* Navigation links for blended header */
.site-header:not(.scrolled) .nav-links a {
  color: #4b5563;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.site-header:not(.scrolled) .nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #4b5563, transparent);
  transition: transform 0.3s ease;
}

.site-header:not(.scrolled) .nav-links a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* Search bar for blended header */
.site-header:not(.scrolled) .search-bar form {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(209, 213, 219, 0.5);
  backdrop-filter: blur(10px);
}

.site-header:not(.scrolled) .search-bar input::placeholder {
  color: #9ca3af;
}

/* Header actions for blended header */
.site-header:not(.scrolled) .cart-icon {
  color: transparent;
  -webkit-text-stroke: 1px #4b5563;
}

.site-header:not(.scrolled) .user-name {
  color: #374151;
}

.site-header:not(.scrolled) .dropdown-icon {
  -webkit-text-stroke: 1px #4b5563;
}

/* Scrolled state styling */
.site-header.scrolled .logo a {
  color: #111827;
}

.site-header.scrolled .nav-links a {
  color: #374151;
}

.site-header.scrolled .search-bar form {
  background: white;
  border: 1px solid #d1d5db;
}

/* Hover effects */
.site-header:not(.scrolled) .nav-links a:hover {
  color: #111827;
}

.site-header:not(.scrolled) .cart-icon1:hover .cart-icon {
  color: #4b5563;
  -webkit-text-stroke: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .site-header:not(.scrolled)::after {
    width: 60%;
  }

  .header-content {
    padding: 0.6rem 0;
  }
}

@media (max-width: 480px) {
  .site-header:not(.scrolled)::after {
    width: 70%;
  }
}

/* Animation for smooth transition */
.site-header {
  animation: fadeInDown 0.5s ease;
}

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

/* Optional: Add a subtle glow to the underline on hover */
.site-header:not(.scrolled):hover::after {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(107, 114, 128, 0.6),
    rgba(75, 85, 99, 0.8),
    rgba(107, 114, 128, 0.6),
    transparent
  );
  box-shadow: 0 0 10px rgba(107, 114, 128, 0.3);
}

.site-header .a1 {
  color: #333;
  transition: color 0.3s;
}

.site-header .a1:hover {
  color: #fff; /* slightly darker on hover */
}

.site-header.scrolled .a1 {
  color: #333;
}

.site-header.scrolled .a1:hover {
  color: #fff;
}

.site-header .a2 {
  color: #333;
  transition: color 0.3s;
}

.site-header.scrolled .a2 {
  color: #333;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0; /* thinner header */
  gap: 2rem;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  text-decoration: none;
}

.logo i {
  font-size: 2rem;
}

/* ============ SEARCH BAR - WHITE & GREY AESTHETIC ============ */
/* Container */
.search-bar {
  flex: 1;
  max-width: 600px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Form */
.search-bar form {
  display: flex;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid rgba(209, 213, 219, 0.6);
  backdrop-filter: blur(12px);
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.05),
    inset 0 1px 2px rgba(255, 255, 255, 0.7);
}

/* Focus state - Grey theme */
.search-bar form:focus-within {
  border-color: #9ca3af;
  box-shadow:
    0 4px 20px rgba(107, 114, 128, 0.15),
    0 0 0 2px rgba(156, 163, 175, 0.1),
    inset 0 1px 2px rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

/* Input */
.search-bar input {
  flex: 1;
  padding: 0.75rem 1.25rem;
  border: none;
  outline: none;
  font-size: 0.95rem;
  background: transparent;
  color: #374151;
  font-family: "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0.01em;
}

.search-bar input::placeholder {
  color: #9ca3af;
  opacity: 0.8;
  font-weight: 400;
  transition: color 0.3s ease;
}

.search-bar input:focus::placeholder {
  color: #6b7280;
}

/* Button */
.search-bar button {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

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

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

/* Button hover - Darker grey */
.search-bar button:hover {
  background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(55, 65, 81, 0.2);
}

.search-bar button:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(55, 65, 81, 0.15);
}

/* Icon inside button */
.search-bar button i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.search-bar button:hover i {
  transform: scale(1.1);
}

/* ============ HEADER STATES ============ */
/* When not scrolled - Blended with banner */
.site-header:not(.scrolled) .search-bar form {
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(229, 231, 235, 0.7);
  backdrop-filter: blur(15px);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.03),
    inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

.site-header:not(.scrolled) .search-bar form:focus-within {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(156, 163, 175, 0.9);
  box-shadow:
    0 4px 20px rgba(107, 114, 128, 0.1),
    0 0 0 2px rgba(156, 163, 175, 0.05),
    inset 0 1px 2px rgba(255, 255, 255, 1);
}

.site-header:not(.scrolled) .search-bar button {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.site-header:not(.scrolled) .search-bar button:hover {
  background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
}

/* When scrolled - Solid white background */
.site-header.scrolled .search-bar form {
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid rgba(209, 213, 219, 0.8);
  backdrop-filter: blur(10px);
  box-shadow:
    0 3px 12px rgba(0, 0, 0, 0.06),
    inset 0 1px 2px rgba(255, 255, 255, 0.9);
}

.site-header.scrolled .search-bar form:focus-within {
  background: white;
  border-color: #9ca3af;
  box-shadow:
    0 4px 20px rgba(107, 114, 128, 0.15),
    0 0 0 2px rgba(156, 163, 175, 0.1),
    inset 0 1px 2px rgba(255, 255, 255, 1);
}

.site-header.scrolled .search-bar button {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.site-header.scrolled .search-bar button:hover {
  background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .search-bar {
    max-width: 100%;
    order: 3;
    flex-basis: 100%;
  }

  .search-bar form {
    border-radius: 40px;
  }

  .search-bar input {
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
  }

  .search-bar button {
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
  }
}
@media (max-width: 768px) {
  .site-header,
  .admin-header,
  header {
    padding-bottom: 0.3rem;
  }

  .search-bar {
    margin-top: -2rem;
  }
}

@media (max-width: 480px) {
  .search-bar input {
    padding: 0.6rem 0.9rem;
    font-size: 0.85rem;
  }

  .search-bar button {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  .search-bar form {
    border-radius: 35px;
  }
}

/* ============ SEARCH SUGGESTIONS (Optional) ============ */
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 0.5rem;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 1rem;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(229, 231, 235, 0.8);
  overflow: hidden;
  z-index: 1000;
  opacity: 0;
  transform: translateY(-10px);
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-bar:focus-within .search-suggestions {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.search-suggestions li {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid rgba(229, 231, 235, 0.6);
  cursor: pointer;
  transition: all 0.2s ease;
  color: #374151;
}

.search-suggestions li:hover {
  background: rgba(249, 250, 251, 0.8);
  color: #111827;
}

.search-suggestions li:last-child {
  border-bottom: none;
}

/* ============ ANIMATIONS ============ */
@keyframes searchGlow {
  0% {
    box-shadow:
      0 2px 10px rgba(0, 0, 0, 0.05),
      inset 0 1px 2px rgba(255, 255, 255, 0.7);
  }
  50% {
    box-shadow:
      0 4px 20px rgba(107, 114, 128, 0.15),
      0 0 0 2px rgba(156, 163, 175, 0.1),
      inset 0 1px 2px rgba(255, 255, 255, 0.9);
  }
  100% {
    box-shadow:
      0 2px 10px rgba(0, 0, 0, 0.05),
      inset 0 1px 2px rgba(255, 255, 255, 0.7);
  }
}

.search-bar form.loading {
  animation: searchGlow 2s ease-in-out infinite;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* User Menu */
.user-menu {
  position: relative;
}

/* Disable text selection on profile area */
.user-info {
  user-select: none;
  cursor: pointer;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.user-initials {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.user-details {
  display: flex;
  flex-direction: column;
}

.user-info {
  display: flex;
  align-items: center; /* vertically centers everything */
  gap: 0.3rem; /* space between username and badges */
}

.user-name {
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0; /* remove relative positioning */
  line-height: 1; /* ensures text baseline is consistent */
}

/* Standardize badge sizes */
.badge {
  width: 24px; /* same for all badges */
  height: 24px; /* same for all badges */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  line-height: 0;
  margin: 0; /* reset margin */
  top: 0; /* reset top */
}

/* WebGather Admin Badge */
.badge-admin {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  font-family: "Cinzel", "Georgia", serif;
  background: transparent url("../images/admin.png") no-repeat center center;
  background-size: contain; /* Makes the image fit nicely */
  border: none;
  overflow: visible;
  transition: transform 0.3s ease;
  font-size: 0; /* Removes any visible text space */
  line-height: 0;
  top: -3px; /* Adjust this value as needed */
}

/* WebGather YouTube Badge */
.badge-youtube {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  font-family: "Cinzel", "Georgia", serif;
  background: transparent url("../images/youtube-icon.png") no-repeat center
    center;
  background-size: contain; /* Makes the image fit nicely */
  border: none;
  overflow: visible;
  transition: transform 0.3s ease;
  font-size: 0; /* Removes any visible text space */
  line-height: 0;
  top: -3px; /* Adjust this value as needed */
  margin-top: 0.7rem;
}

.badge-verified {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  font-family: "Cinzel", "Georgia", serif;
  background: transparent url("../images/verified.png") no-repeat center center;
  background-size: contain; /* Makes the image fit nicely */
  border: none;
  overflow: visible;
  transition: transform 0.3s ease;
  font-size: 0; /* Removes any visible text space */
  line-height: 0;
  top: -3px; /* Adjust this value as needed */
  margin-top: 0.7rem;
}

.user-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 180px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  overflow: hidden;
  padding: 5px 0;
  z-index: 1000;
  transition: all 0.2s ease;
}

.user-dropdown.active {
  display: block;
}
.user-info {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 1rem;
  user-select: none; /* disable text selection */
}

.user-info.scrolled:hover {
  background: #eeeeee;
}

.dropdown-icon.rotated {
  transform: rotate(180deg);
  transition: transform 0.3s;
}

/* User Menu */
.user-menu {
  position: relative;
}

.user-info:hover {
  background: #fff; /* subtle hover effect */
}

.user-initials {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
}

.user-details {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: 600;
  font-size: 0.9rem;
  user-select: text; /* allows text selection */

  /* Truncation */
  max-width: 15ch; /* limit to ~15 characters */
  white-space: nowrap; /* prevent wrapping */
  overflow: hidden; /* hide overflow */
  text-overflow: ellipsis; /* add ... for overflow */

  /* Optional: show full name on hover */
  cursor: default;
}

.dropdown-icon {
  color: transparent; /* hollow effect */
  -webkit-text-stroke: 1px #333; /* default black stroke */
  transition:
    -webkit-text-stroke 0.3s ease,
    transform 0.3s ease;
}

.dropdown-icon.scrolled {
  -webkit-text-stroke: 1px #333;
}

.user-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s;
}

.user-dropdown a:hover {
  background: #eeeeee;
}

.user-info .user-name,
.user-info .user-initials {
  user-select: text; /* allows text selection */
}

/* Default hollow cart */
.cart-icon1 {
  position: relative;
  font-size: 1.5rem;
  padding: 0.5rem;
  color: transparent; /* remove fill */
  -webkit-text-stroke: 1px #fff; /* outline effect for font icons */
  cursor: pointer;
  display: inline-block; /* ensure transform works */
}

/* Cart icon inside */
.cart-icon {
  position: relative;
  font-size: 1.5rem;
  padding: 0.5rem;
  color: transparent; /* hollow effect */
  -webkit-text-stroke: 1px #333;
  transition:
    transform 0.2s ease,
    color 0.2s ease,
    -webkit-text-stroke 0.2s ease;
  display: inline-block; /* ensure transform works */
}

/* Hover effect: parent triggers child */
.cart-icon1:hover .cart-icon {
  color: #eeeeee;
  -webkit-text-stroke: 0;
  transform: scale(1.2); /* slightly bigger pop */
}

/* Scrolled state */
.site-header.scrolled .cart-icon {
  -webkit-text-stroke: 1px #333;
  color: transparent;
}

.site-header.scrolled .cart-icon1:hover .cart-icon {
  color: #333;
  -webkit-text-stroke: 0;
  transform: scale(1.2); /* pop even when scrolled */
}

.cart-icon1:hover .cart-count {
  transform: scale(1.1) translate(2px, -2px);
}

.cart-count {
  position: absolute;
  bottom: 40px;
  left: 35px;
  background: var(--danger);
  color: #333 !important;
  font-size: 0.75rem;
  padding: 0.125rem 0.375rem;
  border-radius: 1rem;
  min-width: 1.25rem;
  text-align: center;
}

/* Cart Sidebar */
.cart-sidebar {
  position: fixed;
  right: -400px;
  top: 0;
  width: 400px;
  height: 100dvh; /* dynamic height */
  max-height: 100dvh; /* prevent overflow */
  background: white;
  box-shadow: -2px 0 10px var(--shadow);
  transition: right 0.3s;
  z-index: 2000;
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .cart-sidebar {
    width: 75vw; /* only 75% of the screen */
    right: -75vw; /* hide based on reduced width */
  }

  .cart-sidebar.open {
    right: 0; /* slide correctly */
  }
}

.cart-sidebar.open {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--light);
}

.cart-header h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--gray);
  line-height: 1;
}

.close-btn:hover {
  color: #333;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--light);
}

.cart-item-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 0.5rem;
}

.cart-item-details {
  flex: 1;
}

.cart-item-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.cart-item-name,
.cart-item-description {
  overflow-wrap: break-word; /* allows long words to break */
  word-break: break-word; /* alternative for older browsers */
  white-space: normal; /* ensures text wraps to new line */
}

.cart-item-name {
  display: -webkit-box;
  -webkit-line-clamp: 2; /* shows max 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-description {
  display: -webkit-box;
  -webkit-line-clamp: 1; /* shows max 1 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.75rem; /* added margin for spacing below description */
}

/* Optional: limit max width so it doesn’t exceed parent */
.cart-item-details {
  flex: 1 1 auto; /* allow flex item to shrink and wrap text */
  min-width: 0; /* needed for flex items to wrap properly */
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid var(--border);
  border-radius: 0.25rem;
}

.quantity-controls button {
  background: none;
  border: none;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  font-size: 1rem;
}

.quantity-controls span {
  padding: 0.25rem 0.5rem;
  min-width: 2rem;
  text-align: center;
}

.cart-item-actions {
  display: flex;
  justify-content: space-between; /* pushes elements to edges */
  align-items: center;
  gap: 1rem; /* optional spacing between items */
  width: 100%;
}

.cart-item-price {
  color: #374151;
  font-weight: bold;
  font-size: 1rem;
  text-decoration: underline;
  text-decoration-color: red; /* red underline */
  text-underline-offset: 6px; /* spacing from text */
}

.remove-item {
  background: transparent; /* hollow background */
  border: none; /* no border */
  color: var(--danger); /* icon color */
  cursor: pointer;
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.2s ease,
    color 0.2s ease;
}

/* Pop effect on hover */
.remove-item:hover {
  transform: scale(1.3); /* pop up */
}

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--light);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.cart-total .amount {
  color: #111827;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 1999;
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-sidebar {
  border-radius: 1rem 0 0 1rem;
}

@media (max-width: 768px) {
  .cart-sidebar {
    border-radius: 0 0 0 0;
  }
}

/* Proceed to Checkout hover color */
.cart-footer .btn-primary:hover {
  color: #fff !important;
  border-color: #ffb7a5 !important;
}

@media (max-width: 768px) {
  .cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100dvh;

    transform: translateX(100%);
    transition: transform 0.3s ease;

    background: white;
    box-shadow: -2px 0 10px var(--shadow);
    z-index: 2000;
    display: flex;
    flex-direction: column;
  }
  .cart-sidebar.open {
    transform: translateX(0);
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #ffdac2;
  color: #333;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 1rem;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--shadow);
}

.btn-primary {
  background: linear-gradient(135deg, #111827 0%, #374151 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(17, 24, 39, 0.15);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(17, 24, 39, 0.25);
  gap: 1rem;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: #374151;
  border: 1.5px solid #d1d5db;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: white;
  color: #374151;
  border-color: #9ca3af;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-block {
  display: block;
  width: 100%;
}

/* Alerts */
/* Base Alert */
.alert {
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
  border-radius: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.4;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s,
    opacity 0.3s;
  margin-top: 30px;
}

/* Alert Types with subtle gradient & icon colors */

.alert-success {
  background: linear-gradient(90deg, #d4edda, #c8e6c9);
  color: #155724;
  border-left: 5px solid #28a745;
}

.alert-error,
.alert-danger {
  background: linear-gradient(90deg, #f8d7da, #f5c6cb);
  color: #721c24;
  border-left: 5px solid #dc3545;
}

.alert-warning {
  background: linear-gradient(90deg, #fff3cd, #ffeaa7);
  color: #856404;
  border-left: 5px solid #ffc107;
}

.alert-info {
  background: linear-gradient(90deg, #d1ecf1, #bee5eb);
  color: #0c5460;
  border-left: 5px solid #17a2b8;
}

/* Close Button */
.alert button.btn-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: transparent;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: inherit;
}

/* Notification Toast */
.notification-toast {
  position: fixed;
  top: 5rem;
  right: 1rem;
  min-width: 250px;
  background: #fff;
  padding: 1rem 1.5rem;
  border-radius: 0.6rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transform: translateX(400px);
  transition:
    transform 0.4s ease,
    opacity 0.4s ease;
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Toast Show */
.notification-toast.show {
  transform: translateX(0);
}

/* Optional hover / focus effect for toast */
.notification-toast:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Optional Icons for Alerts */
.alert::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.alert-success::before {
  content: "✔";
  color: #28a745;
}
.alert-error::before {
  content: "✖";
  color: #dc3545;
}
.alert-warning::before {
  content: "⚠";
  color: #ffc107;
}
.alert-info::before {
  content: "ℹ";
  color: #17a2b8;
}

/* Footer Base */
footer {
  background: linear-gradient(135deg, #ffffff 0%, #f5f5f7 50%, #f0f2f5 100%);
  color: #333333;
  position: relative;
  overflow: hidden;
  border-top: 1px solid #f5f5f5;
}

/* Subtle pattern overlay */
footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(90deg, rgba(245, 245, 245, 0.8) 1px, transparent 1px),
    linear-gradient(rgba(245, 245, 245, 0.8) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Container */
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
  padding: 3rem 0;
}

/* Footer Sections */
.footer-section {
  padding: 2rem;
  background: #ddd;
  border-radius: 12px;
  border: 1px solid #f0f0f0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.footer-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: #555555;
  transition: height 0.4s ease;
}

.footer-section:hover::before {
  height: 100%;
}

.footer-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
  border-color: #e5e5e5;
  background: #ffffff;
}

/* Section Headers */
.footer-section h4 {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: #222222;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.footer-section h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 25px;
  height: 2px;
  background: #888888;
  transition: width 0.3s ease;
}

.footer-section:hover h4::after {
  width: 40px;
}

/* Alternative with more distinct link styling */
.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 0.75rem;
  transition: all 0.3s ease;
}

.footer-section ul li a {
  text-decoration: none;
  color: #0066cc; /* Classic link blue color */
  font-weight: 500; /* Slightly bolder */
  border-bottom: 1px solid transparent; /* Prepare for hover effect */
  padding-bottom: 1px; /* Space for underline */
  transition: all 0.3s ease;
}

.footer-section ul li:hover a {
  color: #004499; /* Darker blue on hover */
  border-bottom-color: #0066cc; /* Underline appears on hover */
}

.footer-section ul li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: #aaaaaa;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.footer-section ul li:hover {
  padding-left: 1rem;
}

.footer-section ul li:hover::before {
  color: #0066cc; /* Match link color */
  transform: translateX(2px);
}

/* Add subtle background on hover for extra feedback */
.footer-section ul li:hover {
  background-color: rgba(0, 102, 204, 0.05);
  border-radius: 3px;
  padding-right: 0.5rem;
}

/* Links */
.footer-section a {
  color: #555555;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.25rem 0;
}

.footer-section a:hover {
  color: #222222;
  transform: translateX(3px);
}

/* Social link specific hover effects */
.footer-section .al:hover {
  color: #0066cc;
}

.footer-section .yta:hover {
  color: #cc0000;
}

.footer-section .fba:hover {
  color: #1877f2;
}

.footer-section .ina:hover {
  color: #e1306c;
}

.footer-section .twa:hover {
  color: #1da1f2;
}

/* Social Links Container */
.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 8px;
  font-size: 1.1rem;
  color: #666666;
  transition: all 0.3s ease;
  border: 1px solid #eeeeee;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.social-links a:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-color: #dddddd;
}

/* Specific social colors */
.social-links .al:hover {
  color: #0066cc;
  background: #f0f7ff;
}

.social-links .yta:hover {
  color: #cc0000;
  background: #fff0f0;
}

.social-links .fba:hover {
  color: #1877f2;
  background: #f0f5ff;
}

.social-links .ina:hover {
  color: #e1306c;
  background: #fff0f5;
}

.social-links .twa:hover {
  color: #1da1f2;
  background: #f0f9ff;
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 1rem;
  border-top: 1px solid #f0f0f0;
  color: #666666;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
  background: #ddd;
}

/* Logo Links */
.footer-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #222222;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #f0f0f0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
.footer-logo-linka {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #222222;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  background: #ffffff;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.footer-logo-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  border-color: #e5e5e5;
}

.footer-logo-linka:hover {
  color: #333333;
}

/* Logo Image */
.footer-logo-link img.footer-logo {
  width: 30px;
  height: 30px;
  transition: all 0.4s ease;
}

.footer-logo-link:hover img.footer-logo {
  transform: rotate(10deg);
}

/* Bold Text */
.bold {
  font-weight: 600;
  color: #222222;
  position: relative;
}

/* Copyright */
.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Mobile View Styles */
.mobileview {
  display: none;
}

/* Floating animation for sections */
@keyframes floatSection {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.footer-section {
  animation: floatSection 10s ease-in-out infinite;
  animation-delay: calc(var(--section-index, 0) * 0.4s);
}

.footer-section:nth-child(1) {
  --section-index: 1;
}
.footer-section:nth-child(2) {
  --section-index: 2;
}
.footer-section:nth-child(3) {
  --section-index: 3;
}
.footer-section:nth-child(4) {
  --section-index: 4;
}

/* Social icons subtle animation */
@keyframes socialFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

.social-links a {
  animation: socialFloat 5s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.2s);
}

.social-links a:nth-child(1) {
  --i: 1;
}
.social-links a:nth-child(2) {
  --i: 2;
}
.social-links a:nth-child(3) {
  --i: 3;
}
.social-links a:nth-child(4) {
  --i: 4;
}
.social-links a:nth-child(5) {
  --i: 5;
}

/* Responsive Design */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 1rem;
  }

  .footer-section {
    padding: 1.5rem;
    margin: 0;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    padding: 1.5rem 1rem;
    background: #ffffff;
  }

  /* Hide desktop footer items on mobile */
  .footer-content > .footeritems {
    display: none;
  }

  /* Show mobile version */
  .mobileview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 0;
  }

  .mobileview .footeritems {
    padding: 1.25rem;
    background: #ddd;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
  }

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

  .mobileview .footeritems h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .social-links {
    justify-content: center;
    gap: 0.5rem;
  }

  .social-links a {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .footer-logo-link,
  .footer-logo-linka {
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .mobileview {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .social-links {
    gap: 0.75rem;
  }

  .footer-bottom p {
    font-size: 0.85rem;
  }
}

/* Hover effect for mobile items */
@media (hover: hover) {
  .mobileview .footeritems:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    background: #ffffff;
  }
}

/* No peach/orange colors - pure white/grey theme */

/* Loading */
.loading {
  text-align: center;
  padding: 2rem;
  color: var(--gray);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--gray);
}

.empty-state i {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    flex-wrap: wrap;
  }

  .search-bar {
    order: 3;
    flex-basis: 100%;
    max-width: 100%;
  }

  .cart-sidebar {
    width: 100%;
    right: -100%;
  }

  .user-details {
    display: none;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .btn {
    font-size: 0.875rem;
    padding: 0.625rem 1.25rem;
  }

  .header-actions {
    gap: 0.5rem;
  }
}

/* Chat message layout */
.messages {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  overflow-y: auto;
  height: 70vh; /* adjust as needed */
}

/* Individual message wrapper */
.msg {
  display: flex;
  flex-direction: column; /* stack bubble + meta vertically */
  margin-bottom: 0.8rem;
  align-items: flex-start; /* default left */
}

/* User messages (other user) */
.msg.user {
  align-items: flex-end; /* right side */
}

.msg.user .bubble {
  background: #2d72d9;
  color: #fff;
  border-radius: 1rem 1rem 0 1rem;
  max-width: 70%;
}

.msg.admin {
  justify-content: flex-start; /* right side for current user */
}

.msg.admin .bubble {
  background: #f1f3f6;
  color: #000;
  border-radius: 1rem 1rem 1rem 0;
  max-width: 70%;
}

.msg .bubble {
  padding: 0.6rem 1rem;
  word-wrap: break-word;
}

/* Metadata (username/type + time) under the bubble */
.msg .meta {
  font-size: 0.7rem;
  color: #888;
  margin-top: 0.2rem;
  text-align: left;
}

.msg.admin .meta {
  text-align: right;
}
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ccc;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  margin-right: 0.5rem;
}

.msg.admin .avatar {
  display: none; /* hide for admin */
}

.logo-round {
  width: 75px; /* suitable size */
  height: 75px;
  object-fit: cover;
  display: block;
  margin: 10px auto;
  border-radius: 50%;
}

/* Mobile-only account toggle */
.mobile-account-toggle {
  display: none; /* default hidden */
}

/* Mobile-only account toggle */
.mobile-account-toggle {
  display: none; /* hidden by default on desktop */
}

@media (max-width: 768px) {
  /* Compact cart icon */
  .cart-icon1 {
    font-size: 1.4rem;
    padding: 0.3rem;
  }

  /* Reduce gap between icons to save space */
  .header-actions {
    gap: 0.3rem;
    align-items: center;
  }

  /* Optional: reduce cart count size */
  .cart-count {
    font-size: 0.65rem;
    padding: 0.1rem 0.3rem;
    bottom: 35px;
    left: 30px;
  }
}

/* Mobile logo text increase when menu is active */
@media (max-width: 768px) {
  .logo a {
    font-size: 1.5rem; /* default mobile size */
  }
}
@media (max-width: 768px) {
  /* hide by default */
  .header-actions > a.btn {
    position: absolute;
    right: 40px; /* start near user icon */
    top: 57px;
    transform: translateY(-50%) translateX(45px);
    opacity: 1;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.875rem; /* slightly smaller for mobile */
    padding: 0.35rem 0.8rem; /* compact height */
  }

  /* stack horizontally instead of vertically */
  .header-actions > a.btn:nth-child(1) {
    right: 110px;
  }
  .header-actions > a.btn:nth-child(2) {
    right: 205px;
  }
}
