.custom-scrollbar::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  background: #1f2937;
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  font-size: 0.875rem;
  font-weight: 500;
  animation: slideUpToast 0.3s ease-out;
}

@keyframes slideUpToast {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-slides {
  display: flex;
  transition: transform 0.3s ease-out;
}

.product-slides img {
  flex-shrink: 0;
}

/* Header & Footer Brand Logos */
#store-header-logo {
  height: 40px !important;
  max-height: 40px !important;
  width: auto !important;
  max-width: 180px !important;
  object-fit: contain !important;
  display: block;
}

#store-header-logo.hidden {
  display: none !important;
}

#store-footer-logo {
  height: 44px !important;
  max-height: 44px !important;
  width: auto !important;
  max-width: 220px !important;
  object-fit: contain !important;
  display: block;
}

#store-footer-logo.hidden {
  display: none !important;
}

/* ============================================================
   Floating Social Media Sidebar
   Fixed on the right-middle edge of the viewport
   ============================================================ */
.social-float-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 0;
    pointer-events: none; /* allow clicks only on children */
}

.social-float-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    pointer-events: auto;
    overflow: hidden; /* label slides out to the left on hover */
}

.social-float-icon {
    /* The icon pill attached to the right edge */
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.625rem 0 0 0.625rem; /* rounded only on left side */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.15rem;
    flex-shrink: 0;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.25s ease,
                width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    box-shadow: -3px 0 12px rgba(0, 0, 0, 0.25);
}

.social-float-label {
    /* Hidden label that expands on hover */
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #ffffff;
    padding: 0;
    border-radius: 0.5rem 0 0 0.5rem;
    transition: max-width 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                padding 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.2s ease;
    opacity: 0;
    height: 2.75rem;
    display: flex;
    align-items: center;
    order: -1; /* label is to the left of icon */
}

.social-float-btn:hover .social-float-label {
    max-width: 9rem;
    padding-left: 0.875rem;
    padding-right: 0.625rem;
    opacity: 1;
}

.social-float-btn:hover .social-float-icon {
    transform: translateX(-2px);
    box-shadow: -5px 0 18px rgba(0, 0, 0, 0.35);
}

/* Separator gap between buttons */
.social-float-btn + .social-float-btn {
    margin-top: 0.375rem;
}

/* Hide on very small screens — show a compact version */
@media (max-width: 480px) {
    .social-float-sidebar {
        top: auto;
        bottom: 1.5rem;
        transform: none;
        flex-direction: row;
        right: 1rem;
        gap: 0.5rem;
    }

    .social-float-icon {
        border-radius: 9999px;
        width: 2.5rem;
        height: 2.5rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    }

    .social-float-label {
        display: none !important;
    }
}
