/* Main Styles for Product Showcase - Blue and Mint Color Scheme */
:root {
    --primary-color: #1976D2; /* Blue */
    --primary-light: #64B5F6; /* Light Blue */
    --primary-dark: #0D47A1; /* Deep Blue */
    --secondary-color: #04C3F7; /* Medium Blue Secondary */
    --accent-color: #00BCD4; /* Bright Cyan */
    --accent-pop: #6AEED4; /* Mint for accent elements */
    --text-on-primary: #FFFFFF; /* White text on dark backgrounds */
    --text-color: #0D47A1; /* Dark Blue for text */
    --background-light: #E8F2FD; /* Very Light Blue Background */
    --background-medium: #BBDEFB; /* Light Blue Background */
    --card-hover-shadow: 0 15px 30px rgba(25, 118, 210, 0.25);
    --card-hover-transform: translateY(-10px);
    --transition-standard: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --box-shadow-subtle: 0 4px 6px rgba(25, 118, 210, 0.08);
}

/* General Styles */
body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-light);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    letter-spacing: -0.02em;
}

/* Card Styles - Modern Design */
.card {
    transition: var(--transition-standard);
    border: none;
    border-radius: 10px;
    background-color: white;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-pop));
  transform: scaleX(0);
  transform-origin: left;
  transition: 0.3s ease-out;
}

.card:hover {
  transform: var(--card-hover-transform);
  box-shadow: var(--card-hover-shadow);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-img-top {
  height: 220px;
  object-fit: cover;
  transition: var(--transition-standard);
  filter: brightness(0.95);
}

.card:hover .card-img-top {
  filter: brightness(1.05);
}

/* Product Styles */
.product-showcase img {
  max-height: 400px;
  width: 100%;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-subtle);
}

/* Product Grid Styles */
.product-card .card-img-top {
  height: 200px;
  object-fit: cover;
  transition: 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.product-card .card-title {
  font-size: 1em;
  font-weight: 600;
  margin-bottom: 0.5rem;
  /*height: 2.4em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;*/
  overflow: visible;
  display: block;
}

.product-card .card-text {
  font-size: 0.85rem;
  /*height: 3rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;*/
  overflow: visible;
  display: block;
  margin-bottom: 0.75rem;
}

.product-card-footer {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  overflow: visible !important;
}

.product-model {
  font-size: 0.8rem;
}

.product-card .view-details-btn {
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
}

/* Improved product card layout structure */
.product-card-footer {
  margin-top: 1rem;
}

.product-card .model-badge {
  display: block;
}

.product-card .retailers-container {
  clear: both;
}

.product-card .retailers-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Product Search and Filters */
.product-search, .product-sort {
  box-shadow: 0 1px 5px rgba(0,0,0,0.1);
}

#product-pagination {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

#product-pagination .pagination {
  margin-bottom: 0;
}

#product-pagination .page-link {
  cursor: pointer;
}

.load-more-btn {
  padding: 0.5rem 2rem;
  transition: background-color 0.3s, transform 0.2s;
  background-color: var(--primary-color);
  border-color: var(--primary-dark);
}

.load-more-btn:hover {
  transform: translateY(-2px);
  background-color: var(--primary-dark);
}

/* Modern Hero Section with Animations */
.hero {
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--background-light) 0%, var(--background-medium) 100%);
  z-index: -1;
}

.hero-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 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='%237986cb' fill-opacity= '0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM634v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.1;
}

.jumbotron {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.05);
  padding: 2.5rem !important;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.animated-shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--primary-light), var(--accent-pop));
  opacity: 0.15;
  filter: blur(100px);
}

.shape-1 {
  width: 300px;
  height: 300px;
  right: -150px;
  bottom: -150px;
  animation: float 15s ease-in-out infinite;
}

.shape-2 {
  width: 200px;
  height: 200px;
  left: -100px;
  top: -100px;
  animation: float 20s ease-in-out infinite reverse;
}

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

.jumbotron::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 5px;
  background: linear-gradient(to bottom, var(--primary-color), var(--accent-pop));
  z-index: 0;
}

.jumbotron h1 {
  background: linear-gradient(45deg, var(--primary-dark), var(--accent-pop));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.jumbotron .lead {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--primary-dark);
}

.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(96, 173, 94, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: 0;
}

/* Footer Styles */
footer {
  margin-top: 2rem;
  background-color: var(--primary-dark);
  color: var(--text-on-primary);
  padding: 2rem 0;
}

footer .social-links a {
  font-size: 1.5rem;
  margin-right: 15px;
  transition: color 0.3s ease;
}

footer .social-links a:hover {
  color: var(--secondary-color);
}

/* Enhanced Button Styles */
.btn {
  border-radius: 50px;
  padding: 0.6em 1.5em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
}

.btn {
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: ripple-effect 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-effect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.btn-primary {
  background-color: var(--primary-color);
  border: none;
  box-shadow: 0 4px 10px rgba(25, 118, 210, 0.25);
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background-color: var(--primary-dark) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(25, 118, 210, 0.3) !important;
}

.btn-outline-primary {
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  background-color: transparent;
  border-radius: 50px;
  padding: 0.5rem 1.5rem;
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(76, 175, 80, 0.3);
}

.btn-secondary {
  background-color: var(--accent-color);
  border: none;
  box-shadow: 0 4px 10px rgba(29, 233, 182, 0.25);
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.bg-secondary {
  background-color: var(--accent-color) !important;
}

.badge {
  background-color: var(--primary-light) !important;
  color: var(--text-on-primary);
}

.navbar {
  background-color: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.navbar-light .navbar-brand,
.navbar-light .navbar-nav .nav-link {
  color: var(--primary-dark);
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active > .nav-link {
  color: var(--accent-color);
}

.navbar-light .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-pop);
  transition: width 0.3s ease, left 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover::after,
.navbar-light .navbar-nav .active > .nav-link::after {
  width: 100%;
  left: 0;
}

.pagination .page-link {
  color: var(--primary-color);
}

.pagination .active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Card Image Overlay and Badge */
.card-img-overlay-wrapper {
  position: relative;
  overflow: hidden;
}

.card-category-badge {
  position: absolute;
  top: 15px;
  right: -30px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-pop));
  color: white;
  padding: 5px 30px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  transform: rotate(45deg);
  letter-spacing: 1px;
  box-shadow: 0 2px 5px rgba(76, 175, 80, 0.2);
  z-index: 2;
}

/* Enhanced About Section */
.about-card {
  background-color: white;
  position: relative;
  overflow: hidden;
}

.divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-pop));
  border-radius: 2px;
}

.about-image-wrapper {
  position: relative;
  min-height: 400px;
  overflow: hidden;
}

.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  transition: transform 1.2s ease;
}

.about-image:hover {
  transform: scale(1.05);
}

.feature-badge {
  background-color: rgba(63, 81, 181, 0.08);
  color: var(--primary-color);
  padding: 8px 15px;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(63, 81, 181, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.experience-badge {
  position: absolute;
  bottom: 30px;
  left: 30px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-pop));
  color: white;
  padding: 15px;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.experience-badge .years {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}

.experience-badge .text {
  font-size: 0.8rem;
  font-weight: 500;
}

/* Responsive Adjustments */
@media (max-width: 760px) {
  .card-img-top {
    height: 160px;
  }

  .product-showcase img {
    max-height: 300px;
  }

  .jumbotron {
    border-left: none;
    padding: 1.5rem !important;
  }

  .jumbotron h1 {
    font-size: 1.8rem;
  }

  /* Improve touch targets for mobile */
  .btn, .nav-link, .page-link {
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
  }

  /* Better spacing for mobile forms */
  #product-search, #product-sort {
    margin-bottom: 1rem;
  }

  /* Ensure badges don't wrap awkwardly on small screens */
  .badge {
    display: inline-block;
    margin-bottom: 0.5rem;
  }
}

/* Extra small devices */
@media (max-width: 576px) {
  .hero .jumbotron {
    text-align: center;
  }

  .product-card .card-title {
    height: auto;
    max-height: 3rem;
  }

  .product-card .card-text {
    height: auto;
    max-height: none;
    margin-bottom: 1.5rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }
}

/* Force block display for all card footer elements */
.product-card-footer,
.model-badge,
.retailers-container,
.product-card .d-flex.justify-content-between,
.product-card .d-flex.justify-content-start {
  display: block !important;
  width: 100% !important;
  margin-bottom: 0.75rem !important;
}

/* Remove flexbox from elements that should stack */
.product-card .d-flex.justify-content-between,
.product-card .d-flex.justify-content-start,
.card-body .d-flex.justify-content-between {
  display: block !important;
  flex-direction: unset !important;
  align-items: unset !important;
  justify-content: unset !important;
}

/* Style model badge properly */
.product-card :badge.product-model,
.badge.bg-secondary.product-model {
  display: inline-block !important;
  margin-bottom: 1rem !important;
  width: auto !important;
  max-width: 100% !important;
}

/* Fix view details button */
.card-body .view-details-btn,
.product-card .view-details-btn {
  display: inline-block !important;
  margin-top: 1rem !important;
  margin-bottom: 1rem !important;
  width: auto !important;
}

/* Add separation between sections */
.retailers-container {
  margin-top: 1.5rem !important;
  padding-top: 1rem !important;
  border-top: 2px solid rgba(0, 0, 0, 0.1) !important;
  clear: both !important;
}

/* Fix retailer buttons */
.retailers-buttons {
  display: flex;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.product-card .btn-retailer,
.retailers-buttons .btn {
  margin: 0.25rem 0.25rem 0.25rem 0;
  display: inline-block;
}

.product-card .mt-3,
.retailers-container.mt-3 {
  margin-top: 1.5rem !important;
  clear: both;
}

/* Ensure the retailers section has proper spacing and no overlap */
.retailers-container {
  margin-top: 1.5rem !important;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 1rem;
  position: relative;
  clear: both;
  width: 100%;
}

/* Fix specifically for product-card-footer on smallest screens */
.product-card .product-card-footer {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Ensure text doesn't overflow on smallest screens */
.product-card .card-text {
  overflow-wrap: break-word;
  word-wrap: break-word;
  -ms-word-break: break-all;
  word-break: break-word;
}

/* Ensure spacing between model badge and retailers */
.model-badge {
  margin-bottom: 1rem !important;
}
}

/* Create proper spacing between elements */

/* Featured Categories Section */
.featured-categories {
  padding: 2rem 0;
  position: relative;
  z-index: 1;
  margin-top: 2rem;
  margin-bottom: 3rem !important;
  display: block !important;
  visibility: visible !important;
}

.featured-categories .card {
  opacity: 1 !important;
  transform: none !important;
  display: block !important;
  visibility: visible !important;
}

.featured-categories::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, var(--background-medium) 0%, transparent 100%);
  opacity: 0.7;
  z-index: -1;
}

.featured-categories .section-title {
  display: inline-block;
  position: relative;
  opacity: 1 !important;
  transform: none !important;
}

/* Scroll Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-left.visible, .fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.staggered-fade-in > * {
  opacity: 0;
  transform: translateY(20px);
}

.staggered-fade-in > *.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Custom section title styling */
.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 2.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-pop));
  border-radius: 2px;
}