/* Sticky Product Info Section */
.sticky-product-info {
    position: sticky;
    top: 90px; /* Adjust based on the last sticky menu */
    background-color: #3e3e3e;
    padding: 5px 15px;
    z-index: 998;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 35px; /* Keeps it compact */
    max-width: 900px;
    margin: auto;
}

/* Product Title */
.product-title {
    font-size: 16px;
    font-weight: bold;
    color: white;
}

/* Brand Links */
.brand-links {
    font-size: 14px;
}
.brand-links p {
    font-size: 16px;
    margin: 10px 0;
  }
.brand-links a {
    color: #ffd700;
    font-weight: bold;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.6);
    transition: background-color 0.3s, transform 0.2s;
}

.brand-links a:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: black;
    transform: scale(1.05);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .sticky-product-info {
        flex-direction: column;
        height: auto;
        padding: 10px;
        text-align: center;
        gap: 5px;
    }

    .product-title, .brand-links {
        font-size: 14px;
    }
}
/* Sticky Product Info Section - Ensure Consistent Background */
.ps-sticky-product-info {
    position: sticky;
    top: 90px; /* Adjust based on previous sticky menus */
    background-color: #3e3e3e; /* Uniform dark background */
    padding: 5px 15px;
    z-index: 998;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 35px; /* Adjust for new layout */
    max-width: 900px;
    margin: auto;
    border-bottom: 2px solid #444; /* Consistent separation */
}

/* Product Title */
.ps-product-title {
    font-size: 16px;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    white-space: nowrap; /* Prevents wrapping */
    overflow: hidden; /* Ensures no overflow issues */
    text-overflow: ellipsis; /* Adds "..." if text is too long */
    flex-shrink: 0; /* Prevents the text from shrinking */
}

/* Subtle text-style link for non-active brands */
.ps-brand-link {
  display: inline; /* Keeps it as normal text */
  color: #bbb; /* Soft gray */
  font-weight: normal; /* No bold */
  text-decoration: none; /* No underline by default */
  transition: color 0.3s ease-in-out;
}

/* Add slight emphasis on hover */
.ps-brand-link:hover {
  color: #fff; /* Turns white on hover */
  text-decoration: underline; /* Underline only on hover */
}


/* Adjust spacing for the brand link section */
.ps-brand-links {
  display: block;
  text-align: center;
  margin-top: 5px; /* Adjust spacing */
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    .ps-sticky-product-info {
        flex-direction: column;
        height: auto;
        padding: 10px;
        text-align: center;
        gap: 5px;
    }

    .ps-product-title, .ps-brand-links {
        font-size: 14px;
    }
}
/* Sale Button inside Sticky Product Info */
.ps-sale-button .sale-button {
    background-color: red;
    color: white;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: background-color 0.3s ease-in-out;
}

.ps-sale-button .sale-button:hover {
    background-color: darkred;
}

/* Make the Sale Button match ps-brand-links size */
.ps-sale-button {
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 768px) {
    .sticky-submenu,
    .ps-sticky-product-info {
        position: relative; /* Remove sticky behavior */
        top: auto; /* Reset positioning */
    }
}
.brand-description {
  overflow: hidden;
  max-height: 60px; /* Ensures proper starting height */
  transition: max-height 0.3s ease-out;
  position: relative;
  margin-bottom: 5px; /* Reduce space between text and button */
  line-height: 1.4; /* Optional: Adjusts spacing inside paragraph */
}

.brand-description.expanded {
    max-height: none !important; /* Allows full expansion */
}

/* Prevent layout shifting when collapsing */
.brand-description-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.toggle-description {
    display: block;
    width: auto;
    margin: 1px auto;
    padding: 2px 8px;
    font-size: 12px;
    background-color: #333;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 5px; /* Closer to the paragraph */
}

.toggle-description:hover {
    background-color: #686969;
}
/* Button-like style for active brand links */
.ps-brand-button-link {
  display: inline-block; /* Ensures button-like behavior */
  color: #ffcc00 !important; /* Gold text */
  font-weight: bold;
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.7); /* Dark button background */
  transition: background-color 0.3s, transform 0.2s;
}

/* Hover effect for buttons */
.ps-brand-button-link:hover {
  background-color: rgba(255, 255, 255, 0.9);
  color: black !important;
  transform: scale(1.05);
}
.ps-brand-nonactivelink {
  font-size: 14px;
  color: inherit !important; /* Ensures it doesn’t force gray */
}

.ps-brand-nonactivelink a {
  color: inherit !important; /* Prevents it from overriding .ps-brand-link styles */
}
