/* Modern E-Commerce Site Styles */

:root {
  --primary-color: #0d6efd;
  --primary-dark: #0a58ca;
  --primary-light: #6ea8fe;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #0dcaf0;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --white: #ffffff;
  --border-radius: 12px;
  --box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --box-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--white);
}

/* Hero Banner */
.hero-banner {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 4rem 0;
}

.hero-content {
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Features Bar */
.features-bar {
  border-top: 1px solid #dee2e6;
  border-bottom: 1px solid #dee2e6;
}

.feature-icon-sm {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* Category Cards Modern */
.category-card-modern {
  background: var(--white);
  border: 2px solid #e9ecef;
  border-radius: var(--border-radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
  height: 100%;
  overflow: hidden;
}

.category-card-modern:hover {
  border-color: var(--primary-color);
  box-shadow: var(--box-shadow-lg);
  transform: translateY(-5px);
}

.category-icon-modern {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--white);
  font-size: 2rem;
  transition: var(--transition);
}

.category-card-modern:hover .category-icon-modern {
  transform: scale(1.1) rotate(5deg);
}

.category-title-modern {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.category-count-modern {
  color: var(--secondary-color);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Product Cards Modern */
.product-card-modern {
  background: var(--white);
  border: 1px solid #e9ecef;
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  position: relative;
}

.product-card-modern:hover {
  box-shadow: var(--box-shadow-lg);
  transform: translateY(-5px);
  border-color: var(--primary-color);
}

.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--danger-color);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 2;
}

.product-image-modern {
  position: relative;
  overflow: hidden;
  background: #f8f9fa;
}

.product-image-modern img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: var(--transition);
}

.product-card-modern:hover .product-image-modern img {
  transform: scale(1.05);
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.product-card-modern:hover .product-overlay {
  opacity: 1;
}

.product-body-modern {
  padding: 1.25rem;
}

.product-title-modern {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  height: 2.8em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-title-modern a {
  color: var(--dark-color);
  transition: var(--transition);
}

.product-title-modern a:hover {
  color: var(--primary-color);
}

.product-rating {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.product-price-modern {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-new {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-color);
}

.price-old {
  font-size: 1rem;
  color: var(--secondary-color);
  text-decoration: line-through;
}

/* Promotional Banner */
.promo-banner {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  box-shadow: var(--box-shadow-lg);
}

/* Navbar */
.navbar {
  background-color: var(--white) !important;
  box-shadow: var(--box-shadow);
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem;
  color: var(--dark-color) !important;
  transition: var(--transition);
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
}

/* Brochure mode header refinements */
.brochure-header {
  position: sticky;
  top: 0;
  z-index: 1030;
}

.brochure-navbar {
  border-bottom: 1px solid rgba(13, 110, 253, 0.08);
  backdrop-filter: saturate(1.2) blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.brochure-brand {
  margin-right: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brochure-logo {
  width: auto;
  object-fit: contain;
}

.brochure-nav {
  gap: 0.45rem;
}

.brochure-nav .nav-link,
.brochure-nav-link {
  border-radius: 5px;
  padding: 0.48rem 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brochure-nav .nav-link:hover,
.brochure-nav .show > .nav-link,
.brochure-nav .nav-link:focus {
  background-color: rgba(255, 255, 255, 0.18);
  border-radius: 5px;
}

.brochure-auth-link {
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 10px;
  font-size: 0.7rem;
  line-height: 1.1;
  font-weight: 500;
  border-radius: 5px !important;
  transition: background .15s, color .15s;
  white-space: nowrap;
  text-align: center;
  position: relative;
}

.brochure-auth-link i {
  font-size: 1.35rem;
  margin-bottom: 2px;
}

.brochure-auth-link:hover {
  background: #fff5f0;
  color: var(--primary-color) !important;
  border-radius: 5px !important;
}

.brochure-auth-link:hover i,
.brochure-auth-link:hover span {
  color: var(--primary-color) !important;
}

.brochure-menu-icon {
  width: 22px;
  height: 22px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 6px;
}

.brochure-menu-icon-sm {
  width: 18px;
  height: 18px;
  border-radius: 4px;
}

.dropdown-menu-modern {
  border: 0;
  border-radius: 14px;
  padding: 0.5rem;
}

.dropdown-menu-modern .dropdown-item {
  border-radius: 10px;
  font-weight: 500;
  padding: 0.52rem 0.68rem;
}

.brochure-main {
  padding-top: 1.5rem;
}

/* Brochure-only footer refresh */
.brochure-footer {
  --brochure-footer-bg: var(--brochure-primary, var(--primary-color));
  background: linear-gradient(145deg,
      color-mix(in srgb, var(--brochure-footer-bg) 82%, black) 0%,
      color-mix(in srgb, var(--brochure-footer-bg) 64%, black) 100%);
  position: relative;
  overflow: hidden;
  margin-top: 5rem;
}

.brochure-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.14) 0, transparent 35%),
              radial-gradient(circle at 88% 84%, rgba(255, 255, 255, 0.08) 0, transparent 30%);
  pointer-events: none;
}

.brochure-footer .footer-main,
.brochure-footer .footer-bottom {
  position: relative;
  z-index: 1;
}

.brochure-footer .footer-main {
  padding: 4.5rem 0 2.2rem;
}

.brochure-footer .footer-heading {
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.03em;
}

.brochure-footer .footer-heading::after {
  background: rgba(255, 255, 255, 0.45);
}

.brochure-footer .footer-links a,
.brochure-footer .footer-contact a,
.brochure-footer .footer-contact span,
.brochure-footer .footer-bottom p {
  color: rgba(255, 255, 255, 0.84);
}

.brochure-footer .footer-links a:hover,
.brochure-footer .footer-contact a:hover {
  color: #fff;
}

.brochure-footer .social-link {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.brochure-footer .social-link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.brochure-footer .footer-bottom {
  background: rgba(0, 0, 0, 0.24);
}

.brochure-footer .footer-privacy-link {
  color: rgba(255, 255, 255, 0.8);
}

.brochure-footer .footer-privacy-link:hover {
  color: #fff;
}

@media (max-width: 991.98px) {
  .brochure-nav {
    gap: 0.2rem;
  }


  .brochure-main {
    padding-top: 1rem;
  }
}

/* Buttons */
.btn {
  border-radius: var(--border-radius);
  font-weight: 500;
  padding: 0.5rem 1.5rem;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

/* Modern Footer Styles */
.modern-footer {
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 70%, black) 0%, color-mix(in srgb, var(--primary-color) 50%, black) 100%);
  color: #ecf0f1;
  margin-top: 4rem;
}

.footer-main {
  padding: 4rem 0 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-title {
  color: #fff;
  font-weight: 600;
  font-size: 1.5rem;
  margin: 0;
}

.footer-description {
  color: #bdc3c7;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-heading {
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
  padding-left: 0;
}

.footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-color, #3498db);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  padding-left: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
  padding-left: 0;
}

.footer-links a {
  color: #bdc3c7;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  padding-left: 0;
}

.footer-links a::before {
  content: '›';
  margin-right: 0.5rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  position: absolute;
  left: -1rem;
}

.footer-links a:hover {
  color: #fff;
  padding-left: 1rem;
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  padding-left: 0;
  margin-left: -28px;
}

.footer-contact li {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  color: #bdc3c7;
  font-size: 0.95rem;
  padding-left: 0;
}

.footer-contact i {
  color: var(--primary-color);
  margin-right: 0.5rem;
  font-size: 1.1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}

.footer-contact a,
.footer-contact span {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s ease;
  flex: 1;
}

.footer-contact a:hover {
  color: #fff;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.social-link:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--primary-color) 40%, transparent);
  color: #fff;
}

.footer-bottom {
  padding: 1.5rem 0;
  background: rgba(0, 0, 0, 0.2);
}

.footer-bottom p {
  color: #bdc3c7;
  font-size: 0.9rem;
  margin: 0;
}

.footer-privacy-link {
  color: #95a5a6;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.footer-privacy-link:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-payment {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #bdc3c7;
  font-size: 0.9rem;
  padding-right: 1rem;
}

.footer-payment i {
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  .footer-main {
    padding: 3rem 0 1.5rem;
  }
  
  .footer-heading {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .footer-bottom {
    text-align: center;
  }
  
  .footer-payment {
    justify-content: center;
    margin-top: 1rem;
  }
  
  .footer-contact {
    margin-left: 0;
  }
  
  .footer-contact i {
    width: 24px;
    margin-right: 0.75rem;
  }
}

/* Legacy Footer Styles (for backward compatibility) */
.footer {
  background: var(--dark-color);
  color: #adb5bd;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer h5, .footer h6 {
  color: var(--white);
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer a {
  color: #adb5bd;
  text-decoration: none;
  transition: var(--transition);
}

.footer a:hover {
  color: var(--primary-light);
}

/* Footer Social Media Buttons */
.footer .btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #adb5bd;
  transition: all 0.3s ease;
}

.footer .btn-outline-light:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.3);
}

.footer .hover-primary:hover {
  color: var(--primary-color) !important;
  padding-left: 5px;
  transition: all 0.3s ease;
}

/* Breadcrumb */
.breadcrumb {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: var(--secondary-color);
  font-size: 1.2rem;
  padding: 0 0.5rem;
}

.breadcrumb-item a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb-item a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: var(--dark-color);
  font-weight: 500;
}

/* Utility Classes */
.min-vh-50 {
  min-height: 50vh;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-banner {
    padding: 2rem 0;
  }
  
  .display-3 {
    font-size: 2.5rem;
  }
  
  .product-image-modern img {
    height: 220px;
  }
  
  .feature-icon-sm {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

/* Animations */
.fade-in {
  animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}


/* Theme Switcher */
.theme-switcher {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.theme-switcher .btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.theme-switcher .btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
/* Breadcrumb Modern Styles */
.breadcrumb-container {
  font-size: 0.9rem;
  line-height: 1.5;
}

.breadcrumb-link {
  color: var(--primary-color);
  transition: color 0.15s ease-in-out;
  white-space: nowrap;
}

.breadcrumb-link:hover {
  color: var(--primary-dark);
}

.breadcrumb-current {
  color: #6c757d !important;
  white-space: nowrap;
}

.bi-chevron-right {
  flex-shrink: 0;
}

@media (max-width: 576px) {
  .breadcrumb-container {
    font-size: 0.8rem;
  }
  
  .breadcrumb-link,
  .breadcrumb-current {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Kargo / Shipped status badge */
.bg-purple {
    background-color: #6f42c1 !important;
}
