/* General styles for the sticky compare section */

/* Style for the close button */
.close-compare-card {
    background: none;
    border: none;
    font-size: 14px; /* Reduced font size */
    padding: 0px 0px;
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 0;
  }
  
  /* Hover effect for card items */
  .compare-card-item:hover {
    transform: scale(1.05); /* Slightly enlarge card on hover */
  }
  
  .sticky-compare-section {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(175, 0, 55, 0.6); /* Adjusted for transparency */
    border-top: 1px solid #ccc;
    z-index: 1000;
    backdrop-filter: blur(5px); /* Soft blur effect on the background */
  }
  
  /* Style for the container inside the sticky section */
  .sticky-compare-section .container {
    padding: 10px;
    display: flex;
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
    align-items: center;
    justify-content: center; /* Center-align the items */
    max-width: 90%; /* Adjusted for better responsiveness */
    margin: 0 auto;
  }
  
  /* Style for individual card items */
  
  .compare-card-item {
      position: relative;
      /* width: 20%; */
      height: auto;
      margin: 2px;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 2px;
      background: #f8f8f8;
      border-radius: 5px;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  
  
  /* Style for the card details */
  .compare-card-item .card__details {
    font-weight: bold;
    font-size: 0.6em; /* Reduced font size */
    color: #333;
    text-align: center;
    padding: 2px 4px;
    background-color: #ffba34;
    color: #af0037;
    border-radius: 4px;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .compare-card-item .img-responsive {
    max-height: 40%; /* Reduced image height */
    width: auto; /* Adjust width automatically */
    margin-bottom: 3px; /* Reduced margin */
    border: 2px solid #af0037; /* Reduced border thickness */
    border-radius: 4px; /* Optional: if you want rounded corners */
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1); /* Optional: adding a slight shadow for depth */
  }
  
  /* Animation for the card entry */
  @keyframes slideIn {
    from {
      transform: translateY(100%);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
  
  .card-entry-animation {
    animation: slideIn 0.5s ease-out forwards;
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .sticky-compare-section .container {
      max-width: 30%;
          margin-top: 50px;
      
    }
    .compare-card-item {
      width: 30%; /* Adjust for medium screens */
    }
  }
  
  @media (max-width: 480px) {
    .sticky-compare-section .container {
      max-width: 90%;
          margin-top: 50px;
      
    }
    .compare-card-item {
      width: 50%; /* Adjust for small screens */
    }
  }
  
  /* Style for the image box */
  .compare-card-item .imgbox {
    width: 100%; /* Set width to fit card */
    display: flex; /* Use flexbox for centering */
    justify-content: center; /* Center image horizontally */
    margin-bottom: 5px; /* Space between image and text */
  }
  
  .compare-card-item .imgbox img {
    max-width: 100%; /* Make image responsive */
    max-height: 80px; /* Reduced fixed height for images */
    border-radius: 4px; /* Optional: if you want rounded corners for images */
  }
  
  /* Style for the card details */
  .compare-card-item .card__details {
    text-align: center;
    font-size: 0.6em; /* Reduced font size */
    font-weight: bold;
    margin-bottom: 5px; /* Space between text and bottom of card */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  /* Style for the close button */
  .close-compare-card {
    position: absolute;
    top: 3px; /* Adjusted top position */
    right: 3px; /* Adjusted right position */
    background: #ffba34 !important; /* Use !important to enforce this color */
    border-radius: 50%; /* Circular close button */
    width: 20px; /* Reduced fixed width */
    height: 20px; /* Reduced fixed height to make it a circle */
    padding: 0px 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #af0037 !important; /* Use !important to enforce this color */
    border: none;
    cursor: pointer;
    transition: background 0.3s, color 0.3s; /* Smooth transition effect */
  }
  
  /* Hover effect for the close button */
  .close-compare-card:hover {
    background: #d59300 !important; /* Use !important to enforce this color */
    color: #ffffff !important; /* Use !important to enforce this color */
  }
  
  /* button {
    padding: 0px 0px;
  } */
  
  /* Style for the dynamic icon container */
  .minimize-icon-container {
    position: absolute;
    top: 5px;
    left: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffba34; /* Background color for the icon container */
    border-radius: 50%; /* Circular icon container */
    width: 36px; /* Adjusted width */
    height: 36px; /* Adjusted height */
    transition: background 0.3s; /* Smooth transition effect */
  }
  
  /* Style for the dynamic icon */
  .dynamic-icon {
    width: 70%; /* Adjusted icon size relative to the container */
    height: auto;
    fill: #af0037; /* Icon color */
    transition: transform 0.3s, fill 0.3s; /* Smooth transition effect */
  }
  
  /* Hover effect for the dynamic icon container */
  .minimize-icon-container:hover {
    background: #d59300; /* Hover background color */
  }
  
  /* Hover effect for the dynamic icon */
  .dynamic-icon:hover {
    fill: #ffffff; /* Hover icon color */
  }
  
  
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .sticky-compare-section .container {
   margin-top: 50px;
      max-width: 90%; /* Adjust for smaller screens */
    }
    .compare-card-item {
      width: 50%; /* Adjust for smaller screens */
    }
  }
  
  /* Styles for the compare section container */
  .compare-section-container {
    position: relative; /* This makes it a reference point for absolute positioning */
    display: flex; /* Establishes a flex container */
    align-items: flex-end; /* Aligns children (cards and button) at the end of the container's cross axis */
    justify-content: space-between; /* Distributes space between and around flex items */
    padding: 10px; /* Provides some padding within the container */
  }
  
  /* Styles for the container holding the cards */
  #compareContainer {
    display: flex; /* Establishes a flex context for the cards */
    flex-wrap: wrap; /* Allows cards to wrap onto multiple lines */
    align-items: flex-start; /* Aligns cards at the start of the container's cross axis */
    flex-grow: 1; /* Allows the container to grow and fill available space, pushing the button to the edge */
  }
  
  .hidden {
      display: none;
  }
  
  
  .add-compare-card {
      display: none;
  }
  
  .compare-section-container {
      display: flex;
      flex-direction: column-reverse; /* Stack buttons above the cards */
      align-items: flex-end; /* Align children to the right */
      padding: 10px;
      position: relative; /* Set position context for absolute positioning inside */
  }
  
  .compare-button-container {
      top: 13px;
      right: 116px;
      display: flex;
      /* align-items: flex-end; */
      /* flex-direction: column; */
      position: absolute;
  }
  /* You might need to adjust the padding or margin of the buttons for spacing */
  .btn {
      margin-bottom: 5px; /* Adds some space between the buttons */
  }