/* Warrior Peptides — Minimal CSS (JS state, transitions, positioned elements) */

* { accent-color: #1a1a1a; }

/* Override Tailwind's blue-tinted gray-900 with true neutral dark */
.bg-gray-900 { background-color: #1a1a1a !important; }
.hover\:bg-gray-700:hover { background-color: #333 !important; }
.text-gray-900 { color: #1a1a1a !important; }
.border-gray-900 { border-color: #1a1a1a !important; }
.focus\:ring-gray-900:focus { --tw-ring-color: rgba(26,26,26,0.5) !important; }

/* === MOBILE NAV === */
@media (max-width: 767px) {
    #mainNav {
        display: none !important;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0 1rem;
        border-bottom: 1px solid #f3f4f6;
        z-index: 40;
        box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    }
    #mainNav.mobile-open { display: flex !important; }
    #mainNav .nav-link { padding: 0.625rem 1.25rem; }
    .dropdown-content {
        position: static !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        padding-left: 1.5rem;
        background: transparent !important;
    }
    .dropdown.mobile-expanded .dropdown-content { display: flex !important; flex-direction: column; }
}

/* === HAMBURGER === */
.hamburger span { display: block; transition: transform 0.2s ease, opacity 0.2s ease; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === DROPDOWN MENU === */
.dropdown { position: relative; }
.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    z-index: 50;
    padding: 0.375rem 0;
}
.dropdown-content.open { display: block; }
.dropdown-content a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #4b5563;
    text-decoration: none;
    white-space: nowrap;
}
.dropdown-content a:hover { background: #f9fafb; color: #111827; }

/* === SEARCH RESULTS === */
.search-bar { position: relative; }
.search-results {
    display: none;
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    z-index: 50;
    overflow: hidden;
    min-width: 260px;
}
.search-results.active { display: block; }
.search-result-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f3f4f6;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: #f9fafb; }
.search-result-item img { width: 36px; height: 36px; object-fit: contain; border-radius: 0.375rem; background: #f3f4f6; padding: 3px; }
.search-result-info h4 { font-size: 0.8rem; font-weight: 600; color: #111827; margin: 0; }
.search-result-info p { font-size: 0.75rem; color: #6b7280; margin: 0.1rem 0 0; }
.search-no-results { padding: 0.75rem 0.875rem; font-size: 0.875rem; color: #6b7280; }

/* === CART MODAL === */
.cart-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(0,0,0,0.3);
    justify-content: flex-end;
}
.cart-modal.active { display: flex; }
.cart-content {
    background: #fff;
    width: 360px;
    max-width: 100vw;
    height: 100%;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}
.cart-modal.active .cart-content { transform: translateX(0); }
.cart-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}
.cart-item-img { width: 44px; height: 44px; object-fit: contain; border-radius: 0.375rem; background: #f3f4f6; flex-shrink: 0; padding: 4px; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info h4 { font-size: 0.8rem; font-weight: 600; color: #111827; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-info p { font-size: 0.75rem; color: #6b7280; margin: 0.15rem 0 0; }
.cart-item-remove { background: none; border: none; color: #9ca3af; cursor: pointer; font-size: 1.1rem; line-height: 1; padding: 0.25rem; flex-shrink: 0; }
.cart-item-remove:hover { color: #111827; }

/* === CAROUSEL === */
.carousel { position: relative; }
.carousel-track { overflow: hidden; }
.carousel-inner { position: relative; height: 360px; }
.carousel-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 192px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.5s ease,
                filter 0.5s ease;
}
.carousel-info { opacity: 0; transition: opacity 0.3s ease; }
.carousel-info.visible { opacity: 1; }
.carousel-add-btn { opacity: 0; transition: opacity 0.3s ease; pointer-events: none; width: 100%; border: none; }
.carousel-add-btn.visible { opacity: 1; pointer-events: auto; }
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b7280;
}
.carousel-arrow:hover { background: #f9fafb; color: #111827; }
.carousel-arrow.left { left: 0.5rem; }
.carousel-arrow.right { right: 0.5rem; }

/* === INFO ACCORDION === */
.info-accordion-content { display: none; }
.info-accordion.open .info-accordion-content { display: block; }
.info-accordion-toggle svg { transition: transform 0.2s ease; }
.info-accordion.open .info-accordion-toggle svg { transform: rotate(180deg); }

/* === MOBILE FILTER DROPDOWN === */
.filter-dropdown-content { display: none; }
.filter-dropdown.open .filter-dropdown-content { display: block; }

/* === JS STATE CLASSES === */
.filter-tag { cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.filter-tag.active { background: #1a1a1a !important; color: #fff !important; border-color: #1a1a1a !important; }

.currency-btn { cursor: pointer; transition: background 0.15s, color 0.15s; }
.currency-btn.active { background: #1a1a1a !important; color: #fff !important; }

.btn-cart { transition: background 0.15s; }
.btn-cart.added { background: #22c55e !important; color: white !important; }

.btn-add-to-cart { transition: background 0.15s; }

/* === CHECKOUT JS STATE === */
.payment-option {
    cursor: pointer;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    transition: border-color 0.15s;
}
.payment-option input[type="radio"] { display: none; }
.payment-option.selected { border-color: #1a1a1a; box-shadow: 0 0 0 0.5px #1a1a1a; }

.shipping-option {
    display: block;
    cursor: pointer;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: border-color 0.15s;
    background: #fff;
}
.shipping-option input[type="radio"] { display: none; }
.shipping-option.selected { border-color: #1a1a1a; box-shadow: 0 0 0 0.5px #1a1a1a; }

.step-label.active { color: #111827; font-weight: 600; }

/* === COUNTRY AUTOCOMPLETE === */
.country-autocomplete { position: relative; }
.country-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 0.5rem 0.5rem;
    z-index: 50;
    max-height: 200px;
    overflow-y: auto;
}
.country-suggestions.active { display: block; }
.country-suggestion { padding: 0.5rem 0.75rem; font-size: 0.875rem; cursor: pointer; color: #374151; }
.country-suggestion:hover { background: #f9fafb; color: #111827; }
.country-suggestion-group { padding: 0.35rem 0.75rem; font-size: 0.7rem; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.05em; }
.country-no-results { padding: 0.5rem 0.75rem; font-size: 0.875rem; color: #9ca3af; }

/* === LEGAL PAGES === */
.disclaimer-page,
.faq-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 2.5rem 1rem 5rem;
}

.disclaimer-title,
.faq-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.disclaimer-section {
    margin-bottom: 2rem;
}

.disclaimer-section h2 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.625rem;
}

.disclaimer-section p,
.disclaimer-section li {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.75;
    margin-bottom: 0.5rem;
}

.disclaimer-section ul,
.disclaimer-section ol {
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
}

.disclaimer-section li { margin-bottom: 0.2rem; }

.disclaimer-final {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.disclaimer-final p { color: #6b7280; }

.needs-update { color: #1a1a1a; font-weight: 500; }

/* === FAQ PAGE === */
.faq-accordions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.faq-accordions .info-accordion {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
}

.faq-accordions .info-accordion-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a1a;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
}

.faq-accordions .info-accordion-toggle:hover { background: #f9fafb; }

.faq-accordions .info-accordion-content {
    padding: 0 1.25rem 1rem;
}

.faq-accordions .info-accordion-content p {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.75;
    white-space: pre-line;
}

.faq-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    font-size: 0.8rem;
    color: #92400e;
}
