/* ===== Science Dropdown — Same glassmorphic style as Shop ===== */

/* Wrapper: the <li> gets this class via PHP filter */
.seed-science-wrap,
.seed-header__menu li.seed-science-wrap {
    position: relative;
}

/* Dropdown panel — same style as shop dropdown */
.seed-science-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    width: 300px;
    padding: 12px;
    background: rgb(87, 94, 85);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Invisible bridge so hover doesn't break across the gap */
.seed-science-dropdown::before {
    content: '';
    position: absolute;
    top: -24px;
    left: 0;
    right: 0;
    height: 24px;
}

/* Show on hover */
.seed-science-wrap:hover .seed-science-dropdown,
.seed-header__menu li.seed-science-wrap:hover .seed-science-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Match scroll-state pill color */
.seed-header--scrolled .seed-science-dropdown {
    background: rgb(40, 85, 27);
}

/* Each item row — horizontal: icon left, text right */
.seed-science-dropdown__item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    text-decoration: none !important;
    color: #fcfcf7 !important;
    transition: background 0.2s;
}

.seed-science-dropdown__item:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Icon container */
.seed-science-dropdown__icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.seed-science-dropdown__icon svg {
    width: 22px;
    height: 22px;
    color: #fcfcf7;
    stroke: #fcfcf7;
}

.seed-science-dropdown__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Text info — on right, beside the icon */
.seed-science-dropdown__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

/* Item name */
.seed-science-dropdown__name {
    font-size: 14px;
    color: #fcfcf7;
    line-height: 1.3;
}

/* Item description */
.seed-science-dropdown__desc {
    font-size: 11px;
    font-weight: 400;
    color: rgba(252, 252, 247, 0.55);
    line-height: 1.3;
}

/* ---- Mobile: hide dropdown ---- */
@media (max-width: 1024px) {
    .seed-science-dropdown {
        display: none !important;
    }
}