/* ========================================
   5GBay - Modern E-commerce CSS
   Professional, clean, modern design
   ======================================== */

/* ========================================
   UTILITIES
   ======================================== */
.hidden {
  display: none !important;
}

/* Button Loading State */
.btn-text,
.btn-loader {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-loader {
  gap: 8px;
}

.spinner {
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

.spinner-circle {
  stroke: currentColor;
  stroke-linecap: round;
  stroke-dasharray: 50, 50;
  stroke-dashoffset: 25;
}

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

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ========================================
   CSS RESET & BASE
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: #111827;
  margin-bottom: 0.5em;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1em;
  color: #4b5563;
}

a {
  color: #6366f1;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #4f46e5;
}

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

/* ========================================
   CONTAINER & LAYOUT
   ======================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 960px;
}

.container--wide {
  max-width: 1440px;
}

/* ========================================
   HEADER / NAVIGATION
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  gap: 24px;
  max-width: 1400px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 24px;
}

/* Logo Section */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 4px;
  transition: all 0.3s ease;
}

.nav-logo a:hover {
  transform: scale(1.02);
}

.nav-logo svg {
  height: 40px;
  width: auto;
}

.nav-logo svg text {
  fill: transparent !important;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-family: 'Inter Tight', sans-serif;
  font-size: 26px;
  font-weight: 800;
}

/* Fallback for SVG text gradient */
.nav-logo svg text {
  fill: #6366f1 !important;
}

/* Search Bar */
.nav-search {
  flex: 1;
  max-width: 520px;
  position: relative;
}

.search-wrapper {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
  z-index: 1;
  transition: color 0.2s ease;
}

.search-wrapper:focus-within .search-icon {
  color: #6366f1;
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 48px;
  border: 2px solid transparent;
  border-radius: 14px;
  font-size: 14px;
  font-family: 'Nunito', sans-serif;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  color: #1e293b;
}

.search-input::placeholder {
  color: #94a3b8;
}

.search-input:hover {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

.search-input:focus {
  outline: none;
  border-color: #6366f1;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12), 0 4px 12px rgba(99, 102, 241, 0.1);
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  max-height: 400px;
  overflow-y: auto;
  z-index: 1001;
  padding: 8px 0;
}

.search-results.hidden {
  display: none;
}

/* Search Result Items */
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.15s ease;
}

.search-result-item:hover {
  background-color: #f3f4f6;
}

.search-result-item__image {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
}

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

.search-result-item__name {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.search-result-item__price {
  font-size: 13px;
  font-weight: 700;
  color: #6366f1;
}

.search-results__empty {
  padding: 24px 16px;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
}

/* Desktop Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.desktop-nav {
  display: flex;
}

.nav-link {
  position: relative;
  padding: 10px 18px;
  color: #475569;
  font-weight: 600;
  font-size: 14px;
  border-radius: 10px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  text-decoration: none;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #6366f1;
  background: rgba(99, 102, 241, 0.08);
}

.nav-link:hover::after {
  width: 24px;
}

.nav-link:active {
  transform: scale(0.97);
}

.nav-link--active {
  color: #6366f1;
  background: rgba(99, 102, 241, 0.1);
}

.nav-link--active::after {
  width: 24px;
}

/* Actions (Cart & User) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Cart Icon */
.cart-icon,
.nav-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  color: #4b5563;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.cart-icon {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
}

.cart-icon:hover,
.nav-icon:hover {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
  border-color: transparent;
}

.cart-icon:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.cart-icon svg,
.nav-icon svg {
  width: 22px;
  height: 22px;
  transition: transform 0.3s ease;
}

.cart-icon:hover svg {
  transform: scale(1.1);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 0;
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 3px 8px rgba(239, 68, 68, 0.4);
  border: 2px solid white;
  animation: badgePulse 2s infinite;
}

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

.cart-badge.hidden {
  display: none;
}

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

.user-menu-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 10px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: #475569;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-menu-toggle:hover {
  background: linear-gradient(135deg, #ede9fe 0%, #e0e7ff 100%);
  border-color: #c7d2fe;
  color: #6366f1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  background: white;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  padding: 8px;
  z-index: 1001;
  border: 1px solid #e2e8f0;
  animation: dropdownFade 0.2s ease;
}

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

.user-dropdown.hidden {
  display: none;
}

.user-dropdown a,
.user-dropdown button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  color: #475569;
  font-weight: 500;
  border-radius: 10px;
  transition: all 0.2s ease;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
}

.user-dropdown a:hover,
.user-dropdown button:hover {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  color: #6366f1;
}

/* Auth Buttons */
.auth-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-button {
  padding: 10px 20px;
  font-weight: 600;
  font-size: 14px;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  border: 2px solid transparent;
  text-decoration: none;
}

.auth-button--login {
  color: #475569;
  background: transparent;
  border-color: #e2e8f0;
}

.auth-button--login:hover {
  background: rgba(99, 102, 241, 0.08);
  border-color: #6366f1;
  color: #6366f1;
}

.auth-button--register {
  color: white;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border: none;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.auth-button--register:hover {
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
  transform: translateY(-2px);
}

.auth-button--register:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 32px;
  padding: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
}

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

.mobile-menu-toggle .hamburger-line {
  width: 24px;
  height: 3px;
  background-color: #4b5563;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* Mobile Navigation */
.mobile-nav {
  display: block;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  padding: 16px;
  z-index: 999;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
}

.mobile-nav.hidden {
  display: none;
}

.mobile-nav .nav-link {
  display: block;
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 4px;
}

/* Main content spacing for fixed navbar */
main {
  margin-top: 72px;
  min-height: calc(100vh - 72px - 300px);
}

/* Responsive Navigation */
@media (max-width: 1024px) {
  .nav-search {
    max-width: 300px;
  }

  .nav-link {
    padding: 10px 12px;
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .navbar .container {
    padding: 12px 16px;
  }

  .nav-container {
    gap: 12px;
  }

  .nav-search {
    display: none;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
  }

  .mobile-menu-toggle .hamburger-line {
    width: 24px;
    height: 3px;
    background-color: #4b5563;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

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

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

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

  .mobile-nav {
    top: 60px;
    max-height: calc(100vh - 60px);
  }

  main {
    margin-top: 60px;
  }
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #cbd5e1;
  padding: 0;
  margin-top: 80px;
}

.footer__main {
  display: grid;
  grid-template-columns: 1.5fr 2fr 1.2fr;
  gap: 60px;
  padding: 64px 0 48px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
}

.footer__logo {
  display: inline-block;
  margin-bottom: 16px;
}

.footer__tagline {
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer__social {
  display: flex;
  gap: 10px;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #94a3b8;
  transition: all 0.3s ease;
}

.footer__social-link:hover {
  background: #6366f1;
  border-color: #6366f1;
  color: #ffffff;
  transform: translateY(-3px);
}

.footer__links-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer__column {
  display: flex;
  flex-direction: column;
}

.footer__title {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  position: relative;
}

.footer__title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 24px;
  height: 2px;
  background: #6366f1;
  border-radius: 1px;
}

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

.footer__links li {
  margin-bottom: 12px;
}

.footer__link {
  color: #94a3b8;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.footer__link:hover {
  color: #ffffff;
  padding-left: 6px;
}

.footer__newsletter {
  display: flex;
  flex-direction: column;
}

.footer__newsletter-text {
  color: #94a3b8;
  font-size: 14px;
  margin-bottom: 16px;
}

.footer__newsletter-form {
  margin-bottom: 24px;
}

.footer__newsletter-input-wrapper {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.footer__newsletter-input-wrapper:focus-within {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.footer__newsletter-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 14px 16px;
  color: #ffffff;
  font-size: 14px;
  outline: none;
}

.footer__newsletter-input::placeholder {
  color: #64748b;
}

.footer__newsletter-btn {
  background: #6366f1;
  border: none;
  padding: 14px 18px;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__newsletter-btn:hover {
  background: #4f46e5;
}

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

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #94a3b8;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__contact-item:hover {
  color: #ffffff;
}

.footer__contact-item svg {
  flex-shrink: 0;
}

/* Trust Badges */
.footer__trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer__trust-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 12px;
  color: #6366f1;
}

.footer__trust-text {
  display: flex;
  flex-direction: column;
}

.footer__trust-text strong {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.footer__trust-text span {
  color: #64748b;
  font-size: 12px;
}

/* Footer Bottom */
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  flex-wrap: wrap;
  gap: 20px;
}

.footer__bottom-left,
.footer__bottom-center,
.footer__bottom-right {
  display: flex;
  align-items: center;
}

.footer__copyright {
  color: #64748b;
  font-size: 13px;
  margin: 0;
}

.footer__payment {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__payment-label {
  color: #64748b;
  font-size: 13px;
}

.footer__payment-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__payment-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 6px 10px;
  transition: all 0.2s ease;
}

.footer__payment-icon:hover {
  background: rgba(255, 255, 255, 0.1);
}

.footer__legal-link {
  color: #64748b;
  font-size: 13px;
  text-decoration: none;
  margin-left: 24px;
  transition: color 0.2s ease;
}

.footer__legal-link:hover {
  color: #ffffff;
}

/* Footer Responsive */
@media (max-width: 1024px) {
  .footer__main {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer__links-wrapper {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .footer__newsletter {
    grid-column: 1 / -1;
    max-width: 400px;
  }

  .footer__trust {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .footer__main {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 0 32px;
  }

  .footer__brand {
    text-align: center;
    align-items: center;
  }

  .footer__social {
    justify-content: center;
  }

  .footer__links-wrapper {
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
  }

  .footer__title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer__link:hover {
    padding-left: 0;
  }

  .footer__newsletter {
    align-items: center;
    text-align: center;
    max-width: 100%;
  }

  .footer__contact {
    align-items: center;
  }

  .footer__trust {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .footer__trust-item {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .footer__bottom-right {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer__legal-link {
    margin: 0 12px;
  }
}

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

  .footer__trust {
    grid-template-columns: 1fr;
  }

  .footer__trust-item {
    flex-direction: row;
    text-align: left;
  }

  .footer__payment {
    flex-direction: column;
    gap: 8px;
  }
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
  padding: 120px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(79, 70, 229, 0.2) 0%, transparent 40%);
  animation: heroGlow 15s ease-in-out infinite;
}

@keyframes heroGlow {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(2%, 2%) rotate(1deg); }
  66% { transform: translate(-1%, 1%) rotate(-1deg); }
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  color: white;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: #a5b4fc;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero__title {
  font-size: 64px;
  font-weight: 800;
  margin-bottom: 24px;
  color: white;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero__title-highlight {
  background: linear-gradient(135deg, #818cf8 0%, #c084fc 50%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 20px;
  margin-bottom: 40px;
  opacity: 0.85;
  line-height: 1.7;
  color: #cbd5e1;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero__cta--primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.hero__cta--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.5);
}

.hero__cta--secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.hero__cta--secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__stat {
  text-align: center;
}

.hero__stat-value {
  font-size: 32px;
  font-weight: 800;
  color: white;
  line-height: 1.2;
}

.hero__stat-label {
  font-size: 14px;
  color: #94a3b8;
  margin-top: 4px;
}

/* Floating shapes decoration */
.hero__shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.1));
  filter: blur(40px);
}

.hero__shape--1 {
  width: 300px;
  height: 300px;
  top: -100px;
  right: 10%;
  animation: float 20s ease-in-out infinite;
}

.hero__shape--2 {
  width: 200px;
  height: 200px;
  bottom: -50px;
  left: 5%;
  animation: float 15s ease-in-out infinite reverse;
}

.hero__shape--3 {
  width: 150px;
  height: 150px;
  top: 30%;
  left: 15%;
  animation: float 18s ease-in-out infinite 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
  padding: 80px 0;
}

.section--gray {
  background: #f9fafb;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 48px;
  text-align: center;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* ========================================
   PRODUCT GRID
   ======================================== */
.products-section {
  padding: 60px 0;
}

.products-section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  gap: 24px;
}

.products-section__controls {
  display: flex;
  gap: 16px;
  align-items: center;
}

.products-section__body {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}

/* ========================================
   PRODUCT CARD - MODERN DESIGN
   ======================================== */
.product-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #f3f4f6;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: #e5e7eb;
}

.product-card__link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card__image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%;
  background: #f9fafb;
  overflow: hidden;
}

.product-card__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-card__image {
  transform: scale(1.08);
}

.product-card__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
  z-index: 2;
}

.product-card__badge--discount {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.product-card__badge--condition {
  background: rgba(245, 158, 11, 0.95);
  color: white;
  top: 64px;
}

.product-card__badge--out-of-stock {
  background: rgba(107, 114, 128, 0.95);
  color: white;
}

.product-card__content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card__title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 12px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 50px;
}

.product-card__description {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 16px 0;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__price-section {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.product-card__price {
  font-size: 28px;
  font-weight: 800;
  color: #6366f1;
  line-height: 1;
}

.product-card__price-old {
  font-size: 18px;
  color: #9ca3af;
  text-decoration: line-through;
}

.product-card__stock-warning {
  font-size: 13px;
  color: #ef4444;
  margin: 0 0 16px 0;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-card__stock-warning::before {
  content: '⚠';
  font-size: 16px;
}

.product-card__footer {
  margin-top: auto;
}

/* ========================================
   FILTER SIDEBAR
   ======================================== */
.products-sidebar {
  background: white;
  border-radius: 16px;
  padding: 32px;
  position: sticky;
  top: 96px;
  border: 1px solid #f3f4f6;
}

.filter-section {
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid #f3f4f6;
}

.filter-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.filter-section__title {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 20px 0;
}

.filter-section__subtitle {
  font-size: 15px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 16px 0;
}

.filter-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-filter__inputs {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.price-filter__inputs input {
  flex: 1;
}

/* ========================================
   CATEGORY CARDS
   ======================================== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

/* Categories Navigation Bar */
.categories-bar {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  padding: 0;
  position: sticky;
  top: 70px;
  z-index: 90;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.categories-bar__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.categories-bar__inner::-webkit-scrollbar {
  display: none;
}

.categories-bar__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #f9fafb;
  border: 2px solid transparent;
  border-radius: 50px;
  color: #4b5563;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s ease;
  text-decoration: none;
}

.categories-bar__item:hover {
  background: #f3f4f6;
  color: #6366f1;
  border-color: #e0e7ff;
}

.categories-bar__item--active {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: white;
  border-color: transparent;
}

.categories-bar__item--active:hover {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  color: white;
}

.categories-bar__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.categories-bar__icon svg {
  width: 18px;
  height: 18px;
}

.categories-bar__label {
  font-weight: 600;
}

.categories-bar__count {
  font-size: 12px;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .categories-bar {
    top: 60px;
  }

  .categories-bar__inner {
    padding: 10px 0;
  }

  .categories-bar__item {
    padding: 8px 14px;
    font-size: 13px;
  }

  .categories-bar__icon svg {
    width: 16px;
    height: 16px;
  }
}

/* Category Cards */
.category-card {
  background: white;
  border-radius: 16px;
  padding: 48px 32px;
  text-align: center;
  border: 1px solid #f3f4f6;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: #6366f1;
}

.category-card__image {
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: white;
}

.category-card__image svg {
  stroke: white;
}

.category-card__title {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px 0;
}

.category-card__description {
  font-size: 15px;
  color: #6b7280;
  margin: 0 0 12px 0;
}

.category-card__count {
  display: inline-block;
  padding: 6px 14px;
  background: #f3f4f6;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #6366f1;
}

/* ========================================
   FEATURED PRODUCTS
   ======================================== */
.featured-products {
  padding: 60px 0;
  background: #f9fafb;
}

.featured-products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .products-section__body {
    grid-template-columns: 1fr;
  }

  .products-sidebar {
    position: static;
  }

  .navbar__search {
    max-width: 400px;
  }

  .hero {
    padding: 100px 0 80px;
  }

  .hero__title {
    font-size: 48px;
  }

  .hero__stats {
    gap: 32px;
  }

  .hero__stat-value {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .navbar__container {
    padding: 12px 16px;
  }

  .navbar__search {
    display: none;
  }

  .navbar__nav {
    display: none;
  }

  .navbar__mobile-toggle {
    display: block;
  }

  .hero {
    padding: 80px 0 60px;
  }

  .hero__title {
    font-size: 36px;
  }

  .hero__subtitle {
    font-size: 16px;
  }

  .hero__stats {
    flex-direction: column;
    gap: 24px;
    padding-top: 32px;
  }

  .hero__stat-value {
    font-size: 26px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .hero__cta {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .hero__badge {
    font-size: 12px;
  }

  .hero__shape {
    display: none;
  }

  .section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 28px;
    margin-bottom: 32px;
  }

  .products-grid,
  .featured-products__grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .products-section__header {
    flex-direction: column;
    align-items: flex-start;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .products-grid,
  .featured-products__grid {
    grid-template-columns: 1fr;
  }

  .product-card__title {
    font-size: 16px;
  }

  .product-card__price {
    font-size: 24px;
  }
}


/* ========================================
   AUTHENTICATION PAGES (Login/Register)
   ======================================== */
.auth-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
  min-height: calc(100vh - 72px - 300px);
  display: flex;
  align-items: center;
}

.auth-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 24px;
}

.auth-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 48px 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.auth-card__title {
  font-size: 32px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 8px;
  text-align: center;
}

.auth-card__subtitle {
  font-size: 16px;
  color: #6b7280;
  margin-bottom: 32px;
  text-align: center;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group--checkbox {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.form-input {
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 15px;
  font-family: 'Nunito', sans-serif;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #f9fafb;
  color: #1f2937;
}

.form-input:focus {
  outline: none;
  border-color: #6366f1;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-input::placeholder {
  color: #9ca3af;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #4b5563;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #6366f1;
}

.auth-divider {
  position: relative;
  text-align: center;
  margin: 24px 0;
}

.auth-divider::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: #e5e7eb;
}

.auth-divider span {
  position: relative;
  display: inline-block;
  padding: 0 16px;
  background: #ffffff;
  color: #9ca3af;
  font-size: 14px;
}

.auth-footer {
  text-align: center;
  font-size: 14px;
  color: #6b7280;
  margin-top: 24px;
}

.auth-link {
  color: #6366f1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-link:hover {
  color: #4f46e5;
  text-decoration: underline;
}

.auth-link--bold {
  font-weight: 600;
}

/* Responsive Auth Pages */
@media (max-width: 768px) {
  .auth-section {
    padding: 40px 0;
  }

  .auth-card {
    padding: 32px 24px;
  }

  .auth-card__title {
    font-size: 28px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ========================================
   CART ANIMATIONS
   ======================================== */
.cart-loading {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #ffffff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: cart-spin 0.6s linear infinite;
}

@keyframes cart-spin {
  to { transform: rotate(360deg); }
}

.cart-success {
  background: #10b981 !important;
  border-color: #10b981 !important;
}

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

@keyframes cart-bounce-animation {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-8px); }
  50% { transform: translateY(0); }
  75% { transform: translateY(-4px); }
}

/* Add to cart button states */
.button--add-to-cart {
  position: relative;
  transition: all 0.3s ease;
}

.button--add-to-cart:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
