#logo{
    height: 55px;

}

#bookmark{
    height: 34px
}
* { box-sizing: border-box; }

/* Same tokens as home-format.css (the login page loads only this file); see the notes
   there on contrast. Keep the two in step. */
:root {
    --ff-bg: #141417;
    --ff-navbar-bg: #0c0d0f;
    --ff-card: #5B6C93;
    --ff-card-border: #6E7EA4;
    --ff-track: #47567A;
    --ff-text: #FFFFFF;
    --ff-text-secondary: #EEF1F9;
    --ff-gold: #FFC94D;
    --ff-teal: #1D9E75;
    --ff-coral: #F0997B;
    --ff-pill-bg: rgba(16, 17, 20, 0.72);
    --ff-up: #6FE0B2;
    --ff-down: #FFB4A0;
    --ff-neutral: #C9CED9;
    --ff-heart: #FF9BB0;
    --ff-danger-bg: #8A2A1C;
}

body {
    margin: 0;
    padding: 0;
    background: var(--ff-bg);
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ff-text);
}

/* ===== Navbar ===== */
.ff-navbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    background: var(--ff-navbar-bg);
    padding: 20px 40px;
    border-radius: 0 0 20px 20px;
}

.ff-navbar-links {
    display: flex;
    gap: 28px;
}

.ff-navbar-links a {
    color: var(--ff-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}

.ff-navbar-logo a {
    color: var(--ff-text);
    text-decoration: none;
    font-weight: 800;
    font-size: 22px;
}

.ff-navbar-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 14px;
}

.ff-search-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--ff-text);
    color: #1a1a1a;
    border: none;
    border-radius: 20px;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.ff-profile-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--ff-text);
    color: #1a1a1a;
    border: none;
    display: grid;
    place-items: center;
    cursor: pointer;
}

/* ===== Page layout ===== */
.ff-page {
    max-width: 1500px;
    margin: 0 auto;
    padding: 48px 40px;
}

.ff-title-bar {
    background: var(--ff-card);
    border-radius: 16px;
    padding: 20px 32px;
    text-align: center;
    margin-bottom: 24px;
}

.ff-title-bar h1 {
    margin: 0 0 4px;
    font-size: 24px;
    font-weight: 800;
}

.ff-title-bar p {
    margin: 0;
    font-size: 14px;
    color: var(--ff-text-secondary);
}

.ff-layout {
    display: grid;
    grid-template-columns: 480px 1fr;
    gap: 24px;
    align-items: start;
}

/* ===== Image panel ===== */
.ff-image-panel {
    background: var(--ff-card);
    border-radius: 16px;
    padding: 16px;
}

.ff-image-frame {
    border-radius: 12px;
    overflow: hidden;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0000001a;
}

.ff-product-photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.ff-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 14px;
}

.ff-carousel-arrow {
    background: none;
    border: none;
    color: var(--ff-text);
    cursor: pointer;
    display: grid;
    place-items: center;
    padding: 4px;
}

.ff-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ff-text);
    display: inline-block;
}

/* ===== Info column ===== */
.ff-info-col {
    display: grid;
    row-gap: 16px;
}

.ff-actions-row {
    display: flex;
    gap: 12px;
}

.ff-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--ff-card);
    color: var(--ff-text);
    border: none;
    border-radius: 12px;
    padding: 14px 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.ff-favourite-btn svg {
    color: var(--ff-gold);
}

/* ===== Stats panel ===== */
.ff-stats-panel {
    background: var(--ff-card);
    border-radius: 16px;
    padding: 20px 24px;
    display: grid;
    row-gap: 16px;
}

.ff-stat-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 15px;
}

/* ===== Pricing panel ===== */
.ff-pricing-panel {
    background: var(--ff-card);
    border-radius: 16px;
    padding: 20px 24px;
}

.ff-pricing-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 15px;
}

.ff-retail-price {
    font-size: 13px;
    color: var(--ff-text-secondary);
    margin: 0 0 18px;
}

.ff-range-wrap {
    position: relative;
    margin: 4px 4px 8px;
    padding-top: 36px;
}

.ff-range-track {
    position: relative;
    height: 8px;
    background: var(--ff-track);
    border-radius: 4px;
}

.ff-range-fill {
    position: absolute;
    top: 0;
    bottom: 0;
    background: var(--ff-teal);
    border-radius: 4px;
    /* left / right set inline by JS based on low/high vs overall range */
}

.ff-range-marker {
    position: absolute;
    top: -6px;
    width: 3px;
    height: 20px;
    background: var(--ff-gold);
    border-radius: 2px;
    /* left set inline by JS based on retail price position */
}

.ff-range-avg-tick {
    position: absolute;
    top: -3px;
    width: 2px;
    height: 14px;
    background: var(--ff-text);
    border-radius: 1px;
    /* left set inline by JS based on average price position */
}

.ff-range-retail-label {
    position: absolute;
    top: 0;
    font-size: 11px;
    font-weight: 600;
    color: var(--ff-gold);
    white-space: nowrap;
    /* left / transform set inline by JS based on retail price position */
}

.ff-range-avg-label {
    position: absolute;
    top: 18px;
    font-size: 11px;
    font-weight: 600;
    color: var(--ff-text);
    white-space: nowrap;
    /* left / transform set inline by JS based on average price position */
}

.ff-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--ff-text-secondary);
    margin: 0 4px 18px;
}

.ff-notable-section {
    border-top: 0.5px solid var(--ff-card-border);
    padding-top: 12px;
}

.ff-notable-title {
    font-size: 12px;
    color: var(--ff-text-secondary);
    margin: 0 0 8px;
}

.ff-notable-list {
    max-height: 96px;
    overflow-y: auto;
}

.ff-notable-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    padding: 5px 0;
}

.ff-notable-row a {
    color: var(--ff-text);
    text-decoration: none;
}

.ff-notable-row a:hover {
    text-decoration: underline;
}

.ff-notable-price {
    font-weight: 600;
    color: var(--ff-coral);
}

.ff-notable-empty {
    font-size: 13px;
    color: var(--ff-text-secondary);
    padding: 5px 0;
}

@media (max-width: 900px) {
    .ff-layout { grid-template-columns: 1fr; }
    .ff-navbar { grid-template-columns: 1fr; justify-items: center; gap: 12px; padding: 16px 20px; }
    .ff-navbar-actions { justify-self: center; }
    .ff-navbar-links { flex-wrap: wrap; justify-content: center; gap: 0 16px; }   /* fits at 360px */
}

/* Login page touch targets: 44×44px on phones, as on every other page (home-format.css) */
@media (max-width: 767px) {
    .ff-navbar-links a,
    .ff-navbar-logo a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
    }

    /* .ff-navbar in front so these win over the nav search and account.css rules later on */
    .ff-navbar .ff-currency,
    .ff-navbar .ff-nav-search,
    .ff-navbar .ff-nav-search__box,
    .ff-navbar .ff-nav-search__icon,
    .ff-navbar .ff-profile-btn {
        height: 44px;
    }

    .ff-navbar .ff-nav-search,
    .ff-navbar .ff-nav-search__box,
    .ff-navbar .ff-nav-search__icon,
    .ff-navbar .ff-profile-btn {
        width: 44px;
    }

    .lg-tab,
    .lg-link,
    .lg-form .lg-check {
        min-height: 44px;
    }
}
/* ===== Expanding nav search ===== */
.ff-nav-search {
    position: relative;
    width: 38px;
    height: 38px;
    margin: 0;
}

.ff-nav-search__box {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    width: 38px;
    height: 38px;
    overflow: hidden;
    background: var(--ff-text);
    border-radius: 999px;
    transition: width 0.25s ease, box-shadow 0.25s ease;
}

.ff-nav-search__input {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    height: 100%;
    padding: 0;
    font: inherit;
    font-size: 14px;
    color: #1a1a1a;
    background: transparent;
    border: none;
    outline: none;
    opacity: 0;
    transition: opacity 0.2s ease, padding 0.25s ease;
}

.ff-nav-search__input::placeholder {
    color: #6b7080;
}

.ff-nav-search__icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    color: #1a1a1a;
    background: transparent;
    border: none;
    cursor: pointer;
}

/* Open while focused (after a click or tap) */
.ff-nav-search:focus-within .ff-nav-search__box {
    width: min(240px, 70vw);
    box-shadow: 0 0 0 2px var(--ff-gold);
}

.ff-nav-search:focus-within .ff-nav-search__input {
    opacity: 1;
    padding-left: 16px;
}

/* Open on hover (mouse only) */
@media (hover: hover) {
    .ff-nav-search:hover .ff-nav-search__box {
        width: min(240px, 70vw);
    }

    .ff-nav-search:hover .ff-nav-search__input {
        opacity: 1;
        padding-left: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ff-nav-search__box,
    .ff-nav-search__input {
        transition: none;
    }
}