/* ========================================
   BullSupply Design System
   Converted from JSX reference (bullsupply-v4.jsx)
   All custom classes prefixed with bs- to avoid Bootstrap conflicts
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
    --bs-bg: #f8f6f1;
    --bs-bg-warm: #f2efe8;
    --bs-surface: #ffffff;
    --bs-text: #1a1a1e;
    --bs-text-soft: #55524d;
    --bs-text-muted: #9a958e;
    --bs-blue: #5ba8d4;
    --bs-blue-pale: #e8f2fa;
    --bs-blue-deep: #3a7db0;
    --bs-red: #cc3538;
    --bs-red-pale: #fce8e8;
    --bs-yellow: #d4a32c;
    --bs-yellow-pale: #faf0d4;
    --bs-border: #e4dfda;
    --bs-border-light: #edeae4;
}

/* --- Body & Typography --- */
body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--bs-bg);
    color: var(--bs-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
}

code, pre, .font-mono {
    font-family: 'Space Mono', monospace;
}

/* --- Navigation --- */
.bs-nav {
    background: transparent;
    transition: background 0.3s, border-color 0.3s;
    border-bottom: 1px solid transparent;
    padding: 12px 0;
    z-index: 1030;
}

.bs-nav-scrolled {
    background: rgba(248, 246, 241, 0.90);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--bs-border);
}

.bs-nav .nav-link {
    color: var(--bs-text-soft);
    font-size: 13px;
    font-weight: 400;
    transition: color 0.2s;
}

.bs-nav .nav-link:hover {
    color: var(--bs-text);
}

.bs-logo {
    font-family: 'Instrument Serif', serif;
    font-size: 22px;
    text-decoration: none;
}

.bs-logo:hover {
    text-decoration: none;
}

.bs-logo-bull {
    color: var(--bs-text);
}

.bs-logo-supply {
    color: var(--bs-blue);
}

.bs-logo-dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    background: var(--bs-red);
    border-radius: 50%;
    margin-left: 1px;
    vertical-align: super;
}

/* --- Buttons --- */
.bs-btn-primary {
    background: var(--bs-text);
    color: var(--bs-bg);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    padding: 10px 24px;
    transition: background 0.2s;
}

.bs-btn-primary:hover {
    background: var(--bs-blue-deep);
    color: var(--bs-bg);
}

.bs-btn-outline {
    border: 1.5px solid var(--bs-border);
    border-radius: 100px;
    color: var(--bs-text-soft);
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 24px;
    transition: all 0.2s;
}

.bs-btn-outline:hover {
    border-color: var(--bs-text);
    color: var(--bs-text);
}

/* --- Hero Section --- */
.bs-hero {
    padding: 80px 0 60px;
}

.bs-hero h1 {
    font-size: clamp(40px, 5.5vw, 62px);
    line-height: 1.05;
    letter-spacing: -0.025em;
    font-weight: 400;
}

.bs-hero .bs-hero-accent {
    color: var(--bs-red);
    font-style: italic;
}

.bs-hero p {
    color: var(--bs-text-soft);
    font-size: 16px;
    line-height: 1.75;
    font-weight: 300;
    max-width: 420px;
}

/* --- Stats Bar --- */
.bs-stats {
    display: flex;
    gap: 40px;
    padding-top: 32px;
    margin-top: 64px;
    border-top: 1px solid var(--bs-border);
}

.bs-stats-num {
    font-family: 'Instrument Serif', serif;
    font-size: 30px;
    line-height: 1;
}

.bs-stats-label {
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    color: var(--bs-text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* --- Marquee --- */
.bs-marquee {
    border-top: 1px solid var(--bs-border-light);
    border-bottom: 1px solid var(--bs-border-light);
    padding: 12px 0;
    overflow: hidden;
    white-space: nowrap;
    background: var(--bs-surface);
}

.bs-marquee-track {
    display: inline-block;
    animation: bs-scroll 35s linear infinite;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.15em;
    color: var(--bs-text-muted);
}

@keyframes bs-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-33.33%); }
}

/* --- Section Headings --- */
.bs-section-label {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    color: var(--bs-text-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.bs-section-title {
    font-family: 'Instrument Serif', serif;
    font-size: 40px;
    line-height: 1;
    font-weight: 400;
    letter-spacing: -0.02em;
}

/* --- Category Filter Pills --- */
.bs-filter-btn {
    border: 1px solid var(--bs-border);
    border-radius: 100px;
    padding: 7px 16px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    color: var(--bs-text-soft);
}

.bs-filter-btn:hover {
    border-color: var(--bs-text);
    color: var(--bs-text);
}

.bs-filter-btn.active {
    background: var(--bs-text);
    color: var(--bs-bg);
    border-color: var(--bs-text);
}

/* --- Product Cards --- */
.bs-product-card {
    background: var(--bs-surface);
    border: 1px solid var(--bs-border-light);
    border-radius: 16px;
    padding: 28px 22px 22px;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: inherit;
}

.bs-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
    border-color: var(--bs-blue);
    color: inherit;
    text-decoration: none;
}

.bs-product-card .bs-card-img {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 140px;
    border-radius: 12px;
    padding: 16px 0;
    margin-bottom: 18px;
    background: var(--bs-bg-warm);
}

.bs-product-card .bs-card-img img {
    max-height: 160px;
    max-width: 100%;
    object-fit: contain;
}

.bs-product-card h3 {
    font-family: 'Instrument Serif', serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0 0 2px;
}

.bs-product-card .bs-card-sub {
    font-size: 12px;
    color: var(--bs-text-muted);
    margin: 0 0 16px;
    font-weight: 300;
}

.bs-product-card .bs-card-price {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.bs-product-card .bs-card-currency {
    font-size: 12px;
    color: var(--bs-text-muted);
    font-weight: 400;
}

.bs-product-card .bs-card-btn {
    width: 36px;
    height: 36px;
    border-radius: 100px;
    background: var(--bs-bg-warm);
    border: none;
    color: var(--bs-text-soft);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bs-product-card:hover .bs-card-btn {
    background: var(--bs-blue);
    color: #fff;
}

/* --- Product Detail --- */
.bs-product-detail .bs-gallery-main img {
    width: 100%;
    border-radius: 16px;
    aspect-ratio: 1;
    object-fit: contain;
    background: var(--bs-bg-warm);
}

.bs-product-detail .bs-gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.bs-product-detail .bs-gallery-thumb {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.bs-product-detail .bs-gallery-thumb.active {
    border-color: var(--bs-blue);
}

.bs-product-price {
    font-size: 28px;
    font-weight: 600;
}

.bs-stock-ok {
    color: #16a34a;
    font-weight: 500;
}

.bs-stock-low {
    color: #ea580c;
    font-weight: 500;
}

.bs-stock-out {
    color: var(--bs-red);
    font-weight: 500;
}

.bs-badge-category {
    display: inline-block;
    background: var(--bs-blue-pale);
    color: var(--bs-blue-deep);
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 100px;
}

.bs-badge-origin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--bs-text-soft);
}

.bs-flavor-tag {
    display: inline-block;
    background: var(--bs-bg-warm);
    border: 1px solid var(--bs-border-light);
    border-radius: 100px;
    padding: 4px 12px;
    font-size: 12px;
    color: var(--bs-text-soft);
    margin: 0 4px 4px 0;
}

/* --- "Dlaczego my" Section --- */
.bs-why {
    background: var(--bs-surface);
    border-top: 1px solid var(--bs-border-light);
    border-bottom: 1px solid var(--bs-border-light);
    padding: 72px 0;
}

.bs-why-item {
    display: flex;
    gap: 16px;
}

.bs-why-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Mono', monospace;
    font-size: 13px;
}

.bs-why-item h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px;
    font-family: 'DM Sans', sans-serif;
}

.bs-why-item p {
    font-size: 13px;
    color: var(--bs-text-soft);
    line-height: 1.7;
    font-weight: 300;
    margin: 0;
}

/* --- Footer --- */
.bs-footer {
    padding: 56px 0 36px;
}

.bs-footer-heading {
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    color: var(--bs-text-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.bs-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bs-footer-links a {
    display: block;
    color: var(--bs-text-soft);
    font-size: 13px;
    text-decoration: none;
    margin-bottom: 8px;
    font-weight: 300;
}

.bs-footer-links a:hover {
    color: var(--bs-text);
}

.bs-footer-desc {
    font-size: 13px;
    color: var(--bs-text-muted);
    line-height: 1.7;
    font-weight: 300;
}

.bs-footer-contact {
    font-size: 13px;
    color: var(--bs-text-soft);
    line-height: 1.9;
    font-weight: 300;
}

.bs-footer-company {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    color: var(--bs-text-muted);
}

.bs-footer-bottom {
    border-top: 1px solid var(--bs-border-light);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bs-footer-bottom span {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    color: var(--bs-text-muted);
}

.bs-footer-social a {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    color: var(--bs-text-muted);
    text-decoration: none;
    margin-left: 16px;
}

.bs-footer-social a:hover {
    color: var(--bs-text);
}

/* --- Trust Bar --- */
.bs-trust {
    padding: 28px 0;
    background: var(--bs-surface);
    border-top: 1px solid var(--bs-border-light);
    border-bottom: 1px solid var(--bs-border-light);
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.bs-trust-item {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    color: var(--bs-text-muted);
    letter-spacing: 0.06em;
}

.bs-trust-check {
    color: var(--bs-blue);
    margin-right: 5px;
}

/* --- Load More Button --- */
.bs-load-more {
    display: block;
    margin: 32px auto 0;
    background: transparent;
    border: 1.5px solid var(--bs-border);
    border-radius: 100px;
    padding: 12px 32px;
    font-size: 13px;
    color: var(--bs-text-soft);
    cursor: pointer;
    transition: all 0.2s;
}

.bs-load-more:hover {
    border-color: var(--bs-text);
    color: var(--bs-text);
}

/* --- Scarcity Badge --- */
.bs-scarcity {
    display: inline-block;
    background: #fff3e0;
    color: #ea580c;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 100px;
    margin: 6px 0 2px;
}

/* --- Card Flag Badge --- */
.bs-card-flag {
    display: inline-block;
    font-size: 12px;
    color: var(--bs-text-soft);
    margin: 4px 0 0;
}

/* --- Card Flavor Tags (small) --- */
.bs-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin: 6px 0;
}

.bs-flavor-tag-sm {
    display: inline-block;
    background: var(--bs-bg-warm);
    border: 1px solid var(--bs-border-light);
    border-radius: 100px;
    padding: 2px 8px;
    font-size: 10px;
    color: var(--bs-text-soft);
}

/* --- Nowosci Horizontal Scroll --- */
.bs-nowosci-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
}

.bs-nowosci-scroll::-webkit-scrollbar {
    height: 4px;
}

.bs-nowosci-scroll::-webkit-scrollbar-thumb {
    background: var(--bs-border);
    border-radius: 4px;
}

.bs-nowosci-card {
    min-width: 200px;
    max-width: 200px;
    scroll-snap-align: start;
    flex-shrink: 0;
}

.bs-nowosci-card .bs-card-img {
    background: var(--bs-bg-warm);
    border-radius: 12px;
    padding: 16px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
}

.bs-nowosci-card .bs-card-img img {
    max-height: 110px;
    max-width: 100%;
    object-fit: contain;
}

/* --- Mini Trust Badges (Product Detail) --- */
.bs-trust-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid var(--bs-border-light);
}

.bs-trust-mini-item {
    font-size: 12px;
    color: var(--bs-text-soft);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* --- Origin Story Accordion --- */
.bs-accordion-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: 1px solid var(--bs-border-light);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--bs-text);
    cursor: pointer;
    transition: background 0.2s;
}

.bs-accordion-toggle:hover {
    background: var(--bs-bg-warm);
}

.bs-accordion-arrow {
    font-size: 10px;
    transition: transform 0.2s;
}

.bs-accordion-toggle.open .bs-accordion-arrow {
    transform: rotate(180deg);
}

.bs-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 16px;
}

.bs-accordion-body.open {
    max-height: 500px;
    padding: 12px 16px;
}

/* --- Trust Icon (enhanced) --- */
.bs-trust-icon {
    margin-right: 6px;
}

/* --- Cookie Consent Banner --- */
.bs-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bs-surface);
    border-top: 1px solid var(--bs-border);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
    z-index: 9999;
    display: none;
    transition: transform 0.3s ease;
}

.bs-cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.bs-cookie-text {
    font-size: 13px;
    color: var(--bs-text-soft);
    line-height: 1.6;
    flex: 1;
    min-width: 280px;
}

.bs-cookie-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* --- Legal Page Content --- */
.bs-legal-content h2 {
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin: 32px 0 12px;
    color: var(--bs-text);
}

.bs-legal-content p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--bs-text-soft);
    margin-bottom: 12px;
}

.bs-legal-content ul {
    font-size: 14px;
    line-height: 1.8;
    color: var(--bs-text-soft);
    padding-left: 20px;
    margin-bottom: 16px;
}

.bs-legal-content li {
    margin-bottom: 4px;
}

/* ========================================
   Responsive Breakpoints
   ======================================== */

/* Tablet and below */
@media (max-width: 991.98px) {
    .bs-hero {
        padding: 60px 0 40px;
    }

    .bs-hero .row {
        flex-direction: column;
    }

    .bs-why .row {
        flex-direction: column;
    }

    .bs-stats {
        gap: 24px;
    }
}

/* Mobile landscape and below */
@media (max-width: 767.98px) {
    .bs-hero h1 {
        font-size: 36px;
    }

    .bs-hero p {
        max-width: 100%;
    }

    .bs-stats {
        flex-wrap: wrap;
        gap: 20px;
        margin-top: 40px;
    }

    .bs-marquee-track {
        font-size: 9px;
    }

    .bs-section-title {
        font-size: 32px;
    }

    .bs-why {
        padding: 48px 0;
    }

    .bs-footer {
        padding: 40px 0 28px;
    }

    .bs-footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* Small mobile */
@media (max-width: 575.98px) {
    .bs-hero h1 {
        font-size: 30px;
    }

    .bs-stats {
        flex-direction: column;
        gap: 16px;
    }

    .bs-filter-btn {
        font-size: 11px;
        padding: 6px 12px;
    }

    .bs-product-card {
        padding: 20px 16px 16px;
    }

    .bs-product-price {
        font-size: 22px;
    }

    .bs-trust {
        gap: 20px;
        padding: 20px 16px;
    }
}

/* Toast notifications */
.bs-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--bs-blue-deep, #1a1a2e);
    color: #fff;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}
.bs-toast-show {
    opacity: 1;
    transform: translateY(0);
}
