/* ═══════════ BioSupp Labs — Custom Styles ═══════════ */

/* ── Logo Styling ── */
nav img[alt="BioSupp Labs"] {
    border-radius: 8px;
}
footer img[alt="BioSupp Labs"] {
    border-radius: 8px;
}

/* ── Scroll Animations ── */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}
.fade-in.visible {
    opacity: 1;
}

.slide-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Staggered children */
.stagger-children > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children > *:nth-child(6) { transition-delay: 0.3s; }
.stagger-children > *:nth-child(7) { transition-delay: 0.35s; }
.stagger-children > *:nth-child(8) { transition-delay: 0.4s; }

/* ── Hero Gradient ── */
.hero-gradient {
    background: linear-gradient(135deg, #0B1D3A 0%, #1a2846 40%, #273c69 70%, #34508c 100%);
}

.hero-gradient-alt {
    background: linear-gradient(180deg, #f8f6f0 0%, #ffffff 100%);
}

/* ── Gold Shimmer ── */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}
.gold-shimmer {
    background: linear-gradient(90deg, #C8A951 0%, #f4dfa5 25%, #C8A951 50%, #f4dfa5 75%, #C8A951 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

/* ── Product Card Hover ── */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px -15px rgba(11, 29, 58, 0.15);
}

.product-card .product-img {
    transition: transform 0.5s ease;
}
.product-card:hover .product-img {
    transform: scale(1.05);
}

/* ── Ingredient Trace Line ── */
.trace-line {
    position: relative;
}
.trace-line::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 40px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #C8A951, #e8bd49, transparent);
}
.trace-line:last-child::before {
    display: none;
}

/* ── Testimonial Slider ── */
.testimonial-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Button Pulse ── */
@keyframes pulse-gold {
    0%, 100% { box-shadow: 0 0 0 0 rgba(200, 169, 81, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(200, 169, 81, 0); }
}
.btn-pulse {
    animation: pulse-gold 2.5s infinite;
}

/* ── Navbar scroll state ── */
.navbar-scrolled {
    background: rgba(11, 29, 58, 0.98) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ── Counter Animation ── */
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.count-up {
    animation: countUp 0.5s ease-out forwards;
}

/* ── Floating Elements ── */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* ── Gradient Border ── */
.gradient-border {
    position: relative;
    border-radius: 1rem;
}
.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    padding: 2px;
    background: linear-gradient(135deg, #C8A951, #e8bd49, #C8A951);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* ── Category Pill ── */
.category-pill {
    transition: all 0.2s ease;
}
.category-pill.active {
    background: #0B1D3A;
    color: white;
}

/* ── Smooth Scroll ── */
html {
    scroll-behavior: smooth;
}

/* ── Selection Color ── */
::selection {
    background: #C8A951;
    color: #0B1D3A;
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f3f9;
}
::-webkit-scrollbar-thumb {
    background: #b3c1df;
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8da2cf;
}

/* ── Placeholder product images ── */
.product-placeholder {
    background: linear-gradient(135deg, #f0f3f9 0%, #d9e0ef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Toast notification ── */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    transform: translateY(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* ── Accordion ── */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
.accordion-content.open {
    max-height: 1000px;
}

/* ── Stars ── */
.star-filled { color: #C8A951; }
.star-empty  { color: #d9e0ef; }

/* ── Hide Scrollbar (for horizontal nav) ── */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ── Quantity Input ── */
.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.qty-input {
    -moz-appearance: textfield;
}
